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 |
|---|---|---|---|---|---|---|---|---|
2582920e40fb31ad8ffc80926dba69ef2cf169616dc48607a84f9a7650250be0 | /*
* Copyright 2022 Apollo 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 i... | JavaScript | apollo-portal/src/main/resources/static/scripts/directive/directive.js | nobodyiam/apollo | apache-2.0 | 14,922 | 395 | codeparrot/github-code |
ddc78ee93a71ae4382834aac09b3f5b08215fcd6ff2c7eb7e992e152d32fb99e | package com.redhat.demos.rhmfk;
import javax.persistence.Entity;
import java.io.Serializable;
import javax.persistence.Id;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Column;
import javax.persistence.Version;
import javax.persistence.Enumerated;
import com... | Java | rhmf-admin/src/main/java/com/redhat/demos/rhmfk/Vote.java | ktenzer/RHMF | apache-2.0 | 2,230 | 110 | codeparrot/github-code |
a5b1537a24d00a4de32d910caa8c44798643afa24827dfd81095b46ca4b210fa | package com.gh.mygreen.xlsmapper.cellconverter.impl;
import java.math.BigDecimal;
import com.gh.mygreen.xlsmapper.Configuration;
import com.gh.mygreen.xlsmapper.cellconverter.CellConverter;
import com.gh.mygreen.xlsmapper.fieldaccessor.FieldAccessor;
/**
* {@link Double}型を処理する{@link CellConverter}を作成するクラス。... | Java | src/main/java/com/gh/mygreen/xlsmapper/cellconverter/impl/DoubleCellConverterFactory.java | mygreen/xlsmapper | apache-2.0 | 1,614 | 50 | codeparrot/github-code |
f69e33c3fb0358c231981181e36c9f5622f210835ec318e694719187390b192c | /* ========================================================================
* PlantUML : a free UML diagram generator
* ========================================================================
*
* Project Info: http://plantuml.com
*
* If you like this project or if you find it useful, you can support us at:
* ... | Java | src/plantuml-asl/src/gen/lib/cgraph/refstr__c.java | talsma-ict/umldoclet | apache-2.0 | 7,031 | 243 | codeparrot/github-code |
ad0bc71bab2027ffd0a54a33c3d5ea080746ef123320591d66e69d8eee295cc8 | /*
* Copyright 2015-2021 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | Java | src/main/java/org/docksidestage/dbflute/bsentity/BsMemberSecurity.java | lastaflute/lastaflute-example-harbor | apache-2.0 | 17,116 | 447 | codeparrot/github-code |
54bb8840b211cc410c7d4cb5d506794beb6708ffcd0c824f80965083d72920a3 | /*
* 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 | core/src/main/java/org/elasticsearch/cluster/routing/allocation/decider/ThrottlingAllocationDecider.java | zkidkid/elasticsearch | apache-2.0 | 11,840 | 201 | codeparrot/github-code |
034df1e1ebfc10335f8ccd201332450cfcbefe9c5f0f1ae4f60fb4f44ed1e512 | /*
* Copyright (C) 2016 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable l... | Java | Lesson09-ToDo-List/T09.05-Exercise-QueryAllTasks/app/src/main/java/com/example/android/todolist/data/TaskContentProvider.java | OmarHP/ud851-Excercises | apache-2.0 | 6,833 | 171 | codeparrot/github-code |
d59b1dce2f40c5da10a632dccc5dd1ff58c96718fb6806a84e08f44299c8c8f3 | package derived
import (
"fmt"
"github.com/coreos/kube-aws/model"
)
// NewEtcdNodes derives etcd nodes from user-provided etcd node configs
func NewEtcdNodes(nodeConfigs []model.EtcdNode, cluster EtcdCluster) ([]EtcdNode, error) {
count := cluster.NodeCount()
result := make([]EtcdNode, count)
for etcdIndex := 0... | GO | model/derived/etcd_nodes.go | AlmogBaku/kube-aws | apache-2.0 | 1,169 | 41 | codeparrot/github-code |
7920751f700122517936198e54110e63912f0869c5352bdef4367952c4c60c0d | /*
* Copyright (C) 2013 Facebook, 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 | src/test/java/com/facebook/hive/metastore/client/TestHiveMetastoreClient.java | facebookarchive/swift-hive-metastore | apache-2.0 | 4,093 | 114 | codeparrot/github-code |
67766bb74a73def696c7b290b6d9c0435d799ac2cd36170162b7cee4798e903e | /*
Copyright 2014 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/cloudprovider/providers/gce/gce.go | linsun/kubernetes11 | apache-2.0 | 48,317 | 1,466 | codeparrot/github-code |
633b9a2ef0be2f612e36588fb027b32e90075bfec4d56c0ab655cc13bbf98170 | /*
* 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 | components/camel-nagios/src/main/java/org/apache/camel/component/nagios/NagiosProducer.java | objectiser/camel | apache-2.0 | 3,420 | 83 | codeparrot/github-code |
df429c1a057829c7d02ff2750be543ad683c8826afca113e619b536d4674e6cb | /* */
"format esm";
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r... | JavaScript | WebApplication3/src/WebApplication3/jspm_packages/npm/angular2@2.0.0-beta.17/es6/prod/src/platform/browser/location/path_location_strategy.js | tzerb/Learning | apache-2.0 | 4,380 | 110 | codeparrot/github-code |
ff3aa88af7c540c98fae16334b9bbb145fa09a682fcd7d5a0e2a0066d0f98443 | package nl.knaw.dans.coar.main;
import nl.knaw.dans.coar.fedora.FedoraConnector;
import nl.knaw.dans.coar.fedora.PerDateDatasetIterator;
import nl.knaw.dans.coar.shed.Conveyor;
import nl.knaw.dans.coar.tika.TikaProcessor;
import nl.knaw.dans.coar.walk.ArchisDetector;
import nl.knaw.dans.coar.walk.CoordinateDetector;
... | Java | src/main/java/nl/knaw/dans/coar/main/CoarAppFixed.java | dans-er/coar | apache-2.0 | 932 | 31 | codeparrot/github-code |
7e2f3c84d53689e4a431631c302cdc84d5ab910bc428474588923fcbfadd13d7 | var express = require('express')
var Model = require('../models/models')
var router = express.Router()
// Set routes
// List all orders
router.get('/', function(req, res) {
Model.Order.find({}, function(err, orders) {
if (err) {
res.status(500).send(err)
}
else {
res.status(201).send(orders... | JavaScript | prototype/routers/order.js | wilkmaia/wm-representacoes-2 | apache-2.0 | 3,603 | 183 | codeparrot/github-code |
896b45c570808c93bb5c9490961074e8d4ccde8038052eff9d954241bc52121b | /*******************************************************************************
*
* Copyright (C) 2015-2021 the BBoxDB project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the Licens... | Java | bboxdb-server/src/test/java/org/bboxdb/test/distribution/placement/TestRandomRessourcePlacement.java | jnidzwetzki/scalephant | apache-2.0 | 5,964 | 134 | codeparrot/github-code |
9382c36861d4e8dff9f0f4e4010e297b2f77fc58e8b3268cd6324167d168842c | /*
* Waltz - Enterprise Architecture
* Copyright (C) 2016, 2017, 2018, 2019 Waltz open source project
* See README.md for more information
*
* 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 ... | JavaScript | waltz-ng/client/asset-cost/components/section/asset-costs-section.js | rovats/waltz | apache-2.0 | 3,268 | 130 | codeparrot/github-code |
5c7233354de56813d7dad15c6d6fa5b68aaf3b6a0e768573f70e0cbb55b15f94 | package com.structurizr.model;
import com.structurizr.util.StringUtils;
import javax.annotation.Nonnull;
import javax.annotation.Nullable;
import java.util.Collections;
import java.util.LinkedHashSet;
import java.util.Set;
/**
* Represents a custom element.
*/
public final class CustomElement extends GroupableElem... | Java | structurizr-core/src/com/structurizr/model/CustomElement.java | structurizr/java | apache-2.0 | 3,689 | 98 | codeparrot/github-code |
e3c581fa2f7b1ec1c63dee54636607f7885bead02e77478562ee00d760403976 | /*
* 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-auditmanager/src/main/java/com/amazonaws/services/auditmanager/model/transform/AssessmentFrameworkShareRequestMarshaller.java | aws/aws-sdk-java | apache-2.0 | 7,019 | 98 | codeparrot/github-code |
4de3b3188bbb77cd376f070dcf5e5ea0524de5c69efa07741af448b642932c1a | /*!
* Clean Blog v1.0.0 (http://startbootstrap.com)
* Copyright 2014 Start Bootstrap
* Licensed under Apache 2.0 (https://github.com/IronSummitMedia/startbootstrap/blob/gh-pages/LICENSE)
*/
// Tooltip Init
$(function() {
$("[data-toggle='tooltip']").tooltip();
$( ".site-heading h1" ).hide();
});
// Contact ... | JavaScript | js/clean-blog.js | mravinale/mravinale.github.io | apache-2.0 | 51,033 | 1,046 | codeparrot/github-code |
422e54b377648c425add1e0197cb0d4dfb957cfda46a74ba80226df3ad7743ed | package com.xifan.module;
import android.app.Activity;
import android.content.pm.ActivityInfo;
import android.view.Window;
import android.view.WindowManager;
import com.facebook.react.bridge.Callback;
import com.facebook.react.bridge.ReactApplicationContext;
import com.facebook.react.bridge.ReactContextBaseJavaModule... | Java | android/app/src/main/java/com/xifan/module/OrientationModule.java | helengray/XiFan | apache-2.0 | 2,996 | 81 | codeparrot/github-code |
e4eb3e1dbb4b505a11cf9897f5b9cf2b879e84923461c9581d95cfab704fb2fb | /*
* This file or a portion of this file is licensed under the terms of
* the Globus Toolkit Public License, found in file GTPL, or at
* http://www.globus.org/toolkit/download/license.html. This notice must
* appear in redistributions of this file, with or without modification.
*
* Redistributions of this Softwar... | C | src/tools/pegasus-kickstart/machine/linux.c | pegasus-isi/pegasus | apache-2.0 | 17,192 | 489 | codeparrot/github-code |
2995aaf002ab7de51800807ad13b6909307313cce43d0fc77060127bfadca470 | /******************************************************************************
* Copyright 2018 The Apollo 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
... | C | modules/perception/obstacle/camera/lane_post_process/common/connected_component.h | startcode/apollo | apache-2.0 | 10,955 | 360 | codeparrot/github-code |
2682b3f29f0005eadcb889d0d88441a857be340b4aab5fefe52dfb3a842157fd | require 'yaml'
require 'multi_json'
module RubySkynet
module Zookeeper
module Json
# Deserialize from JSON entries in Zookeeper
module Deserializer
def self.deserialize(value)
return value if value.nil? || (value == '')
if value.strip.start_with?('{') || value.strip.start... | Ruby | lib/ruby_skynet/zookeeper/json/deserializer.rb | skynetservices/ruby_skynet | apache-2.0 | 1,875 | 64 | codeparrot/github-code |
cecf6b9213959380affbc510707c3de615303635783d54db755b45b7ee39d05d | # coding: utf-8
from flask import Blueprint
from flask import request
from flask import redirect
from flask import url_for
from flask import render_template
from flask import flash,session
from tools.MysqlBase import *
from tools.SqliteBase import *
mysql = MysqlBase('python')
class Todo():
pass
todos_view = Bl... | Python | web/views/todos.py | maxis1314/pyutils | apache-2.0 | 2,942 | 92 | codeparrot/github-code |
06a5221f146c66a05d38350570279022b719526c31e51c24a1ec25d37312e5db | /**
* CommonFramework
*
* Copyright (C) 2017 Black Duck Software, Inc.
* http://www.blackducksoftware.com/
*
* 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 o... | Java | src/main/java/com/blackducksoftware/tools/commonframework/standard/workbook/CsvWriter.java | blackducksoftware/common-framework | apache-2.0 | 3,872 | 135 | codeparrot/github-code |
3d3c0427cc6d4089d1740e3f2fa0452d3a38378837655fc422ba9ac64947b773 | /**
* 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 | cql/src/main/java/com/huawei/streaming/cql/semanticanalyzer/parser/context/RowsWindowContext.java | jack6215/StreamCQL | apache-2.0 | 3,117 | 121 | codeparrot/github-code |
0cd6f1ddfb275fc5f890619f726609ea4d7808566e4aba2ed61cd4d23464a77e | package baidumapsdk.demo;
import android.app.Activity;
import android.app.AlertDialog;
import android.content.DialogInterface;
import android.content.DialogInterface.OnClickListener;
import android.os.Bundle;
import android.view.View;
import android.widget.TextView;
import com.baidu.mapapi.navi.BaiduMapAppN... | Java | android/baidumap_sdk/demo/src/baidumapsdk/demo/NaviDemo.java | rxwen/gps_clock | apache-2.0 | 2,310 | 79 | codeparrot/github-code |
af7e2b375de832cdddda9b55de580c2d83d50654b4d3970faa59d4fe9ef59d14 | /*
* Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" fil... | C++ | aws-cpp-sdk-lambda/source/model/GetFunctionConfigurationRequest.cpp | ambasta/aws-sdk-cpp | apache-2.0 | 1,404 | 51 | codeparrot/github-code |
1354009411bba1059c9edfca86deb66ad456411938138313cffc9039b7886e26 | (function () {
const fs = require("fs");
const readline = require('readline');
const mkdirp = require("mkdirp");
const CombinedStream = require("combined-stream");
module.exports = {
/**
* Read a file line by line
* @param {string} filename
* @param {function(err... | JavaScript | src/data/modules/fileUtils.js | Babalela01/MH-Tools | apache-2.0 | 1,639 | 47 | codeparrot/github-code |
e0e5f82f2f9398548cfe7aef17ef4358a00291f343a0934d40e13af6a335887b | /*
* 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 | android/sdk/src/main/java/com/taobao/weex/appfram/storage/DefaultWXStorage.java | acton393/incubator-weex | apache-2.0 | 12,423 | 335 | codeparrot/github-code |
8188e536a1f16db779f324b54647f65e4b15299dcc85f2361c4f8f0411a65bed | /**
* Copyright (C) 2009 Progress Software, Inc. All rights reserved.
* http://fusesource.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/li... | Java | mop-core/src/main/java/org/fusesource/mop/support/CommandDefinition.java | chirino/mop | apache-2.0 | 4,672 | 164 | codeparrot/github-code |
33aaad584c36b5a86c1cd713a4926310aa919e41fefc829458119237447cf3d5 | /*
* Copyright (c) 2016 DataSand,Sharon Aicler and others. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v1.0 which accompanies this distribution,
* and is available at http://www.eclipse.org/legal/epl-v10.html
*/
package o... | Java | network/src/main/java/org/datasand/network/nnode/Switch.java | saichler/DataSand | apache-2.0 | 3,650 | 100 | codeparrot/github-code |
a6cc64b1068803c042da2fc0b3d0f1b77a24c942f517b4de6f44e52e8a171d9a | package com.example.bianqian.db;
import com.example.bianqian.bmobbasic.User;
import org.litepal.crud.DataSupport;
import java.util.Date;
/**
* Created by 刘通 on 2017/8/2.
*/
public class LocalUserNote extends DataSupport {
private long id;
private String noteId;
private String note;
private Da... | Java | app/src/main/java/com/example/bianqian/db/LocalUserNote.java | NicoLiutong/BianQian | apache-2.0 | 1,368 | 81 | codeparrot/github-code |
d976fc1383d5bca7f4770f8edfbc28025368824e5d598c32e3e602be14f8bca7 | /*
* Copyright 2008-2011 Wolfgang Keller
*
* 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 ... | C | src/JpegDecoder/JpegSegmentsRead.c | dreamsxin/101_browser | apache-2.0 | 9,503 | 250 | codeparrot/github-code |
f79342d41799cfab94fdeea98ff0c7840edb06dba2efb630bdcb49f5ca51b2a0 | package gov.va.med.lom.vistabroker.admin.data;
import java.io.Serializable;
public class SoftwarePackage implements Serializable{
private String namespace;
private String packageName;
private String AdpacSupport;
private String ItsSupport;
public void setNamespace(String nam... | Java | ll-vistaBroker/ll-vistabroker-ejb3/src/main/java/gov/va/med/lom/vistabroker/admin/data/SoftwarePackage.java | VHAINNOVATIONS/AVS | apache-2.0 | 984 | 41 | codeparrot/github-code |
f506db496d48eaf2b59f0c07533e5e12ae8e5c4dcac0d9a8cc51a1364af80a6b | import errno
import signal
import os
import socket
import time
SERVER_ADDRESS = (HOST, PORT) = '', 8888
REQUEST_QUEUE_SIZE = 1024
def grim_reaper(signum, frame):
while True:
try:
pid, status = os.waitpid(
-1,
os.WNOHANG,
)
except OSError:
... | Python | hydra/server1.py | zenanhu/pluto | apache-2.0 | 1,675 | 69 | codeparrot/github-code |
811ef337ac736d578a328d412e3e6b4637d012b2045e25b8cbe0ced8648ac4af | package org.mini2Dx.core.collections.concurrent;
import org.junit.Ignore;
import org.junit.Test;
import org.mini2Dx.gdx.utils.IntFloatMap;
import org.mini2Dx.gdx.utils.IntIntMap;
import java.util.Random;
import java.util.concurrent.CountDownLatch;
import java.util.concurrent.atomic.AtomicInteger;
import static org.j... | Java | core/src/test/java/org/mini2Dx/core/collections/concurrent/ConcurrentIntIntMapTest.java | mini2Dx/mini2Dx | apache-2.0 | 4,168 | 115 | codeparrot/github-code |
7dafc88971bc30655e5cb335f9218000f8dea76c0d09b4e38a0deee5e56fea35 | <?php
require_once $CFG->dirroot."/lib/lms_lib.php"; // During transition
if ( ! defined('COOKIE_SESSION') ) {
ini_set('session.use_cookies', '0');
ini_set('session.use_only_cookies',0);
ini_set('session.use_trans_sid',1);
}
if ( ! isset($CFG) ) die("Please configure this product using config.php");
if... | PHP | setup.php | csev/webauto | apache-2.0 | 1,483 | 48 | codeparrot/github-code |
d46fbf24a330c35f89ac94624c391823da6499c02fee80f86a7c13bb2bcbdbec | /*
* Copyright 2021 HM Revenue & Customs
*
* 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 a... | Scala | test/views/businessdetails/letters_addressSpec.scala | hmrc/amls-frontend | apache-2.0 | 2,828 | 84 | codeparrot/github-code |
9a0155c341655c6870558ebabd75e9e3e6914da1cdeb225924d6a442a5510ce8 | <?php
namespace App\Helpers;
use App\User;
use Hash;
use Response as output;
use Session;
use Symfony\Component\HttpKernel\Exception\HttpException;
use Validator;
/*
* @author eddymens <eddymens@devless.io>
*composed of most common used classes and functions
*/
class Helper
{
/**
* application error heap.... | PHP | app/Helpers/Helper.php | paynegreen/laravelheroku | apache-2.0 | 9,387 | 330 | codeparrot/github-code |
686ff71c4a2fa1bea7985c58f02c93997e550e14d0ef9ee08454fb37955e64e0 | /*
Copyright (c) 2011, Sony Ericsson Mobile Communications AB
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright notice, this
list of co... | Java | 3rdParty/SmartExtensionUtils/src/com/sonyericsson/extras/liveware/extension/util/registration/RegistrationInformation.java | einvalentin/buildwatch | apache-2.0 | 10,278 | 287 | codeparrot/github-code |
8f70edab71a3ea15dff2982b922b142904cb75978867d5046ac760f2806a602e | package com.superSaller.controller;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
import javax.servlet.http.HttpServletResponse;
import org.springframework.security.core.GrantedAuthority;
import org.springframework.security.core.context.SecurityContextHolder;
import org.springframewo... | Java | SuperSaller/src/com/superSaller/controller/IDVerifyController.java | ArvinSiChuan/SupperSaller | apache-2.0 | 1,662 | 52 | codeparrot/github-code |
52fad088f8eec69e81c21dd0dfd3a011256a30323ff7149e8c8dc15bfebd0048 | 'use strict';
var CesiumMath = require('./Math');
/**
* @private
*/
var CylinderGeometryLibrary = {};
/**
* @private
*/
CylinderGeometryLibrary.computePositions = function(length, topRadius, bottomRadius, slices, fill){
var topZ = length * 0.5;
var bottomZ = -topZ;
var twoSlice = slices + slices;
... | JavaScript | Modules/Core/lib/CylinderGeometryLibrary.js | lasalvavida/node-cesium-experimental | apache-2.0 | 1,566 | 58 | codeparrot/github-code |
fa21a38ec0594c0aa6348314bf1ae2245d8cb036e8ac41b5172f23c7e2077adf | /*
* Copyright 2000-2017 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/debugger/streams/trace/impl/handler/PeekCall.java | bibaev/stream-debugger-plugin | apache-2.0 | 2,135 | 78 | codeparrot/github-code |
9e16d61dd424bbb01a539b2fe5b978e8973f84b946e27949c57eb1b358993bd8 | // Copyright 2021 gRPC 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 i... | C++ | src/core/lib/surface/builtins.cc | ejona86/grpc | apache-2.0 | 2,165 | 50 | codeparrot/github-code |
ab7c09f33bdf8328cb3ec7f982343cec255fa155af3d35f28189d24f0126cd21 | //-----------------------------------------------------------------------
// <copyright company="CoApp Project">
// Copyright (c) 2010-2013 Garrett Serack and CoApp Contributors.
// Contributors can be discovered using the 'git log' command.
// All rights reserved.
// </copyright>
// <license>
// ... | C# | Scripting/Languages/PropertySheetV3/RValue/Collection.cs | perpetual-motion/clrplus | apache-2.0 | 2,831 | 82 | codeparrot/github-code |
a2aa6efc9e244452bb9552e09ebc0c2c635bb1206af55fca4be46de95312c33b | // MainFrm.cpp : implmentation of the CMainFrame class
//
/////////////////////////////////////////////////////////////////////////////
#include "stdafx.h"
#include "Ribbon.h"
#include "resource.h"
#include "aboutdlg.h"
#include "InsideDragView.h"
#include "MainFrm.h"
BOOL CMainFrame::PreTranslateMessage(MSG* pMsg)
... | C++ | InsideDrag/MainFrm.cpp | DCeres/InsideDrag | apache-2.0 | 4,620 | 157 | codeparrot/github-code |
2c89dec165ba6d9a8417b77bd3fcdc8309dd99ebf36ed29eeec69e82e9fe39a7 | package com.github.ninerules;
import java.nio.file.Path;
import org.eclipse.jdt.core.dom.CompilationUnit;
import com.github.ninerules.entities.FileName;
import com.github.ninerules.rules.Validator;
import com.github.ninerules.rules.jdtvisitor.JdtValidator;
import com.github.ninerules.rules.results.Results;
import co... | Java | src/main/java/com/github/ninerules/Target.java | tamada/9rules | apache-2.0 | 1,078 | 38 | codeparrot/github-code |
9675ef918b9a126d7fbb94bcd8abd2f3d4739e89d9e52ff49b0f6ebaa9075f1d | /*
* Copyright 2015 Simone Casagranda.
*
* 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 | wearable/src/main/java/com/alchemiasoft/books/fragment/AddNoteFragment.java | SimoneCasagranda/android-wear-tutorial | apache-2.0 | 5,667 | 163 | codeparrot/github-code |
a90bea366f6073f4746b064046bc600f9c70cd3425a50d5b9cbd326d101c530e | /*
* Copyright 2011-2013 Esrille 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 agre... | C++ | src/EventImp.cpp | esrille/escudo | apache-2.0 | 3,444 | 175 | codeparrot/github-code |
31ff0fada7dba6f20b0f80333238509ed063d8590193ae98d73a94c8f9cdcfec | /*
* Copyright 2016 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | Java | spring-cloud-starter-task-spark-cluster/src/main/java/org/springframework/cloud/task/app/spark/cluster/SparkClusterTaskConfiguration.java | spring-cloud-task-app-starters/spark-cluster | apache-2.0 | 5,606 | 133 | codeparrot/github-code |
0404d6add77c2f2ee406d35135641292d1b96507f4572786a0e143e1e0466f5e | /*
* 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-personalize/src/main/java/com/amazonaws/services/personalize/model/CategoricalHyperParameterRange.java | jentfoo/aws-sdk-java | apache-2.0 | 6,540 | 220 | codeparrot/github-code |
e9f72024f283676e1c29764f6e02b40b0aa3999968bfa7c0613322a091649c3c | using System;
using System.Collections.Generic;
using System.Text;
using Newtonsoft.Json;
using WikiClientLibrary.Infrastructures;
namespace WikiClientLibrary.Wikia.WikiaApi
{
[JsonObject(MemberSerialization.OptIn)]
public class UserInfo
{
/// <summary>User ID.</summary>
[JsonProperty("us... | C# | WikiClientLibrary.Wikia/WikiaApi/UserInfo.cs | CXuesong/WikiClientLibrary | apache-2.0 | 1,852 | 59 | codeparrot/github-code |
068280fdb07d42eb6adb366a509cd76d0f1d8b84be3884fde53edaf04b64d876 | <?php include '..\AdmCrm\connectionADM.php';
session_start();
if ( ! isset( $_SESSION['USUARIO'] ) && ! isset( $_SESSION['ACESSO'] ) ) {
// Ação a ser executada: mata o script e manda uma mensagem
echo '<script type="text/javascript"> window.location.href = "http://dd42150:8087/CESUDESK/NewCesudesk/index.php"... | PHP | AdmCrm/editaGrupo.php | alexvitolo/CESUDESK | apache-2.0 | 14,077 | 344 | codeparrot/github-code |
c3a9b2c42786d0db11f31ccf25fde5710ab5d40d8a437d95b548112c1bfb00ae | use std::vec::Vec;
use gnuplot::*;
/// Draws a graph with x-axis indicating the iteration number and
/// y-axis showing the cost at that iteration.
pub fn draw_cost_graph(fg : &mut Figure, cost_history : &Vec<f64>) {
let mut x = Vec::with_capacity(cost_history.len());
for i in 0..cost_history.len() {
x.push(i... | Rust | src/graph.rs | xasmx/rust-ml | apache-2.0 | 1,586 | 49 | codeparrot/github-code |
456d1b0721413fdb91f54b34c4db782d4e2227d808daaa9428aebd0246ef772d | using SharpGEDParser.Model;
using System.Collections.Generic;
namespace SharpGEDParser.Parser
{
public class RepoCitParse : StructParser
{
private static readonly Dictionary<string, TagProc> tagDict = new Dictionary<string, TagProc>()
{
{"CALN", calnProc},
{"MEDI", medi... | C# | SharpGEDParse/SharpGEDParser/Parser/RepoCitParse.cs | fire-eggs/YAGP | apache-2.0 | 2,506 | 74 | codeparrot/github-code |
bfaa33b0622493c464ad443558ade0bd4670c9926fe2308caae7ecd5884c2195 | # Copyright 2010 OpenStack Foundation
# Copyright 2013 NTT corp.
# 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/LIC... | Python | cinder/image/glance.py | spring-week-topos/cinder-week | apache-2.0 | 18,489 | 507 | codeparrot/github-code |
abd28de0bb5eb38d2a993942be94f67ba3f55c828abedfb409e59c96e7f5cfc1 | package com.xloong.bluetoothsocketdemo;
import android.app.Activity;
import android.bluetooth.BluetoothAdapter;
import android.bluetooth.BluetoothDevice;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.content.IntentFilter;
import android.os.Bundl... | Java | app/src/main/java/com/xloong/bluetoothsocketdemo/ClientActivity.java | hnlbxb2004/BluetoothSocket | apache-2.0 | 4,766 | 153 | codeparrot/github-code |
d8cf0cbbfa3e71122f3a546bb6626252e2c64e1400ab1500ab9097aed13a480c | package com.gang.practice.spring.service;
import com.gang.practice.spring.po.User;
import java.util.List;
import java.util.Map;
/**
* @ClassName: UserService
* @Description:
* @Author GaoGang
* @Date 2016-08-22 15:54
* @Version V1.0
*/
public interface UserService<T> {
public boolean addUser(User entity);
... | Java | src/main/java/com/gang/practice/spring/service/UserService.java | fightinggang/spring-web | apache-2.0 | 586 | 32 | codeparrot/github-code |
fafa1248e64ab64ad1786df426d0b300ef421c1e826a0a8332aa84c1186783ef | (function(module) {
var articleView = {};
// articleView.handleNav = function() {
// $('.top-nav').on('click', '.tab', function(event){
// event.preventDefault();
// $('.tab-content').hide();
// $('#' + $(this).data('content')).fadeIn();
// });
// $('.top-nav .tab:first').click();
/... | JavaScript | scripts/views/experienceView.js | hpats67/myportfolio | apache-2.0 | 2,550 | 82 | codeparrot/github-code |
aece42ac9985c14685b14e648c99f7d17e01bd9e732406d0ca8b9db19389cd92 | /*
* Copyright 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 applicabl... | Java | gson/src/main/java/android/orm/gson/Deserializer.java | saserr/android-orm | apache-2.0 | 6,481 | 190 | codeparrot/github-code |
9be203ba1f725102417d519088f6e7f7e5b47a1c5c990821eee8945f742ae4fe | /**
* Copyright 2012 Netflix, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed t... | Java | hystrix-core/src/main/java/com/netflix/hystrix/HystrixThreadPool.java | dmgcodevil/Hystrix | apache-2.0 | 11,307 | 256 | codeparrot/github-code |
9b0f6c683650317848da963ed0599cab234807b16464434d9f0b9561e191874e | /*
* 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 | dubbo-rpc/dubbo-rpc-api/src/main/java/com/alibaba/dubbo/rpc/RpcException.java | dadarom/dubbo | apache-2.0 | 2,857 | 101 | codeparrot/github-code |
e2d6f2255f54748dfe429338ec0adfd5a407af265d3685d5b3b9a290c6eae269 | /*
* Copyright 2022 Red Hat
*
* 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 applicable law or agreed ... | Java | app/src/test/resources/org/jboss/hal/processor/mbui/form/Mbui_ResetHandlerView.java | michpetrov/hal.next | apache-2.0 | 3,680 | 99 | codeparrot/github-code |
3552c1316d06fb1840559bed410965889bbf8ff909d1d85d69aa77e2575484b8 | =head1 LICENSE
Copyright [1999-2014] Wellcome Trust Sanger Institute and the EMBL-European Bioinformatics Institute
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/licen... | Perl | modules/Bio/EnsEMBL/Compara/RunnableDB/MemberDisplayLabelUpdater.pm | dbolser-ebi/ensembl-compara | apache-2.0 | 10,313 | 337 | codeparrot/github-code |
978a58afd408dd38bddf29258836d791c87a030e0df1e2f08262435635cf6e8d | /*
Copyright 2014 Reo_SP
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
dist... | Java | src/net/sbfmc/utils/CharsetConventer.java | reo7sp/SBF-Bukkit-Plugin | apache-2.0 | 3,235 | 109 | codeparrot/github-code |
efc3a85a55a1ea2b6c7b61b457492e6267b021e00b12a88ebc1de38f48e4754d | #
# 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 not... | Python | examples/cnn/autograd/mnist_cnn.py | nudles/incubator-singa | apache-2.0 | 10,259 | 299 | codeparrot/github-code |
bb2597a804a3dace57151acb89e6ee9a9798eb1b98d82557310438bd17384ea6 |
package org.openestate.is24.restapi.xml.gis;
import java.io.Serializable;
import java.net.URI;
import java.util.ArrayList;
import java.util.Calendar;
import java.util.List;
import javax.annotation.Generated;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax... | Java | Core/src/main/jaxb/org/openestate/is24/restapi/xml/gis/Regions.java | OpenEstate/OpenEstate-IS24-REST | apache-2.0 | 27,492 | 635 | codeparrot/github-code |
5be628774cbce287f2f525bee29cd28194817f80e03d084ac0dc23cbf9a3f278 | sap.ui.define([
"sap/ui/core/mvc/View",
"sap/ui/core/mvc/HTMLView",
"./AnyViewAsync.qunit"
], function(View, HTMLView, asyncTestsuite) {
// setup test config with generic factory
var oConfig = {
type : "HTML",
factory : function(bAsync) {
return sap.ui.view({
type : "HTML",
viewName : "testdata.mvc... | JavaScript | src/sap.ui.core/test/sap/ui/core/qunit/mvc/AsyncHTMLView.qunit.js | cschuff/openui5 | apache-2.0 | 1,162 | 49 | codeparrot/github-code |
8e51e876ffc3147c74023dff58de0c2a7046e3a52fe2afb5b9405c107cc25c0d | package org.jetbrains.plugins.scala.codeInspection.syntacticSimplification
import com.intellij.codeInspection.{LocalInspectionTool, ProblemHighlightType, ProblemsHolder}
import com.intellij.openapi.project.Project
import com.intellij.psi.{PsiElement, PsiElementVisitor, PsiWhiteSpace}
import org.jetbrains.plugins.scala... | Scala | scala/scala-impl/src/org/jetbrains/plugins/scala/codeInspection/syntacticSimplification/ScalaUnnecessarySemicolonInspection.scala | jastice/intellij-scala | apache-2.0 | 3,962 | 82 | codeparrot/github-code |
250699b4c4f2732a627cbb1b125018e20561256fd906d6ddace05f6532157273 | /*
* 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 | providers/azureblob/src/main/java/org/jclouds/azureblob/functions/ParseBlobPropertiesFromHeaders.java | yanzhijun/jclouds-aliyun | apache-2.0 | 2,996 | 74 | codeparrot/github-code |
99ba590e97209a7aeed79ecb99465aec79b7ab8ac73c4879ed6226725c05044a | /*
Copyright 2014 Sarah Wong
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, s... | C++ | configuregetf0.cpp | hobakurafuto/swgetf0 | apache-2.0 | 1,347 | 37 | codeparrot/github-code |
2bb3c3a6e02ef2bb49f5a0fd8d5cf6518326687282d0d89d45037592cf5afc02 | package com.esri.hadoop.rtree;
import com.esri.hadoop.Extent;
import org.apache.hadoop.fs.FSDataInputStream;
import java.util.Iterator;
import java.util.Stack;
/**
* RTreeIterator is used to search over the rtree,
* in conjunction with an input stream
*/
public class RTreeIterator implements Iterator<MBRHandle>
{... | Java | src/main/java/com/esri/hadoop/rtree/RTreeIterator.java | mraad/FSSpatialIndex | apache-2.0 | 2,271 | 101 | codeparrot/github-code |
ac39ac8ddab0aad61c9c281de2c7f5be113e10cc721237bd26b32d37ff70c8bb | package com.socrata.soql.parsing
import scala.util.parsing.input.Position
final case class SoQLPosition(line: Int, column: Int, sourceText: String, offset: Int) extends Position {
protected def lineContents = SoQLPosition.findLineFor(sourceText, offset)
}
object SoQLPosition {
def findLineFor(source: String, off... | Scala | soql-standalone-parser/src/main/scala/com/socrata/soql/parsing/SoQLPosition.scala | socrata-platform/soql-reference | apache-2.0 | 938 | 40 | codeparrot/github-code |
c95e09bb84cbb24cbdd512db7e88a6363865b599e529b48029c5be9e8b3fa954 | package net.community.chest.jmx;
import java.lang.reflect.Method;
import javax.management.MBeanOperationInfo;
import javax.management.MBeanParameterInfo;
import net.community.chest.reflect.ClassUtil;
/**
* <P>Copyright 2007 as per GPLv2</P>
*
* @author Lyor G.
* @since Aug 14, 2007 12:38:52 PM
*/
public class ... | Java | chest/base-utils/jmx/src/main/java/net/community/chest/jmx/ReflectiveMBeanOperationInfo.java | lgoldstein/communitychest | apache-2.0 | 1,913 | 64 | codeparrot/github-code |
5abb01ce7e463be4c307f427775f403dd720192f085933851418d204695a5cb6 | /*******************************************************************************
* 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-common/src/main/java/com/quakearts/webapp/facelets/tag/listener/ProfileListener.java | kwakutwumasi/Quakearts-JSF-Webtools | apache-2.0 | 2,381 | 64 | codeparrot/github-code |
eaa4a8cdb79bcfa9e1573964b81b01ae51ffa0552de4710a010478d3641c74a5 | /*
Copyright 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 applicable law or agreed t... | Java | core/src/test/java/io/neba/core/util/ReflectionUtilTest.java | unic/neba | apache-2.0 | 13,419 | 428 | codeparrot/github-code |
c73836ee0a9c8a511b35f66ac85f784e248bc532aeccd7156f0d06b989b70f5b | package mil.army.usace.ehlschlaeger.digitalpopulations.io;
import java.io.BufferedWriter;
import java.io.File;
import java.io.FileWriter;
import java.io.IOException;
import java.io.PrintWriter;
import java.util.Iterator;
import java.util.logging.Logger;
import mil.army.usace.ehlschlaeger.digitalpopulations.... | Java | PopulationRealizer/Research GIS Kernel/src/mil/army/usace/ehlschlaeger/digitalpopulations/io/HohRznWriter.java | chuckre/DigitalPopulations | apache-2.0 | 11,174 | 262 | codeparrot/github-code |
1eec75063b73b027f50c31a783d74d0c11e22a54ccfa294535500b92aa5a4ea8 | package Configuration;
import PageGuest.AccomodationData_INPUT;
import PageGuest.TravelData_INPUT;
import org.xml.sax.Attributes;
/**
* Created by Andras on 25/12/2016.
*/
public abstract class ConfigurationHandlerChain
{
private ConfigurationHandlerChain mNext = null;
private Configuration mConfigura... | Java | DataCollector/src/main/java/Configuration/ConfigurationHandlerChain.java | andrasigneczi/TravelOptimizer | apache-2.0 | 2,196 | 81 | codeparrot/github-code |
3e2730b00aeb01dc1ed78bf9166e4457b2f14565aa3251224314f783bf1adcee | package com.jivesoftware.os.upena.deployable.endpoints.ui;
import com.jivesoftware.os.upena.deployable.ShiroRequestHelper;
import com.jivesoftware.os.upena.deployable.region.ManagedDeployablePluginRegion;
import com.jivesoftware.os.upena.deployable.soy.SoyService;
import javax.inject.Singleton;
import javax.servlet.h... | Java | upena-deployable/src/main/java/com/jivesoftware/os/upena/deployable/endpoints/ui/ManagedDeployablePluginEndpoints.java | jivesoftware/upena | apache-2.0 | 4,725 | 113 | codeparrot/github-code |
9af976e6fc8f005baf996c7facd0cc07e7344ae4b98fec315c3daaf52fef14eb | package org.apereo.cas.web.report;
import org.apereo.cas.configuration.CasConfigurationProperties;
import org.apereo.cas.web.report.util.ControllerUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.actuate.endpoint.EndpointProperties;
import org.springframework.boot.a... | Java | support/cas-server-support-reports/src/main/java/org/apereo/cas/web/report/DashboardController.java | gabedwrds/cas | apache-2.0 | 3,899 | 100 | codeparrot/github-code |
5ca2c571d0544ad1b90473d38f82352d83d3c3e6f04cfbe3dc38479f0de0b300 | package org.libss.util.reflection
import java.sql.Timestamp
import java.util.Date
import org.libss.util.helpers.{Color, ReflectionFieldValueHandler, SafeStringOptionHelper}
import scala.reflect.ClassTag
/**
* Class for handling path to field
*/
case class FieldPath[T](parts: Seq[FieldPathPart]) extends Reflecti... | Scala | libss-utils/src/main/scala/org/libss/util/reflection/FieldPath.scala | kanischev/libss | apache-2.0 | 5,997 | 170 | codeparrot/github-code |
0771eb3b140aac4d3a6d6e2e5608d251ccde49468aaee11dd5960e5fc2156b46 | package com.khipu.api.model;
import com.khipu.StringUtil;
import io.swagger.annotations.*;
import com.fasterxml.jackson.annotation.JsonProperty;
@ApiModel(description = "")
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen")
public class PaymentsCreateResponse {
priv... | Java | src/main/java/com/khipu/api/model/PaymentsCreateResponse.java | khipu/khipu-api-java-client | apache-2.0 | 5,288 | 162 | codeparrot/github-code |
818d58d0019631fb1ff553feda54eda8e276d26faf07be156601833a4ddfda47 | /*
* Copyright (c) 1988-1997 Sam Leffler
* Copyright (c) 1991-1997 Silicon Graphics, Inc.
*
* Permission to use, copy, modify, distribute, and sell this software and
* its documentation for any purpose is hereby granted without fee, provided
* that (i) the above copyright notices and this permission notice appear... | C | deps/libgdal/gdal/frmts/gtiff/libtiff/tif_write.c | naturalatlas/node-gdal | apache-2.0 | 26,659 | 833 | codeparrot/github-code |
55d5f1bfe07cbdbf5b37f5ec88cedd2e5d0507c751f98fdefb6983f85e6fe58b | # coding=utf-8
# Copyright 2015 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)
from collections imp... | Python | src/python/pants/engine/exp/configuration.py | slyphon/pants | apache-2.0 | 10,107 | 239 | codeparrot/github-code |
07dc961ea2df393635e8fb907f7ea3e39beccceaf9f21c971904d29bb44bc669 | /**
* Copyright (C) 2015-Present McLeod Moores Software Limited. All rights reserved.
*/
package com.mcleodmoores.config;
import static com.opengamma.test.Assert.assertEqualsNoOrder;
import static org.testng.Assert.assertEquals;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
imp... | Java | projects/validation/src/test/java/com/mcleodmoores/config/DiscountingCurveTypesForConfigurationValidatorTest.java | McLeodMoores/starling | apache-2.0 | 15,042 | 238 | codeparrot/github-code |
424ff8a1468dc5cd32be85f8da885be388d4173e94659e9b2a42351d81901fe7 |
package org.drip.sample.forwardratefuturespnl;
import java.util.List;
import org.drip.analytics.date.JulianDate;
import org.drip.feed.loader.*;
import org.drip.historical.attribution.*;
import org.drip.quant.common.FormatUtil;
import org.drip.service.env.EnvManager;
import org.drip.service.product.FundingFuturesAPI;... | Java | src/main/java/org/drip/sample/forwardratefuturespnl/ES1Attribution.java | lakshmiDRIP/DRIP | apache-2.0 | 4,615 | 115 | codeparrot/github-code |
7fa8e578a8e512978b7cd71bc8a43485721a540d8766af58c81e300b2ecbad91 | jui.define('uix.tree', [ 'util' ], function(_) {
/**
* UI Core Class
*
*/
var UINode = function(data, tplFunc) {
var self = this;
/**
* Public Properties
*
*/
this.data = data; // 해당 노드의 데이터
this.element = null; // 해당 노드의 엘리먼트
this.index = null; // 계층적 구조를 수용할 수 있는 ... | JavaScript | src/main/webapp/resources/js/uix/tree.js | ParkMinKyu/intranet | apache-2.0 | 20,600 | 888 | codeparrot/github-code |
3ee3931ae355b9caf56467d2dff72d100e311f00e8be8c03e2623ee270a1d870 | package io.sebi.spasm.rechat;
/**
* Created by Sebastian Aigner
*/
/**
* A rechat message is a single message sent by a user. It comes with a lot of metadata, which is partially stored in
* the attributes of the message.
*/
public class RechatMessage implements Comparable<RechatMessage> {
public String id;
... | Java | src/main/java/io/sebi/spasm/rechat/RechatMessage.java | SebastianAigner/spasm | apache-2.0 | 1,076 | 35 | codeparrot/github-code |
84d45192eec2a6fd97cb564d647e0ef108630e7600aa07c6850542c65647b892 | /*
* Copyright (c) 2008-2016, Hazelcast, 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 ... | Java | hazelcast/src/main/java/com/hazelcast/durableexecutor/impl/operations/ReplicationOperation.java | lmjacksoniii/hazelcast | apache-2.0 | 3,804 | 115 | codeparrot/github-code |
b8f5132620fb9d72e4461247a6c2bdfd6ec4ad8d56ae16ae3173e4f1b32d9077 | package com.demoxin.minecraft.tmc.ticon;
import net.minecraft.block.Block;
import net.minecraft.creativetab.CreativeTabs;
import net.minecraft.item.Item;
import tterrag.core.common.compat.CompatabilityRegistry;
import tterrag.core.common.compat.ICompatability;
import tterrag.core.common.util.CreativeTabsCustom;
import... | Java | src/main/java/com/demoxin/minecraft/tmc/ticon/TiCon.java | DemoXinMC/TMC | apache-2.0 | 1,802 | 70 | codeparrot/github-code |
4f1eec55f82a590895e8adee0041b2ffe6f59919b6507d48736ab1e34557824d | <!doctype html>
<html class="default no-js">
<head>
<meta charset="utf-8">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<title>Observation | stdlib</title>
<meta name="description" content="stdlib is a standard library ... | HTML | public/docs/ts/latest/interfaces/_datasets_ssa_us_births_2000_2014_docs_types_index_d_.observation.html | stdlib-js/www | apache-2.0 | 18,241 | 337 | codeparrot/github-code |
a6d3942fc3e7a26a1fa79e0d3f9dc209a43465c4ddc461f095ec44ade2a004aa | using System;
using System.Collections;
using System.Collections.Concurrent;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Runtime.CompilerServices;
using System.Threading;
namespace RoslynPad.UI
{
public abstract class NotificationObject : INotifyPropertyChanged, I... | C# | src/RoslynPad.Common.UI/ViewModels/NotificationObject.cs | aelij/roslynpad | apache-2.0 | 3,343 | 109 | codeparrot/github-code |
6f3a512a442055058396ee2081989476991c606f1ad6195b6ce7538089ab3407 | package com.twitter.scalding.beam_backend
import com.stripe.dagon.Rule
import com.twitter.scalding.Execution.{ToWrite, Writer}
import com.twitter.scalding.typed._
import com.twitter.scalding.{CFuture, CancellationHandler, Config, Execution, ExecutionCounters}
import java.io.InputStream
import java.nio.channels.Channel... | Scala | scalding-beam/src/main/scala/com/twitter/scalding/beam_backend/BeamWriter.scala | twitter/scalding | apache-2.0 | 4,658 | 123 | codeparrot/github-code |
e90ea89ad3ac01999e4766b48ab2b6007d9db5e1569e6e920f585da86e218b5b | package com.mycompany.myapp.domain;
import com.fasterxml.jackson.annotation.JsonIgnore;
import org.hibernate.validator.constraints.Email;
import org.neo4j.ogm.annotation.NodeEntity;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;
import javax.validation.constraints.Size;
impo... | Java | src/main/java/com/mycompany/myapp/domain/User.java | inauman/dev.helloworldx1-1483148090068 | apache-2.0 | 4,286 | 192 | codeparrot/github-code |
331cde05ae87d965695ed240092c3e518267dc4abbfcdb151c02b10029e029f8 | /*
* Copyright 2009-2015 PIANOo; TenderNed programma.
*/
package nl.famscheper.rh01477141;
import org.apache.deltaspike.core.api.config.view.controller.PreRenderView;
import org.apache.deltaspike.core.api.config.view.navigation.ViewNavigationHandler;
import javax.enterprise.inject.Model;
import javax.faces.applicat... | Java | src/main/java/nl/famscheper/rh01477141/ErrorPageController.java | fbascheper/jboss-eap-rh-testcase-01477141 | apache-2.0 | 4,034 | 117 | codeparrot/github-code |
48d5f206a6dfc33045ab498148c7ac1ffbb075abcdfd0a219df89c6ddfbcc099 | /*
* Copyright 2013-2019 Real Logic Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agree... | Java | sbe-tool/src/test/java/uk/co/real_logic/sbe/EncodedCarTestBase.java | marksantos/simple-binary-encoding | apache-2.0 | 3,787 | 117 | codeparrot/github-code |
653f49e87d2e41a2b5068b6cba9f09ab87f53bee174b8001f1e62c4cd196cf0a | /*
* Copyright (c) 2012, Riven
*
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* * Redistributions of source code must retain the above copyright notice,
* this lis... | Java | src/net/indiespot/media/Movie.java | WhenPigsFlyBus/video_storm | apache-2.0 | 5,490 | 202 | codeparrot/github-code |
7071a94910c802cfdc9a1e28bdeea8819e02a9f2af815f36898a949e5c81c37e | // Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#pragma once
#include <unordered_set>
#include <string>
/**
* Simple host filter which in its default empty state implicitly includes all
* hosts, or only an explicit subset iff at least one host has been provid... | C | configutil/src/lib/hostfilter.h | vespa-engine/vespa | apache-2.0 | 1,355 | 50 | codeparrot/github-code |
063cb8bb6251bd4d456ce02bfd7a028b5c3dee003cd21bc53541e20b8dd7c8ff | package org.metaborg.meta.lang.dynsem.interpreter.nodes.rules.premises;
import org.metaborg.meta.lang.dynsem.interpreter.nodes.matching.MatchPattern;
import org.metaborg.meta.lang.dynsem.interpreter.nodes.rules.InvokeRelationNode;
import org.metaborg.meta.lang.dynsem.interpreter.nodes.rules.RelationPremiseInputBuilder... | Java | org.metaborg.meta.lang.dynsem.interpreter/src/main/java/org/metaborg/meta/lang/dynsem/interpreter/nodes/rules/premises/RelationPremise.java | metaborg/dynsem | apache-2.0 | 3,206 | 80 | codeparrot/github-code |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.