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 |
|---|---|---|---|---|---|---|---|---|
15cd599389b9bfc837419733c07446fc12606ed65713b6d24c6e89905322c0fb | {% extends "base.html" %}
{% block stylesheets %}
<style>
.hide-text { text-overflow: ellipsis; overflow: hidden; }
.dialog-inner {padding-bottom: 30px;}
.alert {display: none}
.category-header {text-align: center}
.challenge-wrapper {padding: 5px;}
.challenge-button {width: 100%; height:100px;... | HTML | CTFd/templates/original/chals.html | liam-middlebrook/CTFd | apache-2.0 | 3,703 | 130 | codeparrot/github-code |
7a0b8294e4c450a235978bfa4d55be48cbfa58a7259f049f4b4c9828003a97be | /*
Copyright 2020 The cert-manager 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 | cmd/acmesolver/app/app.go | jetstack-experimental/cert-manager | apache-2.0 | 1,812 | 62 | codeparrot/github-code |
8333d152617ccf323c91a45fe504a3720488ad4f5d4e68983d0af6baf595f32c | import Typography from "@material-ui/core/Typography";
import Container from "@material-ui/core/Container";
import Grid from "@material-ui/core/Grid";
import Box from "@material-ui/core/Box";
import Link from "@material-ui/core/Link";
import Heading from "./Heading";
import { LinkedIn, Twitter, GitHub, Email, WhatsApp ... | JavaScript | components/ReachOut.js | santiycr/santi.io | apache-2.0 | 1,695 | 50 | codeparrot/github-code |
bceda8593eefa649827b30230b157ab61762132ca9cae84f6d58e2f4989c9c0b | package com.luweiweather.app.db;
import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;
/**
* Created by user on 2017/3/17 0017.
*/
public class DbOpenHelper extends SQLiteOpenHelper {
/*
* Province表建表语句
* */
public static fina... | Java | app/src/main/java/com/luweiweather/app/db/DbOpenHelper.java | Wei-Ge/luweiweather | apache-2.0 | 1,479 | 52 | codeparrot/github-code |
b13c1723fb3833c945b262278d3e73f56b1bebb613802bb3a391f332c215d0ee | package org.sonatype.flexmojos.generator.flex2;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.util.Iterator;
import java.util.Map;
import java.util.zip.ZipEntry;
import java.util.zip.ZipException... | Java | flexmojos-generator/flexmojos-generator-internal-flex2/src/main/java/org/sonatype/flexmojos/generator/flex2/Flex2Generator.java | edward-yakop/flexmojos | apache-2.0 | 6,934 | 199 | codeparrot/github-code |
e053fe8038f0fc003f7a56bd540339cfd08d72cda04f6e143b2944be514f7bc4 | //! \file
/*
** Copyright (C) - Triton
**
** This program is under the terms of the Apache License 2.0.
*/
#include <triton/pythonObjects.hpp>
#include <triton/pythonUtils.hpp>
#include <triton/pythonXFunctions.hpp>
#include <triton/bitsVector.hpp>
#include <triton/exceptions.hpp>
/* setup doctest context
>>> fr... | C++ | src/libtriton/bindings/python/objects/pyBitsVector.cpp | JonathanSalwan/Triton | apache-2.0 | 8,460 | 233 | codeparrot/github-code |
296225947789cfa7471f5fafa63522fa3f3676232df3c83ea993668b579aa58a | /**
* 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"); yo... | Java | camel-core/src/test/java/org/apache/camel/component/direct/DirectEndpointRouteInlinedTest.java | everttigchelaar/camel-svn | apache-2.0 | 2,258 | 63 | codeparrot/github-code |
5404cbdd0121879c4b1056a529e99496afd30f3464996c3ee70262e3f289469c | package com.yangtze.ieatbyte.yangtzenews.volley;
import android.util.Log;
import com.android.volley.NetworkResponse;
import com.android.volley.ParseError;
import com.android.volley.Request;
import com.android.volley.Response;
import com.android.volley.toolbox.HttpHeaderParser;
import com.yangtze.ieatbyte.yan... | Java | YangtzeNews/app/src/main/java/com/yangtze/ieatbyte/yangtzenews/volley/ImageUrlRequest.java | ieatbyte/YangtzeNews | apache-2.0 | 1,751 | 53 | codeparrot/github-code |
0604fcc27e29cb168a0ef2c4b0e048d5b439ea803896beeadcbcf0ba7cb307a4 | package playground.spring.sia.chapterfour.tacocloud.configuration;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Configuration;
import org.springframework.security.config.annotation.authentication.builders.AuthenticationManagerBuilder;
import org.springfra... | Java | spring/spring-in-action/cap4-security/src/main/java/playground/spring/sia/chapterfour/tacocloud/configuration/SecurityConfiguration.java | NovaOrdis/playground | apache-2.0 | 1,552 | 42 | codeparrot/github-code |
4a464dc06cae5a0fa2df14803776299c4913dd360124d6fb063bd668c5d405a3 | 'use strict';
app.controller('indexController', ['$scope', '$location', '$mdSidenav', 'authService', function ($scope, $location, $mdSidenav, authService) {
$scope.logOut = function () {
authService.logOut();
$location.path('/home');
}
$scope.go = function (path) {
$location.p... | JavaScript | CalorieCounter.Web/app/controllers/indexController.js | mattspaulding/calorie-counter | apache-2.0 | 966 | 36 | codeparrot/github-code |
8667766c234841420b97a06e3c8ad1952e2c22c5fa02b72110e9e5575af614ea | /*
* Original implementation (C) 2010-2015 Nathan Hamblen and contributors
* Adapted and extended in 2016 by foundweekends 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
*
* ... | Scala | library/src/test/scala/giter8/VersionNumberOrderingTest.scala | foundweekends/giter8 | apache-2.0 | 5,358 | 144 | codeparrot/github-code |
43c5ce5ed2936e64cb022f5657fcaf2e3cb64f6bd96c64b0fb9dd00edcc5ca7d | package com.coolweather.android.db;
import org.litepal.crud.DataSupport;
/**
* Created by aisi on 2017/6/29.
*/
public class City extends DataSupport {
private int id;
private String cityName;
private int cityCode;
private int provinceId;
public int getId() {
return id;
}
... | Java | app/src/main/java/com/coolweather/android/db/City.java | liu844133828/coolweather | apache-2.0 | 840 | 51 | codeparrot/github-code |
0d30fbcf7ad78ffbe63deac694a7f4e458d0b91059635d7152f31b9cb272b0cf | // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
using System;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.DependencyInjection.Extensions;
using Microsoft.Ext... | C# | src/Logging.AzureAppServices/src/AzureAppServicesLoggerFactoryExtensions.cs | aspnet/AspNetCore | apache-2.0 | 5,279 | 114 | codeparrot/github-code |
0d2693547c36414b3b34a4eb3b43a293ac1d7d9b91430949a6310251ea51e2fc | /*
* Copyright © EMC Corporation. All rights reserved.
*/
package radl.java.generation.spring;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertTrue;
import java.util.Arrays;
import org.junit.Test;
import org.w3c.dom.Document;
import radl.core.code.Code;
import radl.java.code.Java... | Java | java/core/src/test/java/radl/java/generation/spring/ControllerSupportGeneratorTest.java | restful-api-description-language/RADL | apache-2.0 | 4,515 | 134 | codeparrot/github-code |
fab9945bf326112e22932d6367dfc3cb61e7e1d2b877c93f5b6a87de88c3c580 | /*!
* ${copyright}
*/
sap.ui.define([
"sap/base/Log",
"sap/base/util/ObjectPath",
"sap/ui/core/Control",
"sap/ui/core/format/NumberFormat",
"sap/ui/model/FormatException",
"sap/ui/model/ParseException",
"sap/ui/model/ValidateException",
"sap/ui/model/odata/type/Int",
"sap/ui/model/odata/type/ODataType",
"sa... | JavaScript | src/sap.ui.core/test/sap/ui/core/qunit/odata/type/Int.qunit.js | SAP/openui5 | apache-2.0 | 10,435 | 293 | codeparrot/github-code |
a95fa8df6db453fc2d278a9bea0834e484f5a90b0f74288934eb6323e3d611d2 | #!/usr/bin/python
import OpenSSL.crypto
import argparse
import base64
import glob
import k8s
import os
import shutil
import yaml
def sn():
sn = int(open("/etc/origin/master/ca.serial.txt").read(), 16)
sntext = "%X" % (sn + 1)
if len(sntext) % 2:
sntext = "0" + sntext
open("/etc/origin/maste... | Python | target/reip.py | RedHatEMEA/aws-ose3 | apache-2.0 | 18,095 | 401 | codeparrot/github-code |
7b6580cdfbf60f586a0f6fcd03851391ed8937831ee29fb719480d9c84d3f102 | package nl.esciencecenter.aether.util.rpc;
import java.util.Date;
import nl.esciencecenter.aether.Aether;
import nl.esciencecenter.aether.Capabilities;
import nl.esciencecenter.aether.AetherFactory;
import nl.esciencecenter.aether.AetherIdentifier;
public class Example {
Capabilities ibisCapabilities = new Capabi... | Java | src/nl/esciencecenter/aether/util/rpc/Example.java | NLeSC/Aether | apache-2.0 | 2,163 | 88 | codeparrot/github-code |
3eff286335c2658f1c97503032f63745a81934e4374ea3c86099ec2b8201d383 | package com.slidingmenu.lib.app;
import com.slidingmenu.lib.SlidingMenu;
import android.app.ListActivity;
import android.os.Bundle;
import android.view.KeyEvent;
import android.view.View;
import android.view.ViewGroup.LayoutParams;
import android.widget.ListView;
public class SlidingListActivity extends ListActivity... | Java | library/src/com/slidingmenu/lib/app/SlidingListActivity.java | futuresimple/SlidingMenu | apache-2.0 | 4,154 | 158 | codeparrot/github-code |
4cd335c39e3adc98996f4b4eaf22d9ad4f1a41fd0ccaecbbd7b42cf236aa834d | using System;
using System.Collections.Generic;
using System.Composition;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Microsoft.CodeAnalysis;
using Microsoft.CodeAnalysis.CodeFixes;
using Microsoft.CodeAnalysis.CodeRefactorings;
using Microsoft.CodeAnalysis.ErrorLogger;
using Microsoft.Co... | C# | src/VisualStudio/Core/Def/Implementation/Log/VisualStudioErrorLogger.cs | paladique/roslyn | apache-2.0 | 3,614 | 89 | codeparrot/github-code |
f30299da06433c976b1991abf7677ac7a1e9f337141a614c2a416df1e76382f9 | // <copyright file="GraphitePoint.cs" company="App Metrics Contributors">
// Copyright (c) App Metrics Contributors. All rights reserved.
// </copyright>
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
namespace App.Metrics.Formatters.Graphite.Internal
{
public class GraphiteP... | C# | src/App.Metrics.Formatters.Graphite/Internal/GraphitePoint.cs | alhardy/AppMetrics.Extensions.Graphite | apache-2.0 | 2,308 | 74 | codeparrot/github-code |
589bd49e784b00ed6faa277a3c5d913a18dd0dfaadd1bc2ba49256c295a48957 | package net.liftweb.democritus.api
import _root_.net.liftweb.common._
import _root_.net.liftweb.http._
import js._
import JE._
import rest._
import _root_.net.liftweb.util._
import StringHelpers._
import _root_.scala.xml._
import _root_.net.liftweb.mapper._
import java.util.Date
import net.liftweb.democritus.utils.Uti... | Scala | src/main/scala/net/liftweb/democritus/api/RestAPI.scala | glennSilverman/democritus | apache-2.0 | 5,490 | 166 | codeparrot/github-code |
307314ed5d591b39a10ed8ffcb565021c3518051ad789a531e483eaf0026ae23 | /*
* Copyright 2015- Tomofumi Chiba
*
* 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 | j2ts-generator/src/main/java/io/github/chibat/j2ts/generator/Main.java | chibat/j2ts | apache-2.0 | 3,350 | 101 | codeparrot/github-code |
716c89b1f6fc130f11b4e62dddbf48a0c7f408cf609767052c7bc596a964fee7 | /**
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may... | Java | components/camel-mail/src/main/java/org/apache/camel/component/mail/MailConsumer.java | kevinearls/camel | apache-2.0 | 22,810 | 572 | codeparrot/github-code |
b222af4f67536782d3999b7fff2cfb91676d7f373af250b9906d50f1c1008523 | /**
* Created by yuval_000 on 11/19/2015.
*/
var q = require('q');
var geolib = require('geolib');
function DbAccess(){
this.mongoClient = require('mongodb').MongoClient
this.db = null;
this.usersCollection = null;
}
DbAccess.prototype.connect = function (serverUrl,dbName){
var deferred = q.defer()... | JavaScript | server/lib/dbAccess/index.js | HornyPinaple/HornyPineapple | apache-2.0 | 3,436 | 128 | codeparrot/github-code |
cba0af71f7d2ea907abf4e61057924e9bb43e88908d6c1c79febd0f2a2251ea3 | /*
* Copyright © 2017-2019 Cask Data, 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 ... | Java | wrangler-core/src/main/java/io/cdap/directives/parser/ParseSimpleDate.java | data-integrations/wrangler | apache-2.0 | 4,685 | 123 | codeparrot/github-code |
5ec76ee6339b40b841f540691f7a52b406e85d4e1ac047cd276b089aecf83553 | /*
* Copyright 2014 Mark C. Chu-Carroll
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agr... | Java | src/org/goodmath/pcomb/SeqParser.java | MarkChuCarroll/pcomb | apache-2.0 | 1,891 | 59 | codeparrot/github-code |
9b41a236f3bafd4e8034573133b228780287f9eecfdd3111608b9917d0f7eaa4 | #!/usr/bin/env python
###############################################################################
# Copyright 2017 The Apollo 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 ... | Python | modules/tools/car_sound/car_sound.py | fy2462/apollo | apache-2.0 | 2,085 | 73 | codeparrot/github-code |
69c7ddf186635f2a6474917f6ae125bff20040f1dfc73a5af25a6d4ab3cd05bb | /**
* 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 | src/main/java/org/apache/pig/piggybank/squeal/metrics/AbstractMetricsTransport.java | JamesLampton/piggybank-squeal | apache-2.0 | 1,835 | 68 | codeparrot/github-code |
4ad9fe9fbb7165fe23d6a69d9fe91bc4e278e92498d21e9ac010f82ce421b4f5 | /**
* Application Log Upload method
*
* @method POST
* @param filedata {file}
*/
function main()
{
try
{
var filename = null;
var content = null;
// locate file attributes
for each (field in formdata.fields)
{
if (field.name == "filedata" && field.isFile)
... | JavaScript | webscripts/org/alfresco/slingshot/application/logo.post.js | Alfresco/alfresco-ms-office-plugin | apache-2.0 | 1,738 | 69 | codeparrot/github-code |
1482541f22eecf41a3b7cdb3b18b3b07d40b44eb17c867adaa51bc03a678f3b1 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html lang="en-GB" xml:lang="en-GB" xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8"/>
<title>Statistics of Gender in UD_Moks... | HTML | treebanks/mdf_jr/mdf_jr-feat-Gender.html | UniversalDependencies/universaldependencies.github.io | apache-2.0 | 9,003 | 180 | codeparrot/github-code |
44dd5d643e0e17d3cc84524108b2bb9684118c4750b834a2f2efd861c34c8430 | import argparse
import sys, os
import numpy as np
from copy import copy
parser = argparse.ArgumentParser()
parser.add_argument('qubit', help='qubit name')
parser.add_argument('direction', help='direction (X or Y)')
parser.add_argument('numPulses', type=int, help='log2(n) of the longest sequence n')
parser.add_argument(... | Python | common/@PulseCalibration/PhaseEstimationSequence.py | BBN-Q/Qlab | apache-2.0 | 1,148 | 38 | codeparrot/github-code |
0c1de508d627f62027065641e949d808eddc220c53873be9044c2919fdd58017 | ---
type: post102
title: Processing Unit
categories: XAP102
parent: cpp-api-examples.html
weight: 300
---
The Processing Unit example is located at `<XAP Root>\cpp\examples\CppService\` and `<XAP Root>\cpp\examples\CppServiceOpenSpaces\`.
If you use **Visual Studio** open the solution `examples.sln` located in `<XAP... | Markdown | sites/xap-docs/content/xap102/cpp-processing-unit-example.markdown | croffler/documentation | apache-2.0 | 9,421 | 298 | codeparrot/github-code |
fb9195a8523edd7ca6e67895dd62ace2d3c68a2a98c260ff60a5b9999c72ce22 | /*
Copyright 2017 The Kubernetes Authors.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, ... | GO | pkg/client/clientset_v1alpha1/fake/clientset_generated.go | ledzep2/nodeset | apache-2.0 | 2,626 | 72 | codeparrot/github-code |
301d1643880bc48d9d4f29d761ad1f800e3a6d8453304a260cef09aeb044c956 | package com.jflyfox.dudu.module.system.service.impl;
import com.jflyfox.dudu.component.model.SessionUser;
import com.jflyfox.dudu.module.system.model.SysUser;
import com.jflyfox.dudu.module.system.service.ISessionAttrService;
import com.jflyfox.dudu.module.system.service.IUserService;
import org.springframework.beans.... | Java | dudu-admin/src/main/java/com/jflyfox/dudu/module/system/service/impl/SessionAttrServiceImpl.java | jflyfox/dudu | apache-2.0 | 1,215 | 47 | codeparrot/github-code |
f7770ab5a2801a3ba1f370608e86a88a631545f165ca440b8df6f9513b59f476 | /*
* Copyright 2011 SearchWorkings.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/licenses/LICENSE-2.0
*
* Unless required by applicable law or agr... | Java | src/main/java/org/apache/solr/explorer/client/plugin/debug/ui/DebugConsoleTab.java | cominvent/solr-explorer | apache-2.0 | 6,749 | 187 | codeparrot/github-code |
bb64780588ff86aa17b7a6f7de2716b8f35b1962029669d8d5ac092f407b141b | #
# Author:: Ian Meyer (<ianmmeyer@gmail.com>)
# Copyright:: Copyright (c) 2010 Ian Meyer
# License:: Apache License, Version 2.0
#
# 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:... | Ruby | chef/lib/chef/knife/status.rb | aspiers/chef | apache-2.0 | 3,676 | 122 | codeparrot/github-code |
8e7db6d6f3a6b44410a8ccd9ca89c191263ca86bf5b2525501ee20cddd3c35b5 | package com.sebarys.gazeWebsite.web.utils;
import com.sebarys.gazeWebsite.web.utils.client.data.GazeData;
import com.sebarys.gazeWebsite.web.utils.client.data.Point2D;
import java.awt.*;
import java.io.Serializable;
public class Reading implements Comparable<Reading>,Serializable{
private static final long serialVe... | Java | gazeWebsite-web/src/main/java/com/sebarys/gazeWebsite/web/utils/Reading.java | sebarys/gaze-web | apache-2.0 | 1,943 | 81 | codeparrot/github-code |
6494650452c1bc956dafa6229430205f77930fc617ee346778e4e4caba85e535 |
import chai from 'chai';
import assert from 'vet/utils/assert';
import isShape from 'vet/objects/isShape';
import Daypack from './';
describe(
'Daypack.from',
() => {
it(
'builds a new pack',
() => {
let pack = Daypack.from({ foo: 'bar' });
assert(
pack instanceof Daypack,
'pack is not ... | TypeScript | src/_Daypack.from.mocha.tests.ts | somesocks/daypack | apache-2.0 | 760 | 50 | codeparrot/github-code |
22ac1c13b07ba73288d7805278b7c5c5c13a1e739ada2fe12676044e89ba642f | package com.sequenceiq.freeipa.controller.validation;
import javax.inject.Inject;
import org.springframework.stereotype.Component;
import com.sequenceiq.cloudbreak.validation.ValidationResult;
import com.sequenceiq.cloudbreak.validation.Validator;
import com.sequenceiq.freeipa.api.v1.freeipa.stack.model.attachchilde... | Java | freeipa/src/main/java/com/sequenceiq/freeipa/controller/validation/AttachChildEnvironmentRequestValidator.java | hortonworks/cloudbreak | apache-2.0 | 2,420 | 55 | codeparrot/github-code |
61e10a151bf9ac61b7939640a148d838b1c922d92f55f6d296d58ee2c2982ce8 | Parse.initialize("c4ROn07SjB4D1V0K7OewbynNO1UwfFh9xlDF0ias", "eRiXezPgvgNnz2kp17SrOY9u6kx4cR7xBNgVIDgR");
var Student = Parse.Object.extend("Student");
var Event = Parse.Object.extend("Event");
var SignUp = Parse.Object.extend("SignUp");
var Team = Parse.Object.extend("Team");
// va... | JavaScript | js/main.js | THSPC/OLYMPIA | apache-2.0 | 2,662 | 118 | codeparrot/github-code |
f90c4b805b341dc3aa8dd118ae9d011f6b0eac0f1b2f450ce4ab6e749515d871 | package com.twitter.finagle.serverset2
import com.twitter.finagle.common.io.JsonCodec
import com.twitter.finagle.common.zookeeper.ServerSets
import com.twitter.conversions.DurationOps._
import com.twitter.finagle.serverset2.ServiceDiscoverer.ClientHealth
import com.twitter.finagle.serverset2.ZkOp.{GetData, GetChildren... | Scala | finagle-serversets/src/test/scala/com/twitter/finagle/serverset2/ServiceDiscovererTest.scala | twitter/finagle | apache-2.0 | 15,672 | 424 | codeparrot/github-code |
316c536f8f9b6041e9ae3f52afb980405e583c8a08e394e4d72c2a51c172854a | /*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applic... | Java | test/com/facebook/buck/cli/ConfiguredQueryEnvironmentTest.java | JoelMarcey/buck | apache-2.0 | 10,538 | 235 | codeparrot/github-code |
6cb5f0449fea9cce8688b2be7d77e855f9f4e6f856c3af6ce05311278652822e | package org.guvnor.common.services.project.builder.events;
import org.jboss.errai.common.client.api.annotations.Portable;
import org.kie.commons.validation.PortablePreconditions;
import org.uberfire.backend.vfs.Path;
/**
* Event to invalidate all entries in a DataModelOracleCache for the Project containing the given... | Java | guvnor-project/guvnor-project-api/src/main/java/org/guvnor/common/services/project/builder/events/InvalidateDMOProjectCacheEvent.java | mswiderski/guvnor | apache-2.0 | 1,036 | 31 | codeparrot/github-code |
448f4e975ca5f75ffaf97424ddae97d7b4d26fdf94a6890201a617df4679c35a | package loon.stg.effect;
import loon.canvas.LColor;
import loon.opengl.GLEx;
import loon.stg.STGPlane;
public class PictureExplosion implements Picture {
int count = 0;
int x;
int y;
PictureExplosion() {
this.x = this.y = 5;
}
@Override
public boolean paint(GLEx g, STGPlane p) {
switch (this.count) {
... | Java | Java/Loon-Neo/stg/loon/stg/effect/PictureExplosion.java | cping/LGame | apache-2.0 | 748 | 49 | codeparrot/github-code |
2df7adedd4c11b0efa29a0807dae0e8ed2760e4ceaebec89a8f68a986b8a3b82 | package jvm.ncatz.netbour.pck_adapter;
import android.content.Context;
import android.graphics.Rect;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import android.text.TextUtils;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import ... | Java | app/src/main/java/jvm/ncatz/netbour/pck_adapter/AdpDocument.java | JMedinilla/Netbour | apache-2.0 | 7,613 | 148 | codeparrot/github-code |
4be80d192eef7e6c63ff21fc807eeefa0122eb2c00ba7cbb029a2aa69db2cd18 | package org.polyforms.repository.converter;
import javax.inject.Inject;
import javax.inject.Named;
import org.polyforms.repository.jpa.EntityHelper;
import org.springframework.core.convert.TypeDescriptor;
/**
* Converter which converts entity to its identifier.
*
* @author Kuisong Tong
* @since 1.0
*/
@Named
p... | Java | repository/src/main/java/org/polyforms/repository/converter/EntityToIdentifierConverter.java | Polyforms/Polyforms | apache-2.0 | 1,083 | 42 | codeparrot/github-code |
d3a7fa4b09b64fe3616eb1c024516e3912339b5cc52240e609730fdc23be8164 | /*
* Copyright 2015 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... | Java | src/com/google/common/css/compiler/passes/LoopVariableReplacementPass.java | smennetrier/closure-stylesheets | apache-2.0 | 5,273 | 160 | codeparrot/github-code |
0a21f006539082cf49273b25d25b63e96a8c70843ae1105eb6a0c1c1fa801306 | #region License
/*
* 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
*... | C# | gremlin-dotnet/src/Gremlin.Net/Driver/GremlinClient.cs | artem-aliev/tinkerpop | apache-2.0 | 4,048 | 106 | codeparrot/github-code |
732d4e0cf9226e2ec11a15fe930d74a306a66ede0e6674b3c0ebf561b89ba81c | package com.yezi.meizhi.ui.activity;
import android.os.Bundle;
import android.widget.FrameLayout;
import com.facebook.common.util.UriUtil;
import com.facebook.drawee.drawable.ProgressBarDrawable;
import com.facebook.drawee.generic.GenericDraweeHierarchy;
import com.facebook.drawee.view.SimpleDraweeView;
import com.ye... | Java | meizhi/app/src/main/java/com/yezi/meizhi/ui/activity/ImageScaleActivity.java | qwertyezi/meizhi | apache-2.0 | 1,309 | 52 | codeparrot/github-code |
8d7cf3f33fc7fd40f1e554b14df3e05eb5ac3046b5997bb967701e3e26170c64 | package com.pisces.lau.wishstar.bean;
/**
* Created by Liu Wenyue on 2015/7/23.
* Company: New Thread Android
* Email: liuwenyueno2@gmail.com
*/
public class Book {
/**
* id : 6515839
* title : 疯狂Android讲义
*/
private String id;
private String title;
private ImagesEntity images;
... | Java | app/src/main/java/com/pisces/lau/wishstar/bean/Book.java | Pisceslau/WishStar | apache-2.0 | 1,557 | 80 | codeparrot/github-code |
5ca56a0f806df6240c0d65fa4461eee95ff6e40df0b9b6006d342d654add9c79 | package stats;
import java.io.File;
import java.io.IOException;
import java.time.Instant;
import java.util.ArrayList;
import java.util.Date;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import org.apache.commons.io.FileUtils;
import org.apache.commons.io.monitor.FileAlterationListener;
impor... | Java | FantaysLeague/src/main/java/stats/StatUpdateListener.java | DownCastAce/CS4227-Fantasy-League | apache-2.0 | 2,907 | 102 | codeparrot/github-code |
9bb807a9fc3553dc22af8d2694a098ae2c3dc4560fb14c8d63f4df38285e55fd | <html><body>
<style>
body, h1, h2, h3, div, span, p, pre, a {
margin: 0;
padding: 0;
border: 0;
font-weight: inherit;
font-style: inherit;
font-size: 100%;
font-family: inherit;
vertical-align: baseline;
}
body {
font-size: 13px;
padding: 1em;
}
h1 {
font-size: 26px;
margin-bottom: 1em;
}
h2... | HTML | docs/dyn/classroom_v1.courses.teachers.html | googleapis/google-api-python-client | apache-2.0 | 16,536 | 274 | codeparrot/github-code |
51b6c9893dc0af4ab71739615709c6ef57c58e944ce75583f05ef6d0db7413cf | /*******************************************************************************
* Copyright 2012 Apigee 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.... | Java | src/main/java/org/usergrid/tools/event/TestEvent.java | apigee/usergrid-benchmark | apache-2.0 | 2,732 | 122 | codeparrot/github-code |
1f7f761f241de742cf2709f2f7d0396e125e35a17f8acdfad88b9274c14cbd23 | package com.point.iot.utils;
import java.text.SimpleDateFormat;
import java.util.Date;
public class DateUtils {
public static String getDateStr(long nTime) {
String str = "";
Date date1 = new Date(nTime);
Date date2 = new Date(System.currentTimeMillis());
// Integer.parseInt(... | Java | base-server/src/main/java/com/point/iot/utils/DateUtils.java | langxianwei/iot-plat | apache-2.0 | 2,425 | 74 | codeparrot/github-code |
2e887af6b12c30840d8b9927f54b63be4220de64ebe77dcd3de3fa80b52da42d | package com.jasonneurohr;
import java.io.BufferedInputStream;
import java.io.BufferedOutputStream;
import java.net.ServerSocket;
import java.net.Socket;
import java.util.Scanner;
/**
* <h1>Listener</h1>
* A sample Listener class.
*
* @author Jason Neurohr
*/
public class Listener {
private ServerSocket serv... | Java | src/com/jasonneurohr/Listener.java | jasonneurohr/sipops | apache-2.0 | 1,090 | 42 | codeparrot/github-code |
e74f9455c9248483dc5b4e617bca36d8cf854c135d4896d614edfba33464eae4 | package io.getunleash.util;
import io.getunleash.lang.Nullable;
import java.util.concurrent.*;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
public class UnleashScheduledExecutorImpl implements UnleashScheduledExecutor {
private static final Logger LOG = LoggerFactory.getLogger(UnleashScheduledExecuto... | Java | src/main/java/io/getunleash/util/UnleashScheduledExecutorImpl.java | finn-no/unleash-client-java | apache-2.0 | 2,049 | 61 | codeparrot/github-code |
60cc10a570addd42e1890ce7a23e297e576801dc9f59c3199505c57abae227ea | package com.communote.server.core.vo.tag;
/**
* @author Communote GmbH - <a href="http://www.communote.com/">http://www.communote.com/</a>
*/
public class UserTagClearanceVO extends com.communote.server.core.vo.tag.TagClearanceVO implements
java.io.Serializable {
/**
* The serial version UID of this... | Java | communote/persistence/src/main/java/com/communote/server/core/vo/tag/UserTagClearanceVO.java | Communote/communote-server | apache-2.0 | 2,671 | 84 | codeparrot/github-code |
5647b542d45b1656b5b4feaace615b05057e608787f9be0c43a8adaebcfec29a | <?php
namespace DCarbone\PHPFHIRGenerated\STU3\FHIRCodePrimitive;
/*!
* This class was generated with the PHPFHIR library (https://github.com/dcarbone/php-fhir) using
* class definitions from HL7 FHIR (https://www.hl7.org/fhir/)
*
* Class creation date: December 26th, 2019 15:43+0000
*
* PHPFHIR Copyright:
*... | PHP | src/DCarbone/PHPFHIRGenerated/STU3/FHIRCodePrimitive/FHIRActionConditionKindList.php | dcarbone/php-fhir-generated | apache-2.0 | 8,192 | 210 | codeparrot/github-code |
e1d1e8aabcd786561e94788fe1f5c5b87b03ad7f72449ae9758419d717dc97d2 | /*global passed asmjs_complex_numbers_check matmulrows_zip_342_asmjsGen ArrayBuffer window Float32Array*/
var passed, passed_asmjsgen_info;
function asmjs_matmulrows_zip_342_check()
{
var NAME = 'asmjs_matmulrows_zip_342_check';
(passed || (passed = {}))[ NAME ] = false;
// "Matrix multiplication" exam... | JavaScript | expl/asmjs_matmulrows_zip_342_check.js | glathoud/flatorize | apache-2.0 | 3,100 | 107 | codeparrot/github-code |
17a4d563ce283696de7872f799a7a7aa014bf586540afc8b23477a69c19e138c | package org.nnsoft.trudeau.scc;
/*
* 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, Ver... | Java | src/main/java/org/nnsoft/trudeau/scc/KosarajuSharirAlgorithm.java | trudeau/scc | apache-2.0 | 8,360 | 223 | codeparrot/github-code |
f7d9e08eada722b49c01b0006520608b01a5ba043ffd261de9f648cb17a5d9ff |
/**
* Clase que representa una reserva de servicio de cumpleaños infantil.
*
* @author Ing. Romina Teicher
* @version 08/2012
*/
public class Reserva
{
private int numero, edad, tipo;
private String fecha, nombre;
private float monto;
public Reserva(int n, int e, int t, String f, String nom,... | Java | Cumple/Reserva.java | federxs/aed-primero | apache-2.0 | 1,481 | 88 | codeparrot/github-code |
da6e2b6c6d63418162278a4f0db839830ac2303d60703ab0da52b88e31961e00 | <?php
/************************************************************************/
/* ATutor */
/************************************************************************/
/* Copyright (c) 2002-2009 */
/* Inclusive Design Institute ... | PHP | ATutor/mods/_standard/student_tools/instructor_index.php | CaviereFabien/Test | apache-2.0 | 4,723 | 149 | codeparrot/github-code |
f3daf7eecb46756219a706b9b02cb98c3659da93ca4cdb37d19f444110191e2c | package org.apache.jmeter.assertions;
import com.fasterxml.jackson.databind.JsonNode;
import com.github.fge.jackson.JsonLoader;
import com.github.fge.jsonschema.core.exceptions.ProcessingException;
import com.github.fge.jsonschema.core.report.LogLevel;
import com.github.fge.jsonschema.core.report.ProcessingReport;
imp... | Java | src/components/org/apache/jmeter/assertions/JSONSchemaAssertion.java | kde-intro/jmeter-json-schema-assertion | apache-2.0 | 4,431 | 116 | codeparrot/github-code |
18bee6cf14a91fc49a9e0c5194f058ffc1e26b2ec50edb371ff0e94834624866 | /*
* Copyright (C) 2015 hops.io.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed t... | Java | hadoop-hdfs-project/hadoop-hdfs/src/main/java/io/hops/transaction/context/MetadataLogContext.java | gigaroby/hops | apache-2.0 | 4,109 | 130 | codeparrot/github-code |
03ff35c1b114a31d2871cfda821dfe0b45ed23e7da4a295ada4ed13c484363b2 | #region Copyright and License
// Copyright 2010..2017 Alexander Reinert
//
// This file is part of the ARSoft.Tools.Net - C# DNS client/server and SPF Library (http://arsofttoolsnet.codeplex.com/)
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compl... | C# | ARSoft.Tools.Net/Dns/EDns/ClientSubnetOption.cs | Nicholi/ARSoft.Tools.Net | apache-2.0 | 3,736 | 111 | codeparrot/github-code |
43785dbba2787092f8660bd2c0956cabb9d54fed2c4155277aa364a253fe0212 | // Copyright 2018 Istio Authors
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this currentFile except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agre... | GO | isotope/convert/pkg/graph/script/script.go | istio/tools | apache-2.0 | 1,199 | 42 | codeparrot/github-code |
2e817fe2edde1859193bdd0f0f1df871e43d615abbe96420df56d42be5d555f6 | /*
* Copyright (c) 2017 The Project 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... | Java | tools-common/src/main/java/org/cgfork/tools/common/env/NestedPropertyResolver.java | cgfork/cgtools | apache-2.0 | 2,264 | 70 | codeparrot/github-code |
40a5a6c890e62f5b277ba30a5428cb2157dc22fdec5e7cee25a9cb8caad7df39 | /**
* 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 | exec/java-exec/src/test/java/org/apache/drill/exec/physical/impl/join/TestJoinComplex.java | shakamunyi/drill | apache-2.0 | 1,907 | 53 | codeparrot/github-code |
f8ef2e086384cc9e49ebdbdde5e1a2d969c9f3a84a0d7340b4c9dcdf70f41483 | /*
* Copyright 2011-2013 Blender 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 ag... | C | src/kernel/closure/bsdf.h | pyrochlore/cycles | apache-2.0 | 12,360 | 348 | codeparrot/github-code |
eb201179a06fa9f0f20fab0b2efde1ca76b12ac3b3148ce2286e31acdb4843bc | package org.minimalj.example.erp.model;
import java.math.BigDecimal;
import java.time.LocalDate;
import java.util.ArrayList;
import java.util.List;
import org.minimalj.model.Keys;
import org.minimalj.model.annotation.Size;
public class Offer {
public static final Offer $ = Keys.of(Offer.class);
public Object id... | Java | example/008_ERP/src/org/minimalj/example/erp/model/Offer.java | BrunoEberhard/minimal-j | apache-2.0 | 717 | 39 | codeparrot/github-code |
8a5fc7f54a644d95d996e0f2cbcd45bd62144490617ec5a7d3b5d61137a3813d | /*
Copyright Hiroki Ueda
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 | src/main/java/jp/ac/utokyo/rcast/karkinos/distribution/DistributionFitting2.java | genome-rcast/karkinos | apache-2.0 | 2,892 | 128 | codeparrot/github-code |
b2f4d9951b20f6b11ee798ad0589de6ef61baefedc288cd362c23dd95d4ace62 | /**
* Copyright 2015, deepsense.io
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed ... | Scala | deeplang/src/it/scala/io/deepsense/deeplang/doperables/EstimatorIntegSpec.scala | deepsense-io/seahorse-workflow-executor | apache-2.0 | 2,616 | 72 | codeparrot/github-code |
2174584791bc5dc496979b3b577cceb1f725d9e3c9ddc4ffa416e1c8c4c86132 | package org.whale.system.base;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.HashSet;
import java.util.List;
import java.util.Map;
import java.util.Set;
import org.whale.system.common.util.Strings;
import org.whale.system.jdbc.orm.OrmContext;
import org.whale.system.jdbc.orm.entry.OrmTable;
i... | Java | system-parent/system-jdbc/src/main/java/org/whale/system/base/AsynQuery.java | fywxin/base | apache-2.0 | 10,277 | 451 | codeparrot/github-code |
798e0d430342b45d9305a440670c2f8adcb3620e2966aa829f57e879b625d100 | ---
layout: page
description: "以梦为马,诗酒趁年华"
---
{% for post in paginator.posts %}
<div class="post-preview">
<a href="{{ post.url | prepend: site.baseurl }}">
<h2 class="post-title">
{{ post.title }}
</h2>
{% if post.subtitle %}
<h3 class="post-subtitle">
... | HTML | index.html | younnng/younnng.github.io | apache-2.0 | 1,597 | 56 | codeparrot/github-code |
797f62ee85c7bd793a487906c6f41d297f1f4572502bd9a6855e94169c6c6fb7 | #ifndef MAINWINDOW_H
#define MAINWINDOW_H
#include <QMainWindow>
#include "wwidget.h"
#include <QSystemTrayIcon>
#include <QMenu>
#include <QTreeWidget>
#include <QTreeWidgetItem>
#include <QMap>
#include <QIcon>
#include <QColor>
#include <QSettings>
namespace Ui {
class mainWindow;
class WWidget;
}
// MAI... | C | widgetci/mainwindow.h | eminfedar/widgetci | apache-2.0 | 1,695 | 81 | codeparrot/github-code |
028dbd3c206b2ed9a9e2337ffb30ca14be25dc1749468a179f7450690e8a31ba | # encoding: utf-8
require "logstash/filters/base"
require "logstash/namespace"
# The prune filter is for pruning event data from @fileds based on whitelist/blacklist
# of field names or their values (names and values can also be regular expressions).
class LogStash::Filters::Prune < LogStash::Filters::Base
config_... | Ruby | status-checkers/bosh-health-monitor-status-checker/lib/logstash/filters/prune.rb | logsearch/logsearch-monitoring-prototype | apache-2.0 | 5,323 | 151 | codeparrot/github-code |
49a8136e8b99449f9e2f6dc6b1a1a76389c856217786e57dcbfaa9641fcbf06f | package liquibase.snapshot.jvm;
import liquibase.database.AbstractJdbcDatabase;
import liquibase.database.Database;
import liquibase.database.core.*;
import liquibase.exception.DatabaseException;
import liquibase.executor.ExecutorService;
import liquibase.snapshot.InvalidExampleException;
import liquibase.snapshot.Sna... | Java | liquibase-core/src/main/java/liquibase/snapshot/jvm/UniqueConstraintSnapshotGenerator.java | ArloL/liquibase | apache-2.0 | 17,959 | 329 | codeparrot/github-code |
d083c31649a05ca8131d7368186d762bbac48945660b5700ef422a80c7c5eda1 | package org.apereo.cas.webauthn;
import org.apereo.cas.configuration.CasConfigurationProperties;
import org.apereo.cas.util.crypto.CipherExecutor;
import org.apereo.cas.webauthn.storage.BaseWebAuthnCredentialRepository;
import com.fasterxml.jackson.core.type.TypeReference;
import com.yubico.data.CredentialRegistratio... | Java | support/cas-server-support-webauthn-mongo/src/main/java/org/apereo/cas/webauthn/MongoDbWebAuthnCredentialRepository.java | pdrados/cas | apache-2.0 | 4,167 | 91 | codeparrot/github-code |
9e1cf39bc40f75dce9a1921b2e982eaafc31584f17ea4925c0532b34d813cfef | package main
import (
"fmt"
"math/rand"
"net/http"
_ "net/http/pprof"
"net/url"
"regexp"
"runtime"
"strconv"
"strings"
"time"
log "github.com/Sirupsen/logrus"
"github.com/gorilla/mux"
"github.com/prometheus/client_golang/prometheus"
"github.com/tylerb/graceful"
billing "github.com/weaveworks/billing-c... | GO | prog/app.go | kinvolk/scope | apache-2.0 | 9,661 | 330 | codeparrot/github-code |
29a524d3b792bc1bd5b6529d78ba19dacabcae383893eaad5092511a93d511fd | -- -*- test-case-name: txdav.caldav.datastore.test.test_sql,txdav.carddav.datastore.test.test_sql -*-
----
-- Copyright (c) 2010-2015 Apple 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 obta... | SQL | txdav/common/datastore/sql_schema/old/postgres-dialect/v30.sql | red-hood/calendarserver | apache-2.0 | 26,485 | 712 | codeparrot/github-code |
33aaa3f78b17bd16d54fb85155205341c91ea55d524ceccddd713ee6f1ff2ff1 | /*Copyright 2010 George Karagoulis
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, softwar... | C | src/qt/data_objects/test/DataSet/dogrow.h | karagog/gutil | apache-2.0 | 1,291 | 49 | codeparrot/github-code |
ee9a314b06ebb07d1c3923cd246e6ad6b7b57e2fa3a35d8a1e746b85c9f1f223 | package com.openthinks.libs.utilities.pools.object;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import java.util.Objects;
import java.util.concurrent.ConcurrentHashMap;
import java.util.concurrent.locks.Lock;
import java.util.concurrent.locks.ReentrantLock;
/**
* The object po... | Java | src/main/java/com/openthinks/libs/utilities/pools/object/ObjectPool.java | daileyet/openlibs.utilities | apache-2.0 | 9,034 | 378 | codeparrot/github-code |
e6c63b4587f391c03a18a0ca76ef8dcd1869711b3f9880a5e6816fb5efb03a92 | #!/usr/bin/env python2.5
#
# Copyright 2008 the Melange 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 applic... | Python | app/soc/models/seed_db.py | SRabbelier/Melange | apache-2.0 | 28,823 | 1,002 | codeparrot/github-code |
47e8d11c650983ccae2bfd0e291480a58fb190dc46f5dcbf520647e43586e73b | # coding=utf-8
# Copyright 2015 Pants project contributors (see CONTRIBUTORS.md).
# Licensed under the Apache License, Version 2.0 (see LICENSE).
from __future__ import (absolute_import, division, generators, nested_scopes, print_function,
unicode_literals, with_statement)
import os
from pant... | Python | src/python/pants/backend/jvm/tasks/jvm_compile/jvm_classpath_publisher.py | qma/pants | apache-2.0 | 2,151 | 60 | codeparrot/github-code |
a90361624325cf7bdbc937b1ccedc5e74c313c3dbbf656629ba8ec562b305fb7 | package cn.varus.dao;
import java.util.List;
import javax.annotation.Resource;
import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.jdbc.core.support.JdbcDaoSupport;
import org.springframework.orm.hibernate3.HibernateTemplate;
import org.springframework.stereotype.Component;
import cn.varus... | Java | src/cn/varus/dao/UserDao.java | phoenix-varus/Jvarus | apache-2.0 | 1,111 | 47 | codeparrot/github-code |
a96716bff703bcc56aa7ea1fc54f98d4a9ce1ca4db94c9819fa62d7a7a780835 | # Copyright 2010 Dmitry Naumenko (dm.naumenko@gmail.com)
# Copyright 2015 Techcable
#
# 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 r... | Python | diffutils/_myers.py | Techcable/DiffUtils | apache-2.0 | 7,995 | 237 | codeparrot/github-code |
c52e87d39604d31ad2a00bccae61718c86da324e9f4c69d94ee13f2b52d15367 | import {
ADD_USER_MESSAGE,
AUTO_ACKNOWLEDGE,
CLEAR_USER_MSGS,
DISMISS_EVENT,
DISMISS_USER_MSG,
SET_USERMSG_NOTIFIED,
SET_SERVER_MESSAGES,
GET_ALL_EVENTS,
} from '_/constants'
export function addUserMessage ({ message, messageDescriptor, type = '' }) {
return {
type: ADD_USER_MESSAGE,
payload:... | JavaScript | src/actions/userMessages.js | oVirt/ovirt-web-ui | apache-2.0 | 1,274 | 80 | codeparrot/github-code |
5224ae8abfe94497045f6f78966b137ae3371d6d051791204bb7f0ac2247ff9b | #!/usr/env/bin python
# TODO
# 1. fix bug that if a script shares the same name as a material dll to load,
# the material may not be loaded correctly
# 2. fix multiple definitions of c++ -> python conversion for Spectrum
import sys
import os
import math
from libgotham import *
import inspect
def normalize(x):
... | Python | api/api.py | jaredhoberock/gotham | apache-2.0 | 16,127 | 508 | codeparrot/github-code |
e2f509003bfcab65fb337d45698d788a816636761b22d5c1657cb255999536be | var favouritesWin = new Window('Favourites');
var tableHeader = Ti.UI.createView({
height: 32,
top: 0,
zIndex: 10,
});
var pullView = Ti.UI.createView({
backgroundColor: '#fff',
height: 43,
});
// sorting of the database
var sortbar = Titanium.UI.iOS.createTabbedBar({
labels: ['Time Added', 'Published Date', '... | JavaScript | Resources/favouritesView.js | publicarray/Mac-Rumors-iOS-app | apache-2.0 | 1,315 | 62 | codeparrot/github-code |
133812cff6f290b30b3011fb4b0f58fc318c7f6cccd8cc38146e8d8dda08f58b | ---
layout: keynote
title: "SpringBoot-最佳实践-1.1迁移旧应用"
subtitle: "Slides: Springmvc迁移至SpringBoot"
header-img: "img/post-bg-js-version.jpg"
navcolor: "invert"
date: 2017-05-21
author: "JerryMinds"
tags:
- Java
- SpringBoot
- microservice
- 云端
---
> 对于一个创业项目或者一个类似的项目如何快速启动?架构新项目 o... | Markdown | _posts/2017-05-21-SpringBoot-Start1.markdown | jerryxing98/jerryxing98.github.io | apache-2.0 | 4,512 | 152 | codeparrot/github-code |
851ba6d57d9696590139b286b44ff3266ed6b577236a24bedb320eb10ba81551 | // Copyright 2022 Google LLC. 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... | GO | python/services/assuredworkloads/beta/workload_server.go | GoogleCloudPlatform/declarative-resource-client-library | apache-2.0 | 12,855 | 275 | codeparrot/github-code |
86cbb10a71b98ab3ced910e2d659bc6e8c30d1ebc9635a70c458034c765ee421 | // Copyright 2015 The rkt Authors
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to... | GO | common/apps/apps.go | jasonchaffee/rkt | apache-2.0 | 4,615 | 153 | codeparrot/github-code |
5c54e28373ba6c86199f3b76e0ba613a2621feffb6753b46ea3adbabf220735d | /*******************************************************************************
* * Copyright 2016 Impetus Infotech.
* *
* * 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 | src/kundera-kudu/src/test/java/com/impetus/client/kudu/crud/datatypes/StudentKuduIntTest.java | impetus-opensource/Kundera | apache-2.0 | 15,867 | 494 | codeparrot/github-code |
f6e615e0841a28db457d5e4ff1eb8d2e6c938317578ed56b7a45a5d44375c646 | var products = [
"Brooklyn T-Shirt White",
"Brooklyn T-Shirt Black",
"Apple Watch",
"Android Phone"
];
var prices = [10,10,199,159];
var customerName = "Gem";
var total = 0;
var customer = document.getElementById("name");
customer.textContent = customerName;
var productsText = "";
var productsElement = docume... | JavaScript | Week3-2/js/shop.js | ChawisB/ITE220 | apache-2.0 | 698 | 30 | codeparrot/github-code |
20fc8146d1cdfa0657312c18d4cf1c75080c3ad73795c8e468393f5ad93f1eda | //
// Text sticker
//
#include "fontsticker.hh"
#include "sys/msys.h"
#include "sys/msys_debug.h"
#include <GL/gl.h>
#include <GL/glu.h>
namespace Font
{
Sticker::Sticker(const HDC & hdc,
const char * name, int height, int weight):
_wrapper(hdc, name, height, weight, FALSE)
{
}
Sticker::~Sticker()
... | C++ | F/src/fontsticker.cc | laurentlb/Ctrl-Alt-Test | apache-2.0 | 1,151 | 61 | codeparrot/github-code |
25d91e40564a2d19d8ac77e11ee6bd7493fb4067921cdae7003e7c8680886b2b | using System.Security.Principal;
using System.Threading;
using IronFrame.Utilities;
using System.Data;
using System.Management.Instrumentation;
using System.Runtime.InteropServices;
using System.Security.Principal;
using DiskQuotaTypeLibrary;
using System;
using System.Collections.Generic;
using System.Diagnostics;
us... | C# | IronFrame.Acceptance.Test/ContainerAcceptanceTests.cs | stefanschneider/IronFrame | apache-2.0 | 24,281 | 698 | codeparrot/github-code |
fd37aecf866d2106b318606d4c558ecf4c4d1bc3aaed7e7176472d50441d1ce1 | package com.box.androidsdk.browse.fragments;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.support.v7.widget.AppCompatCheckBox;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
imp... | Java | box-browse-sdk/src/main/java/com/box/androidsdk/browse/fragments/BoxFilterSearchResultsFragment.java | seema-at-box/box-android-browse-sdk | apache-2.0 | 12,047 | 313 | codeparrot/github-code |
fdd88038e77ce8cf864bfdb14702c68df2786c72cfc012c8e311613ae63fdf5f | /*
* Copyright (C) 2014 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 app... | Java | mobile/src/main/java/net/africahomepage/mp3africa/playback/CastPlayback.java | ronniemara/android-UniversalMusicPlayer | apache-2.0 | 13,471 | 344 | codeparrot/github-code |
9db62b0713f3620effcba9c7ecc5bdfe38f438ef83e08986d7f976fb98bc536f | /*
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 law or agreed to in ... | GO | pkg/api/validation/validation.go | dalanlan/kubernetes | apache-2.0 | 56,649 | 1,393 | codeparrot/github-code |
de3572f7291d30eb11d19c11a9215890e14b4f78a029a21216e056a2ca0cea2c | <!DOCTYPE html>
<head>
<meta charset="utf-8" />
<!-- Set the viewport width to device width for mobile -->
<meta name="viewport" content="width=device-width" />
<title>Arcas: Using Python to access open research literature</title>
<link rel="stylesheet" href="../../theme/css/normalize.css" />
... | HTML | docs/www.euroscipy.org/2017/descriptions/19440.html | datapythonista/datapythonista.github.io | apache-2.0 | 3,230 | 89 | codeparrot/github-code |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.