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 |
|---|---|---|---|---|---|---|---|---|
a2b857f10290e73ce960eb3b0a6901dd24de4e771b39a6ac8ff34b6a3d370fe4 | package org.jetbrains.sbt
package project.data
import com.intellij.openapi.externalSystem.model.{DataNode, ProjectKeys, Key}
import com.intellij.openapi.externalSystem.model.project._
import org.jetbrains.sbt.project.SbtProjectSystem
import java.io.File
/**
* @author Pavel Fatin
*/
class ProjectNode(val data: Proje... | Scala | SBT/src/main/scala/org/jetbrains/sbt/project/data/Nodes.scala | consulo/consulo-scala | apache-2.0 | 3,665 | 127 | codeparrot/github-code |
4deb6e0e9e4990774a2753fd3cc0d8dfb8f6d194e92770d5d19ca8aef9ddb913 | /*
* Copyright 2014-2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
* the License. A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "licen... | Java | aws-java-sdk-waf/src/main/java/com/amazonaws/services/waf/model/waf/transform/GetSizeConstraintSetResultJsonUnmarshaller.java | jentfoo/aws-sdk-java | apache-2.0 | 2,914 | 75 | codeparrot/github-code |
f8f4d27bacb02b32abfeb421b13440288b9206ba811f08bd4769bc3b609952cb | #region License and Terms
// MoreLINQ - Extensions to LINQ to Objects
// Copyright (c) 2008 Jonathan Skeet. 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
//
// ... | C# | MoreLinq.Test/MaxByTest.cs | fsateler/MoreLINQ | apache-2.0 | 4,890 | 116 | codeparrot/github-code |
a6c4ef77f73bfe29c6a5db9457d03c1169e21892604bd5bc753f2e31420203a2 | package com.kbeanie.multipicker.sample.fragments;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import andro... | Java | app/src/main/java/com/kbeanie/multipicker/sample/fragments/AudioPickerFragment.java | ogero/android-multipicker-library | apache-2.0 | 3,322 | 100 | codeparrot/github-code |
d08f4c17fd08a15389a33b1bc355401289f64439606ced15b77856a1668d8eba | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title></title>
<style type="text/css">
.ExternalClass {width:100%;}
.ExternalClass, .Ext... | HTML | mvideo/mvideo-10_12_drony/mvideo-10_12_drony.html | wim-agency/wim-agency.github.io | apache-2.0 | 71,220 | 797 | codeparrot/github-code |
46aedf280d7ae8162262f47a29194b7379b22738a669d3e1886b3ffd835e60b7 | /*
* Copyright 2011 Fae Hutter
*
* 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... | Java | com.vaguehope.mikuru/src/com/vaguehope/mikuru/FileHelper.java | haku/Mikuru | apache-2.0 | 2,378 | 87 | codeparrot/github-code |
c473c7d7a6c92d43b590730ec106541cee4daa28fd93cc46ced29b9f8cc5829e | /*
* Copyright (C) 2014 Evil-Co <http://wwww.evil-co.org>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless requi... | Java | src/main/java/org/evilco/mc/defense/common/tile/generic/DefenseStationTileEntity.java | LordAkkarin/BaseDefense | apache-2.0 | 22,533 | 812 | codeparrot/github-code |
99cdbd8c30008509499db4e766f87dedf2e8c7b2443434a146f3f0c4349a666b | /*
Copyright 2017 The Kubernetes Authors.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, ... | GO | test/e2e/storage/vsphere/vsphere_statefulsets.go | cadmuxe/kubernetes | apache-2.0 | 6,875 | 157 | codeparrot/github-code |
699ff6aceda4e3c40be91ab38b9a078e6b617fb625a00e1a0aec427739874876 | // Copyright 2014 Gary Burd
//
// Licensed under the Apache License, Version 2.0 (the "License"): you may
// not use this file except in compliance with the License. You may obtain
// a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in wr... | GO | redisx/connmux.go | stvp/redigo | apache-2.0 | 3,095 | 153 | codeparrot/github-code |
868d63153e65339d1a4ab279333611bf61124b1c537cc8ce840acd464ac8d4a4 | package info.mornlight.gw2s.android.billing;
import android.app.Activity;
import android.app.PendingIntent;
import android.content.*;
import android.os.Bundle;
import android.os.IBinder;
import android.os.RemoteException;
import android.util.Log;
import com.android.vending.billing.IInAppBillingService;
import info.mor... | Java | android/src/main/java/info/mornlight/gw2s/android/billing/PurchasingHelper.java | xiaodongw/gw2s | apache-2.0 | 5,651 | 141 | codeparrot/github-code |
55b846f81933d4bbe82e710c281e0c8b613272197493d2afbe304366ee7c7507 | /*
* Copyright © 2009 HotPads (admin@hotpads.com)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable... | Java | datarouter-nodewatch/src/main/java/io/datarouter/nodewatch/TableSamplerCounters.java | hotpads/datarouter | apache-2.0 | 1,823 | 62 | codeparrot/github-code |
7b0ae0c79e1d38085ba25633a962912e4bafe78b1b62db0df2a0a262c5c84447 | <?php
/*
* 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.
*/
class KirimEmailModel{
public function lupaPassword($email, $nama, $token) {
$to = $email;
... | PHP | php-backend/application/models/konsumen/KirimEmailModel.php | yuly94/elaundry | apache-2.0 | 3,999 | 102 | codeparrot/github-code |
a7ac1ec53817c9c0e1b17c7d018483473f60c3da1b36aa0cbfece74822de7e57 | package org.examples.designpatterns;
import junit.framework.Test;
import junit.framework.TestCase;
import junit.framework.TestSuite;
/**
* Unit test for simple App.
*/
public class AppTest
extends TestCase
{
/**
* Create the test case
*
* @param testName name of the test case
*/
pub... | Java | examples-designpatterns/src/test/java/org/examples/designpatterns/AppTest.java | Dustfate/examples | apache-2.0 | 655 | 39 | codeparrot/github-code |
00e66e12a32fe844f11847d9484d8624b91ccc58c5e29964742054a08f2504d0 | package name.marmac.tutorials.cxfatwork.model.impl.jpa;
import name.marmac.tutorials.cxfatwork.model.api.CustomerPO;
import javax.persistence.*;
import java.util.Date;
/**
* Created by marcomaccio on 21/11/2014.
*/
@Entity
@Table(name = "Customers", uniqueConstraints=@UniqueConstraint(columnNames="customerId"))
@N... | Java | cxfatwork-rs-j2ee/cxfatwork-rs-j2ee-dal-impl-jpa/src/main/java/name/marmac/tutorials/cxfatwork/model/impl/jpa/Customer.java | marcomaccio/cxfatwork | apache-2.0 | 4,862 | 225 | codeparrot/github-code |
086e1cde5f87b21fe1883b0cb9aadac97140b42012adc669e43a81f90bf1b81c | /*
* Copyright (C) 2011 Google Inc. All rights reserved.
* Copyright (C) 2012 Intel Inc. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* 1. Redistributions of source code must retain ... | C++ | android/external/chromium_org/third_party/WebKit/Source/core/platform/audio/ipp/FFTFrameIPP.cpp | indashnet/InDashNet.Open.UN2000 | apache-2.0 | 5,885 | 190 | codeparrot/github-code |
c30cc310a6e02f344a689d9fee682c00123b0000253c349d8ae9723b03c2804d | /*******************************************************************************
* Copyright 2017 Dell Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/li... | Java | src/test/java/org/edgexfoundry/transformer/XMLFormatTransformerTest.java | bhaecke/export-distro | apache-2.0 | 2,516 | 67 | codeparrot/github-code |
a7df3afd5fb8a065705978e7b8acc495a47ea24718b147fb1b43cfa792d81209 | <?php
define("SAVEQUERIES", TRUE);
define( 'OBJECT', 'OBJECT', true );
define( 'OBJECT_K', 'OBJECT_K' );
define( 'ARRAY_A', 'ARRAY_A' );
define( 'ARRAY_N', 'ARRAY_N' );
class YCMSDB {
/**
* 数据库链接是否就绪
* @var unknown_type
*/
protected $ready;
protected $show_errors;
protected $real_... | PHP | sources/lib/ycmsdb.class.php | callmeyan/ycms | apache-2.0 | 14,729 | 583 | codeparrot/github-code |
697fa3e72fe7c2f003a7a1645b0e71d5acd21123af38976342eb2659cd2a5d11 | using QPS_Web1._CSHARP.Class;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
namespace QPS_Web1._QPS.Class
{
public class SquarePoint
{
private string hexname = "";
public int SAvgArb { get; set; }
public int W { get; set; }
public int H { ... | C# | ClusterServer/QPS_Method1/_QPS/Class/SquarePoint.cs | MSAlih1/OPALOP-Picture-Mosaic | apache-2.0 | 1,065 | 46 | codeparrot/github-code |
83d19e9c77d7007c1fb0876f0b674a8f470df83c63e851f7202d0a22f34955c7 | package io.finch
import scala.reflect.ClassTag
/**
* A basic error from a Finch application.
*/
trait Error extends Exception
object Error {
import items._
def apply(message: String): Error = new Error {
override def getMessage: String = message
}
/**
* An exception that collects multiple endpoin... | Scala | core/src/main/scala/io/finch/Error.scala | ilya-murzinov/finch | apache-2.0 | 1,941 | 66 | codeparrot/github-code |
9872fa2b5516d4a22c5b0b89ba78f2179f447b8c339e588f1acee366c6a2899a | // Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System;
using System.Threading;
using System.Threading.Tasks;
using Microsoft.CodeAnalysis.ChangeNamespace;
using Microsoft.CodeAnalysis.Shared.Extensi... | C# | src/Features/Core/Portable/CodeRefactorings/SyncNamespace/AbstractSyncNamespaceCodeRefactoringProvider.cs | nguerrera/roslyn | apache-2.0 | 5,521 | 103 | codeparrot/github-code |
b0f396bebe153c95d0dfa1d032b23e18bc16446bf3192c536ed39deecb96e498 | /**
* Copyright 2014 Open Connectome Project (http://openconnecto.me)
* Written by Da Zheng (zhengda1936@gmail.com)
*
* This file is part of FlashGraph.
*
* 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 ... | C++ | flash-graph/sssp/sssp.cpp | silky/FlashGraph | apache-2.0 | 5,170 | 215 | codeparrot/github-code |
65ee63a53160bee2fafb93801a9935f86114be770e4898468d1e162de1de3d69 | /*
* (C) Copyright 2007-2013
* Allwinner Technology Co., Ltd. <www.allwinnertech.com>
* Jerry Wang <wangflord@allwinnertech.com>
*
* See file CREDITS for list of people who contributed to this
* project.
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU Ge... | C | SOFTWARE/A64-TERES/u-boot_new/usb_sunxi/usb_base_sun8iw10p1.c | OLIMEX/DIY-LAPTOP | apache-2.0 | 38,674 | 1,432 | codeparrot/github-code |
7a88c33525fc8fc62dda65b1293901b0ebcef94d8c80b64b395bd2f9e4dda531 | """
Stat module for flask_restful
"""
import json
import logging
from dotmap import DotMap
from flask import request
from flask_restful import Resource
from es_stats_zabbix.exceptions import EmptyResult
from es_stats_zabbix.helpers.utils import status_map
class Stat(Resource):
"""Stat Resource class for flask_res... | Python | es_stats_zabbix/backend/stat.py | untergeek/es_stats_zabbix | apache-2.0 | 1,693 | 48 | codeparrot/github-code |
81c66559f61c3327949050cd1a2d7508c14a62d88f831180154321811f55e37e | <!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<link rel="shortcut icon" type="image/ico" href="http://www.datatables.net/favicon.ico">
<meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1.0, user-scalable=no">
<title>DataTables example - DOM events</title>
<link rel="styleshee... | HTML | lib/admin/public/js/external/jquery/DataTables-1.11.3/examples/non_jquery/dom_events.html | cloudfoundry-incubator/admin-ui | apache-2.0 | 28,686 | 972 | codeparrot/github-code |
6fda68e809182f07c5e238b37bcc4ee955506c57597c41124c05adb34d5a7789 | package com.sksamuel.scrimage.metadata;
public class Tag {
private final String name;
private final int type;
private final String rawValue;
private final String value;
public Tag(String name, int type, String rawValue, String value) {
this.name = name;
this.type = type;
this.rawValu... | Java | scrimage-core/src/main/java/com/sksamuel/scrimage/metadata/Tag.java | sksamuel/scrimage | apache-2.0 | 1,560 | 66 | codeparrot/github-code |
2651a917f7497c7f8b147708e5782fdbf584917330355923d801c5e35c908305 | var ContributionsDAO = require("../data/contributions-dao").ContributionsDAO;
/* The ContributionsHandler must be constructed with a connected db */
function ContributionsHandler(db) {
"use strict";
var contributionsDAO = new ContributionsDAO(db);
this.displayContributions = function(req, res, next) {
... | JavaScript | app/routes/contributions.js | nearform/NodeGoat | apache-2.0 | 1,831 | 62 | codeparrot/github-code |
5d451ff209c58d76449ebc62cb8b97b10776dbf701c732d6f16f7b39b8a36808 | <?xml version="1.0" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title></title>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<link rev="made" href="mailto:root@localhost" />
<... | HTML | gram/jobmanager/scripts/JobManager.html | eunsungc/gt6-RAMSES_8_5 | apache-2.0 | 13,734 | 278 | codeparrot/github-code |
fa1f8c4b2aba3eca919417df923eeaf2bfa54855468b159587dca5faa78a44e0 | package com.vipheyue.fastlib.fresh.footer;
import android.content.Context;
import android.content.res.Resources;
import android.util.AttributeSet;
import android.widget.FrameLayout;
import android.widget.ImageView;
import com.aspsine.swipetoloadlayout.SwipeLoadMoreTrigger;
import com.aspsine.swipetoloadlayout.SwipeTr... | Java | FastLib/src/main/java/com/vipheyue/fastlib/fresh/footer/GoogleLoadMoreFooterView.java | vipheyue/FastLib | apache-2.0 | 2,279 | 82 | codeparrot/github-code |
93cd013c49d728b5839ff3f7beb6d61833505785494df10905d7d4e6f051f577 | /*
* Copyright (c) 2016 Codethink Limited.
*
* Licensed under the Apache License, Version 2.0 (the 'License'); you may
* not use this file except in compliance with the License. You may obtain
* a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable la... | JavaScript | src/app/services/directive/calendar.js | ColdrickSotK/storyboard-webclient | apache-2.0 | 5,048 | 131 | codeparrot/github-code |
e612f6bd603a69b98a16797853b043a4b6c42a7d6788b0a028df2594d7ba7688 | #
# ColorHandPose3DNetwork - Network for estimating 3D Hand Pose from a single RGB Image
# Copyright (C) 2017 Christian Zimmermann
#
# 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, eithe... | Python | HandPose_Detector/general.py | dedoogong/asrada | apache-2.0 | 29,504 | 737 | codeparrot/github-code |
a7461c7a3eccb9a9aa6d07e96a30a8d665ba860f7783bffec37bd710e34a8269 | #!/usr/bin/env perl
# Copyright 2005,2006 WSO2, Inc. http://wso2.com
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by app... | Perl | samples/security/complete/complete_sec_client.pl | gitpan/WSO2-WSF-Perl | apache-2.0 | 1,768 | 60 | codeparrot/github-code |
a7c006f0e1c08d0a80bd5136a1268630dfecfe4b0f8217914b9ba16821bdc5ec | #ifndef DYNET_NODES_SOFTMAXES_H_
#define DYNET_NODES_SOFTMAXES_H_
#include "dynet/dynet.h"
#include "dynet/nodes-macros.h"
namespace dynet {
// z = \sum_j \exp (x_i)_j
// y_i = (x_1)_i / z
struct Softmax : public Node {
explicit Softmax(const std::initializer_list<VariableIndex>& a) : Node(a) {}
DYNET_NODE_DEFIN... | C | dynet/nodes-softmaxes.h | Abasyoni/dynet | apache-2.0 | 2,513 | 67 | codeparrot/github-code |
da6c209ebe2b36cbc02945df5aa435f36e87b65a222ef4730dafb8add5406e5c | package com.kunsoftware.controller.manager;
import java.util.List;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annot... | Java | src/main/java/com/kunsoftware/controller/manager/FlightChedulePlanController.java | yanguangkun/KunSoftware_Tour | apache-2.0 | 3,726 | 108 | codeparrot/github-code |
97f9c2c640e196db44a386de3256e0c162432d0fcb59350b40402596b1d6274c | package nl.jqno.equalsverifier.integration.extra_features;
import static nl.jqno.equalsverifier.testhelpers.Util.defaultHashCode;
import nl.jqno.equalsverifier.EqualsVerifier;
import nl.jqno.equalsverifier.Warning;
import nl.jqno.equalsverifier.testhelpers.ExpectedException;
import nl.jqno.equalsverifier.testhelpers.... | Java | equalsverifier-test-core/src/test/java/nl/jqno/equalsverifier/integration/extra_features/GetClassTest.java | jqno/equalsverifier | apache-2.0 | 5,599 | 172 | codeparrot/github-code |
931398f68e958a5f34064bcee238b6f16d5bbf320583646cb705d49b546bb83b | /*
Copyright 2016 Google Inc. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in... | JavaScript | utils/server-instance.js | GoogleChrome/sw-appcache-behavior | apache-2.0 | 6,710 | 211 | codeparrot/github-code |
a57b6cc8e6e1846046cff6ff341465fffa7fa9cf081defee1356a606e8c1aabd | import java.util.Date;
import java.text.SimpleDateFormat;
import java.text.ParseException;
import java.util.Calendar;
import java.util.ArrayList;
public class ExpenseDatabase {
private Expense[] expenses;
public ExpenseDatabase(){
expenses = new Expense[5];
int[] temp;
temp = new int[2];
temp[0] = ... | Java | src/ExpenseDatabase.java | ThomasMarcel/SchoolAdmin | apache-2.0 | 3,865 | 141 | codeparrot/github-code |
c223e1545be84d18ecf01dacdcc1efd78f2e0287c30a2208ec3ff1429311ea44 | /**
*
* Copyright 2012 Adobe Systems Inc.;
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in... | CSS | www/css/topcoat-mobile-dark.css | jonsource/Pivograf | apache-2.0 | 49,253 | 1,902 | codeparrot/github-code |
48692c0379acf2d19c70ee10a1e5d8f445975a7fa2e75db8f6047967e13ef76c | // query.h
/**
* Copyright (C) 2008 10gen Inc.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License, version 3,
* as published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be u... | C | src/mongo/db/ops/query.h | datacratic/mongo-cxx-driver | apache-2.0 | 13,967 | 325 | codeparrot/github-code |
8d60c140f44d1b403b9a9f1d421fd529921a794de0087df20c42d11deb8bbc16 | package org.deeplearning4j.nn.transferlearning;
import lombok.extern.slf4j.Slf4j;
import org.deeplearning4j.nn.api.Layer;
import org.deeplearning4j.nn.api.OptimizationAlgorithm;
import org.deeplearning4j.nn.conf.ComputationGraphConfiguration;
import org.deeplearning4j.nn.conf.NeuralNetConfiguration;
import org.deeplea... | Java | deeplearning4j-core/src/test/java/org/deeplearning4j/nn/transferlearning/TransferLearningComplex.java | shuodata/deeplearning4j | apache-2.0 | 14,346 | 272 | codeparrot/github-code |
5652aec5105e7f2546078ac3993d9349cfbd83883351cc27d246d7e970b8027e | /*
* Copyright 2014 JBoss Inc
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... | Java | kie-wb-common-services/kie-wb-common-services-api/src/main/java/org/kie/workbench/common/services/shared/messageconsole/MessageConsoleWhiteListImpl.java | psiroky/kie-wb-common | apache-2.0 | 1,251 | 41 | codeparrot/github-code |
1e85753a85adf15536288a28c978e8f08e5415051345320b9fe9595f08918b6b | /*
* Copyright 2017 Courtanet
*
* 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 | sample/benchmark/src/main/java/io/doov/sample/benchmark/runtime/SimpleValidation.java | lesfurets/dOOv | apache-2.0 | 4,113 | 130 | codeparrot/github-code |
559de5246d68db90230b9607852cabde5f27745246560a5a6e5419a8fc3aadcc | package main
import (
"context"
"flag"
"fmt"
"github.com/opennetworkinglab/onos-warden/warden"
"google.golang.org/grpc"
"google.golang.org/grpc/grpclog"
"io"
"io/ioutil"
"os"
"os/signal"
"os/user"
"regexp"
)
type client struct {
stream warden.ClusterClientService_ServerClustersClient
ads chan *warden... | GO | go-experiment/client/streaming/client.go | opennetworkinglab/onos-warden | apache-2.0 | 4,366 | 176 | codeparrot/github-code |
5dd3a7c92730f239c339e53425199a3547617980503a9bef138347a7991c91e8 | /*
* 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/index/query/TermsQueryBuilder.java | jprante/elasticsearch-server | apache-2.0 | 20,091 | 499 | codeparrot/github-code |
f48a774b8fb9735f85e17ccaa53f9608c5b165007dff1e93f0923db319df38db | using System;
using System.Collections.Generic;
using System.Text;
namespace Utility
{
/// <summary>
///
/// </summary>
public class ByteUtil
{
public static string ByteToString(byte[] buffer)
{
string temp = "";
if (buffer != null)
{
... | C# | pc/ArchiveMS/Utility/ByteUtil.cs | jxdong1013/archivems | apache-2.0 | 922 | 37 | codeparrot/github-code |
2f3f46c8d8faa5c8c7a5000616221d559555c80baeae26fb82d9b42f896013cf | package com.pushsignal.xml;
import java.util.Date;
public class UserDeviceDTOTest extends XMLCompareTestCase {
public void testCompareSerialization() throws Exception {
Date currentDate = new Date();
String jaxb = serializeWithJaxb(createUserDeviceDTOForJaxb(currentDate));
System.out.println(jaxb);
String si... | Java | src/test/java/com/pushsignal/xml/UserDeviceDTOTest.java | gdenning/pushsignal-server | apache-2.0 | 1,764 | 45 | codeparrot/github-code |
bc0c751d3125aae3e027c20192ea12f62cc81e3b6b100e6f0153aa04c101134a |
package com.etapps.trovenla.models.queries;
import javax.annotation.Generated;
import com.google.gson.annotations.Expose;
import com.google.gson.annotations.SerializedName;
@Generated("org.jsonschema2pojo")
public class Zone {
@SerializedName("name")
@Expose
private String name;
@SerializedName("rec... | Java | app/src/main/java/com/etapps/trovenla/models/queries/Zone.java | emanuelet/Trove | apache-2.0 | 904 | 55 | codeparrot/github-code |
cc65f5f611dea35e10adea8af13c2e2813c86a7b1f140acd3e92798fccd9fc4d | package de.thi.mymusic.web.model;
import de.thi.mymusic.domain.Album;
import de.thi.mymusic.domain.Interpret;
import de.thi.mymusic.domain.SearchResultEntity;
import de.thi.mymusic.domain.Song;
import de.thi.mymusic.service.SearchService;
import javax.enterprise.context.SessionScoped;
import javax.inject.Inject;
impo... | Java | src/main/java/de/thi/mymusic/web/model/Search.java | thi-enterprisejava/music-albums-obermueller | apache-2.0 | 2,436 | 94 | codeparrot/github-code |
c652775fb6fcf4756d766f439561ac0f483d16331792e6396daaa703aea29cea | /**********************************************************************
* File: pageres.h (Formerly page_res.h)
* Description: Results classes used by control.c
* Author: Phil Cheatle
*
* (C) Copyright 1992, Hewlett-Packard Ltd.
** Licensed under the Apache License, Version 2.0 (the "License");
** y... | C | app/libs/tesseract/tesseract/src/ccstruct/pageres.h | renard314/textfairy | apache-2.0 | 33,468 | 800 | codeparrot/github-code |
7d5d56c0d0cf621a1e4c1a7f8b3aa5550019626e96d45e6d3b5d7e00e8ed7241 | #!/bin/bash
currScriptDir=`dirname $0`
source `find ${currScriptDir}/../ -name paths.sh`
for SAMVCF in `ls $base_dir/alignments_vsn_k20/variants_tuned/*sam*.gz | grep -v combined | grep -v NO | grep -v GERMLINE | grep -v eval | grep -v SOMATIC | grep -v Germline` `find $base_dir/alignments_vsn_k20/variants_default/ -... | Shell | sim_cancer/var_callers/filterOutGermline_GATK_SAMtools.sh | cbg-ethz/WES_Cancer_Sim | apache-2.0 | 2,198 | 31 | codeparrot/github-code |
66bcb882d1b37a10a9ece601518c9832a94a59510482a404e98c4e9b48e8c00e | /*
* Copyright 2019 EPAM Systems
*
* 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/com/epam/ta/reportportal/entity/enums/IntegrationAuthFlowEnum.java | reportportal/commons-dao | apache-2.0 | 1,056 | 38 | codeparrot/github-code |
c4b9b1ebe3263d817659d0e734a30a5f2d22fb7006316a7e533d014c642cce82 | /*
* Copyright (C) 2012-2017 DataStax 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 agr... | Java | driver-core/src/main/java/com/datastax/driver/core/CloseFuture.java | tolbertam/java-driver | apache-2.0 | 3,248 | 99 | codeparrot/github-code |
38b9d7d929c9abca9fe82c3f906ba5184cc72be31e307d50847c1ed60299ddf7 | package org.jetbrains.plugins.scala.lang.psi.impl.toplevel.typedef.simulacrum
import org.jetbrains.plugins.scala.lang.psi.ScalaPsiUtil
import org.jetbrains.plugins.scala.lang.psi.api.base.ScLiteral
import org.jetbrains.plugins.scala.lang.psi.api.base.types.{ScSimpleTypeElement, ScParameterizedTypeElement}
import org.j... | Scala | src/org/jetbrains/plugins/scala/lang/psi/impl/toplevel/typedef/simulacrum/SimulacrumInjection.scala | SergeevPavel/intellij-scala | apache-2.0 | 6,958 | 136 | codeparrot/github-code |
28abe2e5b753ada920434227f218228f190da2b4b73b79c0be8bbb8fea3201fb | //Apache2, 2017, WinterDev
//Apache2, 2009, griffm, FO.NET
namespace Fonet.Render.Pdf.Fonts
{
/// <summary>
/// Collection of font properties such as face name and whether the
/// a font is bold and/or italic.
/// </summary>
public sealed class FontProperties
{
private string f... | C# | src/PdfCanvas/PdfFont/Fonts/FontProperties.cs | PaintLab/SaveAsPdf | apache-2.0 | 1,560 | 59 | codeparrot/github-code |
3e1d3a319a1a028a9167856d4db6b826cc98cd17d1874ab0bbbac2027f82ebba | /*
Copyright (C) 2016 Ludovic Marechal and Francisco Flórez-Revuelta
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless requir... | C# | BagOfKeyPoses_Library/Parser/SkeletonNormalisation.cs | Marechal-L/BagOfKeyPoses | apache-2.0 | 8,522 | 189 | codeparrot/github-code |
fe1b775020dad52d55f419f620138116dc3d5cd84ec48e5760a2d4b181da7c38 | /*
* Copyright 2000-2009 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 agre... | Java | src/main/java/com/intellij/uiDesigner/radComponents/FlowDropLocation.java | consulo/consulo-ui-designer | apache-2.0 | 6,122 | 165 | codeparrot/github-code |
deddf62b5fb12ac375a793f3c98388b0a9051100b96e66051b1c48c444503c89 | /*
* Copyright 2017 eagle.jfaster.org.
* <p>
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or... | Java | eagle-transport-netty/src/main/java/eagle/jfaster/org/util/RemotingUtil.java | fang-yan-peng/eagle | apache-2.0 | 2,592 | 83 | codeparrot/github-code |
df84dc9da4f189cfcfa182ab06940a8720d4d5864636bd8b6d7103e88893b910 | // Copyright 2021 Authors of Cilium
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed ... | GO | cilium/cmd/bpf_recorder_list.go | tgraf/cilium | apache-2.0 | 2,512 | 89 | codeparrot/github-code |
2259a14571dbe5e8ac7479221485bca3828e5ea372520353c50f44bd75e7da41 | /*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applic... | C++ | thrift/lib/cpp/concurrency/test/ThreadManagerTests.cpp | facebook/fbthrift | apache-2.0 | 34,410 | 1,157 | codeparrot/github-code |
6e9b0f3a74c8e8d26bb40eb554fd862652ed872e9191b6c905881d9e8f4e9039 | using System;
using System.Collections.Generic;
using System.Globalization;
using System.Linq;
using System.Text;
using Amazon.Runtime;
using Amazon.S3.Model;
using System.IO;
using Amazon.S3.Util;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using Amazon... | C# | aws-sdk-net-v3/sdk/src/Services/S3/Custom/_bcl/Encryption/Internal/SetupDecryptionHandler.cs | tsujimic/aws-s3-net | apache-2.0 | 10,131 | 220 | codeparrot/github-code |
0cc4d04ceeb8fa9defbaf34cb67b9586f44db1475f0de3363e9181c03df47f0a | package io.cattle.platform.process.instance;
import io.cattle.platform.core.model.Instance;
import io.cattle.platform.core.model.Nic;
import io.cattle.platform.core.model.Volume;
import io.cattle.platform.engine.handler.HandlerResult;
import io.cattle.platform.engine.process.ProcessInstance;
import io.cattle.platform.... | Java | code/iaas/logic/src/main/java/io/cattle/platform/process/instance/InstanceRestore.java | cloudnautique/cloud-cattle | apache-2.0 | 1,478 | 50 | codeparrot/github-code |
f6eca90bc134fe2819b1cc9cf4ed925e1593b51bc6bdce9baa20a04260704144 | //
// ========================================================================
// Copyright (c) 1995-2015 Mort Bay Consulting Pty. Ltd.
// ------------------------------------------------------------------------
// All rights reserved. This program and the accompanying materials
// are made available under the ter... | Java | jetty-server/src/main/java/org/eclipse/jetty/server/handler/RequestLogHandler.java | xmpace/jetty-read | apache-2.0 | 6,365 | 193 | codeparrot/github-code |
af76db162d7ef06e5f5b7d0738cee6d991387573bcb52b0f60bbb150623e82a1 | /**
* 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 | tools/src/main/java/org/apache/kafka/tools/ThroughputThrottler.java | junrao/kafka | apache-2.0 | 4,982 | 142 | codeparrot/github-code |
c4eac8e683d37ee2fdfb6eda9d8f7445738cb07232c44495b1beb88c9d30861b | /*
* Copyright 2000-2009 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 agre... | Java | modules/base/platform-api/src/main/java/com/intellij/ide/OccurenceNavigator.java | consulo/consulo | apache-2.0 | 2,472 | 101 | codeparrot/github-code |
a59d6ea6e66fd24fb47f4b033c573c39e3645e4a638afe42ef4516d95c573b92 | /*
* Copyright 2000-2015 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 agre... | Java | platform/platform-impl/src/com/intellij/openapi/fileEditor/impl/FileDocumentManagerImpl.java | clumsy/intellij-community | apache-2.0 | 32,966 | 919 | codeparrot/github-code |
9e803855c6b2d9c12caf2c80c130816d2ed2fccdd961e755a8b7e3d946ec73b6 | /*
* biojs-vis-violin-plot
* https://github.com/rowlandm/biojs-vis-violin-plot
*
* Copyright (c) 2014 rowlandm
* Licensed under the Apache 2 license.
*/
/**
@class biojsvisviolinplot
*/
/*
Copyright 2015 Rowland Mosbergen
Licensed under the Apache License, Version 2.0 (the "License");
you may not u... | JavaScript | lib/index.js | rowlandm/biojs-vis-violin-plots | apache-2.0 | 47,729 | 1,244 | codeparrot/github-code |
04ede38b2c9f1db9147da3aff9fa009e3ccdca408e8d748c98f0d86ed026850e | /*
* Copyright 2017-2019 B2i Healthcare Pte Ltd, http://b2i.sg
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless require... | Java | snomed/com.b2international.snowowl.snomed.reasoner/src/com/b2international/snowowl/snomed/reasoner/request/ClassificationSaveRequestBuilder.java | IHTSDO/snow-owl | apache-2.0 | 3,326 | 96 | codeparrot/github-code |
7cf0405bcd5d2ebefd84a58ed48ed4a7a28fea5f5f97980ed41add7c05c5755e | package world.we.deserve.DAO;
import android.content.ContentValues;
import android.content.Context;
import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;
import java.util.LinkedList;
import java.util.List;
import world.we.deserve.DTO.SensorAcc... | Java | app/src/main/java/world/we/deserve/DAO/SensorAccelerometerSQLiteHelper.java | miguelangelprogramacion/PushSensorData | apache-2.0 | 3,099 | 90 | codeparrot/github-code |
1372a8dc1e442437d79547f41601c928b582ea1ffd9a748b603c9710edb2876d | from django.core.exceptions import ValidationError
from django.db import models
from django.contrib.auth.models import User
from urlparse import urlparse
from repo.models import LearningObjective
def validate_resource_url(u):
o = urlparse(u)
if o.scheme not in ['http', 'https']:
raise ValidationError(... | Python | src/edurepo/resources/models.py | trawick/edurepo | apache-2.0 | 4,199 | 112 | codeparrot/github-code |
400001da701e8ab262e172fe13bdb4de44ec7d95e7e6258fd30492d79a938129 | /*
* Copyright 2005-2014 The Kuali Foundation
*
* Licensed under the Educational Community 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.opensource.org/licenses/ecl1.php
*
* Unless required by... | Java | coeus-code/src/main/java/org/kuali/kra/committee/notification/AgendaCreatedNotificationRenderer.java | blackcathacker/kc.preclean | apache-2.0 | 2,443 | 70 | codeparrot/github-code |
3292960dfaacc689ac722ef87d54bd29d109d0775f9fb62556bdef9e74cdc207 | #ifndef ELEMENT_H
#define ELEMENT_H
#include <QPainter>
#include "Devicetype.h"
class NetworkMap;
class MininetScriptBuilder;
class XmlSerializer;
class Graph;
class NetworkMapDrawer;
class Element
{
private:
int groupId;
int globalId;
public:
Element();
virtual ~Element();
virtual QSize getSize... | C | Core/Map/Element.h | TsyganovIlya/SNet | apache-2.0 | 1,113 | 58 | codeparrot/github-code |
a14236c7776f2b5f8bfcde5073665adf97514770a10fbcb49824abe84ebdba9d | /*
* Copyright 2014 Benoît Prioux
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to... | Java | src/test/java/io/github/binout/jaxrs/csv/app/Person.java | binout/jaxrs-csv | apache-2.0 | 1,277 | 51 | codeparrot/github-code |
ebc0f75a1177af0bdd15cfb0a8d6be185ca4791320aca72d467490769b72fe9c | // Copyright 2020 CUE Authors
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in ... | GO | internal/core/dep/mixed.go | cuelang/cue | apache-2.0 | 2,971 | 147 | codeparrot/github-code |
dd992dd2472b6e3c0d2a7e4f09cc536b8a6c6cd1e7673b0338655f9cec86404b | package com.huawei.esdk.sms.device.sgip;
import java.lang.reflect.Proxy;
import org.apache.log4j.Logger;
import com.huawei.esdk.platform.common.exception.SDKException;
import com.huawei.esdk.platform.nemgr.base.DeviceConnectionBase;
import com.huawei.esdk.platform.nemgr.base.MultiConnDeviceBase;
public class SGIPCo... | Java | source/esdk_sms_neadp_sgip_v12/src/main/java/com/huawei/esdk/sms/device/sgip/SGIPConnection.java | eSDK/esdk_sms | apache-2.0 | 1,428 | 59 | codeparrot/github-code |
0fa582463a6bd0c2e49ad827a7fa926fe8d2fbf08daccc00f632465bb267c95b | <?php
namespace QuickBooksOnline\API\Core\HttpClients;
use QuickBooksOnline\API\Exception\SdkException;
/**
* Class BaseCurl
*
* A Http Client using PHP cURL extension to send HTTP/HTTPS request to QuickBooks Online
* @package QuickBooksOnline
*
*/
class BaseCurl{
/* The cURL extension of PHP */
private $c... | PHP | src/Core/HttpClients/BaseCurl.php | intuit/QuickBooks-V3-PHP-SDK | apache-2.0 | 3,282 | 129 | codeparrot/github-code |
152ca7f56f1eddd92c7562414d11f8caa3b59d10c17aafce416f07e2c7d50a46 | /*
Copyright 2015 Google Inc. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in wri... | C | libcm/cm-argv.c | googlearchive/graphd | apache-2.0 | 5,484 | 190 | codeparrot/github-code |
c01e3a97e17181c968bef6f65972c0e41ba8f49285d1f7ccb9d7e8070ae88352 | /**
* <a href="http://www.openolat.org">
* OpenOLAT - Online Learning and Training</a><br>
* <p>
* Licensed under the Apache License, Version 2.0 (the "License"); <br>
* you may not use this file except in compliance with the License.<br>
* You may obtain a copy of the License at the
* <a href="http://www.apache... | Java | src/main/java/org/olat/core/gui/components/tree/TreeItem.java | stevenhva/InfoLearn_OpenOLAT | apache-2.0 | 1,566 | 64 | codeparrot/github-code |
408570584c81a50d323260c2ed42b8523ebccdecd3d36f9556cce938f3faa160 | //
// ========================================================================
// Copyright (c) 1995-2013 Mort Bay Consulting Pty. Ltd.
// ------------------------------------------------------------------------
// All rights reserved. This program and the accompanying materials
// are made available under the ter... | Java | jetty-spdy/spdy-core/src/main/java/org/eclipse/jetty/spdy/generator/ControlFrameGenerator.java | whiteley/jetty8 | apache-2.0 | 1,709 | 52 | codeparrot/github-code |
14c5c0be5feef756bb0baa9f307bcca48c5bfd4548d16d675c1fc79fecd8fae6 | #!/usr/bin/env python3
""" Maven pom utilities. """
from glob import glob
from os.path import realpath, normpath
from xml.etree.ElementTree import parse
NAME_SPACES = {'ns': 'http://maven.apache.org/POM/4.0.0'}
def get_pom_paths(root):
""" Returns the absolute path of poms that recursively are found in root"""
... | Python | vang/maven/pom.py | bjuvensjo/scripts | apache-2.0 | 1,319 | 33 | codeparrot/github-code |
b0e6380283acb4031e59a7043aaf5aca0f0f86be98f2ac8dfe900b99b74cc489 | /*
* Copyright 2017-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
* the License. A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "licen... | Java | aws-java-sdk-rdsdata/src/main/java/com/amazonaws/services/rdsdata/model/transform/FieldMarshaller.java | aws/aws-sdk-java | apache-2.0 | 3,704 | 74 | codeparrot/github-code |
7544c7399f286b909afb2908dd1efee3825c91ef3c137aed7aa17e65cc6719a6 | /*
* Copyright 2017-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
* the License. A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "licen... | Java | aws-java-sdk-shield/src/main/java/com/amazonaws/services/shield/model/BlockAction.java | aws/aws-sdk-java | apache-2.0 | 2,840 | 89 | codeparrot/github-code |
7e7319777c3a1fd83ff3ab300537dd7ad17b91e60c881f70df89adc85f9e62f3 |
<style>
#onepage-edition-tools input{
/*display: none;*/
}
#onepage-edition-tools hr{
float: left;
width: 100%;
}
#onepage-edition-tools #static-head-tools{
position: fixed;
top:0px;
margin-left:-15px;
margin-right: -15px;
margin-bottom: 10px;... | PHP | views/element/sectionEditTools.php | pixelhumain/co2 | apache-2.0 | 34,954 | 921 | codeparrot/github-code |
95587e9b4da04319aaa38c0176abacb28758385035453e0363c9ca4f8ba9f62c | /***
* Copyright (c) 2009 Caelum - www.caelum.com.br/opensource
* 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
... | Java | vraptor-core/src/test/java/br/com/caelum/vraptor/http/route/DefaultParametersControlTest.java | garcia-jj/vraptor4-fork | apache-2.0 | 12,932 | 340 | codeparrot/github-code |
dedcb4ce36ab2849cabdffcc4cc088681431b737460b94e814ba9766bfcf0956 | <?php
/**
* Copyright (c) 2014 ScientiaMobile, Inc.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
*... | PHP | src/zend_test/library/wurfl-php/WURFL/Handlers/UcwebU3Handler.php | ahoken/phptest | apache-2.0 | 5,801 | 189 | codeparrot/github-code |
4bee19e7d522ea0342765d253071691302fc88b159739c02fcb554226d63ab06 | package org.jboss.examples.ticketmonster.rest;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import java.util.Set;
import org.jboss.examples.ticketmonster.model.Performance;
import org.jboss.examples.ticketmonster.model.Show;
/**
* Metric data for a Show. Contains the identifier for the S... | Java | git/monster/src/main/java/org/jboss/examples/ticketmonster/rest/ShowMetric.java | jim-minter/ose3-demos | apache-2.0 | 1,797 | 70 | codeparrot/github-code |
a5f0cc143e1e7d7a7e95571a230dae84f4d8fc87b3fc88b59d162943690e0e03 | package com.danikula.android.garden.sample.ui;
import java.util.LinkedList;
import java.util.List;
import com.danikula.aibolit.Aibolit;
import com.danikula.android.garden.sample.R;
import com.danikula.android.garden.sample.ui.task.TaskDemoActivity;
import com.danikula.android.garden.ui.list.MutableListAdapter;
import... | Java | sample/src/main/java/com/danikula/android/garden/sample/ui/MainActivity.java | danikula/android-garden | apache-2.0 | 2,463 | 77 | codeparrot/github-code |
efa63ba5cabec5ed6ae8e3679dcc44b4c8d8773bcca3468c511d70321cb9e490 | <?php namespace App\Http\Controllers;
use App\Client;
use App\Contact;
use App\Project;
use Illuminate\Http\Request;
use Validator;
class ProjectController extends Controller {
private $sys_notifications = array();
/**
* Display a listing of the resource.
*
* @return Response
*/
public function index(Req... | PHP | app/Http/Controllers/ProjectController.php | System3D/consultas-tecnicas | apache-2.0 | 8,525 | 272 | codeparrot/github-code |
aca1c503f7405f766718dd9878f2eeb733cb5b2f2d31fc3abc16bd90438dad32 | /*
* Copyright 2008-2009 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/test/java/net/entropysoft/transmorph/converters/StringToCalendarTest.java | cchabanois/transmorph | apache-2.0 | 2,230 | 66 | codeparrot/github-code |
559df8c4f30fc68aeca38a58c2c4b9c8a6322bf817f4e08d0c1fd7deca494439 | /*
* Copyright 2003-2008 Dave Griffith, Bas Leijdekkers
*
* 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 applicab... | Java | plugins/InspectionGadgets/src/com/siyeh/ig/initialization/InstanceVariableInitializationInspection.java | jexp/idea2 | apache-2.0 | 6,741 | 183 | codeparrot/github-code |
5e8c82a62c4810fb39233e0732cf158b04cca7d33b9ffc3fe6c6e1e6cc1522df | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
<title>IWorld.Client</title>
<style type="text/css">
html, body {
height: 100%;
overflow: auto;
}
body {
padd... | HTML | IWorld.Client.Web/IWorld.ClientTestPage.html | returnanapple/zwg-iw | apache-2.0 | 2,740 | 74 | codeparrot/github-code |
59fcd5ffc48b5c4731f46b3cc0b6f1bae73abb105db1cfcb739ca1c89fa438a6 | define([
'Core/Color',
'Core/JulianDate',
'DataSources/ColorMaterialProperty',
'DataSources/ConstantProperty',
'DataSources/SampledProperty',
'Scene/ClassificationType',
'Scene/GroundPrimitive',
'Scene/PrimitiveCollection'
], function(
... | JavaScript | Specs/createGeometryUpdaterGroundGeometrySpecs.js | hirayama968/xx | apache-2.0 | 7,042 | 182 | codeparrot/github-code |
b9554bbcb0abe04ffd22befd8e574aff8ef5be959b8669e80cbe0cb0e17ce200 | package ua.ikonovalov;
import java.util.Iterator;
import java.util.NoSuchElementException;
/**
* class Evenlt
* @author ikonovalov
* @since 07.12.18.
* @version 1.0
*/
public class Evenlt implements Iterator<Integer> {
public int[] values;
public int index = 0;
/**
*
* @param values
... | Java | Junior/Chapter_001_Collections_Pro/src/main/java/ua/ikonovalov/Evenlt.java | kou85/Java-A-to-Z | apache-2.0 | 980 | 54 | codeparrot/github-code |
89d813720606893513f2bf8ac550e383637cbe85855675adea38bde8008e4aed | package com.sibilantsolutions.grison.driver.foscam.dto;
import static com.google.common.base.Preconditions.checkArgument;
import com.google.auto.value.AutoValue;
import com.sibilantsolutions.grison.driver.foscam.type.FosInt32;
import com.sibilantsolutions.grison.driver.foscam.type.FosInt8;
@AutoValue
public abstract... | Java | lib/src/main/java/com/sibilantsolutions/grison/driver/foscam/dto/AudioDataTextDto.java | jtgeiger/grison | apache-2.0 | 1,790 | 64 | codeparrot/github-code |
911a055fe4d7544b9246dfff26a792c473ca852184624a597f8f526f25e4feee | /* 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... | Java | modules/flowable-ui-idm/flowable-ui-idm-rest/src/main/java/org/activiti/app/rest/idm/UserResource.java | roberthafner/flowable-engine | apache-2.0 | 2,049 | 54 | codeparrot/github-code |
f6afa7ba5c5f9a5e4917cbd43c4fa608dd0439f44c867387b844775df445ea37 | /**
* Copyright 2015-2016 Stephan Rauh, http://www.beyondjava.net,
* and Riccardo Massera (TheCoder4.Eu)
* This file is part of BootsFaces.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtai... | Java | src/main/java/net/bootsfaces/listeners/AddResourcesListener.java | mtvweb/BootsFaces-OSP | apache-2.0 | 35,662 | 986 | codeparrot/github-code |
8ff52fb95e5b46f508055447afeb8e14dafea7c5ac295b3fb6ba759490b50e29 | //! HIR walker for walking the contents of nodes.
//!
//! **For an overview of the visitor strategy, see the docs on the
//! `super::itemlikevisit::ItemLikeVisitor` trait.**
//!
//! If you have decided to use this visitor, here are some general
//! notes on how to do so:
//!
//! Each overridden visit method has full co... | Rust | compiler/rustc_hir/src/intravisit.rs | eminence/rust | apache-2.0 | 46,060 | 1,252 | codeparrot/github-code |
3893259c7bd374f12d78854c920a9c0692a4c8fbeafba3504f7750d54069825f | package org.ovirt.engine.ui.webadmin.uicommon.model;
import org.ovirt.engine.ui.uicommonweb.models.SearchableListModel;
import org.ovirt.engine.ui.webadmin.gin.ClientGinjector;
/**
* Default {@link MainModelProvider} implementation for use with tab controls.
*
* @param <T>
* List model item type.
* @... | Java | frontend/webadmin/modules/webadmin/src/main/java/org/ovirt/engine/ui/webadmin/uicommon/model/MainTabModelProvider.java | anjalshireesh/gluster-ovirt-poc | apache-2.0 | 972 | 34 | codeparrot/github-code |
dba08bddc31b70cb393ad91fab570d4c58864aab936b7c59f379003bbe5e9c51 | package org.crazyit.app.domain;
import javax.persistence.*;
/**
* Description:
* <br/>ÍøÕ¾: <a href="http://www.crazyit.org">·è¿ñJavaÁªÃË</a>
* <br/>Copyright (C), 2001-2012, Yeeku.H.Lee
* <br/>This program is protected by copyright laws.
* <br/>Program Name:
* <br/>Date:
* @author Yeeku.H.Lee kongyeeku@163.... | Java | SSH2 Code Kit/05/5.8/Annotation/src/org/crazyit/app/domain/Person.java | runnerfish/ssh2_code_learn | apache-2.0 | 1,395 | 70 | codeparrot/github-code |
4c25e5ca05b0e96f7f7cd98b694a417a6f4c96235c33bc623991bf1f971b72e8 | /*
* Scala (https://www.scala-lang.org)
*
* Copyright EPFL and Lightbend, Inc.
*
* Licensed under Apache License 2.0
* (http://www.apache.org/licenses/LICENSE-2.0).
*
* See the NOTICE file distributed with this work for
* additional information regarding copyright ownership.
*/
package scala.tools.testkit
i... | Scala | src/testkit/scala/tools/testkit/AssertUtil.scala | lrytz/scala | apache-2.0 | 12,596 | 349 | codeparrot/github-code |
d6f85ec88dc4a79baf0b67a14edc0231184a09ee642b45df188e93c0ec238bbd | <!doctype html>
<html class="default no-js">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>LibIndyRuntimeConfig | @korsimoro/indy-sdk</title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet... | HTML | wrappers/node/docs/interfaces/_index_.libindyruntimeconfig.html | korsimoro/indy-sdk | apache-2.0 | 15,215 | 314 | codeparrot/github-code |
806c6ea7c1ce2101b9ff5f56fa6d34fd77a530709ecc9ce666f4e5a5f5d38c6a | /**
* Copyright (C) 2007-2010 Nicholas Berardi, Managed Fusion, LLC (nick@managedfusion.com)
*
* <author>Nicholas Berardi</author>
* <author_email>nick@managedfusion.com</author_email>
* <company>Managed Fusion, LLC</company>
* <product>Url Rewriter and Reverse Proxy</product>
* <license>Microsoft Public Licen... | C# | src/Talifun.AcceptanceTestProxy/UrlRewriter/RuleSet.cs | taliesins/talifun-acceptancetestproxy | apache-2.0 | 14,776 | 547 | codeparrot/github-code |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.