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
29704a5df1d6e5a6fb5131f2bb00201add2d5cd77c446b854de477e5430e95f1
#ifndef _COMMANDTYPE_H_ #define _COMMANDTYPE_H_ // // // Copyright (C) 2004-2006 Autodesk, Inc. // // This library is free software; you can redistribute it and/or // modify it under the terms of version 2.1 of the GNU Lesser // General Public License as published by the Free Software Foundation. // // This librar...
C
源代码/Thirdparty/FDO/Inc(3.3.1)/Fdo/Commands/CommandType.h
SuperMap/Fdo_SuperMap
apache-2.0
5,836
193
codeparrot/github-code
69d29eee53808be53f138c3eba8e906aa7c9dfbeffc87576dee403359ff478cc
package com.cc.xsl.coolweather.activity; import android.content.Context; import android.content.Intent; import android.media.AudioManager; import android.media.MediaPlayer; import android.media.SoundPool; import android.view.View; import android.widget.Button; import com.cc.xsl.coolweather.R; import com.cc.xsl.coolwe...
Java
app/src/main/java/com/cc/xsl/coolweather/activity/AudioActivity.java
ToOak/CoolWearther
apache-2.0
12,429
361
codeparrot/github-code
d66100bf45de21747ca5e3f4475d81ffc63f66688dcd0a94935afbbd7bca3525
#ifndef color_generic_constant_brown #define color_generic_constant_brown // ::color::constant::brown( c ) #include "./base.hpp" namespace color { namespace constant { namespace _internal { namespace w3c { struct brown_t{}; } } namespace w3c { typedef ...
C++
src/color/generic/constant/brown.hpp
dmilos/color
apache-2.0
506
32
codeparrot/github-code
56b062a5dad340673df87083258f96006a0049e4a6c04b94f07476d138654e9c
package com.sc.td.common.utils.image; import java.io.File; import java.io.FileInputStream; import java.io.FileOutputStream; import java.io.IOException; import java.io.InputStream; import java.io.OutputStream; public class ImgBase64 { // 图片转化成base64字符串 public static String GetImageStr(String path, String fileName) ...
Java
src/main/java/com/sc/td/common/utils/image/ImgBase64.java
userKarl/sctd
apache-2.0
1,494
65
codeparrot/github-code
16a4d0699d3e464fa1fec40ecdf5a8f23c9096728a1652f9b1433f8d2055f65c
// // Copyright (c) XSharp B.V. All Rights Reserved. // Licensed under the Apache License, Version 2.0. // See License.txt in the project root for license information. // using System.Runtime.InteropServices; using Microsoft.VisualStudio.Project.Automation; using Microsoft.VisualStudio.Project; using EnvDTE; n...
C#
VisualStudio/ProjectPackage/Automation/OAXSharpFileItem.cs
X-Sharp/XSharpPublic
apache-2.0
1,285
47
codeparrot/github-code
ad9d59500d4ea730e80746c6c28baa1162cd5e3d41c4ebe1da787747417bd356
/* * Class: Contract.java * * Copyright 2015 Francis Screene * * 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...
Java
src/com/notarealtree/jealdata/Contract.java
NotARealTree/JEAL
apache-2.0
3,816
154
codeparrot/github-code
6d715b3bd2a41349c59c5f2ec1b822916ef613223832231917c9ca061ccc9ada
/* * Copyright 2014 Apigee Corporation * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed ...
Java
src/main/java/io/apigee/lembos/node/types/FileOutputFormatHelper.java
apigee/lembos
apache-2.0
17,655
409
codeparrot/github-code
e54add62123301a2cdb0624124b75f977353bddec5607a3cffe3b2b5b8da74b9
/* * 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-kafkaconnect/src/main/java/com/amazonaws/services/kafkaconnect/model/transform/WorkerLogDeliveryJsonUnmarshaller.java
aws/aws-sdk-java
apache-2.0
3,286
83
codeparrot/github-code
325b6837c7c238d8822ac32e19baae235e4526c409b8198356829cd00084d15c
/* libparted - a library for manipulating disk partitions Copyright (C) 2000, 2007, 2009-2011 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either...
C
packages/wbsairback-parted/wbsairback-parted-3.0/libparted/fs/ntfs/ntfs.c
WhiteBearSolutions/WBSAirback
apache-2.0
1,797
75
codeparrot/github-code
bdefcaf98fcecd802af44808590384662b7241e0827801b0eeeb29de67f5aed0
/* * ****************************************************************************** * Copyright (c) 2013-2014 Gabriele Mariotti. * * 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 ...
Java
cardslib/demo/stock/src/main/java/it/gmariotti/cardslib/demo/cards/ColorCard.java
tajchert/CEEHack
apache-2.0
2,364
89
codeparrot/github-code
ce1317609918baed2b0084dc5ee01758b4332cbd6c483d58a6196ebeed46b2f2
/* * Copyright (C) 2014 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless requir...
Java
Studio_Project/ExoPlayerLib/src/main/java/com/google/android/exoplayer/hls/HlsPlaylistParser.java
tyazid/Exoplayer_VLC
apache-2.0
11,138
283
codeparrot/github-code
9191ec90ca87e96156bcf8d138babf1e938901e7f1dbf53ae104a64377ef51f5
package net.filebot.ant.spk; import static java.nio.charset.StandardCharsets.*; import static net.filebot.ant.spk.Info.*; import static net.filebot.ant.spk.util.Digest.*; import java.io.File; import java.nio.file.Files; import java.util.ArrayList; import java.util.LinkedHashMap; import java.util.List; import java.uti...
Java
src/main/java/net/filebot/ant/spk/PackageTask.java
rednoah/ant-spk
apache-2.0
6,022
218
codeparrot/github-code
64dd88b14085f7227daa987358b53feba608d99c1ab50ddea7e2a1ba2ae5f8b9
/* Copyright 2013 KLab 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 writ...
Java
Engine/porting/Android/src/klb/android/GameEngine/billing/listener/IOnIabSetupFinishedListener.java
kennykwok1/PlaygroundOSS
apache-2.0
1,252
45
codeparrot/github-code
db5faf469ec253fbab21fdb7fbb901fc7d6d1f01cf39caa2db77310dd1215e47
package com.yujian.util; import org.apache.commons.io.IOUtils; import org.apache.http.client.methods.CloseableHttpResponse; import org.apache.http.client.methods.HttpGet; import org.apache.http.client.methods.HttpPost; import org.apache.http.config.ConnectionConfig; import org.apache.http.config.SocketConfig; import ...
Java
src/main/java/com/yujian/util/HttpUtil.java
yujianFresh/StepToPro-one
apache-2.0
4,047
96
codeparrot/github-code
5693505e654900596cc6f713e0432fc565c3a9d2820c484f8438c6c2c4e1e904
/* * Copyright 2014-2015 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 app...
Java
src/main/java/org/docksidestage/compatible10x/dbflute/allcommon/DBFluteInitializer.java
dbflute-test/dbflute-test-option-compatible10x
apache-2.0
6,139
145
codeparrot/github-code
ec5949faf91e3d9c38092b91a00245e37609831bc003f2132f18aacf585ace59
package com.daedafusion.cache.providers; import com.daedafusion.cache.Cache; import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.Logger; import redis.clients.jedis.Jedis; import redis.clients.jedis.JedisPool; import redis.clients.jedis.ScanParams; import redis.clients.jedis.ScanResult; import ...
Java
cache-redis/src/main/java/com/daedafusion/cache/providers/RedisCache.java
daedafusion/cache
apache-2.0
3,385
131
codeparrot/github-code
a3b65025ac5093e074a1a11fd6b582670342c96063acedc070ca552e5c94bbc1
package com.sync.jdbc; import java.sql.Connection; import java.sql.ResultSet; import java.sql.SQLException; import java.sql.Statement; /** * 可滚动的结果集 * * Created by Administrator on 2016/11/6 0006. */ public class ScrollTest { public static void main(String[] args) throws SQLException { scroll(); } sta...
Java
src/main/java/com/sync/jdbc/ScrollTest.java
MariShunxiang/JdbcSample
apache-2.0
1,420
49
codeparrot/github-code
89716863aab640304ee51b6d906474505e06c27382a20dff60fa714ca0bce203
<?php /** * * Package: Folio Authoring for WordPress * Class : Error * Description: This class extends the built in PHP error handling. */ namespace DPSFolioAuthor; if( $_SERVER[ 'SCRIPT_FILENAME' ] == __FILE__ ) die( 'Access denied.' ); if(!class_exists('DPSFolioAuthor\Error')) { class Error exten...
PHP
classes/dpsfa-error.php
StudioMercury/digital-publishing-tools-for-wordpress
apache-2.0
1,021
53
codeparrot/github-code
c5edb0c871502cde7f9102a380c70d68babf6d8030f2377d890c83255cf4ed12
// // UIViewController.hpp // JSCenter // // Created by Manuel Deneu on 09/12/2015. // Copyright © 2015 Manuel Deneu. All rights reserved. // #ifndef UIViewController_hpp #define UIViewController_hpp class UIView; class UIViewController { friend class UIView; public: virtual ~UIViewController() {} ...
C
Core/UI/UIViewController.h
manu88/Celesta
apache-2.0
617
34
codeparrot/github-code
e6a4d6df6c3f7be124aa9f2f4e67d8cd5cdc8eb34052245ef41bf9c51b2b6675
/* * 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/java/org/apache/cassandra/db/Mutation.java
guanxi55nba/db-improvement
apache-2.0
12,341
359
codeparrot/github-code
a4f4545caa16883be0199c29eb5054971dbacae75b4e4d2649a14118a4b07aa5
package com.windupurnomo.iqro.fragments; import android.media.MediaPlayer; import android.os.Bundle; import android.support.v4.app.Fragment; import android.support.v4.app.FragmentActivity; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.ImageView; imp...
Java
app/src/main/java/com/windupurnomo/iqro/fragments/SlideFragment.java
zcodegroup/IQRO
apache-2.0
2,507
76
codeparrot/github-code
b1c073fe661afb6e2228584158f3d1e49fa77fbd1f8d8f0dbd61be43362991fa
/* * Copyright 2014 The Closure Compiler 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...
Java
src/com/google/javascript/jscomp/AccessControlUtils.java
mprobst/closure-compiler
apache-2.0
9,031
222
codeparrot/github-code
bdcc32d0927c4ae0a086fb6d0ee7e64474bb09d1449abc7d6dc6302e13984062
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to you under the Apache License, Version 2.0 * (the "License"); you may ...
Java
core/src/main/java/org/apache/calcite/util/BuiltInMethod.java
xhoong/incubator-calcite
apache-2.0
34,111
627
codeparrot/github-code
165ef776644935706c42af2e3edb2a5957835849201f1da856c1e9fe4f930adf
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ package com.dinglicom.frame.sys.service; import com.dinglicom.frame.sys.entity.SysToken; import com.dinglicom.frame.sys.entity.SysUser...
Java
src/main/java/com/dinglicom/frame/sys/service/SysTokenService.java
pzjack/webframe
apache-2.0
1,185
50
codeparrot/github-code
2183cbf8a7114d92f7e67bc00c5d0f696ea73d1de5f6aadcb31794f173ba86d9
// Copyright (c) 2014-present, Facebook, Inc. All rights reserved. // // You are hereby granted a non-exclusive, worldwide, royalty-free license to use, // copy, modify, and distribute this software in source code or binary form for use // in connection with the web services and APIs provided by Facebook. // // As with...
C
Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/GraphAPI/FBSDKGraphRequestProtocol.h
edx/edx-app-ios
apache-2.0
2,588
75
codeparrot/github-code
417cfc19e76b3d8ab99af704d41c6e7aa4560fc2f177f256d0e5f3f91c2c97b5
package cn.com.chenyixiao.rrs.service.impl; import java.util.ArrayList; import java.util.List; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; import cn.com.chenyixiao.rrs.dao.FoodDAO; impor...
Java
src/main/java/cn/com/chenyixiao/rrs/service/impl/FoodServiceImpl.java
tensorchen/rrs
apache-2.0
1,703
79
codeparrot/github-code
22eb5fe2b4038215bb3fe5c9a9a50cbde480445ff05cc56b1de0ad02abd593c7
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Windows; using System.Windows.Controls; using System.Windows.Data; using System.Windows.Documents; using System.Windows.Input; using System.Windows.Media; using System.Windows.Media.Imaging; using System.Windo...
C#
cOTP/MainWindow.xaml.cs
manzke/cotp
apache-2.0
2,171
74
codeparrot/github-code
86188280aa5e4c4d7f7eee88b1a69350f557659671d8f601804b7b1901cec0fa
package com.obomprogramador.dropbackend; import io.dropwizard.Application; import io.dropwizard.assets.AssetsBundle; import io.dropwizard.setup.Bootstrap; import io.dropwizard.setup.Environment; public class DrbApplication extends Application<DrbConfiguration> { public static void main(String[] args) throws Exce...
Java
dropbackend/src/main/java/com/obomprogramador/dropbackend/DrbApplication.java
cleuton/mobileBackendSamples
apache-2.0
1,067
36
codeparrot/github-code
810755608f600d0c8aa2e6571edb82a1b2b77daa6a6f73a509d57beba01a231c
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="description" content="Tambr is a software that uses machine learning and algorithmic composition to gene...
HTML
index.html
JessieSalas/timbr-site
apache-2.0
6,516
185
codeparrot/github-code
56207480ed9d35a162d9465cb627d2de885d9a638b363f230c3c60fe8f3e48e0
package helm import ( "context" "errors" "fmt" "io/ioutil" "regexp" "strings" "sync" "time" "helm.sh/helm/v3/pkg/action" "helm.sh/helm/v3/pkg/kube" appsv1 "k8s.io/api/apps/v1" "k8s.io/apimachinery/pkg/labels" "k8s.io/apimachinery/pkg/types" "k8s.io/apimachinery/pkg/version" "k8s.io/client-go/discovery"...
GO
pkg/service/helm/proxy.go
openpitrix/openpitrix
apache-2.0
25,008
773
codeparrot/github-code
43643bb2f2273326fdf926060c21ac1cf45905f05eabef17f2d6972f245938b9
/* * Copyright 1999-2018 Alibaba Group Holding Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applica...
Java
naming/src/main/java/com/alibaba/nacos/naming/web/DistroIpPortTagGenerator.java
alibaba/nacos
apache-2.0
2,280
62
codeparrot/github-code
4d0067992b2335846e342c955ecb0736ad8d96a057df7020076e7b91ec552553
/* * Copyright 2014 The Apache Software Foundation * * 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 ...
Java
phoenix-core/src/main/java/org/apache/phoenix/parse/LimitNode.java
ramkrish86/incubator-phoenix
apache-2.0
1,347
41
codeparrot/github-code
109d00b3cea7874fbeca39860aedf59e20e8ee20e265218a746aab745dff10d4
package di.util; import di.action.PDFAction; import di.service.PDFService; public class DependencyInjector { public void start() { // initialization code } public void shutDown() { // clean-up code } /* * Returns an instance of type. type is of type Class * and not...
Java
java_web/springmvc/di/src/main/java/di/util/DependencyInjector.java
technonac/studycode
apache-2.0
802
33
codeparrot/github-code
d14e763d2a3bb8c4dc41042ca3edeb3f806a15273c1f6f353045d4520a67ded4
#!/usr/bin/python # Copyright 2009 Jay Reding # 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 ...
Python
share/blogtk2/lib/blogtk2/main.py
Ryuno-Ki/BloGTK3
apache-2.0
26,085
783
codeparrot/github-code
a6a7589ef2e4fa4f5a6667b7b4bd744ee35c9dd5a0e2d579c0419c4d6e55b1a3
package ru.job4j.Sorting; /** * Class User. * * @author Tatyana Belova * @since 14.09.2017 */ public class User implements Comparable<User> { /** * имя. */ private String name; /** * возраст */ private int age; /** * конструктор. * @param name * @param age ...
Java
chapter_003/src/main/java/ru/job4j/Sorting/User.java
belovattt/tbelova
apache-2.0
1,046
56
codeparrot/github-code
f0cf5dd8b3911f23ba3428bac7d69efdff140593091b36c3e52167cd695fa7e4
"""JVPN netstats libraries """ __author__ = 'e@dscp.org (Ebben Aries)' import socket import struct def GetNetstats(device): device = device + ':' for line in open('/proc/net/dev', 'r'): data = filter(None, line.split(' ')) if data[0] == device: return (data[1], data[2], data[9], data[10]) def Get...
Python
jvpn/netstats.py
earies/jvpn
apache-2.0
1,247
44
codeparrot/github-code
e12c8158fc819e8369d5484c046e4c4e013cade3c349587008e333be3b67a51d
/* * Copyright 2010-2021 James Pether Sörling * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law o...
Java
service.impl/src/test/java/com/hack23/cia/service/impl/action/user/ChangePasswordServiceITest.java
Hack23/cia
apache-2.0
16,053
365
codeparrot/github-code
ae25ad21c6e8b3a00b94b262b5c4376f345e19b4aca5e0bd35e8f47a76a8e050
package com.cwgk.util; import java.io.File; import java.io.FileOutputStream; import java.io.IOException; import java.io.InputStream; import android.content.Context; import android.content.res.AssetManager; import android.database.sqlite.SQLiteDatabase; import android.os.Environment; import android.util.Log; public c...
Java
src/com/cwgk/util/DBManager.java
cwgk/zhly
apache-2.0
1,541
65
codeparrot/github-code
0cf754702645d32903d5b0d4e01921bd917e157f9181238bc7248d4150b5df4d
// Copyright 2019 Proyectos y Sistemas de Mantenimiento SL (eProsima). // // 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++
test/blackbox/common/BlackboxTestsPubSubHistory.cpp
eProsima/Fast-DDS
apache-2.0
42,862
1,331
codeparrot/github-code
bb95875c55685c9f29ad7815510033137589b8685c1640ee36608fcb5d95b1df
/* * Copyright 2012-2019 Andrey Grigorov, Anton Grigorov * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy of * the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by app...
Java
src/main/java/org/cherchgk/domain/Tournament.java
peneksglazami/chgk
apache-2.0
5,823
206
codeparrot/github-code
c74b648d9f3a0ff9b593c270aa94f4f7c6f3dbcd5601ccc909c78f97c80184ba
/* * Copyright (c) 2017 Otávio Santana and others * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * and Apache License v2.0 which accompanies this distribution. * The Eclipse Public License is available at http://ww...
Java
artemis-key-value/src/main/java/org/jnosql/artemis/key/query/KeyValueRepositoryProxy.java
JNOSQL/artemis
apache-2.0
2,002
66
codeparrot/github-code
d854c64f097eaddcaf8a614fa65747a837ac1fdd00c05bb334233a790c2cabb5
package psidev.psi.mi.jami.xml.io.writer.elements.impl.xml30; import junit.framework.Assert; import org.junit.Test; import psidev.psi.mi.jami.exception.IllegalRangeException; import psidev.psi.mi.jami.model.CausalRelationship; import psidev.psi.mi.jami.model.ModelledParticipant; import psidev.psi.mi.jami.model.impl.De...
Java
jami-xml/src/test/java/psidev/psi/mi/jami/xml/io/writer/elements/impl/xml30/XmlCausalRelationshipWriterTest.java
MICommunity/psi-jami
apache-2.0
4,032
84
codeparrot/github-code
0655f4bdc84da6b2b05d4a356a156fd03f0f7d87cd22c91ed252d4dfb5cf0241
/* * 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/CPUUtilization.cpp
ambasta/aws-sdk-cpp
apache-2.0
5,572
196
codeparrot/github-code
c85af12a7ca072a6adfdb9beb31a1a02bf935b70666f250874d74940cb21a9fb
<?php namespace backend\models; use Yii; /** * This is the model class for table "product_rel_tag". * * @property integer $tag_id * @property integer $product_id */ class ProductRelTag extends \yii\db\ActiveRecord { /** * @inheritdoc */ public static function tableName() { return '...
PHP
backend/models/ProductRelTag.php
n34n/nxshop
apache-2.0
743
45
codeparrot/github-code
603ce5a36cc42172bbf3a6e2c2656169bb3a331b6048039c8435ecf1cc4592e9
/** * Copyright 2015 Netflix, 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 ...
Java
spectator-reg-servo/src/test/java/com/netflix/spectator/servo/ServoTimerTest.java
cfieber/spectator
apache-2.0
6,959
240
codeparrot/github-code
fdeceaa4598e58c17bde84719854c68ec0381193d459211082492fdc4746e9c5
using System.Configuration; using Microsoft.Practices.ServiceLocation; using Microsoft.Practices.Unity; using Microsoft.Practices.Unity.Configuration; using Umizoo.Infrastructure; using Umizoo.Infrastructure.Composition; namespace Umizoo.Configurations { public static class UnityContainerUtils { publi...
C#
src/Extensions/Umizoo.Unity/Configurations/UnityContainerUtils.cs
imyounghan/umizoo
apache-2.0
1,091
35
codeparrot/github-code
49c027ec842e8418ec97c008ec2b6d4d3b253d2eeb6e40136e4c9fb4fd8040fc
/* Copyright (c) 2010, Siemens Corporate Research a Division of Siemens Corporation 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....
Java
src/com/siemens/cmiv/avt/mvt/ad/ADQuery.java
OpenXIP/avt-mvt
apache-2.0
5,712
203
codeparrot/github-code
af7314e824edc00123f6b4aff6e36c35a1af7041bf72f9155207442346ca664f
import { setPropertiesFromJSON } from '../../json-helper'; /** * Generated class for shr.entity.LotNumber. */ class LotNumber { /** * Get the value (aliases string). * @returns {string} The string */ get value() { return this._string; } /** * Set the value (aliases string). * @param {str...
JavaScript
src/model/shr/entity/LotNumber.js
standardhealth/flux
apache-2.0
1,123
53
codeparrot/github-code
b8f80c9e38a053920433207f09fb035f4accc2a711c402058abcb2dd5b15ac25
/* * Copyright (C) 2011 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by app...
Java
src/com/android/inputmethod/latin/BinaryDictionaryGetter.java
slightfoot/android-kioskime
apache-2.0
15,126
339
codeparrot/github-code
c6a2e55b4161f23c634357c9cfe62793ae2e20323c266f36e0a8b85b0e3b77ea
/* * Copyright (C) 2014-2015 Vy Nguyen * Github https://github.com/vy-nguyen/tvntd * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * 1. Redistributions of source code must retain the above copyright * no...
Java
java/socnet/src/main/java/com/tvntd/models/ArticleBase.java
vy-nguyen/tvntd
apache-2.0
8,176
334
codeparrot/github-code
e6be668cc887c6f8ac932dd533a403e7f754f0b64c59d0ea0f5fd0b392933a0f
<meta pubdate="02-08-2018 12:00"> <h2>OsmAnd 3.1</h2> <div class="date">Aug 2, 2018</div> <p>OsmAnd 3.1 is here! Here are some of the most important updates.</p> <h3>Wikipedia and Wikivoyage</h3> <p>We have significantly improved the Parsing algorithms of Wikipedia articles, fixed the problems with French and Italian...
HTML
website/blog_articles/osmand-3-1-released.html
osmandapp/osmandapp.github.io
apache-2.0
2,801
50
codeparrot/github-code
ec7d6e0178c255513b55a30f40ebddbc2628d67ec5db999a806a349c342eb604
package v1 import ( "github.com/golang/glog" "github.com/hashicorp/nomad/api" "github.com/openebs/maya/types/v1" ) // NomadUtilInterface is an abstraction over Hashicorp's Nomad properties & // communication utilities. type NomadUtilInterface interface { // Name of nomad utility Name() string // This is a bui...
GO
orchprovider/nomad/v1/util.go
gkGaneshR/maya
apache-2.0
2,665
100
codeparrot/github-code
c7fff75f86d4afdcfc72539a42701fd60df6770f643dc27f1b97306f12741412
/* * Copyright 2008-2019 by Emeric Vernat * * This file is part of Java Melody. * * 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/LI...
Java
javamelody-core/src/test/java/net/bull/javamelody/internal/web/html/TestHtmlJndiTreeReport.java
javamelody/javamelody
apache-2.0
5,046
135
codeparrot/github-code
a0f2ff841ff34333937495e9b0d76729a25473705e560ce98c190d0c470d4f56
/*========================================================================= * * Copyright Insight Software Consortium * * 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 * * h...
C
Modules/Segmentation/Watersheds/include/itkTobogganImageFilter.h
eile/ITK
apache-2.0
4,274
125
codeparrot/github-code
4847427f001cdac81aa1533b6daa30cfe86fb868c05d6d3fb5a695b1a4d57e11
package br.com.rhfactor.myburger.service; import java.util.List; import javax.inject.Inject; import org.apache.log4j.Logger; import br.com.rhfactor.myburger.controller.MenuController; import br.com.rhfactor.myburger.dao.IMenuDao; import br.com.rhfactor.myburger.model.Menu; import br.com.rhfactor.myburger.model.Menu...
Java
src/main/java/br/com/rhfactor/myburger/service/MenuService.java
robertofonsecabc/myburger
apache-2.0
1,165
64
codeparrot/github-code
af5fd0c074223805639ed546269b57cc32df179b0e5e164ec3d9a318546ac8c2
/* * This file is part of iSkin. * * Copyright (c) 2014 thehutch. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at: * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless require...
Java
src/main/java/me/thehutch/iskin/listeners/PlayerListener.java
thehutch/iSkin
apache-2.0
3,289
94
codeparrot/github-code
38d28604d16c0932fc4598f9650e025ad56e3297346b98065baf17c431f0d58b
/* * Copyright 2011 Perforce Software Inc., All Rights Reserved. */ package com.perforce.p4java.impl.generic.core; import java.util.ArrayList; import java.util.Date; import java.util.List; import java.util.Locale; import java.util.Map; import com.perforce.p4java.Log; import com.perforce.p4java.client.IClientViewMap...
Java
p4java/r15-2/src/main/java/com/perforce/p4java/impl/generic/core/Stream.java
groboclown/p4ic4idea
apache-2.0
23,343
786
codeparrot/github-code
22719277cbbb2813f30ccf1ac341625cf256cb530c3661abb39f0abcc19a6b28
package com.gigamog.controller; import javax.inject.Singleton; import javax.servlet.http.HttpServletRequest; import javax.ws.rs.DELETE; import javax.ws.rs.GET; import javax.ws.rs.POST; import javax.ws.rs.PUT; import javax.ws.rs.Path; import javax.ws.rs.PathParam; import javax.ws.rs.Produces; import javax.ws.rs.core.Co...
Java
src/main/java/com/gigamog/controller/CardController.java
alejandrade/NikeDemo
apache-2.0
3,658
121
codeparrot/github-code
41b0a5c3328595d20e05d4e6e36b588c482fc53583cd769e4990c5b1ce77d6ad
/* * Copyright 2012 OSBI Ltd * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or...
Java
saiku-core/saiku-web/src/main/java/org/saiku/web/rest/resources/Query2Resource.java
NAUMEN-GP/saiku
apache-2.0
23,857
635
codeparrot/github-code
50d09c2240bfc597850e48d353e12275ce4bc6c2d71c4cece9ef9795699832e1
/** * * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); ...
Java
hbase-client/src/main/java/org/apache/hadoop/hbase/filter/RowFilter.java
gustavoanatoly/hbase
apache-2.0
4,749
143
codeparrot/github-code
5467834b4a050c972e05387233702dd8a79c6896ca144c3a0b6e623eb71e8159
package org.jbpm.examples.humantask; import java.util.HashMap; import java.util.Map; import java.util.Properties; import org.jbpm.runtime.manager.impl.RuntimeEnvironmentBuilder; import org.jbpm.services.task.identity.JBossUserGroupCallbackImpl; import org.jbpm.services.task.utils.ContentMarshallerHelper; import org.j...
Java
jbpm-examples/src/main/java/org/jbpm/examples/humantask/HumanTaskExample.java
hxf0801/jbpm
apache-2.0
5,264
106
codeparrot/github-code
a2fc278147ed784e388eb2622fc07c5d7d8670906dade866e6ae03c5cc34a661
/* Copyright (C) 2013-2014 Computer Sciences 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 ap...
C++
api/cpp/src/main/cpp/util/CryptoUtil.cpp
ezbake/ezbake-configuration
apache-2.0
2,198
59
codeparrot/github-code
1b5ee000380bcd835df52c8b518aeda69f5816d153197e80f19d8f753de46939
/* * ****************************************************** * Copyright VMware, Inc. 2010-2012. All Rights Reserved. * ****************************************************** * * DISCLAIMER. THIS PROGRAM IS PROVIDED TO YOU "AS IS" WITHOUT * WARRANTIES OR CONDITIONS # OF ANY KIND, WHETHER ORAL OR WRITTEN, ...
Java
java/JAXWS/samples/com/vmware/guest/CreateTemporaryFile.java
jdgwartney/vsphere-ws
apache-2.0
5,658
129
codeparrot/github-code
e624575b6c6ccd90034c61c70a274b68acdbf90a72938172d733f34a83d0602b
/* * Copyright 2016 The Sem Project. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agr...
Java
openSem/src/main/java/org/thesemproject/opensem/gui/modelEditor/DataProviderTreeRelationshipNode.java
fiohol/theSemProject
apache-2.0
5,102
169
codeparrot/github-code
434f2aa685bcec1d77cea2d3a8edfb54539e058f6af52d685c2ad65ed47271a9
// Copyright (C) 2014 The Android Open Source Project // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable ...
Java
src/main/java/com/googlesource/gerrit/plugins/gitblit/auth/GerritGitBlitAuthenticationManager.java
tomaswolf/gerrit-gitblit-plugin
apache-2.0
12,780
350
codeparrot/github-code
895d9ffe0fe64a9ac44e96981a6e4bd30fd5ca9cc1dbf6cc7b1248846e054811
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Microsoft.AspNetCore.Mvc; namespace webapi.Controllers { [Route("api/[controller]")] public class ValuesController : Controller { // GET api/values [HttpGet] public I...
C#
webapi/Controllers/ValuesController.cs
DonSchenck/NetOnLinuxBook
apache-2.0
960
45
codeparrot/github-code
1274f1e6362ac9e3c4906fd8444cdfbb149e295f8234f4f63a391fec6e381231
"""calculate bootstrap bounds on a sample game""" import argparse import json import sys import numpy as np from gameanalysis import bootstrap from gameanalysis import gameio from gameanalysis import regret from gameanalysis import scriptutils CHOICES = { 'regret': (bootstrap.mixture_regret, regret.mixture_regr...
Python
gameanalysis/script/sgboot.py
yackj/GameAnalysis
apache-2.0
3,682
84
codeparrot/github-code
1518e3619dee88cd24387fb14cb9c79b4ba10636c7514bad85a047b9e3937801
/* * 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 applica...
Java
mlkit/mlkitFaceTrackerDemo/app/src/main/java/edu/cs4730/mlkitfacetrackerdemo/GraphicOverlay.java
JimSeker/googleplayAPI
apache-2.0
8,319
239
codeparrot/github-code
68c3a1d7a7cf2938fd35661d39d53b5a52b2bd166304b6b1ddda16691161d948
/** * Copyright (C) 2010-20.. Nicolas Hernandez * 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 Apac...
Java
uima-star/uima-common/src/main/java/fr/univnantes/lina/uima/common/cas/located/LocatedAnnotation.java
nicolashernandez/dev-star
apache-2.0
23,565
1,042
codeparrot/github-code
4c85a9bc697c8a7031a9b404036a3cd5ea1c61b5f67816c8be2cbe6010c51e1b
//! # MongoDB Rust Driver //! //! A driver written in pure Rust, providing a native interface to MongoDB. //! //! ## Connecting to MongoDB //! //! The Client is an entry-point to interacting with a MongoDB instance. //! //! ```no_run //! # use mongodb::{Client, ClientOptions, ThreadedClient}; //! # use mongodb::common:...
Rust
src/lib.rs
saghm/mongo-rust-driver-prototype
apache-2.0
18,297
529
codeparrot/github-code
89e995cedcef19ef37bb548bbd0684e538b8b63d0245fadfa4105e5ce0864785
# vim: tabstop=4 shiftwidth=4 softtabstop=4 # Copyright 2012 Nebula, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # ...
Python
wildcard/views.py
kickstandproject/wildcard
apache-2.0
1,561
50
codeparrot/github-code
69f622ff9597f76f20f13aab3c2eae9d1ef65067074a0252162bcfa7b540cc05
package com.example.Adrian.myapplication.backend; import com.google.android.gcm.server.Constants; import com.google.api.server.spi.Constant; import com.google.api.server.spi.config.Api; import com.google.api.server.spi.config.ApiMethod; import com.google.api.server.spi.config.ApiNamespace; import com.google.api.server...
Java
backend/src/main/java/com/example/Adrian/myapplication/backend/UserRegisterEndpoint.java
ancarrera/BloodPressureMonitor
apache-2.0
3,949
87
codeparrot/github-code
1ad3c195d0e0a0ec359704e28d3ec546abfb18a48ec6f50b49f2acda553cabb4
// 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 un...
JavaScript
app/core/api.js
garrensmith/couchdb-fauxton
apache-2.0
3,544
122
codeparrot/github-code
cecda0f44552b05a3b6f5fa69c2a6b745bbff590ade5e5df83151ce1cc78ea9d
using AndroidInteropLib.android.content; using AndroidInteropLib.com.android._internal.util; using AndroidInteropLib.org.xmlpull.v1; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AndroidInteropLib.android.util { class XmlPullAttribute...
C#
AndroidUILib/android/util/XmlPullAttributesFromResString.cs
Ticomware/AstoriaUWP
apache-2.0
4,735
154
codeparrot/github-code
85d97f1d30e0f7718165cc7eb5c9befb3b488d6f90aa01be7161db2b63b2bb8a
from swift.common.swob import Request from swift.common.utils import split_path from Crypto.Cipher import AES from Crypto import Random import hashlib AES_BLOCK = 32 def create_encrypt(raw, password): raw = _pad(raw) key = hashlib.sha256(password.encode()).digest() iv = Random.new().read(AES.block_size) ...
Python
myswift/encrypt.py
xczheng/swift-encrypt-compress-middleware
apache-2.0
3,355
96
codeparrot/github-code
1e858785a8684b030b708c414139929e10366a21f44e5cc27595b937821ff950
package org.txazo.java.time; import org.junit.Test; import java.util.Calendar; import java.util.Date; /** * Calendar */ public class CalendarTest { @Test public void test() { /** GregorianCalendar */ Calendar c = Calendar.getInstance(); System.out.println(c.get(Calendar.YEAR)); //...
Java
src/main/java/org/txazo/java/time/CalendarTest.java
txazo/java
apache-2.0
1,195
42
codeparrot/github-code
2497d767976a3c8a166f4b2febd1594b0bc1f8706842db4be794e4d36fce787f
package bookshop2.seller.incoming.purchaseBooks; import static org.mockito.Mockito.mock; import static org.mockito.Mockito.verify; import org.aries.tx.AbstractListenerForJAXWSUnitTest; import org.aries.util.FieldUtil; import org.aries.validate.util.CheckpointManager; import org.junit.After; import org.junit.Before; i...
Java
bookshop2/bookshop2-seller/bookshop2-seller-service/src/test/java/bookshop2/seller/incoming/purchaseBooks/ShipmentCompleteListenerForJAXWSUnitTest.java
tfisher1226/ARIES
apache-2.0
4,549
141
codeparrot/github-code
3266049bfb1ebac4ea37ad1ed536e6c75c847d8ba60a2f7d5d97aba1b8f6bc59
#include "nit.common.h" #define COLOR_nit__astbuilder__ASTBuilder___mmodule 0 extern const char FILE_nit__astbuilder[]; #define COLOR_nit__astbuilder__ASTBuilder___anchor 1 val* NEW_nit__ADecIntExpr(const struct type* type); extern const struct type type_nit__ADecIntExpr; val* nit__model___MModule___int_type(val* self)...
C
c_src/nit__astbuilder.sep.0.h
ablondin/nit
apache-2.0
7,743
147
codeparrot/github-code
9ecefd00397535b992a3b1d50f84d61d6a529b65be1a3301b4fbdc6c89e7b196
package com.zhuleiyue.launcherdemo; import android.content.ComponentName; import android.content.Context; import android.content.Intent; import android.content.pm.PackageManager; import android.net.Uri; import android.os.Build; import android.os.Bundle; import android.provider.Settings; import android.util.Log; import...
Java
app/src/main/java/com/zhuleiyue/launcherdemo/LauncherActivity.java
zly394/Launcher
apache-2.0
3,614
105
codeparrot/github-code
4f49e68f232bcee79c218419fc7cda49880f20950d9cfb73f780f8013816ae8e
import {Component, Input, OnInit} from '@angular/core'; import { ControlValueAccessor, NG_VALUE_ACCESSOR } from '@angular/forms'; import {SelectionModel} from "@angular/cdk/collections"; @Component({ selector: 'app-task-stats', templateUrl: './task-stats.component.html', styleUrls: ['./task-stats.component.css',...
TypeScript
atlas/frontendjs/prodsysjs/src/app/production-request/task-stats/task-stats.component.ts
PanDAWMS/panda-bigmon-atlas
apache-2.0
3,370
105
codeparrot/github-code
e2244b73cdb81f420c648fb840a873af03e31b81f420226d4bbdcfc15432bb77
package es.ucm.fdi.iw.model; import java.util.ArrayList; import java.util.Date; import java.util.List; import javax.persistence.*; @NamedQueries({ @NamedQuery(name = "getUsersRecibe", query = "select i from Intercambio i where i.usuarioRecibe = :userRecibe"), @NamedQuery(name = "getUsersOfrece", query ...
Java
src/main/java/es/ucm/fdi/iw/model/Intercambio.java
lorenpaz/CardEx
apache-2.0
5,386
171
codeparrot/github-code
ff9e443f2a069d7a0cc50eeab8d807539ac0a03ed5d84e35cacd462e8cbe1c44
=begin Copyright 2012-2013 inBloom, Inc. and its affiliates. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed...
Ruby
tools/odin/lib/EntityCreation/work_order_queue.rb
inbloom/secure-data-service
apache-2.0
1,994
88
codeparrot/github-code
725be01e5b3dfaa536bde72b8c2b4e3be1576ddc3e2d2eff1a680196c0c3e89d
#include <iostream> #include <string> #include <sstream> #include <vector> #include <set> #include <map> #include <list> #include <queue> #include <stack> #include <memory> #include <iomanip> #include <numeric> #include <functional> #include <new> #include <algorithm> #include <cmath> #include <cstring>...
C++
MainPL/Inversions.cpp
aajjbb/contest-files
apache-2.0
1,391
68
codeparrot/github-code
f15aa98dae7a60a4b1053537ba5b119565e6929f05e1d86e8348288cff05ca20
/* * Copyright 2015-2016 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by ap...
Java
spring-cloud-task-core/src/test/java/org/springframework/cloud/task/util/TestDefaultConfiguration.java
trisberg/spring-cloud-task
apache-2.0
3,213
94
codeparrot/github-code
a30207ebd9d14b607a0ec6981208866913a8224b4d99a5dedeb473d254210695
// this sets the background color of the master UIView (when there are no windows/tab groups on it) Ti.UI.setBackgroundColor('black'); Ti.include('sc.js'); sc.ui.windows = []; // Create the home window. var winHome = Ti.UI.createWindow({ title:'Home', backgroundColor:'black' }); var label = Ti.UI.createLab...
JavaScript
Resources/app.js
jeffbonnes/speedCompare
apache-2.0
2,375
87
codeparrot/github-code
204e7040a78dd859f34c9f0eebe7f49047f87e358e5326fd90b952cce3e5bcd8
/** @flow */ import ActionType from '../../actions/ActionType' export default (state = { isAuthorized: null, isAuthorizing: false, }, action) => { switch (action.type) { case ActionType.Drive.Authorization.REQUEST: return { ...state, isAuthorizing: true, } case ActionType.Dri...
JavaScript
frontend/reducers/DriveReducer/AuthorizationReducer.js
ted-eckel/in1box
apache-2.0
632
31
codeparrot/github-code
8955a41e4528abac8686a1b0cd8406218193be6f2a5496f9b377a87b08a5f255
/*! * UI development toolkit for HTML5 (OpenUI5) * (c) Copyright 2009-2016 SAP SE or an SAP affiliate company. * Licensed under the Apache License, Version 2.0 - see LICENSE.txt. */ /** * Control-based DataBinding * * @namespace * @name sap.ui.model.control * @public */ // Provides the JSON object based mod...
JavaScript
Resources/public/sap/ui/model/control/ControlModel-dbg.js
pro100den/openui5-bundle
apache-2.0
2,472
98
codeparrot/github-code
7fe9c33275c1900659259afccac76ebc121c99f6cf6477b6fef47b6494617bd7
#pragma once #include <stdio.h> #include <iostream> #include <fstream> #include <hash_map> #include <algorithm> using namespace std; class MyProperty { private: string _key; string _value; bool _valid; public: MyProperty() {_valid=false;} MyProperty(string key,string value); string getKey(); s...
C
CVTool2/CProperties.h
baolingfeng/VideoScrapingTool
apache-2.0
722
39
codeparrot/github-code
4fdd6b2a6064e2e4772c6a4a3610f801e27f1ccbe5c7c2a9b62e2464638d8317
/** * */ package com.hsjawanda.gaeobjectify.util; import static com.google.common.base.Preconditions.checkNotNull; import java.util.ArrayList; import java.util.LinkedHashMap; import java.util.List; import java.util.Map; import java.util.Optional; import java.util.logging.Logger; import javax.annotation.Nonnull; i...
Java
src/main/java/com/hsjawanda/gaeobjectify/util/Convert.java
hsjawanda/gae-objectify-utils
apache-2.0
3,558
127
codeparrot/github-code
c5a88cb4273f8a0c82e18151b4b94171052b3d4a345a03cf1e4cd006c4931ec1
package editor.plugin.typeloader.java; import editor.EditorHost; import gw.lang.javac.JavaIssueContainer; import gw.lang.IIssueContainer; import editor.plugin.typeloader.INewFileParams; import editor.plugin.typeloader.ITypeFactory; import gw.lang.javac.IJavaParser; import gw.lang.javac.StringJavaFileObject; import gw....
Java
gosu-lab/src/main/java/editor/plugin/typeloader/java/JavaTypeFactory.java
gosu-lang/gosu-lang
apache-2.0
3,379
126
codeparrot/github-code
269ddc1118c2d0999a5f3175fc8fbbcfac27a905394d81763f66473aa2ffd5e9
/* * Copyright 2017 - 2019 Roman Borris (pcfreak9000), Paul Hagedorn (Panzer1119) * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/...
Java
src/main/java/de/omnikryptec/old/postprocessing/stages/BloomStage.java
OmniKryptec/OmniKryptec-Engine
apache-2.0
3,031
83
codeparrot/github-code
1f9f9aaadee751f0764c50719f18c247041f5d1ab84ab78d6eb823f9951fba87
/** * 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
core/src/test/java/org/apache/oozie/coord/input/logic/TestCoordInputLogicPush.java
cbaenziger/oozie
apache-2.0
27,301
652
codeparrot/github-code
e4fa0ff9ca2c539eb3b47bd6fa6e5064d337be246a9dd923b0bdac59945ac0f6
function Controller() { function btnBeginSr1_onClick() { var locationController = Alloy.createController("Location"); $.tabMain.open(locationController.getView()); } function btnHistory_onClick() { serviceAgent.getSr1Form(loadHistoryCb); } function loadHistoryCb(res) { ...
JavaScript
Resources/alloy/controllers/index.js
simplecoder/ndot-client
apache-2.0
4,007
116
codeparrot/github-code
cc883b2e7bc9e02f498073c2b2fbef39737d4698050c39e1afcd0a8a374112e9
/* * Copyright (C) 2015 University of Oregon * * You may distribute under the terms of either the GNU General Public * License or the Apache License, as specified in the LICENSE file. * * For more information, see the LICENSE file. */ package vnmr.util; import java.awt.*; import java.util.*; // import java.aw...
Java
src/vnmrj/src/vnmr/util/ParamEditUtil.java
OpenVnmrJ/OpenVnmrJ
apache-2.0
67,046
2,126
codeparrot/github-code
4a546af2ce8ae93a2c958889110a8bca8060cedb1dcaa4413f79b70ade5ac62f
/*############################################################################ # Copyright 2017-2020 Intel Corporation # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # ht...
C
epid/member/tiny/src/provisioncredential.c
Intel-EPID-SDK/epid-sdk
apache-2.0
3,825
102
codeparrot/github-code
322569965895574f32896a44286ad855d75864bcfd44f0e81b6caaf47fd81db5
/* * 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
wicket-examples/src/main/java/org/apache/wicket/examples/websocket/JSR356Application.java
klopfdreh/wicket
apache-2.0
2,350
73
codeparrot/github-code
2ce3bae22779eba49be39cfe3ddbea3bd0222456bce9db0880bbd17b98e1c9aa
using System; using System.Linq; namespace SeeSharp { /// <summary> /// Entry point /// </summary> public class Program { public static string Separator => Enumerable.Repeat("-", 30).Aggregate((x, y) => $"{x}{y}"); public static Action Halt => () => { Console.W...
C#
SeeSharp/SeeSharp/Program.cs
iamdmitrij/SeeSharp
apache-2.0
2,081
106
codeparrot/github-code
552d256041ca615924bc8a3286712400c22efa3267a5342dabfc8c58ab5bd54b
package com.sixsq.slipstream.cloudusage; import com.sixsq.slipstream.api.APICollectionResource; import com.sixsq.slipstream.util.RequestUtil; public class CloudUsageListResource extends APICollectionResource { public CloudUsageListResource() { super("usage"); } protected String cimiFilter() { ...
Java
jar-service/src/main/java/com/sixsq/slipstream/cloudusage/CloudUsageListResource.java
slipstream/SlipStreamServer
apache-2.0
838
32
codeparrot/github-code
5b921e85c7aa22e3c84aec31b905a00a9f4740e19accec88591dbabd1eae7a73
/* * Copyright (C) 2014 Indeed 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 ...
Java
imhotep-server/src/main/java/com/indeed/flamdex/lucene/LuceneUnsortedIntTermDocIterator.java
indeedeng/imhotep
apache-2.0
3,808
129
codeparrot/github-code
8f5cee2117825f7c7ba92fd5baa70339140d878f851697a5ae43ac26f129b8e2
#!/usr/bin/env python # -*- coding: UTF-8 -*- #------------------------------------------------------------------------------- """Setuptools command to execute unit tests.""" __author__ = ('Lance Finn Helsten',) __version__ = '0.7.4' __copyright__ = """Copyright (C) 2014 Lance Helsten""" __docformat__ = "reStructuredTe...
Python
ftpysetup/runtest/unit.py
lanhel/ftpysetup
apache-2.0
1,588
44
codeparrot/github-code