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
69ced40b9cfb353b3173bd3dbdf5cffd9ac8b72c5a1722dfc30249287ede2ae1
#pragma once # define GNS_ARCH_BITS ( sizeof(void*) * 8 ) //#define GNS_TEXT(S) { { GNS_C_ARRAY_LENGTH(S) - 1 }, S } #ifdef __cplusplus # define GNS_SYMBOL_C(SYMBOL) :: gns ## SYMBOL # define GNS_SYMBOL_CXX(SYMBOL) :: gns :: SYMBOL # define GNS_SYMBOL(SYMBOL) GNS_SYMBOL_CXX(SYMBOL) #else # define GNS_SYMBOL_C(SYMBO...
C
include/gns/common/defines.h
jdavidls/genesis
apache-2.0
6,810
210
codeparrot/github-code
ab61247eef45edc6ed9f9281bd8fa212f7ba1318e699f5e80437dd367da2fe85
/** veneer.js custom html tag definition { tagName: 'veneer-menu', version: '1.0.0', tags: 'native ui', purpose: 'A drop-down menu, based on but not needing Bootstrap', attribs: { info: ' should the alert be styled to be informational? ', warning: ' should the menu button be styled to be a warning? (...
JavaScript
lib/files/veneer-menu.js
rndme/veneer
apache-2.0
2,995
75
codeparrot/github-code
b51a24f1825f632d5effc4b8fe5e5b7a122a09dc500d7f26d70a1b85c66a6ccc
using System; using System.Collections.Generic; using System.Text; using com.calitha.goldparser; namespace Epi.Core.EnterInterpreter.Rules { public class Rule_CheckCodeBlock : EnterRule { EnterRule CheckCodeBlock = null; public Rule_CheckCodeBlock(Rule_Context pContext, NonterminalToken pToke...
C#
Cloud Enter/Epi.Web.CheckCodeEngine/Rules/Rule_CheckCodeBlock.cs
Epi-Info/Epi-Info-Cloud-Contact-Tracing
apache-2.0
2,174
60
codeparrot/github-code
73ffe3c814842346da206babf131950331aa004568863e961db979c6d6065cc5
var args = require('system').args; var page = require('webpage').create(); var env = require('system').env; var googleEmail = args[1] || env.GOOGLE_EMAIL; var googlePassword = args[2] || env.GOOGLE_PASSWORD; var landingUrl = "http://stackoverflow.com/"; var loginUrl = "https://stackoverflow.com/users/login"; var goog...
JavaScript
stackfanatic.js
zinzem/stackfanatic
apache-2.0
2,447
83
codeparrot/github-code
91fc2e4c7b8f33ee460ec5e3b8d25ceeb48a4a6159fd2e8e6089c91efe7c03f5
/* * Copyright (C) 2012-2015 DataStax 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 app...
Java
driver-core/src/test/java/com/datastax/driver/core/TestUtils.java
mike-tr-adamson/java-driver
apache-2.0
22,437
555
codeparrot/github-code
82c720e03883984a8ccda434f010dc317e011d9bdbcf98107485907a307d31a5
/* * Copyright (c) Facebook, Inc. and its affiliates. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applic...
Java
src/com/facebook/buck/features/apple/project/XCodeBuckModule.java
JoelMarcey/buck
apache-2.0
1,165
34
codeparrot/github-code
22d644e42558e3eac07cf1c9da2b5f72aaf45a8dfc9a744e38d436d56455cc08
package tr.com.srdc.cda2fhir; /* * #%L * CDA to FHIR Transformer Library * %% * Copyright (C) 2016 SRDC Yazilim Arastirma ve Gelistirme ve Danismanlik Tic. A.S. * %% * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may ob...
Java
src/test/java/tr/com/srdc/cda2fhir/CCDTransformerTest.java
srdc/cda2fhir
apache-2.0
5,515
130
codeparrot/github-code
556150ebc3a1bd472bfc1c7a37e82b52d92b6b694b37b29663ae131132dd233f
import {Type, TypeParameterType} from '../types/index'; import {Reflection, ReflectionKind, TypeContainer} from './abstract'; import {DeclarationReflection} from './declaration'; export class TypeParameterReflection extends Reflection implements TypeContainer { parent: DeclarationReflection; type: Type; ...
TypeScript
src/lib/models/reflections/type-parameter.ts
dominic31/typedoc
apache-2.0
816
31
codeparrot/github-code
a2721914c086c64d9c5b8d54c65b2c94053b128352a64ac57fc4824fb71575eb
/* * 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
server/base/src/main/java/org/apache/accumulo/server/ServerContext.java
mjwall/accumulo
apache-2.0
16,945
452
codeparrot/github-code
dcc2b0156095c80bb6cf8716db2c5a314664925ceb9bc6b031b07382de0055d4
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package entidades; import java.io.Serializable; import java.math.BigDecimal; import java.util.Date; import javax.persistence.Basic; import javax.persistence.Column; import javax.persistence.Entity; import ja...
Java
src/entidades/Chequeslog.java
AlexandrebQueiroz/acal
apache-2.0
4,947
194
codeparrot/github-code
01ab28f12635cfdda517c0351291cf5835e1e749ec9722a6cd2664b6029199be
/******************************************************************************* * 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. * *...
Java
deeplearning4j/deeplearning4j-core/src/test/java/org/deeplearning4j/nn/layers/recurrent/TestLastTimeStepLayer.java
RobAltena/deeplearning4j
apache-2.0
6,046
140
codeparrot/github-code
c65d7cbb224aa274b47cfa4312739e2b416bb8b39a67921d8e3600c526d75a87
// Copyright 2018 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in w...
C#
src/Util/Examples/ExampleBase.cs
googleads/google-ads-dotnet
apache-2.0
2,771
71
codeparrot/github-code
0b818c99487bc80cedda4442ea8c10ff6a73271e519bcd37717ef068f471622a
'use strict'; 'use console'; const _ = require('lodash'); const reply = require('../lib/reply')(); const configChecks = require('../lib/config'); const cli = require('./lib/cli'); exports.command = 'register <job_file>'; exports.desc = 'Register a job file on a cluster'; exports.builder = (yargs) => { cli().args(...
JavaScript
packages/teraslice-cli/cmds/tjm/register.js
jsnoble/teraslice
apache-2.0
1,362
43
codeparrot/github-code
a94cb59343c74b8613c73dcc31af8aa5ab4c8601c7262b83073003c64ad519fd
/* * Copyright (c) 1999-2000, Image Power, Inc. and the University of * British Columbia. * Copyright (c) 2001-2003 Michael David Adams. * All rights reserved. */ /* __START_OF_JASPER_LICENSE__ * * JasPer License Version 2.0 * * Copyright (c) 1999-2000 Image Power, Inc. * Copyright (c) 1999-2000 The Univ...
C
DCM Framework/jasper/jpc/jpc_bs.c
LMDenys91/Anno
apache-2.0
12,954
438
codeparrot/github-code
f1ab34b60dd9998b0845e26017625a54cf086977566dc855121eb4239e39e621
class AddDeviseColumnsToUser < ActiveRecord::Migration def change change_table(:users) do |t| ## Database authenticatable t.change :email, :string, :null => false, :default => "" t.string :encrypted_password, null: false, default: "" ## Recoverable t.string :reset_password_t...
Ruby
db/migrate/20151210110738_add_devise_columns_to_user.rb
Eptikar-IT-Solutions/openngo
apache-2.0
1,314
42
codeparrot/github-code
8178ff441977e9cdac5f31acd76a9ed5263e6203b1f88c68d357b698443c8c5f
// @flow import { FieldTextAreaStateless } from '@atlaskit/field-text-area'; import StarIcon from '@atlaskit/icon/glyph/star'; import StarFilledIcon from '@atlaskit/icon/glyph/star-filled'; import React, { Component } from 'react'; import type { Dispatch } from 'redux'; import { createFeedbackOpenEvent, sendA...
JavaScript
react/features/feedback/components/FeedbackDialog.web.js
gpolitis/jitsi-meet
apache-2.0
12,302
413
codeparrot/github-code
81573c02ee10ca55449f7a7a24981f7f46a3567c005c530c0bb5f430fbc6f11e
var fetch = require('isomorphic-fetch'), actionNames = require('./names'), messageActions = require('./message'), status = require('../utils/request').status; /** * Builds PLAY action. * * This is an action creator. * * @param {String} station ID of the station that should be played. * @returns Redux...
JavaScript
client_side/actions/radio.js
JustBlackBird/bluethroat
apache-2.0
2,090
85
codeparrot/github-code
913e4de6afb86b4d322fa5d1d1222c958c5dab836653136c05c04ec048edd093
/* * 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-python/src/main/java/org/apache/flink/table/runtime/operators/python/utils/StreamRecordCRowWrappingCollector.java
greghogan/flink
apache-2.0
1,823
58
codeparrot/github-code
e7002034f9226e3e78ff23f2425cdcdf49f6d69a862355a2b6e0fd16d225a563
package deepDriver.dl.aml.lstm.distribution.test; import java.io.File; import deepDriver.dl.aml.distribution.DistributionEnvCfg; import deepDriver.dl.aml.distribution.P2PServer; import deepDriver.dl.aml.lstm.distribution.Seq2SeqMasterV5; public class TestSeq2SeqMaster4Srv48 { public static void main(String[] arg...
Java
src/deepDriver/dl/aml/lstm/distribution/test/TestSeq2SeqMaster4Srv48.java
LongJunCai/DeepDriver
apache-2.0
933
35
codeparrot/github-code
b7defda375e8585100a7ee3129359ab7a60045c04d20fe00086ed4e47beaafbc
package io.quarkus.websockets; import java.util.Collections; import java.util.List; import java.util.Map; import javax.websocket.ClientEndpointConfig; import javax.websocket.Decoder; import javax.websocket.Encoder; import javax.websocket.Extension; import io.vertx.core.http.HttpHeaders; public class BearerTokenClie...
Java
extensions/websockets/client/runtime/src/main/java/io/quarkus/websockets/BearerTokenClientEndpointConfigurator.java
quarkusio/quarkus
apache-2.0
1,411
57
codeparrot/github-code
d1410e34b9e377d018bd15fbcce9af50fdfdac02d8e12e09ddb58153efa7a528
/* Copyright 2020 The Knative Authors Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, soft...
GO
test/upgrade/postupgrade.go
knative/operator
apache-2.0
6,957
184
codeparrot/github-code
af820d9ded443609c7a024d0d29b96092aeed1b4e88ee514fe67f336009eaf26
/* * * 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"); y...
Java
bookkeeper-server/src/main/java/org/apache/bookkeeper/client/PendingReadOp.java
sijie/bookkeeper
apache-2.0
24,546
647
codeparrot/github-code
92ec1a09b2e52dffb2111e76b49541c9350f6ea17bc15f649f213cb0f1550a6c
/* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed und...
Java
open-inhealthcare-core/src/main/java/uk/co/inhealthcare/open/smsc/messages/GetNHSNumberResponse.java
Inhealthcare/open-inhealthcare
apache-2.0
4,367
135
codeparrot/github-code
886ed0886849ac884f5705ec50dbfa877b94c6d98c63ca07f7a170492c2f1b8b
/* Copyright 2010-2013 SourceGear, LLC Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, softwar...
C
src/veracity/src/libraries/wc/wc5queue/sg_wc_tx__queue__resolve_issue.c
glycerine/vj
apache-2.0
3,083
105
codeparrot/github-code
20b7eab18d87cd96ada242386712abbc59031c4458dd7853964e6744cdb396b3
//////////////////////////////////////////////////////////////////////////////// /// DISCLAIMER /// /// Copyright 2014-2016 ArangoDB GmbH, Cologne, Germany /// Copyright 2004-2014 triAGENS GmbH, Cologne, Germany /// /// Licensed under the Apache License, Version 2.0 (the "License"); /// you may not use this file except...
C++
arangod/Aql/CollectOptions.cpp
fceller/arangodb
apache-2.0
3,132
99
codeparrot/github-code
d85f7dc0e8b5140e372cead13c33e90c6b0e1b353ccf579efc4c298a0fdf80f4
package ru.job4j.chess.game; /** * Класс описывает ячейку поля. * @author a8 * @version 1.0 * @since 01.2017 */ public class Cell { /** * Координаты ячейки поля. */ private int x, y; /** * Конструктор класса, принимающий и инициализирующий координаты ячейки. * @param x - номер кол...
Java
chapter_002/chess/src/main/java/ru.job4j/chess/game/Cell.java
solon4ak/vlialyk
apache-2.0
1,637
78
codeparrot/github-code
cff6314ab6856e316b30cdbfeb0bd754b54b9a4962bee4a187348b2543da14d1
local NO_TYPE = -1 local DIRTGRASS_TYPE = 0 local ROOF_TYPE = 1 local ROAD_TYPE = 2 local PAVEMENT_TYPE = 3 local renderMat = Material( "stormfox/tool/sf_screen_mat" ) local tool = {} tool.name = "sf_tool.maptexture" tool.help = {"sf_tool.maptexture.helpm1","sf_tool.maptexture.helpm2"} local mat_r = Material("vgui...
Lua
lua/weapons/sf_tool/tools/ground-material.lua
Nak2/StormFox
apache-2.0
6,583
213
codeparrot/github-code
a981c881e439eca83504eb659762ebe0dcc9e38dfe376ca6809cc103822d026a
<?php namespace frontend\controllers; use Yii; use frontend\controllers\BaseController; use common\tools\htmls; class SiteController extends BaseController { public function actionTest() { $phpWord = new \PhpOffice\PhpWord\PhpWord(); $file = __DIR__ . "/1.docx"; $word = \PhpOffi...
PHP
frontend/controllers/SiteController.php
whnet/cms-baseonyii2.0
apache-2.0
1,772
73
codeparrot/github-code
a9027d91eefe8ef93d7180930e33f225eceadece6677b1375628be64b36f7920
""" dqm offline setup: Sets up CMSSW and the latest code to preduce OfflineDQM plots Usage: dqm offline setup """ import logging import os import string import hepshell from hepshell.interpreter import time_function from l1t_cli.setup import WORKSPACE, INTEGRATION_TAG LOG = logging.ge...
Python
l1t_cli/commands/dqm/offline/setup/__init__.py
kreczko/l1t_cli
apache-2.0
2,339
76
codeparrot/github-code
bb1ba4d2af48eebacf5fe1aa8631be8afeff611ddcedd999f11f1a3fbb65e9c6
// Copyright 2016-2018 Authors of Cilium // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or ag...
GO
daemon/state.go
eloycoto/cilium
apache-2.0
9,569
311
codeparrot/github-code
f6a7940428931031264118330959d05780570ec174df9e7da4712df4b655fa24
package com.basho.riak.stub import java.net.InetSocketAddress import java.nio.ByteBuffer import java.nio.channels.{AsynchronousCloseException, AsynchronousServerSocketChannel, AsynchronousSocketChannel, CompletionHandler} import com.basho.riak.client.core.util.HostAndPort import com.basho.riak.stub.RiakNodeStub._ imp...
Scala
test-utils/src/main/scala/com/basho/riak/stub/RiakNodeStub.scala
basho/spark-riak-connector
apache-2.0
2,553
66
codeparrot/github-code
4bccb8f677474b754cc97de9be7eedaca1a11cfd2e406222b204e0dcbb64b8cc
/* * Copyright 2016 iychoi. * * 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
src/libra/preprocess/stage1/KmerFilterBuilderMapper.java
iychoi/libra
apache-2.0
4,031
105
codeparrot/github-code
cee6e715f5344c7a48354baea6365e9c5c345eac2e640cd4353664a91a890523
/* * Copyright (c) 2019, 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.apache.org...
Java
components/jwt-generator/src/main/java/org/wso2/performance/apim/microgw/jwt/JWTGenerator.java
chrishantha/performance-apim
apache-2.0
7,812
185
codeparrot/github-code
af0cc3f74d563defb14450df61cabba28c918e9223cae1ff663916f456e6c19b
/* * JBoss, Home of Professional Open Source * Copyright 2012, Red Hat Middleware LLC, and individual contributors * by the @authors tag. See the copyright.txt in the distribution for a * full listing of individual contributors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not us...
Java
impl-maven/src/main/java/org/jboss/shrinkwrap/resolver/impl/maven/PomEquippedResolveStageBaseImpl.java
oliveti/resolver
apache-2.0
4,084
89
codeparrot/github-code
e49141008fe12fb2610d2f82ec97d5cccafdafed38581c84ef7a49b10115814b
from wtforms import BooleanField, PasswordField, SelectField, StringField from wtforms.fields.html5 import EmailField, URLField from wtforms.validators import InputRequired from CTFd.forms import BaseForm from CTFd.forms.fields import SubmitField from CTFd.models import TeamFieldEntries, TeamFields from CTFd.utils.cou...
Python
CTFd/forms/teams.py
LosFuzzys/CTFd
apache-2.0
7,277
232
codeparrot/github-code
436f9ba2e90b0a23793176ee81ca8bc7451ffdbea2f42a5fbe68461fd2ad5d76
package edu.uchicago.cs.encsel.dataset.feature import org.junit.Assert._ import org.junit.Test /** * Created by harper on 4/27/17. */ class FilterTest { @Test def testFirstNFilter: Unit = { val input = (0 to 1000).map(_.toString).toIterator val filtered = Filter.firstNFilter(50)(input).toArray as...
Scala
src/test/scala/edu/uchicago/cs/encsel/dataset/feature/FilterTest.scala
harperjiang/enc-selector
apache-2.0
1,621
61
codeparrot/github-code
e2bc7c07b1cefecd7452f82ceacd1995b5f0072dcbcfcfa53af3bbd6085d0886
/** * Defines a point or vector in 3D space. * * @author Taras Mychaskiw * @version 1.0 * @since 2013-12-10 **/ #pragma once #include <array> #include <string> #define VECTOR_DISTANCE_EQUALS 0.0 class Vector { public: Vector(void); Vector(double, double, double); Vector(double*); Vector(Vector*); ...
C
Billiards/Billiards/Vector.h
twentylemon/gl-billiards
apache-2.0
1,721
70
codeparrot/github-code
41dae2b1628e10ef2da939ca94a43297a6fa4b90c92e79e8a20126b564e7c67b
/*! * @copyright 2004-2013 Apache License, Version 2.0 FULLSAIL * @filename zce_shm_hash_table.h * @author Sailzeng <sailerzeng@gmail.com> * @version * @date 2005年10月26日 * @brief 在共享内存中使用的hashtable * 为了简化偷懒,我们设计的Hashtable,可以存放相同的key,只要你调用 * insert_equal 这类函数就可以了,而不是STL那样,用另外一个...
C
src/commlib/zcelib/zce_shm_hash_table.h
sailzeng/zcelib
apache-2.0
23,410
899
codeparrot/github-code
9f832cc3c6330ca2303c4d9bdcd602dd25e4e9f8e057cac2f12a2983decc4bf1
package com.phodev.piclayer.core; import android.annotation.SuppressLint; import android.content.Context; import android.graphics.Bitmap; import android.graphics.Canvas; import android.graphics.Color; import android.graphics.Matrix; import android.graphics.Paint; import android.graphics.PointF; import android.graphics...
Java
src/com/phodev/piclayer/core/PictureLayer.java
shenkaige/PicLayer
apache-2.0
13,878
546
codeparrot/github-code
0065c23714e1f853f4d6b1ebfca8230452df56ed788727794d64031d7e5daeb1
package com.mobvoi.appstore.service.impl; import com.mobvoi.appstore.mapper.sys.SysMenuDao; import com.mobvoi.appstore.model.sys.SysMenuEntity; import com.mobvoi.appstore.service.SysMenuService; import com.mobvoi.appstore.service.SysRoleMenuService; import com.mobvoi.appstore.service.SysUserService; import com.mobvoi....
Java
src/main/java/com/mobvoi/appstore/service/impl/SysMenuServiceImpl.java
zpzkit/appstore-cms
apache-2.0
2,949
119
codeparrot/github-code
60e5c772cbbd599a54f848fc49037c133931039e97a87b65436621241b57f5d1
// Copyright (C) 2015 The Android Open Source Project // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable ...
Java
java/com/google/gerrit/server/git/ChangeSet.java
gerrit-review/gerrit
apache-2.0
4,135
124
codeparrot/github-code
4a4cf8bd5dacd8f6c8e5ba2e755859baeff2237a911f84426be07cb5540a0488
require 'logger' require 'json' require 'thread' require 'thread/pool' require 'citysdk/client' require 'faraday' require 'metoffice_datapoint' require 'trollop' MET_OFFICE_RESOLUTIONS = ['3hourly', 'daily'] THREAD_POOL_SIZE = 16 def main opts = parse_options logger = Logger.new(STDOUT) datapoint_key = opt...
Ruby
main.rb
foxdog-studios/citysdk-importer-met-office-datapoint
apache-2.0
4,852
183
codeparrot/github-code
f49d0bfaa00553fee375c7408c1486f9ced83d8a95dfc5f73214ebd62d5e175c
/** * Copyright 2005-2011 The Kuali Foundation * * Licensed under the Educational Community 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.opensource.org/licenses/ecl2.php * * Unless required by a...
Java
it/krad/src/test/java/org/kuali/rice/test/DataLoaderAnnotationTest.java
ua-eas/ua-rice-2.1.9
apache-2.0
1,812
52
codeparrot/github-code
ebd0a21876ed4ac40e8116296f1ad41654a027670d6b6662996067c090839e03
#!/bin/sh set -e set -u INSERT_FILES="$@" GRR_VER="2.9.2.0" CLIENT_BASE="grr-client_${GRR_VER}" OUTPUT_ROOT="/usr/share/grr/executables" LINUX_DIR="linux/templates" WINDOWS_DIR="windows/templates" DARWIN_DIR="darwin/templates" backup() { file="$1" origfile="${file}.orig" if [ ! -e "$origfile" ]; then ...
Shell
scripts/template_insert.sh
simsong/grr-insider
apache-2.0
2,280
99
codeparrot/github-code
426b7204068df17ec0e8249316634bfea91698ec39673763104c1765c2d75d00
/* Copyright 2020 The Knative Authors Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, soft...
GO
pkg/reconciler/broker/trigger/controller.go
knative/eventing
apache-2.0
4,423
110
codeparrot/github-code
26e0efc39241f97e65e4b39187b0c76daf88efaaf235d5702c18e02f71b1249f
package brainslug.flow.execution.token; import brainslug.AbstractExecutionTest; import brainslug.flow.builder.FlowBuilder; import brainslug.flow.definition.FlowDefinition; import brainslug.flow.context.*; import brainslug.flow.context.BrainslugExecutionContext; import brainslug.flow.execution.node.ChoiceNodeExecutor; ...
Java
execution/src/test/java/brainslug/flow/execution/token/ChoiceNodeExecutorTest.java
adrobisch/brainslug
apache-2.0
5,460
149
codeparrot/github-code
051780682e96ccd6d8d0f8bd3eea852d3da774c47dd4f70b2128f617e6ce6a71
/******************************************************************************* * 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. * *...
Java
nd4j/nd4j-parameter-server-parent/nd4j-parameter-server-node/src/main/java/org/nd4j/parameterserver/distributed/messages/Frame.java
deeplearning4j/deeplearning4j
apache-2.0
7,414
244
codeparrot/github-code
e94a7c9a2dc8547c8766064663abc5a47d70761d43a59aaf30bea8861e70c318
package thereisnospon.acclient.modules.login; import android.app.Activity; import android.app.Dialog; import android.content.DialogInterface; import android.content.Intent; import android.databinding.DataBindingUtil; import android.graphics.Bitmap; import android.os.Bundle; import android.support.annotation.NonNull; i...
Java
app/src/main/java/thereisnospon/acclient/modules/login/RegisterActivity.java
Thereisnospon/AcClient
apache-2.0
6,244
197
codeparrot/github-code
1c1c4d075ee832c71ed1ecac0105c3366aacd887a86e563004657c726491152a
package com.jongsoft.harvester.entity.harvested; import com.jongsoft.harvester.entity.Entity; import com.jongsoft.harvester.entity.WeightedRelation; import java.util.HashSet; import java.util.Set; import java.util.function.Supplier; import java.util.stream.Collectors; class WeightedSetUtils { protected static <E...
Java
repository/src/main/java/com/jongsoft/harvester/entity/harvested/WeightedSetUtils.java
gjong/web-harvester
apache-2.0
1,504
38
codeparrot/github-code
28cfd5ab42cdb2c701a5de3d0ddfa7e4d17c6da0d9afe7255351434462466602
package central import central.Bindings._ import kofre.decompose.UIJDLattice import loci.communicator.tcp.TCP import loci.registry.Registry import scala.io.StdIn.readLine class Checkpointer(listenPort: Int) { val registry = new Registry var checkpoint: Int = 0 var checkpointToDelta: Map[Int, SetState] = Map(...
Scala
Code/Examples/ConsoleReplication/src/main/scala/central/Checkpointer.scala
guidosalva/REScala
apache-2.0
1,647
58
codeparrot/github-code
230f92cdb4e2a4a9f957c198af53b811bbdb130268beaffa0eb76ce0da7081a0
/* * Copyright 1&1 Internet AG, https://github.com/1and1/ * * 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
src/main/java/net/oneandone/sushi/metadata/Cardinality.java
mlhartme/metadata
apache-2.0
1,748
58
codeparrot/github-code
78ea8beffef9c773be0ddbe705cc49c16834ecce86c8c94464076b4cb7914de5
/* * Copyright 2017 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to ...
Java
java/src/com/google/template/soy/bididirectives/BidiDirectivesRuntime.java
Medium/closure-templates
apache-2.0
9,049
215
codeparrot/github-code
3ed7e767a0722e5f7100e623fc0acec3183e3ab8885179671c1dc05f72e94085
# Copyright 2011 OpenStack LLC. # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required b...
Python
heat/openstack/common/notifier/api.py
Triv90/Heat
apache-2.0
5,770
184
codeparrot/github-code
3e93820f3478624d1a983ea16e8f0988882b154583370118307d61c5f59a26ec
import { FilterOrGroup, OrderBy, DataViewRequest } from "./core"; import { isFilterGroup } from "./functions"; export function filterToString(filter: FilterOrGroup, format?: (v: any) => string): string | null { if (filter == null) return null; if (isFilterGroup(filter)) return filter.filters.m...
TypeScript
DataView.Js/src/format.ts
zVolodymyr/LinqExtentions
apache-2.0
1,404
46
codeparrot/github-code
af740c045f4d3e86878d867a061debeda13d2e9094bbefef981fe41387ab27d3
/* * Copyright 2016 Lightcopy * * 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...
Scala
src/main/scala/org/apache/spark/sql/execution/datasources/parquet/metadata.scala
lightcopy/parquet-index
apache-2.0
2,792
82
codeparrot/github-code
f379882feecbb7dc257c7d35cc33fd0a28c0f12500ef0388794f47b670f2e305
/* * Copyright (C) 2015 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by app...
Java
app/src/main/java/com/example/android/sunshine/app/ForecastFragment.java
jdesesquelles/Sunshine_wearable_watchface
apache-2.0
20,410
472
codeparrot/github-code
c861da6f42e8bffcd30debb262b88b0d12acd3000b32ec7bbffa4e7517c03c6d
<?php namespace onebone\pointapi\command; use pocketmine\event\TranslationContainer; use pocketmine\command\Command; use pocketmine\command\CommandSender; use pocketmine\utils\TextFormat; use pocketmine\Player; use onebone\pointapi\PointAPI; class MyPointCommand extends Command{ private $plugin; public function ...
PHP
src/onebone/command/MyPointCommand.php
blackzerobp/PointAPI-Plus
apache-2.0
1,013
40
codeparrot/github-code
a6cbfc526c30bda4846cec379312610ce3df70019b675464de76d022a336de32
#include "Framework.hpp" #include "defines.hpp" #include "coding/internal/file_data.hpp" #include "coding/reader_streambuf.hpp" #include "coding/url_encode.hpp" #include "platform/platform.hpp" #include "platform/http_request.hpp" #include "platform/servers_list.hpp" #include "base/file_name_utils.hpp" #include "ba...
C++
android/jni/com/mapswithme/maps/DownloadResourcesLegacyActivity.cpp
VladiMihaylenko/omim
apache-2.0
6,676
223
codeparrot/github-code
71b301f19552b03d4bdbd9ae58a81b11fc6bc0632af53e20371ae88db0ec86b2
// Copyright 2017 The Dawn 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 t...
C
src/dawn_native/opengl/SwapChainGL.h
googlearchive/nxt-standalone
apache-2.0
1,183
39
codeparrot/github-code
fb60fd300241ff36cd0ff30f8e6e6a0d5bb13cce94ddfa267c9de601ddcd7a94
#!/usr/bin/env python ############################################################################ # # 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 A...
Python
bin/queryserver.py
RCheungIT/phoenix
apache-2.0
7,659
206
codeparrot/github-code
edf5be26d84c990a9fd957d6895fb69355c9fc5f61b432b12e227ee3a8e690d6
package com.github.vangj.jbayes.inf.exact.graph.pptc; import static org.junit.Assert.assertEquals; import com.github.vangj.jbayes.inf.exact.graph.Node; import org.junit.Test; public class EvidenceTest extends HuangExample { @Test public void testVirtual() { Node node = getNode("a"); Evidence evidence =...
Java
src/test/java/com/github/vangj/jbayes/inf/exact/graph/pptc/EvidenceTest.java
vangj/jbayes
apache-2.0
3,491
120
codeparrot/github-code
ed1469cb77a29f9c9e8458155a288b16ba392aec29e179e2ddf791e25c4c1475
<?php include_once($_SERVER['DOCUMENT_ROOT'].'/include/autoprepend.php'); // dedicated generation for the online payment procedure class e_transactions_APIv6 { // constructor function e_transactions_APIv6 () {} // map webshop module DB fields getters with dedicated form field names function getMapping () { ...
PHP
webshop/generator/e_transactions_APIv6.php
CouleurCitron/cms-inc-2014
apache-2.0
11,159
303
codeparrot/github-code
e2b58a33e8f75686d72bfbf6a74525e69e87015a6b9831d2786f74031a8795be
using System; using System.Windows.Media.Imaging; using Talifun.Commander.UI; namespace Talifun.Commander.Command.Configuration { public class ProjectConfiguration : ISettingConfiguration { private ProjectConfiguration() { } public static readonly ProjectConfiguration Instance...
C#
src/Talifun.Commander.Command/Configuration/ProjectConfiguration.cs
taliesins/talifun-commander
apache-2.0
1,199
51
codeparrot/github-code
65f53fd6201b91d35a65e91d6ba51b4b38f0714316a25452856164affa2e19ce
package io.gank.weixiao.business_covers; import android.content.Intent; import android.os.Bundle; import android.support.annotation.NonNull; import io.gank.weixiao.component_core.contract.CoversContract; import io.gank.weixiao.component_core.GankConfig; import static com.google.common.base.Preconditions.checkNotNull...
Java
app/src/main/java/io/gank/weixiao/business_covers/CoverImagePresenter.java
WxSmile/SmileDaily
apache-2.0
1,091
44
codeparrot/github-code
44d1d46208f28589dad4fb9bc58ab0ce6d881b85d79492802eae203887a91f5b
#include<vector> #include<iostream> using namespace std; class IntStack{ public: vector<int> stack; int top; int SIZE=16; int minsize =1<<(SIZE-1); IntStack(){ IntStack(SIZE); } IntStack(int SIZE){ stack.reserve(SIZE); clear(); } int getTop() { return top; } int setTop(int top) { return this->top = top;...
C++
Assignment6/IntStack.cpp
Ramagonibharath/Coffee
apache-2.0
1,714
112
codeparrot/github-code
e34b6a11d40d2765578234b166a596fd4ed842153dc96d2ca4213e14424ac89a
package thesis.plugin.inspection; import com.intellij.codeInsight.generation.GenerateConstructorHandler; import com.intellij.codeInspection.*; import com.intellij.openapi.project.Project; import com.intellij.psi.*; import org.jetbrains.annotations.Nls; import org.jetbrains.annotations.NotNull; import java.util.Arrays...
Java
src/thesis/plugin/inspection/UtilityClassesInspection.java
mariaig/intellij-code-analysis-plugin
apache-2.0
6,331
181
codeparrot/github-code
185638cf8c4ce2afe0128e648bf08f210117116da1977c126f1de08381800ef5
package org.wikipedia.descriptions; import android.content.Context; import android.net.Uri; import android.support.annotation.NonNull; import android.support.annotation.StringRes; import android.text.SpannableString; import android.text.Spanned; import android.text.TextUtils; import android.text.method.LinkMovementMet...
Java
app/src/main/java/org/wikipedia/descriptions/DescriptionEditRevertHelpView.java
SAGROUP2/apps-android-wikipedia
apache-2.0
2,904
65
codeparrot/github-code
68d11a3cb3f8cbbdfa079c612f26c0d1edd8ee278d6f77bd59f812d12a27d064
// Copyright 2016 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 applica...
C#
NtObjectManager/Provider/NtKeyEntry.cs
googleprojectzero/sandbox-attacksurface-analysis-tools
apache-2.0
4,688
143
codeparrot/github-code
39dc5c1fa566fca811bb4fc175dcfd3ca45e845b8ca50452c372702475d2f8d5
// // ======================================================================== // Copyright (c) 1995-2014 Mort Bay Consulting Pty. Ltd. // ------------------------------------------------------------------------ // All rights reserved. This program and the accompanying materials // are made available under the ter...
Java
jetty-util/src/main/java/org/eclipse/jetty/util/IO.java
sdw2330976/Research-jetty-9.2.5
apache-2.0
13,976
500
codeparrot/github-code
15849a8cffeb596cf73a5b5fd1b4f2febca0097153a1c33504d525f0118f9f96
<%# Copyright 2013-2017 the original author or authors from the JHipster project. This file is part of the JHipster project, see https://jhipster.github.io/ for more information. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You ...
HTML
generators/client/templates/angular/src/main/webapp/app/admin/user-management/_user-management.component.html
stevehouel/generator-jhipster
apache-2.0
6,535
108
codeparrot/github-code
14fadf99faa214f6f095b098442d3542722f1740538fc4a8d301465b78ee4456
/* * Copyright (c) 2015-2016, Mostafa Ali (engabdomostafa@gmail.com) * All rights reserved. * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are * met: Redistributions of source code must retain the above copyright * no...
Java
src/main/java/ca/mali/dialogs/chapter4/RequestFederationSaveServiceController.java
EMostafaAli/HlaListener
apache-2.0
6,011
137
codeparrot/github-code
6e5514d02757fe5abd77c92d91a2d22cd7799bf15e10a00fedc2fc0b338e353e
/* * Copyright (c) 2013 Juniper Networks, Inc. All rights reserved. */ #ifndef vnsw_agent_db_hpp #define vnsw_agent_db_hpp #include "agent_cmn.h" #include "db/db_table_partition.h" #include "db/db_table_walker.h" #include "ifmap/ifmap_table.h" class AgentDBTable; class AgentDBEntry; class IFMapNode; class Sandesh;...
C
src/vnsw/agent/cmn/agent_db.h
sysbot/contrail-controller
apache-2.0
5,932
169
codeparrot/github-code
638f63e3080cf50da395997ae88ed287570480ff2dfceea8c09a98ac0c92c1c4
/* * Copyright 2017-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "licen...
Java
aws-java-sdk-workmail/src/main/java/com/amazonaws/services/workmail/model/transform/CreateUserResultJsonUnmarshaller.java
aws/aws-sdk-java
apache-2.0
2,758
75
codeparrot/github-code
089c2deac4e8e756f5cb072e7fe8f8aca1e5e371d4ecdd3a8d6ea4cd4e03922e
package deepDriver.dl.aml.lstm.distribution.test; import java.util.List; import deepDriver.dl.aml.distribution.DistributionEnvCfg; import deepDriver.dl.aml.distribution.Fs; import deepDriver.dl.aml.lstm.ICxtConsumer; import deepDriver.dl.aml.lstm.LSTMConfigurator; import deepDriver.dl.aml.lstm.LSTMDataSet; import de...
Java
src/deepDriver/dl/aml/lstm/distribution/test/TestSerializedS2S.java
LongJunCai/DeepDriver
apache-2.0
4,470
109
codeparrot/github-code
b3773d9fa09bece8c7db242a0fe4058aff7ba426651602055e1ecdfb9484dc75
/* * Copyright 2018 Amazon.com, Inc. or its affiliates. * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applica...
Java
clouddriver-lambda/src/main/java/com/netflix/spinnaker/clouddriver/lambda/deploy/ops/CreateLambdaAtomicOperation.java
duftler/clouddriver
apache-2.0
7,901
188
codeparrot/github-code
0f8e0283c051865ce008d913d054d15f39466bf57e52f897dc43ba7e153c83e0
import Dexie from 'dexie'; import {module, stop, start, test, asyncTest, equal, ok} from 'QUnit'; import {resetDatabase, supports, spawnedTest, promisedTest} from './dexie-unittest-utils'; const async = Dexie.async; var db = new Dexie("TestDBWhereClause"); db.version(1).stores({ folders: "++id,&path", files:...
JavaScript
test/tests-whereclause.js
dfahlander/Dexie.js
apache-2.0
37,584
864
codeparrot/github-code
a014424e119311ce9c48b75d050367c05b739bd1829e77eee644fc462e8e113b
<?php // $Id$ require_once(DIR_INC.'modules/tangra_cms/classes/vpage/tcms_vpage_dbc.class.php'); require_once(DIR_INC.'modules/tangra_cms/classes/sitemap/tcms_sitemap_entry_dbc.class.php'); class TCMS_Sitemap_Generator extends Tangra_Class { const SITEMAP_FILE = 'sitemap.xml'; public static function generate(DB...
PHP
hidden/inc/modules/tangra_cms/classes/sitemap/tcms_sitemap_generator.class.php
ogrebgr/forge-server-skeleton-php
apache-2.0
2,169
91
codeparrot/github-code
8f45b33754a8b7d85bed8c1464a0ca6f85b2254babe4a0e566a604da33cfd36f
// Copyright 2008 and onwards Google, Inc. // // #status: RECOMMENDED // #category: operations on strings // #summary: Functions for joining strings and numbers using a delimiter. // #ifndef STRINGS_JOIN_H_ #define STRINGS_JOIN_H_ #include <stdio.h> #include <string.h> #include <ext/hash_map> using __gnu_cxx::hash; us...
C
supersonic/utils/strings/join.h
ruccsbingo/parallel_supersonic
apache-2.0
13,442
348
codeparrot/github-code
1836ebd7359dec5a8e3f3312c673eefec3ad415e22a24eeb0704c00e4099911d
//! Configuration module, read and write config file. use APP_INFO; use error::*; use json::JsonValue; use std::fs::File; use std::io::{Read, Write}; use std::path::{Path, PathBuf}; use vars::VarsHandler; /// Configuration structure to read and write config. #[derive(Clone, Debug)] pub struct Config { /// Path to...
Rust
lib/src/config.rs
notkild/hupa
apache-2.0
3,692
120
codeparrot/github-code
ee237a9749cb2ebc0d60991a434d8d2d9d78bd41179464491c2cd869a4b9d5ab
package io.github.xiaolei.transaction.adapter; import android.content.Context; import android.util.Log; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.view.animation.Animation; import android.view.animation.RotateAnimation; import android.widget.ListAdapter;...
Java
app/src/main/java/io/github/xiaolei/transaction/adapter/GenericEndlessAdapter.java
xiaolei/transaction
apache-2.0
3,612
112
codeparrot/github-code
c57e9685993eab6c6a947958cb222c330f3d5e86cf4e6ab87131b98b5a16b905
import { Component, OnInit } from '@angular/core'; import { JhiLanguageService } from 'ng-jhipster'; import { GatewayRoutesService } from './gateway-routes.service'; import { GatewayRoute } from './gateway-route.model'; @Component({ selector: 'jhi-gateway', templateUrl: './gateway.component.html', provide...
TypeScript
gateway/src/main/webapp/app/admin/gateway/gateway.component.ts
tientq/jhipster-microservices
apache-2.0
961
36
codeparrot/github-code
0c50c2f19798b339b36f498707115bd2b7b6d048c5e437f3a5ec127b01a213fc
package com.ubirch.transformer.services import java.text.NumberFormat import java.util.Locale import com.typesafe.scalalogging.StrictLogging import com.ubirch.avatar.config.Const import com.ubirch.avatar.model.db.device.Device import com.ubirch.avatar.model.rest.device.{DeviceDataRaw, DeviceHistory, DeviceType} impor...
Scala
core/src/main/scala/com/ubirch/transformer/services/TransformerService.scala
ubirch/ubirch-avatar-service
apache-2.0
7,175
203
codeparrot/github-code
e91f89671c61470766d6df8a1c1dddcbc67b28f3b5e1b852e3dfb594621f60fb
// Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using System; using System.Collections.Immutable; using System.Diagnostics; using System.Threading; using Microsoft.CodeAnalysis.PooledObjects; using Roslyn....
C#
src/Compilers/CSharp/Portable/Symbols/SubstitutedMethodSymbol.cs
xasx/roslyn
apache-2.0
16,108
453
codeparrot/github-code
93140ebe90090e9f25b1dfda1a0852b5fb0592ccdd5c87b8473ea7d3c93b64f4
package com.bst.utils.io; import com.bst.data.*; import com.opencsv.CSVReader; import org.apache.log4j.Logger; import java.io.*; import java.util.ArrayList; import java.util.List; import java.util.function.Function; import java.util.stream.Collectors; import static com.bst.utils.Utils.*; public class FilesIoRead { ...
Java
src/main/java/com/bst/utils/io/FilesIoRead.java
fierascu/etl_v1
apache-2.0
19,168
551
codeparrot/github-code
7a80c1ff7f1fe137ec9851ceca6d67281678bcebbc117ee29c55fa148518160e
{% load static from staticfiles %} <div class="blog-main"> <div class="blog-post"> <h2 class="blog-post-title"><a href="{{ post_dto.url }}">{{ post_dto.title }}</a></h2> <p class="blog-post-meta"> {{ post_dto.publication_date }} by {% for author in post_dto.auth...
HTML
templates/blog/include/content.html
am1tyadava/amityadav_blog
apache-2.0
1,121
31
codeparrot/github-code
51b485db38dd09b505e0dee765f62b1ea273360e1b363eadd7d573771f18bf20
/** * <b>Command ESC * t # R</b> * Raster graphics can be printed at various resolutions. This command * designates the resolution of subsequent raster data transfers in * dots-per inch. * * <b>Default</b> = 75 * <b>Range</b> = 75, 100, 150, 200, 300, 600 * * # = 75 - 75 dots-per-inch * 100 -...
Java
src/java/org/getopt/pcl5/PCL5Interpreter/cmd/CmdRasterGraphicsResolution.java
sigram/pcl-parser
apache-2.0
1,633
56
codeparrot/github-code
afacec9a62031887ce991efe336eb9b3fe77906bbfe97e61e59dccb13c4bc86c
package com.sequenceiq.freeipa.api.v1.ldap.model.test; import javax.validation.constraints.Max; import javax.validation.constraints.Min; import javax.validation.constraints.NotNull; import com.sequenceiq.freeipa.api.v1.ldap.doc.LdapConfigModelDescription; import io.swagger.annotations.ApiModel; import io.swagger.ann...
Java
freeipa-api/src/main/java/com/sequenceiq/freeipa/api/v1/ldap/model/test/MinimalLdapConfigRequest.java
hortonworks/cloudbreak
apache-2.0
1,805
76
codeparrot/github-code
0ea4a69c700b85ad3c266f1bdff6662623b4b0d924b4d91e6da7365484b19dbd
/* * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distribut...
Java
presto-main/src/main/java/com/facebook/presto/operator/index/IndexSnapshotBuilder.java
haozhun/presto
apache-2.0
7,290
178
codeparrot/github-code
cbcda2217393519c05f53f5b356e197574a2bdf9c9e2333bb18dd7e9891ad46e
import { bootstrap } from 'angular2/platform/browser'; import { Component } from 'angular2/core'; import {ArticleComponent, Article} from './articleapp' @Component({ selector: 'reddit', directives: [ArticleComponent], template: ` <form class="ui large form segment"> <h3 class="ui header">Add a Link</h3> <div c...
TypeScript
angular2-beta-dome/sample-reddit/app/redditapp.ts
holdlg/eric
apache-2.0
1,547
53
codeparrot/github-code
6e5775d9f6213e8f19b40ca730ac8af655f325c091c1a8935a1abb5cf500f4c5
public class gouzao20150530 { /** * @param args */ public static void main(String[] args) { demogouzao g =new demogouzao(5); g.print(); } } abstract class gouzao { { System.out.println("¸¸¹¹Ôì¿é"); } static { System.out.println("¸¸¾²Ì¬¿é"); } public gouzao() { System.out.println("second"+"...
Java
src/gouzao20150530.java
ahusexl/lianxilianxilianxilianxi
apache-2.0
720
50
codeparrot/github-code
fad0a5db7ed5328afc3e7bb7cf50d031e47156e44a9ea1cb467e52db9e358897
/* * Copyright © 2016 Cask Data, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy of * the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed t...
Java
hydrator-common/src/main/java/co/cask/hydrator/common/spark/SparkUtils.java
ananya-bhattacharya/hydrator-plugins
apache-2.0
14,234
292
codeparrot/github-code
61d258450c9698162f2948b969b5766d5b2e49d7c32d13048e2b5b1a1d7e2525
package zebra.adapters; import android.view.View; import android.view.ViewGroup; import android.widget.BaseAdapter; import java.util.ArrayList; import java.util.List; import zebra.beans.SearchItem; import zebra.views.SearchItemView; /** * Created by multimedia on 2016-05-29. */ public class CategorySearchAdapter ...
Java
sample/src/main/java/zebra/adapters/CategorySearchAdapter.java
yeongseo412/capsone-android2
apache-2.0
1,153
54
codeparrot/github-code
698e2090ee025043db8a4fc170b9af10734b23bdc3a8d69cd3d64c36ec733bd0
/* * Copyright 2017-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "licen...
Java
aws-java-sdk-appflow/src/main/java/com/amazonaws/services/appflow/model/ListConnectorsRequest.java
aws/aws-sdk-java
apache-2.0
6,010
185
codeparrot/github-code
31885fe6829fee7aaec1f7b150fe954fe83d24b7b3c5ba76de681769600ddf71
package com.code.flashcardenglishviet.view; import android.os.Bundle; import android.support.v7.app.ActionBar; import android.support.v7.app.AppCompatActivity; import android.support.v7.widget.Toolbar; import android.view.Menu; import com.code.flashcardenglishviet.R; import com.code.flashcardenglishviet.control.Contr...
Java
FlashCardEnglishViet/app/src/main/java/com/code/flashcardenglishviet/view/ViewHelp.java
tritueviet/FlashCardEnglishViet
apache-2.0
1,995
62
codeparrot/github-code
0a33b966ae34d3e502d8a23a07b9e4a61a2737ee770e9292aba8269f8be68e29
/* * 3D City Database - The Open Source CityGML Database * https://www.3dcitydb.org/ * * Copyright 2013 - 2021 * Chair of Geoinformatics * Technical University of Munich, Germany * https://www.lrg.tum.de/gis/ * * The 3D City Database is jointly developed with the following * cooperation partners: * * Virtua...
Java
impexp-core/src/main/java/org/citydb/core/operation/importer/database/content/DBCityFurniture.java
3dcitydb/importer-exporter
apache-2.0
11,592
314
codeparrot/github-code
06dcb8f6a5f549126c2ac30da8c249ba387a0a1f648ac40949e7016fa37973c2
package water.automl.api.schemas3; import ai.h2o.automl.Algo; import ai.h2o.automl.AutoMLBuildSpec; import ai.h2o.automl.AutoMLBuildSpec.AutoMLStoppingCriteria; import hex.KeyValue; import hex.ScoreKeeper.StoppingMetric; import water.Iced; import water.api.API; import water.api.EnumValuesProvider; import water.api.Sc...
Java
h2o-automl/src/main/java/water/automl/api/schemas3/AutoMLBuildSpecV99.java
h2oai/h2o-3
apache-2.0
14,862
330
codeparrot/github-code
e16b12e43f430531798cd3fabd1506e5e59d81f2f82c1375fd0270f37efa0af2
/* * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distribut...
Java
presto-main/src/test/java/io/prestosql/security/TestFileBasedSystemAccessControl.java
erichwang/presto
apache-2.0
51,243
724
codeparrot/github-code
c68f0b2d71684796be1332e28ff3d9bbf9736de7ed5ed5d9bbaa9e80c14813e9
/* * Copyright (c) 2005-2009 Grameen Foundation USA * 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 * * Unl...
Java
application/src/main/java/org/mifos/framework/components/batchjobs/helpers/BranchReportPersistenceDataAggregator.java
mifos/1.4.x
apache-2.0
9,414
156
codeparrot/github-code
a3abbd77919e88b4ee8ea136414341efe0334262208cb8f3e712152c58cee590
/* * SPDX-License-Identifier: Apache-2.0 * * Copyright 2006-2020 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licens...
Java
subprojects/json-lib-core/src/main/java/org/kordamp/json/JsonConfig.java
aalmiray/Json-lib
apache-2.0
52,525
1,493
codeparrot/github-code
bbaaabda32617087d5f94485f4b70394694e95c892822699182c3aae8a6fa056
package com.zmb.sunshine.data.openweathermap; import android.content.ContentValues; import android.content.Context; import android.net.Uri; import android.util.Log; import com.zmb.sunshine.data.AWeatherDataParser; import com.zmb.sunshine.data.WeatherParseException; import com.zmb.sunshine.data.db.WeatherContract; im...
Java
app/src/main/java/com/zmb/sunshine/data/openweathermap/OpenWeatherMapParser.java
zmb3/sunshine
apache-2.0
6,084
145
codeparrot/github-code