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 |
|---|---|---|---|---|---|---|---|---|
afe37b45bc913ac0592ba06a878a99f17a11f7c0623886ff2c84b4e9dc7362ea | /*
* Licensed to The Apereo Foundation under one or more contributor license
* agreements. See the NOTICE file distributed with this work for
* additional information regarding copyright ownership.
*
* The Apereo Foundation licenses this file to you under the Apache License,
* Version 2.0 (the "License"); you may... | Java | JavaSource/org/unitime/timetable/export/rooms/RoomFeaturesExportCSV.java | nikeshmhr/unitime | apache-2.0 | 7,473 | 186 | codeparrot/github-code |
ca90f5de216e0a0e5f3674233a671fe2cdef411d37bab1e845834dd9581316af | // Application code for the Evothings Viewer app.
// Application object.
var app = {}
// Production server address.
app.defaultServerAddress = 'https://deploy.evothings.com'
// Inserted by build script.
app.viewerVersion = '__APP_VERSION__'
app.initialize = function()
{
// Called on page load and when going back t... | JavaScript | www/js/app.js | mikaelkindborg/evothings-viewer | apache-2.0 | 11,700 | 542 | codeparrot/github-code |
b13c680b811315395f7f592c23af8293933754abb549319c375c2241fb745c9a | # Copyright 2012-2013 OpenStack Foundation
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable la... | Python | eclcli/common/limits.py | anythingrandom/eclcli | apache-2.0 | 3,896 | 102 | codeparrot/github-code |
60f2a110fafbc6df4907bf91aee3cb8047c6e406518660a74ef549cfd9368b8e | /*
* Copyright (c) 2014-2018 by The Monix Project Developers.
* See the project homepage at: https://monix.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... | Java | monix-execution/jvm/src/main/java/monix/execution/internal/atomic/NormalJava8BoxedInt.java | Wogan/monix | apache-2.0 | 2,204 | 75 | codeparrot/github-code |
f0e0b4853cbd8b4465b111feacd22f4c45a107f1e3e01f8202fefc34e18ffdb0 | /*
* Copyright 2010-2014 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 "l... | C# | sdk/src/Services/Route53/Generated/Model/Internal/MarshallTransformations/StatusReportUnmarshaller.cs | mwilliamson-firefly/aws-sdk-net | apache-2.0 | 3,201 | 92 | codeparrot/github-code |
3be0d76e40e9be7f88d162d363d18b1b8bfc75ec70a0173c9cc43cee2a0846c1 | package com.developerbus.getcondo.utils;
/**
* Created by bruno on 11/22/13.
*/
import android.content.Context;
import com.android.volley.RequestQueue;
import com.android.volley.toolbox.Volley;
import com.developerbus.getcondo.models.Session;
public class Settings {
// Configuration
public final static S... | Java | getcondo-android/GetCondo/src/main/java/com/developerbus/getcondo/utils/Settings.java | DesenvolvedoresGoogle/GetCondo | apache-2.0 | 1,180 | 55 | codeparrot/github-code |
b5d3f5405ff740e40b683dc75abd770f8a83b206547d710e85dbfd7e15133b46 | /*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distribut... | Java | plugin/trino-base-jdbc/src/main/java/io/trino/plugin/jdbc/credential/CredentialProviderModule.java | electrum/presto | apache-2.0 | 5,110 | 125 | codeparrot/github-code |
3e1e12bd93f74271986ccf7c648ee2a193208a29650abe0a904c1e2246222bac | <!DOCTYPE HTML>
<!-- 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="image/png" sizes="32x32" href="/assets/favicon-32x32.png"><link rel="icon" type="image/png... | HTML | docs/doc/reference/com/google/android/exoplayer2/text/ttml/package-tree.html | google/ExoPlayer | apache-2.0 | 6,919 | 168 | codeparrot/github-code |
a3d0bcb44e48172ab8bc26feb1760861e5e74151072556dc6e2e639327a71bf3 | var
mongoose = require("mongoose"),
express = require("express"),
crypto = require("crypto"),
validator = require("validator"),
AccountModel = require("../models/account.js"),
util = require("util"),
router = express.Router();
router.route("/api/logout").all(function(req, res, next) {
logger.info("logout call... | JavaScript | app/routers/authenticate.js | training4developers/bootcamp_08172015 | apache-2.0 | 1,470 | 66 | codeparrot/github-code |
ab64a3e3ebc802a8a688164199cb26d4560c98ecd690776439de5f56783a8a59 | package com.example.jeson.webviewtest;
import android.app.Activity;
import android.os.Bundle;
import android.webkit.WebView;
import android.webkit.WebViewClient;
public class MainActivity extends Activity {
private WebView webView;
@Override
protected void onCreate(Bundle savedInstanceState) {
s... | Java | a25_WebViewTest/app/src/main/java/com/example/jeson/webviewtest/MainActivity.java | JesonandGao/Coding_Test | apache-2.0 | 914 | 32 | codeparrot/github-code |
d09885e2ab873fa075bbb4114f281b103eed9ad0665c23907d37c9f4e21674ef | app.controller('usersController', [
'$scope', '$modal', '$log','userRepository', 'serverService',
'dialogSevice', 'entityState', 'role', 'manageListOfUsers',
'manageUserSate', 'notify', 'notifyType',
'icons', 'constants', 'userStateControll','validationService',
function ($scope, $modal, $log, user... | JavaScript | Main/SoftServe.ITA.PrompterPro/PrompterPro.WebApplication/app/Admin/controllers/users-controller.js | PTRPlay/PrompterPro | apache-2.0 | 5,855 | 174 | codeparrot/github-code |
09c35e2df7cf1c73f4725ead11ce559bb1201b4967bde4529dec65d8ad566b04 | /*
*Copyright (c) 2005-2013, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
*
*WSO2 Inc. licenses this file to you 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/lic... | Java | components/identity/org.wso2.carbon.identity.application.authentication.framework/src/main/java/org/wso2/carbon/identity/application/authentication/framework/util/FrameworkUtils.java | maheshika/carbon-identity | apache-2.0 | 26,172 | 738 | codeparrot/github-code |
803a889fcb873c86929ca904e4de10272d98407a2d778429787a93f089c4c0f6 | #!/usr/bin/env bash
#
# Copyright 2017 Hortonworks.
#
# 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... | Shell | bin/import-certificate-into-truststore.sh | hortonworks/streamline | apache-2.0 | 2,418 | 94 | codeparrot/github-code |
dd42b1093947bbf21dc712c9f91179f83ccf9d794e7b8fecb1206a14d8e7c655 | /**
* 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-milo/src/main/java/org/apache/camel/component/milo/client/MiloClientProducer.java | kevinearls/camel | apache-2.0 | 2,540 | 74 | codeparrot/github-code |
4507a71db3ee7e0ba982223510b54e2f1d08131fa7afe8c19d00286f0649561d | /**
* Author: Bob Chen
*/
package com.jcommerce.core.action;
import java.lang.reflect.Field;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
import java.lang.reflect.Modifier;
import java.sql.Time;
import java.sql.Timestamp;
import java.util.ArrayList;
import java.util.Collection;... | Java | spring/core/src/main/java/com/jcommerce/core/action/MapAction.java | jbosschina/jcommerce | apache-2.0 | 7,814 | 210 | codeparrot/github-code |
40a8db5c751ea18331273b566d13e450d4251890668fdfe40c5b36e6260bfa07 | /*
* 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... | Java | plugin-infra/go-plugin-access/src/main/java/com/thoughtworks/go/plugin/access/notification/NotificationPluginInfoBuilder.java | kierarad/gocd | apache-2.0 | 1,652 | 44 | codeparrot/github-code |
5c9c79cd646951afb7d7bda7b8d3232cd490a3cb53b51db77eddfc86033a4593 | /*
Derby - Class org.apache.derby.impl.sql.catalog.TabInfoImpl
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 u... | Java | java/org.apache.derby.engine/org/apache/derby/impl/sql/catalog/TabInfoImpl.java | apache/derby | apache-2.0 | 34,841 | 1,180 | codeparrot/github-code |
d2a3b5d8f56d6d562c88eccd120f0bcd33a25213eb62843637ca2164620401b8 | using System;
using System.Collections.Generic;
using System.Net;
using System.Threading;
using Arch.CMessaging.Client.Net.Core.Buffer;
using Arch.CMessaging.Client.Net.Core.File;
using Arch.CMessaging.Client.Net.Core.Filterchain;
using Arch.CMessaging.Client.Net.Core.Future;
using Arch.CMessaging.Client.Net.Core.Serv... | C# | Arch.CMessaging.Client/Net/Core/Session/AbstractIoSession.cs | sdgdsffdsfff/hermes.net | apache-2.0 | 23,639 | 801 | codeparrot/github-code |
0d85901b4caa9b347a8fa3d18662038766c9501bfbbcc390e6f89261471d5bf4 | /*
* Copyright (C) 2014-2014 52°North Initiative for Geospatial Open Source
* Software GmbH
*
* 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/licens... | JavaScript | src/main/js/models/settings.js | 52North/js-sensorweb-client | apache-2.0 | 8,765 | 212 | codeparrot/github-code |
7c2f995bf0855420376b33da1ba329e1a0bbaac56b4b6e362b85a9afde9c70bb | #!/usr/bin/env bash
# Copyright 2015 The TensorFlow 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... | Shell | tensorflow/tools/pip_package/build_pip_package.sh | annarev/tensorflow | apache-2.0 | 12,329 | 377 | codeparrot/github-code |
31ac8a5db6edd8919202223c9ac449bd5dc72c5bf70989c755c5b8c5ba7388a6 | /*
* 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 | java/org/apache/catalina/ha/session/BackupManager.java | apache/tomcat | apache-2.0 | 8,748 | 285 | codeparrot/github-code |
fb6237599f04efa483a323f4ed68f091f79b1d85376bc7fb8c859f54c21dab2e | var db = require('../../app')
exports.index = function(req, res) {
var id = req.query.id
var news
if (!id) {
db.where({
category: 1
}).get('news', function(err, results, fields) {
console.log(results)
res.render('index', {
news: results
})
})
} else {
db.where({
... | JavaScript | task14/nodeNews/app/controllers/index.js | idenet/jikexueyuan | apache-2.0 | 807 | 42 | codeparrot/github-code |
e9379b5a01d6ae9d170a3678f803a045bb797d822afbbaa9508e72fac10ac26e | /*
* 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... | Java | common/src/main/java/com/thoughtworks/go/domain/PipelineTimelineEntry.java | kierarad/gocd | apache-2.0 | 9,031 | 279 | codeparrot/github-code |
bf692fc9d9d314cf58c92b38545ffc1538b4f88bd4b73927e58448bb8eb435d6 | package com.mapswithme.maps.gallery.impl;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import com.mapswithme.maps.R;
import com.mapswithme.maps.gallery.Holders;
import com.mapswithme.maps.gallery.I... | Java | android/src/com/mapswithme/maps/gallery/impl/SimpleLoadingAdapterStrategy.java | matsprea/omim | apache-2.0 | 1,359 | 48 | codeparrot/github-code |
75fdc83461323064bf6d4c603b26bf92cc9fc9310711568ec15e5e8b01f79deb |
/*
* Copyright (C) 2015 Archie L. Cobbs. All rights reserved.
*/
package io.permazen.core.type;
import com.google.common.base.Converter;
import java.io.File;
import java.io.Serializable;
/**
* {@link File} type. Null values are supported by this class.
*/
public class FileType extends StringEncodedType<File> {... | Java | permazen-coreapi/src/main/java/io/permazen/core/type/FileType.java | permazen/permazen | apache-2.0 | 1,026 | 45 | codeparrot/github-code |
311809604c87e7fe8bb9b24e2e240e0e87a1065ef337611ced05ec25dffb1585 | /* $Id$
*
* 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 "Lice... | C | binding-c/runtime/c/src/main/common/etch_nativearray.c | OBIGOGIT/etch | apache-2.0 | 18,457 | 554 | codeparrot/github-code |
6599a079fc4ac99bc8a0dbde84d5691cd9371b1ee83b0602494a9a204d30f0dd | /**
* Copyright (C) 2014-2018 LinkedIn Corp. (pinot-core@linkedin.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
*
* Unle... | Java | thirdeye/thirdeye-pinot/src/main/java/com/linkedin/thirdeye/anomalydetection/alertFilterAutotune/DummyAlertFilterAutoTune.java | apucher/pinot | apache-2.0 | 995 | 33 | codeparrot/github-code |
533328fdfdc203f0b00ac0250feef2c51adf52a51f3ed12aa1f0f6f6aaa75b85 | //############################################################################################
//##
//# Copyright (C) 2014-2018 Dario Bruneo, Francesco Longo, Giovanni Merlino, Nicola Peditto
//##
//# Licensed under the Apache License, Version 2.0 (the "License");
//# you may not use this file except in compliance with... | JavaScript | modules/plugins-manager/nodejs/plugin-apis.js | MDSLab/s4t-lighthing-rod | apache-2.0 | 2,851 | 120 | codeparrot/github-code |
2ba8520f93b92e54ce25404c27ce4910cd68e834475ba8993e2831cdb77b6a6d | /*
* Licensed to Metamarkets Group Inc. (Metamarkets) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. Metamarkets licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); yo... | Java | server/src/test/java/io/druid/query/dimension/LookupDimensionSpecTest.java | taochaoqiang/druid | apache-2.0 | 8,108 | 220 | codeparrot/github-code |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.