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 |
|---|---|---|---|---|---|---|---|---|
d497b319e72bce3c67a309dd42ca6019c908ab43a9d38e129d4ea7359c5837d5 | <?php
/**
* Description:
*
* Encoding: GBK
* Created on: 2012-4-16-下午5:48:04
* Autdor: kangyun
* Email: KangYun.Yun@Snda.Com
*/
defined ( 'IN_ADMIN' ) or exit ( 'No permission resources.' );
include $this->admin_tpl ( 'header', 'admin' );
?>
<div class="pad-10">
<form
action="<?ph... | PHP | phpcms/modules/maillist/templates/rss.tpl.php | Eric0808/39health | apache-2.0 | 11,037 | 261 | codeparrot/github-code |
78ddb8c47a31b6559b726ab9527ce5d90429680b7397ef072fed530b75f76f7e | /*
* Copyright 2013-2014 Grzegorz Ligas <ligasgr@gmail.com> and other contributors
* (see the CONTRIBUTORS file).
*
* 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 | src/main/java/org/intellij/xquery/reference/variable/VariableReferenceScopeProcessor.java | ligasgr/intellij-xquery | apache-2.0 | 2,168 | 62 | codeparrot/github-code |
815ba093591e285383949bb4a58c2fd32baee7288369bbf6a3476c82473432d3 | package com.riversoft.weixin.qy.media.bean;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonUnwrapped;
import java.util.Date;
import java.util.List;
/**
* Created by exizhai on 10/2/2015.
*/
public class MaterialPagination {
@JsonProperty("total_c... | Java | weixin-qydev/src/main/java/com/riversoft/weixin/qy/media/bean/MaterialPagination.java | borball/weixin-sdk | apache-2.0 | 1,734 | 80 | codeparrot/github-code |
c7ffb2047ed8007a0efd55db4579f9fb56ba55582b375d05b95f9e473fd153c0 | /*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed u... | JavaScript | src/data_collectors/on-html-file-read-data-collector.js | corgrath/abandoned-planemo.js | apache-2.0 | 1,683 | 61 | codeparrot/github-code |
6c9d750b80534eed4302fd39409ba84525ccb030024d1ea4e42652be130cfa1f | /*
* Copyright 2013 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 i... | Java | core/src/main/java/com/google/worldcoin/net/ProtobufParser.java | Huck/worldcoinj | apache-2.0 | 10,081 | 230 | codeparrot/github-code |
760e0997465ad62990d2122144428e3a596c2bcb226a0b2dd98f82d54c870382 | package com.virjar.vscrawler.core.selector.string.function.awk.intermediate;
import java.io.*;
import java.lang.reflect.Field;
import java.lang.reflect.Modifier;
import java.util.*;
import com.virjar.vscrawler.core.selector.string.function.awk.util.LinkedListStackImpl;
import com.virjar.vscrawler.core.selector.string... | Java | vscrawler-core/src/main/java/com/virjar/vscrawler/core/selector/string/function/awk/intermediate/AwkTuples.java | virjar/vscrawler | apache-2.0 | 65,330 | 2,348 | codeparrot/github-code |
d644ad6ee2c750353ee03af6744f8a43233716ded13b72940504175d09c43b6c | package com.vladmihalcea.book.hpjp.hibernate.identifier;
import com.vladmihalcea.book.hpjp.util.AbstractSQLServerIntegrationTest;
import org.hibernate.Session;
import org.junit.Test;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persist... | Java | core/src/test/java/com/vladmihalcea/book/hpjp/hibernate/identifier/SQLServerScopeIdentity.java | vladmihalcea/high-performance-java-persistence | apache-2.0 | 1,946 | 63 | codeparrot/github-code |
4b11fb4bff32f5906bbd07201cb3015e088a6c388a336ff8f7b712186e2f3a33 | package org.nd4j.weightinit.impl;
import lombok.Builder;
import org.apache.commons.math3.util.FastMath;
import org.nd4j.linalg.api.ndarray.INDArray;
import org.nd4j.linalg.factory.Nd4j;
import org.nd4j.weightinit.BaseWeightInitScheme;
import org.nd4j.weightinit.WeightInit;
/**
* Initialize the weight to:
* randn(sh... | Java | nd4j-backends/nd4j-api-parent/nd4j-api/src/main/java/org/nd4j/weightinit/impl/LecunUniformInitScheme.java | smarthi/nd4j | apache-2.0 | 898 | 37 | codeparrot/github-code |
538ed60a7e71d21fb722e0b3268984a90a69754024965d0b816d6f28e490d79d | <?php
ini_set('log_errors', 1);
ini_set('error_log', '/tmp/php-errori.log');
error_log('Hello, errors (2)!');
include '../db_connect.php';
include '../functions.php';
$name = $_POST['name'];
$regolamento = $_POST['regolamento'];
$liberatoria = $_POST['liberatoria'];
$corso = $_POST['corso'];
$nascita = $_POST['nasci... | PHP | mail/iscrizioni.php | danog/php-login-freelancer | apache-2.0 | 2,120 | 63 | codeparrot/github-code |
f94dfabd96dd45160939c86c0eee78f03381202542c560d1b72b1163f2459a03 | package com.lauren.simplenews.beans;
/**
* Description : 天气实体类
* Author : lauren
* Email : lauren.liuling@gmail.com
* Blog : http://www.liuling123.com
* Date : 2015/12/22
*/
public class WeatherBean {
private static final long serialVersionUID = 1L;
/**
* temperature
*/
private String... | Java | app/src/main/java/com/lauren/simplenews/beans/WeatherBean.java | HarryXR/SimpleNews | apache-2.0 | 1,439 | 84 | codeparrot/github-code |
af1fddc4b0a93b64e7283ab9868340f9cd8e1694c1bcc4566828a30dac74bdeb | package pilot
import "fmt"
type FormatConverter func(info *LogInfoNode) (map[string]string, error)
var converters = make(map[string]FormatConverter)
func Register(format string, converter FormatConverter) {
converters[format] = converter
}
func Convert(info *LogInfoNode) (map[string]string, error) {
converter :=... | GO | pilot/format.go | bamboox/fluentd-pilot | apache-2.0 | 1,810 | 62 | codeparrot/github-code |
17786de0f4c489d15ac3223a4ae7c23c49b543cc9abb66e3664c0f058724ec4b | /*
Navicat MySQL Data Transfer
Source Server : 127.0.0.1
Source Server Version : 50714
Source Host : 127.0.0.1:3306
Source Database : poly_log
Target Server Type : MYSQL
Target Server Version : 50714
File Encoding : 65001
Date: 2016-08-30 17:27:54
*/
SET FOREIGN_KEY_CHECKS=0;
-- ... | SQL | database/seeds/poly_log.sql | forgottener/polyLog | apache-2.0 | 11,766 | 225 | codeparrot/github-code |
1d87778aad86a03e5709e954eba2de57ccb50800dfedc2fb5717e35aaa299855 | package com.example.laurent.algorithm;
import android.support.annotation.NonNull;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
public class WeightSort {
private static final String CHARACTER_SPACE = " ";
public static String orderWeight(String string) {
if (stri... | Java | algorithm/src/main/java/com/example/laurent/algorithm/WeightSort.java | laurentsebag/android-training | apache-2.0 | 2,424 | 88 | codeparrot/github-code |
3d9260b35694645998a24e38f384b08ceb45f9144919f102132953615ce0c411 | /**
*
* 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 ... | C | extensions/sql/services/ODBCConnector.h | apiri/nifi-minifi-cpp | apache-2.0 | 4,143 | 128 | codeparrot/github-code |
c55a7f62043a1747b272b4d7140b1d19a8c7dc0e2dc4126b1697100793c48ba2 | #
# Copyright 2022 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 | cloud/azure/network/appgateway/mode/throughput.pm | centreon/centreon-plugins | apache-2.0 | 4,596 | 141 | codeparrot/github-code |
144b444b0f8255e75c929e04d4d0dff2e90a6a211a7ff9fc7c3caa45460b5f4a | package com.tqmars.cardrecycle.application.security.dto;
/**
* Created by jjh on 1/16/17.
*/
public class ChangeWithdrawPwdInput {
private String newPwd;
private String oldPwd;
private String token;
public String getOldPwd() {
return oldPwd;
}
public void setOldPwd(String oldPwd) {
... | Java | src/main/java/com/tqmars/cardrecycle/application/security/dto/ChangeWithdrawPwdInput.java | huahuajjh/card_recycle | apache-2.0 | 636 | 35 | codeparrot/github-code |
bfb690d49a89b5c13d834521b2e536eab64d04256cc456db092937b52916302b | // Copyright (C) 2012 The Android Open Source Project
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable ... | Java | gerrit-server/src/main/java/com/google/gerrit/server/account/GetCapabilities.java | Team-OctOS/host_gerrit | apache-2.0 | 7,045 | 190 | codeparrot/github-code |
228c1de601023bc1140d1ca28f6acac6d93647d6b66061d75155520a6060f286 | // Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.jdisc.http.filter.util;
import com.yahoo.container.jdisc.RequestHandlerTestDriver;
import com.yahoo.jdisc.Response;
import com.yahoo.jdisc.http.Cookie;
import org.junit.Test;
import java.util.Lis... | Java | container-core/src/test/java/com/yahoo/jdisc/http/filter/util/FilterUtilsTest.java | vespa-engine/vespa | apache-2.0 | 1,972 | 48 | codeparrot/github-code |
c954678f3ac25d48f8d0a6eef5afe7d2ef320c2b84b2e716dd22847f0f1dd0a6 | class ServicesController < ApplicationController
respond_to :html, only: [:show, :destroy]
respond_to :json
def index
@app = App.find(params[:app_id])
respond_with @app.services
end
def show
@app = App.find(params[:app_id])
@service = retrieve_service
@service.hydrate_linked_services!
... | Ruby | app/controllers/services_controller.rb | fic2/panamax-ui | apache-2.0 | 2,262 | 85 | codeparrot/github-code |
d66096ba1ec1457199ffa7eda5be88da209ddcbb5476e4f21af3c5d5cd14caa8 | /*
* 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")... | Java | trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/ui/laf/base/xhtml/SeparatorRenderer.java | adamrduffy/trinidad-1.0.x | apache-2.0 | 1,786 | 54 | codeparrot/github-code |
3ed6f0360bbada61a160452fb44c45d192fac05b19a2361594b7f382844b58d6 | /*
* ******************************************************************************
* Copyright (c) 2014 Gabriele Mariotti.
*
* 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
*
*... | Java | RecyclerView/app/src/main/java/itemanimator/SlideInOutTopItemAnimator.java | scp504677840/Widget | apache-2.0 | 3,289 | 92 | codeparrot/github-code |
c5ff84f098e7ce87a18af15308e072832883b3734c3def44507bdad84c9eaee2 | /*
* 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 | api/src/main/java/io/druid/segment/loading/DataSegmentPusher.java | noddi/druid | apache-2.0 | 2,380 | 64 | codeparrot/github-code |
2400d1f812293ac77ebe25bd25d654b82cd811d4249286aedb1d0e321080185e | /*
Copyright 2016 ScalABM
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
distribu... | Scala | src/main/scala/org/economicsl/agora/markets/tradables/package.scala | EconomicSL/agora | apache-2.0 | 1,859 | 58 | codeparrot/github-code |
eca35c222a416f4013d62e943bafcf9d18be5fd57bef4cdefb6ab3d70a0f91d1 | // Copyright 2014 toby.zxj@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 applicable law or agreed... | GO | devsmart.go | tobyzxj/jdplus | apache-2.0 | 17,600 | 735 | codeparrot/github-code |
dbb3fc44a0fdcb2a0641dfea23c02e4a3351a1f3ed733d1ae50227beec17269b | package main
import (
"fmt"
"io/ioutil"
)
func grade(score int) string {
g := ""
switch {
case score < 0 || score > 100:
panic(fmt.Sprintf("Wrong score: %d", score))
case score < 60:
g = "F"
case score < 80:
g = "C"
case score < 90:
g = "B"
case score <= 100:
g = "A"
}
return g
}
func main() {
... | GO | yard/grammar/go/basic/branch/branch.go | bbxyard/bbxyard | apache-2.0 | 569 | 42 | codeparrot/github-code |
48d33452edb3b12b9b9c4d9460efeae18fdc0dfa90717a2a31643a7e42a7b87d | /* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/* Monkey HTTP Server
* ==================
* Copyright 2001-2014 Monkey Software LLC <eduardo@monkey.io>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the ... | C | src/mk_scheduler.c | jinankjain/monkey | apache-2.0 | 19,825 | 655 | codeparrot/github-code |
cb21036d6f8e0a21a2170785183e40d0c46b53ec0d45294332c0be6874408d1b | package visnode.gui;
import java.awt.BorderLayout;
import java.awt.Dimension;
import java.awt.FlowLayout;
import java.awt.GridLayout;
import java.util.Locale;
import javax.swing.JComboBox;
import javax.swing.JComponent;
import javax.swing.JPanel;
import javax.swing.SwingUtilities;
import visnode.application.Messages;
... | Java | src/main/java/visnode/gui/UserPreferencesPanel.java | VISNode/VISNode | apache-2.0 | 3,478 | 123 | codeparrot/github-code |
d6c20273e87e6d7526d97d24370f803e367cdad5dd9f3dcc61bc65e5baa567d1 | /*
* 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-codestarnotifications/src/main/java/com/amazonaws/services/codestarnotifications/model/transform/UntagResourceRequestProtocolMarshaller.java | aws/aws-sdk-java | apache-2.0 | 2,654 | 63 | codeparrot/github-code |
13becdc02be25e499e182870fe22f2940fe586098bbcf0f5f5423893a4fe864e | package com.turn.ttorrent.tracker;
import com.turn.ttorrent.bcodec.BDecoder;
import com.turn.ttorrent.bcodec.BEValue;
import com.turn.ttorrent.bcodec.BEncoder;
import com.turn.ttorrent.common.TorrentLoggerFactory;
import com.turn.ttorrent.common.protocol.TrackerMessage;
import com.turn.ttorrent.common.protocol.http.HT... | Java | ttorrent-tracker/src/main/java/com/turn/ttorrent/tracker/MultiAnnounceRequestProcessor.java | mpetazzoni/ttorrent | apache-2.0 | 2,369 | 60 | codeparrot/github-code |
74aeb2d2f02a561da973b9281e2d61265e9e6aaaf4222d7ca98205b4ad498f21 | //
// ServiceRegistryWrapper.cpp
//
// Copyright (c) 2013-2014, Applied Informatics Software Engineering GmbH.
// and Contributors.
//
// SPDX-License-Identifier: GPL-3.0-only
//
#include "Poco/OSP/JS/ServiceRegistryWrapper.h"
#include "Poco/OSP/JS/ServiceRefWrapper.h"
#include "Poco/OSP/JS/ServiceListenerWrapper.h"
... | C++ | platform/OSP/JS/src/ServiceRegistryWrapper.cpp | macchina-io/macchina.io | apache-2.0 | 4,528 | 152 | codeparrot/github-code |
06c2695d3736a097a40b45eabe50cd807d471c1d7c9cccc31c45403547d7027a | /*
* 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 ma... | Java | Source/Plugins/Core/com.equella.base/src/com/tle/beans/entity/SchemaTransform.java | equella/Equella | apache-2.0 | 1,452 | 54 | codeparrot/github-code |
c4a80a7e2e14a8865102a0ee1ad70874cf2c1111ccabcc9b6679315254a6d69b | /*
* Copyright 2015 Red Hat, Inc.
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* and Apache License v2.0 which accompanies this distribution.
*
* The Eclipse Public License is available at
* http://www.eclipse.o... | Java | vertx-auth-oauth2/src/main/java/io/vertx/ext/auth/oauth2/impl/flow/ClientImpl.java | nevenr/vertx-auth | apache-2.0 | 1,892 | 65 | codeparrot/github-code |
fac7d4a1c43042649c698066e101920c69df2f482042cffe9e8a61228255ae60 | import React from 'react';
import { Box, Grommet, RangeInput } from 'grommet';
import { grommet } from 'grommet/themes';
const customThemeRangeInput = {
rangeInput: {
disabled: {
track: {
color: '#2196f3',
},
thumb: {
color: 'red',
},
},
},
};
export const Disabled... | JavaScript | src/js/components/RangeInput/stories/Disabled.js | HewlettPackard/grommet | apache-2.0 | 696 | 37 | codeparrot/github-code |
cfb175d63425185e8bdc345393cdd815250e0a3b3dd9c746eebe8262d2635150 | /*
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, so... | C# | Assets/Scripts/SwipeTrail.cs | googlecreativelab/lines-of-play | apache-2.0 | 2,321 | 70 | codeparrot/github-code |
8a5503466378a6e923fb3e23a902528c890aa566686aa35b1a88f7c03ad123b7 | <?php
namespace Ajax\semantic\html\content;
use Ajax\semantic\html\base\HtmlSemDoubleElement;
use Ajax\semantic\html\elements\HtmlIcon;
use Ajax\JsUtils;
class HtmlAccordionItem extends HtmlSemDoubleElement {
protected $titleElement;
protected $_icon="dropdown";
protected $_title;
protected $_active;
public ... | PHP | Ajax/semantic/html/content/HtmlAccordionItem.php | phpMv/phpMv-UI | apache-2.0 | 1,321 | 53 | codeparrot/github-code |
8f5b70f34868c2703b942a5b0361ed76e52f1b02d348197d59b73b51a86029b7 | package de.gishmo.gwt.client;
import java.util.Date;
import com.google.gwt.core.client.EntryPoint;
import com.google.gwt.editor.client.Editor;
import com.google.gwt.editor.client.SimpleBeanEditorDriver;
import com.google.gwt.event.dom.client.ClickEvent;
import com.google.gwt.event.dom.client.ClickHandler;
import com.... | Java | src/main/java/de/gishmo/gwt/client/GwtEditorAptExample.java | FrankHossfeld/gwt-editor-apt-example | apache-2.0 | 3,680 | 129 | codeparrot/github-code |
8979ded2d2bb1a6761a568c42101080730895eb9bf174fcee9eb9f4bb8052226 | /*
* 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/cache30/SlowRecDUnitTest.java | smanvi-pivotal/geode | apache-2.0 | 55,522 | 1,463 | codeparrot/github-code |
2662887dc775113e49831dfd2d5e596dc3710940c4d4eaff6c39718aa653efee | /*
* Apache HTTPD & NGINX Access log parsing made easy
* Copyright (C) 2011-2021 Niels Basjes
*
* 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/LICEN... | Java | parser-core/src/test/java/nl/basjes/parse/core/ParserDissectionOutputTypesTest.java | nielsbasjes/logparser | apache-2.0 | 9,337 | 230 | codeparrot/github-code |
3350f3b22381f2582541a79c69bb4ae334cc777aca638de4d886018b15944fe3 | /*
* DBeaver - Universal Database Manager
* Copyright (C) 2010-2017 Serge Rider (serge@jkiss.org)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org... | Java | plugins/org.jkiss.dbeaver.core/src/org/jkiss/dbeaver/ui/controls/resultset/ResultSetAdapterFactory.java | ruspl-afed/dbeaver | apache-2.0 | 1,794 | 50 | codeparrot/github-code |
d984be84bd4ca7388c08026cde60b91d283838c1b8befdb6916f0e0029476c09 | /*
* Copyright (c) 2008-2022 The Aspectran Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicabl... | Java | shell/src/main/java/com/aspectran/shell/command/builtins/RestartCommand.java | aspectran/aspectran | apache-2.0 | 2,344 | 84 | codeparrot/github-code |
4fa074b9b40c2c2c763398520bf239fe24bf020d187d5a9e7d4cf0ad400ec0a7 | /*
* Copyright (c) 2012-2014 Snowplow Analytics Ltd. All rights reserved.
*
* This program is licensed to you under the Apache License Version 2.0,
* and you may not use this file except in compliance with the Apache License Version 2.0.
* You may obtain a copy of the Apache License Version 2.0 at http://www.apach... | Scala | 3-enrich/scala-common-enrich/src/test/scala/com.snowplowanalytics.snowplow.enrich.common/utils/MapTransformerSpec.scala | TimothyKlim/snowplow | apache-2.0 | 3,764 | 116 | codeparrot/github-code |
45a6ce3d640a1b90ead65ca3063cf27b8a54d6bff6543c2ccf616213f60a112d | package com.kimo.lib.alexei;
import android.content.Context;
import android.graphics.Bitmap;
import android.widget.ImageView;
/**
* Main class that configures operations over images. You need to pass an {@link android.widget.ImageView} or a {@link android.graphics.Bitmap}
* and the {@link com.kimo.lib.alexei.Calcul... | Java | library/src/main/java/com/kimo/lib/alexei/Alexei.java | 0359xiaodong/Alexei | apache-2.0 | 1,894 | 66 | codeparrot/github-code |
899ae57164bb644e2ca37868d2942bb05f32b12de8137e2ec1128c9f12c0b532 | define([
'knockout',
'text!./datadensity.html',
'd3',
'utils/CommonUtils',
'utils/ChartUtils',
'pages/data-sources/classes/Report',
'components/Component',
'components/heading',
'components/charts/boxplot',
'components/charts/line',
], function (
ko,
view,
d3,
commonUtils,
ChartUtils,
Report,
Component... | JavaScript | js/pages/data-sources/components/reports/datadensity.js | OHDSI/Atlas | apache-2.0 | 3,873 | 137 | codeparrot/github-code |
5f0ddce04e69dc7c537bc3f0d06ec1b71ba48f1a4282d2d88be22f509cc6d52c | /*
* 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")... | Java | trinidad-api/src/main/java/org/apache/myfaces/trinidad/event/SortEvent.java | adamrduffy/trinidad-1.0.x | apache-2.0 | 2,035 | 71 | codeparrot/github-code |
57501ab6c26c27337942bd87dcb6ea45d0607fc262978833f0508bd816c1ed0c | #!/bin/sh
# NightPatch
TOOL_VERSION=247
TOOL_BUILD=beta
CATALOG_URL="https://swscan.apple.com/content/catalogs/others/index-10.13-10.12-10.11-10.10-10.9-mountainlion-lion-snowleopard-leopard.merged-1.sucatalog.gz"
function showHelpMessage(){
echo "NightPatch (Version: ${TOOL_BUILD}-${TOOL_VERSION}): Enable Night Shi... | Shell | NightPatch-beta.sh | pookjw/NightPatch | apache-2.0 | 23,812 | 582 | codeparrot/github-code |
a4425c7f6f2c541c66762d4ddafcdc0768a47e4ece8b1047f2f03eebd3c99571 | #!/usr/bin/env python
# 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... | Python | tools/convert_nic_config.py | openstack/tripleo-heat-templates | apache-2.0 | 7,737 | 221 | codeparrot/github-code |
2ce1832c83f8c185f146df34c517acfd5ba7bfab1bf7479fa5cc04618624a289 | package com.pepedyne.pepe.servos;
public class StandardServo extends Servo {
public StandardServo(String name, int min, int max) {
super(name, min, max);
}
public StandardServo(String name, int min, int max, int cur) {
super(name, min, max, cur);
}
@Override
public void setCurrent(int ... | Java | Application/src/main/java/com/pepedyne/pepe/servos/StandardServo.java | IFoundPepe/PepeApp | apache-2.0 | 843 | 39 | codeparrot/github-code |
e2bd90eb37c98c42b525ba974eed7fc40868e363b5353f5faa7958da1ae47c54 | // Copyright 2018 The Oppia 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 ap... | TypeScript | core/templates/dev/head/domain/exploration/AnswerStatsObjectFactory.ts | souravbadami/oppia | apache-2.0 | 3,345 | 98 | codeparrot/github-code |
71abda7b0c8a03c03ab80746d315afa0204c720bcec4793c103c2a45db2eab39 | package br.com.portal.education.controller.sample.exam;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import javax.annotation.PostConstruct;
import javax.faces.bean.ManagedBean;
import javax.faces.bean.SessionScoped;
import javax.faces.model.SelectItem;
import javax.inject.Inject;
import ... | Java | src/main/java/br/com/portal/education/controller/sample/exam/ScheduleSampleExamInscriptionController.java | llsilvacarlos/acess-education | apache-2.0 | 5,321 | 187 | codeparrot/github-code |
2ca999d8f29382917f432771f27960673b7f4ecbbcd83c27240f9dadff91bdba | #ifndef __UIMANAGER_H__
#define __UIMANAGER_H__
#pragma once
namespace DuiLib {
/////////////////////////////////////////////////////////////////////////////////////
//
class CControlUI;
/////////////////////////////////////////////////////////////////////////////////////
//
typedef enum EVENTTYPE_UI
{
UIEVEN... | C | Duilib/DuiLib/Core/UIManager.h | ying32/duilib-for-Delphi | apache-2.0 | 15,618 | 493 | codeparrot/github-code |
8ff583445e86a7a975fcdd796d032f52c8534eb6fc518ebcade701b46d941487 | package dk.statsbiblioteket.newspaper.processmonitor.backend;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import dk.statsbiblioteket.doms.central.connectors.BackendInvalidCredsException;
import dk.statsbiblioteket.doms.central.connectors.BackendInvalidResourceException;
import dk.statsbiblioteket.doms.ce... | Java | process-monitor-backend-service/src/main/java/dk/statsbiblioteket/newspaper/processmonitor/backend/AbstractDOMSBatchEnricher.java | statsbiblioteket/newspaper-digitisation-process-monitor | apache-2.0 | 2,506 | 71 | codeparrot/github-code |
42ee332019769e40685d10fae857cd84bd228024c3a3773c6a39060ffa2d08fb | class CreditCardReceiptObject < KFSDataObject
include AccountingLinesMixin
DOC_INFO = { label: 'Credit Card Receipt Document', type_code: 'CCR', transactional?: true }
attr_accessor :organization_document_number, :explanation,
:credit_card_receipts
def initialize(browser, opts={})
@brows... | Ruby | lib/kuality-kfs/data_objects/financial_processing/credit_card_receipt_object.rb | kuali/kuality-kfs | apache-2.0 | 1,387 | 44 | codeparrot/github-code |
8d4c8d6fa0c9d4c4cece23207445fbdadf8b4afd8be5a074ad13493672764ac9 | /*
* 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-iam/src/main/java/com/amazonaws/services/identitymanagement/model/UpdateSAMLProviderResult.java | jentfoo/aws-sdk-java | apache-2.0 | 4,230 | 130 | codeparrot/github-code |
d19f0a2f71e0b228661745f060600553534292c0f3cc7d996c66470fc07c2910 | //
// Copyright 2014, Sander van Harmelen
//
// 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... | GO | cloudstack44/AlertService.go | benjvi/go-cloudstack | apache-2.0 | 11,170 | 496 | codeparrot/github-code |
6d764a7c1b1f85f6f5ee3ed1fa8001c4a3585e0c06ea4f14cf43665056eca584 | /*
Copyright 2018 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/scheduler/types/host_ports.go | k82/kubernetes | apache-2.0 | 2,996 | 136 | codeparrot/github-code |
5a5db166458fe342ce47a15a125838f3a1e3b55e35cd2bb79acf6b7b1d436825 | /*
* #%L
* Native ARchive plugin for Maven
* %%
* Copyright (C) 2002 - 2014 NAR Maven Plugin developers.
* %%
* 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.or... | Java | src/main/java/com/github/maven_nar/cpptasks/compiler/CommandLineCompiler.java | Oneplus/nar-maven-plugin | apache-2.0 | 20,699 | 573 | codeparrot/github-code |
37c7528cbf0433ba0d30c74390bd7ad0df7d7f51047d1ac6dfd0b7191ff6986f | package dao
import (
"context"
"encoding/json"
"net/url"
"strconv"
"go-common/app/interface/main/web/model"
"go-common/library/ecode"
"go-common/library/log"
"go-common/library/net/metadata"
)
const _platform = "web"
// Feedback feedback http request.
func (d *Dao) Feedback(c context.Context, feedParams *mo... | GO | 126-go-common-master/app/interface/main/web/dao/feedback.go | LQJJ/demo | apache-2.0 | 1,525 | 57 | codeparrot/github-code |
3511328ceed75a0b2b5da0c81fd054f669e9c15e4c5c7c1e145175fc7fb6cfe7 | package com.idurdyev.torgcrm.jhipster.domain;
import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;
import javax.persistence.*;
import java.io.Serializable;
import java.util.Objects;
/**
* A CustomerType.
*/
@Entity
@Table(name = "customer_type")
@Cache(usage = CacheCo... | Java | src/main/java/com/idurdyev/torgcrm/jhipster/domain/CustomerType.java | torgcrm/TorgCRM-CE | apache-2.0 | 2,263 | 97 | codeparrot/github-code |
6f187cdbe4f92feffe7eb7e612777c834b5192230aa4314b965803a6df0bd120 | // Generated from /POI/java/org/apache/poi/hssf/record/DrawingSelectionRecord.java
#include <org/apache/poi/hssf/record/DrawingSelectionRecord_OfficeArtRecordHeader.hpp>
#include <java/lang/NullPointerException.hpp>
#include <java/lang/String.hpp>
#include <java/lang/StringBuffer.hpp>
#include <org/apache/poi/util/Hex... | C++ | src/org/apache/poi/hssf/record/DrawingSelectionRecord_OfficeArtRecordHeader.cpp | pebble2015/cpoi | apache-2.0 | 2,501 | 69 | codeparrot/github-code |
c984bf0298a41e302940565c1bd3c628d5458ae7dc9c5347260edb3c6018473e | package org.xudifsd.ast;
import org.xudifsd.lexer.Lexer;
import org.xudifsd.lexer.SyntaxException;
import org.xudifsd.visitor.Visitor;
import java.util.HashMap;
import java.util.Map;
public class ThriftService extends NamedItem {
private Map<String, ThriftMethod> methods = new HashMap<String, ThriftMethod>();
... | Java | src/main/java/org/xudifsd/ast/ThriftService.java | xudifsd/client-gen | apache-2.0 | 875 | 34 | codeparrot/github-code |
bac2d5fbb8a5f05363f551cae76fface3bf7bfdc4be21a48cc793215795bbe7c | /*
* 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-backup/src/main/java/com/amazonaws/services/backup/model/ConditionParameter.java | aws/aws-sdk-java | apache-2.0 | 7,135 | 204 | codeparrot/github-code |
1235b934709b9abe19ab6fc5a5ba6cf43ee1168d460055306a9abccfd1b50abf | // Copyright (c) Martin Costello, 2017. All rights reserved.
// Licensed under the Apache 2.0 license. See the LICENSE file in the project root for full license information.
using System.Net;
using System.Net.Http.Headers;
using System.Reflection;
using Microsoft.Extensions.DependencyInjection;
using Polly;
using Poll... | C# | src/LondonTravel.Skill/Extensions/IHttpClientBuilderExtensions.cs | martincostello/alexa-london-travel | apache-2.0 | 3,942 | 106 | codeparrot/github-code |
3c26e8cfc7df4410944ff659e59badf16720f1cafc19c5ff51bf9e66315be73b | /*******************************************************************************
* Copyright (c) 2009 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is a... | Java | phizdets/phizdets-idea/eclipse-src/org.eclipse.php.core/src/org/eclipse/php/core/compiler/ast/nodes/ForEachStatement.java | vovagrechka/fucking-everything | apache-2.0 | 2,627 | 98 | codeparrot/github-code |
ac0e8938c61603d541c2f918bfc7f75516c86148b3c874754bb2060e09b98123 | /**
* @license
* Copyright 2014 The Lovefield Project 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
... | JavaScript | lib/backstore/bundled_object_store.js | GerHobbelt/lovefield | apache-2.0 | 8,101 | 284 | codeparrot/github-code |
e777a0d1a67286085592cfb65eb2571e4cd44b80c606288fa3e5ab54257d2781 | /*
Copyright (C) 2016 Migeran
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... | Java | src/main/java/org/moe/gradle/groovy/closures/TaskClosure.java | multi-os-engine/moe-plugin-gradle | apache-2.0 | 1,009 | 34 | codeparrot/github-code |
f085c3b96dd97797699da5abf28093a5678bf762b72a032fad0ad94a78cde5e8 | /*
* Your rights to use code governed by this license http://o-s-a.net/doc/license_simple_engine.pdf
* Ваши права на использование кода регулируются данной лицензией http://o-s-a.net/doc/license_simple_engine.pdf
*/
using System;
using System.Collections.Generic;
using System.Globalization;
using OsEngine.Entity;
... | C# | project/OsEngine/Journal/Internal/DealStaticticGenerator.cs | AlexWan/OsEngine | apache-2.0 | 28,380 | 877 | codeparrot/github-code |
edc747559038305ef4d47b05b0517ad589f62485402370e70db7cd96cb3e28f1 | /*
* 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 | common/src/main/java/org/apache/rocketmq/common/protocol/body/ConsumeMessageDirectlyResult.java | Coneboy-k/incubator-rocketmq | apache-2.0 | 2,426 | 94 | codeparrot/github-code |
eea173ba7568baea0b22e49036bddc3137f61eaecd42a876fbb119e1911e1b96 | package local.entwickler.photos;
import java.io.Serializable;
import lotus.domino.Base;
import lotus.domino.NotesException;
public class Utilities implements Serializable {
public static final int EQUAL = 0;
public static final int LESS_THAN = -1;
public static final int GREATER_THAN = 1;
private static final ... | Java | nsf.library/Code/Java/local/entwickler/photos/Utilities.java | spanky762/EntwicklerCamp_2015 | apache-2.0 | 928 | 43 | codeparrot/github-code |
f3b15205685f2dd60fd4ce57bdede101df27187d77da8b5a53c6d7c5e0f85e54 | <div class="wpthemeHiddenPlus">
<section class="ibmPortalControl wpthemeControl wpthemeHiddenPlusControl wpthemeHiddenPlus a11yRegionTarget" role="region" aria-labelledby="">
<!-- asa.portlet.id marks the node whose contents are the id of this layout control -->
<span style="display:none" class="asa.portlet.id"></... | HTML | source/bootstrap.theme/skins/HiddenPlus/nls/skin_ko.html | OpenNTF/Sample-Bootstrap-Portal-Theme | apache-2.0 | 4,183 | 59 | codeparrot/github-code |
69261800a75a67ca1a04cfff5341439789aa63d301b1b0970d8f7838dbcc270b | package org.hibernate.cache.rediscala.utils
import scala.annotation.varargs
/**
* Hash computation
*
* @author 배성혁 sunghyouk.bae@gmail.com
* @since 2013. 12. 12. 오후 4:57
*/
private[rediscala] object Hashs {
/** The constant NULL_VALUE. */
val NULL_VALUE = 0
/** The constant ONE_VALUE. */
val ONE_VALUE =... | Scala | src/main/scala/org/hibernate/cache/rediscala/utils/Hashs.scala | debop/hibernate-rediscala | apache-2.0 | 898 | 46 | codeparrot/github-code |
5d77ce44281e63ffad2cdfce6c43658083374094171a5c85a801f453f6968abd | using AutoMapper;
using CoreDocker.Core.Components.Users;
using CoreDocker.Dal.Models.Users;
namespace CoreDocker.Core.Framework.Mappers
{
public static partial class MapCore
{
public static void CreateUserMap(IMapperConfigurationExpression cfg)
{
cfg.CreateMap<User, UserReference>... | C# | src/CoreDocker.Core/Framework/Mappers/MapCore.User.cs | rolfwessels/CoreDocker | apache-2.0 | 2,931 | 75 | codeparrot/github-code |
d172634fb014982049f89c7c408c0e9a33f5a7a4ddddc186ab93bc950b8f20a3 | require 'sinatra'
require 'mongo'
require 'json/ext'
# I did not test my code because I do not know anything about Ruby test tools
include Mongo
#def get_connection
# return @db_connection if @db_connection
# db = URI.parse(ENV['MONGOHQ_URL'])
# db_name = db.path.gsub(/^\//, '')
# @db_connection = Mongo::Connect... | Ruby | app.rb | msenol86/chAss | apache-2.0 | 4,022 | 114 | codeparrot/github-code |
556cf21843a3d314bb2e8ecab824ea574d093954a547b4dcf46d381c5b0446ed | /*
* Copyright 2000-2014 Vaadin 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/main/java/com/customweb/sass/internal/parser/function/CeilFunctionGenerator.java | customweb/sass-compiler | apache-2.0 | 1,180 | 36 | codeparrot/github-code |
2c5813cdeb2a337239486fc6912e95fe607cd5e313bf085920bb8eb9396f5f70 | package com.farsunset.lvxin.controller;
import java.io.IOException;
import org.apache.commons.io.IOUtils;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.anno... | Java | release/LvxinAccountServer/src/main/java/com/farsunset/lvxin/controller/LXAccountController.java | funset/lvxin-pro | apache-2.0 | 3,549 | 118 | codeparrot/github-code |
bad12a1cecfb4edca58ae586a0a6bd31a7b1ced0880bb3bec4b75d9911a5dfeb | /*
Copyright (c) 2014-2016 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 applicable law or agr... | GO | govc/vm/power.go | RotatingFans/govmomi | apache-2.0 | 3,862 | 161 | codeparrot/github-code |
e1898ea01b9970498664c8069a8f10fe6156e86ee55a7d1c10d5f2d11f178618 | /*
* 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
* distribu... | Java | discovery-server/src/main/java/app/metatron/discovery/domain/mdm/catalog/CatalogController.java | metatron-app/metatron-discovery | apache-2.0 | 10,186 | 247 | codeparrot/github-code |
7717eb843a33329091ea3621a56c63aa4fbed10b110c4ca64b88d4dd917937b8 | # ----------------------------------------------------------------------------
#
# Package : Jackson-datatype-Guava
# Version : 2.13
# Source repo : https://github.com/FasterXML/jackson-datatypes-collections
# Tested on : ubi: 8.3
# Script License: Apache License 2.0
# Maintainer's : Hari Pithani <Ha... | Shell | j/Jackson-datatype-Guava/Jackson-datatype-Guava_ubi_8.3.sh | ppc64le/build-scripts | apache-2.0 | 2,123 | 80 | codeparrot/github-code |
1c4c2946abe11c7e661746bde7794c3542c114e65a50ccabea2da9e411956ac2 | /**
* Copyright 2012 Mikio Hokari
*
* 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 ... | Scala | src/main/scala/com/archerial/queryexp/TreeColInfo.scala | pokarim/archerial | apache-2.0 | 1,145 | 36 | codeparrot/github-code |
0d9fcbc0ac6e7f1840fc3c981105de5deceddd4af92976ac5bf786afa558e518 | /* #################################################################################################
*
* Function: Help Command for SCDE (Smart Connected Device Engine)
*
* ESP 8266EX & ESP32 SOC Activities ...
* Copyright by EcSUHA
*
* Created by Maik Schulze, Sandfuhren 4, 38448 Wolfsburg, Germany ... | C | components/Help_Command/Help_Command.c | EcSUHA/SCDE | apache-2.0 | 17,135 | 623 | codeparrot/github-code |
36948c2a495c425d4df42bcc62e70a5b76edf81cb9c0547751a094298307e2c9 |
// BoundingBox.h
// Declares the cBoundingBox class representing an axis-aligned bounding box with floatingpoint coords
#pragma once
#include "Vector3.h"
#include "Defines.h"
// tolua_begin
/** Represents two sets of coords, minimum and maximum for each direction.
All the coords within those limits (inclus... | C | src/BoundingBox.h | jammet/MCServer | apache-2.0 | 3,832 | 103 | codeparrot/github-code |
7616290c45ecffb448d382850313c59f077525bf7ddb4296f1f078fe636c14b4 | #!/usr/bin/env python2.7
# -*- coding: utf-8 -*-
import codecs
import json
import re
import urllib
with codecs.open('download/package-jsons', encoding='utf-8') as in_file, \
codecs.open('output.txt', mode='wb', encoding='utf-8') as out_file:
for package_json in in_file:
package_dict = json.loads(p... | Python | lib/fathead/py_pi/parse.py | samskeller/zeroclickinfo-fathead | apache-2.0 | 1,981 | 51 | codeparrot/github-code |
30a5325b6a97511de8ae95f174466df45f9c2b256e80c4756ad55c2241122a25 | package com.github.linsolas.casperjsrunner;
import org.apache.maven.plugin.logging.Log;
public class LogUtils {
private static Logger logger;
public static void setLog(Log log, boolean verbose) {
logger = new Logger(log, verbose);
}
public static Logger getLogger() {
return logger;
... | Java | src/main/java/com/github/linsolas/casperjsrunner/LogUtils.java | linsolas/casperjs-runner-maven-plugin | apache-2.0 | 854 | 46 | codeparrot/github-code |
c8182d63ea3d516d4d5af9b28eface51ec45916558355ec3560a468c46c949b2 | package com.rabbit.services.serviceImp.base;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Service;
import com.rabbit.conf.basemapper.BaseMapper;
import com.rabbit.dto.base.SimpleLanguage... | Java | rabbitmq-consumer/src/main/java/com/rabbit/services/serviceImp/base/FoundationService.java | liudih/rabbitmq | apache-2.0 | 896 | 32 | codeparrot/github-code |
71fe20e406322b3573daf26f868ae29d66a9a8bad351104aeb29e42ba4040d75 | /**
* Copyright 2010 Wealthfront 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... | Java | kawala-common/src/main/java/com/kaching/platform/common/Strings.java | wealthfront/kawala | apache-2.0 | 1,804 | 53 | codeparrot/github-code |
afe9d1a7765c0546d59473e1c92996c95bc583a600b1bbabc82f933108cacf02 | /*
* Copyright 2016-present Facebook, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may
* not use this file except in compliance with the License. You may obtain
* a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or... | Java | src/com/facebook/buck/versions/VersionedTargetGraphBuilder.java | sdwilsh/buck | apache-2.0 | 20,284 | 564 | codeparrot/github-code |
9219ac017354b4d44b0e45d381dac62be47530d4dc0db4acec2b25675a26fd6c | package org.deeplearning4j.spark.stats;
import lombok.Getter;
/**
* Event stats implementation with number of examples
*
* @author Alex Black
*/
public class ExampleCountEventStats extends BaseEventStats {
@Getter private final int totalExampleCount;
public ExampleCountEventStats(long startTime, long du... | Java | deeplearning4j-scaleout/spark/dl4j-spark/src/main/java/org/deeplearning4j/spark/stats/ExampleCountEventStats.java | xuzhongxing/deeplearning4j | apache-2.0 | 1,014 | 34 | codeparrot/github-code |
96a0c537d97874b3bf5168bf90b9ffb1269af30faafdb16044fdb1314105a180 | function Test-Component($Name, $Package)
{
if([System.String]::IsNullOrEmpty($Package)){
$Package = $Name
}
Write-Verbose "Searching $Package"
$result = command $Name
if($result -eq $null){
Write-Verbose "$Package not founded. Installing..."
if($Name.ToLower() -eq "choco"){... | PowerShell | sources/scripts/EnvironmentNode.psm1 | xunilrj/sandbox | apache-2.0 | 5,544 | 200 | codeparrot/github-code |
2db4e1382bc5433286dd02d0c64274af54ef25c6baea768748b8ec7ed2fda83a | //
// Copyright 2019 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
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to ... | C | cc/algorithms/binary-search.h | google/differential-privacy | apache-2.0 | 16,966 | 450 | codeparrot/github-code |
e6cd671bf4ca47e0924f3b511b240ca8a28e41ac2ee1d20d56ff595e7434ab0e | package org.jboss.shrinkwrap.descriptor.metadata.filter;
import junit.framework.Assert;
import org.jboss.shrinkwrap.descriptor.metadata.DomTestUtil;
import org.jboss.shrinkwrap.descriptor.metadata.Metadata;
import org.junit.Test;
/**
* Test class testing the {@link EnumFilter} class.
*
* @author <a href="mailto:... | Java | metadata-parser/src/test/java/org/jboss/shrinkwrap/descriptor/metadata/filter/EnumFilterTestCase.java | shrinkwrap/descriptors | apache-2.0 | 2,883 | 62 | codeparrot/github-code |
1b02133608ce8b4376be2de6cc09f20d18f301bd2b6c9a0b8835f569308b7f8b | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# USAGE
# python -matx -s ESLKJXX gui
import argparse
import functools
import json
import sys
import inspect
from contextlib import contextmanager
import atx.androaxml as apkparse
from atx.cmds import run
from atx.cmds import iosdeveloper
from atx.cmds import install
... | Python | atx/__main__.py | Andy-hpliu/AirtestX | apache-2.0 | 4,930 | 142 | codeparrot/github-code |
013dc04032b302c5e271009a31ddfc294c5c23f9878ecb1ec8be698b2b702233 | package br.oltecnologias.hype.model;
import java.io.Serializable;
import javax.persistence.Entity;
import javax.persistence.Id;
@Entity
public class Usuario implements Serializable {
private String nome;
@Id
private String nickName;
private String senha;
private boolean isA... | Java | HypeProjeto/src/br/oltecnologias/hype/model/Usuario.java | Odravison/Hype | apache-2.0 | 1,417 | 66 | codeparrot/github-code |
a4cc55fffb4e89c33153d4bec59bf7162a6d32557db668defe6582c6bd17d949 | /*
* 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 | presto-main/src/test/java/io/prestosql/sql/planner/assertions/PlanMatchPattern.java | miniway/presto | apache-2.0 | 34,705 | 925 | codeparrot/github-code |
91e438feb871a04877636789b12e2550dc51134cc4635ff7c84ddc0cb945ede4 | <!doctype html>
<html class="default no-js">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>"tscmd/dev/populate-watch-collection-cmd" | mailer</title>
<meta name="description" content="Documentation for mailer">
<meta name="viewport" content="width=device-width... | HTML | docs/modules/_tscmd_dev_populate_watch_collection_cmd_.html | google/wikiloop-doublecheck | apache-2.0 | 7,728 | 173 | codeparrot/github-code |
910f8a5f913daef7d6c95574dc999b01ed3b5602cb24ac0e48aaf3bc3d700762 | using NinjaHive.Contract.Models;
using NinjaHive.Core;
using System;
using System.Web.Mvc;
using NinjaHive.Contract.Queries.Skills;
using NinjaHive.Core.Models;
namespace NinjaHive.WebApp.Controllers
{
public class SkillsController : BaseController
{
private readonly IQueryProcessor queryProcessor;
... | C# | NinjaHive.WebApp/Controllers/SkillsController.cs | NinjaVault/NinjaHive | apache-2.0 | 2,333 | 81 | codeparrot/github-code |
27cad7a62f6a19092a36b4e57020f4e481b69e160e9503030dafb25d50701be3 | /*
* Waltz - Enterprise Architecture
* Copyright (C) 2016, 2017, 2018, 2019 Waltz open source project
* See README.md for more information
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License ... | JavaScript | waltz-ng/client/measurable-relationship/components/editor/create-related-measurable-editor.js | kamransaleem/waltz | apache-2.0 | 8,677 | 288 | codeparrot/github-code |
24e6845a9d6fa44138a8cdbec2212e2631fae5e8b7ea193d399a0b502eff84e4 | /*
* Copyright (C) 2017-2022 Sebastiano Vigna
*
* 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 | test/it/unimi/dsi/fastutil/objects/ReferenceArraySetTest.java | vigna/fastutil | apache-2.0 | 3,249 | 104 | codeparrot/github-code |
80a62455d0eb1fe0d2cc7723c498a509174c9c51d484786949ae6b55fae0b287 | """
ChkConfig - command ``chkconfig``
=================================
"""
from collections import namedtuple
from .. import Parser, parser
import re
from insights.specs import chkconfig
@parser(chkconfig)
class ChkConfig(Parser):
"""
A parser for working with data gathered from `chkconfig` utility.
Sam... | Python | insights/parsers/chkconfig.py | wcmitchell/insights-core | apache-2.0 | 6,449 | 157 | codeparrot/github-code |
ad21af8e8a23c2419425fda6ef35a79a4485900a761ab2c428ca04483d05e341 |
package io.fabric8.kubernetes.api.model;
import java.util.HashMap;
import java.util.Map;
import com.fasterxml.jackson.annotation.JsonAnyGetter;
import com.fasterxml.jackson.annotation.JsonAnySetter;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fas... | Java | kubernetes-model-generator/kubernetes-model-core/src/generated/java/io/fabric8/kubernetes/api/model/AzureFileVolumeSource.java | fabric8io/kubernetes-client | apache-2.0 | 2,894 | 110 | codeparrot/github-code |
e37bc65d2a9e2e058787559e5b25f19b995006c3fe71a5fe2a79de813ee197b3 | const router = require('express').Router();
const validator = require('express-joi-validation')({ passError: true });
const guard = require('express-jwt-permissions')();
const am = require('../../utils/async-middleware');
const { ID_SCHEMA } = require('../../utils');
const { RoleSchema } = require('../models/schemas');... | JavaScript | packages/server/app/routes/roles.js | K-Fet/K-App | apache-2.0 | 1,048 | 41 | codeparrot/github-code |
2a9ffb4694f87b223fbe38375866087c45d7624cb782c810919107140193b313 | // Copyright (c) 2019 Cisco and/or 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 app... | GO | plugins/vpp/l3plugin/vppcalls/vpp2101/vrf_vppcalls.go | VladoLavor/vpp-agent | apache-2.0 | 2,101 | 68 | codeparrot/github-code |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.