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 |
|---|---|---|---|---|---|---|---|---|
c7d3884e8f3158c7e24e6282805648a882d9e559523bd49b2711e3390f97eb18 | ////////////////////////////////////////////////////////////////////////////
// Module : script_value_container_impl.h
// Created : 16.07.2004
// Modified : 16.07.2004
// Author : Dmitriy Iassenev
// Description : Script value container
////////////////////////////////////////////////////////////////////////////
... | C | code/engine/xrServerEntities/script_value_container_impl.h | Im-dex/xray-162 | apache-2.0 | 1,268 | 46 | codeparrot/github-code |
6186ba11c758c2082d0fcfb4ef3369e8d24d0040c818884ecdf93bba1f487b8e | /*
* Copyright 2014, The Sporting Exchange Limited
* Copyright 2014, Simon Matić Langford
*
* 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/LICENS... | Java | disco-framework/jetty-transport/src/test/java/uk/co/exemel/disco/transport/jetty/CrossOriginHandlerTest.java | eswdd/disco | apache-2.0 | 3,705 | 95 | codeparrot/github-code |
232d4ad95cf9a9bc07090673aed5094642a864c4d7966d449d19969f8deeb5f1 | // Copyright 2012-2014 The Rust Project Developers. See the COPYRIGHT
// file at the top-level directory of this distribution and at
// http://rust-lang.org/COPYRIGHT.
//
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
// <LICENSE-MI... | Rust | src/librustc_typeck/astconv.rs | ruud-v-a/rust | apache-2.0 | 91,859 | 2,204 | codeparrot/github-code |
77e580eaaad2bd521357c714bcd31f705a97b98730b3b88a5a2926a31270063c | package de.uniulm.omi.cloudiator.sword.multicloud.service;
import com.google.common.base.Supplier;
import com.google.common.collect.ImmutableSet;
import com.google.inject.Inject;
import de.uniulm.omi.cloudiator.sword.domain.Cloud;
import de.uniulm.omi.cloudiator.sword.domain.Pricing;
import de.uniulm.omi.cloudiator.sw... | Java | multicloud/src/main/java/de/uniulm/omi/cloudiator/sword/multicloud/service/MultiCloudPricingService.java | cloudiator/sword | apache-2.0 | 1,844 | 45 | codeparrot/github-code |
1f141018f17d567f15679cfad15fa2aee6e7127ecefd420423ba5daab9234685 | package com.icfcc.cache.support;
import com.icfcc.cache.Cache;
import java.util.Collection;
/**
* Simple cache manager working against a given collection of caches.
* Useful for testing or simple caching declarations.
*
* @author Costin Leau
* @since 3.1
*/
public class SimpleCacheManager extends AbstractCach... | Java | spring-cache/src/main/java/com/icfcc/cache/support/SimpleCacheManager.java | Gitpiece/spring-cache-project | apache-2.0 | 684 | 31 | codeparrot/github-code |
6cbe359f7fc6dcbb2870e4e85682f01a55e6ae24d522c4bd5378b3327bfc6038 | # -*- coding: utf-8 -*-
#
# Copyright (C) 2013-2016 DNAnexus, Inc.
#
# This file is part of dx-toolkit (DNAnexus platform client libraries).
#
# 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... | Python | src/python/dxpy/utils/describe.py | dnanexus/dx-toolkit | apache-2.0 | 52,412 | 1,178 | codeparrot/github-code |
7a7539328e595efd53d00450281a6003f2084f71c7bc6acfa15209c4c610b44d | package fr.fablabmars.model;
import java.util.ArrayList;
import fr.fablabmars.observer.Observable;
import fr.fablabmars.observer.Observer;
/**
* Observable contenant le menu courant.
*
* @author Guillaume Perouffe
* @see Observable
*/
public class CardMenu implements Observable {
/**
* List... | Java | src/fr/fablabmars/model/CardMenu.java | gperouffe/FabLabUsers | apache-2.0 | 1,473 | 86 | codeparrot/github-code |
eadbe344096d05e6dc3759963464765ad29248d240284afbd0413b4db80809a0 | package ru.job4j.collections.tree;
/**
* Бинарное дерево .
*
* @author Hincu Andrei (andreih1981@gmail.com) by 20.10.17;
* @version $Id$
* @since 0.1
* @param <E> тип данных.
*/
public class BinaryTree<E extends Comparable<E>> extends Tree<E> {
/**
* Корень дерева.
*/
private Node<E> node;
... | Java | chapter_005/src/main/java/ru/job4j/collections/tree/BinaryTree.java | andreiHi/hincuA | apache-2.0 | 1,875 | 92 | codeparrot/github-code |
f617178c06abad9e8e62a3ab12f6f14f8ab94779dccc740f9f0ec969b468f150 | // Copyright 2015-2016 Espressif Systems (Shanghai) PTE LTD
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by app... | C | examples/bluetooth/gatt_server_service_table/main/gatts_table_creat_demo.c | wmpluto/esp-idf | apache-2.0 | 12,057 | 341 | codeparrot/github-code |
67e18ccfccd2ada8e1053fb9dc69568b120d0c9c075edcd3da3ffb8387555efc | /**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you... | Java | pinot-core/src/main/java/org/apache/pinot/core/startree/v2/store/StarTreeIndexContainer.java | linkedin/pinot | apache-2.0 | 3,059 | 73 | codeparrot/github-code |
807fb8cdb8625e6dc148f4de37494dfc07adeadf63ac1ac967f80efb8c5cdc76 | /*
Copyright 2010-2011 Zhengmao HU (James)
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in... | Java | src/main/java/net/sf/jabb/util/text/StringStartWithMatcher.java | james-hu/jabb-core | apache-2.0 | 7,017 | 188 | codeparrot/github-code |
efa935fe5f515194dd0e253858bed988b23796a9c372f461c5ea4aadddbe53bd | #[doc = r" Value read from the register"]
pub struct R {
bits: u32,
}
#[doc = r" Value to write to the register"]
pub struct W {
bits: u32,
}
impl super::CMAR3 {
#[doc = r" Modifies the contents of the register"]
#[inline(always)]
pub fn modify<F>(&self, f: F)
where
for<'w> F: FnOnce(&R,... | Rust | stm32f0x2/src/dma1/cmar3/mod.rs | pollen/stm32f0 | apache-2.0 | 2,556 | 106 | codeparrot/github-code |
1077add9e9e9b93b15186c28995c52ad00315472e52124cf58ce51bec0d76d62 | <?php
namespace Topxia\WebBundle\Listener;
use Symfony\Component\HttpKernel\KernelEvents;
use Symfony\Component\HttpKernel\Event\GetResponseEvent;
use Symfony\Component\EventDispatcher\EventSubscriberInterface;
class LocaleListener implements EventSubscriberInterface
{
private $defaultLocale;
public function... | PHP | src/Topxia/WebBundle/Listener/LocaleListener.php | 18826252059/im | apache-2.0 | 1,101 | 38 | codeparrot/github-code |
f72825d50b8cc436095528bc59e2b81ccb43882c42dbaf2a6ffcb6bc960451cb | package net.sf.anpr.rcp.widget;
import java.awt.Color;
import java.awt.Graphics;
import java.awt.Rectangle;
import java.awt.image.BufferedImage;
import javax.swing.ImageIcon;
import javax.swing.JLabel;
import javax.swing.SwingConstants;
public class JCanvasPanel extends JLabel {
private static final lon... | Java | src/main/java/net/sf/anpr/rcp/widget/JCanvasPanel.java | alexmao86/swing-rcp | apache-2.0 | 1,173 | 45 | codeparrot/github-code |
39a1292c1fea9f25197498bcee8f458a8533ac20d303a6fd7dff58637f7dc12d | # vim: tabstop=4 shiftwidth=4 softtabstop=4
# Copyright (c) 2012 OpenStack Foundation.
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.... | Python | kwstandby/openstack/common/policy.py | frossigneux/kwstandby | apache-2.0 | 25,233 | 847 | codeparrot/github-code |
50f4c706bd704731fc6c82d221ce580ea39d78ab08b5a6fd09a964dd2190eeba | /*
* DBeaver - Universal Database Manager
* Copyright (C) 2010-2022 DBeaver Corp and others
*
* 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/LICE... | Java | plugins/org.jkiss.dbeaver.ui.app.standalone/src/org/jkiss/dbeaver/ui/app/standalone/about/AboutBoxAction.java | dbeaver/dbeaver | apache-2.0 | 1,230 | 41 | codeparrot/github-code |
dd494c3496536c3094481ae21d53463f8abe7c7f913841fecaa5a99c3aa13747 | /*
* Copyright (c) 2021, Peter Abeles. All Rights Reserved.
*
* This file is part of BoofCV (http://boofcv.org).
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apac... | Java | main/boofcv-feature/src/benchmark/java/boofcv/alg/descriptor/BenchmarkDescriptorDistance.java | lessthanoptimal/BoofCV | apache-2.0 | 3,105 | 108 | codeparrot/github-code |
afe32ab2af0d67fc1d6ec02ef18a36d504b110449ac41ce25731e9caa04a642f |
package adamin90.com.wpp.model.mostsearch;
import java.util.ArrayList;
import java.util.List;
import javax.annotation.Generated;
import com.google.gson.annotations.Expose;
import com.google.gson.annotations.SerializedName;
@Generated("org.jsonschema2pojo")
public class MostSearchData {
@SerializedName("data")
... | Java | wpp/app/src/main/java/adamin90/com/wpp/model/mostsearch/MostSearchData.java | adamin1990/MaterialWpp | apache-2.0 | 971 | 57 | codeparrot/github-code |
b3b7bb96f2a92bbbcc680bcd21a6ce2020c54e3708c9fbb260494cbe677d45f0 |
var activeElements = [];
var sleepElements = [];
var promises = [];
$.ajax("https://osiproghackuc2015.osisoft.com/piwebapi/assetdatabases/D0EgxEhIf8KUieOFdFcX1IWQZ8qIGYDdE0m5aJCwNb4x_gSlVQSVRFUjAwMVxQSUZJVE5FU1M/elements", {
type : 'GET',
headers: { "Authorization" : "Basic " + btoa("osiproghack\\hackuser051:bO2... | JavaScript | customJS/piWebAPI.js | dstcontrols/UnhandledException | apache-2.0 | 2,755 | 99 | codeparrot/github-code |
891be8a1a9ada0a947a97ab2932ce913fd2ff2766269701b65228308666edaf6 | import { Seq, Set as ISet } from 'immutable';
import { atom, unwrap } from '../derivable';
import { equals } from './equals';
describe('util/equals', () => {
it('should check equality of primitives', () => {
expect(equals(NaN, NaN)).toBe(true);
expect(equals(4, 2 + 2)).toBe(true);
expect(eq... | TypeScript | src/utils/equals.test.ts | politie/sherlock | apache-2.0 | 2,307 | 66 | codeparrot/github-code |
82125eb962525560a8fd922484a5daaad7264b8cb2fb4caec274647a33104843 | <!DOCTYPE html>
<html>
<head>
<title id="titre"></title>
<meta charset="UTF-8"/>
<script src="https://code.jquery.com/jquery-latest.min.js"></script>
<script src="../../dist/jsRealB.js"></script>
<!-- to ease debugging we load each file separately -/->
<script src="../../data... | HTML | demos/KilometresAPied/index.html | rali-udem/JSrealB | apache-2.0 | 2,779 | 78 | codeparrot/github-code |
9b780bd29b94b3913c231f691334f516723aff36a7582481380314aca676a25a | // Generated from /POI/java/org/apache/poi/hpsf/VariantBool.java
#pragma once
#include <fwd-POI.hpp>
#include <org/apache/poi/hpsf/fwd-POI.hpp>
#include <org/apache/poi/util/fwd-POI.hpp>
#include <java/lang/Object.hpp>
struct default_init_tag;
class poi::hpsf::VariantBool
: public virtual ::java::lang::Object
{... | C++ | src/org/apache/poi/hpsf/VariantBool.hpp | pebble2015/cpoi | apache-2.0 | 992 | 49 | codeparrot/github-code |
cee783d8a95c72285bbfbcfcbff9d96e0b07d3f62d5a155a129357b4b7d58325 | package com.hangon.saying.viewPager;
import android.content.Context;
import android.graphics.Bitmap;
import android.graphics.drawable.BitmapDrawable;
import android.graphics.drawable.Drawable;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import ... | Java | app/src/main/java/com/hangon/saying/viewPager/GradAdapter.java | TangZuopeng/OurApplication | apache-2.0 | 4,256 | 144 | codeparrot/github-code |
22c0ef978c6555a51281129dda9e0d9328e85411f2b6b336d8e1a0872fe9ff59 | /*
* MaiKe Labs (2016 - 2026)
*
* Written by Jack Tan <jiankemeng@gmail.com>
*
* Connect VCC of the SSD1306 OLED to 3.3V
* Connect GND to Ground
* Connect SCL to i2c clock - GPIO21
* Connect SDA to i2c data - GPIO22
* Connect DC to GND (The scanned i2c address is 0x3C)
*
*/
#include <stdio.h>
#include ... | C++ | examples/10_ssd1306_hello/main/main.cpp | icamgo/esp-idf | apache-2.0 | 1,359 | 59 | codeparrot/github-code |
0f692aee62e3bc25acb7cfeb885379e6bdb19c4d89152f1975114d2e8377dfb1 | # encoding: UTF-8
# Copyright 2012 Twitter, Inc
# http://www.apache.org/licenses/LICENSE-2.0
# Documentation: https://github.com/hunspell/hyphen/blob/21127cc8493a68d4fe9adbb71377b469b4f2b550/doc/tb87nemeth.pdf
module TwitterCldr
module Shared
class Hyphenator
class UnsupportedLocaleError < StandardError;... | Ruby | lib/twitter_cldr/shared/hyphenator.rb | twitter/twitter-cldr-rb | apache-2.0 | 4,870 | 189 | codeparrot/github-code |
c0be9aa3d7b781256b0ad89ad706146bb5b4f0d490fc2774caaa6b45b87a6362 | /**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/mediaconvert/model/DashIsoGroupSettings.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
namespace A... | C++ | aws-cpp-sdk-mediaconvert/source/model/DashIsoGroupSettings.cpp | aws/aws-sdk-cpp | apache-2.0 | 10,730 | 339 | codeparrot/github-code |
dc5fa80404d47abd6802dfa3522d529e755264677721e29cafb2ff1c5f92b953 | <?php
namespace DCarbone\PHPFHIRGenerated\R4\FHIRElement\FHIRBackboneElement\FHIREncounter;
/*!
* This class was generated with the PHPFHIR library (https://github.com/dcarbone/php-fhir) using
* class definitions from HL7 FHIR (https://www.hl7.org/fhir/)
*
* Class creation date: December 26th, 2019 15:44+0000
*... | PHP | src/DCarbone/PHPFHIRGenerated/R4/FHIRElement/FHIRBackboneElement/FHIREncounter/FHIREncounterDiagnosis.php | dcarbone/php-fhir-generated | apache-2.0 | 21,742 | 547 | codeparrot/github-code |
884d61ae08364beb72ef093387371e3cc31ab5278cb9796621bb9f95eb97bd60 | /*
Copyright 2015 The Kubernetes Authors All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or ag... | GO | pkg/controller/replication/replication_controller_utils.go | WIZARD-CXY/kubernetes | apache-2.0 | 3,070 | 73 | codeparrot/github-code |
0888d16c8a1587cc927fe6b31240bd33a3bc479dbde93a08543f19d3cd9f6a5e | package com.sadc.game.gameobject.trackobject;
import com.badlogic.gdx.graphics.Texture;
import com.badlogic.gdx.graphics.g2d.SpriteBatch;
import com.sadc.game.GameConstants;
import com.sadc.game.gameobject.GameUtils;
import com.sadc.game.gameobject.Player;
/**
* @author f536985 (Tom Farello)
*/
public class Wall ex... | Java | core/src/main/java/com/sadc/game/gameobject/trackobject/Wall.java | jlturner85/libgdx-gradle-template | apache-2.0 | 1,196 | 38 | codeparrot/github-code |
a8f25dab2e4507630fa83d07c248e2564d3bf7503be4063aa987bc3401e61c91 | class JobApplicationsController < ApplicationController
after_action :verify_authorized
after_action :verify_policy_scoped, only: [:index]
before_action :require_login
before_action :set_job_application, only: [:show, :edit, :update, :destroy, :followup]
# GET /posting/1/job_application
# GET /posting/1/jo... | Ruby | app/controllers/job_applications_controller.rb | sarahmonster/suitor | apache-2.0 | 3,255 | 110 | codeparrot/github-code |
ed3b70e3f0a17482d843c4fddce9571c35a2632d55607c98f7055d16951e6ac1 | package dx.exec
import dx.api.{DxApi, DxFile}
import dx.core.io.ExecLinkInfo
import dx.core.languages.wdl.{TypeSerialization, WdlVarLinksConverter}
import spray.json._
import wdlTools.eval.WdlValues
import wdlTools.types.WdlTypes
case class WfFragInput(blockPath: Vector[Int],
env: Map[String, (... | Scala | src/main/scala/dx/exec/WfFragInputOutput.scala | dnanexus-rnd/dxWDL | apache-2.0 | 4,231 | 108 | codeparrot/github-code |
e92be313953313b8118ead1a504a4348692a84035cc3c1078235ed55307411fd | /*
*
* * Copyright 2010-2016 OrientDB LTD (http://orientdb.com)
* *
* * Licensed under the Apache License, Version 2.0 (the "License");
* * you may not use this file except in compliance with the License.
* * You may obtain a copy of the License at
* *
* * http://www.apache.org/licenses/LICENSE... | Java | core/src/main/java/com/orientechnologies/orient/core/sql/functions/coll/OSQLFunctionSymmetricDifference.java | orientechnologies/orientdb | apache-2.0 | 4,574 | 148 | codeparrot/github-code |
898a2f727201a27dc9bda4777f3fa337d4946424e79a520eca2776e417a075d6 | /*
* Copyright 2012-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
* the License. A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "licen... | Java | aws-java-sdk-ses/src/main/java/com/amazonaws/services/simpleemail/model/SetReceiptRulePositionResult.java | dagnir/aws-sdk-java | apache-2.0 | 2,365 | 75 | codeparrot/github-code |
fcc253dc8c0f8a7cdf5d696012df580c98103770a91bf5d588e5cfda61a00879 | import java.io.IOException;
import java.io.OutputStream;
import java.net.InetSocketAddress;
import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Iterator;
import java.util.List;
import java.util.Properties;
import java.util.stream.Stream;
import javax.xml.bind.JAXBContext;... | Java | framework/webservice/src/test/java/TestPushNotifications.java | daisy/pipeline-issues | apache-2.0 | 6,214 | 179 | codeparrot/github-code |
5d38c85b7f6989d32580b69dd8fb8d6d8fdfbf3d8b3f622e5359d11e0a68a112 | // <copyright file="KeyEvent.cs" company="WebDriver Committers">
// Copyright 2015 Software Freedom Conservancy
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apach... | C# | dotnet/src/webdriverbackedselenium/Internal/SeleniumEmulation/KeyEvent.cs | soundcloud/selenium | apache-2.0 | 2,686 | 70 | codeparrot/github-code |
7667016515b4540a462baa845c6e3f66b87c547cf50943cc22cb6922cecd8cf9 | /*
* Copyright 2012-2016 JetBrains s.r.o
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agr... | Java | util/base/src/test/java/jetbrains/jetpad/base/edt/BufferingEdtManager.java | timzam/jetpad-mapper | apache-2.0 | 1,075 | 37 | codeparrot/github-code |
5cc1eec8a5b165eb6ec240243acbc964434ca6d8dd6e48a3576a109b47c60532 | /*
* Copyright 2016
* Ubiquitous Knowledge Processing (UKP) Lab
* Technische Universität Darmstadt
*
* 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/lice... | Java | code/experiments/src/main/java/de/tudarmstadt/ukp/experiments/argumentation/sequence/io/filters/DocumentRegisterFilter.java | habernal/emnlp2015 | apache-2.0 | 1,947 | 67 | codeparrot/github-code |
a2d75bd33fc88246e53a0dd698bb589100ba7845531cb71d457da8b4dbc6a2a8 | /*
* File: IAS-LangMod-SysMon/src/lang/mod/monitor/sys/mem/ModuleProxy.h
*
* Copyright (C) 2015, Albert Krzymowski
*
* 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.a... | C | IAS-LangMod-SysMon/src/lang/mod/monitor/sys/mem/ModuleProxy.h | InvenireAude/IAS-Base-OSS | apache-2.0 | 1,689 | 61 | codeparrot/github-code |
a4824f71b7800430fd54a83fff4d6902b0970f49e4953da27036be5841a8fc9b | module.exports = {
readFiles: readFiles
};
var filewalker = require('filewalker');
var _ = require('kling/kling.js');
var fs = require('fs');
function readFiles(directory, fileSuffix) {
return new Promise(function(resolve, reject) {
var files = [];
filewalker(directory)
.on('file',... | JavaScript | src/reader/reader.js | petercrona/latmask | apache-2.0 | 880 | 34 | codeparrot/github-code |
7e87ea4fa1c1b2a3be2633981bf0ba2d9bf63b28bd844b39a340599ab6052b38 | /*
* Copyright 2002-2013 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by ap... | Java | src/main/java/org/utn/dacs2017/compraventa/vendedor/VendedorController.java | gregodadone/spring-compraventa | apache-2.0 | 1,812 | 54 | codeparrot/github-code |
605e273d5909f471d3938700f712ec572d85850e50e0dbb18821c797a0a00563 | package com.afollestad.breadcrumb;
import android.annotation.TargetApi;
import android.app.Activity;
import android.content.Context;
import android.graphics.RectF;
import android.graphics.drawable.Drawable;
import android.os.Build;
import android.support.annotation.NonNull;
import android.support.v4.view.ViewCompat;
i... | Java | breadcrumb/src/main/java/com/afollestad/breadcrumb/LinearBreadcrumb.java | jbm714060/Github | apache-2.0 | 9,519 | 310 | codeparrot/github-code |
e5e1e0405ce3afea97a09e513946470e049d823d1bed1e6abf043bb3efa41a53 | /**
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed ... | JavaScript | lib/implore.es6.js | mdhgriffiths/fluxthis | apache-2.0 | 4,808 | 211 | codeparrot/github-code |
8500f3f54d9af4de24120cc35015a3f8bb356e4b903ef5329bd0d7144a49da86 | /*
* Copyright 2015 The Apache Software Foundation.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | Java | java/core/src/test/org/apache/orc/impl/TestOrcLargeStripe.java | omalley/orc | apache-2.0 | 8,450 | 223 | codeparrot/github-code |
43775abccf12236af2029199e03639a3e225210255001803c64424d978f04972 | /* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distribut... | Java | modules/flowable-engine/src/main/java/org/flowable/engine/impl/cmd/GetRenderedTaskFormCmd.java | stephraleigh/flowable-engine | apache-2.0 | 2,774 | 74 | codeparrot/github-code |
a3aac5a889778f5189bd6d49fa347e503b39a44d02f5ff6b3590fd753dfdc7a1 | package com.stdnull.v2api.model;
import android.os.Bundle;
import android.os.Parcelable;
import java.util.ArrayList;
import java.util.List;
/**
* Created by chen on 2017/8/20.
*/
public class V2MainFragModel {
private static final String KEY_V2EXBEAN = "KEY_V2EXBEAN";
private List<V2ExBean> mContentListMo... | Java | v2api/src/main/java/com/stdnull/v2api/model/V2MainFragModel.java | stdnull/RunMap | apache-2.0 | 1,194 | 45 | codeparrot/github-code |
2ab11bc910d0733d9d70133b2ce349c69010732370fcb0c7d38e3fb89e29afce | /*
* Copyright 2016 Amadeus s.a.s.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to i... | JavaScript | test/checks/compareWithPreviousOutputs.check.js | ariatemplates/at-diff | apache-2.0 | 1,985 | 51 | codeparrot/github-code |
2e66ad2becd4e6dcac0763ed6579a73f701e635d916c3f42fb3ed31533c67ebc | #ifndef CELLO_SIMULATION_H
#define CELLO_SIMULATION_H
#include <algorithm>
#include <stdexcept>
#include <map>
#include <memory>
#include <queue>
#include <string>
#include <vector>
#include <gameplay.h>
#include <core/Delegate.h>
#include <core/SimulationTypes.h>
#include <json/json.h>
#include <ui/Atlas.h>
#include ... | C | cello/core/Simulation.h | EvansThomas/Cello | apache-2.0 | 5,323 | 199 | codeparrot/github-code |
4cfdf8271f1fb434362f8fdbc7cbdc2d4f040b235c4bf0a3bc178c8e83f20a96 | /**
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may... | Java | camel-core/src/test/java/org/apache/camel/management/ManagedCamelContextTest.java | logzio/camel | apache-2.0 | 12,715 | 287 | codeparrot/github-code |
64fdb3f483c243cbf8773f8b1a0a24c69ae9b83e6bea14046b034c74ffb12b46 | /*
* Licensed to Elasticsearch under one or more contributor
* license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright
* ownership. Elasticsearch licenses this file to you under
* the Apache License, Version 2.0 (the "License"); you may
* not use this fi... | Java | server/src/main/java/org/elasticsearch/search/aggregations/metrics/stats/StatsAggregationBuilder.java | jprante/elasticsearch-server | apache-2.0 | 4,154 | 107 | codeparrot/github-code |
05262e6043e96723d683a90b41372155239781c254c6c0ff3461dd890f6ec037 | package cn.aezo.demo.rabbitmq.c05_model_topic;
import cn.aezo.demo.rabbitmq.util.RabbitmqU;
import com.rabbitmq.client.AMQP;
import com.rabbitmq.client.Channel;
import com.rabbitmq.client.Connection;
import com.rabbitmq.client.DefaultConsumer;
import com.rabbitmq.client.Envelope;
import java.io.IOException;
/**
* 测... | Java | rabbitmq/src/main/java/cn/aezo/demo/rabbitmq/c05_model_topic/Consumer.java | oldinaction/smjava | apache-2.0 | 2,522 | 70 | codeparrot/github-code |
966513dcf514a9641e22310b18554b47835c7f5fcf89575a50e59957606f381c | class GetSharedLinkAccessRightsResult
attr_accessor :access_rights
# :internal => :external
def self.attribute_map
{
:access_rights => :accessRights
}
end
def initialize(attributes = {})
# Morph attribute keys into undescored rubyish style
if attributes.to_s != ""
if GetSharedLinkA... | Ruby | groupdocs/models/getsharedlinkaccessrightsresult.rb | liosha2007/groupdocs-ruby | apache-2.0 | 743 | 33 | codeparrot/github-code |
30f1b16e80be82d50781a75a09e93b4e9228005f1fd3c175faf7a27813b0554f | /*
* Copyright 2016 The Simple File Server Authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicabl... | Java | sfs-server/src/test/java/org/sfs/integration/java/BaseTestVerticle.java | pitchpoint-solutions/sfs | apache-2.0 | 2,779 | 93 | codeparrot/github-code |
67042b5336ba19db4d444e1b5e7251b71048b4e63c24463a540afae02ad63749 | #pragma once
#include "indexer/feature_decl.hpp"
#include "geometry/point2d.hpp"
#include "std/initializer_list.hpp"
#include "std/limits.hpp"
#include "std/string.hpp"
#include "std/vector.hpp"
#include "3party/osrm/osrm-backend/typedefs.h"
namespace routing
{
using TNodeId = uint32_t;
using TEdgeWeight = double;... | C++ | routing/turns.hpp | Zverik/omim | apache-2.0 | 7,503 | 256 | codeparrot/github-code |
ba9c17fb1c49c8d3ed2c1b3ed8ce9508e978035164485b72f3c30f0241e0a00d | /*
* Copyright 2008-2015 Arsen Chaloyan
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or ag... | C | libs/uni-rtsp/src/rtsp_server.c | unispeech/unimrcp | apache-2.0 | 32,441 | 986 | codeparrot/github-code |
303fe397b3b608842ba7d52c8ceeb381b8edb2251e69edd0b8d4ad503d7eeaaf | define(function (require) {
var SymbolDraw = require('../helper/SymbolDraw');
var LargeSymbolDraw = require('../helper/LargeSymbolDraw');
require('../../echarts').extendChartView({
type: 'scatter',
init: function () {
this._normalSymbolDraw = new SymbolDraw();
... | JavaScript | src/main/webapp/resources/vendors/echarts/src/chart/scatter/ScatterView.js | aholake/hiringviet | apache-2.0 | 1,369 | 42 | codeparrot/github-code |
46fbe178c66b520b8997916e58e4281da0b02f11d6897add5ac60e318956bf85 | /**
* @author fanguozhu
*/
$(function()
{
var tab = new TabPanel("tab",true);
var f_tree = new Fieldset("f_tree","公司列表",{
state: Fieldset.OPEN_STATE,
topdown: false
});
var mytree = new PorTreeT("tree", "-1", "手机公司",{isDefaultClick:0} );
var dw = new DataWrapper();
dw.service("PRtree");
... | JavaScript | source/web/por2/demo/Demo/TreeTabDemo.js | stserp/erp1 | apache-2.0 | 1,564 | 77 | codeparrot/github-code |
9262f6937f825a34f4bce4e5a998ea9ec978f3196eb45acd1bb5540612a9bac9 | /*
* Copyright 2012-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
* the License. A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "licen... | Java | aws-java-sdk-kinesis/src/main/java/com/amazonaws/services/kinesisfirehose/model/transform/ProcessingConfigurationJsonUnmarshaller.java | dagnir/aws-sdk-java | apache-2.0 | 3,132 | 79 | codeparrot/github-code |
0625297a178402ede3becf6f2c41cfc1e1685a31d46419a442aa3ecaf7636e6a | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html><head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<title>Enable Or Disable Extension Loading</title>
<style type="text/css">
body {
margin: auto;
font-family: Verdana, sans-serif;
paddin... | HTML | doc/sqlite-doc-3120000/c3ref/enable_load_extension.html | andrasigneczi/TravelOptimizer | apache-2.0 | 5,035 | 152 | codeparrot/github-code |
085a867ab7d6a253e2c935245f1d4ae068d5a2e147f360b8344a125670d745c4 | /*
Copyright 2013 Semantic Discovery, Inc. (www.semanticdiscovery.com)
This file is part of the Semantic Discovery Toolkit.
The Semantic Discovery Toolkit 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 So... | Java | src/main/java/org/sd/token/TokenizerNormalizedString.java | KoehlerSB747/sd-tools | apache-2.0 | 22,049 | 707 | codeparrot/github-code |
eb9bbb039d9b9274efd713f36b15a8b3085669e3bbd231fce40ec8bced8d8494 | package lodVader.spring.REST.models.degree;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Comparator;
import java.util.HashMap;
import java.util.HashSet;
import org.junit.Test;
import com.mongodb.BasicDBList;
import com.mongodb.BasicDBObject;
import com.mongodb.DBCollection;
import com.m... | Java | src/main/java/lodVader/spring/REST/models/degree/IndegreeDatasetModel.java | AKSW/LODVader | apache-2.0 | 5,358 | 191 | codeparrot/github-code |
fefa68871729962801edd06b1b0136a6b28234a173c409625826b52a28e493aa | package no.api.regurgitator;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.dropwizard.Configuration;
import javax.validation.Valid;
import javax.validation.constraints.NotNull;
@JsonIgnoreProperties(ignoreUnknown = true)
public class Reg... | Java | regurgitator-service/src/main/java/no/api/regurgitator/RegurgitatorConfiguration.java | amedia/regurgitator | apache-2.0 | 958 | 48 | codeparrot/github-code |
024428f702738bccd2b5be321b843a264baddbf1990e23d63f66c5e6a523b560 | package org.minimalj.example.petclinic.frontend;
import org.minimalj.backend.Backend;
import org.minimalj.example.petclinic.model.Vet;
import org.minimalj.frontend.Frontend;
import org.minimalj.frontend.editor.Editor.NewObjectEditor;
import org.minimalj.frontend.form.Form;
public class AddVetEditor extends NewObjectE... | Java | example/007_PetClinic/src/org/minimalj/example/petclinic/frontend/AddVetEditor.java | BrunoEberhard/minimal-j | apache-2.0 | 710 | 31 | codeparrot/github-code |
5837c28a0225c5c774c249ad786a2e0a3de605208b8b45131b1e79ceec256710 | /*
* Copyright 2019 Frederic Thevenet
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | Java | binjr-core/src/main/java/eu/binjr/common/javafx/controls/SnapshotUtils.java | fthevenet/binjr | apache-2.0 | 1,413 | 39 | codeparrot/github-code |
bcebaed74d71480f2ae9027fa4594f51d542f50bf576aaf7693476bdb6170965 | /**
* Copyright (C) 2012 Ness Computing, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or ... | Java | jersey/src/main/java/com/nesscomputing/jersey/types/DateParam.java | NessComputing/components-ness-jersey | apache-2.0 | 2,189 | 73 | codeparrot/github-code |
83626bfab4c8ae45c23bbfd4a234d8659ff283fcc79863180a2120a6f3fe49c7 | package hu.akarnokd.rxjava;
import java.util.concurrent.TimeUnit;
import rx.*;
import rx.plugins.RxJavaHooks;
import rx.schedulers.Schedulers;
public class TrackSubscriber1 {
@SuppressWarnings("unchecked")
public static void main(String[] args) throws Exception {
RxJavaHooks.setOnObservableStart((observ... | Java | src/main/java/hu/akarnokd/rxjava/TrackSubscriber1.java | akarnokd/akarnokd-misc | apache-2.0 | 1,774 | 58 | codeparrot/github-code |
a909f7c7c83a0155e9e1148b6a7b3b66f1336331d4ea266c73d53fd7b42cdef9 | // Copyright (c) Microsoft Corporation
//
// All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance
// with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
//
// THIS CODE IS PROVIDED O... | C# | main/external/dev/Server/MS.Storage.Table.Azure/DataAccessLayer/UserManagementTableOperations.cs | cityscapesc/specobs | apache-2.0 | 14,423 | 310 | codeparrot/github-code |
ced973d03f5b3e06e253e001ed7a1e349bd24c054297febcb65c1f0bfd833807 | /*
Copyright (c) 2013 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Leonardo de Moura
*/
#pragma once
#include <memory>
#include "kernel/expr.h"
namespace lean {
/**
\brief Functional object for creating expressions with maximally
shared ... | C | src/library/max_sharing.h | levnach/lean-leo | apache-2.0 | 788 | 39 | codeparrot/github-code |
f3c8da4832bbba8836554abbb74cc6a40747def8a87c6556b338915d3b0b99a4 | /*
* Copyright 2002-2018 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... | Java | spring-web/src/main/java/org/springframework/web/bind/support/ConfigurableWebBindingInitializer.java | spring-projects/spring-framework | apache-2.0 | 7,350 | 221 | codeparrot/github-code |
c89aa8c3f3e4d30ba51c0f206a5a17da05c200a3169a4c12bb9ac3aedb218a55 | /*
* Copyright 2000-2013 JetBrains s.r.o.
* Copyright 2014-2015 AS3Boyan
* Copyright 2014-2014 Elias Ku
*
* 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/lice... | Java | gen/com/intellij/plugins/haxe/lang/psi/impl/HaxeMultiplicativeExpressionImpl.java | yanhick/intellij-haxe-nightly-builds | apache-2.0 | 2,047 | 67 | codeparrot/github-code |
857a9c1430a9d8d67528193e4db93944b0e13dd70593244c5b909d99e45a1dac | # coding=utf-8
# Copyright 2014 Pants project contributors (see CONTRIBUTORS.md).
# Licensed under the Apache License, Version 2.0 (see LICENSE).
from __future__ import (absolute_import, division, generators, nested_scopes, print_function,
unicode_literals, with_statement)
import os
import re
... | Python | contrib/go/src/python/pants/contrib/go/tasks/go_thrift_gen.py | cevaris/pants | apache-2.0 | 5,677 | 151 | codeparrot/github-code |
1eb87e71168594fbd87d3474cfd3e32396df3c34c878b29d57ee8c5097f529a3 | import unittest, re
from rexp.compiler import PatternCompiler
class CompilerTestMethods(unittest.TestCase):
def test_compile_1(self):
compiler = PatternCompiler(pattern_set=dict(
TEST=r'\w+'
))
try:
c1 = compiler.compile('$1{TEST}')
except Exception as exc:... | Python | test/compiler.py | ebbkrdrcn/rexp | apache-2.0 | 790 | 31 | codeparrot/github-code |
d4c81b984b9e4d12da705167a58e66f1e6a427b0b549c3c31a43b26762ab31f9 | // Models
app.SearchModel = Backbone.Model.extend({
idAttribute: "session_token",
urlRoot: function() {
var u = '/search/' + this.id;
return u;
}
});
// Collections
app.SearchCollection = Backbone.Collection.extend({
model: app.SearchModel,
url: function()... | JavaScript | public/lib/cards.js | GOPINATH-GS4/stock | apache-2.0 | 1,119 | 47 | codeparrot/github-code |
abf7123d2d16a14ce2b76852d1715220e5fec6bfe1c2edc50d073d92eea8d4ca | package com.yuzhou.viewer.service;
import android.content.Context;
import android.os.AsyncTask;
import android.util.Log;
import android.widget.Toast;
import com.google.common.eventbus.EventBus;
import com.loopj.android.http.JsonHttpResponseHandler;
import com.loopj.android.http.SyncHttpClient;
import com.yuzhou.viewe... | Java | app/src/main/java/com/yuzhou/viewer/service/GoogleApiTask.java | yuzhou2/android_02_grid_image_search | apache-2.0 | 3,730 | 112 | codeparrot/github-code |
e953753ef41e9524d221a571a6149968fbcb9fab2fdb9dab5d646aa791de0755 | <?php
/**
* Smarty Internal Plugin Compile Insert
*
* Compiles the {insert} tag
*
* @package Smarty
* @subpackage Compiler
* @author Uwe Tews
*/
/**
* Smarty Internal Plugin Compile Insert Class
*
* @package Smarty
* @subpackage Compiler
*/
class Smarty_Internal_Compile_Insert extends Smarty_In... | PHP | library/Smarty/sysplugins/smarty_internal_compile_insert.php | slayerhover/yaf-cms-backoffice | apache-2.0 | 4,415 | 171 | codeparrot/github-code |
96ee81db959d2b000765be5e8a1837d4e9e68b6f15acc56bdd4524ecc6e93210 | package com.rockhoppertech.music.fx.cmn;
/*
* #%L
* rockymusic-fx
* %%
* Copyright (C) 1996 - 2013 Rockhopper Technologies
* %%
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* ... | Java | rockymusic-fx/src/main/java/com/rockhoppertech/music/fx/cmn/GrandStaffApp.java | genedelisa/rockymusic | apache-2.0 | 3,230 | 109 | codeparrot/github-code |
b75c4b3d8365c6a2a2441ccb9c5308341b4c09f39a5b3b75adf01cb6404ae8ab | <?php
/************************
Example Client App for inserting categories
*************************/
// Make sure we're being called from the command line, not a web interface
if (PHP_SAPI !== 'cli')
{
die('This is a command line only application.');
}
// We are a valid entry point.
const _JEXEC = 1;
error_re... | PHP | insert-cat-example.php | stoffels-it/joomla-extensions-examples | apache-2.0 | 4,296 | 152 | codeparrot/github-code |
e6aaf023fc230a8f6d4ae9eda60c9e7017f7d3566e664cea6eca3d5368e2e451 | module SchemaEvolutionManager
# Container for common args, mainly to have stricter validation on
# inputs. Tried to use GetoptLong but could not write solid unit
# tests around it... so we have our own internal simple implementation.
class Args
if !defined?(FLAGS_WITH_ARGUMENTS)
FLAGS_WITH_ARGUMENTS... | Ruby | lib/schema-evolution-manager/args.rb | mbryzek/schema-evolution-manager | apache-2.0 | 5,648 | 164 | codeparrot/github-code |
668f3f5b587b2dd855272973b51d9afd1c2d3a60242cba841a8f16cbbb8790f9 | <?php
namespace Ajax\semantic\components\validation;
use Ajax\service\AjaxCall;
use Ajax\JsUtils;
/**
* @author jc
* @version 1.001
* Generates a JSON Rule for the validation of a field
*/
class Rule implements \JsonSerializable{
/**
* @var string
*/
private $type;
/**
* @var string
*/
private $prompt;... | PHP | Ajax/semantic/components/validation/Rule.php | phpMv/phpMv-UI | apache-2.0 | 4,448 | 177 | codeparrot/github-code |
290acef044497c5d174be62a68614be611e1b1adc27222f28ede54af76c85580 | import torch
from deluca.lung.core import Controller, LungEnv
class PIDCorrection(Controller):
def __init__(self, base_controller: Controller, sim: LungEnv, pid_K=[0.0, 0.0], decay=0.1, **kwargs):
self.base_controller = base_controller
self.sim = sim
self.I = 0.0
self.K = pid_K
... | Python | deluca/lung/experimental/controllers/_pid_correction.py | google/deluca-lung | apache-2.0 | 874 | 33 | codeparrot/github-code |
4a19f758c6e7f3cec122cde0297f85e7e58d2614f40df674f17bb0066e3c2da9 | /* ====================================================================
Copyright (C) 2004-2008 fyiReporting Software, LLC
This file is part of the fyiReporting RDL project.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
... | C# | src/RdlDesign/DialogValidValues.cs | gregberns/ZipRdlProjectDev410 | apache-2.0 | 7,188 | 244 | codeparrot/github-code |
a37670159e457ca98c709fb7edb506d489dd8cd8c42bac65ce535e37a0803bf6 | package org.ngrinder.home.controller;
import lombok.RequiredArgsConstructor;
import org.ngrinder.common.constant.ControllerConstants;
import org.ngrinder.home.model.PanelEntry;
import org.ngrinder.home.service.HomeService;
import org.ngrinder.infra.config.Config;
import org.ngrinder.script.handler.ScriptHandler;
impor... | Java | ngrinder-controller/src/main/java/org/ngrinder/home/controller/HomeApiController.java | naver/ngrinder | apache-2.0 | 4,677 | 133 | codeparrot/github-code |
abe0f929e3dda1d36d4cdc23ac3eedfe393937d56240103f7d436af4f78b4a76 | //Copyright (c) 2014 by Disy Informationssysteme GmbH
package net.disy.eenvplus.tfes.modules.sparql.expression;
import com.hp.hpl.jena.sparql.expr.E_LogicalAnd;
import com.hp.hpl.jena.sparql.expr.E_LogicalOr;
import com.hp.hpl.jena.sparql.expr.Expr;
import com.hp.hpl.jena.sparql.syntax.ElementFilter;
// NOT_PUBLISHED... | Java | TF_Exploitation_Server_modules/src/main/java/net/disy/eenvplus/tfes/modules/sparql/expression/SparqlExpressionBuilder.java | eENVplus/tf-exploitation-server | apache-2.0 | 1,223 | 51 | codeparrot/github-code |
71ba7ccb8e40e9a171a29a6e1fc51c9d601a23b073059afa3d275f3fb4733de1 | (function (chaiJquery) {
// Module systems magic dance.
if (typeof require === "function" && typeof exports === "object" && typeof module === "object") {
// NodeJS
module.exports = chaiJquery;
} else if (typeof define === "function" && define.amd) {
// AMD
define(function () {
return chaiJqu... | JavaScript | test/chai-jquery-1.0.0.js | reaktor/jquery.spinner | apache-2.0 | 6,187 | 214 | codeparrot/github-code |
fa2673dd22b34fb4a1f5e4ea87e575b129b05905e923c4af3dd870ac8e89dd0a | // Copyright (c) 2015 Illyriad Games Ltd. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.md in the project root for license information.
using System;
using System.Numerics;
namespace IllyriadGames.ByteArrayExtensions
{
public static class VectorizedCopyExtension
{
... | C# | src/IllyriadGames.ByteArrayExtensions/VectorizedCopyExtension.cs | IllyriadGames/ByteArrayExtensions | apache-2.0 | 7,463 | 156 | codeparrot/github-code |
2fad1ddb4328345e7eaacf85b202776b4be21a591e6bd75a14c12d12458aec61 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Xunit;
#if USE_FASTQUANT
namespace FastQuant.Tests
#else
namespace SmartQuant.Tests
#endif
{
public class TickSeriesTest
{
[Fact]
public void TestGetIndex()
{
var ts = new... | C# | test/FastQuant.Tests.Shared/TickSeriesTest.cs | fastquant/fastquant.dll | apache-2.0 | 2,580 | 50 | codeparrot/github-code |
a3b0271a4002668929245347613326bfef444f2b054814ae1e5b51552475892b | package com.sectong.util;
import org.apache.log4j.Logger;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.OutputStreamWriter;
import java.net.URL;
import java.net.URLConnection;
public class HttpUtil {
private static Logger logger = Logger.getLogger(Ht... | Java | src/main/java/com/sectong/util/HttpUtil.java | xaioyi/yidongyiljwj | apache-2.0 | 1,988 | 59 | codeparrot/github-code |
fb3a8a14266bb6e18d5b03d3049a49af42b3ee1522f12fb3e6611e9829639759 | 'use strict';
viewModel.MonitoringAlarm = new Object();
var ma = viewModel.MonitoringAlarm;
ma.minDatetemp = new Date();
ma.maxDatetemp = new Date();
ma.minDateRet = new Date();
ma.maxDateRet = new Date();
vm.currentMenu('Alarm Data');
vm.currentTitle('Alarm Data');
vm.isShowDataAvailability(false);
vm.breadcrumb(... | JavaScript | web/assets/core/js/page-monitoring/monitoring-alarm.js | eaciit/windapp | apache-2.0 | 14,310 | 433 | codeparrot/github-code |
d21c27ecf96c7d8b7b75f02201f085878c063a68da9338020ce964616b275f49 | /*
* Copyright 2015 Matthew Timmermans
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or ... | Java | dfalex/src/main/java/com/nobigsoftware/dfalex/DfaFromNfa.java | 6thsolution/ApexNLP | apache-2.0 | 9,517 | 244 | codeparrot/github-code |
1617d95e20c8dd48d8ba3c25d8199fa841296e91e72d238ba2e4c3aec9878197 | package com.emc.ecs.servicebroker.repository;
import com.emc.ecs.servicebroker.exception.EcsManagementClientException;
import com.emc.ecs.servicebroker.service.s3.S3Service;
import com.emc.ecs.servicebroker.model.Constants;
import com.emc.object.s3.bean.GetObjectResult;
import com.emc.object.s3.bean.ListObjectsResult;... | Java | src/main/java/com/emc/ecs/servicebroker/repository/ServiceInstanceBindingRepository.java | emccode/ecs-cf-service-broker | apache-2.0 | 6,740 | 175 | codeparrot/github-code |
c014cf9cc92a50bca80088bf834d3d27596b10e7275d87fde78f66671f99fa1b | /*
* Copyright (c) 2016 Snowplow Analytics Ltd. All rights reserved.
*
* This program is licensed to you under the Apache License Version 2.0,
* and you may not use this file except in compliance with the Apache License Version 2.0.
* You may obtain a copy of the Apache License Version 2.0 at http://www.apache.org... | Scala | src/test/scala/com/snowplowanalytics/kinesistee/config/ConfigurationBuilderSpec.scala | snowplow/kinesis-tee | apache-2.0 | 4,846 | 121 | codeparrot/github-code |
d3cd796b0b93716f8b526d9668f2a21d1bd671da32d3c7234271f666d6c35401 | /*
ChibiOS/RT - Copyright (C) 2006,2007,2008,2009,2010,
2011,2012,2013,2014 Giovanni Di Sirio.
This file is part of ChibiOS/RT.
ChibiOS/RT 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 ... | C | os/rt/src/chheap.c | roboknight/chibios-lpc43xx | apache-2.0 | 9,017 | 277 | codeparrot/github-code |
cf61ec066cf508e8cc9dac7b59ab3e88ecf56752d7e8038b075525a090aa01b2 | /*******************************************************************************
* Copyright (C) 2016 Kwaku Twumasi-Afriyie <kwaku.twumasi@quakearts.com>.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies... | Java | qa-boot/src/main/java/com/quakearts/webapp/facelets/bootstrap/renderers/BootTableRenderer.java | kwakutwumasi/Quakearts-JSF-Webtools | apache-2.0 | 15,874 | 502 | codeparrot/github-code |
b124932ae0e7ae794d3e961ae8f0b4ba15e0047c577fe554a612ff354721f310 | /*
* Copyright 2002-2010 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by ap... | C# | src/Spring/Spring.Core/Objects/Factory/Support/ObjectDefinitionBuilder.cs | spring-projects/spring-net | apache-2.0 | 17,503 | 404 | codeparrot/github-code |
89bd2855c73146d6d34de0a101c739c38aaee763125e1309e47f31670ec87e73 | using System;
using Windows.ApplicationModel.Resources;
namespace Okra.Data.Helpers
{
internal static class ResourceHelper
{
// *** Constants ***
private const string RESOURCEMAP_ERROR = "Okra.Data/Errors";
private const string RESOURCE_NOT_FOUND_ERROR = "Exception_ArgumentException_R... | C# | src/Okra.Data/Helpers/ResourceHelper.cs | OkraFramework/Okra.Data | apache-2.0 | 1,008 | 33 | codeparrot/github-code |
f41abb8b49a2fab46e897c59bb1b1b15418ed399948773403e825d20a29301e9 | package pro.luxun.luxunanimation.presenter.adapter;
import android.support.annotation.UiThread;
import android.support.v7.widget.RecyclerView;
import android.view.View;
import android.view.ViewGroup;
import java.util.ArrayList;
import java.util.List;
/**
* Created by wufeiyang on 16/5/7.
*/
public abstract class B... | Java | app/src/main/java/pro/luxun/luxunanimation/presenter/adapter/BaseRecyclerAdapter.java | ayaseruri/luxunPro | apache-2.0 | 1,444 | 58 | codeparrot/github-code |
7c6909a72b11fa3de00ff4f14db69fb952145f379813c155d1c5eb3df36bc9db | package cn.xmut.experiment.service.impl;
import java.util.List;
import org.apache.commons.fileupload.FileItem;
import cn.xmut.experiment.dao.IExperimentDao;
import cn.xmut.experiment.dao.impl.jdbc.ExperimentDaoImpl;
import cn.xmut.experiment.domain.Experiment;
import cn.xmut.experiment.domain.ShowExperiment... | Java | experiment/src/cn/xmut/experiment/service/impl/ExperimentServiceImpl.java | bingoogolapple/J2EENote | apache-2.0 | 1,988 | 61 | codeparrot/github-code |
f6a4517f34f4d284af887f95e422bc608b5c9c31b46529a3bc754c08cb411cdd | /*
*
* (C) Copyright IBM Corp. and others 1998-2013 - All Rights Reserved
*
*/
#ifndef __SUBTABLEPROCESSOR2_H
#define __SUBTABLEPROCESSOR2_H
/**
* \file
* \internal
*/
#include "LETypes.h"
#include "MorphTables.h"
U_NAMESPACE_BEGIN
class LEGlyphStorage;
class SubtableProcessor2 : public UMemory {
public:
... | C | android/external/icu4c/layout/SubtableProcessor2.h | indashnet/InDashNet.Open.UN2000 | apache-2.0 | 894 | 47 | codeparrot/github-code |
1305ecacdf0e9dd3a0f7d153f01219fa4919d86d13dffc3f631a1a586d5c40d3 | package server
import (
"bytes"
"context"
"encoding/json"
"io/ioutil"
"log"
"net/http"
"strings"
"sync"
"sync/atomic"
"text/template"
"time"
"github.com/TV4/graceful"
"github.com/gogap/config"
"github.com/gogap/go-wkhtmltox/wkhtmltox"
"github.com/gorilla/mux"
"github.com/phyber/negroni-gzip/gzip"
"gi... | GO | server/server.go | gogap/go-wkhtmltox | apache-2.0 | 8,166 | 425 | codeparrot/github-code |
4108bd387d7e2d9a4537b5a8fa395011953a03bdb7fe939b14981d0bf544074c | /*
Copyright 2013 KLab Inc.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed ... | C | Engine/source/UISystem/CKLBUIDebugItem.h | mhidaka/playgroundthon | apache-2.0 | 3,369 | 91 | codeparrot/github-code |
23d1de972e156743ab3e9ef69c586bf8a6c1c60b4fb443875789c0a4f1f51881 | /* Copyright (C) 2013-2022 TU Dortmund
* This file is part of AutomataLib, http://www.automatalib.net/.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/li... | Java | core/src/main/java/net/automatalib/graphs/base/compact/CompactBidiGraph.java | LearnLib/automatalib | apache-2.0 | 1,632 | 46 | codeparrot/github-code |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.