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 |
|---|---|---|---|---|---|---|---|---|
19f29e9e8ef0c5302a1293e141caa0952eab6c534a302c689cc79604ed5da795 | /*
* Copyright 2013-2015 Christian Autermann
*
* 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 | src/test/java/com/github/autermann/yaml/nodes/YamlBooleanNodeTest.java | autermann/yaml | apache-2.0 | 2,161 | 82 | codeparrot/github-code |
33df939976524409e0373dd21390d74b7fa82ea8571d54baf6df2ee4177e2a6b | /*
* Copyright 2012-2015 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 | initializr-web/src/test/java/io/spring/initializr/web/test/ResponseFieldSnippet.java | bclozel/initializr | apache-2.0 | 4,171 | 115 | codeparrot/github-code |
76e3fe710a4c4f41e7f8236f68423726106793b1752dd02a7dd1f07c91a10e78 | package navyblue.top.colortalk.ui.fragments;
import android.app.Activity;
import android.content.Intent;
import android.database.Cursor;
import android.graphics.Bitmap;
import android.graphics.Color;
import android.net.Uri;
import android.os.Bundle;
import android.os.Environment;
import android.provider.MediaStore;
im... | Java | app/src/main/java/navyblue/top/colortalk/ui/fragments/PictureEditFragment.java | YogiAi/ColorTalk_Android | apache-2.0 | 7,019 | 222 | codeparrot/github-code |
0d8635bd89620bb4a100028e0c3701c026d7da975d74287e0921ea2420e49604 | /*
* Copyright (c) 2011-2014, Peter Abeles. All Rights Reserved.
*
* This file is part of BoofCV (http://boofcv.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... | Java | main/ip/test/boofcv/alg/transform/fft/TestDiscreteFourierTransformOps.java | pacozaa/BoofCV | apache-2.0 | 11,578 | 314 | codeparrot/github-code |
a70fafe8b9bfdf79290f05695f292f18d4fffa0789cef9ab5fc4c6594cc00940 | package com.zkx.news.utils;
import android.graphics.Bitmap;
import android.support.v4.util.LruCache;
/**
* 内存缓存 (使用软引用改造,一旦内存不足,就被垃圾回收器回收)
*
* @author zhang
*
*/
public class MemoryCacheUtils {
// private HashMap<String, SoftReference<Bitmap>> mMemoryCache = new
// HashMap<String, SoftReference<Bitmap>>();
... | Java | news/src/main/java/com/zkx/news/utils/MemoryCacheUtils.java | zkxok/News | apache-2.0 | 1,586 | 64 | codeparrot/github-code |
fbce02b19877d80f165c998d0611a3bcb0293662b98dc7650f945e84743c8fc7 | #include "halley/ui/widgets/ui_dropdown.h"
#include "ui_style.h"
#include "widgets/ui_image.h"
#include "widgets/ui_scroll_pane.h"
#include "widgets/ui_scrollbar.h"
#include "widgets/ui_list.h"
#include "halley/text/i18n.h"
#include "halley/ui/ui_data_bind.h"
using namespace Halley;
UIDropdown::UIDropdown(String id, ... | C++ | src/engine/ui/src/ui/widgets/ui_dropdown.cpp | amzeratul/halley | apache-2.0 | 9,263 | 327 | codeparrot/github-code |
7c9370450550d179bc82948de2933c1e1f2ede44b36c7f4d897b0e07335f9315 | /*
* Copyright (c) 2014-2019 by The Minitest Project Developers.
* Some 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... | Scala | shared/src/main/scala/minitest/runner/Framework.scala | alexandru/minitest | apache-2.0 | 1,665 | 49 | codeparrot/github-code |
350f73401edf9cb1724c7e2b82b1bd3275b12a1dedc9fb91f0a21c16cad6284e | package uk.co.ribot.androidboilerplate.ui.adapter;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.support.v7.widget.RecyclerView;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Button;
import android.widget.ImageView;
import andro... | Java | app/src/main/java/uk/co/ribot/androidboilerplate/ui/adapter/OrderListAdapter.java | ebridfighter/GongXianSheng | apache-2.0 | 11,679 | 294 | codeparrot/github-code |
4ade06a576cec23787dd4af58ad557932f0450a887addfb79c66acbc0f277392 | package org.g4studio.core.orm.xibatis.common.jdbc.exception;
import java.sql.SQLException;
/**
* Unchecked exception to allow passing an Exception with the original
* SQLException
*/
public class RuntimeSQLException extends RuntimeException {
/**
* Default constructor
*/
public RuntimeSQLExcept... | Java | G4Studio5/src/org/g4studio/core/orm/xibatis/common/jdbc/exception/RuntimeSQLException.java | G4Studio/tobacco | apache-2.0 | 2,152 | 106 | codeparrot/github-code |
eae406a65ed7c555b9ce9b123f31f295fc2ceed47d0fd9460d60a2e873118fb7 | import { cloneDeep, isNumber, omit } from 'lodash';
import {
convertOldAngularValueMappings,
FieldColorModeId,
FieldConfig,
fieldReducers,
PanelModel,
ReduceDataOptions,
ReducerID,
sortThresholds,
Threshold,
ThresholdsConfig,
ThresholdsMode,
validateFieldConfig,
ValueMapping,
VizOrientation... | TypeScript | ui/src/packages/datav-core/src/ui/components/SingleStatShared/SingleStatBaseOptions.ts | teamsaas/meq | apache-2.0 | 8,533 | 334 | codeparrot/github-code |
7940b98a973f5bd9e934b071e348268b76e0e78e369b9b9960d0202c062b60a3 | using System;
using System.Windows.Forms;
using BlurMessageBox;
using Dapper;
namespace FileExporter.PluginForms
{
public partial class BankAccounts : BaseForm
{
public BankAccounts()
{
InitializeComponent();
}
protected override async void OnLoaded(object sender, ... | C# | src/FileExporter/PluginForms/BankAccounts.cs | Behzadkhosravifar/MultiForm-Application | apache-2.0 | 2,394 | 85 | codeparrot/github-code |
ad8db277c95309d1ef415d358c45cb4866b0ec5573f066730f744b37070d922d | package nl.gogognome.lib.swing.models;
import nl.gogognome.lib.util.ComparatorUtil;
/**
* This class implements a model for a <code>String</code>.
*/
public class StringModel extends AbstractModel {
private String string;
public String getString() {
return string;
}
/**
* Sets the st... | Java | src/main/java/nl/gogognome/lib/swing/models/StringModel.java | gogognome/gogoswing | apache-2.0 | 997 | 38 | codeparrot/github-code |
5b0267b6ddbc0e76f8dc748869e08cfe5a2e00ff3a877e8b12625f6ef43cbeaf | /*
* Copyright 2015 herd contributors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in ... | Java | herd-code/herd-model/src/main/java/org/finra/herd/model/dto/StoragePolicyTransitionParamsDto.java | seoj/herd | apache-2.0 | 6,209 | 216 | codeparrot/github-code |
a03d26adddb3b971c4cc8b3100ddce43db85b9ecd6ddc797b14ff420484958d2 | package com.bradchen.jwormhole.client.console.commands;
import com.bradchen.jwormhole.client.Client;
import com.bradchen.jwormhole.client.Settings;
import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.List;
import java.util.Properties;
public class StatusCommand ext... | Java | src/main/java/com/bradchen/jwormhole/client/console/commands/StatusCommand.java | vvasabi/jwormhole-client | apache-2.0 | 1,810 | 68 | codeparrot/github-code |
312865ea2d49ab5e3d6a7e98287da98019bea8a9bccab272eafa27276aa15a3e | /*
* Copyright (c) 2016-present, RxJava Contributors.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in
* compliance with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable la... | Java | src/test/java/io/reactivex/rxjava3/internal/operators/single/SingleObserveOnTest.java | ReactiveX/RxJava | apache-2.0 | 1,721 | 52 | codeparrot/github-code |
22c9eb1f3acb3ee450b7b6a43e10df6dc5ec155aecd45ec238e7785cd3780864 | var path = require('path');
var config = require('./deploy-config.json');
var rollbar = require('./rollbar');
function dateStamp(){
return new Date().getTime();
}
function cssSourceMapReplace(cssFilePath){
var cssFilename = path.basename(cssFilePath);
return {
src: [cssFilePath],
overwri... | JavaScript | Gruntfile.js | spatialdev/seed-angular-multipage-app | apache-2.0 | 7,477 | 224 | codeparrot/github-code |
ab335d4d22e3612169f0a0a167f1544a45544a56d2141cb861d8242564170789 | <!DOCTYPE html>
<html>
<!--
Copyright 2010 The Closure Library Authors. All Rights Reserved.
Use of this source code is governed by the Apache License, Version 2.0.
See the COPYING file for details.
-->
<head>
<title>goog.userAgent</title>
<link rel="stylesheet" href="css/demo.css">
<style>
th {
text-a... | HTML | closure/goog/demos/useragent.html | lucidsoftware/closure-library | apache-2.0 | 4,914 | 207 | codeparrot/github-code |
143527ab9a3a8309fdf3339272485ae6f91c083e5f71d67964b29024d6da364d | /*
* Copyright 2006-2013 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 app... | Java | modules/citrus-integration/src/it/java/com/consol/citrus/javadsl/design/HttpMessageControllerJavaIT.java | hmmlopez/citrus | apache-2.0 | 7,744 | 222 | codeparrot/github-code |
66f13146de7ffdac33557ba5b117388b042e3bcc207119294b227f2d45363c10 | /**
* Copyright 2013 Couchbase, 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 applicabl... | C | src/iops.c | couchbase/couchbase-python-client | apache-2.0 | 17,939 | 702 | codeparrot/github-code |
998daa74934fbd7a9d6b6c231d18a44e115222f57a1b28f1f7b8d0b19b04340a | #!/bin/bash
function usage() {
echo
echo "NAME"
echo "convert-junit-assertions-to-assertj-on-osx.sh - Convert most of JUnit assertions to AssertJ assertions"
echo
echo "It is difficult to convert ALL JUnit assertions (e.g. the ones that are multiline) but it should be good for most of them."
echo
echo "S... | Shell | src/main/scripts/convert-junit-assertions-to-assertj-on-osx.sh | yurloc/assertj-core | apache-2.0 | 9,072 | 191 | codeparrot/github-code |
da32c9315637cb54f62ba40635097e78366f110cfd172f9c122775ee3c4373f0 | /*
* Copyright 2012-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 "licen... | Java | aws-java-sdk-mechanicalturkrequester/src/main/java/com/amazonaws/services/mturk/model/ListReviewPolicyResultsForHITResult.java | dagnir/aws-sdk-java | apache-2.0 | 12,718 | 374 | codeparrot/github-code |
daecff3e8c560bff9d02b9324bbc1fbf0207fb18e346d676ded42332e29695e6 | package wulfric.predictor.function;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import java.util.PriorityQueue;
import wulfric.core.Attribute;
import wulfric.core.BinnedAttribute;
import wulfric.core.Instance;
import wulfric.core.Instances;
import wulfric.core.NominalAt... | Java | src/main/java/wulfric/predictor/function/LineCutter.java | nikhilRP/wulfric | apache-2.0 | 18,768 | 627 | codeparrot/github-code |
dbb05fc5ebbb96282f5b4b4b61a6dbc2a0db82d8e0b775eacb927546d51cbe57 | // Copyright (c) 2018, 2020, Oracle and/or its affiliates. All rights reserved
//-----------------------------------------------------------------------------
//
// You may not use the identified files except in compliance with the Apache
// License, Version 2.0 (the "License.")
//
// You may obtain a copy of the Lice... | JavaScript | lib/sodaDocument.js | oracle/Node-oracledb | apache-2.0 | 1,272 | 46 | codeparrot/github-code |
9a2a33a3353ab5d2de349fbc6b9812be48ab682585e7ef5ebcb63e4772f47802 | /* Copyright (c) 2015, 2018, Oracle and/or its affiliates. All rights reserved. */
/******************************************************************************
*
* You may not use the identified files except in compliance with the Apache
* License, Version 2.0 (the "License.")
*
* You may obtain a copy of the ... | JavaScript | test/columnMetadata.js | oracle/Node-oracledb | apache-2.0 | 16,538 | 502 | codeparrot/github-code |
876079aa267eead86cfbfb25b434611aea7c4bd4b183d03c41852c3306c594d6 | /*
* Copyright 2013 Monocrea 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 ... | Java | sit-wt-runtime/src/main/java/io/sitoolkit/wt/infra/TestException.java | sitoolkit/sit-wt-all | apache-2.0 | 1,018 | 39 | codeparrot/github-code |
f4d92708a0ef672ee21bdb8c25814ec5ac3c2bc182ed6d70832f27aa069448d1 | /*
* 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-mediaconnect/source/model/ListFlowsRequest.cpp | cedral/aws-sdk-cpp | apache-2.0 | 1,509 | 61 | codeparrot/github-code |
cee77767a6b9f256f0abbe073f5dc6f7b9fb747e8bb211ece654378e523f9786 | package mack.dao.usuario;
import mack.entities.Usuario;
import java.sql.*;
import java.util.*;
import mack.dao.exception.DAORuntimeException;
import org.apache.commons.logging.*;
class UsuarioDAOImpl implements UsuarioDAO {
static final private Log log = LogFactory.getLog(UsuarioDAOImpl.class);
private boole... | Java | appLp3/src/java/mack/dao/usuario/UsuarioDAOImpl.java | GabrielPsantos/LP3---Ambiente-Configurado | apache-2.0 | 7,663 | 206 | codeparrot/github-code |
f72db9673bb8806f5c6ab77daa02e5d93364a7cca99b3dff863d61f16c041938 | /*
* Copyright 2016 Fixstars 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 law or ... | C++ | src/api/internal/task_impl.hpp | fixstars/m3bp | apache-2.0 | 4,151 | 187 | codeparrot/github-code |
a9231f22eeb3a93f899f110992455eb72a66407825d93007d10aec7a406909c4 | /*
* Copyright 2015-present Facebook, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may
* not use this file except in compliance with the License. You may obtain
* a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or... | Java | src/com/facebook/buck/jvm/java/intellij/IjModuleGraph.java | Dominator008/buck | apache-2.0 | 16,089 | 448 | codeparrot/github-code |
14effcc4eac7a74d92398fdeebfbc92492e7463adf340794bc95dc4f84214335 | package com.anadathur.elastic
import javax.lang.model.element.Modifier
import java.util.{List => JList}
import com.squareup.javapoet._
/**
* Created by ajay.nadathur on 7/18/15.
*/
package object easymapping {
val privFinal = Array(Modifier.PRIVATE, Modifier.FINAL)
val pubAbs = Array(Modifier.PUBLIC, Modifier.... | Scala | src/main/scala/com/anadathur/elastic/easymapping/package.scala | ajaykumarns/easymapping | apache-2.0 | 2,481 | 62 | codeparrot/github-code |
db0439700ecb2ba905925449aa9dc7625b6efd0be8f1047511e647362572dbd6 | # vim: set ts=4:et
import os
import uuid
import socket
from charmhelpers.core.hookenv import (
config,
relation_ids,
related_units,
relation_get,
unit_get,
cached,
)
from charmhelpers.fetch import (
apt_install,
)
from charmhelpers.contrib.openstack.context import (
OSContextGenerator,
... | Python | charms/precise/quantum-gateway/hooks/quantum_contexts.py | CiscoSystems/jujucharm-n1k | apache-2.0 | 6,598 | 206 | codeparrot/github-code |
6aabcbea39b716ded8e590af6544cd49e6c893bf28525d216a7d7fa38c4e0f32 | from argparse import ArgumentParser
from typing import Any, List
from zerver.lib.actions import do_create_multiuse_invite_link, ensure_stream
from zerver.lib.management import ZulipBaseCommand
from zerver.models import PreregistrationUser, Stream
class Command(ZulipBaseCommand):
help = "Generates invite link tha... | Python | zerver/management/commands/generate_multiuse_invite_link.py | brainwane/zulip | apache-2.0 | 1,624 | 44 | codeparrot/github-code |
9e853780c90a3ffad2f42dd4b4a977998fc65564077995b3c71a28dd03573603 | /*
**
** electrifier
**
** Copyright 2017-19 Thorsten Jung, www.electrifier.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/LICEN... | C# | src/electrifier.Core/LogContext.cs | electrifier/electrifier | apache-2.0 | 3,139 | 92 | codeparrot/github-code |
57b941d9f2d0711f0ec40bf41bd08fe44e042df279fd8af19763ee572325f0ae | package hdfs.rpc;
import hdfs.rpc.protocol.MyProtocol;
import hdfs.rpc.protocolPB.MyProtocolPB;
import hdfs.rpc.protocolPB.MyProtocolTranslatorPB;
import org.apache.hadoop.conf.Configuration;
import org.apache.hadoop.ipc.ProtobufRpcEngine;
import org.apache.hadoop.ipc.RPC;
import java.io.IOException;
import java.net.... | Java | src/main/java/hdfs/rpc/Client.java | FaxianZhao/HadoopMisc | apache-2.0 | 2,026 | 57 | codeparrot/github-code |
eb31709a8fcb6d9cf554b3407ce882e404ba9d959d0375bf89a834ce5119647e | /**
* Copyright 2014 Netflix, 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 t... | Java | rxjava-core/src/test/java/rx/RefCountTests.java | devisnik/RxJava | apache-2.0 | 5,061 | 155 | codeparrot/github-code |
db45505760c97c17c0f853ff2dc761776e5f835189ea1829dc88db5f50efc282 | /*
* Copyright (c) 2016 Intel 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 law or ... | C | drivers/nble/conn.c | coldnew/zephyr-project-fork | apache-2.0 | 8,151 | 395 | codeparrot/github-code |
8c1ec8f17cd60ecb576a7c1361ca7642ccc22a79ecb89f73d157b7f6a5ef700e | package org.docksidestage.dockside.dbflute.whitebox.outsidesql;
import org.dbflute.cbean.result.ListResultBean;
import org.dbflute.cbean.result.PagingResultBean;
import org.dbflute.exception.DangerousResultSizeException;
import org.dbflute.exception.FetchingOverSafetySizeException;
import org.dbflute.exception.PagingO... | Java | src/test/java/org/docksidestage/dockside/dbflute/whitebox/outsidesql/WxOutsideSqlCheckTest.java | dbflute-test/dbflute-test-active-dockside | apache-2.0 | 5,698 | 139 | codeparrot/github-code |
2520b91069568845653f86a379fb749073bdde730fe8fd3a21681188f616d6aa | /**
* Copyright (c) 2015 Intel 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 law or ... | JavaScript | test/javascript/ui/jobscheduler/WorkflowJobsControllerTest.js | trustedanalytics/console | apache-2.0 | 2,895 | 98 | codeparrot/github-code |
7470f595878293712115811325dc41fa31fa732bbb84a2cb4733341225bf6c55 | #ifndef _CORE_DOUBLE_FLOAT_H_
#define _CORE_DOUBLE_FLOAT_H_
#include "gpackage.h"
namespace gsystem { // gsystem
class GAPI GDoubleFloat
: public GNumber<gdouble>
{
public:
static gdouble MaxValue();
static gdouble MinValue();
static gdouble Epsilon();
static gsize PrecisionDigit();
static gsize MantissaDigit... | C | include/gcore/gdoublefloat.h | birderyu/GSystem | apache-2.0 | 808 | 38 | codeparrot/github-code |
9e04e919ca5a58006240ec20f4cbb1e22f5737f5da0cecd33f51576cc623ac67 | //Copyright 2014 Microsoft
//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, s... | C# | CatalogIndexer/Program.cs | timgabrhel/WinRT.AzureSearch | apache-2.0 | 9,315 | 172 | codeparrot/github-code |
5617d5184824be1322ad83585bb93a35552c8baeb478eab71d0aa01f5589c190 | <!DOCTYPE html>
<html>
<head>
<title></title>
</head>
<body>
<h1>Booleans</h1>
<p id="b1"></p>
<p id="b2"></p>
<p id="b3"></p>
<p id="b4"></p>
<p id="b5"></p>
<h1>Booleans Metodos</h1>
<p id="b6"></p>
<p id="b7"></p>
</body>
<script>
var b1 = 5>3;
var b2 = 5>3;
var b3=(10==10);
var b4 =20<15;
var b5 =1... | HTML | boolean1.html | dice9030/jsbasic | apache-2.0 | 683 | 37 | codeparrot/github-code |
92503ec81fd8573220e8e97952eb302bb95d73f63d8122b70045af0b7e268c86 | package au.org.garvan.phenomics.cr.testsuites.inputwrapper.util;
import java.io.FileReader;
import java.io.IOException;
import java.util.Properties;
import org.json.simple.JSONObject;
import org.json.simple.parser.JSONParser;
import org.json.simple.parser.ParseException;
import au.org.garvan.phenomics.cr.testsuites.... | Java | cr_testsuite_inputwrapper/src/au/org/garvan/phenomics/cr/testsuites/inputwrapper/util/MetadataReader.java | tudorgroza/cr_testsuites | apache-2.0 | 4,217 | 109 | codeparrot/github-code |
19a511059fb250e1275c3ce25edef608d53eea5c90a17a8b950eb694287be99e | package io.doov.core.dsl.runtime;
import static java.util.Comparator.comparing;
import java.util.ArrayList;
import java.util.EnumMap;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.stream.Collectors;
import java.util.stream.Stream;
import io.doov.core.FieldId;
import io.doov.... | Java | core/src/main/java/io/doov/core/dsl/runtime/RuntimeFieldRegistry.java | lesfurets/dOOv | apache-2.0 | 2,761 | 80 | codeparrot/github-code |
f25d8774016339e10e8760ae746dcfb60312bd793236c04075e754c386a30027 |
#if !BESTHTTP_DISABLE_ALTERNATE_SSL && (!UNITY_WEBGL || UNITY_EDITOR)
namespace Org.BouncyCastle.Asn1
{
public class Asn1Tags
{
public const int Boolean = 0x01;
public const int Integer = 0x02;
public const int BitString = 0x03;
public const int OctetString = 0x04;
publi... | C# | examples/GameClient/Assets/Plugins/3rdParty/Best HTTP (Pro)/BestHTTP/SecureProtocol/asn1/Asn1Tags.cs | cathy33/Infinity | apache-2.0 | 1,428 | 41 | codeparrot/github-code |
35d4e314d3d1681b66f892b2c18f194e48838fa966652e35c514e4c3e33a57fd | /*******************************************************************************
* Copyright 2015 InfinitiesSoft Solutions 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
*
* ... | Java | src/main/java/com/infinities/nova/quota/QuotaDriver.java | infinitiessoft/nova2.0-api | apache-2.0 | 3,546 | 75 | codeparrot/github-code |
0ae51e6a92746e3438f42a6eb3ffc18f4a130aeedb765a8a3ff7869058423fa5 | // Copyright 2017 Istio 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 i... | GO | pkg/platform/gcp.go | crazytan/auth | apache-2.0 | 3,044 | 105 | codeparrot/github-code |
01dcf3db208f8b9caeec5d4552c3157232486da96a03c2ed383928d3c74e805f | /*
* 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-simpleworkflow/src/main/java/com/amazonaws/services/simpleworkflow/model/transform/DeprecateWorkflowTypeRequestProtocolMarshaller.java | jentfoo/aws-sdk-java | apache-2.0 | 2,806 | 64 | codeparrot/github-code |
bd2eb4112943b7a0ac369475f88a316d4cf29fc9c5da33407b4d1e3b546a8362 | /*
* 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-greengrass/src/main/java/com/amazonaws/services/greengrass/model/transform/CreateSubscriptionDefinitionRequestMarshaller.java | jentfoo/aws-sdk-java | apache-2.0 | 3,162 | 67 | codeparrot/github-code |
ba5c7b1c0569095de865ea3a964b0c5350177b67430d22040ae8b9352751e961 | package com.github.dynamicextensionsalfresco.blueprint;
import java.io.IOException;
import java.lang.annotation.Annotation;
import java.util.Locale;
import java.util.Map;
import org.springframework.beans.BeansException;
import org.springframework.beans.factory.BeanFactory;
import org.springframework.beans.factory.NoSu... | Java | blueprint-integration/shared/src/main/java/com/github/dynamicextensionsalfresco/blueprint/HostApplicationContext.java | stanmine/dynamic-extensions-for-alfresco | apache-2.0 | 7,535 | 239 | codeparrot/github-code |
f66ea5c438309c0c7748fc9e97dad01c80d587b809f43360382079a2ebbbed31 | package xyz.vopen.cartier.provision.ext.response;
/**
* xyz.vopen.cartier.provision.ext.response
*
* @author Elve.xu [xuhw@yyft.com]
* @version v1.0 - 19/07/2017.
*/
public class EnableDeviceResponse extends ErrorBasicResponse {
private static final long serialVersionUID = 7701695519514250252L;
/**
... | Java | cartier-provision-tools/src/main/java/xyz/vopen/cartier/provision/ext/response/EnableDeviceResponse.java | CiNC0/Cartier | apache-2.0 | 6,045 | 232 | codeparrot/github-code |
2602b3f4d1ffa0ec642a2bb7cd65bdf57d24d98e99f28440b4ea0e8ffe9f0090 | package com.bigkoo.pickerview.view;
import android.view.View;
import com.bigkoo.pickerview.R;
import com.bigkoo.pickerview.adapter.NumericWheelAdapter;
import com.bigkoo.pickerview.lib.WheelView;
import com.bigkoo.pickerview.listener.OnItemSelectedListener;
import java.text.DateFormat;
import java.text.Sim... | Java | pickerview/src/main/java/com/bigkoo/pickerview/view/WheelTime.java | qiu-yongheng/Ship | apache-2.0 | 27,530 | 705 | codeparrot/github-code |
518453255a13667a559ad9df09034ac0cafe496f724dc533b279f68f13990faa | /**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you... | C | weex_core/Source/include/JavaScriptCore/heap/OpaqueRootSet.h | acton393/incubator-weex | apache-2.0 | 2,060 | 85 | codeparrot/github-code |
97de2860ddd75a1c3344720f2403229ed390fbed63d9b8eaae16461c1dceb7ca | """ ietf_ipv6_unicast_routing
This YANG module augments the 'ietf\-routing' module with basic
configuration and state data for IPv6 unicast routing.
Copyright (c) 2014 IETF Trust and the persons identified as
authors of the code. All rights reserved.
Redistribution and use in source and binary forms, with or
withou... | Python | ietf/ydk/models/ietf/ietf_ipv6_unicast_routing.py | 111pontes/ydk-py | apache-2.0 | 1,614 | 61 | codeparrot/github-code |
25f757dc074bcba08937930fcda088f075bdaafc7f0abb0f6ad7d9ec98d7fc2f | // 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... | C | be/src/exec/es_scan_node.h | imay/palo | apache-2.0 | 3,493 | 93 | codeparrot/github-code |
845378d7bb65a097046cc74395fb422e5abb194741d2b5b6c32b5db7b49da860 | /*
* Copyright 2009-2013 by The Regents of the University of California
* 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 from
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless r... | Java | hyracks/hyracks-storage-am-lsm-btree/src/main/java/org/apache/hyracks/storage/am/lsm/btree/impls/LSMBuddyBTreeMergeCursor.java | tectronics/hyracks | apache-2.0 | 3,444 | 77 | codeparrot/github-code |
066b0503d94b48da91974893973c2805d9e01dc534655386c0efa24dab69dabe | package vn.tuan.app.model;
import com.google.common.base.MoreObjects;
import com.google.common.base.Strings;
import com.google.common.collect.Lists;
import vn.tuan.app.dao.ArticleDao;
import vn.tuan.app.dao.entities.ArticleEntity;
import java.text.SimpleDateFormat;
import java.util.List;
/**
* Created by tuanlhd on... | Java | some-tools/webapp/src/main/java/vn/tuan/app/model/NewsModel.java | playernodie/java-desktop-apps | apache-2.0 | 3,419 | 138 | codeparrot/github-code |
91e62e1442b67ad3375f5d14eb49bc59d72bc24921b3db2c1bc4e813807f0de3 | /***************************************************************************************************************************
* @license *
* Copyright 2017 Coinbase, Inc. ... | TypeScript | src/factories/poloniexFactories.ts | tianyangj/gdax-tt | apache-2.0 | 4,963 | 97 | codeparrot/github-code |
3e1e69c75b68aa42214ed48adcd78a617b7cae49509ee4dd1843708f719e687e | /*=========================================================================
*
* Copyright Insight Software Consortium
*
* 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
*
* h... | C | Modules/Segmentation/LevelSets/include/itkImplicitManifoldNormalVectorFilter.h | zachary-williamson/ITK | apache-2.0 | 8,443 | 217 | codeparrot/github-code |
724e202f9b641ec409f2b4ebcfe237578ae294de1c4d104afeac59d9193e35bc | """Training script for DLRM model."""
import functools
import REDACTED
from absl import app as absl_app
from absl import flags
import numpy as np
import tensorflow.compat.v1 as tf
from REDACTED.tensorflow.python.tpu import tpu_embedding
from REDACTED.tensorflow_models.mlperf.models.rough.dlrm import dataloader
from ... | Python | Google/benchmarks/dlrm/implementations/dlrm-research-TF-tpu-v4-16/dlrm_main.py | mlperf/training_results_v0.7 | apache-2.0 | 8,831 | 234 | codeparrot/github-code |
f859516e2abacf34a04895a1d7feaa31a3da8cb3bc88d2fe34bd3853b51550eb | import errno
import os
from flask import current_app, abort
import ujson
import werkzeug.utils
def safe_mkdirs(path):
if os.path.exists(path):
return
try:
os.mkdir(path)
except OSError as e:
# Check for race conditions. If for some reason two threads/greenlets/whatever
# tries to create the sam... | Python | projecto/utils.py | shuhaowu/projecto | apache-2.0 | 5,402 | 181 | codeparrot/github-code |
a189fad17baaa010cc97a33604e0cfea0dbf65fce265e5a8a2714a6038fbcf64 | package main.java;
import java.util.Hashtable;
import java.util.Map;
public class Roman2Decimal25 {
final static Map<Character, Integer> map = new Hashtable<>();
static {
map.put('I', 1);
map.put('V', 5);
map.put('X', 10);
map.put('L', 50);
map.put('C', 100);
map.put('D', 500);
map.put('M', 1000);
... | Java | RomanNumerals/src/main/java/Roman2Decimal25.java | peteriliev/kata | apache-2.0 | 611 | 36 | codeparrot/github-code |
523804729717238e3fa21072b56e90ea6eb6af68e964ed3d38c6ef602cf56c56 | // Copyright 2011 Denis Stepanov
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in w... | Java | src/coffeescript/nb/CoffeeScriptLexer.java | dstepanov/coffeescript-netbeans | apache-2.0 | 17,847 | 508 | codeparrot/github-code |
9a6d8ac4f943402356710f89c91e9843ce3568a1764a911fbebb09269f6f1d18 | using System.Threading;
using NUnit.Framework;
using Quartz.Impl;
using Quartz.Impl.Triggers;
using Quartz.Spi;
namespace Quartz.Tests.Integration.ExceptionPolicy
{
[TestFixture]
public class ExceptionHandlingTest : IntegrationTest
{
[SetUp]
public void SetUp()
{
ISchedulerFactory sf = new StdSc... | C# | src/Quartz.Tests.Integration/ExceptionPolicy/ExceptionJobTest.cs | willieni/Quartz | apache-2.0 | 4,912 | 134 | codeparrot/github-code |
c69d5bc218bbd5fe7f1776ddeb5902a6c2650047616ec13e72de5a06170a3443 | #include "HeatingSMPID.h"
#include <algorithm>
float const HeatingSMPID::MAX_GOAL_TEMP = 120;
HeatingSMPID::HeatingSMPID()
{
mCurrentTempInCelsius = 0;
mGoalTempInCelsius = 0;
mState = HIBERNATE;
// limits to setup hysteresis between full and pulse state
mCycleLengthInMilliseconds = 1;
mThyristorOn ... | C++ | src/HeatingSMPID.cpp | WiBean/microcode-v2 | apache-2.0 | 4,754 | 206 | codeparrot/github-code |
8c60ef7da278d2e2bda89991844cfb185497e277574c1f1259868d65ce62c37d | /*
* 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 co.edu.sena.ejemplojpa03netbeans.model.jpa.entities;
import java.io.Serializable;
import javax.persistence.Basic;
import javax... | Java | java/JPA/EjemploJpa03NetBeans/src/main/java/co/edu/sena/ejemplojpa03netbeans/model/jpa/entities/ClientePK.java | SENA-CEET/1349397-Trimestre-4 | apache-2.0 | 2,475 | 81 | codeparrot/github-code |
9fe99f867018db59b70774f30954b0133bcf3ffdab4c462ed79ba92d870aeffd | <header class="mdl-layout__header">
<div class="mdl-layout__header-row">
<!-- Title -->
<span class="mdl-layout-title">{{ site.title }}</span>
<!-- Add spacer, to align navigation to the right -->
<div class="mdl-layout-spacer"></div>
<!-- <div class="mdl-textfield mdl-js-textfiel... | HTML | _includes/header.html | npmachine/nyong | apache-2.0 | 1,971 | 53 | codeparrot/github-code |
07fa4adcaa5f3f35e911475a23cfd6883aca66f54c86fbe347eba25a33c4d8ae | // Copyright © 2014 Rick Beerendonk. All Rights Reserved.
//
// This code is a C# port of the Java version created and maintained by Cognitect, therefore
//
// Copyright © 2014 Cognitect. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in c... | C# | src/Transit/Impl/WriteHandlers/RatioWriteHandler.cs | NForza/transit-csharp | apache-2.0 | 1,269 | 41 | codeparrot/github-code |
843d94680b7d120231dc09e8a5821615ebc0ea888c42f36b9b78ab41df2ccdbd | //
// UserRegisterViewController.h
// AirTouch
//
// Created by Eric Qin on 1/19/15.
// Copyright (c) 2015 Honeywell. All rights reserved.
//
#import "BaseViewController.h"
#import "UICheckBox.h"
#import "IContainerViewControllerDelegate.h"
#define alert_login_timeout_tag 9000
#define alert_register_timeout_tag 90... | C | AirTouch/Framework/App/Controller/UserVC/Register/UserRegisterViewController.h | CanIFuckYou/AirTouch | apache-2.0 | 1,647 | 44 | codeparrot/github-code |
133370aa15b266f1772c8b9558ce5a9647aef9451029085cbe3fa9ed0f5ba577 | /*
* Copyright 2016-present Facebook, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may
* not use this file except in compliance with the License. You may obtain
* a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or... | Java | src/com/facebook/buck/macho/AbstractUUIDCommand.java | LegNeato/buck | apache-2.0 | 1,547 | 44 | codeparrot/github-code |
d327702e7092a4644f2104d47be67df02aa5fc409a13589c15c934f026f65c25 | package com.robin.hadoop.monitor;
/**
* <p>Project: core</p>
*
* <p>Description:</p>
*
* <p>Copyright: Copyright (c) 2013 modified at 2013-12-20</p>
*
* <p>Company: TW_DEV</p>
*
* @author robinjim
* @version 1.0
*/
public class AppMasterAttempt {
private int attemptId;
private String startTime;
private S... | Java | hadooptool/src/main/java/com/robin/hadoop/monitor/AppMasterAttempt.java | robinhood-jim/JavaFrame | apache-2.0 | 1,011 | 51 | codeparrot/github-code |
a05338106e358ab911a441c5988cb7001edd971e05d642697b3d819aa194340c | package mx.emite.sdk.cfdi32.anotaciones;
import static java.lang.annotation.ElementType.ANNOTATION_TYPE;
import static java.lang.annotation.ElementType.CONSTRUCTOR;
import static java.lang.annotation.ElementType.FIELD;
import static java.lang.annotation.ElementType.METHOD;
import static java.lang.annotation.ElementTyp... | Java | ef-sdk-java/src/main/java/mx/emite/sdk/cfdi32/anotaciones/Curp.java | emite-mx/ef-sdk-java | apache-2.0 | 1,298 | 40 | codeparrot/github-code |
7c9f165476f20efac0bfddba3cbaaaa1202e5cd889dbf377e741500913aa3e86 | from django import forms
from .models import Post
from django.contrib.auth import (
authenticate,
get_user_model,
login,
logout,
)
class PostForm(forms.ModelForm): # Post Thread View
class Meta:
model = Post
fields = ['title','image', 'user','country','guide']
widgets = { 'guide' : forms.Textarea(attrs = ... | Python | test/mysite/webapp/forms.py | lemarcudal/sha_thedivision | apache-2.0 | 1,935 | 63 | codeparrot/github-code |
c1675704ee2388d97eef4962b525ca56fe6d3dc592ad82956058acf59850069f | {{ partial "head.html" . }}
{{ partial "nav.html" . }}
<div class="page single">
<article>
<meta itemprop="mainEntityOfPage" itemType="https://schema.org/WebPage" content="{{ .Site.BaseURL }}"/>
<meta itemprop="dateModified" content="{{ .Date.Format "2006-01-02T15:04:05-07:00" }}">
<meta itemprop="headl... | HTML | themes/ponion/layouts/_default/single.html | blackhole12/ponion | apache-2.0 | 4,062 | 75 | codeparrot/github-code |
fc997e817d1de3ec54927112cd8b27b4818d3f3af7ea4f7a9b9d839e5fb31c2e | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may ... | Java | src/core/org/apache/jmeter/gui/LoggerPanel.java | llllewicki/jmeter-diff | apache-2.0 | 4,123 | 113 | codeparrot/github-code |
f855493ee07eb03aa8350b62331b8efd32a1cbee6ebcc791cdf79631f6f1a13e | # Copyright 2020 The Cirq Developers
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in ... | Python | cirq-core/cirq/work/observable_grouping.py | quantumlib/Cirq | apache-2.0 | 3,492 | 79 | codeparrot/github-code |
69e252dd117451650b9d2703c590ee4e04ae51d35fd08dbc40db55c0764e4a8e | /*****************************************************************************************
*
* Copyright 2015 Gregory Brown. 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 Li... | Java | src/main/java/com/gabstudios/validate/StringValidator.java | sysdevone/gab-dev | apache-2.0 | 11,557 | 342 | codeparrot/github-code |
c80322904982e11d57450ca6a5abe41c78ea9a7169fb07d2e3a07c8b045ed584 | package org.museautomation.core.task.state;
import org.museautomation.core.*;
import org.museautomation.core.resource.generic.*;
import org.museautomation.core.resource.types.*;
import java.util.*;
/**
* @author Christopher L Merrill (see LICENSE.txt for license details)
*/
@MuseTypeId("state-transition")
public c... | Java | core/src/main/java/org/museautomation/core/task/state/StateTransitionConfiguration.java | ChrisLMerrill/muse | apache-2.0 | 4,490 | 179 | codeparrot/github-code |
22de4f30b7125fa5746e83ee50d4f9e89a3d831dbc3ee512d9e5a14a1e3c03e8 | <?php
namespace Google\Contrib;
use Google\Service\ServiceResource;
use Google\Service\Service;
use Google\Service\Model;
use Google\Client;
/*
* 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 Licens... | PHP | src/Google/Contrib/PagespeedonlineService.php | ruian/GoogleApiClient | apache-2.0 | 15,009 | 483 | codeparrot/github-code |
ff23fa374779fa0df7d7038d5fde318025c726d785981ad2b27975cabfa62c45 | using System;
using System.IO;
using BUAA.Structure;
namespace BUAA.Misc
{
public class IntelHexLoader
{
#region Log
static void Write(string s)
{
Console.Write(s);
}
static void WriteLine(string s)
{
Write(s + Environment.NewLine);
... | C# | FlasherLib/IntelHexLoader.cs | zycet/STM32CANFlasher | apache-2.0 | 3,645 | 117 | codeparrot/github-code |
1f194ad0ad688a706b9d5dad0cd82c29fa388d8fd8d25ec9125a7619669c18c5 | /*
* Copyright 2014 Kaazing Corporation, All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by ap... | Java | kompound/src/main/java/org/kaazing/nuklei/kompound/cmd/StartCmd.java | jessefugitt/nuklei | apache-2.0 | 1,315 | 47 | codeparrot/github-code |
04a78651113f21fb72cb33eb17b68807ab304e91eb775b593aca2a0f6adfd8ac | /*
* Copyright 2009-2012 Roger Kapsi
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed ... | Java | components/core/src/main/java/org/ardverk/dht/config/PingConfig.java | rkapsi/ardverk-dht | apache-2.0 | 1,335 | 47 | codeparrot/github-code |
367304e04700ecbe7e21a6f0d5e551b5bd5606896584f528115e38bd0df236e4 | //===============================================================================
// Copyright (c) 2015 eWorkplace Apps. ALL rights reserved.
// Main Author: Shrey Sharma
// Original DATE: 5/22/2015
//===============================================================================
package com.eworkplaceapps.employeedir... | Java | employeedirectory/src/main/java/com/eworkplaceapps/employeedirectory/employee/EmployeeGroupMemberData.java | rishabh05/ED | apache-2.0 | 10,484 | 259 | codeparrot/github-code |
58b1512b3db048041dc183709872f95380bb93ad0dad58f2d9dac6043cc3511a | // Copyright 2004-2009 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 ... | C | omaha/base/thread.h | google/omaha | apache-2.0 | 2,704 | 96 | codeparrot/github-code |
755ce291d0ad1afbedb1d44a393395ddfc604f72d9734a9b04088006d2bcc376 | /*
* JBoss, Home of Professional Open Source
* Copyright 2011 Red Hat Inc. and/or its affiliates and other contributors
* as indicated by the @authors tag. All rights reserved.
* See the copyright.txt in the distribution for a
* full listing of individual contributors.
*
* Licensed under the Apache License, Vers... | Java | core/src/main/java/org/jboss/arquillian/persistence/core/container/CommandServiceProducer.java | rmpestano/arquillian-extension-persistence | apache-2.0 | 2,257 | 56 | codeparrot/github-code |
d54c3e6b0aa7b6a8529a3bcd169d41c95acaa050c666b9b1bf43f1dc5c400649 | /*
* Copyright (c) 2011-2015, fortiss GmbH.
* Licensed under the Apache License, Version 2.0.
*
* Use, modification and distribution are subject to the terms specified
* in the accompanying license file LICENSE.txt located at the root directory
* of this software distribution.
*/
package org.fortiss.powerflowsi... | Java | core/powerflow/src/main/java/org/fortiss/powerflowsim/simulation/helper/ExtendedMatrixFunctions.java | SES-fortiss/SmartGridCoSimulation | apache-2.0 | 1,390 | 52 | codeparrot/github-code |
f74a4f99708add1002589c316666f74d7309a106627b628c6210ad730207c035 | #include <iostream>
#include <vector>
#include <math.h>
using namespace std;
vector <char> characters = {'a', 'b', 'c', 'd', 'e',
'f', 'g', 'h', 'i', 'j',
'k', 'l', 'm', 'n', 'o',
'p', 'q', 'r', 's', 't',
'u', 'v', 'w', 'x', 'y',
'z', 'A', 'B', 'C', 'D',
'E', 'F', 'G', 'H'... | C++ | src/encrypt.cpp | markasfour/Encryptor | apache-2.0 | 2,710 | 124 | codeparrot/github-code |
bc2a5377daa781bfbe7ec74a5e8ede68fda0c1149536f538cac99fe76e626e56 | /**
* Copyright 2015 The AMP HTML Authors. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless require... | JavaScript | src/dom.js | tdrl/amphtml | apache-2.0 | 15,553 | 609 | codeparrot/github-code |
317a55b8f502099dd977534791c88ac7f48acf0ee19b1f70b6522724f1215cb3 | /**
* 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 | hedwig-server/src/main/java/org/apache/hedwig/admin/console/HedwigConsole.java | mocc/bookkeeper-lab | apache-2.0 | 36,452 | 1,039 | codeparrot/github-code |
1dd89356bd310001d056bc1339944ace13169dd7a4bdcb17f11cfa89ce1e8887 | /*
* Copyright 2010-2013 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "l... | C# | AWSSDK/Amazon.ElasticBeanstalk/Model/Internal/MarshallTransformations/UpdateEnvironmentResultUnmarshaller.cs | emcvipr/dataservices-sdk-dotnet | apache-2.0 | 6,332 | 147 | codeparrot/github-code |
3415a70d635152cb50dd676af7bd43c373a8460d1d0448c8205bc9326cf72b20 | package at.ac.univie.mminf.luceneSKOS.test;
/**
* Copyright 2010 Bernhard Haslhofer
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0... | Java | src/test/java/at/ac/univie/mminf/luceneSKOS/test/SKOSLabelFilterTest.java | behas/lucene-skos | apache-2.0 | 4,513 | 105 | codeparrot/github-code |
1be5cac494247a5f619530bfa757e2871e2a36a88548a1e53885ec6fd456a426 | /*
* 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-ec2/include/aws/ec2/model/PoolCidrBlock.h | cedral/aws-sdk-cpp | apache-2.0 | 2,693 | 101 | codeparrot/github-code |
49d50d134725c1c608e716d5f44e1572757820758c6f9edb9d54e63fc0197d06 | $(function() {
var vm= new Vue({
el : '#app',
data : {
active : 2,
formData :{
orgName:null,
adminUserName:null,
adminLoginName:null,
adminPhoneNumber:null,
adminPassword:null,
adminRePassword:null,
adminSex:1
},
rules : {
orgName : [ {
required : true,
... | JavaScript | sample-site/src/main/webapp/assets/custom/system/init.js | zengguoyu/sample | apache-2.0 | 2,687 | 113 | codeparrot/github-code |
3af19ea51ee81926483c517cf23f3fca379f69f3266ffbecc9f31b1392b637d1 | /*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distribut... | Java | presto-server/src/main/java/com/facebook/presto/server/HttpRemoteTask.java | sdgdsffdsfff/presto | apache-2.0 | 29,529 | 781 | codeparrot/github-code |
1f934a2e715f72b40b2bf334321d4617cf3572512258dfc97964e0026e1720b6 | /**
* Copyright (C) 2014-2016 LinkedIn Corp. (pinot-core@linkedin.com)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unle... | Java | pinot-tools/src/main/java/com/linkedin/pinot/tools/admin/PinotAdministrator.java | sajavadi/pinot | apache-2.0 | 6,861 | 154 | codeparrot/github-code |
ab89b7c36c634400762968d6bf7b8509af8be5c0cdb71c8253d4d428b1c62ca7 |
/* First created by JCasGen Sat Mar 07 22:05:57 CET 2015 */
package de.julielab.jules.types.bootstrep;
import org.apache.uima.jcas.JCas;
import org.apache.uima.jcas.JCasRegistry;
import org.apache.uima.cas.impl.CASImpl;
import org.apache.uima.cas.impl.FSGenerator;
import org.apache.uima.cas.FeatureStructure;
import o... | Java | modules/bluima_typesystem/src/main/java/de/julielab/jules/types/bootstrep/GeneExpression_Type.java | BlueBrain/bluima | apache-2.0 | 1,999 | 63 | codeparrot/github-code |
fbae9c5454c19bafd6a64c1ee4997471979d9539af4159ba3a64f8fe6a7812e7 | <!DOCTYPE html>
<html class="theme-next mist use-motion" lang="zh-CN">
<head>
<meta charset="UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=2"/>
<meta name="theme-color" content="#222">
<me... | HTML | tags/Apache/index.html | iCocos/iCocos.github.io | apache-2.0 | 42,476 | 1,629 | codeparrot/github-code |
872551e002612a16c3beca66b4c4e5f08432e156ac7307937f70cfc5272d183b | /*!
* # Semantic UI 2.2.12 - Site
* http://github.com/semantic-org/semantic-ui/
*
*
* Released under the MIT license
* http://opensource.org/licenses/MIT
*
*/
;(function ($, window, document, undefined) {
$.site = $.fn.site = function(parameters) {
var
time = new Date().getTime()... | JavaScript | third_party/semantic-ui/src/main/scripts/components/site.js | google/graphicsfuzz | apache-2.0 | 14,605 | 488 | codeparrot/github-code |
67df8ded72f211ddd0c10f8b937e019e077c69e3a2d0119d1d19cdd53eaf2b51 | # 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 (t... | Python | ForgeSVN/forgesvn/model/svn.py | lym/allura-git | apache-2.0 | 31,966 | 830 | codeparrot/github-code |
96f16a4486a66681ae296f48f1b4780ff9814df9c7040fe4c850f1c962bb589a | package io.quarkus.arc.test.configproperties;
import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertTrue;
import java.util.Set;
import javax.inject.Inject;
import javax.inject.Singleton;
import org.eclipse.microprofile.config.inject.ConfigProperty;
import ... | Java | extensions/arc/deployment/src/test/java/io/quarkus/arc/test/configproperties/NestedClassConfigPropertiesTest.java | quarkusio/quarkus | apache-2.0 | 2,265 | 77 | codeparrot/github-code |
40806cf1896a87732b593f5dd34bf6be6f953425e771dfd3b13e6bd942e59b9d | /*
TE4 - T-Engine 4
Copyright (C) 2009 - 2015 Nicolas Casalini
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later v... | C | trunk/t-engine4/src/main.h | yimogod/boom | apache-2.0 | 2,457 | 91 | codeparrot/github-code |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.