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 |
|---|---|---|---|---|---|---|---|---|
a4b28a7fd631b32e8e8d4b1d894c8d6b5596c0dfe192b2ce8477649a64850b62 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading;
namespace FuzzyString {
public static partial class ComparisonMetrics {
/// <summary>
/// Method to return the longest common subsequence of characters
/// </summary>
///... | C# | SQLServerRegEx/LongestCommonSubsequence.cs | wbuchanan/whyWontSQLServerImplementRegexNatively | epl-1.0 | 2,373 | 49 | codeparrot/github-code |
d6fe02ba2d550ba2f113a999402881550e74dcd4a6881c4e05c1e5e136fcabe9 | /*****************************************************************************
* Copyright (c) 2012 CEA LIST.
*
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the CeCILL-C Free Software License v1.0
* which accompanies this distribution, and is ava... | Java | plugins/robotml/org.eclipse.papyrus.robotml.diagram.datatypedef/src-gen/org/eclipse/papyrus/robotml/diagram/datatypedef/provider/InheritedClassDiagramViewProvider.java | RobotML/RobotML-SDK-Juno | epl-1.0 | 26,770 | 567 | codeparrot/github-code |
83c3ac37f0b5f407e2d1a9a04c82ffb7470ddafc6e21a316590165c6904e0336 | /*
* 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:
* SEARCH Group, Incorporated - initial API and implementation
*
*/
... | Java | plugins/org.search.niem.uml.search/src/main/java/org/search/niem/uml/search/NamedElementIndexAccess.java | info-sharing-environment/NIEM-Modeling-Tool | epl-1.0 | 5,223 | 138 | codeparrot/github-code |
acaddde273168a687eff4bf111f5f630be92262d8241a7d774cf7e7421782f49 | /**
* 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 | paulianttila/openhab2 | epl-1.0 | 7,549 | 217 | codeparrot/github-code |
c58a5513c2d309b59a978696100f89d6336b147f97e08ff43eada8eb14ba5cdd | package edu.ncsu.csc.itrust.action;
import edu.ncsu.csc.itrust.dao.DAOFactory;
import edu.ncsu.csc.itrust.dao.mysql.AuthDAO;
import edu.ncsu.csc.itrust.dao.mysql.TransactionDAO;
import edu.ncsu.csc.itrust.enums.TransactionType;
import edu.ncsu.csc.itrust.exception.DBException;
/**
* Please note that this is not the ... | Java | eu.modelwriter.datasets.traceability/CoEST Datasets/iTrust-NASA (!)/itrust_v10_code/iTrust/src/edu/ncsu/csc/itrust/action/LoginFailureAction.java | ModelWriter/Demonstrations | epl-1.0 | 2,722 | 73 | codeparrot/github-code |
d648ddf5e5d20b861655d26a645d03d7683511c170b0c52cd6b7e2016dae1056 | package org.jboss.shrinkwrap.descriptor.impl.ejbjar31;
import java.util.ArrayList;
import java.util.List;
import org.jboss.shrinkwrap.descriptor.api.Child;
import org.jboss.shrinkwrap.descriptor.api.ejbjar31.InterceptorOrderType;
import org.jboss.shrinkwrap.descriptor.spi.node.Node;
/**
* This class implements the... | Java | impl/src/main/java/org/jboss/shrinkwrap/descriptor/impl/ejbjar31/InterceptorOrderTypeImpl.java | forge/javaee-descriptors | epl-1.0 | 4,238 | 129 | codeparrot/github-code |
76d59c6db7b4df2f6e9fa30c81538102ad79f4fe469074e96f5609d23ae9b2ec | /**
*/
package com.sii.restaurant.restaurant.impl;
import com.sii.restaurant.restaurant.Clients;
import com.sii.restaurant.restaurant.RestaurantPackage;
import com.sii.restaurant.restaurant.MRestaurantPackage;
import org.eclipse.emf.common.notify.Notification;
import org.eclipse.emf.ecore.EClass;
import org.eclips... | Java | com.sii.restaurant/src-gen/com/sii/restaurant/restaurant/impl/MClientsImpl.java | earnou/rcptraining | epl-1.0 | 3,683 | 163 | codeparrot/github-code |
0bb0b9ec2d3f476be42fc042e950c3472d7f03345b6020d38d1bea04d4c1f243 | /*
* 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 org.... | Java | model/yang-model-api/src/main/java/org/opendaylight/yangtools/yang/model/api/type/DecimalTypeDefinition.java | opendaylight/yangtools | epl-1.0 | 2,048 | 50 | codeparrot/github-code |
d855aa5211a80c7399445b43fa7226cccea223ae50060c3fbdb2a6fcf3a85b00 | /**
*/
package de.dfki.iui.basys.model.domain.resourceinstance.impl;
import de.dfki.iui.basys.model.domain.capability.CapabilityAssertion;
import de.dfki.iui.basys.model.domain.resourceinstance.CapabilityApplication;
import de.dfki.iui.basys.model.domain.resourceinstance.CapabilityVariant;
import de.dfki.iui.basys.mo... | Java | de.dfki.iui.basys.model.domain/src/de/dfki/iui/basys/model/domain/resourceinstance/impl/CapabilityApplicationImpl.java | BaSys-PC1/models | epl-1.0 | 6,674 | 213 | codeparrot/github-code |
bb73ba040940867d65671d044edf38ff044a7036d9a0fbced227ee97a74be71a | /********************************************************************************
** Form generated from reading UI file 'mainwindow.ui'
**
** Created by: Qt User Interface Compiler version 5.6.1
**
** WARNING! All changes made in this file will be lost when recompiling UI file!
****************************************... | C | Truco/Jogo_Truco/ui_mainwindow.h | gianricardo/prog3 | epl-1.0 | 4,559 | 125 | codeparrot/github-code |
af907e743f9d078734e936ea79f54d4a0b570829857c0084a54935929b01a869 | /*
* Copyright (c) 2012-2018 Red Hat, Inc.
* 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:
* Red H... | Java | selenium/che-selenium-test/src/test/java/org/eclipse/che/selenium/refactor/types/TestEnumerationsTest.java | sleshchenko/che | epl-1.0 | 4,747 | 125 | codeparrot/github-code |
ecec7bc04623a37691efa689333cb7f720a5349b18e4b6ee44d9dea2b661ada3 | <?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-6BE0574A-FE69-32F0-B959-A851356FA132.html | warlordh/fork_Symbian | epl-1.0 | 46,842 | 2,007 | codeparrot/github-code |
eeecd37bde60e951cd719ca10f046cc112d36e37e32bcd06b69fe4cd3c60f3c8 | /******************************************************************************
* MediaCache.java
* ****************************************************************************/
/* J_LZ_COPYRIGHT_BEGIN *******************************************************
* Copyright 2001-2004 Laszlo Systems, Inc. All Rights Rese... | Java | WEB-INF/lps/server/src/org/openlaszlo/cache/MediaCache.java | mcarlson/openlaszlo | epl-1.0 | 1,062 | 34 | codeparrot/github-code |
712b41f988f2467845f79a0542e00951e6759a985138a300b3aab3080e594357 | package org.eclipse.neoscada.contrib.plantsimulator;
import java.util.HashMap;
import java.util.Map;
public class CalculatedPower
{
private long timestamp = 0;
private double input = 0.0;
private double inputPlus5 = 0.0;
private Map<Integer, Double> power = new HashMap<> ();
privat... | Java | org.eclipse.neoscada.contrib.plantsimulator/src/main/java/org/eclipse/neoscada/contrib/plantsimulator/CalculatedPower.java | ibh-systems/neoscada-misc | epl-1.0 | 1,673 | 88 | codeparrot/github-code |
c19cf35f54a08dac8aab5ae9f7e07d13cce54523f9d6df599ea338c537158b4d | package com.odcgroup.page.ui.properties.table;
import org.apache.commons.lang.StringUtils;
import org.eclipse.jface.viewers.CellEditor;
import org.eclipse.jface.viewers.ILabelProvider;
import org.eclipse.swt.widgets.Composite;
import com.odcgroup.page.model.Property;
import com.odcgroup.page.ui.properties.AbstractPro... | Java | designstudio/components/page/ui/com.odcgroup.page.ui/src/main/java/com/odcgroup/page/ui/properties/table/TableGroupSortingColumnCellEditor.java | debabratahazra/DS | epl-1.0 | 997 | 38 | codeparrot/github-code |
c4fac8e9ef171fdd2bf58805209ab8d299d7408464cda0f44f1f9dac811dfa47 | package com.llh.view;
import android.content.Context;
import android.view.View;
import android.view.inputmethod.InputMethodManager;
/**
* @author yangyu
* 功能描述:常量工具类
*/
public class Util {
/**
* 得到设备屏幕的宽度
*/
public static int getScreenWidth(Context context) {
return context.getResources().getDisplayMetrics... | Java | CamerLelaohui/src/com/llh/view/Util.java | orq518/lelaohui | epl-1.0 | 801 | 43 | codeparrot/github-code |
a234812b897aa3f964d0f889be77a60d647545a90b14c9b5b9e9961f7c9b5669 | /*******************************************************************************
* Copyright (c) 2000, 2011 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 | org.eclipse.jdt.ls.core/src/org/eclipse/jdt/ls/core/internal/corext/refactoring/reorg/RefactoringModifications.java | gorkem/java-language-server | epl-1.0 | 3,877 | 100 | codeparrot/github-code |
f6dc7b52e7a847b0e367876b2a6cb0e1b812748b269c452db29ec63f8774c8ab | /* ******************************************************************************
* 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/mindmap/ILegendItemPart.java | nickmain/xmind | epl-1.0 | 1,057 | 32 | codeparrot/github-code |
720aa5b6e373a7d8e661f2f1c1a8496c44eb6f8344c8b7828f65a1f4009f7075 | /*
* Copyright (c) 2015 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 | opendaylight/md-sal/sal-akka-raft/src/main/java/org/opendaylight/controller/cluster/raft/base/messages/DeleteEntries.java | qqbbyq/controller | epl-1.0 | 1,336 | 44 | codeparrot/github-code |
dd3646a5bcab79987407fd5b0739591e7e0697f40f5446b8a293ed8059d9f8e6 | <?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) Copyrigh... | HTML | pdk/GUID-61153437-90BD-39E6-93D8-61E8644CF3FB.html | warlordh/fork_Symbian | epl-1.0 | 8,230 | 112 | codeparrot/github-code |
5b776d47454366b689b9bea63f02a42054fd95d75661a8b0a3c33367ee8bff95 | /**
* <copyright>
* </copyright>
*
*/
package mdse.book.sWML.impl;
import java.util.Collection;
import mdse.book.sWML.ContentLayer;
import mdse.book.sWML.SWMLPackage;
import org.eclipse.emf.common.notify.NotificationChain;
import org.eclipse.emf.common.util.EList;
import org.eclipse.emf.ecore.EClass;
import o... | Java | mdse.book.swml.tcs/src-gen/mdse/book/sWML/impl/ContentLayerImpl.java | UNIT-Research-Development/TextualConcreteSyntax | epl-1.0 | 3,702 | 171 | codeparrot/github-code |
5c4d66e144ed19cba51ded00e08965f8140f206c6e292078de04f6b4d3768247 | package evil_ant
trait Emitter[T] extends Closeable {
protected def requireOpen = if(!isOpen) throw new ClosedEmitterException()
def emit: Boolean = emitNow
def emitIn(timeInMilliseconds: Long): Boolean = emitNow
def emitNow: Boolean = { requireOpen; doEmit; true }
protected def doEmit: Unit
def absorbe... | Scala | scala/evil_ant/Emitter.scala | sopindm/evil-ant | epl-1.0 | 2,722 | 102 | codeparrot/github-code |
3784a6ff580dd87a774aee9d2fc2ef10c93de50e9e8ad6137a761d372ccb9c5c | <?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-D9147F3A-6C40-38BA-9290-7EC1511E28A4.html | warlordh/fork_Symbian | epl-1.0 | 10,578 | 398 | codeparrot/github-code |
8dbfc7b13c3a51a0ddec95bc49ae6f126a2b9a51597a64dc5262b566ca974497 | /*******************************************************************************
* Copyright (c) 2011, 2016 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/org.eclipse.kura.core/src/main/java/org/eclipse/kura/core/data/DataMessage.java | markcullen/kura_Windows | epl-1.0 | 5,371 | 247 | codeparrot/github-code |
6090421d6425e8e45a0d0f08ebf33e4cd1b586122b0a0de0ff3473f7978a09b6 | package io.minimum.minecraft.superbvote.votes.rewards.matchers;
import com.google.common.collect.ImmutableList;
import com.google.common.collect.ImmutableSet;
import io.minimum.minecraft.superbvote.util.PlayerVotes;
import io.minimum.minecraft.superbvote.votes.Vote;
import lombok.ToString;
import java.util.ArrayList;... | Java | src/main/java/io/minimum/minecraft/superbvote/votes/rewards/matchers/ServiceRewardMatcher.java | minecrafter/SuperbVote | epl-1.0 | 1,183 | 36 | codeparrot/github-code |
ace4c96cc55a65c6d4bebcbe1c18a97e212d961b8ffd6eabaef5d00222fc79a1 | package sqlAnalysis;
import org.junit.Test;
import com.ibm.wala.classLoader.ClassLoaderFactory;
public class TranslatorTest {
private ClassLoaderFactory loaders = new SQLClassLoaderFactory();
@Test
public void testAnd() throws Exception {
String sql = "select a, b from c where a = b and a = 6";
SQLToGraph... | Java | sqlAnalysis/src/test/java/sqlAnalysis/TranslatorTest.java | Quetzal-RDF/synthesis | epl-1.0 | 2,551 | 82 | codeparrot/github-code |
0c2cf1de8c75fd8dc1ca589f83bb89858902322e1088b2cf153f21310b5b432c | /*******************************************************************************
* Copyright (c) 2000, 2011 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 | org.eclipse.jdt.ui/src/org/eclipse/jdt/internal/corext/refactoring/rename/RenamingNameSuggestor.java | elucash/eclipse-oxygen | epl-1.0 | 20,510 | 573 | codeparrot/github-code |
e0cb6e24f9cd7cdaec7a115c8481ad5c21d6e218fc0e736a225955e487de79ac | <?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-7E89686A-3485-3243-924F-C6501ABE3CB8.html | warlordh/fork_Symbian | epl-1.0 | 10,265 | 402 | codeparrot/github-code |
82028ddd772e0fd986471d077ac080c975f4167bdd658b93fd162cceb3a7f95a | package org.formulachess.engine;
import static org.formulachess.engine.Piece.BLACK_BISHOP;
import static org.formulachess.engine.Piece.BLACK_KING;
import static org.formulachess.engine.Piece.BLACK_KNIGHT;
import static org.formulachess.engine.Piece.BLACK_PAWN;
import static org.formulachess.engine.Piece.BLACK_QU... | Java | bundles/org.formulachess.chess.utils/src/org/formulachess/engine/ChessEngine.java | othomann/formulachess | epl-1.0 | 63,428 | 2,319 | codeparrot/github-code |
86f44abdcabab6c2b20eb49df44109b4ba8fbe54de45217389283f391cbc4521 | //===-- llvm/Support/Timer.h - Interval Timing Support ----------*- C++ -*-===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... | C | roccc-compiler/src/llvm-2.3/include/llvm/Support/Timer.h | nxt4hll/roccc-2.0 | epl-1.0 | 5,412 | 166 | codeparrot/github-code |
459c98ba7dafe1a081682ae03cc811084ca9b524d0a376d0dea34a13e04fe155 | // Compiled by ClojureScript 1.9.293 {:static-fns true, :optimize-constants true}
goog.provide('reagent.impl.util');
goog.require('cljs.core');
goog.require('reagent.debug');
goog.require('reagent.interop');
goog.require('clojure.string');
if(typeof reagent.impl.util.react !== 'undefined'){
} else {
reagent.impl.util.r... | JavaScript | escherize-cljs/target/js/app.out/reagent/impl/util.js | laforge49/thoughts-resources | epl-1.0 | 10,328 | 277 | codeparrot/github-code |
cf8b275ee95d20f8007cebd22b7711067607d31933db56ea5e052f10389ffb62 | // Generated from C:\Work\Nasdanika\workspace\org.nasdanika.amur.lang.causality\grammars\PromiseDereferencing.g4 by ANTLR 4.1
package org.nasdanika.amur.lang.causality.parse.promisedereferencing;
import org.antlr.v4.runtime.Lexer;
import org.antlr.v4.runtime.CharStream;
import org.antlr.v4.runtime.Token;
import org.a... | Java | org.nasdanika.amur.lang.causality/src/org/nasdanika/amur/lang/causality/parse/promisedereferencing/PromiseDereferencingLexer.java | Nasdanika/amur-lang | epl-1.0 | 2,363 | 70 | codeparrot/github-code |
3aef6a30a9b722ef516c283a45c09f882962bfe5323660b5635e0a9e20c37680 | /*
* Copyright (C) 2010, Google Inc.
* and other copyright owners as documented in the project's IP log.
*
* This program and the accompanying materials are made available
* under the terms of the Eclipse Distribution License v1.0 which
* accompanies this distribution, is reproduced below, and is
* available at ... | Java | src/main/jgit/org/jboss/forge/jgit/transport/UsernamePasswordCredentialsProvider.java | forge/plugin-undo | epl-1.0 | 4,174 | 137 | codeparrot/github-code |
0ff2f754f6b8eee32aca6bf894909621f2f6c130bbb1d06f0c6e8b1a60db1d0d | /*
* ******************************************************************************
* * Copyright (c) 2017 Arthur Deschamps
* *
* * 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 distributio... | Java | simulator/src/main/java/simulation/generators/CompanyGenerator.java | arthurdeschamps/kapua-iot-gateway-simulation | epl-1.0 | 2,967 | 103 | codeparrot/github-code |
da9590a9e0ed6992d9cbedd78a1e2324d4e64a09d560180c9272047b826a5a0a | /*
* Copyright (c) 2012-2015 NEC Corporation
* 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
*/
#ifndef _PFC_LIBPFC_... | C | coordinator/core/libs/libpfc_ipcclnt/ipcclnt_event.h | opendaylight/vtn | epl-1.0 | 22,808 | 749 | codeparrot/github-code |
ffb5d74612fb7cc276d3368ace8ec05c267c08c9bd56ff5ace84f9b53648dcb1 | package ch.elexis.core.findings.ui.action;
import org.eclipse.jface.action.Action;
import org.eclipse.jface.action.IAction;
import org.eclipse.jface.resource.ImageDescriptor;
import ch.elexis.core.data.events.ElexisEventDispatcher;
import ch.elexis.core.data.service.LocalLockServiceHolder;
import ch.elexis.core.findi... | Java | bundles/ch.elexis.core.findings.ui/src/ch/elexis/core/findings/ui/action/AddFindingAction.java | elexis/elexis-3-core | epl-1.0 | 1,405 | 49 | codeparrot/github-code |
c57706802be5bc29746e64f4f1aeefa4b67465457b665f35283e1d7f21ccb813 | /*******************************************************************************
* Copyright (c) 2015 CA. All rights reserved.
*
* This source file is licensed under the terms of the Eclipse Public License 1.0
* For the full text of the EPL please see https://www.eclipse.org/legal/epl-v10.html
*******************... | Java | utilities/commonUtils/test/java/com/ca/casd/utilities/commonUtils/metadata/MetadataParserTest.java | DevTestSolutions/dvs_ce | epl-1.0 | 9,468 | 307 | codeparrot/github-code |
8056661c4517ffa25ca025e151355f75e4b91675bdb0c7dd58f875f3a450c5d2 | // Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: packimports(3) braces deadcode
package net.minecraft.src;
import java.util.*;
// Referenced classes of package net.minecraft.src:
// Entity, EnumArt, AxisAlignedB... | Java | moCreatures/client/core/sources/net/minecraft/src/EntityPainting.java | sehrgut/minecraft-smp-mocreatures | epl-1.0 | 7,541 | 281 | codeparrot/github-code |
db9759faa9e03846589ef4b84faedb241e33b99014c70362fca619a4000f01b7 | /*****************************************************************************
* Copyright (c) 2014 Atos.
*
*
* 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
*... | Java | plugins/org.topcased.model2doc.query2table.ui/src/org/topcased/model2doc/query2table/ui/pages/Messages.java | TristanFAURE/query2Table | epl-1.0 | 1,587 | 43 | codeparrot/github-code |
5b8e03f1b88ddcb0b249a4a82f47d71895aa40c38794e46d3ec6ac8712897afb | /**
* Copyright (c) 2015 Bosch Software Innovations 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 this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
... | Java | hawkbit-ddi-resource/src/test/java/org/eclipse/hawkbit/ddi/rest/resource/DdiDeploymentBaseTest.java | StBurcher/hawkbit | epl-1.0 | 65,010 | 991 | codeparrot/github-code |
dd5f8ec390ce3d25e7cffa15e44655f38d0766a77b67e8dfff9d6f3a3b588ed0 | package org.opendaylight.yang.gen.v1.urn.opendaylight.node.error.service.rev140410;
import org.opendaylight.yangtools.yang.binding.ChildOf;
import org.opendaylight.yangtools.yang.binding.DataObject;
import org.opendaylight.yangtools.yang.binding.Augmentable;
import org.opendaylight.yang.gen.v1.urn.opendaylight.flow.err... | Java | opendaylight/md-sal/model/model-flow-service/src/main/yang-gen-sal/org/opendaylight/yang/gen/v1/urn/opendaylight/node/error/service/rev140410/ExperimenterErrorNotification.java | niuqg/controller | epl-1.0 | 1,398 | 34 | codeparrot/github-code |
953c15b00f241de529bafd4709a35fec7eec447f625ef1d83185315eab0d60ce | package org.openRealmOfStars.game.States;
import static org.junit.Assert.*;
import java.awt.event.ActionListener;
import java.util.ArrayList;
import org.junit.Test;
import org.junit.experimental.categories.Category;
import org.mockito.Mockito;
import org.openRealmOfStars.player.PlayerInfo;
import org.openRealmOfStar... | Java | src/test/java/org/openRealmOfStars/game/States/FleetTradeViewTest.java | tuomount/Open-Realms-of-Stars | gpl-2.0 | 6,606 | 147 | codeparrot/github-code |
52df290389f00babbf238bec82a1b9cf405221bd285771487a89af234e6d928f | /* SPDX-License-Identifier: BSD-3-Clause
* Copyright(c) 2017 Intel Corporation
*/
#include <string.h>
#include <rte_common.h>
#include <rte_malloc.h>
#include <rte_dev.h>
#include <rte_cryptodev.h>
#include <rte_cryptodev_pmd.h>
#include <rte_reorder.h>
#include "scheduler_pmd_private.h"
/** attaching the slaves p... | C | drivers/crypto/scheduler/scheduler_pmd_ops.c | emmericp/dpdk | gpl-2.0 | 14,077 | 545 | codeparrot/github-code |
db3d12d5f258102efa7f904476d94c2c664c8b05d56b1d3268ced07cb168f662 | /*
* Copyright (c) 2003, Intel Corporation. All rights reserved.
* Created by: salwan.searty REMOVE-THIS AT intel DOT com
* This file is licensed under the GPL license. For the full content
* of this license, see the COPYING file at the top level of this
* source tree.
This program tests the assertion that the... | C | testcases/open_posix_testsuite/conformance/interfaces/sigset/2-1.c | rogerq/ltp-ddt | gpl-2.0 | 1,507 | 60 | codeparrot/github-code |
8f7421fb180a1caeab120a350f2817de5d7a1bf604ac53970946053cd788b11e | /*
* Copyright (C) 2011 SingularityCore <http://www.singularitycore.org/>
* Copyright (C) 2008-2011 TrinityCore <http://www.trinitycore.org/>
* Copyright (C) 2005-2009 MaNGOS <http://getmangos.com/>
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Pu... | C | src/server/game/Maps/MapManager.h | SingularityCore/Singularity | gpl-2.0 | 6,343 | 185 | codeparrot/github-code |
eb637435486adcb51dbff942f89d00439281d4cefb8fd01b0e8868bb6e26171d | package model;
import java.io.BufferedReader;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.IOException;
import java.util.Arrays;
import java.util.HashMap;
import java.util.LinkedList;
import view.Log;
import view.View;
public class DB {
private static DB db = new DB();
private... | Java | src/model/DB.java | viqizevic/OpenLP-Songs-Transfer | gpl-2.0 | 11,004 | 386 | codeparrot/github-code |
d3411258262b5531bfc54435dc9a03777357268bdf0960b966d22db6327a1956 | <?php
/**
* package.xml generation class, package.xml version 1.0
*
* PHP versions 4 and 5
*
* LICENSE: This source file is subject to version 3.0 of the PHP license
* that is available through the world-wide-web at the following URI:
* http://www.php.net/license/3_0.txt. If you did not receive a copy of
* the... | PHP | lib/pear/PEAR/PackageFile/Generator/v1.php | voyagerx3/reviveadserver | gpl-2.0 | 50,703 | 1,272 | codeparrot/github-code |
1c15fbaee00d91b459cee5c31e50b7140e1459289fc33a21f21569cff9644e37 | /*
The oRTP library is an RTP (Realtime Transport Protocol - rfc3550) stack.
Copyright (C) 2001 Simon MORLAT simon.morlat@linphone.org
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation... | C | user/linphone/linphone-2.0.1/oRTP/src/jitterctl.c | scs/uclinux | gpl-2.0 | 5,738 | 168 | codeparrot/github-code |
3c4dec2de3e6e5d96613a3dcab4322c7c42d72c436d72b68ef39b1029caa171c | /*
* linux/drivers/mmc/sdio.c
*
* Copyright 2006-2007 Pierre Ossman
*
* 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 v... | C | drivers/mmc/core/sdio.c | unforgiven512/samsung-kernel-admire | gpl-2.0 | 15,837 | 764 | codeparrot/github-code |
4bf715578178261f8bf251b6e4e5fd9444e7cbe4c8c0152dae6044d81e914778 | #pragma once
#include <cstdint>
#include <ClockedChip.h>
#include <Signal.h>
#include <Ram.h>
/*
PIA 6532 combined timer, IO and 128 bytes RAM
=============================================
MOS 6532 pin configuration
--------------------------
____________
| |_| |
VSS -| 1 40|- A6
| ... | C | M6532/inc/M6532.h | MoleskiCoder/EightBit | gpl-2.0 | 10,800 | 302 | codeparrot/github-code |
ada327ce7e28c7c65f6f7cd8a944e3ef76f0b314f669c798b96919c8ed98e779 | /******************************************************************************
*
*
*
* Copyright (C) 1997-2013 by Dimitri van Heesch.
*
* Permission to use, copy, modify, and distribute this software and its
* documentation under the terms of the GNU General Public License is hereby
* granted. No repre... | C | src/translator_am.h | Distrotech/doxygen | gpl-2.0 | 61,521 | 1,805 | codeparrot/github-code |
735606bc255f8a4429d99073b95733c8d6d5452d5af13e538bc98e40cf979e93 | define(['libraryBrowser', 'focusManager', 'embyRouter', 'emby-input', 'paper-icon-button-light', 'material-icons'], function (libraryBrowser, focusManager, embyRouter) {
function loadSuggestions(page) {
var options = {
SortBy: "IsFavoriteOrLiked,Random",
IncludeItemTypes: "Movie,... | JavaScript | MediaBrowser.WebDashboard/dashboard-ui/scripts/searchpage.js | neagix/Emby | gpl-2.0 | 5,664 | 198 | codeparrot/github-code |
171b0fcd194665f004e144fa6bf1950bd73014d01d587986886e56a92677faed | /********************************************************************************
* *
* GNORASI - The Knowlegde-Based Remote Sensing Engine *
* ... | C | Gnorasi/modules/otb/processors/Radiometry/otblaindviprocessor.h | gnorasi/gnorasi | gpl-2.0 | 4,272 | 98 | codeparrot/github-code |
5851c63e0a681e274046a21f190c3d364b526f41f2be0a6e45775af5dc78af14 | /*
Copyright_License {
XCSoar Glide Computer - http://www.xcsoar.org/
Copyright (C) 2000-2011 The XCSoar Project
A detailed list of copyright holders can be found in the file "AUTHORS".
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
... | C++ | src/Airspace/AirspaceParser.hpp | joachimwieland/xcsoar-jwieland | gpl-2.0 | 1,160 | 36 | codeparrot/github-code |
d1f04f21003d13bd4feb3ea789eb45f197b56381648951acfa54b5835ceee1eb | /**
* @file
* @brief Pseudoinstanced grass generation and rendering
*/
/*
Copyright (C) 2013 UFO: Alien Invasion.
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, ... | C++ | src/client/renderer/r_grass.cpp | mgerhardy/ufoai | gpl-2.0 | 11,945 | 418 | codeparrot/github-code |
cc981e5a943630c1ed0575f081daf7f643104667cb2362859cc90d0e6ede837a |
#include <linux/module.h>
#include <linux/init.h>
#include <linux/fs.h>
#include <linux/string.h>
#include <linux/pm.h>
#include <linux/timer.h>
#include <linux/interrupt.h>
#include <linux/platform_device.h>
#include <linux/input.h>
#include <linux/mfd/ezx-pcap.h>
struct pcap_ts {
struct pcap_chip *pcap;
struct i... | C | drivers/input/touchscreen/pcap_ts.c | leemgs/OptimusOneKernel-KandroidCommunity | gpl-2.0 | 6,319 | 262 | codeparrot/github-code |
fcd794b0d17259dd67cf0e92ed34cc0768cedf134dcc0f64b7faef9a06fccd7c | {% extends "base.html" %}
{% load cache %}
{% block title %}Arch Linux - Donate{% endblock %}
{% block content %}
{% cache 600 donations %}
<div id="donations" class="box">
<h2>Donate to Arch Linux</h2>
<p>Arch Linux survives because of the tireless efforts of many people in
the community and the core d... | HTML | templates/public/donate.html | pyropeter/archweb | gpl-2.0 | 4,427 | 91 | codeparrot/github-code |
9a0ef13dbd4242bbdce23f97f6080941ac184f30be6d475c8bd806fec4005f70 | """
This module signs newly installed client puppet certificates if the
puppet master server is running on the same machine as the cobbler
server.
Based on:
http://www.ithiriel.com/content/2010/03/29/writing-install-triggers-cobbler
"""
from builtins import str
import re
import cobbler.utils as utils
def register():... | Python | cobbler/modules/installation/post_puppet.py | jmaas/cobbler | gpl-2.0 | 1,712 | 59 | codeparrot/github-code |
cb841c9e054cc681292cbacc15578a3997889aa4ec95bd5774db11ea53ca8441 | ############################################################################
# CoderBot, a didactical programmable robot.
# Copyright (C) 2014, 2015 Roberto Previtera <info@coderbot.org>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public L... | Python | config.py | lostcaggy/coderbot | gpl-2.0 | 1,410 | 45 | codeparrot/github-code |
ecda297bee393d27e0da316cdb40240eacac5160263dd74fc730fdceb4623151 | /*
* Renjin : JVM-based interpreter for the R language for the statistical analysis
* Copyright © 2010-2019 BeDataDriven Groep B.V. and contributors
*
* 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 F... | Java | core/src/main/java/org/renjin/primitives/matrix/DeferredColSums.java | bedatadriven/renjin | gpl-2.0 | 3,195 | 125 | codeparrot/github-code |
a0f3d3d1ccae97382dac78b837bcccb25cc0a5fb7b862d49405f5be8f428d8ad | #include "stdafx.h"
#include <keys.h>
#include "MenuManager.h"
#include "WcharMbcsConverter.h"
#include "ConfigFile.h"
#include "PluginInterface.h"
#include "StaticIDAllocator.h"
#include "NppAllocator.h"
#include "Notepad_plus_msgs.h"
#include "DynamicIDManager.h"
// Static instance
MenuManager* MenuManag... | C++ | PythonScript/src/MenuManager.cpp | bruderstein/PythonScript | gpl-2.0 | 35,172 | 1,145 | codeparrot/github-code |
3cd9184ddd3c4931fb6d5499ef48e30013606c7afb015c42c630a7d5b51103b7 | #!/usr/bin/python2
import os
import sys
import time
import datetime
import argparse
import hashlib
default_module_folder = '/cygdrive/c/Users/{}/Documents/Paradox Interactive/Crusader Kings II/mod/modules'.format(os.environ.get('USER', 'ziji'))
shrinkwrap_sentinel_file = 'no_shrinkwrap.txt'
k = bytearray(br'"The enem... | Python | installer/shrinkwrap.py | EMFTeam/HIP-tools | gpl-2.0 | 5,564 | 165 | codeparrot/github-code |
aac0d5097e90d7f32411809728ba123157336f0986a973368a1674adc51c749f | /* Copyright (c) 2012-2014, The Linux Foundation. All rights reserved.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 and
* only version 2 as published by the Free Software Foundation.
*
* This program is distributed in the... | C | drivers/video/msm/mdss/mdss_dsi_host.c | crpalmer/android_kernel_samsung_msm8974 | gpl-2.0 | 40,178 | 1,591 | codeparrot/github-code |
d23fe90179ca77d2800e2bb7bc819c14afb46d89284a1c746cd801ed1301e182 | //Inicializar la Expresión Postfija EP
var expPostfija;
var expInfija;
var operadores = ['+','-','*','/','^'];
var funciones = ['sqrt','xsqrt','ln','log','abs','sin','cos','tan','asin','acos','atan','sind','cosd','tand','asind','acosd','atand','!'];
var constantes = ['e','pi'];
var prioridades = [1,1,2,2,3];
var prio... | JavaScript | expresion.js | jegm88/AppCalcExp | gpl-2.0 | 2,256 | 92 | codeparrot/github-code |
77d9988b39e3aa3ce54487c5f7ba3735105369f291ba370a920db14e133ea381 | <?php
/**
* @package DPS\Entitlements
*/
namespace DPS\Entitlements\Server;
use DPS\Entitlements\Server;
use DPS\Entitlements\Util;
/**
* Class Endpoint
*/
class Endpoint {
/**
* @var \WP_Error Error response
*/
public $error;
/**
* @var int Response code
*/
public $response_code = Server::HTTP_SUCC... | PHP | classes/Server/Endpoint.php | sc0ttkclark/dps-entitlement-integration | gpl-2.0 | 1,415 | 79 | codeparrot/github-code |
a032cd08bef2a59bc300392127605082efe6e5d660f494981c9922fbe6831311 | !***************************************************************************
!****m* /nucleus
! NAME
! module nucleus
!
! PURPOSE
! Includes some routines handling the type "tNucleus" given in module
! "nucleusDefinition".
!
! INPUTS
! Namelists "target" and "projectile".
!********************************************... | FORTRAN | code/density/nucleus.f90 | janusw/GiBUU_1.6 | gpl-2.0 | 16,764 | 462 | codeparrot/github-code |
e757dc1b0c9c9e1bdc9b897bdd7a1eb3cb6876a5f45757dee98c162beebbb0f5 | <?php
/*
* cms module: Site Structure
* Module Description: サイトマップ、パンくずナビ、サブナビなど、サイトの構成を一元管理します。
* Order: 0
* First Introduced: 1.0
* Major Changes In:
* Builtin: true
* Free: true
* Module Version: 1.0.2
* License: GPLv2 or later
*/
class site_structure {
var $parent;
var $settings;
var $s... | PHP | wp-content/plugins/wp-sitemanager/modules/site-structure.php | ikarashikei/pocket-tissue | gpl-2.0 | 47,838 | 1,367 | codeparrot/github-code |
394afdc0cbb8965e7ebc323939cc7d98975cea19afe3c17bec5ac410d506e52b |
#include <openssl/sha.h>
#include <openssl/md5.h>
#include <unistd.h>
#include <time.h>
#include "sr_cache.h"
unsigned char hash[SHA512_DIGEST_LENGTH+1];
unsigned char *md5hash( char *str )
{
MD5_CTX md5ctx;
MD5_Init( &md5ctx );
MD5_Update( &md5ctx, str, strlen(str) );
MD5_Final( hash+1, &md5ctx );
... | C | c/sr_cachetest.c | petersilva/metpx-sarracenia | gpl-2.0 | 6,661 | 224 | codeparrot/github-code |
bfda3dfaa71aacec3e9168ef63e2cdc8c26b4fff2360fbd659540bb4b5662b25 | <?php
/**
* SlioPress Installer
*
* @package SlioPress
* @subpackage Administration
*/
// Sanity check.
if ( false ) {
?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Error: PHP is not running</title>
</head>
<bod... | PHP | admin/install.php | muhammadzulfikar/sliopress | gpl-2.0 | 11,721 | 306 | codeparrot/github-code |
de0bbd566c7c7d6f7da8e7bdd06f5cbbb5c5938c65862ffb6aba0004e2d377d3 | //
// I2D_FloatingRotatingCylinderPair.cpp
// I2D_ROCKS
//
// Created by Wim van Rees on 02/12/13.
//
//
#include "I2D_FloatingRotatingCylinderPair.h"
#include "I2D_PenalizationOperator.h"
#include <cmath>
I2D_FloatingRotatingCylinderPair::RotatingCylinderPair::RotatingCylinderPair(Real xm, Real ym, Real D, Real ... | C++ | MRAGapps/I2D/source/I2D_FloatingRotatingCylinderPair.cpp | cselab/MRAG-I2D | gpl-2.0 | 19,495 | 586 | codeparrot/github-code |
04c06493572cb9bd97c56cd5f9405f0a1c67a830c3f9d3d440d5b1687d33968e | /*
* linux/arch/arm/plat-pxa/gpio.c
*
* Generic PXA GPIO handling
*
* Author: Nicolas Pitre
* Created: Jun 15, 2001
* Copyright: MontaVista Software Inc.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 a... | C | drivers/gpio/gpio-pxa.c | Jackeagle/android_kernel_sony_c2305 | gpl-2.0 | 16,453 | 635 | codeparrot/github-code |
f32f9c445bf79192897b6ba88426f6e0d4361a4652de9051a302ea88d6adde40 | /*
FreeRTOS V9.0.1 - Copyright (C) 2017 Real Time Engineers Ltd.
All rights reserved
VISIT http://www.FreeRTOS.org TO ENSURE YOU ARE USING THE LATEST VERSION.
This file is part of the FreeRTOS distribution.
FreeRTOS is free software; you can redistribute it and/or modify it under
the... | C | FreeRTOS/Demo/CORTEX_AT91SAM3U256_IAR/serial/serial.c | robbie-cao/FreeRTOS | gpl-2.0 | 10,445 | 278 | codeparrot/github-code |
53a1f70edaeb583e0fbd2268b9d614cabd8b1a9932720cff49a289423b4f9fea | <?php
class SessionModel
{
private $tbusr, $tbses;
private $link;
private $id;
private $data;
public function __construct($link)
{
global $tables;
$this->tbusr = $tables['tbusr'];
$this->tbses = $tables['tbses'];
$this->link = $link;
session_start();
$this->id = session_id();
}
// Инициализиров... | PHP | modules/session/model/Model.php | chimpook/cnmon | gpl-2.0 | 3,825 | 161 | codeparrot/github-code |
5b0c205794584c0443c5cd891f712bd2481b066466efee227d72e15d3d3e8011 | <? use \Studip\Button; ?>
<a name="users"></a>
<form action="<?= $controller->url_for('course/members/edit_user/') ?>" method="post">
<?= CSRFProtection::tokenTag() ?>
<table class="default collapsable">
<colgroup>
<? if($is_tutor) :?>
<col width="20">
<? endif ?>
... | PHP | app/views/course/members/user_list.php | kurvenschubser/studip-hks | gpl-2.0 | 6,578 | 134 | codeparrot/github-code |
1a7aa43c01198f28dd3d125bd90cef382fe989761fd5b23c0e47f91fbde49598 | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package org.ssanalytics.snapshotplugin.test.dao.postgreSql.activity;
import org.ssanalytics.snapshotplugin.test.dao.mongo.activity.*;
import org.ssanalytics.snapshotplugin.test.dao.mongo.book.*;
import com.mongodb.Mongo... | Java | src/main/java/org/ssanalytics/snapshotplugin/test/dao/postgreSql/activity/TestGetEvidenceCountTimeSpanActivitySql.java | christianbors/snapshot-plugin | gpl-2.0 | 1,885 | 53 | codeparrot/github-code |
b13b55cf920e1377d0dd3be003ad6f4dda36b6d92163f83696c7df54226424fb | <?php
class Edr_Admin_Actions {
/**
* Edit course entry.
*/
public static function edit_entry() {
$entry_id = isset( $_GET['entry_id'] ) ? absint( $_GET['entry_id'] ) : 0;
$entry = edr_get_entry( $entry_id );
if ( count( $_POST ) ) {
// Verify nonce.
check_admin_referer( 'ib_educator_edit_entry_' . ... | PHP | includes/Edr/Admin/Actions.php | educatorplugin/ibeducator | gpl-2.0 | 15,220 | 523 | codeparrot/github-code |
c2db61d4a8e545fad6b233dce7f787ff7239611c4e2187b56f949f95b433371f | #include <linux/configfs.h>
#include <linux/module.h>
#include <linux/slab.h>
#include <linux/device.h>
#include <linux/nls.h>
#include <linux/usb/composite.h>
#include <linux/usb/gadget_configfs.h>
#include "configfs.h"
#include "u_f.h"
#include "u_os_desc.h"
#ifdef CONFIG_USB_CONFIGFS_UEVENT
#include <linux/platform... | C | drivers/usb/gadget/configfs.c | Elite-Kernels/HTC-10 | gpl-2.0 | 45,372 | 1,814 | codeparrot/github-code |
496ca5d19d0e1ff226da6c6a8a8ceb398829808ee2748955247e4e230242b983 | /*
* 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 Servlet;
import Ejb.EjbUsuario;
import java.io.IOException;
import java.io.PrintWriter;
import javax.ejb.EJB;
import javax.ser... | Java | src/java/Servlet/SLogin.java | zentrix/PI-Academias | gpl-2.0 | 3,345 | 100 | codeparrot/github-code |
fadffb6452bd0fb85e3051d40debb79f87b81f0e1d58b0428a0362154359af93 | package com.firebirdberlin.tinytimetracker;
import android.content.Context;
import android.content.pm.ApplicationInfo;
import android.content.pm.PackageInfo;
import android.content.pm.PackageManager;
import android.graphics.Color;
import android.os.Build;
import android.text.format.DateFormat;
import androidx.core.co... | Java | android/src/com/firebirdberlin/tinytimetracker/Utility.java | firebirdberlin/tinytimetracker | gpl-2.0 | 3,580 | 104 | codeparrot/github-code |
66fc03a5cd4e0f8745b8e79640afa6f828939ab8cc5ec9d5632801ec50e49c0d | #!/usr/bin/python
# Open Global Server Load Balancer (ogslb)
# Copyright (C) 2010 Mitchell Broome
#
# 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... | Python | bin/backend-test.py | mbroome/ogslb | gpl-2.0 | 2,025 | 59 | codeparrot/github-code |
10a327ed8c11e4201f8857982f1f9569dc83fc517761850365edf9e06e2612b0 | <?php
/**
* @package Joomla.Administrator
* @subpackage com_redirect
*
* @copyright Copyright (C) 2005 - 2017 Open Source Matters, Inc. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/
defined('_JEXEC') or die;
use Joomla\Utilities\ArrayHelper;
/**
*... | PHP | administrator/components/com_redirect/controllers/links.php | ylahav/joomla-cms | gpl-2.0 | 3,982 | 180 | codeparrot/github-code |
efbaecdc4aa7a64ece923ff7eabfe9ea7eae26a899594aa9d63a71e960b07530 | /*
* This is the source code of Telegram for Android v. 3.x.x.
* It is licensed under GNU GPL v. 2 or later.
* You should have received a copy of the license in this archive (see LICENSE).
*
* Copyright Nikolai Kudashov, 2013-2017.
*/
package com.porogram.profosure1.ui.Components;
import android.content.Context... | Java | TMessagesProj/src/main/java/com/porogram/profosure1/ui/Components/ExtendedGridLayoutManager.java | profosure/porogram | gpl-2.0 | 7,420 | 226 | codeparrot/github-code |
4fa153cba3bdbcb42ccb1a2c1af1447c46e70fa6a252cc0e88827ecfed871153 | <?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
class Pages extends CI_Controller {
function Index() {
$this->site->header(SITE_TITLE);
$this->load->view('pages/index');
$this->site->footer();
}
function Show($page = null) {
$args = func_get_args();
$code = $args ? implode('/', ... | PHP | application/controllers/pages.php | CREBP/SRA | gpl-2.0 | 1,713 | 59 | codeparrot/github-code |
38a26d886f35c018e60eadd227afa004935222ce36927aec1f1ee78b7d9053e5 | <?php
/*******************************************************************************
Copyright 2007,2010 Whole Foods Co-op
This file is part of IT CORE.
IT CORE 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 ... | PHP | pos/is4c-nf/lib/gui/BasicCorePage.php | CORE-POS/IS4C | gpl-2.0 | 14,355 | 445 | codeparrot/github-code |
04dceb03f34cba8eac8869b5eeb105b9855a0c5acbc994d7f915ef52a6a2f615 | <?php
# Copyright (c) 2013-2016, OVH SAS.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# * Redistributions of source code must retain the above copyright
# notice, this list of conditio... | PHP | src/wrappers/utils/ovh-php/src/Api.php | ETICINSATechnologies/Doletic | gpl-2.0 | 12,072 | 382 | codeparrot/github-code |
5e68e18360a9df2284630733bd25a540df15fc8b394fec7d8bf47d44d58534b5 | from functions.science import rms, mae, average, nan, inf
from collections import OrderedDict
from rawdata.table import table
from numpy import array, log10
import cma
from time import time, strftime
__all__ = ['fmin', 'optimbox', 'box', 'array', 'log10', 'rms', 'mae', 'average', 'nan', 'inf']
def box(x, y, xmin=-inf... | Python | optimize/optlib2.py | raphaelvalentin/Utils | gpl-2.0 | 8,671 | 234 | codeparrot/github-code |
9984cdcc9f2d74441bf70e0ff00efa55959a41be64f62a6f2c5efcace4382cb7 | /*
* XMail by Davide Libenzi (Intranet and Internet mail server)
* Copyright (C) 1999,..,2010 Davide Libenzi
*
* 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... | C++ | MailDomains.cpp | GerHobbelt/xmail | gpl-2.0 | 13,450 | 489 | codeparrot/github-code |
ebf61243945682c5ec76eb68927839fbb820ee631eb08adacdfd7a690b374459 | #ifndef _VECTOBJ_H_
#define _VECTOBJ_H_
#ifdef __USINGWINDOWS__
#include <windows.h>
#endif
#ifdef LINUX
#include <GL/gl.h>
#include <GL/glut.h>
#endif
#ifdef DARWIN
#include <unistd.h>
#include <OpenGL/gl.h>
#include <GLUT/glut.h>
#endif
#include <ngl/Vec3.h>
#include <ngl/BBox.h>
#include "EnvObj.h"
#include "... | C | EBPL/include/VectObj.h | NCCA/NGL6Demos | gpl-2.0 | 1,453 | 58 | codeparrot/github-code |
cb7ef6d79d668c9cc734be957f46c8576341f9375fe0d335c0d376a2694e8c37 | /*
* Copyright © 1999 Keith Packard
*
* Permission to use, copy, modify, distribute, and sell this software and its
* documentation for any purpose is hereby granted without fee, provided that
* the above copyright notice appear in all copies and that both that
* copyright notice and this permission notice appear... | C | user/xorg-xserver/xorg-xserver-1.4.2/hw/kdrive/src/kcolor.c | atmark-techno/atmark-dist | gpl-2.0 | 32,701 | 882 | codeparrot/github-code |
9e9bbec9be0fff0d3ae4247caf1a27da68c57c776f70ac5a265bb94e8ab76e9b | // VirtualDub - Video processing and capture application
// Copyright (C) 1998-2001 Avery Lee
//
// 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
// (... | C | src/VirtualDub/h/AVIOutputWAV.h | TeoTwawki/VirtualDub | gpl-2.0 | 1,629 | 58 | codeparrot/github-code |
1835aecc1874d280085c8afa1989c6ac63a7009c57ddc470e595a91fd43ad6db | --覚星師ライズベルト
function c14812659.initial_effect(c)
--lv up
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(14812659,0))
e1:SetProperty(EFFECT_FLAG_CARD_TARGET)
e1:SetType(EFFECT_TYPE_QUICK_O)
e1:SetCode(EVENT_FREE_CHAIN)
e1:SetRange(LOCATION_MZONE)
e1:SetCountLimit(1)
e1:SetHintTiming(TI... | Lua | c14812659.lua | destdev/ygopro-scripts | gpl-2.0 | 1,315 | 38 | codeparrot/github-code |
f8a04b3acac08646472011f667b94011623a2002a586a0500cf1bdbd85a421b9 | /**
* Definition for singly-linked list.
* struct ListNode {
* int val;
* ListNode *next;
* ListNode(int x) : val(x), next(NULL) {}
* };
*/
class Solution {
public:
ListNode* partition(ListNode* head, int x) {
ListNode left(-1);
ListNode right(-1);
ListNode *left_cur = &le... | C++ | Partition List.cpp | ztongfighton/Leetcode-Answers | gpl-2.0 | 805 | 32 | codeparrot/github-code |
5ab5de11e49c209b74818e9b9da6a4f5ba05ff29463a0a84fbd185f6dfcc41c0 | # -*- coding: utf-8 -*-
#
# Copyright (C) 2011-2016 Red Hat, Inc.
#
# Authors:
# Thomas Woerner <twoerner@redhat.com>
#
# 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 Li... | Python | src/firewall/core/io/service.py | hos7ein/firewalld | gpl-2.0 | 11,872 | 321 | codeparrot/github-code |
81c5d7843517b81a4be59bfc7f59eecc726f161566a4945907f264b6d5597350 | /* $Id: ccw.c 5745 2012-12-28 02:02:30Z piaip $ */
#include "bbs.h"
// Common Chat Window (CCW)
// piaip's new implementation for chatroom and private talk.
// Author: Hung-Te Lin (piaip)
// --------------------------------------------------------------------------
// Copyright (c) 2009 Hung-Te Lin <piaip@csie.ntu.edu... | C | mbbsd/ccw.c | bencrox/hkday-pttbbs | gpl-2.0 | 31,957 | 1,263 | codeparrot/github-code |
ab0e9e62401da90485e49a11e436643a9fd8d4b3dfd44c44236ec63925293aae | /*
* Copyright (C) 2006 Matthias Grawinkel <matthias@grawinkel.com>
*
* 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; e... | Java | src/net/z0id/djbrain/gui/playlist/EditPlaylistWidget.java | meatz/DJBrain | gpl-2.0 | 2,207 | 81 | codeparrot/github-code |
c2d8b24a535fdf0ce8d7634beb7e148044c96888c5cced4601006c524fc70871 | <?php
/**
* CPM Project API controler
*/
class CPM_JSON_Projects {
/**
* Register the project-related routes
*
* @param array $routes
*/
public function register_routes( $routes ) {
$post_routes = array(
'/projects' => array(
array( array( $this, 'get_projects' ), WP_JSON_Server::READABLE ),
... | PHP | wp-content/plugins/wedevs-project-manager-pro/includes/cpm-api/class-cpm-json-projects.php | marcialsoto/osinfordev | gpl-2.0 | 5,914 | 221 | codeparrot/github-code |
bd55f5f15d9a011324aeb6b6d35f69e2496a0aad02430c5cb439834ab0f622d5 | /*****************************************************************************
* Web3d.org Copyright (c) 2001
* Java Source
*
* This source is licensed under the GNU LGPL v2.1
* Please read http://www.gnu.org/copyleft/lgpl.html for more information
*
* This so... | Java | Xj3D/src/java/org/web3d/vrml/renderer/common/nodes/surface/BaseGridLayout.java | Norkart/NK-VirtualGlobe | gpl-2.0 | 15,727 | 461 | codeparrot/github-code |
c8a1cc2613998f46d34699bc6516c9980ca583ccb663e8e386e5a778ad03cdd5 | #!/bin/bash
set -e
set -o pipefail
. conf/common_vars.sh || exit 1;
. ./lang.conf || exit 1;
type=dev10h
dev2shadow=dev10h.uem
eval2shadow=eval.uem
data_only=false
fast_path=true
skip_kws=false
skip_stt=false
max_states=150000
wip=0.5
. utils/parse_options.sh
if [ $# -ne 0 ]; then
echo "Usage: $(basename $0) --t... | Shell | kaldi/egs/babel/s5/run-4-test.sh | michellemorales/OpenMM | gpl-2.0 | 12,937 | 345 | codeparrot/github-code |
777100e9542fb2380169ca7fd27e10ba0d98f7a6ce1384b579b497dfbe187de6 | """
This module contains steps for handling Image uploads. Docker v2 objects (Manifests and Blobs) are
not handled at this time.
If you feel the need to blame this file, don't use git blame. The code was taken from this commit,
which was later negative committed:
https://github.com/pulp/pulp_docker/commit/cc624a1c9ca... | Python | plugins/pulp_docker/plugins/importers/upload.py | rbarlow/pulp_docker | gpl-2.0 | 6,722 | 172 | codeparrot/github-code |
785a78d873acf4e71e9b4569b7da1bb0f8ae800de0c827b8e9eab5c4e28e05be | # encoding: utf-8
# ------------------------------------------------------------------------------
# Copyright (c) 2006 Novell, Inc. All Rights Reserved.
#
#
# This program is free software; you can redistribute it and/or modify it under
# the terms of version 2 of the GNU General Public License as published by the
# ... | Ruby | src/clients/audit-laf_auto.rb | yast/yast-audit-laf | gpl-2.0 | 4,040 | 125 | codeparrot/github-code |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.