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 |
|---|---|---|---|---|---|---|---|---|
b66173f5ac0c942618e57d64c713edceed157cc1da774e6e69387139043e551b | /************************************************************
* * EaseMob CONFIDENTIAL
* __________________
* Copyright (C) 2013-2014 EaseMob Technologies. All rights reserved.
*
* NOTICE: All information contained herein is, and remains
* the property of EaseMob Technologies.
* Dissemination of this info... | Java | src/com/easemob/chatuidemo/activity/RecorderVideoActivity.java | liyuzhao/enterpriseChat-android | apache-2.0 | 16,459 | 607 | codeparrot/github-code |
2d3c58fda53e24a4d3206c4c8bd594cfae0c64d64592704347d55ba37a63f65e | // Copyright © 2017 Chocolatey Software, Inc
// Copyright © 2011 - 2017 RealDimensions Software, 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.apach... | C# | src/chocolatey.tests.integration/scenarios/ListScenarios.cs | Apteryx0/choco | apache-2.0 | 16,492 | 422 | codeparrot/github-code |
66d4fa39a1aa77b2f72b6d51fd7030d0ee9723b22920124f59e307f87f63f545 | import { Component, OnInit } from '@angular/core';
import { ActivatedRoute } from '@angular/router';
import { Location } from '@angular/common';
import { Merch } from '../data/merch';
import { MerchService } from '../data/merch.service';
@Component({
selector: 'app-merch-display',
templateUrl: './merch-display.co... | TypeScript | angular-predictive-prefetching/client/src/app/merch-display/merch-display.component.ts | tensorflow/tfjs-examples | apache-2.0 | 1,198 | 47 | codeparrot/github-code |
1c39b0f581aeaaeefc2603896c9e285843af731e2de8916b7dc157d8eac00819 | package com.github.sergejsamsonow.codegenerator.producer.pojo.renderer;
import com.github.sergejsamsonow.codegenerator.api.producer.sc.SCMethodCodeConcatenator;
import com.github.sergejsamsonow.codegenerator.api.producer.sc.SCNewLineAndIndentationFormat;
import com.github.sergejsamsonow.codegenerator.producer.pojo.mod... | Java | producer/pojo/src/main/java/com/github/sergejsamsonow/codegenerator/producer/pojo/renderer/JavaLangToString.java | sergej-samsonow/code-generator | apache-2.0 | 1,597 | 41 | codeparrot/github-code |
8346a2197f09826b05a550235ee123a8c208ef21264c853ac2f3b9a369a205a9 | /**
* Copyright 2013-present NightWorld.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or ag... | JavaScript | lib/authorise.js | zoltangbereczky/node-oauth2-server | apache-2.0 | 6,699 | 241 | codeparrot/github-code |
d67ab09f2fe3e744e89918c987b23ced13a78f2625ecea60625f4b711af40d72 | from functools import wraps
import json
import os
import traceback
import validators
from jinja2 import Environment, PackageLoader
from notebook.utils import url_path_join
from notebook.base.handlers import IPythonHandler
import requests
from requests.auth import HTTPBasicAuth
env = Environment(
loader=PackageLo... | Python | saagie/server_extension.py | saagie/jupyter-saagie-plugin | apache-2.0 | 16,090 | 489 | codeparrot/github-code |
dc55b89ff4328736e624da8654865c76c2f0267ca6c9dc89668c1f03436c262c | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using SuperMap.WinRT.Core;
using SuperMap.WinRT.Utilities;
using Windows.Data.Json;
using Windows.UI;
namespace SuperMap.WinRT.REST
{
/// <summary>
/// <para>${REST_ServerLayer_Title}</para>
/// <para>${REST_ServerLaye... | C# | iClient60ForWinRT/SuperMap.WinRT.REST/Map/GetMapStatusAndLayerInfo/ServerLayer.cs | SuperMap/iClient-for-Win8 | apache-2.0 | 11,874 | 261 | codeparrot/github-code |
b714ab212976fa5bd68f07eac8df6bafac27340bfff0deb23f4f6c847533ea26 | /*
* Copyright 2014 Alexey Andreev.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or... | Java | teavm-classlib/src/main/java/org/teavm/classlib/java/util/TRandom.java | mpoindexter/teavm | apache-2.0 | 1,877 | 74 | codeparrot/github-code |
dc0c8b36b89db03f8c9ac9bc490552cb56e8d7dfc2fe74d3db810f96b480f2d0 | #include <iostream>
#include "SParser.hpp"
#pragma once
namespace Silent
{
/*static class SymTablePrinter
{
public:
static void Out(std::string str, uint64_t currentTab)
{
std::string tabs = "";
for (uint64_t i = 0; i < currentTab; i++) tabs += "\t";
... | C++ | SilentCompiler/include/SHelper.hpp | EdwinRybarczyk/SilentProgrammingLanguage | apache-2.0 | 2,595 | 85 | codeparrot/github-code |
8c0eebaabc7527b5e8b6d881df2575c55e01d1ee2212cf39631a4fccc3521538 | /* Copyright (c) The m-m-m Team, Licensed under the Apache License, Version 2.0
* http://www.apache.org/licenses/LICENSE-2.0 */
package net.sf.mmm.util.io.base;
import net.sf.mmm.util.exception.api.NlsNullPointerException;
/**
* This class is similar to {@link java.nio.ByteBuffer} but a lot simpler.
*
* ... | Java | io/src/main/java/net/sf/mmm/util/io/base/ByteArrayImpl.java | m-m-m/util | apache-2.0 | 2,897 | 114 | codeparrot/github-code |
2f560561ac686a7ce76e5df43b3b903e54d3fbd05a231a6184241d927dc3b274 | /*
* Licensed to Crate under one or more contributor license agreements.
* See the NOTICE file distributed with this work for additional
* information regarding copyright ownership. Crate licenses this file
* to you under the Apache License, Version 2.0 (the "License"); you may
* not use this file except in compl... | Java | server/src/test/java/io/crate/execution/engine/collect/DocValuesGroupByOptimizedIteratorTest.java | EvilMcJerkface/crate | apache-2.0 | 10,272 | 267 | codeparrot/github-code |
6f371458551f101b534b547e85ec48349b191e619b0c30b937ae8872dd21736f | /*
* Copyright (C) 2018 the original author or authors.
*
* This file is part of jBB Application Project.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0
*/
package org.jbb.security.rest.oauth.cl... | Java | domain-rest/jbb-security-rest/src/main/java/org/jbb/security/rest/oauth/client/ClientSecretDto.java | jbb-project/jbb | apache-2.0 | 751 | 32 | codeparrot/github-code |
c1a8c2698f4af2ac41e83c31426eb4a904f57274c2f872afd0fff222b3a0ce9b | #
# Author:: Steven Danna (<steve@chef.io>)
# Author:: Tyler Cloke (<tyler@chef.io>)
# Copyright:: Copyright (c) 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 obt... | Ruby | lib/chef/knife/user_create.rb | jaymzh/chef | apache-2.0 | 3,187 | 108 | codeparrot/github-code |
2b21ffc7324f1fdc467ebc4a96a3a2365deb96752fababdb0b283947ed9fc9c6 | import numpy as np
class WordClusters(object):
def __init__(self, vocab, clusters):
self.vocab = vocab
self.clusters = clusters
def ix(self, word):
"""
Returns the index on self.vocab and self.clusters for 'word'
"""
temp = np.where(self.vocab == word)[0]
... | Python | word2vec/wordclusters.py | danielfrg/word2vec | apache-2.0 | 1,041 | 37 | codeparrot/github-code |
56ef6a3543315475b43a9d115813992ca90ba3bd30a0cbee2e65e13a9140beeb | package Paws::CloudDirectory::BatchDetachFromIndex;
use Moose;
has IndexReference => (is => 'ro', isa => 'Paws::CloudDirectory::ObjectReference', required => 1);
has TargetReference => (is => 'ro', isa => 'Paws::CloudDirectory::ObjectReference', required => 1);
1;
### main pod documentation begin ###
=head1 NAM... | Perl | auto-lib/Paws/CloudDirectory/BatchDetachFromIndex.pm | ioanrogers/aws-sdk-perl | apache-2.0 | 1,824 | 65 | codeparrot/github-code |
db18a72c9b79e32455aa613a6db72c3c33d723ce9b0328c4527389639bc4258d | /*
* DBeaver - Universal Database Manager
* Copyright (C) 2010-2017 Serge Rider (serge@jkiss.org)
* Copyright (C) 2011-2012 Eugene Fradkin (eugene.fradkin@gmail.com)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You... | Java | plugins/org.jkiss.dbeaver.ext.oracle/src/org/jkiss/dbeaver/ext/oracle/views/PrefPageOracle.java | ruspl-afed/dbeaver | apache-2.0 | 4,753 | 123 | codeparrot/github-code |
57cc083bee679d164950258cfe71cfa4a31e942672b7b65dd2389222d80ffb7c | package com.winsun.fruitmix.model;
/**
* Created by Administrator on 2016/7/6.
*/
public class Equipment {
private String serviceName;
private String host;
private int port;
public Equipment(String serviceName, String host, int port) {
this.serviceName = serviceName;
this.host = hos... | Java | app/src/main/java/com/winsun/fruitmix/model/Equipment.java | andywu91/fruitMix-android | apache-2.0 | 815 | 45 | codeparrot/github-code |
0c1075e21a81127b489149e6e4163dbbeca6155f1125876be1b5504c46e0b083 | // Copyright 2015 PingCAP, Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to i... | GO | types/compare.go | Cofyc/tidb | apache-2.0 | 2,788 | 131 | codeparrot/github-code |
8f70ea2ac7c2c778cea1dea55cb13b7caaca2da2bb349b8e3ff80c548dad9922 | package com.wangshan.service.impl;
import com.wangshan.dao.UserDao;
import com.wangshan.models.User;
import com.wangshan.service.ValidateService;
import com.wangshan.utils.gabriel.EncryptUtil;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
/**
... | Java | backend/src/main/java/com/wangshan/service/impl/ValidateServiceImpl.java | sanyiwangshan/my_space | apache-2.0 | 1,047 | 38 | codeparrot/github-code |
999e19884ecbb302926d884a7cfdc93b3c7bdd453f37024eb9fd75f2515762f3 | /* ###
* IP: GHIDRA
* REVIEWED: YES
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or ag... | Java | Ghidra/Framework/Generic/src/main/java/ghidra/util/prop/SaveableObjectPropertySet.java | NationalSecurityAgency/ghidra | apache-2.0 | 3,858 | 133 | codeparrot/github-code |
631dc02654876f83e57abc39268ed0f37e83ec02d11eb37551a9ea70101c92e0 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Text.RegularExpressions;
using HtmlAgilityPack;
namespace Html2Markdown.Replacement
{
internal static class HtmlParser
{
private static readonly Regex NoChildren = new Regex(@"<(ul|ol)\b[^>]*>(?:(?!<ul|<ol)[\s\S])*?<\... | C# | src/Html2Markdown/Replacement/HtmlParser.cs | baynezy/Html2Markdown | apache-2.0 | 7,024 | 272 | codeparrot/github-code |
3be8a6da52583cf9e1f3fe31832ce7bb22f175fa6cd0bdc241d39776e6d10cfe | /**
* 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"); yo... | Java | camel-core/src/test/java/org/apache/camel/component/seda/SedaInOutWithErrorDeadLetterChannelTest.java | everttigchelaar/camel-svn | apache-2.0 | 2,341 | 58 | codeparrot/github-code |
e76f5236170ce4b90cde8510db45bf64125c02d2ded6b2635fac7ce65bf8a39f | // Copyright 2017 Google Inc. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable... | GO | merkle/coniks/coniks.go | Martin2112/trillian | apache-2.0 | 5,031 | 159 | codeparrot/github-code |
d172dac112e25aa6fb3921d0ff0c31341a0ffe32287fa75de9d58645c590fa98 | /*
* Copyright 2010-2014 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 "l... | C# | sdk/src/Services/WAF/Generated/Model/Internal/MarshallTransformations/RuleSummaryUnmarshaller.cs | rafd123/aws-sdk-net | apache-2.0 | 3,306 | 98 | codeparrot/github-code |
c0c5275fc4b73c4d1ef16da219fa54d7bc2df467b0ade93fc962f8c23629ae23 | /*
Copyright 2015 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 | staging/src/k8s.io/apiserver/pkg/endpoints/installer.go | NickrenREN/kubernetes | apache-2.0 | 44,987 | 1,148 | codeparrot/github-code |
e650d608c12c4beecc5183dadfe9e5d93806302e79a8ef4cce88cada0ff4487a | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
<meta http-equiv="Content-Type" content="application/xhtml+xml; charset=UTF-8" />
<meta name="generator" content="AsciiDoc 8.6.8" />
<title>git-filter-br... | HTML | RailsInstaller_D/Git/doc/git/html/git-filter-branch.html | ArcherCraftStore/ArcherVMPeridot | apache-2.0 | 36,402 | 1,223 | codeparrot/github-code |
90e6ee4a74cabb54b4f6c38508c3c419ca61d6d9ee542db2e825d881bdaae2bf | // -*- coding: us-ascii-unix -*-
// Copyright 2012 Lukas Kemmer
//
// 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 a... | C++ | text/utf8-string.cpp | lukas-ke/faint-graphics-editor | apache-2.0 | 6,218 | 241 | codeparrot/github-code |
70da353c8af304d86ded949760da37a92ad1c464ff0a69abf800cca74e80f482 | package com.asura.monitor.platform.dao;
import com.asura.framework.base.paging.PagingResult;
import com.asura.framework.base.paging.SearchMap;
import com.asura.framework.dao.mybatis.base.MybatisDaoContext;
import com.asura.framework.dao.mybatis.paginator.domain.PageBounds;
import com.asura.common.dao.BaseDao;
import c... | Java | server/src/main/java/com/asura/monitor/platform/dao/MonitorPlatformServerDao.java | AsuraTeam/monitor | apache-2.0 | 1,279 | 43 | codeparrot/github-code |
c1fb8ee5793bd2ea855d27ad171cfa77f6a97c08047d8ebdceefacbf3c0a65f1 | /*
* Copyright (c) 2008-2017, 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/main/java/com/hazelcast/map/impl/MapKeyLoaderUtil.java | dbrimley/hazelcast | apache-2.0 | 7,145 | 180 | codeparrot/github-code |
ffa4deb0552ee07abed4bde0a518d3b072a6116e573bfff393e617bc5ec96469 | <?php
defined('ABSPATH') or die('No script kiddies please!');
/**
* Undocumented function
*
* @return void
*/
function Yonk_numeric_posts_nav() {
if(is_singular())
return;
global $wp_query;
/** Stop execution if there's only 1 page */
if($wp_query->max_num_pages <= 1)
return;
... | PHP | wp-content/themes/YonkTheme/yonk-core/plugins/pagenavi.php | Patreo/yonk | apache-2.0 | 2,209 | 75 | codeparrot/github-code |
5038219d4acc0f360defda20123506c8e5d6e44ca43e7ff5868ecd4a966485a6 | package org.targettest.org.apache.lucene.index;
/**
* 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... | Java | provocateur-thirdparty/src/main/java/org/targettest/org/apache/lucene/index/MultiReader.java | chrishumphreys/provocateur | apache-2.0 | 14,073 | 431 | codeparrot/github-code |
70ce4b3d0e4191277a01f897e5d7abaf072343ddf9a5499ee81d435ec781db75 | import os,json
from cgi import escape
def unescape(s):
s = s.replace("<", "<")
s = s.replace(">", ">")
# this has to be last:
s = s.replace("&", "&")
return s
class FilesystemMixin:
def h_fs_get(_,path,eltName=''):
from stat import S_ISDIR
data = (escape(open(path).re... | Python | fssvr/fs.py | val314159/framist | apache-2.0 | 1,267 | 38 | codeparrot/github-code |
a1091b661f5f09daf4c23bb25df7da9f690b4ef68d4ce6ef1dc416cbbf416d00 | // Copyright 2016 PingCAP, Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to i... | GO | db.go | cwen0/cdb-syncer | apache-2.0 | 9,435 | 383 | codeparrot/github-code |
4dd4617050d629456552a49b740286d8c9cfc2b00ea3d329d5f3efb8d2a3a608 | package com.basicalgorithms.coding_games;
import java.util.HashSet;
import java.util.Objects;
import java.util.Scanner;
import java.util.Set;
/**
* Original question: https://www.codingame.com/multiplayer/bot-programming/coders-strike-back
*/
public class CodersStrikeBack {
static double longestDist = Integer.... | Java | src/test/java/com/basicalgorithms/coding_games/CodersStrikeBack.java | Ericliu001/basic-algorithms | apache-2.0 | 6,186 | 180 | codeparrot/github-code |
58bd62dcec6c9ce24bac23e27e97577db9ca7f2bdef2f9240792d6d186dc3c47 | 'use strict';
var path = require('path');
var util = require('util');
module.exports = function(grunt) {
grunt.registerMultiTask('vjslanguages', 'A Grunt plugin for compiling VideoJS language assets.', function() {
var createLanguageFile = function(languageName, languageData, jsFilePath) {
var jsTemplate... | JavaScript | tasks/videojs_languages.js | videojs/grunt-videojs-languages | apache-2.0 | 1,338 | 36 | codeparrot/github-code |
2c5954dda1f6b4aa44850880af06455d77726b6413cf91950244dfebdf00813e | $(document).ready(function(){
$("#inc_tab #tb1").removeClass();
$("#inc_tab #tb4").addClass("active");
$("#user_name").blur(function(){
var user_name = $.trim($(this).val());
$(this).val(user_name);
if (user_name.length==0){
$(this).parent().find("#user_name_null_warn").show();
$(this).parent().fin... | JavaScript | src/main/webapp/WEB-INF/js/user/userEditor.js | wxiwei/manage | apache-2.0 | 1,530 | 60 | codeparrot/github-code |
aebbd557c21588c4df1e99bcf164d396d7b1109aad4634dae188769167f63254 | // Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.jdisc.client;
import com.google.inject.AbstractModule;
import com.google.inject.Inject;
import org.junit.Test;
import static org.junit.Assert.assertEquals;
/**
* @author Simon Thoresen Hult
*... | Java | jdisc_core/src/test/java/com/yahoo/jdisc/client/ClientDriverTestCase.java | vespa-engine/vespa | apache-2.0 | 1,946 | 79 | codeparrot/github-code |
8bcfcf26c23b9c7cc3c2ff5d9c74d73f7d97457d17e34305eb2a5fcc4356c156 | #!/usr/bin/env perl
# Copyright [1999-2015] Wellcome Trust Sanger Institute and the EMBL-European Bioinformatics Institute
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://ww... | Perl | scripts/import/quality_check.pl | dbolser/ensembl-variation | apache-2.0 | 40,355 | 1,268 | codeparrot/github-code |
de022dd31af0021365d6984c452d64afc5e51b55eb2df33e43eecf3af5eb346f | /*
Copyright 2016 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 | testgrid/cmd/config/main.go | krousey/test-infra | apache-2.0 | 2,010 | 77 | codeparrot/github-code |
c629792e9748ab76a40190e5aeedaa8b96a7add8d81fdd885216f295311dc9e1 | require_relative '../netapp_cmode'
Puppet::Type.type(:netapp_lun).provide(:cmode, :parent => Puppet::Provider::NetappCmode) do
@doc = "Manage Netapp Lun creation, modification and deletion. [Family: vserver]"
confine :feature => :posix
defaultfor :feature => :posix
netapp_commands :lunlist => {:api => 'lu... | Ruby | lib/puppet/provider/netapp_lun/cmode.rb | puppetlabs/puppetlabs-netapp | apache-2.0 | 5,287 | 159 | codeparrot/github-code |
ca9290976b5aa8cc19422c1296e3c51d3a5b64ff76ed7215be5d7ff96b5b7990 | /**
* Copyright (C) 2014-2015 LinkedIn Corp. (pinot-core@linkedin.com)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unle... | Java | pinot-core/src/main/java/com/linkedin/pinot/core/startree/OffHeapStarTreeBuilder.java | tkao1000/pinot | apache-2.0 | 28,902 | 744 | codeparrot/github-code |
2ba879c13ba2f16db2bdfcfe186db05b2c7c8126a8a13ac5321b40c77f219820 | /*
* Copyright 2011 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 applica... | Java | subprojects/signing/src/main/java/org/gradle/plugins/signing/SignOperation.java | robinverduijn/gradle | apache-2.0 | 7,371 | 239 | codeparrot/github-code |
112a7eda397a19b57138afab03ef122ca34b3c202a4fd0d29afb9795bca402b3 | /*
* Copyright 2013-2021 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by ap... | Java | cloudfoundry-client/src/main/java/org/cloudfoundry/client/v2/spaces/_UpdateSpaceRequest.java | cloudfoundry/cf-java-client | apache-2.0 | 2,193 | 97 | codeparrot/github-code |
5c3eab3f48f20f1f0f79cf09d2c37903dae275f02470ec248aa62cc2f6817312 | /**
* Copyright (C) 2013
* by 52 North Initiative for Geospatial Open Source Software GmbH
*
* Contact: Andreas Wytzisk
* 52 North Initiative for Geospatial Open Source Software GmbH
* Martin-Luther-King-Weg 24
* 48155 Muenster, Germany
* info@52north.org
*
* This program is free software; you can redistribut... | Java | src/bindings/rest/code/src/main/java/org/n52/sos/binding/rest/resources/OptionsRestRequest.java | sauloperez/sos | apache-2.0 | 1,863 | 63 | codeparrot/github-code |
0b862de42f296573ef92997e21f204e59c49d7d889f716dcca242a390ad776cd | package org.adligo.tests4j.system.shared.trials;
import org.adligo.tests4j.shared.common.ClassMethods;
import org.adligo.tests4j.shared.xml.I_XML_Builder;
public class TrialParamValue implements I_TrialParamValue {
public static final String TAG_NAME = "value";
public static final String CLASS_NAME = "class";
pu... | Java | src/org/adligo/tests4j/system/shared/trials/TrialParamValue.java | adligo/tests4j.adligo.org | apache-2.0 | 1,384 | 52 | codeparrot/github-code |
5e5b9159c2c0bbff39c48a0324f81e42f3aa9e4d6c1868fe0c6b70c3bd056a05 | """
Installs and configures MySQL
"""
import uuid
import logging
from packstack.installer import validators
from packstack.installer import utils
from packstack.modules.ospluginutils import getManifestTemplate, appendManifestFile
# Controller object will be initialized from main flow
controller = None
# Plugin nam... | Python | packstack/plugins/mysql_001.py | tangfeixiong/packstack | apache-2.0 | 5,760 | 135 | codeparrot/github-code |
aeaf0444bec89b7bb2da32e8352fc754333f6bae2148db8b49a694c35e738a46 | /*
Copyright 2018 The OpenEBS 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, soft... | GO | pkg/algorithm/nodeselect/v1alpha2/select_node.go | prateekpandey14/maya | apache-2.0 | 7,242 | 208 | codeparrot/github-code |
1800f50f90650b222234b36d4931de2474f806d78ab15a6d8c64ddf32ff089e5 | <!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.0-beta.10/api/ionic/service/index.html | martinjbaker/ionic-site | apache-2.0 | 29,172 | 1,130 | codeparrot/github-code |
bbb272ed496d88b39a0bb0e9593254322c6275c03c80725e5763298ced534b71 | # Copyright 2022 The Magenta 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 ... | Python | note_seq/constants.py | magenta/note-seq | apache-2.0 | 2,620 | 97 | codeparrot/github-code |
71d1d1b7d34f36b44ef799dce59eda5ab29ff8e4496db2ec0031107b0d60afad | # Copyright 2018 PerfKitBenchmarker Authors. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by appli... | Python | perfkitbenchmarker/providers/aws/aws_logs.py | GoogleCloudPlatform/PerfKitBenchmarker | apache-2.0 | 3,293 | 102 | codeparrot/github-code |
1b377cd2de4f73a8e9263d169ced2de6526aa9fdc2ec8012cf5f91f77d3023a4 | /*
Copyright 2016 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 | cmd/kops/rollingupdatecluster.go | gambol99/kops | apache-2.0 | 13,554 | 411 | codeparrot/github-code |
a19ee036138d598c4443513270ae741c1a1dd3d832559286898a623d99403016 | /*******************************************************************************
* Copyright (c) 2012, 2015 Pivotal Software, Inc.
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Apache License,
* Version 2.0 (the "License"); you may not use this ... | Java | cn.dockerfoundry.ide.eclipse.server.core/src/cn/dockerfoundry/ide/eclipse/server/core/internal/ServerEventHandler.java | osswangxining/dockerfoundry | apache-2.0 | 3,808 | 99 | codeparrot/github-code |
2340cb281677a2766c227a378c8f3aee8249df264d09c4e60c30fc02747449d0 | /**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... | TypeScript | interactive-visualizers/projects/playground/src/environments/environment.ts | tensorflow/tfjs-examples | apache-2.0 | 2,403 | 57 | codeparrot/github-code |
59ce2636776e19ab0350a40211b600e737e981be251a206ab4d37996a8b198dd | using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Diagnostics;
namespace MT5LiquidityIndicator.Net.Settings
{
[DisplayName("Line Settings")]
public class LineSettings
{
#region contruction
public LineSettings()
... | C# | Source/MT5LiquidityIndicator/MT5LiquidityIndicator.Net/Settings/LineSettings.cs | marmysh/MT5-Liquidity-Indicator | apache-2.0 | 2,166 | 111 | codeparrot/github-code |
f0f5d6ce5f99112a505453acdeadecbdfd667a738b55eb78dbe330dada89a85b | /*
* Copyright 2016 Bjoern Bilger
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed t... | Java | core/jrestless-core-container/src/test/java/com/jrestless/core/container/JRestlessContainerResponseWriterTest.java | bbilger/jrestless | apache-2.0 | 5,472 | 137 | codeparrot/github-code |
532918d00bbfb688f6f06c4b38ef3609978841caf52678747ddc4861842fd005 | /*
* 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 | core/src/main/java/com/github/fhuss/kafka/streams/cep/core/state/internal/Aggregated.java | fhussonnois/kafkastreams-cep | apache-2.0 | 2,076 | 73 | codeparrot/github-code |
070de22fe6d18b76e2b26fd5c187f14909a352afdd3891269e8d7d8a4fe80107 | /*
* ! ${copyright}
*/
sap.ui.define([
"delegates/odata/v4/TableDelegate",
"sap/ui/core/Core"
], function(
TableDelegate,
Core
) {
"use strict";
/**
* Test delegate for OData V4.
*/
var ODataTableDelegate = Object.assign({}, TableDelegate);
/**
* Updates the binding info with the relevant path and mo... | JavaScript | src/sap.ui.mdc/test/sap/ui/mdc/internal/TableWithFilterBar/delegate/GridTable.delegate.js | SAP/openui5 | apache-2.0 | 1,110 | 43 | codeparrot/github-code |
3df9bd77a82d1432305fbfd563b886714fdb54d4d986c0f6bd65c64168413d9c | /*
* 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-api-gateway/src/main/java/com/amazonaws/services/apigateway/model/transform/UpdateMethodResponseRequestMarshaller.java | jentfoo/aws-sdk-java | apache-2.0 | 3,397 | 69 | codeparrot/github-code |
6f904153f62eada13fd811ad93e9f8a67b33db0553a919019e83dc72dcd19e12 | # -*- coding: utf-8 -*-
#
# 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
... | Python | airflow/operators/sensors.py | d-lee/airflow | apache-2.0 | 22,890 | 630 | codeparrot/github-code |
58b5db2bb0130a73af17b22193356652241316251286166f1b79af1e5015324e | /*
Copyright 2014 Google Inc. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to ... | GO | multiwriter/multiwriter.go | zombiezen/cardcpx | apache-2.0 | 1,627 | 61 | codeparrot/github-code |
887e81f3bb7f8c860aa43c74d30572bd7536dbff5235cda1014ab2731d285dd4 | package org.aksw.servicecat.web.api;
import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
import javax.ws.rs.QueryParam;
import javax.ws.rs.core.MediaType;
import org.aksw.servicecat.core.ServiceAnalyzerProcessor;
import org.springframework.beans.factory.annotation.Autowired;
@org.springfram... | Java | servicecat-webapp/src/main/java/org/aksw/servicecat/web/api/ServletServiceApi.java | GeoKnow/SparqlServiceCatalogue | apache-2.0 | 728 | 32 | codeparrot/github-code |
ec085e05b28f8f2d1f3f6706400e95a50af68db2bb1dd000fbd8a576e2a0eb80 | /*
* 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-macie2/src/main/java/com/amazonaws/services/macie2/model/transform/AccountDetailMarshaller.java | aws/aws-sdk-java | apache-2.0 | 2,226 | 59 | codeparrot/github-code |
b3349de9b5bc03fa62541c145d30dcfb1a231d30fdcf415dfc071a3fceee30fd | package org.apache.rya.indexing.external;
import java.net.UnknownHostException;
/*
* 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 ... | Java | extras/indexing/src/test/java/org/apache/rya/indexing/external/AccumuloConstantPcjIntegrationTest.java | pujav65/incubator-rya | apache-2.0 | 14,058 | 415 | codeparrot/github-code |
249b4f64aa09773c1e38029f2ff9b5fdac592d966dd88e614a449c7f8d9137f1 | // Copyright 2007-2008 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 re... | C# | src/MassTransit/ExpiresInAttribute.cs | rodolfograve/MassTransit | apache-2.0 | 1,778 | 47 | codeparrot/github-code |
39ab56e5f49d31682430a5403fe68ee522def8c2bd5fbaa7ceb7127d3f1da095 | -- Users
delete from user where id <= 6;
insert into user (id,password,user_name, email, role)
values (6,'$2a$08$rWw15tM4D8JGNkoSnosvUOWktluv1CnxCZfJslvHWaiFSaSOpnYZS','boisterous', 'neuban35@gmail.com', 'USER');
insert into user (id,password,user_name, email, role)
values (5,'$2a$08$2/f6i7QzmdvM0wVDghFdkOUPtUA66SSa... | SQL | persistence/src/main/resources/data-mysql.sql | NEU-2016/NEUban | apache-2.0 | 3,303 | 107 | codeparrot/github-code |
e1999ba433dac68598cf637a636d3678e24e705be39cc85c8ab41516df7a5eb2 | package app.monitor.job;
import core.framework.internal.log.LogManager;
import core.framework.json.JSON;
import core.framework.kafka.MessagePublisher;
import core.framework.log.message.StatMessage;
import core.framework.scheduler.Job;
import core.framework.scheduler.JobContext;
import org.slf4j.Logger;
import org.slf4... | Java | ext/monitor/src/main/java/app/monitor/job/KubeMonitorJob.java | neowu/core-ng-project | apache-2.0 | 5,150 | 118 | codeparrot/github-code |
1245b58a449c77a2d9432d15ea1b8bdac69c76657647025b57bbc79cceb5fbd7 | /*
* 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
* distribu... | TypeScript | discovery-frontend/src/app/data-preparation/dataflow/dataflow-detail/component/edit-dataflow-rule/edit-rule/edit-rule.component.ts | metatron-app/metatron-discovery | apache-2.0 | 4,947 | 193 | codeparrot/github-code |
eda7c72ac64ef9d69d5c6089e62f5d82e9d190cb370c5091d596ff39a45446ed | package mahjong
type Hand []Pai
func remove(list []Pai, p Pai) []Pai {
var result []Pai
removed := false
for _, e := range list {
if e == p && !removed {
removed = true
} else {
result = append(result, e)
}
}
return result
}
func contain(list []Pai, p Pai) bool {
for _, a := range list {
if a ==... | GO | mahjong/hand.go | tanaka51/tenpai-wakaru-man | apache-2.0 | 3,584 | 173 | codeparrot/github-code |
830c216c49d8b00001ded9f5d1255194175da0e6eb1a1f15615bfb8faadae274 | /*
* 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/integrationTest/java/org/apache/geode/internal/logging/log4j/GemfireVerboseMarkerFilterAcceptIntegrationTest.java | pdxrunner/geode | apache-2.0 | 3,615 | 96 | codeparrot/github-code |
56a2222d3698cbab1ef4e8f7fa73a742008bcb975903b6717d3cb127ca2dd433 | /*
** Stack.cpp for cpp_abstractvm in /var/projects/cpp_abstractvm/Stack.cpp
**
** Made by kevin labbe
** Login <labbe_k@epitech.net>
**
** Started on Mar 1, 2014 2:15:13 AM 2014 kevin labbe
** Last update Mar 1, 2014 2:15:13 AM 2014 kevin labbe
*/
#include "EmptyStackException.hpp"
#include "AssertFailed... | C++ | Virtual Machine/src/Arithmetic/Stack.cpp | Kael95/Epitech | apache-2.0 | 2,906 | 146 | codeparrot/github-code |
5b02f1726b5ca22119e2ef0a000f85a322e28fcf32977797489afdf5577e3d7d | import { Upload } from './../models/upload/upload.model';
import { SUPController } from './sup.server.controller';
const yellow = '\x1b[33m%s\x1b[0m: ';
export class SUP {
constructor(private io: SocketIOClient.Manager) { }
registerIO() {
this.io.on('connection', (socket: So... | TypeScript | src/server/protocols/sup.server.protocol.ts | Stejnar/compressor-angular2 | apache-2.0 | 1,052 | 34 | codeparrot/github-code |
3b024c4dc62b4b4ca63e360726c106e1187bf5ddf99041db3f197af3c10ece85 | package com.yueny.demo.job.controller;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org... | Java | job/job_elastic/src/main/java/com/yueny/demo/job/controller/DemoController.java | yueny/pra | apache-2.0 | 1,191 | 49 | codeparrot/github-code |
f9590976a3c4fd310f23800a3154db8135cf391c7c76c8bd20238027322d4c0a | /*
* Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
* to deal in the Software without restriction, including without limitation
* the rights to use... | C++ | Fujitsu/benchmarks/resnet/implementations/mxnet/3rdparty/onnx-tensorrt/plugin.hpp | mlperf/training_results_v0.6 | apache-2.0 | 5,795 | 143 | codeparrot/github-code |
00fb466eb7f4fe4c2777160c7e3d6ead6a66e6d9f92ce4b0a7b97e39908e9452 | /**
* Copyright (C) 2009-2014 Typesafe Inc. <http://www.typesafe.com>
*/
package docs.extension;
//#imports
import akka.actor.Extension;
import akka.actor.AbstractExtensionId;
import akka.actor.ExtensionIdProvider;
import akka.actor.ActorSystem;
import akka.actor.ExtendedActorSystem;
import scala.concurrent.duration... | Java | Documentation/csharp/code/docs/extension/SettingsExtensionDocTest.java | Horusiath/akka.net | apache-2.0 | 2,450 | 98 | codeparrot/github-code |
9a02c7b7f8486f708c8cc061474615d228d0d242aac4d8c498496a8a03e43cdd | // Generated from /POI/java/org/apache/poi/hssf/record/BoundSheetRecord.java
#include <org/apache/poi/hssf/record/BoundSheetRecord.hpp>
#include <java/lang/ArrayStoreException.hpp>
#include <java/lang/NullPointerException.hpp>
#include <java/lang/String.hpp>
#include <java/lang/StringBuffer.hpp>
#include <java/util/Ar... | C++ | src/org/apache/poi/hssf/record/BoundSheetRecord.cpp | pebble2015/cpoi | apache-2.0 | 8,028 | 247 | codeparrot/github-code |
9ed23796390719e288ecbb6dd4843bb2ec2bf4e72f96f2824bab4f8f3b859863 |
var logger = require('../logging').getLogger(__LOGGER__);
var {PAGE_CSS_NODE_ID} = require('../constants');
var Q = require('q');
var PageUtil = require('./PageUtil')
var loadedCss = {};
module.exports = {
registerPageLoad: function registerPageLoad() {
if (SERVER_SIDE) {
throw new Error("ClientCssHelper.regi... | JavaScript | packages/react-server/core/util/ClientCssHelper.js | redfin/react-server | apache-2.0 | 3,519 | 113 | codeparrot/github-code |
6f481a488ee9ad07a891f7d8243d380509b4bac99f94dda4066e5b8fb8e500d4 | package lesson.types;
public class Classes {
public static void main(String[] args) {
JustClass one = new JustClass();
JustClass two = new JustClass(123, "sdf");
System.out.println(one);
System.out.println(two);
}
}
class JustClass {
private int number;
private String... | Java | src/lesson/types/Classes.java | nesterione/JavaTrainings | apache-2.0 | 602 | 31 | codeparrot/github-code |
098cadf3964306b288943aa6f688af42d3911dce55d96040de8abcd176de3c00 | /* Copyright 2018 The TensorFlow Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or a... | C | tensorflow/core/common_runtime/eager/context.h | hehongliang/tensorflow | apache-2.0 | 11,313 | 308 | codeparrot/github-code |
a7a30598db5c763731062a2be2b656df86a7003b86606ca86f85d02776587088 | using GeneticCreatures.Classes.UtilityClasses;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Tester.classes;
namespace GeneticCreatures.Classes.Objects.InanimateObjects
{
class Wall : Selectable
{
public Wall(Posit... | C# | GeneticCreatures/GeneticCreatures/Classes/Objects/InanimateObjects/Wall.cs | joeeyles/geneticcreatures | apache-2.0 | 1,294 | 47 | codeparrot/github-code |
28322ad395578d4f7c8df366e2fa7e50b9bf4103d2e80a8dccad9b5f18018851 | /*
* 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 | src/org/apache/pig/experimental/logical/relational/LogicalSchema.java | hirohanin/pig7hadoop21 | apache-2.0 | 7,432 | 234 | codeparrot/github-code |
3ff4a20cc93ea3863a4c787f31d0469929543531d9afb7037f944ff5b99aee2e | package com.github.nikolaymakhonin.android_app_example.di.factories;
import android.content.Context;
import android.support.annotation.NonNull;
import com.github.nikolaymakhonin.android_app_example.di.components.AppComponent;
import com.github.nikolaymakhonin.android_app_example.di.components.DaggerAppComponent;
imp... | Java | AndroidAppExample/AppExample/src/main/java/com/github/nikolaymakhonin/android_app_example/di/factories/ComponentsFactory.java | NikolayMakhonin/AndroidAppExample | apache-2.0 | 1,243 | 34 | codeparrot/github-code |
244534baf01df373c84f73637577b8d9948c9cf03ac3bf54d4270bf49d997924 | /* ========================================================================
* PlantUML : a free UML diagram generator
* ========================================================================
*
* (C) Copyright 2009-2020, Arnaud Roques
*
* Project Info: https://plantuml.com
*
* If you like this project or if ... | Java | src/plantuml-asl/src/net/sourceforge/plantuml/objectdiagram/command/CommandAddData.java | talsma-ict/umldoclet | apache-2.0 | 2,860 | 75 | codeparrot/github-code |
d86ff8294ac32e63fbe5073818b6194b87cc11cfda5ae358252c5359bf419d3e | /**
* 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/test/java/org/apache/xml/security/test/stax/c14n/Canonicalizer20010315ExclusiveTest.java | Legostaev/xmlsec-gost | apache-2.0 | 40,733 | 792 | codeparrot/github-code |
7ca2e9d1c8fcbcf2541ca1efbd5d62a048174b149b33b125934f861d93b5ad22 | """Let's Encrypt constants."""
import logging
from acme import challenges
SETUPTOOLS_PLUGINS_ENTRY_POINT = "letsencrypt.plugins"
"""Setuptools entry point group name for plugins."""
CLI_DEFAULTS = dict(
config_files=["/etc/letsencrypt/cli.ini"],
verbose_count=-(logging.WARNING / 10),
server="https://ww... | Python | letsencrypt/constants.py | digideskio/lets-encrypt-preview | apache-2.0 | 2,420 | 84 | codeparrot/github-code |
c8499ccdbe2a0e74d23470ec57bba9e9b1faa16b2d443583874747b86a1436b4 | /*
* Copyright 2015 OpenCB
*
* 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 wr... | Java | biodata-formats/src/main/java/org/opencb/biodata/formats/io/AbstractFormatReader.java | kalyanreddyemani/biodata | apache-2.0 | 1,817 | 61 | codeparrot/github-code |
050f075b4bf4bd49b5d1918fca1b38869fc08341996a27962b3d8c74cd16f6b5 | <?php
if ( ! function_exists('env') ) {
/**
* 获取一个环境变量的值,支持布尔值,null,empty
*
* @param string $key
* @param mixed $default
* @return mixed
*/
function env($key, $default = null) {
$value = getenv($key);
if ($value === false) return value($default);
return ... | PHP | src/Foundation/helpers.php | huanguosoft/framework | apache-2.0 | 1,499 | 51 | codeparrot/github-code |
a6993241580c41289b22f31e20f7122981ad593454cad805f68d7ddf94231ad2 | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may ... | Scala | src/main/scala/jp/gihyo/spark/ch05/Station.scala | yu-iskw/gihyo-spark-book-example | apache-2.0 | 1,517 | 43 | codeparrot/github-code |
f06002f0e68472f03135365b1b949420c46afc3f5375e2dc6b1352c7fa00ea58 | package org.ovirt.engine.ui.uicommonweb.models.configure.roles_ui;
import java.util.ArrayList;
import org.ovirt.engine.core.common.businessentities.ActionGroup;
import org.ovirt.engine.core.common.mode.ApplicationMode;
import org.ovirt.engine.ui.uicommonweb.models.ApplicationModeHelper;
import org.ovirt.engine.ui.uic... | Java | frontend/webadmin/modules/uicommonweb/src/main/java/org/ovirt/engine/ui/uicommonweb/models/configure/roles_ui/RoleTreeView.java | derekhiggins/ovirt-engine | apache-2.0 | 34,814 | 424 | codeparrot/github-code |
ebfbd37f6490226f57d74e0ff2376dfc022ff733406fe36e58b9bb016d70678a | package com.jpattern.core.command;
import com.jpattern.core.IProvider;
import com.jpattern.core.exception.NullProviderException;
import com.jpattern.logger.ILogger;
import com.jpattern.logger.SystemOutLoggerFactory;
/**
*
* @author Francesco Cina'
*
* 11/set/2011
*/
public abstract class ACommand<T extends IPro... | Java | core/src/main/java/com/jpattern/core/command/ACommand.java | ufoscout/jpattern | apache-2.0 | 5,668 | 191 | codeparrot/github-code |
fe07963e6924f2bba5a5f81e20e74609a28170748bbb8144aab3d55aa356ffe4 | <?php
namespace App\Http\Controllers\Sadmin;
use App\Http\Controllers\Controller;
use App\Driver;
use App\Customer;
use App\User;
use App\Detail;
use Illuminate\Http\Request;
use Illuminate\Pagination\Paginator;
use Illuminate\Support\Facades\Input;
use Illuminate\Support\Facades\DB;
use Illuminate\Foundation\Auth\Au... | PHP | app/Http/Controllers/Sadmin/BillingController.php | widedeveloper/laravel-transport | apache-2.0 | 8,073 | 254 | codeparrot/github-code |
64f941f825fb66ea5a1d5abe1f87a5b1bf3968f91d2bc55862fc5f9dba13609a | var child_process = require('child_process'),
fs = require('fs'),
path = require('path');
module.exports = function(context) {
var IOS_DEPLOYMENT_TARGET = '8.0',
SWIFT_VERSION = '3.0',
COMMENT_KEY = /_comment$/,
CORDOVA_VERSION = process.env.CORDOVA_VERSION;
run();
functio... | JavaScript | hooks/add_swift_support.js | pmwisdom/cordova-background-geolocation-services | apache-2.0 | 8,172 | 199 | codeparrot/github-code |
d0c34e5c462ac953ebda93feec841fa77dc8fdb8ebcefd76d54b2c78bdb1c62f | /*
* Copyright 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 applica... | Java | subprojects/base-services/src/main/java/org/gradle/internal/hash/HashingOutputStream.java | gstevey/gradle | apache-2.0 | 1,665 | 58 | codeparrot/github-code |
6e706f4f1971a42559c10e81c39d386d8f4bef8429aa57ede74c1d9f7d3317e5 | /*
* Copyright (c) 2014 Spotify AB.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed t... | Java | helios-services/src/main/java/com/spotify/helios/agent/Supervisor.java | gtonic/helios | apache-2.0 | 14,062 | 481 | codeparrot/github-code |
281159706e4def66610f9e101fd480ad37eca21531cd6e681bad3a854f159d14 | package de.saxsys.mvvmfx.examples.contacts.model;
public class Subdivision {
private final String name;
private final String abbr;
private final Country country;
public Subdivision(String name, String abbr, Country country) {
this.name = name;
this.abbr = abbr;
this.country = country;
}
public String g... | Java | examples/contacts-example/src/main/java/de/saxsys/mvvmfx/examples/contacts/model/Subdivision.java | sialcasa/mvvmFX | apache-2.0 | 1,010 | 61 | codeparrot/github-code |
5357159c17d39f8bedb9a438e7896e7ca80c1f8b4919dff31e105841e996c80e | package com.twitter.io
import java.io.IOException
import org.junit.runner.RunWith
import org.scalatest.FunSuite
import org.scalatest.junit.JUnitRunner
@RunWith(classOf[JUnitRunner])
class BufInputStreamTest extends FunSuite {
private[this] val fileString = "Test_All_Tests\nTest_java_io_BufferedInputStream\nTest_ja... | Scala | util-core/src/test/scala/com/twitter/io/BufInputStreamTest.scala | n054/util | apache-2.0 | 4,959 | 171 | codeparrot/github-code |
0022dc739b6be52f37f224f0aebd8f2489b625ecce272d5fd27fa5658a3de5f3 | package fr.jmini.asciidoctorj.testcases;
import static org.assertj.core.api.Assertions.assertThat;
import static org.mockito.Mockito.mock;
import static org.mockito.Mockito.when;
import java.util.Arrays;
import java.util.Collections;
import java.util.HashMap;
import java.util.Map;
import org.asciidoctor.AttributesBu... | Java | test-cases/adoc-test-cases/src/main/java/fr/jmini/asciidoctorj/testcases/ShowTitleTrueTestCase.java | jmini/asciidoctorj-experiments | apache-2.0 | 8,764 | 186 | codeparrot/github-code |
0b9280ee2ff25afc88ce19ddfbb3394cac2143cd6ebf44a4a84efc77691bf08e | package fr.sii.ogham.sms.message;
import fr.sii.ogham.core.util.EqualsBuilder;
import fr.sii.ogham.core.util.HashCodeBuilder;
/**
* Represents a phone number. It wraps a simple string. The aim is to abstracts
* the concept and to be able to provide other fields latter if needed.
*
* @author Aurélien Baudet
*
*... | Java | ogham-core/src/main/java/fr/sii/ogham/sms/message/PhoneNumber.java | groupe-sii/ogham | apache-2.0 | 1,016 | 54 | codeparrot/github-code |
5302d909adf640716653f2dd0e6e3af3892053551947452a5694498ecbacfc33 | using System.Collections.Specialized;
using System.ComponentModel;
using System.Linq;
using DNTProfiler.Common.JsonToolkit;
using DNTProfiler.Common.Models;
using DNTProfiler.Common.Mvvm;
using DNTProfiler.Infrastructure.Core;
using DNTProfiler.Infrastructure.ScriptDomVisitors;
using DNTProfiler.Infrastructure.ViewMod... | C# | Plugins/DNTProfiler.InCorrectNullComparisons/ViewModels/MainViewModel.cs | VahidN/DNTProfiler | apache-2.0 | 2,743 | 84 | codeparrot/github-code |
0acbd84f957cbac7a6ec3c324df77045815c39a6f84d64c506447e93f3fd4961 | //---------------------------------------------------------------------------
// Greenplum Database
// Copyright (C) 2013 EMC Corp.
//
// @filename:
// CMDIdCast.cpp
//
// @doc:
// Implementation of mdids for cast functions
//---------------------------------------------------------------------------
#include "nauc... | C++ | libnaucrates/src/md/CMDIdCast.cpp | PengJi/gporca-comments | apache-2.0 | 4,157 | 190 | codeparrot/github-code |
e82c146f91762c0d972dc74b54079685f9cf473bef8d50b85b664963ec18e308 | /*
* Copyright 2021 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 | common/src/main/java/com/thoughtworks/go/serverhealth/ServerHealthService.java | GaneshSPatil/gocd | apache-2.0 | 6,153 | 169 | codeparrot/github-code |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.