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 |
|---|---|---|---|---|---|---|---|---|
0dce189abd059c6deadc46e902116d3b872010f948a1eff1ff821da118ed02b5 | /*
* Copyright 2018 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | Java | subprojects/snapshots/src/main/java/org/gradle/internal/fingerprint/impl/IgnoredPathFileCollectionFingerprinter.java | lsmaira/gradle | apache-2.0 | 1,364 | 35 | codeparrot/github-code |
bfcfa41ef88be0e061a687023c4df6ac3e294efee9a9aa62bb4f3c7bc0fdd7ec | /*
* Copyright (c) 2018, EPAM SYSTEMS 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 | services/dlab-webapp-common/src/main/java/com/epam/dlab/rest/mappers/AuthenticationExceptionMapper.java | epam/DLab | apache-2.0 | 1,133 | 32 | codeparrot/github-code |
3ae23df5065f22352610d783e4ae5ee21e273aae184618313574ca47d1703f62 | /*
* Copyright 2002-2019 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... | Java | spring-core/src/test/java/org/springframework/util/FileCopyUtilsTests.java | spring-projects/spring-framework | apache-2.0 | 2,753 | 91 | codeparrot/github-code |
40275b6c99700b3c5cfb93e0562e5a10f5f24e16ef6f283bfe22bc59dd7f66d0 | <!DOCTYPE html>
<html>
<head>
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<meta http-equiv=Content-Type content="text/html;charset=utf-8">
<meta property="wb:webmaster" content="e635a420782119b7" />
<meta name="keywords" content="可穿戴,可穿戴设备,百度可穿戴设备,百度可穿戴,智能设备,智能可穿戴设备,超智能设备,百度智能设备,便携设备,便携智能设备,百度便携设备,... | HTML | store.baidu.com/cache/product/html/2139.html | jiangerji/my-utils | apache-2.0 | 23,688 | 536 | codeparrot/github-code |
fc82e641410808e3a330b161c851977d2414ce71f4b6143dc010718e28814573 | <!DOCTYPE html>
<html>
<head>
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<meta http-equiv=Content-Type content="text/html;charset=utf-8">
<meta property="wb:webmaster" content="e635a420782119b7" />
<meta name="keywords" content="可穿戴,可穿戴设备,百度可穿戴设备,百度可穿戴,智能设备,智能可穿戴设备,超智能设备,百度智能设备,便携设备,便携智能设备,百度便携设备,... | HTML | store.baidu.com/cache/html/3404.html | jiangerji/my-utils | apache-2.0 | 15,791 | 350 | codeparrot/github-code |
54df7fa32acc1ff56b4a383a81bd1a242f7938d28632a36f18c15d48985b650a | /*
* Copyright 2015 Space Dynamics Laboratory - Utah State University Research 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/LICEN... | Java | server/openstorefront/openstorefront-core/service/src/main/java/edu/usu/sdl/openstorefront/service/message/UserDataAlertMessageGenerator.java | jbottel/openstorefront | apache-2.0 | 10,391 | 242 | codeparrot/github-code |
5f342d1606c67098c6e906adb2d0e88281bbea17606ae59b4b213c0874cb1557 | package me.Ninjoh.BattleEffects;
import org.bukkit.configuration.file.FileConfiguration;
import org.bukkit.plugin.java.JavaPlugin;
public class Main extends JavaPlugin
{
public static Main plugin;
@Override
public void onEnable()
{
// Fired when the server enables the plugin
// Use... | Java | src/me/Ninjoh/BattleEffects/Main.java | martijn-heil/BattleEffects | apache-2.0 | 1,422 | 51 | codeparrot/github-code |
efda97cddd57bcfcd5ee7b27b6a835923bbb11014ecaa63c5840345330d47e30 | // @flow
import { FlagGroupContext } from '@atlaskit/flag/flag-group';
import { AtlasKitThemeProvider } from '@atlaskit/theme';
import { withStyles } from '@material-ui/styles';
import React, { Component } from 'react';
import { CSSTransition, TransitionGroup } from 'react-transition-group';
import { translate } from... | JavaScript | react/features/notifications/components/web/NotificationsContainer.js | gpolitis/jitsi-meet | apache-2.0 | 8,560 | 305 | codeparrot/github-code |
27dcd33d4ed559d74eebdcd0c07f73bc1ea8b63c4cac56588de225d50a87dfa6 | package aufgabe6;
import java.util.Calendar;
public class Staat {
public String state_name;
public List list_persons;
/**
* Generates a State with name
*
* @param state_name
*/
public Staat(String state_name) {
this.state_name = state_name;
this.list_persons = new List();
}
/**
* Inserts a P... | Java | bakk/OOP WS08/src/aufgabe6/Staat.java | patrickfav/tuwien | apache-2.0 | 4,648 | 210 | codeparrot/github-code |
747eeadf34f41bc75933bdc10a8ffba7adad7eabea0e9bc77a5508bf83032359 | ////////////////////////////////////////////////////////////////////////////////////
// PERSONAJE PERFIL MODULE
////////////////////////////////////////////////////////////////////////////////////
(function (angular) {
'use strict';
var personajePerfil = angular.module('personajePerfil',
['ngAni... | JavaScript | www/app/personaje/personaje.js | josemonsalve2/PIMC | apache-2.0 | 30,437 | 655 | codeparrot/github-code |
44eb54c5353a969744016cc17f95ae32367a3732379199c96e84e4d7a2b5dd98 | # SHELL += -x
CXX = g++
# CXX = clang++ # Uncomment this line to build with Clang.
# OPENFST_VERSION = 1.3.4
# Uncomment the next line to build with OpenFst-1.4.1.
OPENFST_VERSION = 1.4.1
# Or with OpenFst-1.5.1
# OPENFST_VERSION = 1.5.1
# Note: OpenFst >= 1.4 requires C++11 support, hence you will need to use a
# r... | Makefile | tools/Makefile | yajiemiao/eesen | apache-2.0 | 7,429 | 184 | codeparrot/github-code |
094dbab37270a25b9a0df91d3658637bc410acac3eec15648ee8292eaa710515 | package it.unibz.krdb.sql;
/*
* #%L
* ontop-test
* %%
* Copyright (C) 2009 - 2014 Free University of Bozen-Bolzano
* %%
* 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... | Java | quest-test/src/test/java/it/unibz/krdb/sql/AbstractConstraintTest.java | ghxiao/ontop-spatial | apache-2.0 | 3,414 | 118 | codeparrot/github-code |
bcf1228599ab89ae62fba3dd8b5b5175bd4095293389b18ea91f36021dc5eebc | /*
* 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-protobuf/src/test/java/org/apache/geode/serialization/registry/CodecRegistryJUnitTest.java | shankarh/geode | apache-2.0 | 4,232 | 109 | codeparrot/github-code |
bee9840daf0ce45d5654e85f11ec83bc549999fdf573183c1d6f8e52f1fcaffb | package tpl.shiro.velocity;
import java.beans.BeanInfo;
import java.beans.Introspector;
import java.beans.PropertyDescriptor;
import java.util.Collection;
import org.apache.shiro.SecurityUtils;
import org.apache.shiro.authz.Permission;
import org.apache.shiro.subject.Subject;
import org.apache.velocity.tools.Scope;
i... | Java | nutz-tpl-core/src/main/java/tpl/shiro/velocity/ShiroTool.java | weiht/nutz-tpl | apache-2.0 | 5,177 | 196 | codeparrot/github-code |
92628b628e12c80e267b7c9f0cb62f9d2cc271dfcfc4981a2e9a8defd4c0de99 | /*
* 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 ... | JavaScript | packages/design-system/src/components/dropDown/test/useDropDown.js | GoogleForCreators/web-stories-wp | apache-2.0 | 3,746 | 124 | codeparrot/github-code |
bf91bd0be4ea9b4b760a840f75dc551a4c0237c60e6ea67faf77ad231cd038f3 | /*
* Copyright 2008 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 ... | CSS | static/styles.css | kscharding/integral-solutions-smxq | apache-2.0 | 14,662 | 887 | codeparrot/github-code |
3d12c8f9ee3079c6088797cd81b244a2f511223d008014101d442809b944dbd6 | package de.peeeq.wurstscript.attributes;
import java.util.Map;
import java.util.Set;
import org.eclipse.jdt.annotation.Nullable;
import com.google.common.collect.Maps;
import com.google.common.collect.Sets;
import de.peeeq.wurstscript.jassAst.JassAstElement;
import de.peeeq.wurstscript.jassAst.JassFuncRef;
import d... | Java | de.peeeq.wurstscript/src/de/peeeq/wurstscript/attributes/JassAttributes.java | Crigges/WurstScript | apache-2.0 | 1,329 | 53 | codeparrot/github-code |
38dce11b8d91205b679cff3f230616975a33a2cb7c19c12a13ca83b472f3694f | package ch18io;
import java.io.*;
/**
* <pre>
* Output:
* Value 0: 0.0
* Value 1: 1.414
* Value 2: 2.828
* Value 3: 4.242
* Value 4: 5.656
* Value 5: 7.069999999999999
* Value 6: 8.484
* The end of the file
* Value 0: 0.0
* Value 1: 1.414
* Value 2: 2.828
* Value 3: 4.242
* Value 4: 5.656
* Value 5: 4... | Java | src/main/java/ch18io/D13_UsingRandomAccessFile.java | deguo/tij4 | apache-2.0 | 1,067 | 50 | codeparrot/github-code |
c566d62025f4edbf6965fd8703ab280dc97166f3d91424a400d145b537e9fdc6 |
var Schedule = (function () {
function Schedule(days, hours, mins) {
this.days = parse(days, 6); //(0-6) = (Sun - Sat)
this.hours = parse(hours, 23); //(0-23)
this.mins = parse(mins, 11); //(0-11) = (0,5,10,...55)
}
Schedule.fromData = function(data) {
return new Schedule(data.days, data.h... | JavaScript | schedule.js | samitbadle/scheduler.js | apache-2.0 | 14,190 | 496 | codeparrot/github-code |
33f966e04193406e00c65e026defca7b763a11c3faf10aeca5feec23a6943422 | /*
Q Light Controller
channelsgroup.h
Copyright (c) Massimo Callegari
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.txt
Unless req... | C | engine/src/channelsgroup.h | joepadmiraal/qlcplus | apache-2.0 | 4,607 | 169 | codeparrot/github-code |
ae9912c68688f64bacf71d7282bb8f0d86ec0f17dade425605a37499b9c57368 | /*
* Copyright 2014 Adam Rosenberger
*
* 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... | Scala | sandbox/src/main/scala/org/nalloc/bitb/kcits/sandbox/memoryusage/ForAllMemoryUsage.scala | arosenberger/nalloc | apache-2.0 | 2,622 | 92 | codeparrot/github-code |
410c53a551f44f785bacc934cdda107dc69bc93a355c28a513dc4b04d9584d13 | package com.littlechoc.olddriver.presenter;
import android.content.Context;
import android.hardware.Sensor;
import android.hardware.SensorEvent;
import android.hardware.SensorEventListener;
import android.hardware.SensorManager;
import com.littlechoc.commonutils.Logger;
import com.littlechoc.olddriver.Constants;
impo... | Java | app/src/main/java/com/littlechoc/olddriver/presenter/SensorRecordPresenter.java | junhaozhou/old-driver | apache-2.0 | 7,127 | 215 | codeparrot/github-code |
89dad2c406b247438fc9b01db30eacfe85c23bde101aa257dcfa6e90b64b5b9d | /* Copyright 2015 Mozilla Foundation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed... | JavaScript | web/pdf_link_service.js | caremerge/pdf.js | apache-2.0 | 15,684 | 625 | codeparrot/github-code |
872d62696e0c63bcc8f645e1912707e5a983cbbaeeee4c310c734e134ed058f4 | <!doctype html>
<html class="theme-next use-motion ">
<head>
<meta charset="UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"/>
<meta http-equiv="Cache-Control" content="no-transform" />
<meta http-equiv=... | HTML | about/index.html | lixi0912/lixi0912.github.io | apache-2.0 | 12,937 | 535 | codeparrot/github-code |
a58d4b62158d373eb70c171c68de63b0db06792bf617abf620647936fa79d60a | // Licensed to the Software Freedom Conservancy (SFC) under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. The SFC licenses this file
// to you under the Apache License, Version 2.0 (the
// "License"); you m... | JavaScript | packages/side-runtime/__tests__/playback-tree/command-leveler.spec.js | SeleniumHQ/selenium-ide | apache-2.0 | 2,757 | 69 | codeparrot/github-code |
7e50fdf805c0da0ec9dbe18b05cb6a08751d84363404a8fe472d72558736afb8 | <?php
namespace marqu3s\itam\models;
use marqu3s\itam\Module;
use marqu3s\itam\traits\TraitAsset;
use yii\db\ActiveRecord;
/**
* This is the model class for table "itam_asset_smartphone".
*
* @property integer $id
* @property integer $id_asset
* @property string $imei
* @property string $os
* @property string... | PHP | models/AssetSmartphone.php | marqu3s/yii2-itam-module | apache-2.0 | 2,585 | 97 | codeparrot/github-code |
eeaa1a6e903301fde0925d841cdeb53723017c5c6303f5a9b6dceffe6f560db6 | #!/usr/bin/python
# -*- coding: utf-8 -*-
#encoding=utf-8
'''
Created on 2015年4月21日
@author: kerry
'''
from base.http import MIGHttpMethodGet,MIGHttpMethodPost
from base.miglog import miglog
import urlparse
import json
class HttpApi(object):
'''
classdocs
'''
def __init__(self):
'''
... | Python | api/HttpApi.py | smartdata-x/robots | apache-2.0 | 1,059 | 45 | codeparrot/github-code |
6cfccdb089d5356668b1014790d9c749666d6f5c790bd886030818d54ad61fee | /**
*
*/
package org.topology.bgp_ls.config.nodes.impl;
import org.apache.commons.configuration.ConfigurationException;
import org.apache.commons.lang3.StringUtils;
import org.apache.commons.lang3.text.StrTokenizer;
import org.topology.bgp_ls.net.NetworkLayerReachabilityInformation;
/**
* @author rainer
*
*/
pu... | Java | src/main/java/org/topology/bgp_ls/config/nodes/impl/NetworkLayerReachabilityParser.java | bnitin/bgp-ls | apache-2.0 | 6,179 | 191 | codeparrot/github-code |
5c5ea05436c740416b7f27128cc99efe9d18c948a975ac38ead4fda857b4446f | /*
* File: ngx_sf1r_handler.cpp
* Author: Paolo D'Apice
*
* Created on January 17, 2012, 11:23 AM
*/
#define BOOST_THREAD_DONT_USE_CHRONO
extern "C" {
#include "ngx_sf1r_handler.h"
#include "ngx_sf1r_module.h"
#include "ngx_sf1r_utils.h"
}
#include "ngx_sf1r_ddebug.h"
#include <3rdparty/zookeeper/ZooKeeper.h... | C++ | sf1r-module/ngx_sf1r_handler.cpp | izenecloud/nginx | apache-2.0 | 8,600 | 265 | codeparrot/github-code |
dc5f3069c563789d94f9bbf7061d48de70a8857b7ad34495c500c68b389545aa | package com.twitter.elephantbird.pig.load;
import java.io.IOException;
import java.nio.charset.Charset;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import org.apache.hadoop.mapreduce.InputFormat;
import org.apache.hadoop.mapreduce.Job;
import org.apache.hadoop.mapreduce.RecordReader;
import org.ap... | Java | src/java/com/twitter/elephantbird/pig/load/LzoBaseRegexLoader.java | hirohanin/elephant-birdpig7hadoop21 | apache-2.0 | 3,960 | 125 | codeparrot/github-code |
014ba1be5cbb509be12f4157d46a7f409da6191e8220b230e8654c7f6188407c | package com.ecyrd.speed4j;
import javax.management.InstanceNotFoundException;
import javax.management.IntrospectionException;
import javax.management.MalformedObjectNameException;
import javax.management.ReflectionException;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import com.ecyrd.spe... | Java | src/test/java/com/ecyrd/speed4j/MultiThreadTest.java | jalkanen/speed4j | apache-2.0 | 2,385 | 91 | codeparrot/github-code |
4146b56609e92594a6b67112e5b8144ada81a7bfba046c8d4938fefe4cc01086 | package mysql
import (
_ "github.com/go-sql-driver/mysql"
"github.com/jmoiron/sqlx"
"github.com/stellar/federation/db"
)
type MysqlDriver struct {
database *sqlx.DB
}
func (d *MysqlDriver) Init(url string) (err error) {
d.database, err = sqlx.Connect("mysql", url)
return
}
func (d *MysqlDriver) GetByStellarAd... | GO | src/github.com/stellar/federation/db/drivers/mysql/main.go | stellar/federation | apache-2.0 | 940 | 43 | codeparrot/github-code |
218b33a111ead672435a166183f4e59aeef11faffee3ac335b937949814ade61 | #if !defined(lint) && !defined(DOS)
static char rcsid[] = "$Id: sequence.c 1012 2008-03-26 00:44:22Z hubert@u.washington.edu $";
#endif
/*
* ========================================================================
* Copyright 2006-2007 University of Washington
* Copyright 2013-2015 Eduardo Chappa
*
* Licensed und... | C | pith/sequence.c | RsrchBoy/dpkg-alpine | apache-2.0 | 13,323 | 461 | codeparrot/github-code |
c6b4a2d7e703d3cc7b18a341855e952810a0ad2600d34066383117f33b8b4fdf | /*
* 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 | bpmn-swing/src/main/java/com/googlecode/bpmn_simulator/bpmn/swing/model/core/common/gateways/ParallelGatewayShape.java | steschw/bpmn-simulator | apache-2.0 | 2,034 | 53 | codeparrot/github-code |
72c9b3fce6cca0d4778fa1209c50f06730593884b0ce5ecbe150bca1db145903 | package com.gh4a.fragment;
import android.os.Bundle;
import com.gh4a.ServiceFactory;
import com.meisolsson.githubsdk.model.GitHubEvent;
import com.meisolsson.githubsdk.model.Page;
import com.meisolsson.githubsdk.model.Repository;
import com.meisolsson.githubsdk.service.activity.EventService;
import io.reactivex.Sing... | Java | app/src/main/java/com/gh4a/fragment/RepositoryEventListFragment.java | slapperwan/gh4a | apache-2.0 | 1,249 | 37 | codeparrot/github-code |
fcfe40fdf236fe9cb34c85bf7b9bc8debb5f839beb42428d1da5ff6ad5541f97 | /*
* Copyright 2005 JBoss 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 | guvnor-webapp/src/main/java/org/drools/guvnor/client/ruleeditor/toolbar/StandaloneEditorIndividualActionToolbarButtonsConfigurationProvider.java | Rikkola/guvnor | apache-2.0 | 1,727 | 74 | codeparrot/github-code |
c9a5eaa9be488e63526b38225c931c3f9f7b329c188b5a0acf9e5eaf2e4caabf | /*
* Copyright 2013-2021 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by ap... | Java | cloudfoundry-client/src/main/java/org/cloudfoundry/client/v3/deployments/Deployment.java | cloudfoundry/cf-java-client | apache-2.0 | 2,682 | 105 | codeparrot/github-code |
e2f81dd28e69c0d315167ce85566a318b793a560afec37fc83d4ba8843e59337 | /*
* Copyright (c) 2015 IBM Corporation 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/LICENSE-2.0
*
* Unless required by applicab... | Java | core/src/main/java/org/brunel/maps/projection/Projection.java | Brunel-Visualization/Brunel | apache-2.0 | 3,613 | 114 | codeparrot/github-code |
a6742854f49e61879b4d98a3f3750a1c31c7a58193a442d9ade29da4f9511b72 | # Cookbook Name:: openldap
# Attributes:: openldap
#
# Copyright 2008-2009, Opscode, 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
#
... | Ruby | attributes/default.rb | cookbooks/oc-openldap | apache-2.0 | 2,188 | 62 | codeparrot/github-code |
ac9f8d7bd6c616b5737039ae8aab1f79bc719b8336ba277dbebc8543c005875f | using System;
using System.Reactive.Subjects;
namespace SciChart.UI.Reactive.Observability
{
/// <summary>
/// Emulates a property getter / setter with observability
/// </summary>
/// <example>
/// <code>
/// public class MyClassIWantToObserveSomethingOn
/// {
/// public Observabl... | C# | SciChart.UI.Reactive/Observability/ObservableProperty.cs | ABTSoftware/SciChart.Wpf.UI | apache-2.0 | 1,198 | 48 | codeparrot/github-code |
81c8c819e1cd6eff4027846c7d81aaf052ff5475d79c89ebd741c80bda575c0e | package resource
import (
"sort"
"strconv"
"github.com/google/go-github/github"
"github.com/cppforlife/go-semi-semantic/version"
)
type CheckCommand struct {
github GitHub
}
func NewCheckCommand(github GitHub) *CheckCommand {
return &CheckCommand{
github: github,
}
}
func (c *CheckCommand) Run(request Ch... | GO | check_command.go | zachgersh/github-release-resource | apache-2.0 | 2,347 | 118 | codeparrot/github-code |
497b7081a5196d6908a468407c49a445fab53d8ab2c755d39923af82487630fa |
package com.ugurcan.springdemo.mvc;
import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;
import javax.validation.constraints.Size;
public class Customer
{
private String firstName;
@NotNull( mes... | Java | 35-Spring-MVC-Demo-Form-Validation-Regex/src/com/ugurcan/springdemo/mvc/Customer.java | ugurcancetin/Spring-Training | apache-2.0 | 1,282 | 71 | codeparrot/github-code |
ce4eb2827f0d529f2e2cf2f7f9272ff95aa65f774fe30e5254f028a84f89eb2c | # coding=utf-8
# coding=utf-8
# Copyright 2019 The RecSim 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... | Python | recsim/agents/cluster_bandit_agent.py | google-research/recsim | apache-2.0 | 3,423 | 94 | codeparrot/github-code |
8538aed7eace641a0e859db37702fe2fcc5e8cbbacb2f38f58569fcf71c2b224 | package io.leangen.graphql.generator;
import io.leangen.graphql.metadata.strategy.query.ResolverBuilder;
import java.lang.reflect.AnnotatedType;
import java.util.Collection;
import java.util.function.Supplier;
import java.util.stream.Collectors;
/**
* Created by bojan.tomic on 7/10/16.
*/
public class OperationSou... | Java | src/main/java/io/leangen/graphql/generator/OperationSource.java | leangen/GraphQL-SPQR | apache-2.0 | 1,434 | 47 | codeparrot/github-code |
49fbed71ee6440adef58f4f128e239b8fbb1d3cb8746f1cb9f288339abae2c02 | /*
*
* * Copyright (c) 2015, 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
* *
* ... | Java | modules/siddhi-extensions/time/src/main/java/org/wso2/siddhi/extension/time/CurrentDateFunctionExtension.java | lasanthafdo/siddhi | apache-2.0 | 2,457 | 84 | codeparrot/github-code |
707f31e5c3e67af1e39c417ca55bfcbae3fb15d453a46a1203ec6fb5fe8f185f | /*
* Copyright 2017 Sumo Logic
*
* 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 | java/core/src/main/java/ws/epigraph/types/MapTypeImpl.java | SumoLogic/epigraph | apache-2.0 | 2,228 | 74 | codeparrot/github-code |
c18245c1948912979545d1b85169342e495ca7b6580cedb8e54aeae077e1c745 | package com.linkedin.mxe;
import com.linkedin.pegasus2avro.mxe.FailedMetadataChangeEvent;
import com.linkedin.pegasus2avro.mxe.MetadataAuditEvent;
import com.linkedin.pegasus2avro.mxe.MetadataChangeEvent;
import com.linkedin.pegasus2avro.mxe.MetadataGraphEvent;
import com.linkedin.pegasus2avro.mxe.MetadataSearchEvent;... | Java | metadata-events/mxe-registration/src/main/java/com/linkedin/mxe/Configs.java | mars-lan/WhereHows | apache-2.0 | 3,670 | 77 | codeparrot/github-code |
f23b78398537828ae2b4562cee9047615443b926d1d2d61035c7cd6edd4c051c | /**********************************************************************
* Online Judge : POJ
* Problem Title : Going Home
* ID : 2195
* Date : 5/7/2009
* Time : 7:9:43
* Computer Name : EVERLASTING-PC
***********************************************... | C++ | 2195/5111487_CE.cc | twilightgod/twilight-poj-solution | apache-2.0 | 2,480 | 107 | codeparrot/github-code |
cadbb6ff5646362cc9a0833df5205397b8825acab34a8d3846f134acd98143ae | /**
* 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 | ctakes-ytex-uima/src/main/java/org/apache/ctakes/ytex/uima/annotators/SenseDisambiguatorAnnotator.java | TCU-MI/ctakes | apache-2.0 | 8,762 | 229 | codeparrot/github-code |
ed1826781ce76a081ccf6ad23c1a5806d309ed2dc32c35940b82edbadba3eab9 | # 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 applica... | Python | models/official/unet3d/tpu_executor.py | tensorflow/tpu | apache-2.0 | 10,653 | 278 | codeparrot/github-code |
12ba24e6e8b3d60eb5fa87a450027aae474295cfdeac194c659524e60a9bda2d | package io.dropwizard.hibernate;
import com.sun.jersey.spi.container.ResourceMethodDispatchProvider;
import org.hibernate.SessionFactory;
import org.junit.Test;
import static org.assertj.core.api.Assertions.assertThat;
import static org.mockito.Mockito.mock;
public class UnitOfWorkResourceMethodDispatchAdapterTest {... | Java | dropwizard-hibernate/src/test/java/io/dropwizard/hibernate/UnitOfWorkResourceMethodDispatchAdapterTest.java | ptomli/dropwizard | apache-2.0 | 1,210 | 35 | codeparrot/github-code |
7be9a65d8e61b0625de8b34e4fde551e747abf5d75b3efead30ac84e2cef942f | /*
* Copyright 2010-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" fil... | C++ | aws-cpp-sdk-monitoring/source/model/CompositeAlarm.cpp | cedral/aws-sdk-cpp | apache-2.0 | 12,032 | 331 | codeparrot/github-code |
5abb78dec4306eb9394e0919614853b4ae4d5bfe7f30a1b9f29efcffa16cb55e | package com.kodroid.pilotexample.android.ui.view;
import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.widget.FrameLayout;
import android.widget.TextView;
import com.kodroid.pilot.lib.android.frameBacking.PilotFrameBackedUI;
import com.kodroid.pilotexample.R;
im... | Java | android/PilotExample/app/src/main/java/com/kodroid/pilotexample/android/ui/view/SecondInSessionView.java | doridori/Pilot | apache-2.0 | 1,651 | 62 | codeparrot/github-code |
cb48030d030bfb0fb15bd86f8c2566302169126c4dd6badbc02546a7dfc1f76e | package citrixadc
import (
"github.com/citrix/adc-nitro-go/resource/config/ssl"
"github.com/citrix/adc-nitro-go/service"
"github.com/hashicorp/terraform/helper/schema"
"fmt"
"log"
"net/url"
"strings"
)
func resourceCitrixAdcSslservicegroup_ecccurve_binding() *schema.Resource {
return &schema.Resource{
Sche... | GO | citrixadc/resource_citrixadc_sslservicegroup_ecccurve_binding.go | citrix/terraform-provider-netscaler | apache-2.0 | 4,254 | 145 | codeparrot/github-code |
0ac04e916674499b8ce7732792ee05751586307249540f257138ef0656ead8c4 | /* ###
* IP: GHIDRA
*
* 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 writin... | Java | Ghidra/Framework/Project/src/main/java/ghidra/framework/main/ProjectToolBar.java | NationalSecurityAgency/ghidra | apache-2.0 | 3,527 | 136 | codeparrot/github-code |
675464f42186886086f95989750ebc2c85ae1d1af8f2cc69e68617c7050f3e3b | /*
* Copyright 2020 LinkedIn Corp. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicab... | Java | ambry-account/src/main/java/com/github/ambry/account/CompositeAccountService.java | linkedin/ambry | apache-2.0 | 8,009 | 194 | codeparrot/github-code |
e93d2725962c05aba6875516a2ee2233edd104c47ca7ea1366d36ae0a592243b | /* Copyright 2010 The MathWorks, Inc. */
/* Copyright 2014 Dr.O.Hagendorf, HS Wismar */
/* Copyright 2016 Sven Lack */
/*
* Must specify the S_FUNCTION_NAME as the name of the S-function.
*/
#define S_FUNCTION_NAME powerSTEP01_setstepmode
#define S_FUNCTION_LEVEL 2
/*
* Need to inclu... | C | blocks/mex/sourcen/powerSTEP01_setstepmode.c | ATM-HSW/mbed_target | apache-2.0 | 10,063 | 360 | codeparrot/github-code |
dfdf9861549f4032ff6edf4c2380b1f4137ea083a8247147a64b5c17fc527eca | #ifndef GNUPLOTATTRCOLOR_H
#define GNUPLOTATTRCOLOR_H
#include "../misc/GnuplotColor.h"
namespace K {
class GnuplotAttrColor {
protected:
GnuplotColor color;
public:
/** set the color to use for drawing this element using a hex-value */
//void setColorHex(const std::string& hex) {this->color = GnuplotCo... | C | misc/gnuplot/attributes/GnuplotAttrColor.h | k-a-z-u/KLib | apache-2.0 | 668 | 37 | codeparrot/github-code |
67c8ed2493ba10f30a2a17362c79da99ad2fae88f04addf9ff401311b197fa37 | /*
* The Alluxio Open Foundation licenses this work under the Apache License, version 2.0
* (the "License"). You may not use this work except in compliance with the License, which is
* available at www.apache.org/licenses/LICENSE-2.0
*
* This software is distributed on an "AS IS" basis, WITHOUT WARRANTIES OR CONDI... | Java | core/server/master/src/main/java/alluxio/master/metrics/MetricsStore.java | EvilMcJerkface/alluxio | apache-2.0 | 11,243 | 299 | codeparrot/github-code |
f421788efa3eb5276b9f133e5d38f781af3083a50acb9722eb4ad3c4ef29aaf7 | /**
*/
package options.presentation;
import de.uka.ipd.sdq.dsexplore.qml.dimensions.provider.DimensionsEditPlugin;
import de.uka.ipd.sdq.dsexplore.qml.dimensiontypes.provider.DimensiontypesEditPlugin;
import de.uka.ipd.sdq.dsexplore.qml.units.provider.UnitsEditPlugin;
import de.uka.ipd.sdq.identifier.provider.Identif... | Java | bundles/Toometa/toometa.options.editor/src/options/presentation/OptionsEditorPlugin.java | KAMP-Research/KAMP | apache-2.0 | 2,676 | 114 | codeparrot/github-code |
c13dffd05c45dcb75ec3cd682fe88099a427e9470051aa44f74de9cf2ab089f0 | /*
* Portions Copyright (C) 2015 Holmes Team at HUAWEI Noah's Ark Lab.
*
* 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... | Scala | src/main/scala/org/apache/spark/streamdm/classifiers/trees/HoeffdingTree.scala | gosubpl/akka-online | apache-2.0 | 18,192 | 472 | codeparrot/github-code |
47f752ce4314c972b5690126d94ae1ebdd36dfd77d2e31cdd35af6538499b6bd | /*
* Copyright (C) 2017-2019 Dremio Corporation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable l... | JavaScript | dac/ui/src/pages/HomePage/components/modals/DatasetSettings/AccelerationUpdates/AccelerationUpdatesForm-spec.js | dremio/dremio-oss | apache-2.0 | 6,967 | 181 | codeparrot/github-code |
4fcc520f554f6c7d70f1d82cbd76b0d81d9b019d74fef50359fd88a845469029 | /*
* Copyright 2010-2012 Luca Garulli (l.garulli--at--orientechnologies.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
*
* Un... | Java | server/src/main/java/com/orientechnologies/orient/server/network/protocol/http/command/post/OServerCommandPostBatch.java | delebash/orientdb-parent | apache-2.0 | 5,681 | 178 | codeparrot/github-code |
a6b16e5b78db1f86409bd81909e6c8f057faf8bcd8fede67e311a6374a1e6d44 | /*
* Copyright 2014-2016 Mikhail Shugay
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or ag... | Java | src/test/java/com/antigenomics/mageri/IntRangeAssertion.java | mikessh/mageri | apache-2.0 | 2,463 | 68 | codeparrot/github-code |
a8d9ac44aa53b4a16c2183a24df79992aa745ae0af76e204ba3366d4b45a3242 | package appdevzhang.com.androidvolleydemo.ui.activity;
import android.os.Bundle;
import android.view.View;
import com.android.volley.toolbox.ImageLoader;
import com.android.volley.toolbox.NetworkImageView;
import appdevzhang.com.androidvolleydemo.R;
import appdevzhang.com.androidvolleydemo.net.RequestManager;
import... | Java | app/src/main/java/appdevzhang/com/androidvolleydemo/ui/activity/NetwordImageViewActivity.java | appdevzhang/AndroidVolleyDemo | apache-2.0 | 1,478 | 46 | codeparrot/github-code |
b9a2b168a0f90870dbec80a2d606f54a514bff0bea3142741055e6da43c69727 | /*
* Copyright (C) Lightbend Inc. <https://www.lightbend.com>
*/
package play.api.test
import akka.annotation.ApiMayChange
import play.api.Application
import play.api.Configuration
import play.core.server.SelfSigned
import play.core.server.SelfSignedSSLEngineProvider
import play.core.server.ServerConfig
import play... | Scala | testkit/play-test/src/main/scala/play/api/test/ServerEndpointRecipe.scala | benmccann/playframework | apache-2.0 | 6,496 | 197 | codeparrot/github-code |
6dcd282a57c6969ee66c69c6a93902ebb35b79a9663ae9d208c293154d9553ca | package org.apache.solr.common.cloud;
/*
* 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, V... | Java | solr/solrj/src/java/org/apache/solr/common/cloud/CompositeIdRouter.java | fogbeam/Heceta_solr | apache-2.0 | 9,316 | 297 | codeparrot/github-code |
20e97bc8a1d44d1e1d866039c8685a9e5cfecaff89b448f028aab59bf7ddb8cb | package nifi.flink.examples.logs;
import nifi.flink.examples.logs.data.DictionaryBuilder;
import nifi.flink.examples.logs.data.LogLevels;
import nifi.flink.examples.logs.functions.LogLevelFlatMap;
import nifi.flink.examples.logs.functions.LogLevelWindowCounter;
import org.apache.flink.streaming.api.datastream.DataStre... | Java | nifi-flink-examples/src/main/java/nifi/flink/examples/logs/WindowLogLevelCount.java | bbende/nifi-streaming-examples | apache-2.0 | 3,531 | 83 | codeparrot/github-code |
dfcc17f86a65598938b366fd72c8c5fbc6449725fd65dd30b58aeeb9618e7557 | //DPBMARK_FILE WebSocket
#if !NET45
using System;
using System.Linq;
using System.Threading.Tasks;
using Senparc.WebSocket;
using Senparc.Weixin.MP.AdvancedAPIs.TemplateMessage;
using Senparc.Weixin.WxOpen.Containers;
namespace Senparc.Weixin.MP.Sample.CommonService.MessageHandlers.WebSocket
{
/// <summary>
/... | C# | Samples/Senparc.Weixin.MP.Sample/Senparc.Weixin.MP.Sample.CommonService/MessageHandlers/WebSocket/CustomNetCoreWebSocketMessageHandler.cs | jiehanlin/WeiXinMPSDK | apache-2.0 | 4,163 | 98 | codeparrot/github-code |
1a15bfe6264a38d7ab4e8131e3f549ae5a1141d155fed884e4b1e7d90357ef4f | /*
* 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-costexplorer/src/main/java/com/amazonaws/services/costexplorer/model/transform/CreateAnomalyMonitorRequestProtocolMarshaller.java | aws/aws-sdk-java | apache-2.0 | 2,785 | 64 | codeparrot/github-code |
0e0276d0648c94cc76aa7d8c9209eb2fa36e02678b302e6825f65d3ab64067d3 | /*******************************************************************************
* Copyright 2011 See AUTHORS 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.a... | Java | gdx/src/com/badlogic/gdx/Version.java | Dzamir/libgdx | apache-2.0 | 2,291 | 75 | codeparrot/github-code |
c598cdbfc1353278d5c59ad7edec0564a4d91c6261894dcfbaf23cb58abfdac6 | import logging
from ibmsecurity.utilities import tools
logger = logging.getLogger(__name__)
try:
basestring
except NameError:
basestring = (str, bytes)
def get(isamAppliance, state_id, check_mode=False, force=False):
"""
Get a grant
"""
return isamAppliance.invoke_get("Get a grant",
... | Python | ibmsecurity/isam/aac/api_protection/grants.py | IBM-Security/ibmsecurity | apache-2.0 | 3,427 | 97 | codeparrot/github-code |
4278a4e85a7622e124f7e8adff3621d7175fc0155140abbdf7d712f0705f5c07 | /*
* Copyright 2012 - 2018 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 appli... | Java | src/main/java/org/springframework/data/solr/core/query/Join.java | cipous/spring-data-solr | apache-2.0 | 2,787 | 143 | codeparrot/github-code |
607c62eea02facc1729ae5f526dcb36aba402f11f0851089afe2087eb9d7dedc | package org.jeo.geopkg;
import java.util.ArrayList;
import java.util.List;
import org.jeo.data.TileGrid;
import org.jeo.data.TilePyramid;
public class TileEntry extends Entry {
TilePyramid tilePyramid;
Boolean timesTwoZoom;
public TileEntry() {
setDataType(DataType.Tile);
}
public Tile... | Java | format/geopkg/src/main/java/org/jeo/geopkg/TileEntry.java | geosolutions-it/jeo | apache-2.0 | 816 | 41 | codeparrot/github-code |
6834da3067edada0e585d0b31ea6be44f61a0aaa55975f0e17e96af1a5b5ff85 | /*------------------------------------------------------------------------------------
$ class jtable component
$ date: 2009-2-6 16:31
$ author: LovelyLife http://onlyaa.com
$ bugs Fixed:
2009-06-10 16:18:40 [LovelyLife]:
增加拖动变换列
2009-10-21 11:10:22 [LovelyLife]:
jtable:initview函数中的document.body... | JavaScript | qlib/ui/jtable.js | lovelylife/phpkind | apache-2.0 | 30,234 | 1,068 | codeparrot/github-code |
39d801d492b7899d948ac10e8daa7192005ec74180220f785115cebac81aef74 | /*
* Copyright 2011 Christoph Thelen
*
* 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 ... | JavaScript | src/PlayerBlob.js | commana/MySmus | apache-2.0 | 1,186 | 35 | codeparrot/github-code |
4ef4d584ad33442d9c245dd8332c408fcba610cfbf439250d57b2c9517e346ab | package com.weixin.bm.redPacket.model;
/**
*
* @author dakou
* @createTime 2015年7月28日 上午9:25:39
* @desc 红包查询信息
*/
public class RedPackInfo {
private String return_code;//SUCCESS/FAIL 此字段是通信标识,非交易标识,交易是否成功需要查看result_code来判断
private String return_msg;//返回信息,如非空,为错误原因
private String sign;//签名
private String res... | Java | src/main/java/com/weixin/bm/redPacket/model/RedPackInfo.java | zhangleidaniejian/bluemmSite | apache-2.0 | 5,577 | 210 | codeparrot/github-code |
424942bf85c311375558efcfa97e84bd68deb8d468fbd59f60ced3729474e101 | package org.jetbrains.plugins.scala
package codeInsight
package intention
package booleans
import com.intellij.testFramework.EditorTestUtil
/**
* @author Ksenia.Sautina
* @since 6/29/12
*/
class ExpandBooleanIntentionTest extends intentions.ScalaIntentionTestBase {
import EditorTestUtil.{CARET_TAG => CARET}
... | Scala | scala/codeInsight/test/org/jetbrains/plugins/scala/codeInsight/intention/booleans/ExpandBooleanIntentionTest.scala | JetBrains/intellij-scala | apache-2.0 | 2,668 | 118 | codeparrot/github-code |
4cee4f3396aedfd122fd574b765a981a436e865994a8394013643afb21394a92 | package rescala.operator
import rescala.core._
import rescala.interface.RescalaInterface
trait Sources {
self: RescalaInterface with EventBundle with SignalBundle with Sources with DefaultImplementations with Observing
with Core =>
trait Source[T] extends ReSource {
final def admit(value: T)(implicit tic... | Scala | Code/Main/shared/src/main/scala/rescala/operator/sources.scala | guidosalva/REScala | apache-2.0 | 3,756 | 96 | codeparrot/github-code |
9378f2f204db39d6f50f96a002ddf460b04dcd8153d0e6b8d0ff71d1029d78f5 | /*
Copyright 2016 Ido Filin
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
distr... | JavaScript | src/galaxy.js | idofilin/webgl-showcase | apache-2.0 | 7,583 | 244 | codeparrot/github-code |
2bde5fd02b1377f6d04327972091a833dc84ae0c65597b6619dc3d012df5cd9e | import { Component } from '@angular/core';
import { RouteConfig, ROUTER_DIRECTIVES, ROUTER_PROVIDERS } from '@angular/router-deprecated';
/**
* 组件demo
*/
import {DialogDemo } from './example/dialog/demo';
import {ValidateDemo} from './example/validate/demo';
import {SMSCodeDemo} from './example/smscode/demo';
impor... | TypeScript | app/app.component.ts | slashhuang/ng2-components | apache-2.0 | 1,581 | 72 | codeparrot/github-code |
1b90d8518515d427e961389ad189d12e0828b7a3cfc5d384a3b9b808720233e3 | /*
* Copyright 2014 Google Inc. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable ... | Java | src/test/java/org/inferred/freebuilder/processor/JacksonSupportTest.java | inferred/FreeBuilder | apache-2.0 | 7,288 | 172 | codeparrot/github-code |
8c7caad8f64a2d7cbdeae4d5c1d5739f114b61cf5a84e59ab00648c30d53738d | from __future__ import print_function
from __future__ import division
import numpy as np
import sys
import argparse
import time
import re
import gzip
import os
import logging
from collections import defaultdict
from operator import itemgetter
__version__ = "1.0"
def main():
parser=argparse.ArgumentParser(descr... | Python | scripts/vcf2fasta.py | blajoie/vcf2fasta | apache-2.0 | 8,351 | 259 | codeparrot/github-code |
b983d730a521cbe3a08fd15bc19e8cae5d83652ac01292f8ae882f24fa6af386 | // -----------------------------------------------------------------------
// <copyright file="InvoiceTime.cs" company="Nodine Legal, LLC">
// Licensed to Nodine Legal, LLC under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regardi... | C# | DBOs/Billing/InvoiceTime.cs | NodineLegal/OpenLawOffice.Data | apache-2.0 | 7,063 | 160 | codeparrot/github-code |
58690c7340cf4fa0dd1d846517d88d6c8f24af12595aa2f26b6e9271516d5490 | 'use strict';
var fs = require('fs'),
path = require('path');
var AWS = require('aws-sdk'),
Bluebird = require('bluebird'),
mkdirp = require('mkdirp'),
rimraf = require('rimraf');
var config = require('tisense-config'),
SimpleError = require('./../errors/simpleerror'),
configureAws = require(... | JavaScript | admin/lib/things/mgmt.js | ArrowElectronics/aws-iot-tisense-js | apache-2.0 | 8,894 | 319 | codeparrot/github-code |
56897a383ceca6c855a38e6606bc196aa249e1288f06c29e8e08e07baedbfe07 | #
# Cookbook Name:: cookbook-ngxmgdbpy
# Recipe:: python
#
# Author:: Juan Manuel Lopez
#
# 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
#
# ... | Ruby | recipes/python.rb | tandiljuan/cookbook-ngxmgdbpy | apache-2.0 | 6,691 | 252 | codeparrot/github-code |
276c35c3cfdef33299875df99f16a87a61c6949f4556e09fe3f6286432c7cbcf | /*
* 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 mice;
import mice.staticHelpers.DB;
import oru.inf.InfException;
import javax.swing.*;
import javax.swing.filechooser.FileName... | Java | MICE/src/mice/MICE.java | DegJ/miceschoolproject | apache-2.0 | 7,201 | 218 | codeparrot/github-code |
2995af9c6b4ede91cf25dbe39daaf1b38d658ae4544ffdc621ae0e6e51042a46 | /*
* 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/model/SortCriterion.java | adamrduffy/trinidad-1.0.x | apache-2.0 | 2,835 | 94 | codeparrot/github-code |
abde839f32b7501d931910a1b2505dafa37ef83aae35f01028f1798a9ccd32d8 | <?php
class WikiModel extends Model{
function __construct(){
parent::__construct("wikiplus_statistics");
}
//基础数据
public function meta(){
return $this->sql("SELECT `wikiname`, count(*) count FROM `wikiplus_statistics` GROUP BY `wikiname` ORDER BY count(*) DESC")->select();
}
//按wiki区分的计数
public function co... | PHP | backend/Core/Model/WikiModel.class.php | Wikiplus/Wikiplus-3.0 | apache-2.0 | 3,237 | 73 | codeparrot/github-code |
0caf34b408778a40ce6135a9fca52345eaae666d98c2f6723c90eea6e9896554 | package com.zaita.aliyounes.gsbvc2017.pojos;
/**
* Created by Elie Ohanian on 7/17/2017.
*/
public class User {
private String CodeUsr;
private String FullNameUsr;
private String TelUsr;
private String AddressUsr;
private String PostUsr;
private String UsrName;
private String Password;
... | Java | app/src/main/java/com/zaita/aliyounes/gsbvc2017/pojos/User.java | ayounes3333/GSB-2017-Android | apache-2.0 | 1,982 | 99 | codeparrot/github-code |
f9f4c601c9ddef94291c0bd4d3d71eb435fdd23bd16ba2f946c84e554bef2372 | /**
* Copyright 2016 LinkedIn Corp. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | Java | ambry-utils/src/main/java/com.github.ambry.utils/Utils.java | vgkholla/ambry | apache-2.0 | 34,279 | 960 | codeparrot/github-code |
1c0696f2c54669877112809e62d136d7577d4c737cf05cf49dfef42f18db9b06 | /*
* 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-iot/src/main/java/com/amazonaws/services/iot/model/transform/ListActiveViolationsRequestProtocolMarshaller.java | jentfoo/aws-sdk-java | apache-2.0 | 2,695 | 63 | codeparrot/github-code |
3e9d9c9f0443f933d17d57ec59966df589f96eb5fc7a5ca2df73279bdc59c884 | /* Copyright 2015 The TensorFlow Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or a... | C++ | tensorflow/core/platform/posix/port.cc | asimshankar/tensorflow | apache-2.0 | 5,869 | 216 | codeparrot/github-code |
b9ccc9ad0f7999decd9b3629976da4a53083678acaf5340c064351b67c67d59c | using System;
using System.Drawing;
using System.Windows.Forms;
using ToolsManager.Interface;
namespace ToolsManager
{
public partial class AppPreview : UserControl
{
public AppPreview()
{
InitializeComponent();
}
public AppPreview(Lazy<ITool, IToolModel> model)
... | C# | ToolsManager/AppPreview.cs | idefav/ToolsManager | apache-2.0 | 1,754 | 68 | codeparrot/github-code |
cae407e147e9b793341b4a336f7710dd4f7579b43bb345af6ef6d99c393aed6a | /*
* Copyright (c) 2012-2015 S-Core Co., 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 ... | JavaScript | common/src/webida/util/loadCSSList.js | yoonhyung/webida-client | apache-2.0 | 4,537 | 134 | codeparrot/github-code |
c94a07337e9d60195b859b2688c867f0676b185ede207e8b4a260783ebae9234 | /*
* Copyright 2013-2019 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by ap... | Java | spring-cloud-netflix-zuul/src/test/java/org/springframework/cloud/netflix/zuul/FormZuulServletProxyApplicationTests.java | joshiste/spring-cloud-netflix | apache-2.0 | 8,160 | 235 | codeparrot/github-code |
5d94b151ab8e88cffdd29f884960a78b33d9f53eb26de917c0525e98866dd821 | /*
* (C) Copyright 2017 Boni Garcia (https://bonigarcia.github.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 requir... | Java | src/test/java/io/github/bonigarcia/seljup/test/template/TemplateTwoBrowsersTest.java | bonigarcia/selenium-jupiter | apache-2.0 | 1,647 | 48 | codeparrot/github-code |
8327696576b5fee91183684dbf7f2cff2d88f181fb777aadb24c2a21bc8587ad | /*
* Copyright 2014, The Sporting Exchange Limited
*
* 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 | disco-framework/net-util/src/test/java/uk/co/exemel/disco/marshalling/impl/SimpleApplicationException.java | eswdd/disco | apache-2.0 | 5,521 | 123 | codeparrot/github-code |
885cfb8ef2c4f732479204e24612b7a978c7609f87297eb03569f35433a2277f | #include <cstdio>
#include <cstring>
#include <iostream>
#include <vector>
#include <set>
#include <unistd.h>
using namespace std;
// Magic numbers for sampling procedure type
#define SAMPLE_RAND 1 // uniform sampling of nodes
#define SAMPLE_FOREST 2 // forest fire
#define MAXLEN 1000 // max length for filename
ch... | C++ | sample_graph.cpp | rionda/graphsumm | apache-2.0 | 5,089 | 176 | codeparrot/github-code |
fa5e092806462e23d0e0fd03f58d76ddc1d18e6bed67dae0eac7d50639a91179 | /*
Copyright 1995-2015 Esri
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in wr... | Java | performance-test-harness-consumer/src/main/java/com/esri/geoevent/test/performance/azure/AzureIoTHubConsumer.java | Esri/performance-test-harness-for-geoevent | apache-2.0 | 4,774 | 153 | codeparrot/github-code |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.