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 |
|---|---|---|---|---|---|---|---|---|
ecbd6745a0d1b83cd6fe40da6004b8e1c4abd00bf6712354eef289f2f860fb77 | // 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... | C++ | cpp/src/arrow/util/bpacking.cc | xhochy/arrow | apache-2.0 | 5,578 | 172 | codeparrot/github-code |
586ede8b0e15638a5053a91b7db1631ac147c42bb565473dc7ce92c0da643cde | /**
Copyright 2015 Osiris Project Team
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to ... | Java | app/src/main/java/com/fhc25/percepcion/osiris/mapviewer/model/indoor/Office.java | osiris-indoor/mapviewer-android | apache-2.0 | 1,116 | 41 | codeparrot/github-code |
5f1eeb0af2614c2e98ea8234b7c23f15cb1c69e79e93db276d30ab36cf7a10cb | /*
* Copyright 2015 MovingBlocks
*
* 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 | main/src/org/destinationsol/game/screens/CollisionWarnDrawer.java | askneller/DestinationSol | apache-2.0 | 2,268 | 70 | codeparrot/github-code |
2336efa4bec0f1562406b3e61cc5f6ea0043a9310ac5406ae3b790f342eae07c | /**
* 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 | hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/main/java/org/apache/hadoop/yarn/server/resourcemanager/scheduler/SchedulerUtils.java | zhe-thoughts/hadoop | apache-2.0 | 13,504 | 365 | codeparrot/github-code |
afd64c754e13f591569f6e40f60bc851b81be6705e5580b083341eae01b0be3d | /*
* Copyright 2014 Steve Jones. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this ... | Java | src/main/java/com/github/sjones4/youcan/youtoken/model/transform/GetImpersonationTokenRequestMarshaller.java | sjones4/you-are-sdk | apache-2.0 | 2,138 | 52 | codeparrot/github-code |
41ed55eb6fc7c74f5b8993eefb2e7dcee96a168cdd7ba400963f46d33e541d4c | package me.chanjar.weixin.cp.bean.message;
import com.google.gson.annotations.SerializedName;
import lombok.Data;
import me.chanjar.weixin.cp.util.json.WxCpGsonBuilder;
import java.io.Serializable;
import java.util.List;
/**
* 应用消息发送统计信息.
*
* @author <a href="https://github.com/binarywang">Binary Wang</a>
* @dat... | Java | weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/message/WxCpMessageSendStatistics.java | Wechat-Group/WxJava | apache-2.0 | 1,089 | 49 | codeparrot/github-code |
0192d2519f00251e37c30f4f577068d440a7bd82d091d036e1330e79393b5be3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using AutoMapper;
using LB = LRWarehouse.Business;
using TagValue1 = LRWarehouse.Business.CodesTagValue;
using TagValue = IOERBusinessEntities.Codes_TagValue;
using ILPathways.Common;
using ILPathways.Utilities;
using Isl... | C# | DataAccess/IOERBusinessEntities/EFResourceManager.cs | siuccwd/IOER | apache-2.0 | 43,877 | 1,271 | codeparrot/github-code |
87fa4b1eb36725fb25291b0d0d8cdcef5f80b1c9bc825c6d89d2686b40cfb923 | package com.smartlogic;
import org.apache.jena.ext.com.google.common.base.Preconditions;
import org.apache.jena.ext.com.google.common.base.Strings;
import org.apache.jena.query.Dataset;
import org.apache.jena.rdf.model.Model;
import org.apache.jena.rdf.model.ModelFactory;
import org.apache.jena.riot.RDFDataMgr;
import... | Java | Semaphore-OE-Batch-Tools/src/main/java/com/smartlogic/ModelLoader.java | Smartlogic-Semaphore-Limited/Java-APIs | apache-2.0 | 3,924 | 138 | codeparrot/github-code |
5f2b6781af579a2e48634b039d884cac2358e37a10cca7214100def9a9b5960c | ##############################################################################
# Build global options
# NOTE: Can be overridden externally.
#
# Compiler options here.
ifeq ($(USE_OPT),)
USE_OPT = -O2 -ggdb
endif
# C specific options here (added to USE_OPT).
ifeq ($(USE_COPT),)
USE_COPT =
endif
# C++ specific op... | Makefile | sw/firmware/ChibiOS/demos/various/RT-Win32-Simulator/Makefile | netik/dc26_spqr_badge | apache-2.0 | 4,107 | 167 | codeparrot/github-code |
3a39ed2607a335908bdc8db9b16e3215df9cd9b06233c216707e7d821b0e681b | using System;
using System.Linq;
using Hl7.Fhir.Publication.Framework;
using Hl7.Fhir.Publication.Framework.ExtensionMethods;
namespace Hl7.Fhir.Publication.Specification.Profile.ValueSet.Summary
{
internal static class Validator
{
public static bool IsValid(Model.ValueSet valueset, Log log)
{... | C# | Fhir.Publication/Specification/Profile/ValueSet/Summary/Validator.cs | InteropAdmin/FHIRGEN-DSTU2 | apache-2.0 | 1,472 | 39 | codeparrot/github-code |
b2767da3ffa2078ece74eaa4c3e09ad26550fa2104e778aaf4773f4641951ec3 | /*
* Copyright (c) 2014. William Mora
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... | Java | core/src/com/zephyr/ventum/interfaces/GameEventListener.java | ZephyrVentum/FlappySpinner | apache-2.0 | 1,872 | 81 | codeparrot/github-code |
976e094865317a8f4957ebc7f93b9571688950223e6411018a693a0430e488c0 | from django.contrib.contenttypes.fields import GenericForeignKey
from django.contrib.contenttypes.models import ContentType
from django.db import models
from model_utils import Choices
from model_utils.models import TimeStampedModel
class History(TimeStampedModel):
RESOLUTIONS = Choices('second', 'minute', 'hour... | Python | apps/history/models.py | hello-base/web | apache-2.0 | 1,311 | 38 | codeparrot/github-code |
b9cfe850ce0541b5b8e79c6e0dfd0c8680de0a4616d46aad96d59b2912be99bb | /*
* \copyright Copyright 2013 Google Inc. All Rights Reserved.
* \license @{
*
* 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
*
* ... | C++ | src/googleapis/client/transport/html_scribe.cc | rcari/google-api-cpp-client | apache-2.0 | 19,294 | 569 | codeparrot/github-code |
12b3b6816321e7c6c98f24e4fa17526a344b7ae293254cb600b53848722341ee | #include<ntstatus.h>
#include<cstdio>
#include<cstring>
#include<cwchar>
#include<cerrno>
#include<cassert>
#include<map>
#include<vector>
#include"Logger.h"
#include"../FS/CFilesystem.h"
#include"dokanoper.h"
extern "C" {
#include <dokan/dokan.h>
}
static CFilesystem *fs;
static uint64_t handleid = 1;
bool mou... | C++ | src/fuse/dokanoper.cpp | s-macke/CoverFS | apache-2.0 | 22,324 | 697 | codeparrot/github-code |
0ee7baff28c24894aedf6d04fa091e7035b6adf8eb486b8112a939bbae6beaa7 | import React from 'react';
let lastClicked = 0;
export default class Candidate extends React.Component {
constructor(props) {
super(props);
this.state = { wiggle: false };
this.castVote = this.castVote.bind(this);
this.wiggleDone = this.wiggleDone.bind(this);
}
componentDidMount() {
const ... | JavaScript | src/components/VoteCandidate.js | AdlerPlanetarium/pluto-poll | apache-2.0 | 1,473 | 62 | codeparrot/github-code |
33b351e28b1393c6ad0b73bac8ec3ce116ffd4854df739e93b7b0bf98a9f8467 | /*
* Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH
* under one or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information regarding copyright
* ownership. Camunda licenses this file to you under the Apache License,
* Version 2.0; y... | Java | core/src/test/java/org/camunda/bpm/engine/test/assertions/bpmn/JobAssertHasExceptionMessageTest.java | camunda/camunda-bpm-assert | apache-2.0 | 2,782 | 79 | codeparrot/github-code |
3beeec1e329dd5634c4828af501ef30df246cc5297bb6115d4b7fff92d0c50cd | #!/usr/bin/python
# Copyright 2010 Google Inc.
# Licensed under the Apache License, Version 2.0
# http://www.apache.org/licenses/LICENSE-2.0
# Google's Python Class
# http://code.google.com/edu/languages/google-python-class/
import sys
import re
"""Baby Names exercise
Define the extract_names() function below and c... | Python | babynames/solution/babynames.py | chintak/google-python-ex | apache-2.0 | 3,874 | 135 | codeparrot/github-code |
82415d311876d5dd6994b0b86da4aebca916b33a7aaf5a2fb6ee64c5aa9ce938 | /*
Derby - Class org.apache.derby.iapi.types.XML
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 Apach... | Java | java/engine/org/apache/derby/iapi/types/XML.java | trejkaz/derby | apache-2.0 | 37,739 | 1,049 | codeparrot/github-code |
02cab62b7536ec9b44d5808fd50fcfae5b696a14ad8c6048afc049a1f300a5b1 | package com.lamfire.hydra.sample.gateway;
import com.lamfire.hydra.*;
import com.lamfire.hydra.HydraDestination;
import com.lamfire.utils.StringUtils;
public class GatewayServer {
static void usage(){
System.out.println("com.lamfire.nkit.sample.ConnectionGateway [host] [port] [bind|connect]");
}
p... | Java | src/test/java/com/lamfire/hydra/sample/gateway/GatewayServer.java | lamfire/hydra | apache-2.0 | 1,091 | 46 | codeparrot/github-code |
e9d568179d7e5732b31843b705533f70f93f94febaf4fb97670a54a972e4bb28 | /*******************************************************************************
* Copyright 2007-2013 See AUTHORS file.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http:/... | Java | xworker_core/src/main/java/xworker/lang/actions/thing/ThingIterator.java | x-meta/xworker | apache-2.0 | 3,728 | 142 | codeparrot/github-code |
9227a9fe99d18617079877be494b4858a88274ef3f2ef5fac8826e4d4646444e | # coding=utf-8
# -*- coding: utf-8 -*-
from selenium import webdriver
from selenium.common.exceptions import NoSuchElementException, TimeoutException
from bs4 import BeautifulSoup
from datetime import datetime
from decimal import *
import sys
#phantonPath = "/home/jmartinz/00.py/phantomjs/phantomjs"
phantonPath = "... | Python | 10.contratacionE/pce_extrae_detalle_contrato.py | jmartinz/pyCrawler | apache-2.0 | 7,379 | 168 | codeparrot/github-code |
e3315ddcb3058243f4d567585a800b7701ca04ed79e6ce3d7c19ad24c7e05e49 | package com.me.ui.view.view;
import android.content.Context;
import android.graphics.Canvas;
import android.graphics.drawable.Drawable;
import android.support.v7.widget.RecyclerView;
import android.view.View;
import com.me.ui.R;
/**
* Simple RecyclerView Divider
* Created by tangqi on 9/16/15.
*/
public class Re... | Java | app/src/main/java/com/me/ui/zhihu/view/view/RecyclerViewItemDecoration.java | meclub/MeUI | apache-2.0 | 1,252 | 42 | codeparrot/github-code |
879a08037e30470ca429d2c70639c6ec57c2f62603a69c34185be93fc4ff69be | // Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "content/browser/web_contents/web_drag_source_gtk.h"
#include <string>
#include "base/file_util.h"
#include "base/nix/mime_util_xdg.h"
#inc... | C++ | src/content/browser/web_contents/web_drag_source_gtk.cc | plxaye/chromium | apache-2.0 | 14,872 | 409 | codeparrot/github-code |
4aa8f691d210d11171a071b1ccdbc8f5ad5fb6b0b01c9311a29c483dfcd58f14 | package org.ansj.dic;
import java.util.HashMap;
import java.util.List;
import java.util.Map.Entry;
import org.ansj.app.crf.SplitWord;
import org.ansj.domain.Nature;
import org.ansj.domain.NewWord;
import org.ansj.domain.TermNatures;
import org.ansj.recognition.arrimpl.AsianPersonRecognition;
import org.ansj.recogniti... | Java | deeplearning4j-nlp-parent/deeplearning4j-nlp-chinese/src/main/java/org/ansj/dic/LearnTool.java | shuodata/deeplearning4j | apache-2.0 | 5,157 | 188 | codeparrot/github-code |
98429ef79a7d7eb4981501e634205460f944fc76ab7ee3addf3a96e50bd15442 | package com.reyansh.audio.audioplayer.free.NowPlaying;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentStatePagerAdapter;
import android.view.ViewGroup;
import com.reyansh.audio.audioplayer.free.Common;
public clas... | Java | app/src/main/java/com/reyansh/audio/audioplayer/free/NowPlaying/PlaylistPagerAdapter.java | reyanshmishra/Rey-MusicPlayer | apache-2.0 | 1,769 | 54 | codeparrot/github-code |
1d4876ded714f0b626508f265cf8817260aad15dccb56e129e6cb22de73ce9a1 | /*
* Copyright © 2013-2019 camunda services GmbH and various authors (info@camunda.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... | Java | engine/src/main/java/org/camunda/bpm/engine/impl/RestartProcessInstancesBatchConfigurationJsonConverter.java | xasx/camunda-bpm-platform | apache-2.0 | 3,458 | 66 | codeparrot/github-code |
a6780dcfcf57dd7f7cb09aaa61f4cea853350be883c61b88b49be94a7d0e2466 | {-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE ViewPatterns #-}
{-# OPTIONS_GHC -fno-warn-incomplete-patterns #-}
module FreezePredicateParserSpec where
import Bio.Motions.Types
import Bio.Motions.Representation.Common
import Bio.Motions.Utils.FreezePredicateParser
import GHC.Exts
import Data.Either
import Text.Parsec... | Haskell | test/FreezePredicateParserSpec.hs | Motions/motions | apache-2.0 | 3,060 | 92 | codeparrot/github-code |
519fa41aeba46985b1ea948f5dd75a31fddfad90d8e2cec89a83a8f68d3dfb3a | /*
* Copyright (c) 2005-2014, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
*
* WSO2 Inc. licenses this file to you under the Apache License,
* Version 2.0 (the "License"); you may not use this file except
* in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.ap... | JavaScript | apps/publisher/themes/default/js/lifecycle/lifecycle-core.js | udarakr/carbon-store | apache-2.0 | 33,881 | 804 | codeparrot/github-code |
32aa48f897b7fb9eabb37244542826edc895de8ac0b806e863a431607bd935d7 | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file ... | Java | services-custom/dynamodb-enhanced/src/main/java/software/amazon/awssdk/enhanced/dynamodb/internal/operations/ScanOperation.java | aws/aws-sdk-java-v2 | apache-2.0 | 5,594 | 124 | codeparrot/github-code |
b76dea090a2e76aaa62fe9f6857c9ddce177da71d977cce1373a61c7eeda3b2e | /*
* Copyright 2011-2012 Brian Matthews
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable ... | Java | src/main/java/com/btmatthews/maven/plugins/inmemdb/ldr/AbstractLoader.java | bmatthews68/inmemdb-maven-plugin | apache-2.0 | 6,684 | 177 | codeparrot/github-code |
880e79ffb9678e1d7791d51f540f7dc646b7e9d5d3f03627a0eb6540908e6b2e | /*
* Copyright (c) Meta Platforms, Inc. and 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 appl... | C++ | thrift/lib/cpp2/reflection/demo/struct_basics.cpp | facebook/fbthrift | apache-2.0 | 2,022 | 64 | codeparrot/github-code |
236c2a32f55592abf6c1111f5caad788c250d535d1492f3cb9bc4d0745e6c4ac | package org.bds.lang;
import java.io.File;
import java.io.IOException;
import org.antlr.v4.runtime.tree.ParseTree;
import org.bds.Config;
import org.bds.compile.CompilerMessages;
import org.bds.compile.CompilerMessage.MessageType;
import org.bds.scope.Scope;
/**
* Include statement: Get source from another file
*/... | Java | src/org/bds/lang/StatementInclude.java | leepc12/BigDataScript | apache-2.0 | 3,584 | 104 | codeparrot/github-code |
49dc5b62cc364a59087874bd2d1d5b7267ab9542bc27c00fa51049f35dc248b4 | /**
*
* 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 | flink-streaming-examples/src/main/java/org/apache/flink/streaming/examples/join/JoinTask.java | Frank-Wu/stratosphere-streaming | apache-2.0 | 2,746 | 77 | codeparrot/github-code |
85b6650ddfad3182285b348a625cd284835c5136886f76f5582486f38f1cf86c | package net.katsuster.ememu.arm;
import net.katsuster.ememu.generic.*;
import net.katsuster.ememu.generic.core.*;
import net.katsuster.ememu.generic.bus.*;
/**
* 2nd 割り込みコントローラ
*
* <p>
* 参考: Versatile Application Baseboard for ARM926EJ-S User Guide
* ARM DUI0225D
* </p>
*/
public class SecondaryINTC extends Co... | Java | emu/src/net/katsuster/ememu/arm/SecondaryINTC.java | katsuster/ememu | apache-2.0 | 3,327 | 128 | codeparrot/github-code |
034b2a3867b32c221e365700b6db3115182af06143fee8dfb2f7a961f6653276 | // 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... | Rust | rust/arrow/src/array/array_primitive.rs | xhochy/arrow | apache-2.0 | 34,868 | 987 | codeparrot/github-code |
55ce009c8c38f45eba50409dc1b512aab7fd77722ba587e9f802052c9c654958 | using Lucene.Net.QueryParsers.Flexible.Core.Nodes;
using Lucene.Net.QueryParsers.Flexible.Core.Processors;
using System.Collections.Generic;
namespace Lucene.Net.QueryParsers.Flexible.Standard.Processors
{
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor lice... | C# | Lucene.Net.QueryParser/Flexible/Standard/Processors/MatchAllDocsQueryNodeProcessor.cs | NikolayXHD/Lucene.Net.Contrib | apache-2.0 | 2,299 | 64 | codeparrot/github-code |
37c4ca53b19b880fb52936b0f7007347a856f1deb2a4768984227c857daef820 | #!/usr/bin/env python
#
# Copyright 2007 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 o... | Python | thirdparty/google_appengine/google/storage/speckle/python/api/rdbms.py | adviti/melange | apache-2.0 | 22,582 | 780 | codeparrot/github-code |
8f144f4af1dfce22b8eca0bb2e3ffac8c70a9e1331f41410f662156a7185fea0 | <?php
namespace SocioChat\DAO;
use Core\DAO\DAOBase;
use Core\Utils\DbQueryHelper;
class MailQueueDAO extends DAOBase
{
const EMAIL = 'email';
const TOPIC = 'topic';
const MESSAGE = 'message';
const DATE = 'date_register';
public function __construct()
{
parent::__construct(
[... | PHP | src/SocioChat/DAO/MailQueueDAO.php | kryoz/sociochat | apache-2.0 | 1,447 | 86 | codeparrot/github-code |
01164bc001539e4afaa14ba95944e68ef5736eca40858031c6a0936100f82c70 | package fakes
import "os"
type FileIO struct {
TempFileCall struct {
CallCount int
Receives struct {
Dir string
Prefix string
}
Returns struct {
File *os.File
Error error
}
}
ReadFileCall struct {
CallCount int
Receives struct {
Filename string
}
Returns struct {
Contents ... | GO | fakes/file_io.go | niroyb/bosh-bootloader | apache-2.0 | 1,585 | 74 | codeparrot/github-code |
7d757076bf05ccd644e4fe8fadaf61adc66f5818bc154e0645176a40cbb64d8d | /*
* $Id: $
*
* Copyright 2012 Stoyan Rachev (stoyanr@gmail.com)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
*... | Java | mastermind/test/com/stoyanr/mastermind/MainTest.java | stoyanr/Masterminder | apache-2.0 | 6,138 | 183 | codeparrot/github-code |
6e5c6c99407611e18732ab7cf91f784ad1062a3fb8c1659da0dd4258703bfa58 | // Copyright (c) Microsoft 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
//
// THIS CODE IS PROVIDED ON... | C# | main/external/dev/Server/Storage/UserInfo.cs | cityscapesc/specobs | apache-2.0 | 1,668 | 40 | codeparrot/github-code |
6bc81212e53e61f70b04960494f538a21cbe4a5b6caaccb9d8fcf1a2b1048e6e | <!DOCTYPE>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>世界首都人口统计</title>
<style type="text/css">
body{
margin: 0;
overflow: hidden;
background: #fff;
}
#map{
position: relative;
... | HTML | examples/ctl_worldCapitalsGraphBar.html | SuperMap/iClient-for-JavaScript | apache-2.0 | 6,248 | 176 | codeparrot/github-code |
77831ce48d299ed069d7f9f436ab95cea93f492284f623ab8129f02336986f2d | package org.csveed.api;
import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertNotNull;
import static org.junit.jupiter.api.Assertions.assertThrows;
import static org.junit.jupiter.api.Assertions.assertTrue;
import java.io.IOException;
import java.io.Reader;
... | Java | src/test/java/org/csveed/api/CsvClientTest.java | robert-bor/CSVeed | apache-2.0 | 13,637 | 344 | codeparrot/github-code |
f2bba4d5eaeccff5f2c786e74a8b4907f7066bc908c4e0269e846fd6411dbf91 | /*global QUnit */
sap.ui.define([
"sap/ui/qunit/QUnitUtils",
"sap/ui/qunit/utils/createAndAppendDiv",
"sap/ui/ux3/NavigationBar",
"sap/ui/thirdparty/jquery",
"sap/ui/ux3/NavigationItem"
], function(qutils, createAndAppendDiv, NavigationBar, jQuery, NavigationItem) {
"use strict";
// prepare DOM
createAndAppend... | JavaScript | src/sap.ui.ux3/test/sap/ui/ux3/qunit/NavigationBar.qunit.js | SAP/openui5 | apache-2.0 | 10,944 | 274 | codeparrot/github-code |
14a3db6c583ab8462e508b5cdbc3cee0a07cc63e3505b299a0a17e2dfed03d58 | /*
* Copyright 2017 helloscala.com
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed ... | Java | hs-nosql/src/main/java/helloscala/nosql/cassandra/CassandraHelper.java | helloscala/helloscala | apache-2.0 | 3,191 | 86 | codeparrot/github-code |
699931fa2cccb3cd80cbaff8377c2f792e286eccf3f846c22fb08301976bb171 | /*
* Copyright 2015 Hannes Dorfmann.
*
* 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 | mvp/src/main/java/com/hannesdorfmann/mosby3/mvp/delegate/ActivityMvpDelegateImpl.java | sockeqwe/mosby | apache-2.0 | 7,155 | 239 | codeparrot/github-code |
1376addb5724933204c2cd49e717a18a6f76f10842eac2142eac5f1d6b8857ef | <!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="generator" content="ApiGen 2.8.0" />
<<<<<<< HEAD
<title>Class Native5\Identity\SubjectBuilder</title>
<script type="text/javascript" src="resources/combined.js?1180343265"></script>
<script type="text... | HTML | docs/class-Native5.Identity.SubjectBuilder.html | native5/native5-sdk-client-php | apache-2.0 | 12,254 | 476 | codeparrot/github-code |
056b8b9b5b8cd3d68d4d52365ef577c85c42c41658a40d2d97f23607d7dc1356 | package ru.job4j;
import org.junit.Test;
import static org.hamcrest.core.Is.is;
import static org.junit.Assert.assertThat;
/**
*Class of tests for 'Calculator.java'.
*
*@author mvorp
*@since 16.07.2018
*@version 1
*/
public class CalculatorTest {
/**
* Validation that 1.0 + 1.0 = 2.0 .
*/
@T... | Java | chapter_001/src/test/java/ru/job4j/CalculatorTest.java | marekvorp777/mvorp | apache-2.0 | 1,499 | 64 | codeparrot/github-code |
3de6356ed7566728870104993a8fb3d20261514fc92bc982fb3700f674f8c8f3 | package org.ovirt.engine.ui.uicommonweb.models.vms;
import java.util.ArrayList;
import java.util.List;
import java.util.Objects;
import org.ovirt.engine.core.common.businessentities.Snapshot;
import org.ovirt.engine.ui.uicommonweb.models.EntityModel;
import org.ovirt.engine.ui.uicommonweb.models.ListModel;
import org... | Java | frontend/webadmin/modules/uicommonweb/src/main/java/org/ovirt/engine/ui/uicommonweb/models/vms/SnapshotDetailModel.java | OpenUniversity/ovirt-engine | apache-2.0 | 1,527 | 58 | codeparrot/github-code |
f4fc72cc3ee14b6967a69724be80dca003564305cb2533317d13e871743012ec | package com.google.codeu.chatme.common.view;
import android.app.ProgressDialog;
import android.support.v4.app.Fragment;
import android.widget.Toast;
public class BaseFragment extends Fragment implements BaseFragmentView {
private ProgressDialog mProgressDialog;
@Override
public void showProgressDialog(... | Java | android/app/src/main/java/com/google/codeu/chatme/common/view/BaseFragment.java | ymittal/codeu_project_2017 | apache-2.0 | 1,070 | 40 | codeparrot/github-code |
261d9d235e2bdda226bc28ffbe60d5575ee04709678f9805f3d9d69edde2a312 | // Copyright 2015 Google Inc. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable... | Java | examples/dfp_axis/src/main/java/dfp/axis/v201508/proposallineitemservice/GetProposalLineItemsByStatement.java | gawkermedia/googleads-java-lib | apache-2.0 | 3,753 | 95 | codeparrot/github-code |
0a09d42d82fbcd3987f48642c632ca8af1b51b527818f63b29b133cef94ab3e0 | package org.lumongo.ui.client.widgets.base;
import com.google.gwt.dom.client.Style;
import com.google.gwt.user.client.Window;
import gwt.material.design.client.constants.Color;
import gwt.material.design.client.constants.FooterType;
import gwt.material.design.client.constants.IconType;
import gwt.material.design.clien... | Java | lumongo-ui/src/main/java/org/lumongo/ui/client/widgets/base/Footer.java | lumongo/lumongo | apache-2.0 | 2,071 | 58 | codeparrot/github-code |
8c3271c2aa6ba353d75afcdcc8363fedbd8cbd7775ef320795228c34f263661b | /**
* (c) Copyright 2009-2015 Velocimetrics Ltd
* All Rights Reserved
* Permission is granted to licensees to use
* or alter this software for any purpose, including commercial applications,
* only according to the terms laid out in the Software License Agreement.
* All other use of this source code is expressly ... | Java | src/main/java/example101/booter/ServiceBooter.java | sambathl/example101 | apache-2.0 | 1,909 | 53 | codeparrot/github-code |
bc23f857b3a12dfa58aef5d15f4060faa563d3e61bd57a5cbe30f89226ddad3e | ace.define("ace/ext/menu_tools/overlay_page",[], function(require, exports, module) {
'use strict';
var dom = require("../../lib/dom");
var cssText = "#ace_settingsmenu, #kbshortcutmenu {\
background-color: #F7F7F7;\
color: black;\
box-shadow: -5px 4px 5px rgba(126, 126, 126, 0.55);\
padding: 1em 0.5em 2em 1em;\
overfl... | JavaScript | src/sap.ui.codeeditor/src/sap/ui/codeeditor/js/ace/ext-settings_menu.js | SAP/openui5 | apache-2.0 | 26,258 | 820 | codeparrot/github-code |
e8ebdf6721a5012caf402e01b68c87ead9af336d7ef096526ff3ff6ed96a3af0 | /*
* Copyright 2005 Paul Hinds
*
* 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 | extras/AntInstaller/AntInstaller-beta0.8/src/org/tp23/antinstaller/runtime/TextRunner.java | neoautus/lucidj | apache-2.0 | 4,327 | 144 | codeparrot/github-code |
18727bf8e781b6d5d6fb419ad9415e19d6b89367aa0aec660232c1d43d3a5928 | package MaximumWidthofBinaryTree;
class TreeNode {
int val;
TreeNode left;
TreeNode right;
TreeNode(int x) {
val = x;
}
}
class Solution {
private boolean hasChild(TreeNode node) {
return node != null && (node.left != null || node.right != null);
}
private TreeNode[... | Java | src/MaximumWidthofBinaryTree/Solution.java | likel/leetcode-java | apache-2.0 | 1,626 | 64 | codeparrot/github-code |
c7f7210d5da9c0c52b3045dde3711fa6511bd904c33aa3070081c5e05c9e2fbc | package com.box.sdk;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Iterator;
/**
* A collection that contains a subset of items that are a part of a larger collection. The items within a partial
* collection begin at an offset within the full collection and end at a specified limit. Note... | Java | src/main/java/com/box/sdk/PartialCollection.java | box/box-java-sdk | apache-2.0 | 3,750 | 138 | codeparrot/github-code |
2c98bf72c4638f22d6a532764330507f555ef46a307bf864bf29b828515fd39b | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may ... | Java | dubbo-remoting/dubbo-remoting-netty4/src/main/java/org/apache/dubbo/remoting/transport/netty4/NettyServer.java | aglne/dubbo | apache-2.0 | 6,845 | 179 | codeparrot/github-code |
d6deb7362370048ce2ccfa42b28528374079402f026fe16928f6faa83d696e32 | #pragma once
#include "il2cpp-config.h"
#ifndef _MSC_VER
# include <alloca.h>
#else
# include <malloc.h>
#endif
#include <stdint.h>
#include "mscorlib_System_Object2689449295.h"
// System.Collections.Generic.IList`1<UnityEngine.Canvas>
struct IList_1_t750346367;
#ifdef __clang__
#pragma clang diagnostic push
... | C | Unity_Code/DinoRun_Final/Temp/il2cppOutput/il2cppOutput/mscorlib_System_Collections_ObjectModel_ReadOnlyCol395191458.h | BPenzar/SuperDinoBros. | apache-2.0 | 1,161 | 48 | codeparrot/github-code |
e8dfdbfdeb285fe7642d1b138f58b3c15bb06a4d931a45b52d96c611631b5ab1 | <?php
/**
* MagpieRSS: a simple RSS integration tool
*
* A compiled file for RSS syndication
*
* @author Kellan Elliott-McCrea <kellan@protest.net>
* @version 0.51
* @license GPL
*
* @package External
* @subpackage MagpieRSS
*/
/**
* Deprecated. Use SimplePie (class-simplepie.php) instead.
... | PHP | blog/wp-includes/rss.php | wikander/wikander.net | apache-2.0 | 23,861 | 933 | codeparrot/github-code |
ef983d425b8f306ff2f245fb7bd3828fe8ace3c203909cf5a43c2282ca1e9811 | /*
* Copyright 2005-2017 Dozer Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable ... | Java | core/src/test/java/org/dozer/vo/direction/EntityBase.java | STRiDGE/dozer | apache-2.0 | 1,069 | 42 | codeparrot/github-code |
8f1938a92c5150069b11064dbd34cb2041bbffca5cbe38d73aa49da9c2a6c393 | /*******************************************************************************
* Copyright (c) 2015-2018 Skymind, Inc.
*
* This program and the accompanying materials are made available under the
* terms of the Apache License, Version 2.0 which is available at
* https://www.apache.org/licenses/LICENSE-2.0.
*
*... | C++ | libnd4j/include/ops/declarable/generic/datatypes/bitcast.cpp | deeplearning4j/deeplearning4j | apache-2.0 | 4,503 | 103 | codeparrot/github-code |
ab51ed5e46012161a8124ff24fdef0963e2772699b2972f8c91b95b02c48ecbc | \documentclass[10pt]{article}
% Эта строка — комментарий, она не будет показана в выходном файле
\usepackage{ucs}
\usepackage[a4paper, total={6in, 10in}]{geometry}
\usepackage{listings}
\usepackage[utf8x]{inputenc } % Включаем поддержку UTF8
\title{CIA MTA 2. Lab 7}
\date{28 September 2016}
\author{Ali Abdulmadzhidov}
... | TeX | mta2/mta.tex | mrZizik/lab_reports | apache-2.0 | 16,921 | 402 | codeparrot/github-code |
395f4c24b7bdb4d5d028d670d8d7f98b85647438b44e869147d218f46d26947d | package com.didichuxing.doraemonkit.kit.network.okhttp.interceptor;
import android.text.TextUtils;
import androidx.annotation.NonNull;
import com.didichuxing.doraemonkit.kit.core.DoKitManager;
import com.didichuxing.doraemonkit.kit.network.NetworkManager;
import com.didichuxing.doraemonkit.kit.network.bean.NetworkRe... | Java | Android/dokit/src/main/java/com/didichuxing/doraemonkit/kit/network/okhttp/interceptor/DokitCapInterceptor.java | didi/DoraemonKit | apache-2.0 | 5,610 | 151 | codeparrot/github-code |
3c5df5c5efccf1d47a62098e88b631ef721cdc806ec72947a59df37a47eda236 | package org.wikipedia.json;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.robolectric.ParameterizedRobolectricTestRunner;
import org.robolectric.ParameterizedRobolectricTestRunner.Parameters;
import org.wikiped... | Java | app/src/test/java/org/wikipedia/json/NamespaceTypeAdapterTest.java | SAGROUP2/apps-android-wikipedia | apache-2.0 | 2,615 | 75 | codeparrot/github-code |
8d3037f2f6641890b445b69e522bac67b16f9204c8ff48782d4d9d08568756a2 | // Changes XML to JSON
exports.xml2json = function(xml){
return xmlToJson(xml);
};
function xmlToJson(xml) {
// Create the return object
var obj = {};
if (xml.nodeType == 1) { // element
// do attributes
if (xml.attributes.length > 0) {
obj["@attributes"] = {};
for (var j = 0; j < xml.attributes.lengt... | JavaScript | app/lib/xmlToJson.js | aremox/RadioAdaja | apache-2.0 | 991 | 43 | codeparrot/github-code |
c530455dc6ea16d14f9ec0031e175db16435efb04f5556a9e49e3d79d94760ba | /*
* 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/abst/filter/binary/TestGlobalFixedBinaryFilter.java | pacozaa/BoofCV | apache-2.0 | 1,818 | 59 | codeparrot/github-code |
f505d5c218a8174dc933d87a8580f2c4c867e4b6a5d6693e160292a014b131fe | package stroom.query.common.v2;
import com.google.common.cache.LoadingCache;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
class InMemorySearchResponseCreatorCache implements SearchResponseCreatorCache {
private static final Logger LOGGER = LoggerFactory.getLogger(InMemorySearchResponseCreatorCache.cl... | Java | stroom-query/stroom-query-common/src/main/java/stroom/query/common/v2/InMemorySearchResponseCreatorCache.java | gchq/stroom | apache-2.0 | 1,216 | 45 | codeparrot/github-code |
b5f0701febd24e7506ecca324d160d50bed89434e9070e424dab1d9274b60558 | <html><!-- Created using the cpp_pretty_printer from the dlib C++ library. See http://dlib.net for updates. --><head><title>dlib C++ Library - timeout_abstract.h</title></head><body bgcolor='white'><pre>
<font color='#009900'>// Copyright (C) 2007 Davis E. King (davis@dlib.net)
</font><font color='#009900'>// Licen... | HTML | dlib-18.18/docs/dlib/timeout/timeout_abstract.h.html | Nekel-Seyew/Complex-3D-Vector-Fields | apache-2.0 | 10,561 | 191 | codeparrot/github-code |
a8279d9ef0d8797f2a2874c96dd69f694e1852d08a14bf9a80bdfe97d4f9d729 | /* =============================================================
* bootstrap-collapse.js v2.2.2
* http://twitter.github.com/bootstrap/javascript.html#collapse
* =============================================================
* Copyright 2012 Twitter, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "Lic... | JavaScript | code/war/src/main/webapp/assets/javascripts/bootstrap/bootstrap-collapse.js | michaelcouck/ikube | apache-2.0 | 4,620 | 169 | codeparrot/github-code |
7c8b8b8476f8124b5680ef6887e1a8c23a5bcee9cf92c5763d67b4832a02d1b2 | import {
GET_COMMENTS,
GET_COMMENT,
SUBMIT_VOTE_COMMENT,
DELETE_COMMENT,
EDIT_COMMENT,
ADD_COMMENT,
} from '../actions';
import _ from 'lodash';
function commentsReducer(state = {}, action) {
switch (action.type) {
case GET_COMMENTS:
let comments = _.mapKeys(
_.orderBy(action.payload.da... | JavaScript | src/reducers/Comments.js | rtaibah/readable | apache-2.0 | 989 | 51 | codeparrot/github-code |
cd785f45445279c88a89ed40703b31ecc87ba8ac687824b96462b1dba5d8a6fc | <?php
/**
* Core Zone Cities (core-zone-city)
* @var $this app\components\View
* @var $this ommu\core\controllers\zone\CityController
* @var $model ommu\core\models\CoreZoneCity
* @var $form app\components\widgets\ActiveForm
*
* @author Putra Sudaryanto <putra@ommu.id>
* @contact (+62)856-299-4114
* @copyright... | PHP | views/zone/city/_form.php | ommu/Core | apache-2.0 | 1,836 | 71 | codeparrot/github-code |
20c223e397a98ac27731b04d38741ca387ced086d649951b7c2547f7b6d9ac0f | /**
* @license Copyright 2017 Google Inc. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
* Unless required by applicable law or a... | JavaScript | lighthouse-core/audits/byte-efficiency/uses-optimized-images.js | tkadlec/lighthouse | apache-2.0 | 3,287 | 96 | codeparrot/github-code |
b04a7d1dc0c8cd4133d74721b7d1e2f45e33847ca724792527a2b740de97b193 | package br.net.rafaeltuelho.jb297.unit3.model;
import java.io.Serializable;
import java.lang.Integer;
import java.lang.Long;
import java.lang.String;
import java.sql.Timestamp;
import javax.persistence.*;
/**
* Entity implementation class for Entity: Driver
*
*/
@Entity
@Table(schema="MAPPER")
public class Driver ... | Java | jb297-unit3-lab-3-1/src/main/java/br/net/rafaeltuelho/jb297/unit3/model/Driver.java | rafaeltuelho/redhat-jb297-labs | apache-2.0 | 1,731 | 91 | codeparrot/github-code |
cd6d59471b3d16017fc435a55cf036aac082e5c7d7527f492d050082ec1bb916 | package ems.security
import javax.security.auth.login.{LoginException, LoginContext}
import javax.security.auth.callback._
import scalaz.\/
class JAASAuthenticator[A, B] extends Authenticator[A, B] {
def authenticate(username: String, password: String) = {
val context = new LoginContext("ems", new CallbackHand... | Scala | src/main/scala/ems/security/JAASAuthenticator.scala | javaBin/ems-redux | apache-2.0 | 854 | 31 | codeparrot/github-code |
c673eb42b1d99111352b4837666fdea26c82017e6a5c3a1469b903fd17e7fcf6 | /*
* Copyright 2013-2017 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by ap... | Java | spring-cloud-sleuth-core/src/main/java/org/springframework/cloud/sleuth/instrument/web/TraceHandlerInterceptor.java | marcingrzejszczak/spring-cloud-sleuth | apache-2.0 | 7,421 | 207 | codeparrot/github-code |
e9b13d33dfb286162b80fe887fe505a1a198c582115c11aae97d82c003aa6fa5 | /*
Part of BridgeData.
Copyright (C) 2016-17 by Soren Hein.
See LICENSE and README.
*/
#include <string>
#include <iomanip>
#include <sstream>
#include "DuplStat.h"
#include "Group.h"
#include "RefLines.h"
#include "parse.h"
#include "Bexcept.h"
DuplStat::DuplStat()
{
DuplStat::reset();
}
DuplStat::... | C++ | src/DuplStat.cpp | data-bridge/build | apache-2.0 | 7,727 | 397 | codeparrot/github-code |
b0901d5c5cdae21adc3e2d6e2cfcc60534bd65cbfac641d21320e0eafa7180c8 | package cn.liuyb.app.portal.service.impl;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import cn.liuyb.app.portal.dao.RoleUrlDao;
import cn.liuyb.app.porta... | Java | model_springmvc/src/main/java/cn/liuyb/app/portal/service/impl/RoleUrlServiceImpl.java | liuyb4016/model_project | apache-2.0 | 2,512 | 96 | codeparrot/github-code |
c7c693d50f084bb63d3af7552da2d15b3c2661247039c792b9ae4eddc891461b | srcdir = /home/kirill/apps/xprof_log/extension
builddir = /home/kirill/apps/xprof_log/extension
top_srcdir = /home/kirill/apps/xprof_log/extension
top_builddir = /home/kirill/apps/xprof_log/extension
EGREP = /bin/grep -E
SED = /bin/sed
CONFIGURE_COMMAND = './configure'
CONFIGURE_OPTIONS =
SHLIB_SUFFIX_NAME = so
SHLIB_D... | Makefile | extension/Makefile | angrybender/xprof_log | apache-2.0 | 7,442 | 172 | codeparrot/github-code |
ff234e720404fb4cd2a2de3d17516da215cd8bbb6a9da429b157c97fe514adb3 | class OutMessagesController < ApplicationController
# GET /out_messages
# GET /out_messages.xml
def index
joins = nil
conditions = nil
params[:sort] = 'sent_at_reverse' if params[:sort].blank?
@messages = OutMessage.search(params[:search], params[:page], joins, conditions, pa... | Ruby | app/controllers/out_messages_controller.rb | vadimj/nimbul | apache-2.0 | 2,513 | 93 | codeparrot/github-code |
f1af7e0725380711dde0ac4155a79d06605d80dfb8ca9f3cbd7d917f3c4abd76 | /*
* Copyright 2015 Red Hat, Inc. and/or its affiliates
* and other contributors as indicated by the @author tags.
*
* 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.ap... | Java | hawkular-wildfly-agent/src/main/java/org/hawkular/agent/monitor/scheduler/SchedulerConfiguration.java | sekigor/hawkular-agent | apache-2.0 | 4,044 | 114 | codeparrot/github-code |
d628dc0539e4e231f027e13eea6b14f186176389b04f54d1e05492764cfa5eaf | package com.android.phone.assistant.util;
import java.io.File;
import java.util.ArrayList;
import java.util.List;
import com.android.file.util.FileSystem;
import com.android.phone.assistant.R;
import android.content.Context;
import android.content.SharedPreferences;
import android.graphics.Bitmap;
public class Them... | Java | business-service/business-common-widget/src/main/java/com/android/phone/assistant/util/ThemeManager.java | wanlihuan/phone-touch | apache-2.0 | 3,504 | 103 | codeparrot/github-code |
53a3c67a7ba40bd882c831917ab054bdd9b417fb02413467cb42b224198c5866 | package org.researchstack.skin.ui;
import android.annotation.TargetApi;
import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.os.Build;
import org.researchstack.backbone.StorageAccess;
import org.researchstack.backbone.result.StepResult;
import org.researchstack.ba... | Java | skin/src/main/java/org/researchstack/skin/ui/SignUpTaskActivity.java | ResearchStack/ResearchStack | apache-2.0 | 4,990 | 139 | codeparrot/github-code |
9a4fcbbcf09aef2b323c7582c4eaf7049187b3cd5db53ceca4b3b0c86a27c850 | package com.suscipio_solutions.consecro_mud.Locales;
import java.util.List;
import com.suscipio_solutions.consecro_mud.Common.interfaces.CMMsg;
import com.suscipio_solutions.consecro_mud.Common.interfaces.PlayerStats;
import com.suscipio_solutions.consecro_mud.Items.interfaces.RawMaterial;
import com.suscipio_solution... | Java | com/suscipio_solutions/consecro_mud/Locales/ShallowWater.java | ConsecroMUD/ConsecroMUD | apache-2.0 | 2,901 | 79 | codeparrot/github-code |
24cb3a95d6aca38d376d632ae20ce359573e971895c8d8aa0b5a886c3a4b9023 | /*
* Copyright 2015-2016 Red Hat, Inc, and individual 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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless require... | Java | core/src/main/java/org/jboss/hal/core/runtime/server/ServerActions.java | hpehl/hal.next | apache-2.0 | 41,887 | 840 | codeparrot/github-code |
5132c377ce973cd62e6f3c01ca25a6d6500f790d2269c4e54ddd0435df460372 | /*
* Copyright [2017] Doug Turnbull, Wikimedia 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 a... | Java | src/main/java/com/o19s/es/ltr/ranker/ranklib/RanklibModelParser.java | o19s/elasticsearch-learning-to-rank | apache-2.0 | 1,644 | 47 | codeparrot/github-code |
32076422d6bd31578964621359209a6042d8c683a5f8a6733ebe625f0f678f67 | ------------------------------------------------------------------------------
-- Copyright 2012 Microsoft Corporation.
--
-- This is free software; you can redistribute it and/or modify it under the
-- terms of the Apache License, Version 2.0. A copy of the License can be
-- found in the file "license.txt" at the root... | Haskell | src/Kind/Constructors.hs | lpeterse/koka | apache-2.0 | 4,461 | 116 | codeparrot/github-code |
8befce21af92d2d9315102b5d176ec01d2be73f41aa430c4e2fee867d3f95316 | package lab.s2jh.biz.core.hib;
import java.io.Serializable;
import org.hibernate.dialect.Dialect;
import org.hibernate.type.AbstractSingleColumnStandardBasicType;
import org.hibernate.type.DiscriminatorType;
import org.hibernate.type.PrimitiveType;
import org.hibernate.type.StringType;
import org.hibernate.type.descr... | Java | showcase/src/main/java/lab/s2jh/biz/core/hib/Boolean1T2FUserType.java | smilesman/s2jh | apache-2.0 | 1,324 | 42 | codeparrot/github-code |
b48af6234d3bc02066b4540e4a072a7e0e99cd8200a48159033b53a6495e40aa | #!/usr/bin/env python
# Licensed to Cloudera, Inc. under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. Cloudera, Inc. licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you ma... | Python | desktop/core/src/desktop/lib/thrift_/http_client.py | kawamon/hue | apache-2.0 | 2,588 | 95 | codeparrot/github-code |
f18b532c8275e73f1fac4cdda8cf5d36765df1d45e4e5d0355ea246f12d0a9ba | //
// ICounter.cpp
//
// Library: IoT/Devices
// Package: Generated
// Module: ICounter
//
// This file has been generated.
// Warning: All changes to this will be lost when the file is re-generated.
//
// Copyright (c) 2014-2020, Applied Informatics Software Engineering GmbH.
// All rights reserved.
//
// SPDX-Licen... | C++ | devices/Devices/src/ICounter.cpp | macchina-io/macchina.io | apache-2.0 | 953 | 60 | codeparrot/github-code |
c6eb4508a5f5d24386923ce8b02e8f676d56676ede1f0c7423340fb698254417 | /*
* Copyright 1999-2004 The Apache Software 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... | Java | test-sources/org/apache/batik/dom/SetAttributeTest.java | Uni-Sol/batik | apache-2.0 | 3,303 | 103 | codeparrot/github-code |
9ee64adfd3cefa0709f552c4fa92148529532dbd0fbe2a32f507ebac6a93a56d | package com.socialapp.services.internal.callback.custom;
import com.socialapp.services.IResultProcessor;
import com.socialapp.services.internal.callback.AjaxStatus;
import com.socialapp.services.internal.callback.custom.sharedstate.LoginState;
import com.socialapp.services.internal.util.UrlConstants;
import com.social... | Java | com.socialapp.services/src/com/socialapp/services/internal/callback/custom/GetLoggedInZipAndNameCallback.java | rytina/socialapp-services | apache-2.0 | 1,599 | 56 | codeparrot/github-code |
ade5c6b39c43f690067b6378fb6fd8f7b91647b48c930d5a9b2567216b025f23 | /*
* Copyright (c) 2021 Nordic Semiconductor ASA
*
* SPDX-License-Identifier: Apache-2.0
*/
#include <ipc/ipc_service.h>
#include <ipc/ipc_service_backend.h>
#include <logging/log.h>
#include <zephyr.h>
#include <device.h>
LOG_MODULE_REGISTER(ipc_service, CONFIG_IPC_SERVICE_LOG_LEVEL);
const static struct ipc_s... | C | subsys/ipc/ipc_service/ipc_service.c | galak/zephyr | apache-2.0 | 1,232 | 59 | codeparrot/github-code |
31acef4af1d3f7582d4b58e0a1e83b6acdf198d6644077e94fdbb615aa209bd4 | package com.sparseware.bellavista.external.fhir;
import com.appnativa.rare.exception.ApplicationException;
import com.appnativa.rare.scripting.Functions;
import com.appnativa.util.CharArray;
import com.appnativa.util.json.JSONArray;
import com.appnativa.util.json.JSONObject;
import com.appnativa.util.json.JSONTokener;... | Java | shared/com/sparseware/bellavista/external/fhir/aFHIRemoteService.java | sparseware/ccp-bellavista | apache-2.0 | 19,010 | 727 | codeparrot/github-code |
3f76bf1939d21e27432a3f5231979d3fab6b83fa230f38cd3b1bfe34b9766f5b | package org.gradle.test.performance.mediummonolithicjavaproject.p413;
import org.junit.Test;
import static org.junit.Assert.*;
public class Test8265 {
Production8265 objectUnderTest = new Production8265();
@Test
public void testProperty0() {
String value = "value";
objectUnderTest.... | Java | my-app/src/test/java/org/gradle/test/performance/mediummonolithicjavaproject/p413/Test8265.java | oehme/analysing-gradle-performance | apache-2.0 | 2,111 | 79 | codeparrot/github-code |
fd07c21487fb1e87f680c6e65edcae50b8bde5262ebad4bca7110735176b97f8 | var dataCacheName = 'Jblog-v1';
var cacheName = 'Jblog-1';
var filesToCache = [
'/',
'/index.html'
];
self.addEventListener('install', function(e) {
console.log('[ServiceWorker] Install');
e.waitUntil(
caches.open(cacheName).then(function(cache) {
console.log('[ServiceWorker] Cachin... | JavaScript | jblog/src/main/webapp/sw.js | cfaddict/jhipster-course | apache-2.0 | 1,152 | 41 | codeparrot/github-code |
f49507dcfd00262e9c5fc21eb05a8feb266c063026dbba4ac55c478d91773acb | /***************************************************************************
* Copyright 2021 Kieker Project (https://kieker-monitoring.net)
*
* 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 ... | Java | kieker-common/src/kieker/common/configuration/ReadOnlyConfiguration.java | kieker-monitoring/kieker | apache-2.0 | 3,492 | 97 | codeparrot/github-code |
c29a785051c4a0995e5d3bca0fa1e6f9de36256a7058131c2a67ca75bdf239a2 | /**
* Created with JetBrains WebStorm.
* User: k-nkgwj
* Date: 13/01/21
* Time: 3:29
* To change this template use File | Settings | File Templates.
*/
var OutputBox = (function () {
function OutputBox(selector) {
this.jqueryObject = $(selector);
this.enabled = true;
}
OutputBox.prot... | JavaScript | js/outputbox.js | nkgwj/hub_test | apache-2.0 | 879 | 38 | codeparrot/github-code |
4a9ada3222b8016ba9455474a26e0283e3247e14b57f91fbe79f6e024866ba86 | /**
* A Categorize Implementation
* Nana C++ Library(http://www.nanapro.org)
* Copyright(C) 2003-2017 Jinhao(cnjinhao@hotmail.com)
*
* Distributed under the Boost Software License, Version 1.0.
* (See accompanying file LICENSE_1_0.txt or copy at
* http://www.boost.org/LICENSE_1_0.txt)
*
* @file: nana/gui/wi... | C++ | Brandisher/include/nana/gui/widgets/categorize.hpp | LiveAsynchronousVisualizedArchitecture/lava | apache-2.0 | 7,157 | 264 | codeparrot/github-code |
fee2e019269665c70052b1417d48f4c47b8caa367456e57cf8a1064effa1b9b1 | /*
* Copyright 2012-2013 inBloom, 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 appli... | Java | POC/aggregation/mapreduce/src/test/java/org/slc/sli/aggregation/mapreduce/reduce/HighestTest.java | inbloom/secure-data-service | apache-2.0 | 4,484 | 113 | codeparrot/github-code |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.