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 |
|---|---|---|---|---|---|---|---|---|
65f50824c7b7fe17c964a3a1f506e0af626654a95e7730bb2cf3cfb47c767d8b | /*! ******************************************************************************
*
* Pentaho Data Integration
*
* Copyright (C) 2002-2017 by Pentaho : http://www.pentaho.com
*
*******************************************************************************
*
* Licensed under the Apache License, Version 2.0 (th... | Java | engine/src/main/java/org/pentaho/di/job/entries/deletefolders/JobEntryDeleteFolders.java | TatsianaKasiankova/pentaho-kettle | apache-2.0 | 15,930 | 447 | codeparrot/github-code |
905bd239b4f7555b2661671fcceac927de07e0de212980da994fceb003ef2490 | /*
* Copyright 2019 EPAM Systems
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in ... | Java | src/main/java/com/epam/ta/reportportal/ws/controller/FileStorageController.java | reportportal/service-api | apache-2.0 | 5,705 | 141 | codeparrot/github-code |
c7e2bb71fc408589778d5c3f6112eda4e673a68436a0225170a4e4608275cb64 | /*
* DBeaver - Universal Database Manager
* Copyright (C) 2010-2021 DBeaver Corp and others
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICE... | Java | plugins/org.jkiss.dbeaver.ext.mysql/src/org/jkiss/dbeaver/ext/mysql/tasks/MySQLToolTableCheckSettings.java | Sargul/dbeaver | apache-2.0 | 2,432 | 77 | codeparrot/github-code |
62fbf72953cdfe452971fc01eaad98af9e2a0273ab8f3ad16a73920a5feee42b | // Copyright 2005-2010 Gallio Project - http://www.gallio.org/
// Portions Copyright 2000-2004 Jonathan de Halleux
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.a... | C# | src/Extensions/VisualStudio/Gallio.VisualStudio.Shell/UI/ToolWindows/DefaultToolWindowManager.cs | citizenmatt/gallio | apache-2.0 | 2,771 | 82 | codeparrot/github-code |
c5767d28162246dc409d95327c4febcb8dff4fde7c44fd490b8f6981aa7d4a2b | """
.. module: lemur.authorizations.models
:platform: unix
:copyright: (c) 2018 by Netflix Inc., see AUTHORS for more
:license: Apache, see LICENSE for more details.
.. moduleauthor:: Netflix Secops <secops@netflix.com>
"""
from sqlalchemy import Column, Integer, String
from sqlalchemy_utils import JSONType... | Python | lemur/authorizations/models.py | Netflix/lemur | apache-2.0 | 1,090 | 35 | codeparrot/github-code |
e6d48520291a5d37c0be962221555f42edc7fb55f55af1b2dc51a8aaf2409b14 |
#Requires -Version 5.1
Set-StrictMode -Version 'Latest'
& (Join-Path -Path $PSScriptRoot -ChildPath 'Initialize-Test.ps1' -Resolve)
Describe 'Add-Table' {
BeforeEach {
Start-RivetTest
$Global:Error.Clear()
}
AfterEach {
Stop-RivetTest
}
It 'should... | PowerShell | Test/Add-Table.Tests.ps1 | RivetDB/Rivet | apache-2.0 | 6,624 | 215 | codeparrot/github-code |
86627c0c67d22cccc35add5e36941da108c2f112eafe7ec990cfc69021581a8c | // Copyright (c) 2021 Alachisoft
//
// 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... | C# | Src/NCStorage/StorageProviders/InMemoryStorageProvider.cs | Alachisoft/NCache | apache-2.0 | 2,188 | 74 | codeparrot/github-code |
717a2c8cf9d5839f32dabdf38cef2b25d007968fbf1c8308462b2d1bdb4b37b7 | package ca.pfv.spmf.test;
import java.io.IOException;
import java.io.UnsupportedEncodingException;
import java.net.URL;
import ca.pfv.spmf.algorithms.clustering.kmeans.AlgoKMeans;
/**
* Example of how to use the KMEans algorithm, in source code.
*/
public class MainTestKMeans_saveToFile {
public static void ma... | Java | src/ca/pfv/spmf/test/MainTestKMeans_saveToFile.java | dragonzhou/humor | apache-2.0 | 910 | 35 | codeparrot/github-code |
54a028e9f0b96da730f8d5f64682c7f6cb3f84604249c98ee713680f3786f0e3 | /*
* In the name of Allah
* This file is part of The "Quran Teacher or Learn Arabic" Project. Use is subject to
* license terms.
*
* @author: Fazle Rabbi Rahat
*
*/
package QuranTeacher;
import javax.swing.ButtonGroup;
import javax.swing.JComboBox;
import javax.swing.JPanel;
import java.... | Java | QuranTeacher/src/QuranTeacher/ AudioPreferencesPanel.java | adeelahmedkhanabbasi/QuranTeacher | apache-2.0 | 6,792 | 222 | codeparrot/github-code |
f1ed4a38b42420ad6dc5d21d1614363e63bcd798b234c92b74c5272bc805d9d4 | /*分页JS*/
var rsss = false;
$(function () {
$(".leftNav_side").css("min-height", $(".leftNav_side").height());
$(window).resize(function () {
$(".leftNav_side").height($(window).height());
}).trigger("resize");//左侧菜单高度自适应,但是保留内容最小高度
//切换左导航一级菜单
$(".Nav_lvl dt").click(function () {
... | JavaScript | src/main/webapp/manage/js/navleft.js | iminto/baicai | apache-2.0 | 3,960 | 106 | codeparrot/github-code |
e3d0c641f0b0128272b1a47a15838fde872cb419a174e909aa262ee2bec37314 | import {
store
} from '../store.js';
import {
selectGameCurrentState,
selectGameChest,
selectGameName
} from '../selectors.js';
import {
deepCopy,
getProperty,
setPropertyInClone
} from '../util.js';
export const UPDATE_GAME_ROUTE = 'UPDATE_GAME_ROUTE';
export const UPDATE_GAME_STATIC_INFO = "UPDATE_GA... | JavaScript | server/static/src/actions/game.js | jkomoros/boardgame | apache-2.0 | 7,052 | 243 | codeparrot/github-code |
3ddbe45a137ef1e1875596d8fa30c3f0a8c584bc184a2e2d49a9b5905df4d721 | -- See the NOTICE file distributed with this work for additional information
-- regarding copyright ownership.
--
-- 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... | SQL | sql/patch_37_38.sql | Ensembl/ensembl-compara | apache-2.0 | 56,758 | 830 | codeparrot/github-code |
49b8a44e1726c14502614c4881abe61060a57539495cc42e28fbef73bd9a36ad | /* Copyright 2019 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 required by applicable law or a... | C++ | tensorflow/core/profiler/utils/event_span.cc | aam-at/tensorflow | apache-2.0 | 16,952 | 485 | codeparrot/github-code |
2933fc168bb3e9d147a6d0b5fd13bf3a93a168db17111035524498525de2b499 | /*
*
*
* 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
*
* (th... | Java | source-kafka/src/main/java/org/apache/kylin/source/kafka/util/KafkaRequester.java | haoch/kylin | apache-2.0 | 7,848 | 185 | codeparrot/github-code |
25fd8012f0a05e50b4e999cdbb8df0777ebb586804eb346b82c7dfd24b5b8b66 | package com.flipkart.hbaseobjectmapper.testcases;
import com.flipkart.hbaseobjectmapper.HBAdmin;
import com.flipkart.hbaseobjectmapper.Records;
import com.flipkart.hbaseobjectmapper.WrappedHBColumnTC;
import com.flipkart.hbaseobjectmapper.testcases.daos.reactive.CitizenDAO;
import com.flipkart.hbaseobjectmapper.testca... | Java | src/test/java/com/flipkart/hbaseobjectmapper/testcases/TestsReactiveHBDAO.java | flipkart-incubator/hbase-object-mapper | apache-2.0 | 29,551 | 431 | codeparrot/github-code |
94c130c943473c9b799a1e25d0945c8ebf55a45b2322f7ab51da733be33a185d | package com.afollestad.appthemeengine.views;
import android.content.Context;
import android.content.res.TypedArray;
import android.util.AttributeSet;
import androidx.appcompat.widget.AppCompatRadioButton;
import com.afollestad.appthemeengine.ATE;
import com.afollestad.appthemeengine.R;
/**
* @author Aidan Follesta... | Java | themelib/src/main/java/com/afollestad/appthemeengine/views/ATERadioButton.java | A-Miracle/QiangHongBao | apache-2.0 | 1,317 | 47 | codeparrot/github-code |
95a5c97fc9927a5aeae60495b84d5c24e061bf6e533078a0d38455a03300cb40 | /*
* Copyright (c) 2008, 2009, 2010, 2011, 2012, 2013, 2014 Nicira, 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
*
* Unles... | C | lib/dpif.c | onecloud/ovs-igmp-v3 | apache-2.0 | 54,787 | 1,700 | codeparrot/github-code |
45b8fe5ccfa85aa7855697c5212c4a2d320e92e7d7ceeff046bf6feac51cb8de | import React from 'react';
import PropTypes from 'prop-types';
import Preselect from 'material-ui-icons/ThumbUp';
import IconWithTooltipButton from '../../common/iconWithTooltipButton';
import withApplicationStatusChange from '../../common/hoc/withApplicationStatusChange';
import { APPLICATION_STATUSES } from '../../..... | JavaScript | frontend/src/components/eois/buttons/preselectButton.js | unicef/un-partner-portal | apache-2.0 | 981 | 38 | codeparrot/github-code |
72f25ac67ebb1aceb8f44ecdbda0fee4922f9147fc0b35502cdf5553aa53c5ee | package net.prank.core;
import net.prank.example.ExampleObject;
import net.prank.example.ExampleScoreCard;
import org.junit.Test;
import java.math.BigDecimal;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Map;
import java.util.Set;
import java.util.concurrent.Future;
import java.util.concurrent... | Java | src/test/java/net/prank/core/PranksterTest.java | dmillett/prank | apache-2.0 | 12,515 | 279 | codeparrot/github-code |
ce7cbc53c646005b4dc3ed1c859296690fdea927765697245463a6f2ac053372 | package qj.util.cache;
import java.util.ArrayList;
import qj.util.funct.F2;
public class Cache2<A, B, T> {
private final F2<A, B, T> func;
ArrayList<Holder> holders = new ArrayList<Holder>();
public Cache2(F2<A, B, T> func) {
this.func = func;
}
public T get(A a, B b) {
for (Holder holder : holders) {
... | Java | src/main/java/qj/util/cache/Cache2.java | quanla/quan-util-core | apache-2.0 | 615 | 40 | codeparrot/github-code |
0f32d3a2d51915a293ad191c6cb1da839aa849f7397b5c1f889d6e296f2d188d | =head1 LICENSE
Copyright [1999-2015] Wellcome Trust Sanger Institute and the EMBL-European Bioinformatics Institute
Copyright [2016-2021] 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 obta... | Perl | modules/EnsEMBL/Web/Attributes.pm | Ensembl/ensembl-webcode | apache-2.0 | 4,554 | 131 | codeparrot/github-code |
59363b51c4db6e0013e3719469c9eefdffe23b1aa7366fb0a4c009ddf63ffde1 | package org.adligo.tests4j_4jacoco.plugin.discovery;
import java.io.IOException;
import java.util.Collection;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Map;
import java.util.Set;
import org.adligo.tests4j.models.shared.association.ClassAssociationsLocal;
import org.adligo.tests4j.models.sha... | Java | src/org/adligo/tests4j_4jacoco/plugin/discovery/CircularDependenciesDiscovery.java | adligo/tests4j_4jacoco.adligo.org | apache-2.0 | 4,828 | 145 | codeparrot/github-code |
0531e7a87ec07833586a2dd721227f317939cb717285e89184799da91839cbab | function PreferencesAssistant() {
/* this is the creator function for your scene assistant object. It will be passed all the
additional parameters (after the scene name) that were passed to pushScene. The reference
to the scene controller (this.controller) has not be established yet, so any initializ... | JavaScript | WebOS/app/assistants/preferences-assistant.js | brettcannon/oplop | apache-2.0 | 2,299 | 62 | codeparrot/github-code |
aba07a1ef470d216729b865ad26004171ba79a26e4597146f5ccc5ba66f757c6 | import { file as tempfile } from 'tempy'
import { SourceModel } from '../src/models/source-model'
import { SourceLogModel } from '../src/models/source-log-model'
import { ItemModel } from '../src/models/item-model'
import { TypeModel } from '../src/models/type-model'
import {
init,
sourceLogs,
sources,
items,
... | TypeScript | collector/test/database.spec.ts | eheikes/oscar | apache-2.0 | 1,755 | 68 | codeparrot/github-code |
0f73c6a62efb1cb5b962450bd3f597590fd701d3d98f216ae0f94a054bcbb15c | /*
* 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 | src/functions/src/main/java/org/apache/jmeter/functions/TimeShift.java | benbenw/jmeter | apache-2.0 | 9,758 | 254 | codeparrot/github-code |
6cb43cdfeae3b67dd2c81f7ae5621af9adedd2574291101a9d66e6cb3a9b5ea1 | package org.buddycloud.channelserver.packetprocessor.iq.namespace.pubsub.set;
import java.util.ArrayList;
import java.util.concurrent.BlockingQueue;
import java.util.concurrent.LinkedBlockingQueue;
import junit.framework.Assert;
import org.buddycloud.channelserver.Configuration;
import org.buddycloud.channelserver.c... | Java | src/test/java/org/buddycloud/channelserver/packetprocessor/iq/namespace/pubsub/set/PublishTest.java | ashward/buddycloud-server-java | apache-2.0 | 17,181 | 405 | codeparrot/github-code |
60b3b5bf04021c46238cc87e6fc26f69695a9ddc2fe8aa84374df7bc83af80ae | /*
Copyright (c) 2010 Aldo J. Nunez
Licensed under the Apache License, Version 2.0.
See the LICENSE text file for details.
*/
#include "Common.h"
#include "ImageAddrMap.h"
namespace MagoST
{
ImageAddrMap::ImageAddrMap()
: mRefCount( 0 ),
mSecCount( 0 )
{
}... | C++ | CVSym/CVSTI/ImageAddrMap.cpp | aBothe/MagoWrapper | apache-2.0 | 2,933 | 112 | codeparrot/github-code |
4fc2dc4fa4b81900878232c1c4a7684016620d3ffeda88301b00469b465cdfd7 | /*
* 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 | utils/common/src/main/java/brooklyn/util/javalang/StackTraceSimplifier.java | neykov/incubator-brooklyn | apache-2.0 | 6,792 | 181 | codeparrot/github-code |
a30a4a3abe2947892e103cbf994e258f083107682e66f23c484adfa767953c6a | /* Copyright 2002-2014 CS Systèmes d'Information
* Licensed to CS Systèmes d'Information (CS) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* CS licenses this file to You under the Apache License, Versi... | Java | src/main/java/org/orekit/propagation/events/DihedralFieldOfViewDetector.java | wardev/orekit | apache-2.0 | 9,004 | 202 | codeparrot/github-code |
67bbb06ebd3b2c3481133f2451a0f00aec39257df133ec53933bec0975780eec | """ Attention Factory
Hacked together by / Copyright 2021 Ross Wightman
"""
import torch
from functools import partial
from .bottleneck_attn import BottleneckAttn
from .cbam import CbamModule, LightCbamModule
from .eca import EcaModule, CecaModule
from .gather_excite import GatherExcite
from .global_context import Gl... | Python | timm/models/layers/create_attn.py | rwightman/pytorch-image-models | apache-2.0 | 3,526 | 90 | codeparrot/github-code |
2d801187aa13d2da91a8321bffc45319c49e7b9bf01354ccb6a2df798ae9dd74 | /*
* 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-connect/src/main/java/com/amazonaws/services/connect/model/transform/CreateUseCaseResultJsonUnmarshaller.java | aws/aws-sdk-java | apache-2.0 | 3,047 | 79 | codeparrot/github-code |
671f6ff2c25334cafbfb5db6e090b748da76c46c0aa97c186db7b5014e5309bc | package org.jetbrains.plugins.scala
package lang
package surroundWith
package surrounders
package expression
import com.intellij.lang.ASTNode
import com.intellij.openapi.util.TextRange
import com.intellij.psi.PsiElement
import org.jetbrains.plugins.scala.lang.psi.api.expr._
/**
* @author Alexander Podkhalyuzin
* ... | Scala | scala/scala-impl/src/org/jetbrains/plugins/scala/lang/surroundWith/surrounders/expression/ScalaWithTryFinallySurrounder.scala | JetBrains/intellij-scala | apache-2.0 | 1,261 | 41 | codeparrot/github-code |
03074f8d15ebc21ee48db8de4e9ebc200a1e93be65454641afdde9ad0c8f17d7 |
'use strict';
import React, {Component, PropTypes} from 'react';
import ReactNative, {Animated, Easing} from 'react-native';
var Animation = require('../Popover/Animation');
class TooltipAnimation extends Animation {
prepareStyle() {
const {
placement,
open,
} = this.props;
const tooltipPlacement = p... | JavaScript | src/Tooltip/TooltipAnimation.js | glinjy/react-native-apex-ui | apache-2.0 | 728 | 32 | codeparrot/github-code |
c75b401fd067c3c13d12b3d215a933f6da0ccb7cdd0878a520e5e1701ce5995b | #!/usr/bin/env python2
#pylint: skip-file
#
# This file is part of Ansible
#
# Ansible is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
... | Python | playbooks/aws/openshift-cluster/library/ec2_ami_find.py | attakei/openshift-ansible | apache-2.0 | 9,777 | 303 | codeparrot/github-code |
1beac4617fff4b197cd1c9c63272cae35ecd469554bda37f09e0c4cc28141727 | <?php
class CommonAction extends Action {
function _initialize() {
import('@.ORG.Util.Cookie');
// 用户权限检查
if (C('USER_AUTH_ON') && !in_array(MODULE_NAME, explode(',', C('NOT_AUTH_MODULE')))) {
import('@.ORG.Util.RBAC');
if (!RBAC::AccessDecision()) {
... | PHP | Lib/Action/Admin/CommonAction.class.php | T649781645/ltbl | apache-2.0 | 12,833 | 391 | codeparrot/github-code |
99ea1113c34d7ee48f882aa07deeed980b9b8460d0ae0319f873548d579c071f | /*
* Copyright 2016-present Open Networking Laboratory
*
* 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 | providers/ietfte/tunnel/src/main/java/org/onosproject/provider/te/tunnel/TeTunnelRestconfProvider.java | LorenzReinhart/ONOSnew | apache-2.0 | 14,517 | 382 | codeparrot/github-code |
222d74862eb058a269f7d975c4d2cf66b79bda982dc5b727531b4af03e366d98 | /*
* Copyright 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" file ... | Java | services-custom/dynamodb-enhanced/src/main/java/software/amazon/awssdk/enhanced/dynamodb/internal/AttributeConfiguration.java | aws/aws-sdk-java-v2 | apache-2.0 | 1,882 | 67 | codeparrot/github-code |
2da020135377996984ab931231fed1b40c667a54bfda4d68aeca24cfb915662c | /*
* 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-remoting/dubbo-remoting-netty4/src/main/java/com/alibaba/dubbo/remoting/transport/netty4/logging/FormattingTuple.java | dadarom/dubbo | apache-2.0 | 2,138 | 67 | codeparrot/github-code |
033418d0ed6b6bb52d89219c48a33ff62c5d11e72c9b3170ef35de4997138900 | //******************************************************************
//
// Copyright 2014 Intel Corporation.
//
//-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// ... | C | examples/OICSensorBoard/sensors.h | kartben/iotivity | apache-2.0 | 2,724 | 91 | codeparrot/github-code |
861ad0b2fcc0beb6ae3c7f90d620348926e9f19a4f36dc70b12b0e8288e8992b | /*
* 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-devicefarm/src/main/java/com/amazonaws/services/devicefarm/model/transform/CreateDevicePoolRequestProtocolMarshaller.java | aws/aws-sdk-java | apache-2.0 | 2,719 | 64 | codeparrot/github-code |
74a1901f2d62d9e8bb11c77e451457395180e009b648d32bb9f93eda0456d4c3 | /**
* DataHibernatorWorker.java
*
* Created on 24 October 2007, 18:10
*
* To change this template, choose Tools | Template Manager and open the template in the editor.
*/
package uk.co.sleonard.unison.input;
import java.util.ArrayList;
import java.util.ListIterator;
import java.util.concurrent.LinkedBlockingQue... | Java | src/main/java/uk/co/sleonard/unison/input/DataHibernatorWorker.java | leonarduk/unison | apache-2.0 | 4,719 | 186 | codeparrot/github-code |
6e3e9fc11c120d1f728c20d19f3c553b10f248b590246415c8841a0b19c3fdf9 | /*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applic... | Java | test/com/facebook/buck/parser/DefaultUnconfiguredTargetNodeFactoryTest.java | zpao/buck | apache-2.0 | 6,692 | 161 | codeparrot/github-code |
96b0a9d5d8566a56e6e7222e7b15931cb4fe5125dc86e595d48f9bf5fa6e5945 | /*
* Copyright 2015 Huysentruit Wouter
*
* 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/WinBeacon/Beacon.cs | ghkim69/win-beacon | apache-2.0 | 6,590 | 178 | codeparrot/github-code |
70946ca258650ebefbcdd19d7fb028e3fe2f968c2c83e17b200eb0b688b131d6 | package com.enseirb.telecom.dngroup.dvd2c.service.impl;
import java.net.URI;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import javax.inject.Inject;
import javax.ws.rs.core.UriBuilder;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.... | Java | dvd2c-box/src/main/java/com/enseirb/telecom/dngroup/dvd2c/service/impl/ThridPartyStorageServiceImpl.java | nherbaut/jdev2015T6A01 | apache-2.0 | 2,150 | 81 | codeparrot/github-code |
54c88cb96c0e0a4ecc37df51e8df8be74fb008c040653414043352cf15a00c4c | /*
* 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 com.rao2100.starter.utils;
import org.junit.After;
import org.junit.AfterClass;
import org.junit.Before;
import org.junit.Befo... | Java | src/test/java/com/rao2100/starter/utils/SystemdJournalUtilsTest.java | rao2100/SpringBootStarter | apache-2.0 | 1,156 | 60 | codeparrot/github-code |
8f1a211e72597830f0a61711dc979607b89da7e7fcc891b85f27edde0e2b3eb0 | package com.stefansavev.randomprojections.utils
import com.stefansavev.randomprojections.datarepr.dense.DataFrameView
import com.stefansavev.randomprojections.implementation.{KNNS, Searcher}
import scala.collection.mutable.ArrayBuffer
object AllNearestNeighborsForDataset {
def getTopNearestNeighborsForAllPointsTe... | Scala | src/main/scala/com/stefansavev/randomprojections/utils/AllNearestNeighborsForDataset.scala | codeaudit/random-projections-at-berlinbuzzwords | apache-2.0 | 1,082 | 32 | codeparrot/github-code |
4dc60953b6f5ce8e16a52209352a9c9ebc751e83938101714ba81b3f117f3e83 | // Copyright 2013 The Prometheus 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... | GO | main.go | prometheus/statsd_exporter | apache-2.0 | 19,428 | 546 | codeparrot/github-code |
b9e8b8d97d2de374ae40b600f0ac60d366df566a879e0e38b86de6f35b771626 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using ILPathways.Utilities;
using IOER.classes;
using ILPathways.Business;
using LRWarehouse.Business;
using IOER.Controllers;
using LDAL = LRWarehouse.DAL... | C# | Presentation/IOER.web/secure/IsleSSO.aspx.cs | siuccwd/IOER | apache-2.0 | 1,579 | 53 | codeparrot/github-code |
a70f2f935c33946c86143cdaa416776e98609814757dbc2050aa66566c508158 | 'use strict';
(function() {
angular.module('openshiftConsole').component('processTemplate', {
controller: [
'$filter',
'$q',
'$scope',
'$uibModal',
'APIDiscovery',
'APIService',
'DataService',
'Navigate',
'NotificationsService',
'ProcessedTemplateServic... | JavaScript | app/scripts/directives/processTemplate.js | openshift/origin-web-console | apache-2.0 | 10,871 | 325 | codeparrot/github-code |
cec157636fdb0d3277cb939eb09f431eddc13103e83a48d3df6458b5432f41b3 | /**
* Licensed to Jasig under one or more contributor license
* agreements. See the NOTICE file distributed with this work
* for additional information regarding copyright ownership.
* Jasig licenses this file to you under the Apache License,
* Version 2.0 (the "License"); you may not use this file
* except... | Java | sometime-war/src/main/java/org/jasig/schedassist/web/security/DelegateCalendarAccountUserDetailsImpl.java | nblair/sometime | apache-2.0 | 5,819 | 191 | codeparrot/github-code |
a4cedd8eba55ab5183029ee2cfc30ee985caa789a25dca339cbf9a9521840d2a | var zz = {
Internal: {
Local: {
FS: {
File: {},
Directory: {}
}
}
}
};
zz.Internal.Local.FS.File.read = function(path, successCallback, errorCallback) {
Ti.API.debug("ZZ.Internal.Local.FS.File.read");
Ti.API.debug("ZZ.Internal.Loca... | JavaScript | Resources/android/zz.api/zz.internal.local.fs.js | Adriano72/ZiriZiri-Daniele | apache-2.0 | 5,650 | 124 | codeparrot/github-code |
b48aca6456d1e80d4453caf4c24f73e44451c7246ed7eb0dddae5ac5ff05d4d9 | /*
Copyright (C) 2015 Preet Desai (preet.desai@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 applic... | C++ | ks/gl/KsGLVertexBuffer.cpp | preet/ks_gl | apache-2.0 | 5,438 | 161 | codeparrot/github-code |
d49983b600c4e02de7f93c7fe72309501b875ee079c396468f31863a65075dc1 | /**
* @license Copyright 2018 Google Inc. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
* Unless required by applicable law or a... | JavaScript | lighthouse-core/test/gather/computed/metrics/estimated-input-latency-test.js | mixed/lighthouse | apache-2.0 | 2,976 | 71 | codeparrot/github-code |
8bcb68614f2d9b75a3b818080a322119056c7172421b9cd24ae8fd01fa1c971a | /**
* 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-spring/src/test/java/org/apache/camel/spring/MainTest.java | punkhorn/camel-upstream | apache-2.0 | 2,166 | 59 | codeparrot/github-code |
5add6d0a3a261df164787b04f44a96b105178c86eefc58f0e792235d65324666 | /******************************************************************************\
| |
| package-version-file-types-view.js |
| ... | JavaScript | registry-web-server/var/www/html/scripts/views/packages/info/versions/info/source/dialogs/package-version-file-types-view.js | OWASP/open-swamp | apache-2.0 | 2,896 | 119 | codeparrot/github-code |
4265a22769196b1c44e3097ef422939dd90c5b28c55db9fdcfa9b197ed3b2f4d | package main
import (
"encoding/json"
"github.com/coreos/go-raft"
"net/http"
)
//-------------------------------------------------------------
// Handlers to handle raft related request via raft server port
//-------------------------------------------------------------
// Get all the current logs
func GetLogHttp... | GO | raft_handlers.go | philips/etcd | apache-2.0 | 3,917 | 141 | codeparrot/github-code |
b5efde04a1a2328fdd8ba02d0b891fcc91ab6561b92e83117da0d7226da5f678 | #include "test/integration/filters/process_context_filter.h"
#include <memory>
#include <string>
#include "envoy/http/filter.h"
#include "envoy/http/header_map.h"
#include "envoy/registry/registry.h"
#include "envoy/server/filter_config.h"
#include "extensions/filters/http/common/pass_through_filter.h"
#include "te... | C++ | test/integration/filters/process_context_filter.cc | jrajahalme/envoy | apache-2.0 | 2,187 | 58 | codeparrot/github-code |
17738c2eec7676205835576f43531971750140b6c27ec88c89eafd6ae6acbc5e | package eu.tankernn.gameEngine.particles;
import java.nio.FloatBuffer;
import java.util.List;
import java.util.Map;
import org.lwjgl.BufferUtils;
import org.lwjgl.opengl.GL11;
import org.lwjgl.opengl.GL15;
import org.lwjgl.opengl.GL31;
import org.lwjgl.util.vector.Matrix4f;
import org.lwjgl.util.vector.Vector3f;
imp... | Java | src/main/java/eu/tankernn/gameEngine/particles/ParticleRenderer.java | Tankernn/TankernnGameEngine | apache-2.0 | 4,913 | 141 | codeparrot/github-code |
67ad9cd416e69694f5cf464c3f15155c5c7c5ebed3c7dfd51e5c47da5a6bb925 | """schmankerl URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.11/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: url(r'^$', views.home, name='home')
Class... | Python | schmankerl/urls.py | MarxDimitri/schmankerl | apache-2.0 | 2,082 | 49 | codeparrot/github-code |
7c903843d56c86c117d9e8db88a99eddec9d291b262dac4a1484fb92dd1832d0 | /*
* Copyright (C) 2015 The Gravitee team (http://gravitee.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 requi... | TypeScript | src/entities/application.ts | gravitee-io/gravitee-management-webui | apache-2.0 | 2,034 | 65 | codeparrot/github-code |
7d2fd2d20b43c14c738fc62b32a99fbb6a4998ddee81ca0e89a979b7bd0b5bdd | # Copyright The PyTorch Lightning 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 law or agreed to i... | Python | pytorch_lightning/profiler/base.py | williamFalcon/pytorch-lightning | apache-2.0 | 6,875 | 207 | codeparrot/github-code |
448d18607d44ed43257724565178a59f4a166424d2a2f4d6f291ea8999226713 | /*
* Copyright (c) 2017-2019 Arrow Electronics, Inc.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Apache License 2.0
* which accompanies this distribution, and is available at
* http://apache.org/licenses/LICENSE-2.0
*
* Contributors:
* Arrow... | Java | sdk/src/main/java/com/konexios/api/models/AuditLogModel.java | arrow-acs/acn-sdk-android | apache-2.0 | 4,939 | 197 | codeparrot/github-code |
2a8afda1b1450ef4308a857387a018bace43cae219334b124924fc1fffdb9ac1 | package com.tqmars.cardrecycle.application.User.dto;
/**
* Created by jjh on 1/14/17.
*/
public class CreateUserInput {
private String account;
private String pwd;
private String qq;
private String tel;
private String businessId;
private String businessPwd;
private String smsCode;
pri... | Java | src/main/java/com/tqmars/cardrecycle/application/User/dto/CreateUserInput.java | huahuajjh/card_recycle | apache-2.0 | 2,014 | 94 | codeparrot/github-code |
654d6f207df66848f5649d5915b5953ebb200ad95b704236b2c0c094ae837c18 | package com.unidev.myip.web;
import com.unidev.myip.MyIPService;
import com.unidev.platform.web.WebUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servle... | Java | webapp/src/main/java/com/unidev/myip/web/IndexController.java | universal-development/myip-app | apache-2.0 | 1,013 | 38 | codeparrot/github-code |
de44055bd5982ffad137c28810609eb98cbf0265c337812118a60d48a10a00e5 | define(function (require) {
var app = angular.module('easyCodeApp', ['ngRoute', 'ui.bootstrap', 'ui.codemirror', 'vtortola.ng-terminal', 'flow']);
// controller for header actions
app.controller('headerController', function($scope){
// add header properties for phone support
$scope.header = {
isCollapse... | JavaScript | javascripts/app.js | deblockt/deblockt.github.io | apache-2.0 | 3,054 | 102 | codeparrot/github-code |
00c0dd85bab7cae9a70df51fe61fad2c4b13b1d80e2a61fc31e362b6d0e14a97 | package com.nouribygi.masnavi.database;
import android.app.SearchManager;
import android.content.ContentProvider;
import android.content.ContentResolver;
import android.content.ContentValues;
import android.content.UriMatcher;
import android.database.Cursor;
import android.net.Uri;
import com.nouribygi.masnavi.util.M... | Java | app/src/main/java/com/nouribygi/masnavi/database/MasnaviDataProvider.java | nouribygi/Masnavi | apache-2.0 | 3,332 | 100 | codeparrot/github-code |
0a38b764fbccaa50db13655d804151f7b57e1e4befc0f54c8ea2c0fab61064d2 | // Copyright 2017 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 w... | C | exegesis/x86/microarchitectures.h | google/EXEgesis | apache-2.0 | 2,251 | 67 | codeparrot/github-code |
0a2ed5bfa0ed10357618d4d24ffbac65c66307556656d4a9ebc086db8a12fb68 | /*
* Copyright (c) 2016, 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... | Java | modules/integration/tests-integration/tests-backend/src/test/java/org/wso2/identity/integration/test/analytics/authentication/AnalyticsLoginTestCase.java | ChamaraPhilipsuom/product-is | apache-2.0 | 34,987 | 748 | codeparrot/github-code |
387bcf474cdc05f39e96d5060f4a0c58ced7b6d6781f0f12d936aad4b5bf62e3 | /**
Copyright (c) 2011, Cisco Systems, Inc.
All rights reserved.
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright notice,
this list of conditions and t... | Java | src/contrib/java/com/cisco/qte/jdtn/bp/EidMap.java | KritikalFabric/corefabric.io | apache-2.0 | 14,806 | 460 | codeparrot/github-code |
77087e472aa672931dd31f4db9d430fc2281b554457ddbbf9a890f272a54f4eb | package org.luapp.practise.leetcode;
/**
* Created by lum on 2015/3/16.
*/
public class RemoveNthNodeFromEndOfList {
public static class ListNode {
int val;
ListNode next;
ListNode(int x) {
val = x;
next = null;
}
}
public static ListNode removeN... | Java | practise/src/main/java/org/luapp/practise/leetcode/RemoveNthNodeFromEndOfList.java | lumeng689/luapp | apache-2.0 | 1,793 | 78 | codeparrot/github-code |
36c874c16fa964dd8bdbe9af24b0379d3e845b99df35ec014b3a38e966f2ac47 | <?php defined('BASEPATH') OR exit('No direct script access allowed');
/**
* Objeto com os serviços disponiveis para os usuários.
* @author Caio de Freitas Adriano
* @since 2017/11/02
*/
class Book extends CI_Controller {
/**
* Edita os dados de um livro no sistema.
* @author Caio de Freitas Adriano
* @... | PHP | application/controllers/Book.php | cronodev/hotlibrary | apache-2.0 | 8,646 | 248 | codeparrot/github-code |
ef9efdd3637590a7d5862bd09766ee8916a3a268961c4137b0f884dbe606605f | package eu.newsreader.conversion;
import eu.newsreader.util.Util;
import java.io.File;
import java.io.FileOutputStream;
import java.io.OutputStream;
import java.util.ArrayList;
/**
* Created by piek on 12/15/14.
*/
public class ReduceConllResponse {
static public void main (String[] args) {
try {
... | Java | src/main/java/eu/newsreader/conversion/ReduceConllResponse.java | cltl/coreference-evaluation | apache-2.0 | 2,884 | 68 | codeparrot/github-code |
36804ba2ca49f0bc14cc53d94b7a7d7b30620152518a6450714725e6f2f63e1b | package me.nithanim.netty.packetlib.handler;
import io.netty.buffer.ByteBuf;
import io.netty.buffer.Unpooled;
import java.util.Arrays;
import me.nithanim.netty.packetlib.packets.Packet;
import me.nithanim.netty.packetlib.testpackets.TestPacketEmpty;
import me.nithanim.netty.packetlib.testpackets.TestPacketFull;
import... | Java | library/src/test/java/me/nithanim/netty/packetlib/handler/PacketEncoderTest.java | Nithanim/netty-packet-library | apache-2.0 | 3,734 | 117 | codeparrot/github-code |
c2d71411767eb91b2991103242fac070ffe8b9a0fcda0d51970d1c67f65c5224 | /*
* Copyright 2010-2013 OrientDB LTD (info--at--orientdb.com)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required ... | Java | core/src/main/java/com/orientechnologies/orient/core/storage/cluster/v1/OPaginatedClusterV1.java | orientechnologies/orientdb | apache-2.0 | 69,403 | 1,959 | codeparrot/github-code |
3988f287a84c6e59c12a5face2c91cf775176c41e72093dad905555b2ef3566b | package cn.hicc.information.sensorsignin.utils;
import android.app.Activity;
import android.app.ActivityManager;
import android.app.AlertDialog;
import android.content.Context;
import android.content.DialogInterface;
import android.content.Intent;
import android.net.ConnectivityManager;
import android.net.NetworkInfo... | Java | app/src/main/java/cn/hicc/information/sensorsignin/utils/Utils.java | KnowledgeAndAction/- | apache-2.0 | 3,344 | 96 | codeparrot/github-code |
2634c14bccb4003758a38c892e2f064a97674307a60c6702f1ee3589b3bd27b6 | #include <iostream>
#include <cstdlib>
#include <map>
using std::map;
using std::cout;
using std::endl;
using std::cerr;
using std::string;
#define MAXROMAN 7
typedef map<char,int> roman_mapvals;
typedef roman_mapvals::const_iterator roman_mapiter;
int RTABLE_VALUES[]={ 1, 5, 10, 50, 100, 500, 1000 };
char RT... | C++ | cpp/roman_to_decimal.cpp | xfdz/fragments | apache-2.0 | 2,429 | 89 | codeparrot/github-code |
704f2ac57dbace004c3272e87bb9b113bcdc39b277ae6dec9116a78a7a6818b4 | package com.senla.bolkunets.autoservice.api.managers;
import java.util.Comparator;
import java.util.Date;
import java.util.List;
import com.senla.bolkunets.autoservice.api.beans.IOrder;
import com.senla.bolkunets.autoservice.api.enums.OrderStatus;
public interface IOrdersManager {
List<IOrder> getOrders();
vo... | Java | task 5/autoservice-api/src/com/senla/bolkunets/autoservice/api/managers/IOrdersManager.java | BolkunetsAlexandr/java-training | apache-2.0 | 1,054 | 43 | codeparrot/github-code |
6e6dca8810298c1604e9d4a91696bf66fcff4b3453403e37214807a9e79dc618 | /*
* Copyright (C) 2016 Singular Studios (a.k.a Atom Tecnologia) - www.opensingular.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
... | Java | requirement/requirement-module/src/main/java/org/opensingular/requirement/module/admin/healthsystem/extension/JobsAdminEntry.java | opensingular/singular-server | apache-2.0 | 1,087 | 32 | codeparrot/github-code |
2c54c97025e3f31bea44f401d657c9db49f8e33c852986b3448e4582602796f6 | /**
* Symbol Art Editor
*
* @author malulleybovo (since 2021)
* @license GNU General Public License v3.0
*
* @licstart The following is the entire license notice for the
* JavaScript code in this page.
*
* Copyright (C) 2021 Arthur Malulley B. de O.
*
*
* The JavaScript code in this page is free softwar... | JavaScript | src/components/ui/UIAsset.js | malulleybovo/SymbolArtEditorOnline | apache-2.0 | 2,250 | 73 | codeparrot/github-code |
c33995aa56164cd3a9dae77bdfbcfdba8f3f83486d31e82676cbdc6390b60c4d | /*
* 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 ... | Java | geode-core/src/test/java/org/apache/geode/internal/cache/RollbackFunction.java | smanvi-pivotal/geode | apache-2.0 | 5,585 | 151 | codeparrot/github-code |
1f39a266b1dd7517ca25e94cb7ca883e5bedf77e3569d080b264c653e7e13fc2 | package com.sequenceiq.cloudbreak.orchestrator.salt;
import java.io.IOException;
import java.util.List;
import java.util.Map;
import java.util.Optional;
import javax.annotation.PostConstruct;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Component;
import org.yaml.sna... | Java | orchestrator-salt/src/main/java/com/sequenceiq/cloudbreak/orchestrator/salt/SaltErrorResolver.java | hortonworks/cloudbreak | apache-2.0 | 2,954 | 78 | codeparrot/github-code |
9d2bcea2bb15906772d21abbea108220896e4b4e3794de6c8a12fbba7028d4a5 | /**
* 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-bindy/src/main/java/org/apache/camel/dataformat/bindy/format/LocalDatePatternFormat.java | arnaud-deprez/camel | apache-2.0 | 2,642 | 86 | codeparrot/github-code |
acd097ba2f7ee04844165d247dc2e98d3e716366f671d6c8685b3b38fff72d8a | package com.sunjian.android_pickview_lib.view;
import java.util.TimerTask;
final class SmoothScrollTimerTask extends TimerTask {
int realTotalOffset;
int realOffset;
int offset;
final WheelView loopView;
SmoothScrollTimerTask(WheelView loopview, int offset) {
this.loopView = loopview;
... | Java | android-pickerdialog/src/main/java/com/sunjian/android_pickview_lib/view/SmoothScrollTimerTask.java | crazysunj/Android-PickerView | apache-2.0 | 1,959 | 58 | codeparrot/github-code |
e01dcef0c5f0f10449897192495b5fd1986e1fd29c770343c31f1db111cba88a | drop procedure if exists myparttimejob.create_daily_partitions$$
create procedure myparttimejob.create_daily_partitions
(
in l_table_name varchar(64),
in l_table_schema varchar(64)
)
comment 'takes table_name and schema_name and creates partitions for 7 days forward'
begin
declare l_partition_na... | SQL | routines/create_daily_partitions.sql | ridecharge/myparttimejob | apache-2.0 | 2,032 | 57 | codeparrot/github-code |
dba67e300b80ccf921ab103ee4b653492a7e991b092ed7325ce60f75cc7b7462 |
/**
* Copyright (c) 2008 Pyxis Technologies inc.
*
* This is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This software is... | Java | greenpepper/greenpepper-client/src/main/java/com/greenpepper/server/rpc/runner/report/HtmlReport.java | strator-dev/greenpepper | apache-2.0 | 3,703 | 164 | codeparrot/github-code |
26477f698c4ab4fefa02427ca96b51345871dc528933bf22f86c9fdad2fee2c2 | /**
* Copyright 2018 The AMP HTML 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 require... | JavaScript | build-system/compile/bundles.config.js | yandex-pcode/amphtml | apache-2.0 | 26,113 | 1,260 | codeparrot/github-code |
0d6524cc811a371be57633d2391ea931183fe1caf496aa9c907dcb9fa428f195 | /*
* Copyright 2007-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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by ap... | Java | ymate-platform-persistence-jdbc/src/main/java/net/ymate/platform/persistence/jdbc/base/impl/DefaultProcedureOperator.java | suninformation/ymate-platform-v2 | apache-2.0 | 7,869 | 218 | codeparrot/github-code |
75582e802bdc90214fbe7f10f3c5739572602050d4a60833dcd70ea85330958b | // @flow
/* eslint-env node */
/* global Restivus */
// Import Meteor :3 and Mongo :3
import { Meteor } from 'meteor/meteor'
// Import fs and path to access the filesystem. And mime to get MIMETypes.
import { readdirSync, lstatSync, readFileSync } from 'fs'
import { join, sep, basename } from 'path'
import { ... | JavaScript | server/main.js | ibujs/Area51 | apache-2.0 | 2,481 | 81 | codeparrot/github-code |
85afbf144d1ba102f2192f3d0422e5891a6685eedd8743a064e71db622a9e1c4 | //
// PurchaseViewController.h
// FootGame
//
// Created by Owyn Richen on 12/5/12.
//
//
#import <UIKit/UIKit.h>
#import "PromotionCodeManager.h"
#import "InAppPurchaseManager.h"
@protocol PurchaseViewDelegate <NSObject>
@optional
-(BOOL) cancelClicked: (BOOL) buying;
-(BOOL) purchaseFinished: (BOOL) success;
... | C | FootGame/PurchaseViewController.h | owynrichen/animalpants | apache-2.0 | 2,002 | 59 | codeparrot/github-code |
3651af679d95be94b1833e4aba6e34cbfb356004cf85e6a4915be1ef47aff9c8 | /* Copyright (c) 2016 PaddlePaddle 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... | C++ | paddle/fluid/operators/linear_chain_crf_op.cc | chengduoZH/Paddle | apache-2.0 | 14,511 | 326 | codeparrot/github-code |
7ac5d397adf434f1b6a6ccb3a503b4903a3a1f211ff2180706ea3fbc94672806 | /*
* Copyright 2015 LINE Corporation
*
* LINE Corporation 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/licenses/LICENSE-2.0
*
* Unless re... | Java | src/main/java/com/linecorp/armeria/client/http/SimpleHttpRequest.java | brant-hwang/armeria | apache-2.0 | 2,958 | 105 | codeparrot/github-code |
35a7cebc203f794e2533626284ef1522e3048fb26e4b051177503730a4e6c47c | /*
* Copyright 2014 Guidewire Software, Inc.
*/
package gw.internal.gosu.parser;
import gw.internal.ext.org.objectweb.asm.Opcodes;
import gw.internal.gosu.parser.java.classinfo.JavaSourceDefaultValue;
import gw.lang.Deprecated;
import gw.lang.GosuShop;
import gw.lang.PublishedName;
import gw.lang.javadoc.IClassDocN... | Java | gosu-core/src/main/java/gw/internal/gosu/parser/JavaMethodInfo.java | dumitru-petrusca/gosu-lang | apache-2.0 | 23,088 | 737 | codeparrot/github-code |
57b1c47d32b0a14133e6c83df1fe20d8e984710c2b74bf5ef82299bbdd4febc0 | /**
--| ADAPTIVE RUNTIME PLATFORM |----------------------------------------------------------------------------------------
(C) Copyright 2013-2015 Carlos Lozano Diez t/a Adaptive.me <http://adaptive.me>.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance wi... | Java | src/main/java/me/adaptive/arp/api/ContactPersonalInfo.java | AdaptiveMe/adaptive-arp-api-lib-java | apache-2.0 | 4,400 | 182 | codeparrot/github-code |
89109ebb035de0c88e52f942ff662e392ba3892fb54dc6c7bc3a52d5dac0d6a1 | #Requires -Version 5.0
#Requires -Module NetScaler
enum Ensure {
Absent
Present
}
[DscResource()]
class LBVirtualServer {
[DscProperty(key)]
[string]$Name
[DscProperty()]
[Ensure]$Ensure = [Ensure]::Present
[DscProperty(Mandatory)]
[string]$NetScalerFQDN
[DscProperty(Mandatory)]... | PowerShell | POSHOrigin_NetScaler/POSHOrigin_NetScaler.psm1 | devblackops/POSHOrigin_NetScaler | apache-2.0 | 22,895 | 535 | codeparrot/github-code |
46c90913183a5a649ec0abdc30fd2985b4c06becde3eb994024efb256f839334 | package com.example.dell.texttwo.ui;
import com.example.dell.texttwo.R;
import android.content.BroadcastReceiver;
import android.content.IntentFilter;
import android.database.ContentObserver;
import android.net.Uri;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
... | Java | TextTwo/app/src/main/java/com/example/dell/texttwo/ui/FragmentBase.java | YiNPNG/test | apache-2.0 | 1,735 | 60 | codeparrot/github-code |
22479d8b819ce5506857c33358c4a3ae5e998f057a64feeb6589035f85246038 | __author__ = 'mwn'
import os
import sys
import logging
from logging.handlers import RotatingFileHandler
from flask import Flask, render_template
app = Flask(__name__)
app.config.from_object('config')
handler = RotatingFileHandler('yapki.log', maxBytes=10000, backupCount=1)
handler.setLevel(logging.DEBUG)
app.logger.... | Python | yafra-python/server/app/__init__.py | yafraorg/yafra-archive | apache-2.0 | 1,628 | 57 | codeparrot/github-code |
8bf685f27c675ef16dec11777be47b785bb4b69bd7b14baffcbe06907901d59b | package br.com.dlp.jazzav.produto;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import br.com.dlp.jazzav.AbstractLogEntityVO;
/**
*
* @author darcio
*
*/
@Entity
public class MarcaVO extends AbstractLogEntityVO<Lo... | Java | modules/JazzAV/core/src/main/java/br/com/dlp/jazzav/produto/MarcaVO.java | darciopacifico/omr | apache-2.0 | 644 | 38 | codeparrot/github-code |
1b9ced59c62817195289d2c844c42897dd1faede07d4e8de32cb9cebd781f3e9 | /*
* Copyright 2017-present Open Networking 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 appli... | JavaScript | web/gui/src/main/webapp/app/fw/widget/tableDetail.js | sdnwiselab/onos | apache-2.0 | 1,833 | 67 | codeparrot/github-code |
9c9de7766f1d1359ae1bdf640f49556b8f4ec7225592aabcd9a9d648b38b04a8 | package com.dream.plmm.bean;
/**
* Created by likun on 16/8/19.
*/
public class HealthyInfoDetailEntity {
/**
* count : 1754
* description : 平时要注意开窗通风,要多吃“补氧”食物,例如葵花子油、杏仁、奇异果、红薯等,还要多进行一些慢跑等有氧运动,这些都助于身体吸纳氧气
* fcount : 0
* id : 10
* img : /lore/150731/af4811aaf581c7369c4c425d449ab94d.jpg
... | Java | app/src/main/java/com/dream/plmm/bean/HealthyInfoDetailEntity.java | dreamseekerkun/EnjoyLife | apache-2.0 | 3,177 | 148 | codeparrot/github-code |
3b6ee741f656ebb1d86558c73b78c7a18b1316c16d49aa926caf1a3b0b33c394 | package uk.ac.ebi.atlas.profiles;
import com.google.common.collect.MinMaxPriorityQueue;
import uk.ac.ebi.atlas.commons.streams.ObjectInputStream;
import uk.ac.ebi.atlas.model.GeneProfilesList;
import uk.ac.ebi.atlas.model.Profile;
import java.util.Comparator;
import java.util.function.Supplier;
public class MinMaxPr... | Java | base/src/main/java/uk/ac/ebi/atlas/profiles/MinMaxProfileRanking.java | gxa/atlas | apache-2.0 | 1,377 | 45 | codeparrot/github-code |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.