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
a546fafd1175cc62d95d0103d845a1a2d2e949e6ba7d2f16145ac719de41755f
/* * * Copyright 2013 the original author or authors. * Copyright 2013 SorcerSoft.org. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICEN...
Java
core/sorcer-platform/src/main/java/sorcer/core/invoker/IncrementInvoker.java
mwsobol/SORCER
apache-2.0
2,987
124
codeparrot/github-code
41f75b9b94ab7f54c09f6ac228e35a44397249b91cc032cf1da87758984fe2b6
/** * Copyright (C) 2017 WhiteSource Ltd. * <p> * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * <p> * http://www.apache.org/licenses/LICENSE-2.0 * <p> * Unless required by applicable...
Java
src/main/java/org/whitesource/agent/utils/FilesUtils.java
whitesource/fs-agent
apache-2.0
6,500
155
codeparrot/github-code
87a05e82951ec14ef817eeecab19de039ef7231c3f51140fd24ab4fd3a69653d
function statementTestGenerator() { // all of these statement constructs should be allowed // provided that they contain no yield statements switch (1) { case 2: break; default: break; } try { } catch (e) {} try { } finally {} do {} while (false); for (;false;) {} //TODO(jmesserly): this had ...
JavaScript
test/feature/Yield/StatementTestGenerator.js
ide/traceur
apache-2.0
813
36
codeparrot/github-code
4df6d61d1241914bf99d9e5f12db569827141cb411d44d934e726003933365d2
{% extends 'adopt_station.html' %} {% load staticfiles %} {% load i18n %} {% block name1 %}流浪动物{% endblock %} {% block name2 %}救助站{% endblock %} {% block href %}{% url 'adopt:stations' %}{% endblock %} {% block contains %} <link rel="stylesheet" type="text/css" href="{% static 'css/adopt_animal.css' %}"> {% ...
HTML
templates/adopt_animal.html
nostray/nostray_prototype
apache-2.0
2,187
55
codeparrot/github-code
33f023c9341376cef8cb8cf3704ed364f556d5f52f9d4b4d6b0f2790b6bfed54
/* * Copyright 2015-2018 MarkLogic Corporation * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law...
Java
marklogic-rdf4j/src/main/java/com/marklogic/semantics/rdf4j/client/TripleDeleteCache.java
akshaysonvane/marklogic-rdf4j
apache-2.0
4,078
108
codeparrot/github-code
0dd8d53e6f3d66279dbed31fbd16c2dba230cfe60b365b96b2764aa856c7a9ab
// +build linux freebsd darwin package net import ( "strings" "github.com/resin-io/resin-supervisor/gosuper/Godeps/_workspace/src/github.com/shirou/gopsutil/internal/common" ) // Return a list of network connections opened. func NetConnections(kind string) ([]NetConnectionStat, error) { return NetConnectionsPid(...
GO
gosuper/Godeps/_workspace/src/github.com/shirou/gopsutil/net/net_unix.go
deviceMP/resin-supervisor
apache-2.0
1,369
69
codeparrot/github-code
8a3d6af183d52da3fb0a0cc3f9374af658d67dc6f88cffb2bc5d1bad811eb53d
// ********************************************************************** // // Copyright (c) 2003-2010 ZeroC, Inc. All rights reserved. // // This copy of Ice is licensed to you under the terms described in the // ICE_LICENSE file included in this distribution. // // ***************************************************...
C
include/IceUtil/Cond.h
pennwin2013/netsvr
apache-2.0
5,781
264
codeparrot/github-code
df5524867f5fccccd1aee947fa810e0956c0398d2139a1695f85809872189da8
package weixin.popular.bean.paymch; import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessorType; import javax.xml.bind.annotation.XmlRootElement; import java.math.BigDecimal; @XmlRootElement(name = "xml") @XmlAccessorType(XmlAccessType.FIELD) public class Transfers { ...
Java
src/main/java/weixin/popular/bean/paymch/Transfers.java
liyiorg/weixin-popular
apache-2.0
3,165
153
codeparrot/github-code
f4d6ae917bf236708f9db44cf3fc9ff0a058640c12c805fe8d0c4ca6917d24b6
/** * Copyright (c) 2012, www.quartzsource.org * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable la...
Scala
src/test/scala/org/quartzsource/meutrino/AbstractTest.scala
cyberspinach/meutrino
apache-2.0
1,585
54
codeparrot/github-code
98208a938784b74498cbd887436e20e752ff1af52859d3c8bf25a637ad9179f0
package kr.co.shineware.nlp.komoran.util; import java.util.HashMap; import java.util.HashSet; import java.util.Map; import java.util.Set; public class ElapsedTimeChecker { private static final String PREFIX_BEGIN = "START_"; private static final String PREFIX_END = "END_"; private static Map<String, Long>...
Java
core/src/main/java/kr/co/shineware/nlp/komoran/util/ElapsedTimeChecker.java
shin285/KOMORAN
apache-2.0
1,443
40
codeparrot/github-code
98717041e8e0d691ef6872089f8e2f0a4c44ee5f69dac26b2975de7822771a30
define(function(require, exports, module) { if (window.T == null) { window.T = new Object(); } require('./index'); var profile = { // 初始化 init : function() { T.index.initUI(); profile.getProfile(); }, getProfile : function() { T.common.ajax.requestBlock("InquireProfileAction", null, fal...
JavaScript
shop/shop-web/src/main/webapp/script/profile.js
seanzwx/workspace
apache-2.0
1,395
67
codeparrot/github-code
a61499dd98b6381c78ebf547c4e1260790c0a85db55f9a4ab723aad2e397b579
// Copyright 2017 The Wuffs 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 // // https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed...
GO
internal/cgen/func.go
google/wuffs
apache-2.0
17,381
650
codeparrot/github-code
4dd207ecb85821a32904dc2c98151d7ef35c8f259d8b86c89b0667c548e75857
/* * Copyright (c) 2008-2020, Hazelcast, Inc. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required ...
Java
hazelcast/src/main/java/com/hazelcast/internal/partition/PartitionMigrationEvent.java
mdogan/hazelcast
apache-2.0
4,164
135
codeparrot/github-code
8f0a6c0acccb223fa3fd2294979fbcea2d145a88ca98a3c1c9d548503002aff5
// This contains the Overlay implementation for weave's own UDP // encapsulation protocol ("sleeve" because a sleeve encapsulates // something, it's often woven, it rhymes with "weave", make up your // own cheesy reason). package router import ( "bytes" "encoding/binary" "fmt" "io" "net" "os" "sync" "syscall"...
GO
router/sleeve.go
tomwilkie/weave
apache-2.0
31,123
1,164
codeparrot/github-code
4ab86be2c5615255f9d0e887a0271a082dc07918b26dd7a303ae3478a3f02d25
/* * Copyright 2011 JBoss Inc * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to ...
Java
kie-uberfire-widgets/kie-uberfire-widgets-core/kie-uberfire-widgets-core-client/src/main/java/org/kie/uberfire/client/resources/TreeNavigatorResources.java
psiroky/kie-uberfire-extensions
apache-2.0
1,665
60
codeparrot/github-code
fdac113a9750eafdda887114a98dbc65b65e438835feb10812feac4d0f0c8b35
// Copyright 2011 the V8 project authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef V8_CHAR_PREDICATES_INL_H_ #define V8_CHAR_PREDICATES_INL_H_ #include "src/char-predicates.h" namespace v8 { namespace internal { // If c is ...
C
3rdParty/V8/v7.1.302.28/src/char-predicates-inl.h
fceller/arangodb
apache-2.0
1,801
81
codeparrot/github-code
6528a642f92867c504910d7b3d8d4efe8b48cb8f00cae42552444ff3825683ce
//////////////////////////////////////////////////////////////////////////// // // Copyright 2016 Realm 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/li...
C#
Realm/Realm/Exceptions/RealmException.cs
Shaddix/realm-dotnet
apache-2.0
4,191
105
codeparrot/github-code
8d6996e7711f621cca4962a9a74969345dcf794c706aad25dc3963898fa5dce8
/* * 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 t...
Java
transporters/src/main/java/com/nextdoor/bender/ipc/stdout/StdoutTransportFactory.java
Nextdoor/bender
apache-2.0
2,007
67
codeparrot/github-code
49942bf9f47516d855f86d1825a1f07a59da571f5aca2f5a567371079cb52912
// From Node.js test/mjsunit/test-assert.js // Felix Geisendörfer (felixge), backported from NodeJS // Karl Guertin (greyrest), backported from NodeJS // Kris Kowal (kriskowal), conversion to CommonJS // strangely meta, no? var assert = require("../modules/assert"); function makeBlock(f) { var args = Array.proto...
JavaScript
test/assert_commonjs.js
ringo/ringojs
apache-2.0
6,736
174
codeparrot/github-code
9b8008463f43ed4f5167d7edfdce4951c2890a6a6e57aad7af4a8352926ae5ee
package com.coolweather.android.fragment; import android.app.ProgressDialog; import android.content.Intent; import android.os.Bundle; import android.support.annotation.Nullable; import android.support.v4.app.Fragment; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import a...
Java
app/src/main/java/com/coolweather/android/fragment/ChooseAreaFragment.java
liujingtaode/coolweather
apache-2.0
9,458
284
codeparrot/github-code
b66dc9bfcd1241ae219899c39887c58e394f6c8a29f5890493f5e8d304cd4728
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
Python
python/tvm/relay/op/contrib/ethosn.py
dmlc/tvm
apache-2.0
10,270
334
codeparrot/github-code
c5047dbba8ab3bce08f1f7d648424849254a9d4653d96d060d3da555fc7d30fe
package org.drip.math.solver1D; /* * -*- mode: java; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ /*! * Copyright (C) 2013 Lakshmi Krishnamurthy * Copyright (C) 2012 Lakshmi Krishnamurthy * * This file is part of CreditAnalytics, a free-software/open-source library for fixed income analysts a...
Java
2.1/src/org/drip/math/solver1D/ExecutionInitializer.java
Lakshmik/RootFinder
apache-2.0
16,179
482
codeparrot/github-code
fa97a45edf0b4aa4e2008b22921f933ceb95bae2701d3ae3f8e386290b3fd88d
/* * 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-cognitoidp/src/main/java/com/amazonaws/services/cognitoidp/model/transform/VerifyUserAttributeRequestProtocolMarshaller.java
aws/aws-sdk-java
apache-2.0
2,788
64
codeparrot/github-code
e3a21fca7d7af24179917ac0ef63de145f4ce2a5472e2553f647f8f85bf75e3b
using System; using System.Collections.Generic; namespace School.Core { public interface IExprVisitor<R> { R Visit(Unit unit); R Visit(Number number); R Visit(Boolean b); R Visit(List list); R Visit(BinaryOperator app); R Visit(IdExpr idExpr); R Visit(Pr...
C#
School/Core/Expr.cs
alldne/school
apache-2.0
7,022
341
codeparrot/github-code
2bdfac32019895e05d01ac738f50d5389d322444991a64206bf12e3b5042ce2a
/** * Copyright (C) 2015 Morgan Renou (mrenou@gmail.com) * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by...
Java
src/main/java/com/github/mrenou/jacksonatic/annotation/JacksonaticJsonCreator.java
mrenou/jacksonatic
apache-2.0
1,804
69
codeparrot/github-code
18e66ab23583269e232ebe5077d3548609d7258191f1e194ec6146d27a3a6467
/** * 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
beeline/src/java/org/apache/hive/beeline/HiveSchemaTool.java
wangbin83-gmail-com/hive-1.1.0-cdh5.4.8
apache-2.0
18,097
493
codeparrot/github-code
1167efbd51d1fa07f1b70d418a63acef94824061b2aea2e8210c8e629d17e06f
/* * Copyright 2016-2020 chronicle.software * * https://chronicle.software * * 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 * * Un...
Java
src/main/java/net/openhft/chronicle/bytes/ref/BinaryIntReference.java
OpenHFT/Chronicle-Bytes
apache-2.0
3,387
117
codeparrot/github-code
11074eca7ae08e8192a67556b773fee329fec68d4b2384f1263431d13231ea1d
// Copyright (C) 2020 Sebastian Dröge <sebastian@centricular.com> // // Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or // http://www.apache.org/licenses/LICENSE-2.0> or the MIT license // <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your // option. This file may not be copied, modified, or...
Rust
tutorial/src/rgb2gray/mod.rs
sdroege/rsplugin
apache-2.0
1,221
34
codeparrot/github-code
ec5df5f21c0cb1eea3830430a1ec95b3450c1a4a9bce8bc183a3cc89dd093096
package com.emistoolbox.server.model; import com.emistoolbox.common.model.EmisHierarchy; import com.emistoolbox.common.model.meta.EmisMeta; import com.emistoolbox.common.model.meta.EmisMetaDateEnum; import com.emistoolbox.common.model.meta.EmisMetaEntity; import com.emistoolbox.common.model.meta.EmisMetaHierarch...
Java
core/src/com/emistoolbox/server/model/EmisDataSet.java
emistoolbox/emistoolbox
apache-2.0
2,170
43
codeparrot/github-code
b46554ed4d9a15a71e76372e69b9f29c3c6683b4e42dd1944804e66be090bc24
package com.atexpose.util.http_response; import com.atexpose.util.ArrayUtil; import io.schinzel.basicutils.UTF8; import lombok.Builder; import lombok.Getter; import lombok.experimental.Accessors; import java.util.Map; /** * The purpose of this file is to compile a 404 http response. * <p> * Created by schinzel on...
Java
src/main/java/com/atexpose/util/http_response/HttpResponse404.java
Schinzel/atexpose
apache-2.0
929
35
codeparrot/github-code
ad3e3313397efc81bb8f3b88937df72578fc258703812eb02d5a963805685b27
/// <reference path="../typescriptDefinitions/libs.d.ts" /> import Rx = require('Rx') class MembersService { static $inject = ['$http', 'BASE_URL']; constructor(private $http:ng.IHttpService, private BASE_URL) { } listMembers() : Rx.Observable<Member[]> { return Rx.Observable.create((observe...
TypeScript
admin_members/MembersService.ts
amdatu/amdatu-auth-angular
apache-2.0
1,333
41
codeparrot/github-code
7a2d403dda9f43430c3cb2b42624373defe6de824e504b5253043ba56b2ccb8b
/** * 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
activemq-client/src/main/java/org/apache/activemq/command/ActiveMQStreamMessage.java
chirino/activemq
apache-2.0
46,567
1,217
codeparrot/github-code
8ce6b6de4ec66ffa842adf0aa2cde145eb9f356d30f2d81b880b52aadc5a0d2f
#! /usr/bin/perl # Author: BaconKwan # Email: terencest@gmail.com # Version: 1.0 # Create date: # Usage: use utf8; use strict; use warnings; use Getopt::Long; use File::Basename qw/basename dirname/; use File::Spec::Functions qw/rel2abs/; #### Main Programme #### my %opts; GetOptions (\%opts, "bam=s", "fa=s", "dir...
Perl
GATK_RNAseq_pipe/pipe_test/GATK4pipe.pl
BaconKwan/Perl_programme
apache-2.0
12,786
349
codeparrot/github-code
4c2d32cba80306e5cf2327812660b938bdad70617d5c2dbdaa1fd879d571d519
/** * 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/storm/mesos/MesosCommon.java
tysonnorris/mesos-storm-docker
apache-2.0
4,428
120
codeparrot/github-code
476e02a913f3c78bbfc394b682badf125910379b4d24dcf2b845559c17a328b1
/* * Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" fil...
C++
aws-cpp-sdk-elasticbeanstalk/source/model/DescribeApplicationVersionsRequest.cpp
ambasta/aws-sdk-cpp
apache-2.0
1,878
65
codeparrot/github-code
0ae4c8090f70a557d060b8e155c5745043b766b8d0ec0256b23b0032d58be0c0
// Copyright 2015 Open Source Robotics Foundation, 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 appli...
C
rcl/src/rcl/init.c
ros2/rcl
apache-2.0
8,782
260
codeparrot/github-code
f5178d6bc5edf2218622837aa561331ca73fe191c04f13f4532c4a9c06723130
package com.example.fiver.smart_butler.view; /* * 项目名: Smart_Butler * 包名: com.example.fiver.smart_butler.view * 文件名: CustomDialog * 创建者: YYC * 创建时间: 17/6/29 下午8:06 * 描述: TODO */ import android.app.Dialog; import android.content.Context; import android.content.pm.ActivityInfo; import android.view.Gra...
Java
app/src/main/java/com/example/fiver/smart_butler/view/CustomDialog.java
yichengyang/SmartBulter
apache-2.0
1,490
45
codeparrot/github-code
b0ff36dd6421e2157a3b8d058fac39e5d87fd04ae8ddfdff8807a2defe50cc20
#ifdef WINDOWS_PLATFORM #ifndef MPACK_WINDOWSEVENTLOOP_HPP #define MPACK_WINDOWSEVENTLOOP_HPP #include "Types.hpp" #include "EventLoop.hpp" namespace MPACK { namespace Core { class Application; } } namespace MPACK { namespace Core { class WindowsEventLoop : public EventLoop { public: WindowsEventLoo...
C++
jni/MPACK/Core/EventLoop/Windows/WindowsEventLoop.hpp
links234/MPACK
apache-2.0
1,052
62
codeparrot/github-code
21b6bac0154899febea19dfe5a99c98917d23463ef338ea8a07ec32a6279d882
// Copyright 2017-2021 The Usacloud 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 o...
GO
pkg/cmd/commands/internet/add_subnet.go
yamamoto-febc/usacloud
apache-2.0
1,702
56
codeparrot/github-code
d253194b6f5e79412b9978b5ceab631d708559f8446be034299838b4e0e6ddfe
/** * 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
exec/vector/src/main/java/org/apache/drill/exec/util/JsonStringHashMap.java
adeneche/incubator-drill
apache-2.0
2,160
77
codeparrot/github-code
851915d667cd62964877ef4890ea8f85f293c268a18f3fb69438213b6c36efae
package lx.af.utils.ViewInject; import android.text.TextUtils; import android.util.Log; import android.view.View; import android.widget.AbsListView; import java.lang.reflect.Field; import java.lang.reflect.InvocationTargetException; import java.lang.reflect.Method; import java.util.LinkedList; import java.util.List; ...
Java
lib_frame/src/main/java/lx/af/utils/ViewInject/ViewInjectUtils.java
liuxu0703/AppFrame
apache-2.0
7,988
216
codeparrot/github-code
ae95614015a7b31151f1d3d56408424d22bcd783a8bc9f3bb3048cf59865179e
/* Copyright 2015 Esa Leppänen 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 w...
C#
Logger.cs
lepesa/Karttailu2
apache-2.0
1,459
48
codeparrot/github-code
9615f7d99dee4eab2bf1a3fa735c50763dbaeaf8566bbd61f01c0108684a84e7
/* * Copyright 2017 Crown Copyright * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed...
Java
stroom-core-client/src/main/java/stroom/data/store/impl/fs/client/presenter/ManageFSVolumesPresenter.java
gchq/stroom
apache-2.0
6,528
165
codeparrot/github-code
59e3cafbca7ded99cf51ea867c72fad5e5629cb25cacee847f839806b866d1b3
package stroom.config.app; import stroom.docref.DocRef; import stroom.util.config.PropertyPathDecorator; import stroom.util.config.PropertyUtil; import stroom.util.logging.LambdaLogger; import stroom.util.logging.LambdaLoggerFactory; import stroom.util.logging.LogUtil; import stroom.util.shared.AbstractConfig; import ...
Java
stroom-config/stroom-config-app/src/test/java/stroom/config/app/TestAppConfig.java
gchq/stroom
apache-2.0
4,707
130
codeparrot/github-code
051705f2467010b9516717d671741e5b4634e0cca17a72fcfd20e912f24c7509
/* * Licensed to The Apereo Foundation under one or more contributor license * agreements. See the NOTICE file distributed with this work for additional * information regarding copyright ownership. * * The Apereo Foundation licenses this file to you under the Apache License, * Version 2.0, (the "License"); you ma...
Java
Source/Plugins/Core/com.equella.admin/src/com/dytech/edge/admin/script/ifmodel/Block.java
equella/Equella
apache-2.0
1,688
62
codeparrot/github-code
76a7b8a53f4040b7e9a3c46abb6008b39e9ddbef8e6debc30abbec4c9024074f
#!/usr/bin/env python # Copyright 2013 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 ...
Python
sample/shortest-to-longest-reducer.py
GoogleCloudPlatform/solutions-google-compute-engine-cluster-for-hadoop
apache-2.0
2,023
83
codeparrot/github-code
a0fde852e32173867178b768216ceaaee856d73c2effc98217ddec6245a83507
// load the things we need import * as Q from 'q'; import * as mongoose from "mongoose"; import { IMember } from "../../public/src/models/api-contracts/members"; import * as errorService from '../services/error-service'; import errorCodes from '../shared/error-codes'; var MemberModel; // create the model for users and...
TypeScript
server/repositories/member-repo.ts
michaelmertens/ogk-server
apache-2.0
2,871
100
codeparrot/github-code
e1b0878c5cdc163a1c8f31cf46bdc49959db019dd61c697a5c3518605f6f7dcc
#include "shell.h" #include <foundation.h> #include <kernel/timer.h> #include <string.h> #include <stdlib.h> #include <lib/xmodem.h> static int get() { int c, ret; ioctl(stdin, C_EVENT, &c); if (c) read(stdin, &ret, 1); else return -1; return ret; } static int xmodem_recv(int argc, char **argv) { unsigne...
C
tasks/shell/cmd_xmodem.c
onkwon/yaos
apache-2.0
863
47
codeparrot/github-code
137d376a666ee61b5ef239c8c6d755953e85275cd0962b5271ea1445c9e166e8
module Api class UsersController < ApplicationController def index @users = User.all render json: @users end def create # new @user = User.new(user_params) if @user.save render json: @user else render json: { result: false, message: "Create User is fai...
Ruby
backend/api/app/controllers/api/users_controller.rb
ibhupi/cksapp
apache-2.0
866
43
codeparrot/github-code
614990d9545255f16080879d4738d67329f02ce6c2a8dbf3938b6f6cb9c1e2e7
// Copyright 2015 The etcd 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 t...
GO
rafthttp/transport.go
dnaeon/etcd
apache-2.0
11,007
368
codeparrot/github-code
ae39dabad85ec00e310614a3d56d4939fe62179ff36339bf66529101bd7481e5
/***************************************************************** <copyright> Morozko Java Library org.opinf.jlib.std Copyright (c) 2006 Morozko All rights reserved. This program and the accompanying materials are made available under the terms of the Apache License v2.0 which accompanies this distribu...
Java
java14-morozko/org.morozko.java.core/src/org/morozko/java/core/xml/sax/eh/ErrorHandlerWrapper.java
fugeritaetas/morozko-lib
apache-2.0
2,707
91
codeparrot/github-code
46085e3d3c115aa31202e05ab4a4b1eb2393cc286ed04f51b851b570ecd6e8cd
/* * Copyright 2012-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "licen...
Java
aws-java-sdk-kinesis/src/main/java/com/amazonaws/services/kinesis/model/transform/TagMarshaller.java
dagnir/aws-sdk-java
apache-2.0
2,104
59
codeparrot/github-code
0fffe150f7f9c4ba18717035420d271eb90ec099e7fc8d4fcaf95a46f668a80d
/* * MainWindow.h - declaration of class MainWindow, the main window of LMMS * * Copyright (c) 2004-2014 Tobias Doerffel <tobydox/at/users.sourceforge.net> * * This file is part of LMMS - https://lmms.io * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU Gen...
C
universal-daw/include/MainWindow.h
universalprojectfile/universal-project-file
apache-2.0
5,916
254
codeparrot/github-code
1ac99b3c346edaadf5975dbdd55ed5b50c067d250dd6bb228b890a0aeb6e24b5
/* * 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
hyracks-fullstack/hyracks/hyracks-storage-am-lsm-invertedindex/src/main/java/org/apache/hyracks/storage/am/lsm/invertedindex/impls/LSMInvertedIndexDiskComponent.java
heriram/incubator-asterixdb
apache-2.0
3,132
79
codeparrot/github-code
ca8a5ed63cd727df0271a6d2ab97f5d6bd44391dfe4ff872205874a2b923de82
#! /usr/bin/env python # -*- coding: utf-8 -*- # Copyright 2017 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless req...
Python
bin/tools/generate_toy_data.py
chunfengh/seq2seq
apache-2.0
5,148
174
codeparrot/github-code
a15a2bd3776eae15153e0c8a1903ceca7288527a2aaa3ae8eba427fd48864d35
package com.akh.topcoder.div2_lower; /** * * @author Akhash Ramamurthy * * A store sells M different items, conveniently numbered 0 through M-1. * For a shopping survey you interviewed N customers. * Each customer responded to the survey with a list of items they've bought. * Each customer bought ...
Java
Algorithms_Java_Implementation/src/com/akh/topcoder/div2_lower/ShoppingSurvey.java
akhr/java
apache-2.0
1,403
41
codeparrot/github-code
99579f7ec7e9deefb169aae9425ebe4151ed50e61553494358493fbbad9c380c
#ifndef moses_LexicalReordering_h #define moses_LexicalReordering_h #include <string> #include <vector> #include <boost/scoped_ptr.hpp> #include "moses/Factor.h" #include "moses/Phrase.h" #include "moses/TypeDef.h" #include "moses/Util.h" #include "moses/WordsRange.h" #include "moses/FF/StatefulFeatureFunction.h" #in...
C
stat_moses/tools/moses/moses/FF/LexicalReordering/LexicalReordering.h
shyamjvs/cs626_project
apache-2.0
2,711
90
codeparrot/github-code
9a5cd89457d81822a51fcabb57150c37291608867ae315fba1e2b8f4b907778f
using System; using MonoTouch.Foundation; using MonoTouch.UIKit; using System.CodeDom.Compiler; using System.Collections.Generic; using OxyPlot.XamarinIOS; using OxyPlot.Axes; using OxyPlot.Series; using OxyPlot; using System.Linq; namespace SplunkSearch { partial class ChartViewController : UIViewController { ...
C#
ChartViewController.cs
glennblock/splunk-search-xamarin-ios
apache-2.0
3,772
111
codeparrot/github-code
8c903ca4b0797dad53dfc1d7b5c0aabe175364a8748c57161ba08af4beb0d83a
package edu.jhu.hlt.optimize.functions; import edu.jhu.hlt.optimize.function.DifferentiableFunction; import edu.jhu.hlt.optimize.function.ValueGradient; import edu.jhu.prim.vector.IntDoubleDenseVector; import edu.jhu.prim.vector.IntDoubleVector; /** * The function f(x) = \sum_{i=1}^n i * (x_i)^2, where x is the curr...
Java
src/main/java/edu/jhu/hlt/optimize/functions/WeightedSphereModel.java
minyans/optimize
apache-2.0
1,631
58
codeparrot/github-code
c59b04ec1233dc23f4e894f8a429b8e738e5f8fe43e48ccf20b74e2d5de46cb2
# Copyright 2011 OpenStack Foundation. # 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 req...
Python
os_collect_config/openstack/common/importutils.py
citrix-openstack-build/os-collect-config
apache-2.0
2,372
74
codeparrot/github-code
bbb90e53f508d48d40b06405c22b993fb904e3292572461ee024b509b7ce0398
<!DOCTYPE html> <html lang="zh-CN"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=2"> <meta name="theme-color" content="#222"> <meta name="generator" content="Hexo 4.0.0"> <link rel="icon" type="image/png" sizes="32x32" href="https://cosmos-125190579...
HTML
tags/vpc/index.html
SimpCosm/SimpCosm.github.io
apache-2.0
14,929
543
codeparrot/github-code
d3e6d73e0a7f26b6b30ef376c1dcf85170084a4a6431f5ccef76c2d374f3f347
package de.hub.visualemf; import org.eclipse.emf.ecore.EAttribute; import org.eclipse.emf.ecore.EClass; import org.eclipse.emf.ecore.EReference; import org.eclipse.emf.ecore.EStructuralFeature; import org.eclipse.emf.ecore.EcorePackage; import de.hub.visualemf.data.DataFactory; import de.hub.visualemf.data.DataHierar...
Java
plugins/de.hub.visualemf/src/de/hub/visualemf/DataSetMetaDataGenerator.java
markus1978/visualemf
apache-2.0
4,957
124
codeparrot/github-code
32987aa3ac3f461295662471f04da064330f3db2e3a9aae3fa0086260af569ae
/* * 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-elastictranscoder/src/main/java/com/amazonaws/services/elastictranscoder/model/transform/PipelineOutputConfigMarshaller.java
jentfoo/aws-sdk-java
apache-2.0
2,674
63
codeparrot/github-code
9e3a220a59c9b6681a96a2b56867e71493b0b891833fcd455880de1b22e19d96
import ephem import numpy import pytz import datetime from datetime import timedelta from ..constants import ObjectTableLabels class Objects: def __init__(self, place): self.place = place def get_visible(self, conditions, start, stop, hours_margin=0, sort_by=[ObjectTableLabels.TRANSIT]): visible = self....
Python
apts/objects/objects.py
pozar87/apts
apache-2.0
1,992
57
codeparrot/github-code
7e8fc0d6cb6c6165bdf0d54cf650cb822cc21bbab86eb0bdd2e09c2aea6f8fa8
<!DOCTYPE html> <html lang="zh-cn"> <head> <title> <Zml:title/> </title> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <link rel="stylesheet" href="__PUBLIC__/css/pintuer.css"> <link rel="stylesheet" href="__PUBLIC__/css/admin.css"> <script src="__PUBLIC__/js/jqu...
HTML
Template/Admin/default/Item/add_item_return.html
zhoujiangyou/happychou
apache-2.0
11,494
283
codeparrot/github-code
0363e830989764fc8d002fc15dbfd6327ff99982d08149cfa602d74897f0215c
namespace Baskerville.Models.DataModels { using Constants; using System.ComponentModel.DataAnnotations; public class News { public int Id { get; set; } [Required] [StringLength( maximumLength: AdminMessages.MaxTitleLength, MinimumLength = AdminMessages....
C#
BaskervilleWebsite/Baskerville.Models/DataModels/News.cs
MarioZisov/Baskerville
apache-2.0
1,487
51
codeparrot/github-code
392ad7c8009a0f67356eca8010234c9c96559dab24f7f000e0f1212f013838b8
#!/usr/bin/env python # # Author: Qiming Sun <osirpt.sun@gmail.com> # ''' Analytical nuclear gradients of CASCI excited state. ''' from pyscf import gto from pyscf import scf from pyscf import mcscf from pyscf import lib import inspect mol = gto.M( atom = [ ["O" , (0. , 0. , 0.)], [1 , (0. ...
Python
examples/grad/12-excited_state_casscf_grad.py
sunqm/pyscf
apache-2.0
3,547
108
codeparrot/github-code
7f0e877039ded9e21af4efda24ff09486a6a0b0346c17554852211943eea7eb2
package fr.sii.ogham.testing.assertion.filter; import static java.util.Collections.list; import java.util.function.Predicate; import javax.mail.Header; import javax.mail.MessagingException; import javax.mail.Part; /** * Predicate that matches the {@link Part} only if {@link Part#getAllHeaders()} * contains a {@co...
Java
ogham-test-utils/src/main/java/fr/sii/ogham/testing/assertion/filter/ContentIdPredicate.java
groupe-sii/ogham
apache-2.0
1,066
47
codeparrot/github-code
09388b53d6951aa3f8b4acabec37bbcae446e7903be2772411f378535c91012f
<?php /** * olap4php * * LICENSE * * Licensed to SeeWind Design Corp. under one or more * contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. SeeWind Design licenses * this file to you under the Apache License, Version 2...
PHP
metadata/LevelType.php
olap4php/olap4php
apache-2.0
12,541
395
codeparrot/github-code
e4739385921dd671aa06aff4828ccbefe3fc1a3d13fe36e40ad74e03675a0aa5
'use strict'; var assert = require('assert'), fs = require('fs'), path = require('path'), loadMeta = require('../server').loadMeta, phoneClient = require('../client'), phoneDataExpected = require('./input/phoneDataValidation'), outputDir = path.join(__dirname, 'output/'), outputFilePath = p...
JavaScript
test/test-phone-data-validation.js
dwbruhn/yalp
apache-2.0
2,561
73
codeparrot/github-code
6e68406911516353ad8771dab46254ac9b1ba102dae6b2310df36b9dc90fc1db
# Copyright 2016 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
Python
speech/google/cloud/speech/client.py
daspecster/google-cloud-python
apache-2.0
4,677
112
codeparrot/github-code
7dcd0dd99f74f4270fe5482c5626250b081da3a9ae75b6921c52a03bbe90faeb
<?php //ตรวจสอบถ้ามีการลบข้อมูล (ลบที่ละแถว) if ($_GET['action'] == 'del' && is_numeric($_GET['id']) && $_GET['id'] != '') { if (delete("tb_category", "id = " . $_GET['id'])) { SetAlert('ลบข้อมูลสำเร็จ', 'success'); //แสดงข้อมูลแจ้งเตือนถ้าสำเร็จ header('location:' . ADDRESS . 'category'); ...
PHP
controllers/category.php
nitikarn5990/library_system
apache-2.0
6,144
153
codeparrot/github-code
4a3959dc46eb930d1bc328c0e3a95d8ece162fb05f01650f34fd02c8ab5a319a
package enl.sif.examples; import org.apache.bcel.Constants; import enl.sif.codepoint.BytecodePosition; import enl.sif.codepoint.CP; import enl.sif.codepoint.CPFinder; import enl.sif.codepoint.CPInstrumenter; import enl.sif.codepoint.InstructionArgType; import enl.sif.codepoint.InstrumentOperation; import enl.sif.code...
Java
src/enl/sif/examples/FineGrainPerm.java
USC-NSL/SIF
apache-2.0
1,439
40
codeparrot/github-code
be73dece9acd25e93000c21f7a3e7c5fee8e43f72067296a50d967a021052f36
/* 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...
Java
src/android/IceCreamCordovaWebViewClient.java
infil00p/ThirdPartyWebViewRef
apache-2.0
4,213
104
codeparrot/github-code
48cd26a20c5d2509550cf7c63b14f816f114a85a524c9730ba49f8a1976e9dde
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you ...
Java
indexing-hadoop/src/main/java/org/apache/druid/indexer/updater/HadoopConverterJob.java
dkhwangbo/druid
apache-2.0
22,727
687
codeparrot/github-code
92ac202a1bbc5433063c2156b1f0a819930ed640f2f646ad49ffeb7e28167271
/* * Copyright 2012-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "licen...
Java
aws-java-sdk-dynamodb/src/main/java/com/amazonaws/services/dynamodbv2/model/transform/StreamDescriptionJsonUnmarshaller.java
dagnir/aws-sdk-java
apache-2.0
4,852
107
codeparrot/github-code
723fe1fddf854fde6dc48e527fa8c35d7134e4e61c1607c250dd182f2466ad6c
// Copyright 2011 The University of Michigan // // 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...
C++
src/idiom/observer.cc
jieyu/maple
apache-2.0
24,000
651
codeparrot/github-code
c4de12a20e72b6898d7170a800891237485a6e3d7c348fb7ab875593f721e061
package org.forpdi.planning.fields.table; import java.util.Date; import java.util.List; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.FetchType; import javax.persistence.ManyToOne; import javax.persistence.OneToMany; import javax.persistence.Table; import javax.persistence...
Java
backend-java/src/main/java/org/forpdi/planning/fields/table/TableInstance.java
forpdi/forpdi
apache-2.0
2,175
87
codeparrot/github-code
85a679905409b1620ede93becbbca25e554611a3baca6cbcc4b94257fc50fdcc
/* * Copyright 2003 - 2018 The eFaps Team * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or ...
Java
src/main/java/org/efaps/dataexporter/model/Column.java
eFaps/Data-Exporter
apache-2.0
8,976
337
codeparrot/github-code
40dfac60d9499ecfcf79c775316a57c9d2b939320931e456d2b7623634c231fc
#!/usr/bin/env python # -*- coding: utf-8 -*- """ dino.__main__ ~~~~~~~~~~~~~~~~~~~~~ The main entry point for the command line interface. Invoke as ``dino`` (if installed) or ``python -m dino`` (no install required). """ from __future__ import absolute_import, unicode_literals import logging import sys from dino.lo...
Python
dino/__main__.py
xandors/dino
apache-2.0
941
37
codeparrot/github-code
8ed64686e0b75454b53d76bb07d4c231493d61f169b51f9489122e0dfaa32f3a
// // Encog(tm) Core v3.2 - .Net Version // http://www.heatonresearch.com/encog/ // // Copyright 2008-2014 Heaton Research, 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 /...
C#
encog-core-cs/App/Finance/Indicators/Finance.cs
a7866353/encog-dotnet-core_work01
apache-2.0
9,542
274
codeparrot/github-code
e26b3026f49e40cf8a4df5c0555b81f3218a0e43f141b80953d1affbace0af06
/* * Copyright (C) 2014-2015 LinkedIn Corp. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use * this file except in compliance with the License. You may obtain a copy of the * License at http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by appl...
Java
gobblin-data-management/src/main/java/gobblin/data/management/copy/CopySource.java
sahooamit/bigdata
apache-2.0
8,038
191
codeparrot/github-code
d03c6c65d8e4d6e01d5dd99d91af17a395ce2a41627de15c52af39f29642a3de
#include "StdAfx.h" #ifdef DEBUG #include "UIDebugFonts.h" #include "UIDialogHolder.h" #include "dinput.h" CUIDebugFonts::CUIDebugFonts() { AttachChild(&m_background); InitDebugFonts(Frect().set(0, 0, UI_BASE_WIDTH, UI_BASE_HEIGHT)); } CUIDebugFonts::~CUIDebugFonts() {} void CUIDebugFonts::InitDebugFonts(Fre...
C++
code/engine/xrGame/ui/UIDebugFonts.cpp
Im-dex/xray-162
apache-2.0
1,642
60
codeparrot/github-code
000af08ca56636fc0e0e37ace2b9e662bbacf63606b38ae1c7c2abfeeb56895d
package com.tlf.msg.admin.service; import java.util.List; import com.tlf.msg.admin.domain.OrderGroup; import com.tlf.msg.admin.domain.OrderGroupExample; public interface OrderGroupService { public int countByExample(OrderGroupExample example); public void deleteByExample(OrderGroupExample example); pu...
Java
msg-admin/src/main/java/com/tlf/msg/admin/service/OrderGroupService.java
gdtlf/msg
apache-2.0
887
32
codeparrot/github-code
7a6f4d5302da5183fd5bf89ed0c4d10d8638fdf043b77224be6da77ad2721e32
using System.Windows; using System.Windows.Controls; using FeedProcessor.Enums; using Microsoft.Surface.Presentation.Controls; using SocialStream.Helpers; namespace SocialStream.Controls { /// <summary> /// Contains controls for an administrator of the application. Initiated by TagVisualizer. /// </summar...
C#
SocialStream/Controls/AdminPanel.xaml.cs
stimulant/SocialStream
apache-2.0
4,643
124
codeparrot/github-code
871d141acb9b989f9b77dd5b57eb7d6934d96ad9996105a247d9933b1d6682d2
/* * Copyright (c) 2010, 2013, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free ...
Java
sbql4j8/src/test/openjdk/tools/javadoc/6964914/Test.java
emil-wcislo/sbql4j8
apache-2.0
2,707
80
codeparrot/github-code
1fb7beae1d2bbafaabf282cda71d1c75f988e96c69585f6ca3c1fd38ac8d2a6e
package com.twitter.finagle.netty4.ssl.server import com.twitter.finagle.Address import com.twitter.finagle.ssl.server.{SslServerConfiguration, SslServerSessionVerifier} import io.netty.channel.Channel import io.netty.channel.embedded.EmbeddedChannel import io.netty.handler.ssl.SslHandler import io.netty.util.concurre...
Scala
finagle-netty4/src/test/scala/com/twitter/finagle/netty4/ssl/server/SslServerVerificationHandlerTest.scala
twitter/finagle
apache-2.0
3,078
115
codeparrot/github-code
9f9093c21c166376195a13939280ea9cdcd177f50fc1b78dbcb5062bddbde99c
using EddiDataDefinitions; using Newtonsoft.Json; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace EddiEvents { public class ShipInterdictedEvent : Event { public const string NAME = "Ship interdicted"; public const s...
C#
Events/ShipInterdictedEvent.cs
cmdrmcdonald/EliteDangerousDataProvider
apache-2.0
2,645
63
codeparrot/github-code
bd3021a4bbc61e0ddba349a0c4d597a7412cbb17b10e2322a863a637ac405d43
// Copyright 2016-2020 Authors of Cilium // // 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...
GO
pkg/ipam/types.go
tgraf/cilium
apache-2.0
4,114
128
codeparrot/github-code
4ee01d2a37b6089a01a1f230e92a5915a06484131a1ca2eeebced31fc54018cd
#!/usr/bin/env python # coding: utf-8 #http://python-3-patterns-idioms-test.readthedocs.org/en/latest/Metaprogramming.html class RegisterClasses(type): def __init__(cls, name, bases, atts): super(RegisterClasses, cls).__init__(name, bases, atts) if not hasattr(cls, 'registry'): ...
Python
Code/Chapter5/meta_04.py
heibanke/python_do_something
apache-2.0
1,022
35
codeparrot/github-code
a1711161da8b96a56297295173754c1cc9e453cb5b6db7ba3edf6b51578bf51f
package com.eclubprague.iot.android.weissmydeweiss.cloud.sensors.supports.cloud_entities; import com.google.gson.Gson; /** * Created by Dat on 8.9.2015. */ public class ShareSensorEntity { private String uuid; private String email; private String access = "protected"; private String permission = "r...
Java
app/src/main/java/com/eclubprague/iot/android/weissmydeweiss/cloud/sensors/supports/cloud_entities/ShareSensorEntity.java
eclub-sense/iot-android
apache-2.0
697
31
codeparrot/github-code
1fc3d1d7991f867ac6964543316b8e3023cac7e5c488be5bb0dd5d99ddf9e4e7
# # Cookbook Name:: java # Recipe:: default # # Copyright 2008-2010, Opscode, Inc. # Portions Copyright (c) 2012-2014 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 Li...
Ruby
chef/cookbooks/java/recipes/default.rb
virtualelephant/centos7-bde-chef
apache-2.0
2,343
75
codeparrot/github-code
1496cb6f81f8321e1d3e6450b1c27afcfd9bf1099d52e5d2dad9407302931e7f
<?php namespace Common; use Sifo\DebugDataBaseHandler; class FilterCookieDebug extends \Sifo\FilterCookie { public static function getCookiesArray() { $all_cookies = ( self::getInstance()->request ); $uncommon_cookies = array(); foreach ( $all_cookies as $key => $value ) { if ( preg_match( "/^[^__]/", ...
PHP
controllers/debug/index.php
sifophp/sifo-common-instance
apache-2.0
5,884
174
codeparrot/github-code
6de3af44b62939f41f330a1ed7095b05b5ff022df6e435199dcda499b23b3c2e
#include "jsonHelper.h" JsonValue::JsonValue() { } JsonValue::~JsonValue() { } void JsonValue::setValue( Json::Value value ) { m_root = value; } int JsonValue::size() { return m_root.size(); } std::string JsonValue::getString( const char *name, int index) { return m_root[ index ][ name ].asString(); } int ...
C++
src/managercode/manager/util/json/jsonHelper.cpp
jiangxiangxuan/jephy
apache-2.0
897
71
codeparrot/github-code
9c85c6f3a70cd3a649a3e4981f4511cab3ab1c60b6d57b8d8261a5f6da5ba78b
/* * 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...
JavaScript
zeppelin-web/src/app/interpreter/interpreter.controller.js
Madhuka/incubator-zeppelin
apache-2.0
17,797
497
codeparrot/github-code
398ef11af209fa8fc090daac88685d694ac2438d71b1caeb2385c9345da1206a
// © 2015 David R. Lamprea. // // 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...
C
src/common/utils_crypto.c
davidlamprea/candado
apache-2.0
1,005
37
codeparrot/github-code
a74c71605520ded6a191557e328545dd5c4c0577bf3fe1161cefcbd3a475bdea
/* * Copyright 2012-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "licen...
Java
aws-java-sdk-storagegateway/src/main/java/com/amazonaws/services/storagegateway/model/transform/TapeArchiveMarshaller.java
dagnir/aws-sdk-java
apache-2.0
3,846
74
codeparrot/github-code
e85c5e36e970de1acb6c0fd7d52e54fcbb286f4a8ed4360a486e1351bb623888
package com.action.leetcode; import java.util.HashSet; import java.util.Set; import java.util.TreeSet; /** * Summary: * Created by wuyunfeng on 14. 11月 2019 16:54. */ public class LC804 { public static int uniqueMorseRepresentations(String[] words) { String[] codes = {".-", "-...", "-.-.", "-..", "."...
Java
src/main/java/com/action/leetcode/LC804.java
pearpai/java_action
apache-2.0
1,043
36
codeparrot/github-code
d20c6ed9cf02d48fd200512074e4953bd307479e18f7baa50e22ee24082d6439
#region Apache License Version 2.0 /*---------------------------------------------------------------- Copyright 2022 Jeffrey Su & Suzhou Senparc Network Technology Co.,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 ...
C#
src/Senparc.Weixin.MP/Senparc.Weixin.MP/AdvancedAPIs/Analysis/AnalysisResultJson/UserAnalysisItemJson.cs
JeffreySu/WeiXinMPSDK
apache-2.0
2,103
72
codeparrot/github-code
e07735289f4f9202d869bbe45876d41c265b776ec703e05ee947b72869f5292b
RailsAdmin.config do |config| config.main_app_name = [ENV["COMMITTEE"], "Maintenance Database"] config.parent_controller = 'ApplicationController' ### Popular gems integration ## == Devise == config.authenticate_with do warden.authenticate! scope: :user end config.current_user_method(&:current_use...
Ruby
config/initializers/rails_admin.rb
jlm/maint
apache-2.0
1,913
98
codeparrot/github-code