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
0df1482fe524648961aba9e116314efe93b4a85bea17effdcebe8f57dbeec0eb
using System.Collections.Generic; using UnityEngine; using System.Collections; public class PrinterOfDoom : MonoBehaviour { private float _timeOfSelfAnihillation; public float minTime = 10; public float maxTime = 30; private float _currentTime; private int _healthPoints; private SpriteRenderer _sprite; pu...
C#
sgj/Assets/Scripts/PrinterOfDoom.cs
Nitwoe/SGJ2015
cc0-1.0
3,177
113
codeparrot/github-code
a48bded3da8d2dcfa8bd002f2f720b15a15f5aa791356d617504ba8e228cf0c4
def create=(boolean) @create = boolean end def create? return false if @create.nil? # default create flag is false @create == true end def setup=(boolean) @setup = boolean end def setup? return false if @setup.nil? # default setup flag is false @setup ...
Ruby
sportdb-models-old/attic/opts.rb
sportdb/sport.db
cc0-1.0
1,396
82
codeparrot/github-code
e8f580d56212c08a3fafafee7e03a53260371c2fe853b1e79ba119b90c8104e5
package com.yaricraft.equinemagic.handler; import com.yaricraft.equinemagic.client.gui.GuiEquineResearch; import com.yaricraft.equinemagic.reference.ModData; import com.yaricraft.equinemagic.util.LogHelper; import cpw.mods.fml.common.network.IGuiHandler; import net.minecraft.entity.player.EntityPlayer; import net.mine...
Java
src/main/java/com/yaricraft/equinemagic/handler/GuiHandler.java
yariplus/EquineMagic
cc0-1.0
1,146
41
codeparrot/github-code
22f95d2f007518b3ef56a5b2964b061dae173142dfcf2d197e438b57cf94c678
<!doctype html> <html> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="chrome=1"> <title>Arulalan.T by arulalant</title> <link rel="stylesheet" href="stylesheets/styles.css"> <link rel="stylesheet" href="stylesheets/pygment_trac.css"> <script src="javascripts/scale.f...
HTML
index.html
arulalant/arulalant.github.io
cc0-1.0
3,644
90
codeparrot/github-code
1b89e3c8cb1dff29a699bf1881a30262ee8d5432aff2948caec2ce010ee7737a
<!DOCTYPE html><html><head><title>Building Mapping Communities: HOT, Maptime, and everything in between</title><meta charset='utf-8'><meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" /> <link href='big.css' rel='stylesheet' type='text/css' /> <style> .maptime-ex...
HTML
index.html
lyzidiamond/hot-summit-talk
cc0-1.0
17,615
393
codeparrot/github-code
b53a657ddf780ab4abe446827a801351cac3ae900a3f1b6ce3d9e3a26ad11294
import { SET_CAN_FILTER, SET_CAN_FILTER_SUCCESS, CAN_FILTER_NOT_SET, CLEAR_CAN_FILTER, GET_CAN_FILTER_DATA_RESULT, CLEAR_CAN_FILTER_RESULT} from '../actions/hid_action'; import { DEVICE_REMOVED } from '../actions/hid_action'; import { DEVICE_NOT_SUPPORTED } from '../utils/device_utils'; export default function(state =...
JavaScript
javascripts/reducers/reducer_can_filter.js
ovsokolov/navtool-usb-client
cc0-1.0
1,981
44
codeparrot/github-code
bad7bb7b1a0fbac4cc53452cea28a38c2c48561de6af4da53bdebd7d7ffbe855
/* ****************************************************************************** * Copyright (c) 2006-2012 XMind Ltd. and others. * * This file is a part of XMind 3. XMind releases 3 and * above are dual-licensed under the Eclipse Public License (EPL), * which is available at http://www.eclipse.org/legal/ep...
Java
bundles/org.xmind.ui.mindmap/src/org/xmind/ui/internal/properties/TopicConnectionPropertySectionPart.java
nickmain/xmind
epl-1.0
5,420
140
codeparrot/github-code
113b8b4b2784804fd52027e13aaab72bad9f5a44c88a55f737d9145d23c74525
/* * obj.c * routines universal to all object files */ #include <u.h> #include <libc.h> #include <bio.h> #include <ar.h> #include <mach.h> #include "obj.h" #define islocal(t) ((t)=='a' || (t)=='p') enum { NNAMES = 50, MAXIS = 8, /* max length to determine if a file is a .? file */ MAXOFF = 0x7fffffff, /* large...
C
sys/src/libmach/obj.c
0intro/plan9-mips
epl-1.0
6,145
332
codeparrot/github-code
b6d279aa9fced5d8a55ae422fe7544b9ffc1acfff20c4b6b3c1b7387d1602285
/** * @文件名称: LotteryCache.java * @类路径: com.rb.lottery.cache * @描述: TODO * @作者: robin * @时间: 2011-11-13 下午12:49:48 * @版本: 1.0.0 */ package com.rb.lottery.server.cache; import java.util.HashMap; import java.util.List; import java.util.Map; import com.rb.lottery.domain.Lottery; /** * @类功能说明: 出...
Java
lotteryServer/java/main/src/com/rb/lottery/server/cache/LotteryCache.java
bluebirder/lt
epl-1.0
3,182
142
codeparrot/github-code
dec2f74375b8c5f8c040b2e3c27336d9bb7a0dc78d2993de65c33347c1477856
/******************************************************************************* * Copyright (c) 2012-2017 Codenvy, S.A. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available ...
Java
ide/che-core-ide-app/src/main/java/org/eclipse/che/ide/workspace/WorkspaceComponent.java
sunix/che
epl-1.0
13,256
293
codeparrot/github-code
ff8d783d343f53f9071a1e755ef98aca44059b0d0a767258fcaf45db2f043a88
/* * Copyright (c) 2016 Brocade Communications Systems, Inc. and others. All rights reserved. * * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v1.0 which accompanies this distribution, * and is available at http://www.eclipse.org/legal/epl-v10.html...
Java
southbound/southbound-impl/src/main/java/org/opendaylight/ovsdb/southbound/reconciliation/ReconciliationTask.java
opendaylight/ovsdb
epl-1.0
4,957
113
codeparrot/github-code
48b10c85a82525c4f22f0459d0899c796c393cfab85a7e867ed952ac4aede9f1
/** */ package functionalarchitecture.impl; import functionalarchitecture.Function; import functionalarchitecture.FunctionalArchitectureModel; import functionalarchitecture.FunctionalElement; import functionalarchitecture.FunctionalarchitecturePackage; import org.eclipse.emf.common.notify.Notification; imp...
Java
Domains/Examples/ModelGenExampleFAM_plugin/ecore-gen/functionalarchitecture/impl/FunctionalElementImpl.java
viatra/VIATRA-Generator
epl-1.0
10,686
324
codeparrot/github-code
1bfc531ab05821ca69c04a1bce3ee9d3c3f3a788d0aaa93468b3b6a7aaa908a1
package com.cn.view.pulluprefresh; import android.content.Context; import android.util.AttributeSet; import android.view.LayoutInflater; import android.view.View; import android.widget.ProgressBar; import android.widget.TextView; import com.cn.hongyi.R; /** * Õâ¸öÀà·â×°ÁËÏÂÀ­Ë¢ÐµIJ¼¾Ö * * @author Li Hong * @si...
Java
Hongyi/src/com/cn/view/pulluprefresh/FooterLoadingLayout.java
smilekindy/hongyi
epl-1.0
2,961
115
codeparrot/github-code
7903471704dc70e5ac9f0874814cc20e0d510f09a7bddda5c84d34559c928f58
<?xml version='1.0' encoding='utf-8'?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html lang="en-us" xml:lang="en-us"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta name="copyright" content="(C) Co...
HTML
sdk/GUID-6CB3EA22-D2B8-3399-B1B8-44C941758E50.html
warlordh/fork_Symbian
epl-1.0
7,238
256
codeparrot/github-code
790f8509569ba2ca0b47c3156cd7c59cb2632f4705da93484be0c723c5dbef0b
/******************************************************************************* * Copyright (c) 1998, 2012 Oracle and/or its affiliates. All rights reserved. * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v1.0 and Eclipse Distribution License v. ...
Java
moxy/eclipselink.moxy.test/src/org/eclipse/persistence/testing/jaxb/xmlanyelement/EmployeeLax.java
bfg-repo-cleaner-demos/eclipselink.runtime-bfg-strip-big-blobs
epl-1.0
2,189
74
codeparrot/github-code
dc1cb145817f9c56c48c8c326049918c5fbf2d6a97138cffb645ecf5f9680df8
/******************************************************************************* * Copyright (c) 2011, 2013 Oracle and/or its affiliates. All rights reserved. * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v1.0 and Eclipse Distribution License v. ...
Java
foundation/org.eclipse.persistence.core/src/org/eclipse/persistence/internal/dynamic/DynamicPropertiesInitializatonPolicy.java
bfg-repo-cleaner-demos/eclipselink.runtime-bfg-strip-big-blobs
epl-1.0
4,141
96
codeparrot/github-code
05342241cd63f34e13a15cd7b1019230c84b59c0d5aae2a0498b760a59f633b2
/* * Copyright (c) 2015 Cisco Systems, Inc. and others. All rights reserved. * * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v1.0 which accompanies this distribution, * and is available at http://www.eclipse.org/legal/epl-v10.html */ package org....
Java
bgp/path-selection-mode/src/main/java/org/opendaylight/protocol/bgp/mode/impl/add/RouteKeyOffsets.java
opendaylight/bgpcep
epl-1.0
1,903
53
codeparrot/github-code
f8c15a685c4954d175c5bd46a200882fb11c19520ee44f6396640336f407da30
/* * EKQueueArrayWrapper.hh * * Created on: 2016-2-16 * Author: cxxjava@163.com */ #include "es_config.h" #ifdef HAVE_KQUEUE #ifndef EKQUEUEARRAYWRAPPER_HH_ #define EKQUEUEARRAYWRAPPER_HH_ #include "../../inc/ELinkedList.hh" #include "../../inc/ESynchronizeable.hh" #include "../inc/ESelectableChannel.hh"...
C++
efc/nio/src/EKQueueArrayWrapper.hh
cxxjava/CxxJDK
epl-1.0
2,325
101
codeparrot/github-code
b6a0147ca28cc1d50b1bbf3896365c8c997ee03d04d4cf2b2adf4ec7ee2d4155
<?php class GenericImporter { protected static $error_msg = false; public static function import($controller, $filename, $data, array $options = array()) { self::$error_msg = false; $fp = fopen($filename, 'r'); if (!$fp) { self::$error_msg = 'Could not read uploaded file'; return false; } $obj_name ...
PHP
utilities/GenericImporter.obj.php
jrgns/backend-php
epl-1.0
2,288
81
codeparrot/github-code
b6e7ffe028837340b3ba3758706757094798174f1390f242f046beec6aa6f83b
/* * Copyright (c) 2013 Cisco Systems, Inc. and others. All rights reserved. * * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v1.0 which accompanies this distribution, * and is available at http://www.eclipse.org/legal/epl-v10.html */ package or...
Java
opendaylight/protocol_plugins/openflow/src/main/java/org/opendaylight/controller/protocol_plugin/openflow/core/internal/ControllerIO.java
Milstein/controllerODP
epl-1.0
3,647
95
codeparrot/github-code
994661919268b24029bc8be7483686d7e2255d11e4de8d5c70cbf75e1f004051
package org.xmind.cathy.internal.css; import org.eclipse.e4.ui.css.core.engine.CSSEngine; import org.eclipse.e4.ui.css.swt.properties.AbstractCSSPropertySWTHandler; import org.eclipse.swt.graphics.Color; import org.eclipse.swt.widgets.Control; import org.eclipse.ui.forms.widgets.Section; import org.w3c.dom.css....
Java
bundles/org.xmind.cathy/src/org/xmind/cathy/internal/css/CSSPropertySectionHandler.java
nickmain/xmind
epl-1.0
2,253
55
codeparrot/github-code
bc21ec2478259af547478a28b58db564138c7401b628a40d373d1bb48efb4da1
/******************************************************************************* * Copyright (c) 2017, 2022 IBM Corporation and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, an...
Java
dev/com.ibm.ws.jsonb_fat/fat/src/com/ibm/ws/jsonb/fat/JSONPContainerTest.java
OpenLiberty/open-liberty
epl-1.0
2,560
66
codeparrot/github-code
38f38c32abe50b95de5e0afcb3868db8f4aae7c2c9355f28e66502c5673aa89b
/******************************************************************************* * Copyright (c) 2012-2013 EclipseSource Muenchen GmbH and others. * * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies t...
Java
bundles/org.eclipse.emf.emfstore.client/src/org/eclipse/emf/emfstore/internal/client/provider/ClientXMIResourceSetProvider.java
edgarmueller/emfstore-rest
epl-1.0
1,809
47
codeparrot/github-code
0c87528ff22a6772ba82c6ce4b52b92704582a245a441d8a7827bec1eed83520
package com.dd.ddclient.ecommerce.model; import java.util.ArrayList; import java.util.List; public class StockTrendingDataSource { private String product, stock; private static StockTrendingDataSource trending; private List<StockTrendingDataSource> StockTrendingList = new ArrayList<StockTrendingDataS...
Java
DDClient/src/com/dd/ddclient/ecommerce/model/StockTrendingDataSource.java
NikhilVijayakumar/DDClient
epl-1.0
984
46
codeparrot/github-code
48de0608e46fe9dd415c0ea313dfa28588cc9df7c36cf886457072486d7b804e
package com.odcgroup.mdf.editor.ui.actions; import org.eclipse.jface.action.IAction; import org.eclipse.ui.IEditorActionDelegate; import org.eclipse.ui.IEditorPart; import org.eclipse.ui.IViewActionDelegate; import org.eclipse.ui.IViewPart; import org.eclipse.ui.IWorkbenchWindow; import org.eclipse.ui.IWorkbenchWindow...
Java
designstudio/components/domain/ui/com.odcgroup.mdf.editor/source/com/odcgroup/mdf/editor/ui/actions/MdfActionDelegate.java
debabratahazra/DS
epl-1.0
2,244
76
codeparrot/github-code
fa46c38ef3c4f8a7d63115904b370387d172c068323fc6361265b7b7c4f9cb2c
/******************************************************************************* * Copyright (c) 2012-2015 Codenvy, S.A. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available ...
Java
plugin-java/che-plugin-java-ext-maven/src/main/java/org/eclipse/che/ide/extension/maven/client/MavenExtension.java
sunix/che-plugins
epl-1.0
9,517
185
codeparrot/github-code
ac8de151369040088768e139da9fbecb17eecae7fcf2330b7bc367dae12d9476
/* First created by JCasGen Tue Oct 02 12:01:59 CEST 2012 */ package edu.ucdenver.ccp.nlp.core.uima.annotation; import org.apache.uima.jcas.JCas; import org.apache.uima.jcas.JCasRegistry; import org.apache.uima.jcas.cas.TOP_Type; import org.apache.uima.jcas.cas.TOP; import org.apache.uima.jcas.cas.StringArray; /...
Java
src/main/types/edu/ucdenver/ccp/nlp/core/uima/annotation/CCPDocumentInformation.java
rockt/ChemSpot
epl-1.0
11,514
182
codeparrot/github-code
c2ddf5e052198b118e5c4471f4b760ece7645f7ae889b0b5a9608660fef9f7c8
<html xmlns="http://www.w3.org/1999/xhtml"> <head> <link rel="STYLESHEET" type="text/css" href="./styles.css" /></head> <body> <!-- ===================================================================== --> <!-- = XML information goes here = --> <!-- =============================...
HTML
docs/src/wrappers/xmlrpc.html
mcarlson/openlaszlo
epl-1.0
3,512
87
codeparrot/github-code
51b02177406c507eb4011b17148e55187344dd848517d886b659b0b1e28e3739
/******************************************************************************* * Copyright (c) 2000, 2008 IBM Corporation and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, an...
Java
jface4ruby/src/org/eclipse/jface/viewers/TextCellEditor.java
neelance/jface4ruby
epl-1.0
15,848
492
codeparrot/github-code
8ca4f1d347b916f7100a30ec910e1771e446630921ba560970594792997d586f
/** * Copyright (c) 2010 committers of YAKINDU and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at * http://www.eclipse.org/legal/epl-v10.html * Contr...
Java
plugins/org.yakindu.sct.ui.editor/src/org/yakindu/sct/ui/editor/editparts/ChoiceEditPart.java
Yakindu/statecharts
epl-1.0
2,993
78
codeparrot/github-code
cf5fb3ff15b3ea5b98cd502a072193a38ae20f8d49bc5ed4cdc2b85f5158251b
//-----BEGIN DISCLAIMER----- /******************************************************************************* * Copyright (c) 2011, 2021 JCrypTool Team and Contributors * * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which a...
Java
org.jcryptool.crypto.flexiprovider.operations/src/org/jcryptool/crypto/flexiprovider/operations/xml/io/InputSignatureElement.java
jcryptool/core
epl-1.0
1,882
54
codeparrot/github-code
97c0096b82b9edd7ac2a6fc6214743934d1cc4bda3deca06d6a20d23df23c170
/******************************************************************************* * Copyright (c) 2010 IBM Corporation and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is a...
Java
dev/com.ibm.ws.ras.instrument/src/com/ibm/ws/ras/instrument/internal/bci/DeferConstructorProcessingMethodAdapter.java
kgibm/open-liberty
epl-1.0
15,620
574
codeparrot/github-code
9207c7c458f2c5090646c38339ec922f72ed35e475ffa23a590ef55c1102de90
var config = { type: Phaser.AUTO, width: 800, height: 600, parent: 'phaser-example', pixelArt: true, scene: { preload: preload } }; var game = new Phaser.Game(config); function preload () { // this.load.on('filecomplete', function (key, file) { // this.add.image(400, 3...
JavaScript
source/v2/phasereditor/phasereditor.resources.phaser.examples/phaser3-examples/public/src/loader/loader events/file complete event.js
boniatillo-com/PhaserEditor
epl-1.0
611
31
codeparrot/github-code
3a03840c60d86acaa297a6387bee8835138e8d027482dc215791d2347a9b8cee
<!DOCTYPE html> <html xmlns:app="https://spring.io"><head> <title>Spring Tool Suite 3.8.3/3.8.2/3.8.1/3.8.0 - New and Noteworthy</title> <link rel="stylesheet" type="text/css" href="bootstrap/css/bootstrap.css" /> <!-- <link rel="stylesheet" type="text/css" th:href="@{/bootstrap/css/bootstrap-responsive.css}" /> ...
HTML
docs/nan/v383/NewAndNoteworthy.html
spring-projects/toolsuite-distribution
epl-1.0
40,235
735
codeparrot/github-code
10f6d928fe4cdef5b78d4b07daa0ebdc6d8c093675f1a6550342f218f1e7aefd
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <!-- NewPage --> <html lang="en"> <head> <title>org.apache.poi.hssf.eventusermodel.dummyrecord (POI API Documentation)</title> <link rel="stylesheet" type="text/css" href="../../../../../../stylesheet.css" title="Styl...
HTML
Desktop/tool/poi-bin-3.15-20160924/poi-3.15/docs/apidocs/org/apache/poi/hssf/eventusermodel/dummyrecord/package-summary.html
tommylsh/test20170719
epl-1.0
5,896
153
codeparrot/github-code
96e5ee1a67406801cd5648e6b19822e928698a1ea5a9382f6bf7ca58c98ad54e
/** * Copyright (c) 2014 - 2022 Frank Appel * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at * http://www.eclipse.org/legal/epl-v10.html * * Contributors: * Fran...
Java
com.codeaffine.eclipse.swt.test/src/com/codeaffine/eclipse/swt/widget/scrollable/StyledTextHorizontalScrollBarUpdaterTest.java
fappel/xiliary
epl-1.0
2,140
56
codeparrot/github-code
f4566c0721af7fa91d3880b98a7ef930ca6ea19404a8adec5eba734061b2ab00
package com.redhat.ceylon.eclipse.code.correct; import static com.redhat.ceylon.eclipse.code.correct.PrintProposal.addPrintProposal; import static com.redhat.ceylon.eclipse.util.EditorUtil.getCurrentEditor; import static com.redhat.ceylon.eclipse.util.Nodes.findNode; import java.util.ArrayList; import java.util.List;...
Java
plugins/com.redhat.ceylon.eclipse.ui/src/com/redhat/ceylon/eclipse/code/correct/PrintHandler.java
rohitmohan96/ceylon-ide-eclipse
epl-1.0
2,628
66
codeparrot/github-code
15214157375509b6de26a68adfb24e6a5a10f25aa6b13367bb4eec64bc998f55
package org.modeldriven.fuml.test.builtin; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; import org.modeldriven.fuml.test.FUMLTestSetup; import fUML.Test.InitTestEnvironment; import junit.framework.Test; /** * */ public class LinkWriterTestCase extends Buil...
Java
test/org/modeldriven/fuml/test/builtin/LinkWriterTestCase.java
moliz/moliz.fuml
epl-1.0
762
32
codeparrot/github-code
3d011104af89c62bc8222bb3ba08600b44676f4c4bfe06d9f0015db96d14c977
/* * ----------------- OpenHAB GreenT UI ------------------- * * * Version: 1.1.0 * Developed by: Mihail Panayotov * E-mail: mihail@m-design.bg * * * ----------------------------------------------------------- */ // ------------------------------------ // Security is not fully implemented yet...
JavaScript
distribution/openhabhome/webapps/greent/app/app.js
rahulopengts/myhome
epl-1.0
67,891
2,372
codeparrot/github-code
bf5a4d401acfa71d59b58c6e77bb6e9449453e1a9247189a0fc32e6f9797e23c
package MWC.Utilities.ReaderWriter.XML.Features; /******************************************************************************* * Debrief - the Open Source Maritime Analysis Application * http://debrief.info * * (C) 2000-2020, Deep Blue C Technology Ltd * * This library is free software; you can redi...
Java
org.mwc.cmap.legacy/src/MWC/Utilities/ReaderWriter/XML/Features/GridHandler.java
debrief/debrief
epl-1.0
6,199
213
codeparrot/github-code
42bd8612574f86d6d05ed31f449d9f9a39d0b35a498b469ce68e4cd1db754ed7
package org.cyclopsgroup.jmxterm.io; import org.apache.commons.lang.Validate; import org.apache.commons.lang.exception.ExceptionUtils; /** * Command output implementation where detail message can be turned on and off dynamically * * @author <a href="mailto:jiaqi.guo@gmail.com">Jiaqi Guo</a> */ public class Verbo...
Java
src/main/java/org/cyclopsgroup/jmxterm/io/VerboseCommandOutput.java
DataDog/jmxterm
epl-1.0
1,779
80
codeparrot/github-code
f334090af58b04198129bcf40d52c46d9fe41ea90515961633ff2e7d72f7e423
package com.zhaoql.product.boot.config; import javax.sql.DataSource; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Qualifier; import org.springframework.boot.autoconfigure.orm.jpa.JpaProperties; import org.springframework.boot.orm.jpa.EntityManagerF...
Java
spring-cloud-tcc/product/src/main/java/com/zhaoql/product/boot/config/JpaCommonConfig.java
zhaoqilong3031/spring-cloud-samples
epl-1.0
2,119
45
codeparrot/github-code
d73f64c761b34778035a87986fde16ff03fd7143f5ecc1d7c840a3324ad817ad
/** * Copyright (c) 2014-2016 by the respective copyright holders. * * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at * http://www.eclipse.org/legal/epl-v10.html */...
Java
addons/binding/org.openhab.binding.zwave.test/src/test/java/org/openhab/binding/zwave/test/internal/protocol/commandclass/ZWaveSwitchAllCommandClassTest.java
jspuij/openhab2-addons
epl-1.0
2,821
75
codeparrot/github-code
ef7998f9362f790a9bdd54d4a389fc6d728745e5f95d1f0ce271cbc0a88cb414
/******************************************************************************* * Copyright (c) 2013, 2014, 2015 QPark Consulting S.a r.l. * * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v1.0. * The Eclipse Public License is available at * http:...
Java
qp-enterprise-integration-platform-impl/eip-core-persistence/src/main/java/com/qpark/eip/core/persistence/DDLGenerator.java
QPark/EIP
epl-1.0
17,018
509
codeparrot/github-code
d854a8485625e64a183a5c3c62e915c1adeaee553b69f6dc6db1900b68e58f00
/* * slice.java * * Copyright (c) 2014 Roth Michaels. All rights reserved. * * The use and distribution terms for this software are covered by the * Eclipse Public License 1.0 (http://opensource.org/licenses/eclipse-1.0.php) * which can be found in the file epl-v10.html at the root of this * distribution. By ...
Java
src/main/java/rm/slice.java
rothmichaels/rothm.oves-java
epl-1.0
11,639
455
codeparrot/github-code
c6d250e24a01870fac4da37158e6a2d3be5ca113e26d235f589c2904eca2019c
package ch.elexis.core.jpa.entities; import javax.persistence.Column; import javax.persistence.Convert; import javax.persistence.Entity; import javax.persistence.EntityListeners; import javax.persistence.GeneratedValue; import javax.persistence.Id; import javax.persistence.JoinColumn; import javax.persistence.OneToOne...
Java
bundles/ch.elexis.core.jpa.entities/src/ch/elexis/core/jpa/entities/InboxElement.java
elexis/elexis-3-core
epl-1.0
2,322
113
codeparrot/github-code
86dad7ad44a594f6b918feda19db9f21b1262873f5a118126f18191992080654
package org.eclipse.persistence.json.bind.internal.conversion; import javax.json.JsonValue; import java.lang.reflect.Type; /** * @author David Král */ public class JsonValueTypeConverter extends AbstractTypeConverter<JsonValue> { private final static String TRUE = "true"; private final static String FALSE ...
Java
jsonb/src/main/java/org/eclipse/persistence/json/bind/internal/conversion/JsonValueTypeConverter.java
gameduell/eclipselink.runtime
epl-1.0
1,011
43
codeparrot/github-code
60e4564a7f8dec8f5a45a1882a515cdd973fd621537b6d90ba0342c50b7883c0
// Compiled by ClojureScript 0.0-3308 {} goog.provide('quil.middlewares.deprecated_options'); goog.require('cljs.core'); quil.middlewares.deprecated_options.deprecated = new cljs.core.PersistentArrayMap(null, 3, [new cljs.core.Keyword(null,"decor","decor",-1730969431),new cljs.core.PersistentVector(null, 2, 5, cljs.cor...
JavaScript
out/quil/middlewares/deprecated_options.js
divs1210/snake-machine
epl-1.0
4,977
95
codeparrot/github-code
28e07688d50c21e2aa6be68b3d238b94b7a22cab099aa9f5ff7b401971e7de3b
/******************************************************************************* * Copyright (c) 1998, 2012 Oracle and/or its affiliates. All rights reserved. * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v1.0 and Eclipse Distribution License v. 1.0 ...
Java
moxy/eclipselink.moxy.test/src/org/eclipse/persistence/testing/jaxb/typemappinginfo/JavaTypeAdapterStringToListTestCases.java
bfg-repo-cleaner-demos/eclipselink.runtime-bfg-strip-big-blobs
epl-1.0
3,390
83
codeparrot/github-code
220d302d24f3238a9415366732d71bf8bcc55e5c0d339296169889beb951da76
// This library is distributed in the hope that it will be useful but without // any warranty; without even the implied warranty of merchantability or // fitness for a particular purpose. // The use and distribution terms for this software are covered by the Eclipse // Public License 1.0 (http://opensource.org/...
C
src/main/cpp/bazuka/p/Splash.h
llnek/fusilli
epl-1.0
1,121
40
codeparrot/github-code
63b57db1df34b6871008bfc1c6bb5c908870ae37118234f0aba763861518c81c
/** * Copyright (c) 2010-2021 Contributors to the openHAB project * * See the NOTICE file(s) distributed with this work for additional * information. * * This program and the accompanying materials are made available under the * terms of the Eclipse Public License 2.0 which is available at * http://www.eclipse....
Java
bundles/org.openhab.binding.yamahareceiver/src/main/java/org/openhab/binding/yamahareceiver/internal/protocol/xml/XMLConnection.java
MikeJMajor/openhab2-addons-dlinksmarthome
epl-1.0
7,604
218
codeparrot/github-code
d39e205e815634c2de05c69533dbaeb42724bbcec48c294e9d48dd3c71505506
/******************************************************************************* * Copyright (c) 2011, 2019 Eurotech and/or its affiliates * * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distributi...
Java
kura/test/org.eclipse.kura.linux.net.test/src/main/java/org/eclipse/kura/linux/test/net/DhcpServerTest.java
nicolatimeus/kura
epl-1.0
9,459
241
codeparrot/github-code
0e1020fdf4992c7f8e17af76db546bd9851d9f7794e83884649590399d565149
/** */ package org.xtext.nv.dsl.mMDSL.impl; import org.eclipse.emf.common.notify.Notification; import org.eclipse.emf.ecore.EClass; import org.eclipse.emf.ecore.impl.ENotificationImpl; import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; import org.xtext.nv.dsl.mMDSL.MMDSLPackage; import org.xtext.nv.dsl.mMDSL.Pa...
Java
org.xtext.nv.dsl/src-gen/org/xtext/nv/dsl/mMDSL/impl/PathParametersCImpl.java
niksavis/mm-dsl
epl-1.0
10,726
458
codeparrot/github-code
76c7ed143b5fcd3cefdb1abb46fd54e91deaec87ddb22718e86a5c3a133e86c2
/** * Copyright (c) 2012, 2014 Sme.UP and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at * http://www.eclipse.org/legal/epl-v10.html */ package org.asup.fw...
Java
org.asup.fw.test/src/org/asup/fw/test/impl/TestContainerImpl.java
asupdev/asup
epl-1.0
3,800
153
codeparrot/github-code
8bf2511099a8ca0761cb5ada26c6206be62d77c5bf39abe4c22c91bd12ce6aa6
package com.thalesgroup.trt.mde.vp.mode.mode.provider; import com.thalesgroup.trt.mde.vp.mode.mode.Initial; import java.util.Collection; import java.util.List; import org.eclipse.emf.common.notify.AdapterFactory; import org.eclipse.emf.common.notify.Notification; import org.eclipse.emf.edit.provider.IEdit...
Java
Language/ModeAutomata/com.thalesgroup.trt.mde.vp.mode.model.edit/src/com/thalesgroup/trt/mde/vp/mode/mode/provider/InitialItemProvider.java
smadelenat/CapellaModeAutomata
epl-1.0
3,320
108
codeparrot/github-code
19fc1dfd93fc232898dbb67a65c7d52f1f7230e15776ddc4409eeaf7a0e42261
package de.uka.ipd.sdq.beagle.core.pcmconnection; import de.uka.ipd.sdq.beagle.core.Blackboard; import de.uka.ipd.sdq.beagle.core.CodeSection; import de.uka.ipd.sdq.beagle.core.ExternalCallParameter; import de.uka.ipd.sdq.beagle.core.ResourceDemandType; import de.uka.ipd.sdq.beagle.core.ResourceDemandingInternalAction...
Java
Core/src/main/java/de/uka/ipd/sdq/beagle/core/pcmconnection/PcmRepositorySeffExtractor.java
Beagle-PSE/Beagle
epl-1.0
19,956
518
codeparrot/github-code
f603c78274155d1167f3b9560149445607443dd8b7e7c576d66cc2fb678e7664
/* * Copyright (C) 2011 mooege project * * 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 version 2 of the License, or * (at your option) any later version. * * This program is dis...
C#
src/Mooege/Net/GS/Message/Definitions/Misc/ANNDataMessage.cs
fengjz1/mooege
gpl-2.0
2,251
59
codeparrot/github-code
d6ff48145e56ea31d6c2c4fb66e2f03a2fb40311f3992dca3d92d2ec7e6238bb
/* camel_counter.c * camel message counter for Wireshark * Copyright 2006 Florent Drouin (based on h225_counter.c from Lars Roland) * * $Id: camel_counter.c 46402 2012-12-05 15:56:36Z wmeier $ * * Wireshark - Network traffic analyzer * By Gerald Combs <gerald@wireshark.org> * Copyright 1998 Gerald Combs * * T...
C
ui/gtk/camel_counter.c
MavEtJu/wireshark-lean
gpl-2.0
6,858
240
codeparrot/github-code
1f4b9c7428532f710eb75ea23f7ef28a0de8cd51201c175ff2d36af89e946119
package com.team.futurecraft.tileentity; import com.team.futurecraft.block.EnumMachineSetting; import com.team.futurecraft.block.IElectric; import com.team.futurecraft.block.Machine; import net.minecraft.block.state.IBlockState; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.inventory.ISidedInv...
Java
src/main/java/com/team/futurecraft/tileentity/TileEntityMachine.java
TEAMModding/FutureCraft
gpl-2.0
11,245
345
codeparrot/github-code
67ca3d99aaa9b49fb4ba827867e05256bb58e2711e12e7becab306f56bbcec04
/* * fs/fs-writeback.c * * Copyright (C) 2002, Linus Torvalds. * * Contains all the functions related to writing back and waiting * upon dirty inodes against superblocks, and writing back dirty * pages against inodes. ie: data writeback. Writeout of the * inode itself is not handled here. * * 10Apr2002 Andr...
C
fs/fs-writeback.c
LorDClockaN/LorDNeo_2639
gpl-2.0
36,640
1,374
codeparrot/github-code
8ebce5842219fd6d1ef4873fca46f863458eda5ec0311f45a03306f114ba8797
<?php /* * Copyright 2014 Osclass * * 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...
PHP
a/oc-admin/themes/modern/market/section.php
pterik/prodaj
gpl-2.0
3,759
76
codeparrot/github-code
c9a55af184504a12a23a219263fcd5206b7b746c497414dc3ebf08f0ee8a3091
import logging from abc import abstractmethod, ABCMeta from urllib import request class UrlShortener(metaclass=ABCMeta): @abstractmethod def shorten(self, url: str) -> str: pass def log(self, url): logging.info("Short URL: {}".format(url)) class Off(UrlShortener): def shorten(self, ...
Python
src/tools/shorturl.py
instantshare/instantshare
gpl-2.0
726
32
codeparrot/github-code
80a6912afb8f3c3265e1dd848325e9c1e3dabd20a40bf593ab3145af7ba68223
<?php /** * Base class for displaying a list of items in an ajaxified HTML table. * * @package WordPress * @subpackage List_Table * @since 3.1.0 */ /** * Base class for displaying a list of items in an ajaxified HTML table. * * @package WordPress * @subpackage List_Table * @since 3.1.0 * @access private *...
PHP
wp-admin/includes/class-wp-list-table.php
brandon-vaughan/Wordpress
gpl-2.0
22,007
914
codeparrot/github-code
34d68a2ad7cc5ae666334b584bd9c5a61d980df17c6d4fedd256e64905e7df02
#include <iostream> #include <sstream> #include <string> #include <map> using namespace std; typedef struct aClass { string name; string address; }aClass; map<string, aClass*> * cpMap; void someFunc(string &str, ostringstream &out) { ostringstream ss; ss << out.rdbuf(); str = ss.str(); cout <<...
C++
mapleak.cc
philwil/Things
gpl-2.0
983
60
codeparrot/github-code
3d91cb2d0d8a92b1cbdc19af190ec9d7298fd10c724c78aa552f39e671adcb0b
/* * Created on 14-Feb-2006 * * Copyright (c) 2006 P.J.Leonard * * http://www.frinika.com * * This file is part of Frinika. * * Frinika 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 vers...
Java
modules/frinika-sequencer/src/main/java/com/frinika/sequencer/gui/pianoroll/PianoRoll.java
hajdam/frinthesia
gpl-2.0
26,219
1,063
codeparrot/github-code
1ee4ee79ef84f1c89393e208cff0f8fe885f777052985a9cd18db4de52ebf338
/* * MOV, 3GP, MP4 muxer * Copyright (c) 2003 Thomas Raivio * Copyright (c) 2004 Gildas Bazin <gbazin at videolan dot org> * Copyright (c) 2009 Baptiste Coudurier <baptiste dot coudurier at gmail dot com> * * This file is part of Libav. * * Libav is free software; you can redistribute it and/or * modify it und...
C
vlc/contrib/android/ffmpeg/libavformat/movenc.h
DDTChen/CookieVLC
gpl-2.0
5,166
182
codeparrot/github-code
7e7ddb2b936a3a3654da462260785f4ff5666392c3bb17c914586b8c6d3a07c6
#include "vario.h" void widget_vario_draw(uint8_t x, uint8_t y, uint8_t w, uint8_t h, uint8_t flags) { uint8_t lh = widget_label_P(PSTR("Vario"), x, y); float val = fc.vario.digital; if (config.vario.flags & VARIO_UNITS_I) val *= FC_MPS_TO_100FPM; if (abs(val) < 0.09) val = 0; char text[10]; if (fc.vario...
C++
skydrop/src/gui/widgets/vario.cpp
dpsfotocestou/SkyDrop
gpl-2.0
3,934
168
codeparrot/github-code
8262f5ae7f7dce8959893b835639768677ae0daa10913c1924d314195f360739
#include ".\dxmanager.h" dxManager::dxManager(void) { pD3D = NULL; pd3dDevice = NULL; m_bFullScreen = false; screen_width = 640; screen_height = 512; } dxManager::~dxManager(void) { } /******************************************************************** * init * Initializes DirectX ***************************...
C++
dxutil/dxManager.cpp
frosttear/Th06Imitation
gpl-2.0
6,647
212
codeparrot/github-code
317eb6bdbc2f58465f8bf7f96ab7981e77f836a0fb059a158ff3e12f6488b8a3
<?php /* +--------------------------------------------------------------------+ | CiviCRM version 2.2 | +--------------------------------------------------------------------+ | Copyright CiviCRM LLC (c) 2004-2009 | +--------------------...
PHP
sites/all/modules/civicrm/CRM/Contact/Selector/Custom.php
btribulski/girlsknowhow
gpl-2.0
12,466
363
codeparrot/github-code
5db1164be6ca38e9819dbe214c2120def673c09b25ada72b6b8a1b32748965ff
/* * BFQ-v1-r1 for 2.6.35: data structures and common functions prototypes. * * Based on ideas and code from CFQ: * Copyright (C) 2003 Jens Axboe <axboe@kernel.dk> * * Copyright (C) 2008 Fabio Checconi <fabio@gandalf.sssup.it> * Paolo Valente <paolo.valente@unimore.it> */ #ifndef _BFQ_H #defi...
C
common/block/bfq.h
sembre/kernel_totoro_update3
gpl-2.0
20,340
559
codeparrot/github-code
8a423bb68c72f20cf3d5de99b3bbff31e7d98b408bec35d34b15053385e96b63
/* * QEMU access control list management * * Copyright (C) 2009 Red Hat, Inc * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rig...
C
acl.c
unakatsuo/qemu-kvm-0.12.1.2-2.355.0.1.el6_4.9.src
gpl-2.0
4,518
186
codeparrot/github-code
353323bf7a1d989dff986a0717c8c2d8aeb1bb2e14780c7487ca54ca1b3997f1
/* * #%L * OME-BIOFORMATS C++ library for image IO. * %% * Copyright © 2006 - 2014 Open Microscopy Environment: * - Massachusetts Institute of Technology * - National Institutes of Health * - University of Dundee * - Board of Regents of the University of Wisconsin-Madison * - Glencoe Software, Inc. ...
C++
cpp/test/ome-bioformats/pixelbuffer.cpp
ctrueden/bioformats
gpl-2.0
28,460
715
codeparrot/github-code
b3a3eaeb8cd349229e12338bfb4beacf44f9869a3ffef711ce2e9c3688398ac6
/***************************************************************************** * Copyright 2003 - 2009 Broadcom Corporation. All rights reserved. * * Unless you and Broadcom execute a separate written software license * agreement governing use of this software, this software is licensed to you * under the terms of the...
C
go12/linux-2.6.28.10/arch/arm/plat-bcm476x/hw_timer.c
kzlin129/tt-gpl
gpl-2.0
12,610
435
codeparrot/github-code
9936d5333d008d2928fe7773e7b3251d58d5bbe70a33cc9a4e38d560fc062186
/* Copyright (C) 2005 Matthias Braun <matze@braunis.de> 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 version 2 of the License, or (at your option) any later version. This program is distri...
C++
src/gui/Event.hpp
javiercantero/lincity-ng
gpl-2.0
2,150
75
codeparrot/github-code
e0f6af1b482afd4f2992a058bce7e00f3fbef7936b439dcbdee18ece0cc837cc
<?php /** * @version $Id: admin.newsfeeds.html.php,v 1.3 2005/10/21 17:33:55 lang3 Exp $ * @package Mambo * @subpackage Newsfeeds * @copyright (C) 2000 - 2005 Miro International Pty Ltd * @license http://www.gnu.org/copyleft/gpl.html GNU/GPL * Mambo is Free Software */ /** ensure this file is being included by a paren...
PHP
administrator/components/com_newsfeeds/admin.newsfeeds.html.php
wuts/earthquake
gpl-2.0
6,995
256
codeparrot/github-code
680ca9cedfbf1de1db4b54afb7058da2e1607c114cfd41fb802f0c95c2bf5cfb
<?php /* wppa-cart.php * Package: wp-photo-album-plus * * Contains the interface to SCABN * Version 5.3.0 * */ if ( ! defined( 'ABSPATH' ) ) die( "Can't load this file directly" ); // Displays the 'add to cart' button on photo description. // Contains both the visual data and the form submission // fo...
PHP
wp-content/plugins/wp-photo-album-plus/wppa-cart.php
InformaticaMG/WP-template
gpl-2.0
3,863
107
codeparrot/github-code
68f08394fce42e51315437036eb731a57d6cdef4014a5d3ff248844d3c2d5e9f
<?php /** * The base configurations of the WordPress. * * This file has the following configurations: MySQL settings, Table Prefix, * Secret Keys, WordPress Language, and ABSPATH. You can find more information * by visiting {@link http://codex.wordpress.org/Editing_wp-config.php Editing * wp-config.php} Codex pag...
PHP
wp-config.php
hudsonandtask/lefthook
gpl-2.0
3,538
105
codeparrot/github-code
0e4abda7d26952141c6e45a756e092aa775b6587c0d779d69239518626526c2c
#include <stdio.h> #include <string.h> #include "cryption.h" #include "input_token.h" #define MAXL 100 /** * Add your keys by this file. * Your keys consist of url, cn_name, en_name, id, key and more. * You can input in English or Chinese. * * Run "put" and then follow my hints. * * Your keys are...
C
put.c
IceDream61/keys
gpl-2.0
953
37
codeparrot/github-code
982c4a8219e02b73f6acffa5dae7968aef57dea44f3ea58c9ff9e0a9790399ea
/* * Copyright (c) 2003, 2006 Matteo Frigo * Copyright (c) 2003, 2006 Massachusetts Institute of Technology * * 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 version 2 of the Licens...
C
src/libFingerprint/libs/fftw/src/api/apiplan.c
exic/last.fm-dbus
gpl-2.0
4,703
156
codeparrot/github-code
432f0eed52d4cd2602afeab5dc3b8da688c97cb9e7ef12c70355265fe270a6df
<?php /* * @version $Id: ruleimportcomputer.class.php 21519 2013-08-14 18:39:56Z moyo $ ------------------------------------------------------------------------- GLPI - Gestionnaire Libre de Parc Informatique Copyright (C) 2003-2013 by the INDEPNET Development Team. http://indepnet.net/ http://glpi-project.org ...
PHP
inc/ruleimportcomputer.class.php
opusappteam/PLGLPI0842
gpl-2.0
14,057
453
codeparrot/github-code
29619451c578812b7ec8f725988e11addc8f9257a6d56f8b5d85078d4fcda588
/* * Copyright (C) 2010-2022 by the Widelands Development Team * * 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 version 2 * of the License, or (at your option) any later version. ...
C
src/wui/actionconfirm.h
widelands/widelands
gpl-2.0
1,741
50
codeparrot/github-code
74e9cfdf875089abef4ec288e9c485bf059f9f8cf949209b3b0a0780eb70726d
package com.grupo2s.demo.event2s; import com.grupo2s.test.event2s.*; import com.thoughtworks.selenium.Selenium; import org.openqa.selenium.firefox.FirefoxDriver; import org.openqa.selenium.WebDriver; import com.thoughtworks.selenium.webdriven.WebDriverBackedSelenium; import org.junit.After; import org.junit.Before; im...
Java
src/test/java/com/grupo2s/demo/event2s/CrearEventoTest.java
cuent/TestEvent2S
gpl-2.0
9,802
289
codeparrot/github-code
d5ea3ff736170493a8fa5d2b6ea7f860453bd1ce54805c1cdf664021bec73778
Drupal.behaviors.initThickbox=function(context){$('a,area,input',context).filter('.thickbox:not(.initThickbox-processed)').addClass('initThickbox-processed').click(function(){var t=this.title||this.name||null;var a=this.href||this.alt;var g=this.rel||false;tb_show(t,a,g);this.blur();return false;});};function tb_show(c...
JavaScript
sites/all/modules/thickbox/thickbox.js
gwongBC/iyac
gpl-2.0
9,802
52
codeparrot/github-code
32288a7d4814b914c0913bcddaea27cfc2a7d4c4e10c2b37d2eb9079a87637cc
/* A minimal interface to Xconq. Copyright (C) 1991-1997, 1999-2000 Stanley T. Shebs. Xconq 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 version 2, or (at your option) any later version. See the fil...
C
kernel/skelconq.c
brentjohnson/xconq
gpl-2.0
27,303
1,203
codeparrot/github-code
5fbaab521cb882d7b9bf9519d0b277247aacd321d0081995434e85232d93cd75
__author__ = 'tonycastronova' import xml.etree.ElementTree as et from xml.dom import minidom def prettify(elem): """ Return a pretty-printed XML string for the Element. """ rough_string = et.tostring(elem, 'utf-8') reparsed = minidom.parseString(rough_string) return reparsed.toprettyxml(inde...
Python
gui/examples/xml.py
Castronova/EMIT
gpl-2.0
877
32
codeparrot/github-code
08ea3af17700db3a4c1733413bc3d1f2588ff2a6ce1c3ce24fb0f5c0679b9530
/******************************************************************************\ * libkawaii - A Japanese language support library for Qt4 * * Copyright (C) 2007 John Eric Martin <john.eric.martin@gmail.com> * * ...
C
src/KanaConversion.h
erikku/libkawaii
gpl-2.0
2,096
45
codeparrot/github-code
ff2ac8b0e03b1a7a520a4a6e638af865ea1e9522e6dbad40ac4fb03a2fe407c2
/* linux/arch/arm/mach-exynos4/platsmp.c * * Copyright (c) 2010-2011 Samsung Electronics Co., Ltd. * http://www.samsung.com * * Cloned from linux/arch/arm/mach-vexpress/platsmp.c * * Copyright (C) 2002 ARM Ltd. * All Rights Reserved * * This program is free software; you can redistribute it and/or modify ...
C
arch/arm/mach-exynos/platsmp.c
Talustus/android_kernel_exynos-3.4
gpl-2.0
5,254
233
codeparrot/github-code
507d81af2f56dbf3f28439dc797aaa0d78b4986bcd5a20008515f8e7528c2f71
/***************************************************************************** * Copyright Statement: * -------------------- * This software is protected by Copyright and the information contained * herein is confidential. The software may not be copied and the information * contained herein may not be used or dis...
C
drivers/misc/mediatek/lcm/hct_hx8394f_dsi_vdo_hd_auo2/hct_hx8394f_dsi_vdo_hd_auo2.c
MrColdbird/android_kernel_oukitel_k4000pro
gpl-2.0
16,885
563
codeparrot/github-code
e4188e369ceea243d5fde912a74c5a5a6e9d8b205e615f4e8b514901f785217d
/* * Copyright (C) 2013 Stephen Chandler Paul * * This file is free software: you may copy it, redistribute it and/or modify it * under the terms of the GNU General Public License as published by the Free * Software Foundation, either version 2 of this License or (at your option) any * later version. * * This f...
C
src/ui/settings_dialog.c
Lyude/SquirrelChat
gpl-2.0
6,098
143
codeparrot/github-code
9e3074820e3d6bfa9c3634b51f1a4a3a7212008349974eb6300a8fef59f02886
''' This file is part of the lenstractor project. Copyright 2012 David W. Hogg (NYU) and Phil Marshall (Oxford). Description ----------- Model class, to package up srcs and enable initialization. To-do ----- - debug, test ''' import numpy as np import pylab as plt import tractor import lenstractor deg2rad = 0.01...
Python
lenstractor/model.py
davidwhogg/LensTractor
gpl-2.0
28,818
725
codeparrot/github-code
344700bf6bc9480e024ee65253b7610a452331ddcec9583212c2c0e8c34527a1
<?php /** * Cpanel View for yos_translator Component * * @package yos_translator * @subpackage Components * @link http://yopensource.com * @author cuongpm * @copyright YOS (cuongpmyos@gmail.com) * @license Commercial */ // Check to ensure this file is included in Joomla! defined('_JEXEC') or die(); jimp...
PHP
administrator/components/com_yos_translator/views/categories/view.html.php
lycoben/veneflights
gpl-2.0
1,260
53
codeparrot/github-code
c92f973305091e7295585194738aa027025716153df27d32551c03e84b2dec59
<?php /** * Created by PhpStorm. * User: cbrownroberts * Date: 2/6/15 * Time: 2:56 PM */ class Library_Hours_Post_Type { const POST_TYPE = "libhours_post_type"; public function __construct() { //register actions add_action('init', array(&$this, 'init')); } public function init() { //Initialize C...
PHP
wp-content/plugins/library-hours-plugin/includes/class-library-hours-post-type.php
cgb37/umlib-wp.local
gpl-2.0
2,245
77
codeparrot/github-code
70f2a4dbf0a7c9892e9b89ceedad77e37646fd10f3f7bd4e254deb2105d310eb
using System; using System.Linq; namespace CSharpToMpAsm.Compiler.Codes { public abstract class CodeOptimisationVisitor { public virtual ICode Visit(ICode code) { var nullCode = code as NullCode; if (nullCode != null) return Optimize(nullCode); var returnCode...
C#
src/CSharpToMpAsm.Compiler/Codes/CodeOptimisationVisitor.cs
motz-art/CSharpToMpAsm
gpl-2.0
9,104
245
codeparrot/github-code
2a1a9eb5ea63237b487f76796d0dc8198fe6e72ec8b35b6596e74864245fc24f
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package rebotron; import java.awt.BorderLayout; import java.awt.Color; import java.awt.Graphics; import javax.swing.JFrame; import java.awt.event.KeyAdapter; import java.awt.event.KeyEvent; import java.awt.event.WindowA...
Java
src/rebotron/Rebotron.java
mhyst/Rebotron
gpl-2.0
4,353
131
codeparrot/github-code
332648ca54628fe9f05711e0199e5bc5d7502a17edf2bc65707e15077abde0d5
/* * Copyright (C) 2005 Frerich Raabe <raabe@kde.org> * Copyright (C) 2006, 2009 Apple Inc. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * 1. Redistributions of source code must retai...
C++
modules/web/src/main/native/Source/WebCore/xml/XPathResult.cpp
teamfx/openjfx-8u-dev-rt
gpl-2.0
5,599
186
codeparrot/github-code
536bedc555884843731b138248dd658f357d171b6c49d6c96a211ce8f76b865e
package ar.edu.itba.pod.Legajo47399.simul.comunication; import java.rmi.RemoteException; import java.rmi.server.UnicastRemoteObject; import java.util.ArrayList; import java.util.Collections; import java.util.HashMap; import java.util.Iterator; import java.util.List; import java.util.Map; import java.util.Set...
Java
src/main/java/ar/edu/itba/pod/Legajo47399/simul/comunication/MessageListenerImpl.java
sdvf/itba-pod-2010
gpl-2.0
9,291
281
codeparrot/github-code
8c50ac479e719af58c4084837a03fa745be02027a2ef4995f803c2ed8531b09a
package rchan import ( "log" "net" "os" "time" ) type Client struct { serverAddr string session *Session logger *log.Logger SendCh chan []byte RecvCh chan []byte } func NewClient(serverAddr string, bufSize int) *Client { return &Client{ serverAddr: serverAddr, logger: log.New(os.Stde...
GO
rchan/client.go
t4ng/kspider
gpl-2.0
1,586
87
codeparrot/github-code
5a3bd73a1e2a36d08f1dd5875db05bd1cb679e2bb0c885211e6af302406331ad
<?php /* * Chris, if you get a look at this file before I talk to you, don't worry * about the following TODO list; we'll go over it together in the office. * * TODO: * - add support for the target attribute * - add support for the title attribute * - add support for CSS align * * ShortCode Options: * style:...
PHP
shortcodes/bimg-button.php
BigIdeaMediaGroup/bimg-wp-shortcodes
gpl-2.0
1,855
76
codeparrot/github-code
b34c0cf5f68c065ca3a9046090dfd6f6538655ec3d9caac89b51f232a6fa990d
#include <stdio.h> #include <math.h> #include <string.h> #include <stdlib.h> #include "gd.h" #include "gdhelpers.h" #include "png.h" /* includes zlib.h and setjmp.h */ #define TRUE 1 #define FALSE 0 #ifdef HAVE_LIBPNG /*--------------------------------------------------------------------------- gd_png.c ...
C
gd-1.8.4/gd_png.c
dhtech/rtg
gpl-2.0
22,318
611
codeparrot/github-code
8efaddfe87fb89b7a6d86b3a76b5cf801c76b4362b6403b2be4fbf00ee11f23d
/* * linux/arch/arm/lib/copypage-armv4mc.S * * Copyright (C) 1995-2005 Russell King * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation. * * This handles the mini data...
C
arch/arm/mm/copypage-v4mc.c
Jackeagle/android_kernel_sony_c2305
gpl-2.0
3,596
116
codeparrot/github-code