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 |
|---|---|---|---|---|---|---|---|---|
1d85d3a66a5c67e8442832f8034471d72ef943d27ec11a935dcacf301c137e35 | /*
* 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 ... | GO | traffic_ops_ort/atstccfg/getdata/getdata.go | hbeatty/incubator-trafficcontrol | apache-2.0 | 9,143 | 247 | codeparrot/github-code |
0a5ffc174a7dc7ad99cca94ab94e66c15b587aeba5b05aa4174001788cde9a5a | #
# 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 the ... | CMake | cpp/cmake_modules/FindFlatbuffers.cmake | tebeka/arrow | apache-2.0 | 3,349 | 96 | codeparrot/github-code |
558dd694f5b8e911cb2914cd26b1333c592b4adc42750ad39a718b5b48eeea0d | /*
* Copyright (c) 2005 - 2014, WSO2 Inc. (http://www.wso2.org) 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 ... | Java | modules/siddhi-core/src/main/java/org/wso2/siddhi/core/executor/condition/compare/less_than/LessThanCompareConditionExecutorLongInt.java | sacjaya/siddhi-3 | apache-2.0 | 1,269 | 33 | codeparrot/github-code |
b6adb8b98cbe61e986ac499711a2a3d3d60c1759dd54ac075b9f3b82c53e4d4b | #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++ | Codeforces/SimpleTask.cpp | aajjbb/contest-files | apache-2.0 | 1,280 | 72 | codeparrot/github-code |
cab8a1d9b2f565394013aa11de84c36728fae7acd6b028690cea2b2d63785089 | require 'adwords_api/v200909/CampaignCriterionService'
require 'adwords_api/v200909/CampaignCriterionServiceMappingRegistry'
require 'soap/rpc/driver'
module AdwordsApi
module V200909
module CampaignCriterionService
class CampaignCriterionServiceInterface < ::SOAP::RPC::Driver
DefaultEndpointUrl = "https://adwords.... | Ruby | lib/adwords_api/v200909/CampaignCriterionServiceDriver.rb | chromeragnarok/adwords_api | apache-2.0 | 2,488 | 64 | codeparrot/github-code |
918ea3a717b2cbaab105cb648af69d2b5b13d4cef7312ecc7ec8f31cd9f00e36 | package com.alsash.reciper.ui.fragment.dialog;
import android.content.Intent;
import com.alsash.reciper.R;
import com.alsash.reciper.app.ReciperApp;
import com.alsash.reciper.logic.NavigationLogic;
import com.alsash.reciper.mvp.model.entity.Author;
import com.alsash.reciper.mvp.presenter.RecipeDialogAuthorPresenter;
... | Java | app/src/main/java/com/alsash/reciper/ui/fragment/dialog/RecipeDialogAuthorFragment.java | alsash/reciper | apache-2.0 | 1,455 | 51 | codeparrot/github-code |
54397f4e5a7c0c88fdfb86fd5afcc53968f3f2bec3bbf3ec082cac5787e602d3 | /*
* Copyright 2014-2022 Web Firm Framework
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law o... | Java | wffweb/src/main/java/com/webfirmframework/wffweb/tag/html/ModifiedParentData.java | webfirmframework/wff | apache-2.0 | 1,614 | 57 | codeparrot/github-code |
8b7ca6de1f012ed6acb7a22922fc83a521a5bb4aac369e0e08bff20b3618c039 | package hr.fer.zemris.jcms.caching.impl;
import hr.fer.zemris.jcms.JCMSSettings;
import hr.fer.zemris.jcms.beans.cached.CourseScoreTable;
import hr.fer.zemris.jcms.beans.cached.Dependencies;
import hr.fer.zemris.jcms.caching.IJCMSCache;
import java.io.File;
import java.io.IOException;
import java.util.Properties;
im... | Java | src/java/hr/fer/zemris/jcms/caching/impl/JCMSCacheOSImpl.java | KarloKnezevic/Ferko | apache-2.0 | 3,489 | 100 | codeparrot/github-code |
6d94a8d7490b5da24032e86386761d39b86f60cf5726925ae5a23b2bccc5b49f | package jeffaschenk.commons.parsers;
import javassist.*;
import javassist.bytecode.AnnotationsAttribute;
import jeffaschenk.commons.parsers.objects.ClassAnnotationData;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import java.lang.reflect.Method;
import java.util.HashMap;
impor... | Java | src/main/java/jeffaschenk/commons/parsers/AnnotationParser.java | jaschenk/jeffaschenk-commons | apache-2.0 | 19,352 | 441 | codeparrot/github-code |
d1c78ba733fca0c02ee175d04b81bbe10325f42ec0e7822667a7a54bc97ae9f2 | # coding=utf-8
# Copyright 2022 The Google Research 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 applicab... | Python | adaptive_learning_rate_tuner/resnet_model_fast.py | google-research/google-research | apache-2.0 | 19,574 | 514 | codeparrot/github-code |
e1ad6528393784af715cb28514a900000dbc616add15887f90eff7471a84d13f | // build.rs
use std::env;
use std::fs::File;
use std::io::Write;
use std::path::Path;
use glsl::syntax::{SingleDeclaration,
StorageQualifier, TypeQualifierSpec };
use glsl::visitor::{Visit, Visitor};
struct Counter {
var_nb: usize
}
impl Visitor for Counter {
// fn visit_identifier(&mut self, id: &mut... | Rust | sources/rust/wasm/helloworld/rust/build.rs | xunilrj/sandbox | apache-2.0 | 2,338 | 85 | codeparrot/github-code |
c9830292fb505cd3506c0bf0f29545fc3bc6b516d0bf6b755fce2f3a3b64786a | <html><!-- Created using the cpp_pretty_printer from the dlib C++ library. See http://dlib.net for updates. --><head><title>dlib C++ Library - pegasos.h</title></head><body bgcolor='white'><pre>
<font color='#009900'>// Copyright (C) 2009 Davis E. King (davis@dlib.net)
</font><font color='#009900'>// License: Boost... | HTML | dlib-18.18/docs/dlib/svm/pegasos.h.html | Nekel-Seyew/Complex-3D-Vector-Fields | apache-2.0 | 73,635 | 713 | codeparrot/github-code |
723eed67b8772b941ad8781358736df14a43ab276513b95dc598fea0792b2d80 | import json
import re
from behave import given, when, then
from behave import use_step_matcher
use_step_matcher("re")
# implicitly used
import sure # noqa
# We use this instead of validator from json_schema_generator
# because its error reports are far better
from jsonschema import validate
from _lazy_request import... | Python | e2e/features/steps/crud.py | sunForest/AviPost | apache-2.0 | 2,306 | 84 | codeparrot/github-code |
1958d590b1d5b8c33e95eab8e437b5b92e88b249d1aab8d078528d6da78cf6e9 | import {PlatformLiveSyncServiceBase} from "./platform-livesync-service-base";
class AndroidPlatformLiveSyncService extends PlatformLiveSyncServiceBase {
constructor(_liveSyncData: ILiveSyncData,
protected $devicesService: Mobile.IDevicesService,
protected $mobileHelper: Mobile.IMobileHelper,
protected $logger: ... | TypeScript | lib/services/livesync/android-platform-livesync-service.ts | tsvetie/nativescript-cli | apache-2.0 | 2,894 | 59 | codeparrot/github-code |
b04ee102ec7022800d44ffedfc30fa0bcd645746c59d97213e702a18c4308033 | #!/usr/bin/env python
# -- Content-Encoding: UTF-8 --
"""
Runs an Herald XMPP framework
:author: Thomas Calmant
:copyright: Copyright 2014, isandlaTech
:license: Apache License 2.0
:version: 0.0.4
:status: Alpha
..
Copyright 2014 isandlaTech
Licensed under the Apache License, Version 2.0 (the "License");
... | Python | python/run_xmpp.py | ahmadshahwan/cohorte-herald | apache-2.0 | 5,512 | 159 | codeparrot/github-code |
b56ad0ca05071b365055633e8ab3df13afa25ef912a4b9ddc7ee0cf809b981c8 | // Copyright (c) 2017 VMware, 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 applic... | TypeScript | src/ui_ng/lib/src/tag/tag.component.ts | wemeya/harbor | apache-2.0 | 7,986 | 275 | codeparrot/github-code |
65f78cbe5a4de4eeb84e1f422b5527fdd101acfd68968be74ddc58cec9580712 | package me.anchore.snippet.algorithm;
import me.anchore.test.DataSetUtil;
import org.junit.Before;
import org.junit.Ignore;
import org.junit.Test;
import java.util.Arrays;
import static org.junit.Assert.assertTrue;
public class FinderTest {
private int[] a;
private Finder f;
@Before
public void bef... | Java | base/src/test/java/me/anchore/snippet/algorithm/FinderTest.java | rofinily/code-fragment | apache-2.0 | 1,059 | 53 | codeparrot/github-code |
ea3ba0f2ea9419ab383ea6efa186458830147a3f694cd03e2df09d8973c3cf94 | /*
* Copyright 2005-2014 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.osedu.org/licenses/ECL-2.0
*
* Unless required by applicable... | Java | coeus-code/src/main/java/org/kuali/coeus/common/framework/unit/Unit.java | blackcathacker/kc.preclean | apache-2.0 | 7,274 | 246 | codeparrot/github-code |
76c9ab980bfe09dac69cca44bd1a01d8dbddc6f2b46204cf8f36743d578576c5 | /*
* Copyright (c) 2005-2014, 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.apach... | Java | modules/andes-core/broker/src/main/java/org/wso2/andes/server/exchange/DirectExchange.java | wso2/andes | apache-2.0 | 6,144 | 215 | codeparrot/github-code |
19adea5bdf54eddb69579a70da6d0613de7c87db47e32a07e0044626d977e573 | /**
* Copyright (C) 2009 - present by OpenGamma Inc. and the OpenGamma group of companies
*
* Please see distribution for license.
*/
package com.opengamma.masterdb.security.hibernate.option;
import com.opengamma.financial.security.option.AssetOrNothingPayoffStyle;
import com.opengamma.financial.security.option.As... | Java | projects/master-db/src/main/java/com/opengamma/masterdb/security/hibernate/option/OptionPayoffStyleUserType.java | McLeodMoores/starling | apache-2.0 | 4,696 | 127 | codeparrot/github-code |
8a2a941e25d1bd783b34c507e3a2cb96cd8d50c32a1c2ba5f30f83bb4026d660 | class Container < ActiveRecord::Base
SSH_PORT = 22
belongs_to :build
has_many :connections, dependent: :delete_all
has_many :failover_rules, dependent: :delete_all
before_validation :create_docker_container, on: :create
before_destroy :delete_docker_container
validates :docker_container_id,
... | Ruby | app/models/container.rb | ivanilves/CloudPort | apache-2.0 | 3,988 | 158 | codeparrot/github-code |
399e1af8d49542cd4ab613842cf1e265fbe6a881937aca8206abf159b556337e | package org.gradle.test.performance.mediummonolithicjavaproject.p84;
import org.junit.Test;
import static org.junit.Assert.*;
public class Test1695 {
Production1695 objectUnderTest = new Production1695();
@Test
public void testProperty0() {
Production1692 value = new Production1692();
... | Java | my-app/src/test/java/org/gradle/test/performance/mediummonolithicjavaproject/p84/Test1695.java | oehme/analysing-gradle-performance | apache-2.0 | 2,173 | 79 | codeparrot/github-code |
566bb0f19877fb26db3c26ba634979870d24706e260d3f126980c410c435862f | /*
* Project Sc2gears
*
* Copyright (c) 2010 Andras Belicza <iczaaa@gmail.com>
*
* This software is the property of Andras Belicza.
* Copying, modifying, distributing, refactoring without the authors permission
* is prohibited and protected by Law.
*/
package hu.belicza.andras.sc2gears.services.plugi... | Java | src/hu/belicza/andras/sc2gears/services/plugins/PluginServicesImpl.java | icza/sc2gears | apache-2.0 | 2,489 | 86 | codeparrot/github-code |
e4ff01eb1d576143e8986d447dc545faed3414a4551cd8b6b18736b3df02a7e6 | package com.ajapps.climatecars.slidingtabscolors;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;
public class ContentFragment extends Fragment {
private static final S... | Java | Application/src/main/java/com/ajapps/climatecars/slidingtabscolors/ContentFragment.java | Aj-Apps/SlidingTabsColors | apache-2.0 | 1,901 | 57 | codeparrot/github-code |
89c0adc061c8aa7fcc21c193c5146f7ff4914b922e4b7b85e1e1a860e89314c9 | """
Functions for converting numbers with SI units to integers
"""
import copy
import re
si_multipliers = {
None: 1,
'': 1,
'k': 1000 ** 1,
'm': 1000 ** 2,
'g': 1000 ** 3,
't': 1000 ** 4,
'p': 1000 ** 5,
'e': 1000 ** 6,
'z': 1000 ** 7,
'y': 1000 ** 8,
'ki': 1024 ** 1,
... | Python | python-pscheduler/pscheduler/pscheduler/sinumber.py | mfeit-internet2/pscheduler-dev | apache-2.0 | 5,585 | 218 | codeparrot/github-code |
9e6bf28ffc54d0a669c76cc6d925155c0fb7b8a6b99808ceb17950307d51238c |
@echo off
rem CDDL HEADER START
rem
rem The contents of this file are subject to the terms of the
rem Common Development and Distribution License, Version 1.0 only
rem (the "License"). You may not use this file except in compliance
rem with the License.
rem
rem You can obtain a copy of the license at
rem tr... | Batchfile | test/opends-1.0b7/uninstall.bat | TremoloSecurity/MyVirtualDirectory | apache-2.0 | 3,211 | 103 | codeparrot/github-code |
be6b93ba5ac179e3656411fbffa9744ca7e71b9c7592c58c5b5f4b00af13805d | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you m... | Java | src/com/sun/jini/jeri/internal/http/HttpServerManager.java | cdegroot/river | apache-2.0 | 3,584 | 122 | codeparrot/github-code |
be16528687d279f0750fc198baeb7091cb1ad64e1c2ca41ca4faca0bcbe2c042 | package com.sksamuel.elastic4s
import com.sksamuel.elastic4s.ScriptDefinition
import org.elasticsearch.common.geo.{GeoDistance, GeoPoint}
import org.elasticsearch.script.Script
import org.elasticsearch.search.aggregations.Aggregator.SubAggCollectionMode
import org.elasticsearch.search.aggregations._
import org.elastic... | Scala | elastic4s-core/src/main/scala/com/sksamuel/elastic4s/aggregations.scala | muuki88/elastic4s | apache-2.0 | 21,762 | 770 | codeparrot/github-code |
dc1254b70018abe064ce868943e4f173758b6b6a74e545969a2492a65555a145 | exports.netCheck = function() {
var url = "http://api.openbeerdatabase.com/v1/beers.json";
var client = Ti.Network.createHTTPClient({
onload : function(evt) {
var newCrud = new crud();
newCrud.dele();
var data = JSON.parse(this.responseText);
var beers = data.beers;
for ( i = 0,
j = beers.length; ... | JavaScript | Resources/network.js | Pcanniff/ASDAGAIN | apache-2.0 | 664 | 31 | codeparrot/github-code |
9d3465d96e50e4e98faf91a9d9e6d4be1f54bdf189808e66d7a0ebddb4b9cbbe | using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.IO.Abstractions;
using System.IO.Abstractions.TestingHelpers;
using System.Linq;
using System.Threading.Tasks;
using Kudu.Contracts.Diagnostics;
using Kudu.Contracts.Tracing;
using Kudu.Core;
using Kudu.Core.Infra... | C# | Kudu.Services.Test/ApplicationLogsReaderFacts.cs | onesmartguy/e13-kudu | apache-2.0 | 32,904 | 780 | codeparrot/github-code |
723f2050a32b009cd84f86a59123439e82163d83079ee327cc85502059fe6192 | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for license information.
using System;
using System.Collections.Generic;
using System.Net.Http;
namespace k8s.Autorest
{
/// <summary>
/// Wrapper around HttpRequestMessage type ... | C# | src/KubernetesClient/Autorest/HttpRequestMessageWrapper.cs | kubernetes-client/csharp | apache-2.0 | 2,320 | 63 | codeparrot/github-code |
29124e460e23fdcdf8ad4ec828ca611293ca220c8ef12c15cbc4fbe564197305 | // cyNeo4j - Cytoscape app connecting to Neo4j
//
// Copyright 2014-2021
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless re... | Java | src/main/java/nl/maastrichtuniversity/networklibrary/cyneo4j/internal/utils/CyUtils.java | gsummer/cyNeo4j | apache-2.0 | 11,588 | 381 | codeparrot/github-code |
80083f383b8dea732d76a03527af9cd426d7a8c79f4a385cb1a21f9d3cb97ea1 | package org.jbpm.compiler.xml.processes;
import java.util.ArrayList;
import java.util.HashSet;
import org.kie.api.definition.process.Process;
import org.drools.core.xml.BaseAbstractHandler;
import org.drools.core.xml.ExtensibleXmlParser;
import org.drools.core.xml.Handler;
import org.jbpm.workflow.core.impl.WorkflowP... | Java | jbpm-flow-builder/src/main/java/org/jbpm/compiler/xml/processes/ImportHandler.java | hxf0801/jbpm | apache-2.0 | 2,025 | 66 | codeparrot/github-code |
d2a7730c35da9774b51b9766dfbb598019a64e330952fbd996bf026d27092296 | /*
* Copyright 2016 Basho Technologies 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 o... | Java | src/main/java/com/basho/riak/client/core/query/crdt/ops/GSetOp.java | basho/riak-java-client | apache-2.0 | 1,249 | 51 | codeparrot/github-code |
0bddfdb021f52c59e740248ddccc9d9ed928a9d451e831539b2634a3abb6ec88 | /*
* Copyright © 2014 Stefan Niederhauser (nidin@gmx.ch)
*
* 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 | tools-maven-plugin/src/main/java/guru/nidi/maven/tools/dependency/IoUtil.java | nidi3/maven-tools | apache-2.0 | 1,188 | 42 | codeparrot/github-code |
8f7bb634fb1685bf69c3b306daa9ea6b5164441fcd5261c6f6b311c077d45eba | /*
* Copyright 2017 Courtanet
*
* 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 | sample/example/src/main/java/io/doov/sample/validation/RulesOld.java | lesfurets/dOOv | apache-2.0 | 1,921 | 62 | codeparrot/github-code |
2977b711c2fb39518aa403a379f02a6cd92b3c6fa63cefca57ffac31460cfed5 | const elixir = require('laravel-elixir');
require('laravel-elixir-vue-2');
var jsuglify = require('gulp-uglify');
var rename = require('gulp-rename');
var node_path = 'node_modules';
var paths = {
'jquery': node_path + '/jquery',
'bootstrap': node_path + '/bootstrap',
'icheck': node_path + '/icheck',
... | JavaScript | gulpfile.js | ScoLib/ScoCMF | apache-2.0 | 2,085 | 58 | codeparrot/github-code |
879ed4ba26c5a86b2309a5933ee6cdc958d1e575ca3fd1d942c9ed9ad445b87b | package fr.tse.lt2c.satin.matrix.extraction.linkedmatrix.refactored;
import java.awt.image.BufferedImage;
import java.io.File;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import javax.imageio.ImageIO;
import org.apache.log4j.Level;
import org.apache.log4j.L... | Java | src/main/java/fr/tse/lt2c/satin/matrix/extraction/linkedmatrix/refactored/WSMRDecomposer.java | jsubercaze/wsrm | apache-2.0 | 34,036 | 1,387 | codeparrot/github-code |
1f372f83ec7f2c156d563b16acea412831885a5ebc276ec04c11b3bad2d5f034 | // Copyright 2012-2015 The Rust Project Developers. See the COPYRIGHT
// file at the top-level directory of this distribution and at
// http://rust-lang.org/COPYRIGHT.
//
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
// <LICENSE-MI... | Rust | src/libcollectionstest/slice.rs | mahkoh/rust | apache-2.0 | 39,750 | 1,572 | codeparrot/github-code |
2ab37d439b5f35d0548d614524b3b092493ba0b3364c8129d0e0dd83756837d7 | /**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/grafana/model/User.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
namespace Aws
{
namespace Manage... | C++ | aws-cpp-sdk-grafana/source/model/User.cpp | aws/aws-sdk-cpp | apache-2.0 | 1,249 | 76 | codeparrot/github-code |
c5f7fecfe762b9be8396b3edab2c747a3762dc5f49b9980834c9ac462ffed8f7 | # Copyright (c) 2009-2011 Cyril Rohr, INRIA Rennes - Bretagne Atlantique
#
# 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... | Ruby | lib/oar/job.rb | nirvanesque/g5k-api | apache-2.0 | 6,197 | 209 | codeparrot/github-code |
3965dd48ea36ecfa67bceda3f1c808d6e78fea3068132004f3b9ffd9032788bd | /*
* Copyright 2015 Adaptris Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agree... | Java | interlok-core/src/main/java/com/adaptris/jdbc/StoredProcedureParameter.java | adaptris/interlok | apache-2.0 | 2,112 | 93 | codeparrot/github-code |
cbdec4da71469f742d71f351125849e9e2262d8ee62174c434e9e193690a8534 | /*
* Copyright (c) 2013 The WebRTC project authors. All Rights Reserved.
*
* Use of this source code is governed by a BSD-style license
* that can be found in the LICENSE file in the root of the source
* tree. An additional intellectual property rights grant can be found
* in the file PATENTS. All contribut... | C++ | frame/c++/webrtc-master/video/overuse_frame_detector.cc | wangcy6/storm_app | apache-2.0 | 25,153 | 691 | codeparrot/github-code |
35561047ac2cf6f70916338d7eab57d3090b9fa2a4b47e2f2eaa76356743c713 | package org.apache.maven.execution;
/*
* 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,... | Java | maven-core/src/main/java/org/apache/maven/execution/DefaultMavenExecutionRequest.java | trajano/maven | apache-2.0 | 30,788 | 1,289 | codeparrot/github-code |
aab64b2d9dc5cdb3d6b94e5d3aa55ff3317b12ae5306f7f6e716ec3c32f8dada | package org.davidmoten.rx.jdbc.internal;
import java.sql.Array;
import java.sql.Blob;
import java.sql.CallableStatement;
import java.sql.Clob;
import java.sql.Connection;
import java.sql.DatabaseMetaData;
import java.sql.NClob;
import java.sql.PreparedStatement;
import java.sql.SQLClientInfoException;
import java.sql.... | Java | rxjava2-jdbc/src/main/java/org/davidmoten/rx/jdbc/internal/DelegatedConnection.java | davidmoten/rxjava2-jdbc | apache-2.0 | 7,611 | 253 | codeparrot/github-code |
71c38a7344fcc22c8c45e5630a757e33002b6da0422102a6e4e4b6d9aa1a04cc | /**
* Copyright (C) 2008 Atlassian
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agree... | Java | plugins/tasks/jira-connector/src/atlassian/java/com/atlassian/theplugin/jira/api/JIRAActionFieldBean.java | joewalnes/idea-community | apache-2.0 | 1,281 | 41 | codeparrot/github-code |
76e08f6a9ebc1d8b9cf78e91c0724861c09ff419ac6e13dcbedd2d63661631ad | import React from 'react';
import {Button, Empty, Tooltip} from 'antd';
import PlusSquareIcon from '@ant-design/icons/PlusSquareOutlined';
import {
attributeList,
ClientConn,
ValueSubscriber,
ValueUpdate,
blankFuncDesc,
configDescs,
configList,
FunctionDesc,
PropDesc,
PropGroupDesc,
deepEqual,
m... | TypeScript | src/editor/property/PropertyList.tsx | breezeflow/breezeflow | apache-2.0 | 14,230 | 478 | codeparrot/github-code |
74b54d12a6a5a123b191b1628ae69d29144646f51d9aa5453542cab3a4132d9d | /*
* Copyright 2017-2019 University of Hildesheim, Software Systems Engineering
*
* 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
*
... | Java | src/net/ssehub/kernel_haven/fe_analysis/fes/ThreadedFeatureEffectFinder.java | KernelHaven/FeatureEffectAnalysis | apache-2.0 | 3,319 | 90 | codeparrot/github-code |
d4c89262d3a72835a5f5135df12c62a6261a48ac749b5727c078330eff36ce85 | import React, { useState } from 'react';
import { NewConnectionCalloutProps } from './Callout.properties';
import { useTranslation } from 'react-i18next';
import CustomPivot from './customPivot/CustomPivot';
import RadioButtonNoFormik from '../../../../../components/form-controls/RadioButtonNoFormik';
import { paddingS... | TypeScript | client-react/src/pages/app/functions/common/callout/NewDocumentDBConnectionCallout.tsx | projectkudu/AzureFunctions | apache-2.0 | 1,846 | 47 | codeparrot/github-code |
3c25ed5071c7017443df3adfa5d799a4910e5b68242844078645c128a5a8a9ed | /*
* 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/test/java/org/apache/beam/runners/flink/FlinkSavepointTest.java | iemejia/incubator-beam | apache-2.0 | 16,347 | 408 | codeparrot/github-code |
fee21cf1aac9296c9c985733142513ed5cf6327bfae78a85224b3e1bf2af269d | package com.twitter.server.util
import com.twitter.concurrent.AsyncStream
import com.twitter.io.{Reader, Buf}
import com.twitter.util.events.{Event, Sink}
import com.twitter.util.{Throw, Return, Try}
private[twitter] trait Serializer {
import Helpers._
/**
* Serialize the sink to a lazy byte stream.
*/
f... | Scala | src/main/scala/com/twitter/server/util/Deser.scala | BuoyantIO/twitter-server | apache-2.0 | 2,591 | 96 | codeparrot/github-code |
e0dc81ac972be591a05db515a1e83418033748385cc91f39a9bd5b307d7bd499 | /*
* Copyright 2014-2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
* the License. A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "licen... | Java | aws-java-sdk-iam/src/main/java/com/amazonaws/services/identitymanagement/model/transform/AddRoleToInstanceProfileResultStaxUnmarshaller.java | jentfoo/aws-sdk-java | apache-2.0 | 2,365 | 62 | codeparrot/github-code |
f8324e625f9c037b5deaa3aaac40db683ec945466b1b563e7c997d54571dcb01 | package com.usst.app.store.promote.action;
import java.io.PrintStream;
import java.util.ArrayList;
import java.util.Date;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import javax.servlet.http.HttpServletRequest;
import org.apache.commons.lang.StringUtils;
import org.apache.log4j.Logger;
imp... | Java | src/main/java/com/usst/app/store/promote/action/PromoteAction.java | shenzeyu/recommend | apache-2.0 | 7,493 | 258 | codeparrot/github-code |
746fe7298e9f61f1d11a28784e1f9546ee8531b460cc9c5d4424c842d252c92c | package com.tlongdev.bktf.component;
import com.tlongdev.bktf.interactor.BackpackTfPriceHistoryInteractor;
import com.tlongdev.bktf.interactor.GetCurrencyExchangeRatesInteractor;
import com.tlongdev.bktf.interactor.GetSearchedUserDataInteractor;
import com.tlongdev.bktf.interactor.GetUserDataInteractor;
import com.tlo... | Java | app/src/main/java/com/tlongdev/bktf/component/InteractorComponent.java | Longi94/bptf | apache-2.0 | 2,788 | 69 | codeparrot/github-code |
9cd74242b4967d431f1ea9cab51044a76a78eb1ee7dc90ad12e4b53e6ec37151 | /* 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/flowable-dmn-spring/src/main/java/org/flowable/dmn/spring/DmnEngineFactoryBean.java | motorina0/flowable-engine | apache-2.0 | 2,656 | 79 | codeparrot/github-code |
07dce24aee8e546a0a2588087ae5904fe0eee9daf78d26090a8e372e66881f6c | /*
* 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/ro/nextreports/designer/ReportLayoutPanel.java | nextreports/nextreports-designer | apache-2.0 | 14,424 | 404 | codeparrot/github-code |
2f9f594ecb4e8bcbfd5659f1fe246396b87c8fbc31215236c3b0e73bbf216320 | package deployment
import (
"fmt"
"time"
kapi "github.com/GoogleCloudPlatform/kubernetes/pkg/api"
kclient "github.com/GoogleCloudPlatform/kubernetes/pkg/client"
"github.com/GoogleCloudPlatform/kubernetes/pkg/client/cache"
"github.com/GoogleCloudPlatform/kubernetes/pkg/fields"
"github.com/GoogleCloudPlatform/ku... | GO | pkg/deploy/controller/deployment/factory.go | westmisfit/origin | apache-2.0 | 5,070 | 134 | codeparrot/github-code |
d05e5e6d03eb2b13019b1e6b18201483a619799d09ea44a3fba91ad956f8f6c0 | package org.web3j.abi;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import org.web3j.abi.datatypes.Array;
import org.web3j.abi.datatypes.Bytes;
import org.web3j.abi.datatypes.BytesType;
import org.web3j.abi.datatypes.DynamicArray;
import org.web3j.abi.datatypes.DynamicBytes;
import... | Java | core/src/main/java/org/web3j/abi/FunctionReturnDecoder.java | saulbein/web3j | apache-2.0 | 5,139 | 134 | codeparrot/github-code |
df6b87aeacb9e05bfb58c7d390d2048e7337f4e19abc79f95c1729444ecc93b7 | #!/usr/bin/env python
"""A flow to run checks for a host."""
from grr.lib import aff4
from grr.lib import flow
from grr.lib import rdfvalue
from grr.lib.checks import checks
from grr.proto import flows_pb2
class CheckFlowArgs(rdfvalue.RDFProtoStruct):
protobuf = flows_pb2.CheckFlowArgs
class CheckRunner(flow.GRRF... | Python | lib/flows/general/checks.py | wandec/grr | apache-2.0 | 3,098 | 77 | codeparrot/github-code |
5a331925d58f4609113e328dccd452beb38c97af91c64d1095fa2951088f4555 | // Copyright 2020 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the );
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, ... | C | krypton/crypto/rsa_fdh_blinder.h | google/vpn-libraries | apache-2.0 | 3,648 | 109 | codeparrot/github-code |
b69e46832bcc9d326c18c996e44bedfd28a040cb8c8831ba70c2c1d62b476834 | using System;
using System.IO;
using ICSharpCode.SharpZipLib.Checksum;
using ICSharpCode.SharpZipLib.Encryption;
using ICSharpCode.SharpZipLib.Zip.Compression;
using ICSharpCode.SharpZipLib.Zip.Compression.Streams;
namespace ICSharpCode.SharpZipLib.Zip
{
/// <summary>
/// This is an InflaterInputStream that reads th... | C# | deps/ICSharpCode.SharpZipLib/Zip/ZipInputStream.cs | cathy33/Infinity | apache-2.0 | 17,504 | 611 | codeparrot/github-code |
60200db3613508ba5dbbd70802181089968938d65cc8bfe4055d429c2904504b | ' Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
Imports Microsoft.CodeAnalysis
Imports Microsoft.CodeAnalysis.Test.Utilities
Imports Microsoft.CodeAnalysis.Text
Imports Microsoft.CodeAnalysis.VisualBasic
Im... | Visual Basic | src/Compilers/VisualBasic/Test/Emit/CodeGen/CodeGenTuples.vb | KiloBravoLima/roslyn | apache-2.0 | 75,102 | 2,419 | codeparrot/github-code |
3d071d2150e2d666b6ea0b3cb797750915eadb26f7b481628a001d37d2f5a3a1 | /*******************************************************************************
* Copyright 2015, 2016 Junichi Tatemura
*
* 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 | workload/src/main/java/com/nec/strudel/workload/worker/WorkGroup.java | tatemura/strudel | apache-2.0 | 12,867 | 405 | codeparrot/github-code |
d2c0c1e0ab8cde650547d218a73551d85aa4de5993bf513eebb87b5ff4cc2852 | /**********************************************************************************************************************
* This file is part of Scrupal, a Scalable Reactive Content Management System. *
* ... | Scala | src/main/scala/scrupal/store/reactivemongo/DataAccessObject.scala | scrupal/scrupal-store-reactivemongo | apache-2.0 | 13,616 | 326 | codeparrot/github-code |
f1c7cc02718d491458f99d1cb04f625a237b9d8ae6f8b27cf5a826eb6760d4a1 | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="Ionic makes it incredibly easy to build beautiful and interactive mobile apps using HTML5 and AngularJS.">
<meta name="keywords" content="html5,ja... | HTML | _site/docs/1.0.1/api/service/$ionicGesture/index.html | qintengfei/ionic-site | apache-2.0 | 30,845 | 1,318 | codeparrot/github-code |
22c32e5c09cdad96362e8dcaf10664ef1f6465a4fd4f96972a232ebca6a7d68e | package com.treasurehunter.server.persistence.dao;
import com.google.appengine.api.datastore.Key;
import com.treasurehunter.server.persistence.PersistenceManagerFactoryUtil;
import com.treasurehunter.server.persistence.model.DataStoreModel;
import javax.jdo.PersistenceManager;
import javax.jdo.PersistenceManagerFacto... | Java | src/main/java/com/treasurehunter/server/persistence/dao/BaseDAO.java | danielkocsis/playground | apache-2.0 | 2,205 | 100 | codeparrot/github-code |
3f12883ba7a74a18f9e8f25b22d994b283780f30fb9342b57af8248859147ff9 | package com.weblyzard.api.client.integration;
import static org.junit.jupiter.api.Assertions.assertNotNull;
import static org.junit.jupiter.api.Assertions.assertTrue;
import static org.junit.jupiter.api.Assumptions.assumeTrue;
import java.io.File;
import java.io.IOException;
import java.util.HashSet;
import java.util.... | Java | src/java/test/com/weblyzard/api/client/integration/RecognyzeClientIT.java | weblyzard/weblyzard_api | apache-2.0 | 3,440 | 91 | codeparrot/github-code |
63347c9f36f91094a506d9acec3571c14712692ad2e5eb26409c81a2e7cf9357 | /****************************************************************************
Copyright (c) 2010-2012 cocos2d-x.org
Copyright (c) 2008-2010 Ricardo Quesada
Copyright (c) 2011 Zynga Inc.
http://www.cocos2d-x.org
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software ... | C | lib/cocos2d-x/cocos2dx/draw_nodes/CCShapeNode.h | idtek/extendwork | apache-2.0 | 5,943 | 273 | codeparrot/github-code |
3f5b3b3a7fbc5bd44afd1a6ea900e46a1b25fbcc89be012961b20d81d782fee2 | /*
* Copyright (c) 2015, 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.or... | Java | components/event-receiver/org.wso2.carbon.event.receiver.core/src/main/java/org/wso2/carbon/event/receiver/core/internal/type/wso2event/WSO2EventInputMapper.java | lasanthafdo/carbon-analytics-common | apache-2.0 | 22,192 | 360 | codeparrot/github-code |
ab1803416f56f87fffe61fc1d033c6449de84509bf95eea4404a4de10e49d9bb | /*
* Copyright(C) 2014 tAsktoys. All rights reserved.
*/
package com.tasktoys.archelon.data.dao.mongodb;
import com.mongodb.WriteResult;
import com.tasktoys.archelon.data.dao.DiscussionContentDao;
import com.tasktoys.archelon.data.entity.DiscussionContent;
import java.util.logging.Level;
import java.util.logging.Log... | Java | src/main/java/com/tasktoys/archelon/data/dao/mongodb/MongoDbDiscussionContentDao.java | tAsktoys/Archelon | apache-2.0 | 2,151 | 64 | codeparrot/github-code |
593d9c6eb580935b7a4e2bda6cec21b185f1bec55bc1d63df97c121e3127a983 | /*
* 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 | ldap/extras/codec/src/test/java/org/apache/directory/api/ldap/extras/extended/ads_impl/whoAmI/WhoAmIResponseTest.java | darranl/directory-shared | apache-2.0 | 6,926 | 243 | codeparrot/github-code |
dd28a52df2dabb513128ffcbfbe458928dd244652090ea1d12e03dbf8fb7b9f3 | #!/bin/bash
set -e
function osd_directory_single {
if [[ ! -d /var/lib/ceph/osd ]]; then
log "ERROR- could not find the osd directory, did you bind mount the OSD data directory?"
log "ERROR- use -v <host_osd_data_dir>:/var/lib/ceph/osd"
exit 1
fi
# pick one osd and make sure no lock is held
for OS... | Shell | src/daemon/osd_scenarios/osd_directory_single.sh | ceph/ceph-docker | apache-2.0 | 1,425 | 33 | codeparrot/github-code |
aeda64ffea67787fd9c257c5a8886f040fdf8605f15ac6a15560fff4a89082a8 | package com.fig.block.procedure;
import com.fig.annotations.ThreadSafe;
import com.fig.domain.TaskDependency;
import com.fig.manager.Neo4jTaskAdapter;
import com.google.common.annotations.VisibleForTesting;
import com.gs.collections.api.block.procedure.Procedure;
import java.util.Collection;
/**
* Re-usable procedu... | Java | src/main/java/com/fig/block/procedure/TaskDependencyCreator.java | fizalihsan/Fig | apache-2.0 | 985 | 35 | codeparrot/github-code |
da1bbd45d5062d6a874d5bb344ade9450c40278b252485cc2945d98d6002af6a | import {
ComponentAnnotation,
DirectiveAnnotation,
ComponentArgs,
DirectiveArgs
} from './annotations';
import {ViewAnnotation, ViewArgs} from './view';
import {AttributeAnnotation, QueryAnnotation} from './di';
import {makeDecorator, makeParamDecorator, TypeDecorator, Class} from '../../util/decorators';
impor... | TypeScript | modules/angular2/src/core/annotations/decorators.ts | calcyan/angular | apache-2.0 | 1,554 | 49 | codeparrot/github-code |
e7de4f4fb2fa5fe535a6f74d6058559ecdec911a5ffa38ba7871aac7b9eda31a | package com.hubspot.singularity;
import static com.google.common.base.Preconditions.checkNotNull;
import java.util.List;
import java.util.Map;
import java.util.Objects;
import java.util.Optional;
import java.util.Set;
public class SingularityRequestBuilder {
private String id;
private RequestType requestType;
... | Java | SingularityBase/src/main/java/com/hubspot/singularity/SingularityRequestBuilder.java | HubSpot/Singularity | apache-2.0 | 21,354 | 720 | codeparrot/github-code |
8dfc42b9ac9e2d1cb8ab21588f788fedf8be2b2340cb85369f065622f0284915 | //login with system user
grant select on v_$statname to yy;
grant select on v_$mystat to yy;
grant select on v_$timer to yy;
grant select on v_$latch to yy;
create or replace view stats
as select 'STAT...' || a.name name, b.value
from v$statname a, v$mystat b
where a.statistic# = b.statistic#
union... | SQL | studyoracle/runstat.sql | yyitsz/myjavastudio | apache-2.0 | 9,351 | 291 | codeparrot/github-code |
69f061ee3947f6c6a2d97dbf73c4d82ba928b0cd59b94726bc7a39cbcd53eb22 | /*
* Copyright 2016 Gurupad Mamadapur
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by appl... | Java | app/src/main/java/com/calgen/prodek/fadflicks/Activity/DetailActivity.java | Protino/Fad-Flicks | apache-2.0 | 7,418 | 195 | codeparrot/github-code |
7bbfa1b9d7b8ffe57e4de95b2020b371ecf042f8a1bc5de6db0f2d60e5c1bd2d | package com.salesmanager.shop.store.api.v1.product;
import javax.inject.Inject;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.http.HttpStatus;
import org.springframework.stereotype.Contro... | Java | sm-shop/src/main/java/com/salesmanager/shop/store/api/v1/product/ProductGroupApi.java | shopizer-ecommerce/shopizer | apache-2.0 | 9,060 | 255 | codeparrot/github-code |
16c30ae25e9139158a06dbfa52031f15230f33af662d3ebdc0017282404a3197 | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>String Helper : revIgniter User Guide</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="robots" content="all" />
<meta name="author" ... | HTML | userGuide/helpers/string_helper.html | bhall2001/revigniter-restserver | apache-2.0 | 8,683 | 235 | codeparrot/github-code |
17f3d4fac61e229638891add9d02f9fa213771cec1d45b24320f8fea8a35148c | // SPDX-License-Identifier: Apache-2.0
// Copyright 2019 Authors of Cilium
package cmd
import (
"fmt"
"os"
"text/tabwriter"
"github.com/spf13/cobra"
"github.com/cilium/cilium/pkg/command"
)
// policyGetCmd represents the policy_get command
var policyCacheGetCmd = &cobra.Command{
Use: "selectors",
Short: "... | GO | cilium/cmd/policy_selectors.go | michi-covalent/cilium | apache-2.0 | 1,280 | 57 | codeparrot/github-code |
a5fd7545265aaf67f4cb4fc2d475d7fcfa813cbda77d75dae87b93781c98be97 | /*
* Copyright 2017-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
* the License. A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "licen... | Java | aws-java-sdk-nimblestudio/src/main/java/com/amazonaws/services/nimblestudio/model/StreamingSessionStreamStatusCode.java | aws/aws-sdk-java | apache-2.0 | 2,130 | 65 | codeparrot/github-code |
3c5ba6b2b936e6e6fa464cf5dd227435d8e0b014428ee9f0374da53d50501ef0 | # 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/services/datastore.py | tonybaloney/st2 | apache-2.0 | 8,753 | 267 | codeparrot/github-code |
172ff11d225327f4999470f898a74cff95b5369e2472142e1c1dab8ba152c748 | # stdlib
from collections import defaultdict
import sys
from typing import Any as TypeAny
from typing import Callable
from typing import Dict
from typing import KeysView
from typing import List as TypeList
from typing import Set
# third party
from cachetools import cached
from cachetools.keys import hashkey
# relativ... | Python | packages/syft/src/syft/lib/misc/__init__.py | OpenMined/PySyft | apache-2.0 | 6,217 | 160 | codeparrot/github-code |
83a6e8a2ef017a368363b3aaaaea210b6833544a8308744dff73a96726467b6a | package com.juanan.pocs.companies.web.controller;
import javax.servlet.http.HttpSession;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.b... | Java | src/main/java/com/juanan/pocs/companies/web/controller/InicioController.java | JuananIBM/WebCompanies | apache-2.0 | 2,702 | 84 | codeparrot/github-code |
10c6ed111808593cfa3c0a0a3ebeec8574ddbe12b756179719d1612202c42919 | /*
* Report.h
*
* Report AP information and environment to Manger
* If Manger send command, execute proper action.
*/
#ifndef REPORT_H_
#define REPORT_H_
#include "Packet.h"
#include "APInformation.h"
#include "Socket.h"
#include "hostap.h"
#include "Database.h"
#include "Action.h"
#include <stdio.h>
#include <s... | C | agent/lib/bak/Report.h | OpenWinCon/OpenWinNet | apache-2.0 | 1,197 | 69 | codeparrot/github-code |
59e3c3d8cdf83b955007f649e47caaeaee708bd1576a2eb335a99e78ff212af1 | package com.cloud.legacymodel.to;
import com.cloud.legacymodel.InternalIdentity;
import com.cloud.legacymodel.network.vpc.NetworkACLItem;
import com.cloud.legacymodel.network.vpc.NetworkACLItem.TrafficType;
import java.util.ArrayList;
import java.util.List;
public class PublicIpACLTO implements InternalIdentity {
... | Java | cosmic-model/src/main/java/com/cloud/legacymodel/to/PublicIpACLTO.java | MissionCriticalCloud/cosmic | apache-2.0 | 3,620 | 137 | codeparrot/github-code |
a56a6e3abfa4dfa0dc17d4e26083c597c22b08965e07ec11da8ae1cd0a33bf91 | /*
* Copyright 2017 David Karnok
*
* 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 | src/test/java/hu/akarnokd/reactive4javaflow/impl/operators/FolyamMapWhenTest.java | akarnokd/Reactive4JavaFlow | apache-2.0 | 10,364 | 376 | codeparrot/github-code |
19a28ef3fcf96b7b074b7d88b7cc8ea127e501e02058ffd36c4d6ecdc5188464 | /*
* Copyright (c) 2002-2018 "Neo Technology,"
* Network Engine for Objects in Lund AB [http://neotechnology.com]
*
* This file is part of Neo4j.
*
* Neo4j 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 Foundatio... | Java | community/kernel/src/test/java/org/neo4j/helpers/TestExceptions.java | HuangLS/neo4j | apache-2.0 | 5,841 | 189 | codeparrot/github-code |
abc530bf2d29ba1b994b0d61f3b7783983c351291afd23fdf032cfc952bbae47 | /*
* Copyright (C) 2010-2013 The SINA WEIBO 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 require... | Java | library-joy/src/main/java/com/joy/library/share/weibo/openapi/legacy/TagsAPI.java | joy-inc/joy-library | apache-2.0 | 4,344 | 131 | codeparrot/github-code |
6d7df965cb45aec910959c6353387b685bf47ce3f328e3437b38f29d0be8b3d3 | /**
* Created by zhangh on 2017/02/12.
*/
$(function () {
//平衡左右侧高度
$('#rightContent').css("minHeight", $('#leftNav').height() > $('#rightContent').height() ? $('#leftNav').height() : $('#rightContent').height());
//展开左侧导航
$(".selected").parents("ul").addClass("open");
$(".selected").parents(".men... | JavaScript | common/js/mdui.js | izhangh/yunwuUI | apache-2.0 | 14,675 | 368 | codeparrot/github-code |
734ced33cfc817c8dcb3f5002528d37544b148a333df3990770b97b3c9d5de3a | <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<!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>NcHIPertITwoFl... | HTML | manual/NcHIPertITwoFluids.html | NumCosmo/NumCosmo.github.io | apache-2.0 | 25,954 | 476 | codeparrot/github-code |
b45a5b38e748e7e5575d39cebd317fde9988a4a13f052926eaaefd541ad7ca65 | /**
* **************************************************************
* Licensed to the AOS Community (AOS) under one or more *
* contributor license agreements. See the NOTICE file *
* distributed with this work for additional information *
* regarding copyright ownership. The AOS licenses ... | Scala | spark/core/src/main/scala/io/aos/spark/core/count/SimpleCount.scala | echalkpad/t4f-data | apache-2.0 | 2,319 | 58 | codeparrot/github-code |
f7a8f20c5e2de76c19a916955c028906b77d40ab160b6662ca9c6a7daf160b16 | /*
* 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 | phoenix-core/src/main/java/org/apache/phoenix/parse/ParseNodeFactory.java | cloudera-labs/phoenix | apache-2.0 | 31,006 | 701 | codeparrot/github-code |
5f576de93fc9fc389c193ccb08840a28c28b03cedd53f11e7b3bce40dfd1bdee | package dao
import (
"context"
"database/sql"
"go-common/app/service/live/resource/model"
"go-common/library/ecode"
"go-common/library/log"
"time"
"github.com/jinzhu/gorm"
)
var (
addSql = "INSERT INTO `user_resource`(`res_type`,`custom_id`,`title`,`url`,`weight`,`status`,`creator`) values (?,?,?,?,?,?,?)... | GO | 126-go-common-master/app/service/live/resource/dao/user_resource.go | LQJJ/demo | apache-2.0 | 5,010 | 188 | codeparrot/github-code |
a4b4b3186020618265e409307836bb55f321a25604b8105a3668ceaf35e65b2b | package org.gridkit.jvmtool.stacktrace;
import java.io.IOException;
import java.lang.management.ManagementFactory;
import org.junit.Test;
public class ThreadSamplerCheck {
@Test
public void checkNoTraceNoPriming() throws IOException {
ThreadDumpSampler sampler = new ThreadDumpSampler();
sam... | Java | sjk-stacktrace/src/test/java/org/gridkit/jvmtool/stacktrace/ThreadSamplerCheck.java | aragozin/jvm-tools | apache-2.0 | 1,849 | 72 | codeparrot/github-code |
4c5edc2780a44111ed3bcee52cbb86e1445a100aa10b25611d0564696e74e810 | #ifndef __UTILS_H__
#define __UTILS_H__
/*
* Copyright 2014 Open Connectome Project (http://openconnecto.me)
* Written by Da Zheng (zhengda1936@gmail.com)
*
* This file is part of FlashGraph.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance wit... | C | flash-graph/utils.h | icoming/FlashGraph | apache-2.0 | 3,578 | 168 | codeparrot/github-code |
8d13948e4c729a86feacbfeeb6325a8c2c6a8128b010fceefd14a43fec68e028 | //--------------------------------------------------------------------------------------
// File: DepthOfField.cpp
//
// Depth of field
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//--------------------------------------------------------------------------------------
#include "DXUT.h"
#include "DXU... | C++ | PlanetSim/DirectX/Samples/C++/Direct3D/DepthOfField/DepthOfField.cpp | MorrigansWings/GamePhysics | apache-2.0 | 43,281 | 1,041 | codeparrot/github-code |
93263d4741f43d95a291d60634afcfca1871fbc5c6911ddb6890486835c81cdf | #include "imesample.h"
#include "helper.h"
#include <stdarg.h>
/**********************************************************************/
/* */
/* UI_IsIMEMessage(message) */
/* ... | C | imesample/helper.c | ruixj/windowsIME | apache-2.0 | 2,021 | 78 | codeparrot/github-code |
0de664437c938cbae7a913aac6d8694646ad0ff0abaecfd7047625359eb9a688 | import { Message } from "botkit";
import { Intent, Entity } from "../index";
export interface DialogFlowMessage extends Message {
/**
* The top intent of the message.
*/
topIntent: Intent,
/**
* A list of possible intents.
*/
intents: Intent[],
/**
* The entities th... | TypeScript | src/middleware/botkit-nlp/dialogflow-v1/index.d.ts | danielnguyen/mavis | apache-2.0 | 1,506 | 84 | codeparrot/github-code |
924deb6a805fbeb830ba46c927dc674f8c1c18947f75c086542dc1749f75bc9a | /*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* See the NOTICE file distributed with this work for additional
* information regarding copyright ownership.
* You may obtain a copy of the License at
*
* http://www.apache.... | Java | src/test/java/io/appium/java_client/ios/BaseIOSTest.java | SrinivasanTarget/java-client | apache-2.0 | 2,135 | 63 | codeparrot/github-code |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.