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
ad9f525f01168fec1d443d0a5f385b5e1245bafd1aeed128ebe86a8fe71548bc
// Dstl (c) Crown Copyright 2017 package uk.gov.dstl.baleen.core.web.servlets; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertFalse; import static org.junit.Assert.assertNotNull; import static org.junit.Assert.assertTrue; import static org.junit.Assert.fail; import static uk.gov.dstl...
Java
baleen-core/src/test/java/uk/gov/dstl/baleen/core/web/servlets/AbstractComponentApiServletTest.java
dstl/baleen
apache-2.0
4,535
128
codeparrot/github-code
4186458956dcba60c9aa018c75437630d1b7f5a668cef915a3a41a9a2f4430d0
<!DOCTYPE html> <html> <head> <title>Amida &hearts; Open Source</title> <link rel="stylesheet" type="text/css" href="assets/reset.css"> <link rel="stylesheet" type="text/css" href="assets/grid.css"> <link rel="stylesheet" type="text/css" href="assets/style.css"> <script type="text/javascript"> ...
HTML
index.html
amida-tech/amida-tech.github.io
apache-2.0
8,487
265
codeparrot/github-code
b933ae325e7c8ea0b05964d287463cc4b4e1ba4019160e40a31a329f2d494916
/** * Chapter 9 - Exercise 19 * @author wei.shen@iro.umontreal.ca * @version 1.0 */ package com.ciaoshen.thinkinjava.chapter9; import java.util.*; /** * Only package access */ class Coin implements Rander { /** * PUBLIC PROXY OF CONSTUCTOR */ public static Coin createCoin(){return ne...
Java
chapter9/Coin.java
helloShen/thinkinginjava
apache-2.0
776
47
codeparrot/github-code
c12a20557ec6b725c1740eb2171370bc629b2a01cb641417f170413a3b9b5a34
/* * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distribu...
Java
src/main/java/org/mklab/taskit/client/activity/ProfileActivity.java
mklab/taskit
apache-2.0
3,502
124
codeparrot/github-code
c4051a42c9607e6b6fbcd2bdb33a78785474c2d09053dee0c9259edef3db00e1
echo "[+] Begin environment building" echo "[+] Remove old containers" docker rm -f $(docker ps -a -q) OVS=ovsbr0 if ovs-vsctl list-br | grep -q $OVS; then echo "[+] Refresh ovsbr0" ovs-vsctl del-br $OVS ovs-vsctl add-br $OVS else echo "[+] Create ovsbr0" ovs-vsctl add-br $OVS fi if brctl show | gr...
Shell
scripts/router.sh
halexan/msc
apache-2.0
2,410
62
codeparrot/github-code
12f6ef109512772a91638de0577fa2f6d6f51b1d124e654002190c08ed7ebe1e
/* * Copyright 2013 Guidewire Software, Inc. */ package gw.internal.gosu.loader; import gw.internal.gosu.compiler.GosuClassLoader; import gw.internal.gosu.ir.TransformingCompiler; import gw.internal.gosu.parser.GosuClass; import gw.internal.gosu.parser.IGosuClassInternal; import gw.lang.reflect.IType; import gw.lan...
Java
gosu-core/src/main/java/gw/internal/gosu/loader/Loader.java
gosu-lang/old-gosu-repo
apache-2.0
2,566
80
codeparrot/github-code
366d0c0d31ded78ad027fac4edee92dd67c0a72cb2e20ed0da7484daaf04c49d
/* * Copyright (c) 2010-2018 Nathan Rajlich * * Permission is hereby granted, free of charge, to any person * obtaining a copy of this software and associated documentation * files (the "Software"), to deal in the Software without * restriction, including without limitation the rights to use, * copy, modify...
Java
Porter-Bridge-Http/src/main/java/org/java_websocket/server/WebSocketServer.java
gzxishan/OftenPorter
apache-2.0
30,233
942
codeparrot/github-code
690343f765fd23029b109d5e3fada7ef12f96406164ff776270839de6d5e0607
/* Copyright 2014 Google Inc. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in ...
GO
Godeps/_workspace/src/github.com/GoogleCloudPlatform/kubernetes/pkg/kubelet/server.go
mjisyang/origin
apache-2.0
22,495
756
codeparrot/github-code
badf2880285e061329d6a4a75097fa32725baed5c34717742b4974f1608d6e39
package shun.com.rxdemo.utils; import java.security.MessageDigest; import java.security.NoSuchAlgorithmException; /** * Created by HX on 2016/10/28. */ public class CommentUtils extends BaseUtils{ public static String MD5(String str) { String reStr = ""; try { MessageDigest md5 = M...
Java
app/src/main/java/shun/com/rxdemo/utils/CommentUtils.java
shun99/RxDemo
apache-2.0
872
32
codeparrot/github-code
6e53fe2cdec0f2311d5d57708b9915b31b97d7aacf594546cf5488c69da7ff55
/* * Copyright 2015 herd contributors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in ...
Scala
herd-code/herd-tools/herd-spark-data-source/src/main/scala/org/apache/spark/sql/execution/datasources/PruneHerdPartitions_Spark_2_2.scala
FINRAOS/herd
apache-2.0
3,210
76
codeparrot/github-code
368045db6024b2dc8b480b084b09862ac3d9d286a066e2d0d5bc5448136bcc94
/* Copyright (c) 2016 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Author: Leonardo de Moura */ #include "library/annotation.h" #include "library/util.h" #include "library/replace_visitor.h" #include "library/tactic/smt/congruence_closure.h" namespace...
C++
src/library/tactic/smt/util.cpp
fgdorais/lean
apache-2.0
3,022
102
codeparrot/github-code
f320663e3393581d98a2015f71c4b6a7b74afd032cb7d4c5ffffe333507069b6
package controller import ( "strconv" "time" "database/sql" ) type CollOperate struct { //database db *Database //Database field columns fields []string //Data folder path dataSrc string sourceSrc string //Authentication module matchString MatchString //Language data lang *Language //Acquisition object...
GO
controller/coll-operate.go
fotomxq/coll-mz
apache-2.0
13,415
519
codeparrot/github-code
8ae306a2e120bb373d40c54c07eabbf2e0a24a7971027a39aa736bb56a39d488
//////////////////////////////////////////////////////////////////////////////// /// DISCLAIMER /// /// Copyright 2014-2022 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
lib/ProgramOptions/Option.h
arangodb/arangodb
apache-2.0
7,513
213
codeparrot/github-code
2d5a116ce0fae60839242c84de757e41a7b566e9ed2139525ef0ccd7ca439715
<html> <head> <meta http-equiv="Content-Type" content="text/html; charset=windows-1252"> <title>New Page 1</title> </head> <body> <p>Milonic Solutions Software License Agreement<br> <br> <br> These Terms apply to any of the software developed by Milonic Solutions Ltd.<br> <br> <br> BY DOWNLOADING AND/OR USING SOFTWA...
HTML
_client-workareas/ALGiWORKSPACE/milonic_rightclick/docs/license.html
drlouie/public-views
apache-2.0
12,107
194
codeparrot/github-code
a04c50eb5343e7aae4879a12cc7c0a03b08fe259f78b47a337d8a66069d346cd
package com.eayong.coolweather.app.activity; import java.util.ArrayList; import java.util.List; import com.eayong.coolweather.R; import com.eayong.coolweather.app.db.CoolWeatherDB; import com.eayong.coolweather.app.model.City; import com.eayong.coolweather.app.model.County; import com.eayong.coolweather.app.model.Pro...
Java
src/com/eayong/coolweather/app/activity/ChooseAreaActivity.java
easyon/CoolWeather
apache-2.0
6,382
233
codeparrot/github-code
3f00de6de20545130a81f4b70d1005c0e5e55c0fd13d61c8d42e95bb9d3dddbf
package com.github.ptest.element; import com.github.ptest.runConfiguration.PTestRunConfiguration; import com.intellij.navigation.ColoredItemPresentation; import com.intellij.navigation.ItemPresentation; import com.intellij.openapi.editor.colors.CodeInsightColors; import com.intellij.openapi.editor.colors.TextAttribute...
Java
src/main/java/com/github/ptest/element/PTestConfiguration.java
KarlGong/ptest-pycharm-plugin
apache-2.0
2,377
75
codeparrot/github-code
9bc8840c14c4d57b333b3c373205317725fe26860eadf9e6831b97dd3079b8a8
package www.liujijiji.cn.vuespringboot.entities; import lombok.Getter; import lombok.Setter; import javax.persistence.*; import java.io.Serializable; @Getter @Setter @Entity @Table(name = "persons") public class Persons implements Serializable { @Id @GeneratedValue(strategy = GenerationType.AUTO) priva...
Java
vue-springboot/src/main/java/www/liujijiji/cn/vuespringboot/entities/Persons.java
LiuJiJiJi/Spring-Boot-example
apache-2.0
877
44
codeparrot/github-code
2ec53c73dd19adf4e42eb2419780d5502a71b5f1e022f3421ce94d7dc702025f
package com.semeureka.mvc.controller; import java.util.ArrayList; import java.util.List; import javax.servlet.ServletContext; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import org.apache.shiro.util.AntPathMatcher; import org.apache.shiro.util.PatternMatcher...
Java
com.semeureka.web.demo/src/main/java/com/semeureka/mvc/controller/ResourceController.java
koulikoro/web-demo
apache-2.0
5,346
143
codeparrot/github-code
c1129c38ec11638b8b30314391b965f9789180b3cc7753d04068b48de27fc112
/* * 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
runners/core-construction-java/src/test/java/org/apache/beam/runners/core/construction/PipelineTranslationTest.java
RyanSkraba/beam
apache-2.0
9,746
232
codeparrot/github-code
af0e44ef8f0f36cafc5aceffd938e7296944e2728a231db72b59dd1ca06d92db
package com.example.lovetalk.view; import android.content.Context; import android.graphics.Canvas; import android.graphics.Color; import android.graphics.Paint; import android.graphics.Typeface; import android.graphics.drawable.ColorDrawable; import android.util.AttributeSet; import android.view.MotionEvent; import an...
Java
src/com/example/lovetalk/view/EnLetterView.java
lanixzcj/LoveTalkClient
apache-2.0
3,206
117
codeparrot/github-code
8bf981e4ee3e00580ff1413ae46bd65d1a288035b133138a55158965f86002e6
(function() { 'use strict'; var API_URL = '/searchblox/api/rest', API_INDEX_URL = API_URL + '/add'; var app = angular.module('searchblox.api', []); app.factory('searchbloxAPI', ['$http', 'x2js', '$q', function ($http, x2js, $q) { var protoFn, s; s = {}; s.license...
JavaScript
plugin/js/factories/searchblox-api.js
searchblox/hr-xml-indexer
apache-2.0
8,181
246
codeparrot/github-code
c73040b83c7c081576e71f830c0534458d646df24325effb4721874b6ae21823
/* * Copyright 2017 dmfs GmbH * * * 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
http-executor-decorators/src/main/java/org/dmfs/httpessentials/executors/retrying/policies/DefaultRetryPolicy.java
dmfs/http-client-essentials-suite
apache-2.0
2,345
78
codeparrot/github-code
7c1f1466e691cc240bb7862e45c065757e378bebde643363b2f5d283108c03d3
package ch.ethz.ssh2.packets; import ch.ethz.ssh2.DHGexParameters; /** * PacketKexDhGexRequest. * * @author Christian Plattner, plattner@inf.ethz.ch * @version $Id: PacketKexDhGexRequest.java,v 1.4 2005/08/24 17:54:09 cplattne Exp $ */ public class PacketKexDhGexRequest { byte[] payload; in...
Java
src/ch/ethz/ssh2/packets/PacketKexDhGexRequest.java
MonALISA-CIT/fdt
apache-2.0
919
36
codeparrot/github-code
3fe02fe985331956e630dde954e1e3eb385146754fda963bcb04331927894f78
'use strict'; angular.module("kmanager.directives", []) .directive('moment', function($timeout) { return { restrict: 'E', template: '<span>{{moment}}</span>', replace: true, scope: { timestamp: "@" }, link: function(scope, element, attrs) { scope.$watch("timestamp", function(ov, nv) { ...
JavaScript
src/main/resources/static/scripts/directives.js
chickling/kmanager
apache-2.0
5,799
248
codeparrot/github-code
f346df08e3f611d3bc125727a60557b49439144b11c22f1963edfd04e2e9235e
package com.yezi.meizhi.ui.activity; import android.os.Bundle; import android.os.Handler; import android.os.Message; import android.os.SystemClock; import android.support.annotation.ColorInt; import android.support.annotation.IdRes; import android.support.annotation.Nullable; import android.support.v4.app.Fragment; im...
Java
meizhi/app/src/main/java/com/yezi/meizhi/ui/activity/MainActivity.java
qwertyezi/meizhi
apache-2.0
14,519
429
codeparrot/github-code
d850496d804b4e7a7d60f990fea2e7fb29adf439237e8d08374150d0d97821dd
/*** * ASM: a very small and fast Java bytecode manipulation framework * Copyright (c) 2000-2011 INRIA, France Telecom * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistribution...
Java
src/main/java/holophonor/org/objectweb/asm/util/ASMifier.java
rikf/Holophonor
apache-2.0
38,377
1,152
codeparrot/github-code
4291fc76a83704dbeca2888c258354fd16085f68816affb1a49cef271d371f86
/* * 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 u...
Java
guice/src/test/java/com/opentable/lifecycle/guice/TestCustomLifecycledProvider.java
opentable/otj-lifecycle
apache-2.0
4,312
146
codeparrot/github-code
06b1ce9fb4d804aeecca78b382118d4048738f05e84c3c86280cdf9adc4fbe82
#pragma once #include "types.hpp" #include <memory> #include <vector> namespace phosphor { namespace inventory { namespace manager { class Manager; /** @struct Event * @brief Event object interface. * * The event base is an association of an event type * and an array of filter callbacks. */ struct Event : ...
C++
events.hpp
openbmc/phosphor-inventory-manager
apache-2.0
1,963
86
codeparrot/github-code
b2677a0333db887d0fc03e763534c082ba4a7bc1e661d49ff97e4295ee1d3829
//// Copyright (c) Microsoft Corporation. All rights reserved (function () { "use strict"; var httpClient; var httpPromise; var page = WinJS.UI.Pages.define("/html/scenario6_PostMultipart.html", { ready: function (element, options) { document.getElementById("startButton").addEvent...
JavaScript
HttpClient sample/C++ and JavaScript/Shared/js/scenario6_PostMultipart.js
gisfromscratch/windowsappsamples
apache-2.0
1,776
48
codeparrot/github-code
a0c64962fb3ab3646dd8d6e8cb0de2241e71a7f77ae657665ec737aff0b071ce
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <HTML ><HEAD ><TITLE >Release 9.1.2</TITLE ><META NAME="GENERATOR" CONTENT="Modular DocBook HTML Stylesheet Version 1.79"><LINK REV="MADE" HREF="mailto:pgsql-docs@postgresql.org"><LINK REL="HOME" TITLE="PostgreSQL 9.2...
HTML
pgsql/doc/postgresql/html/release-9-1-2.html
ArcherCraftStore/ArcherVMPeridot
apache-2.0
21,606
1,029
codeparrot/github-code
242a6b048c7bbec2baab57cc4eb07cbbc37f0fc898cf9b32718138aca3aa09b3
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <ctype.h> #ifdef _WIN32 # define rindex(X,Y) strrchr(X,Y) # define index(X,Y) strchr(X,Y) #else # include <strings.h> #endif #include "registry.h" #include "protos.h" #include "data.h" #include "sym.h" /* fields for state entries (not...
C
Source/dependencies/Registry/reg_parse.c
NWTC/FAST
apache-2.0
29,234
761
codeparrot/github-code
b7feeda71a2e6eab8fb86d0c797ac07b57b412e9b4cfabb628e0278def172654
package com.dexvis.simple.transform; import java.util.HashMap; import java.util.Map; import javafx.scene.control.RadioButton; import org.simpleframework.xml.transform.Transform; import com.thoughtworks.xstream.XStream; import com.thoughtworks.xstream.io.xml.DomDriver; public class RadioButtonTransform ...
Java
src/com/dexvis/simple/transform/RadioButtonTransform.java
PatMartin/Dex
apache-2.0
1,182
45
codeparrot/github-code
08f47eb9d022426ebea836eca6bb4f13c17b899e2c0f2792ac378b0e3a4da35d
// package: gogoproto // file: github.com/gogo/protobuf/gogoproto/gogo.proto /* tslint:disable */ /* eslint-disable */ import * as jspb from "google-protobuf"; import * as google_protobuf_descriptor_pb from "google-protobuf/google/protobuf/descriptor_pb"; export const goprotoEnumPrefix: jspb.ExtensionFieldInfo<boole...
TypeScript
js/proto/github.com/gogo/protobuf/gogoproto/gogo_pb.d.ts
monax/hoard
apache-2.0
4,986
161
codeparrot/github-code
64bae390f9ae44e40ff80d4a0bc5f51f1486a6460f2399d163ab67f1156cbc4a
package mesosphere.marathon package core.task.termination.impl import mesosphere.UnitTest import mesosphere.marathon.test.SettableClock import mesosphere.marathon.core.instance.{Instance, LocalVolumeId, TestInstanceBuilder} import mesosphere.marathon.state.PathId import org.scalatest.prop.TableDrivenPropertyChecks cl...
Scala
src/test/scala/mesosphere/marathon/core/task/termination/impl/KillActionTest.scala
gsantovena/marathon
apache-2.0
1,841
47
codeparrot/github-code
c9c1536cb952808a056dbc9d23697e26475aaaf6820c85458037f887a56d0c60
#!/usr/bin/env python # -*- coding: utf-8 -*- """Collection of several utility functions.""" from __future__ import print_function import sys from math import floor, sqrt import numpy as np import pygimli as pg class ProgressBar(object): """Animated text-based progressbar. Animated text-based progressbar f...
Python
pygimli/utils/utils.py
gimli-org/gimli
apache-2.0
22,192
790
codeparrot/github-code
c9f8e71f2893757edd0a37306f78bbba167e61e3e587137ea2cd3edf7272260f
/******************************************************************************* * 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
datavec/datavec-local/src/main/java/org/datavec/local/transforms/reduce/MapToPairForReducerFunction.java
RobAltena/deeplearning4j
apache-2.0
2,258
61
codeparrot/github-code
5a22091bc046d751b006421cdc705cd377bf9f199bbfdbb8aa4e23099d45c7ea
from multiprocessing import Process import time import sys count = 1000 #Note!!!!!: This needs to be a multiple of env.numThreads, else tests will likely fail with the wrong count(s) actionWaitTime = 5 class InfluxParaWrite(object): def __init__(self,env): self.env = env self.count = count ...
Python
influx_test/influxparawrite.py
hpcloud-mon/monasca-perf
apache-2.0
1,308
36
codeparrot/github-code
78da008bed05e598fa9981506fa02dd32349d5bed90124217b8f6b32facd606c
package org.gradle.test.performance.mediummonolithicjavaproject.p282; import org.junit.Test; import static org.junit.Assert.*; public class Test5653 { Production5653 objectUnderTest = new Production5653(); @Test public void testProperty0() { String value = "value"; objectUnderTest....
Java
my-app/src/test/java/org/gradle/test/performance/mediummonolithicjavaproject/p282/Test5653.java
oehme/analysing-gradle-performance
apache-2.0
2,111
79
codeparrot/github-code
79ae4e47b2ace3d9f5d38c0e05c44f46cd2ebc3af14ab05ec5e3c1f8ead94793
/* * Copyright 1999-2017 Alibaba Group. * * 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...
Java
expert/fastjson/src/main/java/com/alibaba/fastjson/parser/JSONToken.java
weiwenqiang/GitHub
apache-2.0
3,976
132
codeparrot/github-code
c7ec1c7e9cbde242d1bbd9dc783c2fabeeb9b81200869a496f4b08b5a8ff16aa
/* * Copyright (c) 2010, www.wojilu.com. All rights reserved. */ using System; using System.Text; using System.Collections.Generic; using wojilu.ORM; using wojilu.Members.Users.Domain; using wojilu.Common.Feeds.Interface; namespace wojilu.Common.Feeds.Domain { [Serializable] public class Sh...
C#
wojilu.Core/Common/Feeds/Domain/Share.cs
songboriceboy/cnblogsbywojilu
apache-2.0
1,539
65
codeparrot/github-code
33df0f1fd9e887f673cae316c2d97d1b9d5bbbe427063522a0357d09991f195e
/* * Copyright 2013 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applica...
Java
web/htpl/src/main/java/leap/htpl/processor/core/FragmentAttrProcessor.java
leapframework/framework
apache-2.0
1,280
41
codeparrot/github-code
f6213d90f156d29665d1e6e21fb1c70d50943b03e7c653d372e40526ab148928
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <!-- NewPage --> <html lang="de"> <head> <title>Uses of Class org.deidentifier.arx.exceptions.RollbackRequiredException (ARX Developer Documentation)</title> <link rel="stylesheet" type="text/css" href="../../../...
HTML
doc/dev/org/deidentifier/arx/exceptions/class-use/RollbackRequiredException.html
fstahnke/arx
apache-2.0
9,618
192
codeparrot/github-code
39feef51319548a8792a7a42bcdd80622588e484ba2ee5a4e55033b1416575cb
/* * 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
components/org.apache.stratos.autoscaler/src/main/java/org/apache/stratos/autoscaler/services/impl/AutoscalerServiceImpl.java
asankasanjaya/stratos
apache-2.0
60,947
1,274
codeparrot/github-code
907cc9067a7a2665dcfbd1b2e8743090d264f35d8abea0c9d708fa2124ca9c5c
#pragma once namespace xxaml { namespace ui { namespace core { enum class window_message: UINT { null = WM_NULL, create = WM_CREATE, destroy = WM_DESTROY, move = WM_MOVE, size = WM_SIZE, activate = WM_ACTIVATE, set_focus = WM_SETFOCUS, kill_focus = WM_KILLFOCUS, enable = WM_ENABLE, set_redraw = ...
C++
xxaml/src/ui/core/win32/window_message.hpp
mntone/XXaml
apache-2.0
10,194
382
codeparrot/github-code
143600039a60de35fabad041d99c4acbeab54cc0f8b5f75c520f5a97e8b1835b
package com.github.kongchen.model; import com.wordnik.swagger.annotations.ApiModelProperty; import java.util.List; /** * Created with IntelliJ IDEA. * * @author: chekong * 05/14/2013 */ public class Garage { @ApiModelProperty(required = true, value = "Garage's id") private int id; @ApiModelProperty...
Java
src/test/java/com/github/kongchen/model/Garage.java
gcusnieux/swagger-maven-plugin
apache-2.0
1,813
80
codeparrot/github-code
c0bb1bea0b2239ebcf36bac1d7bf9e0f3f99b248ffbd0dacf5aa531bfe8ccea8
<?php class SubtitleController extends BaseController { /* |-------------------------------------------------------------------------- | Default Home Controller |-------------------------------------------------------------------------- | | You may wish to use controllers instead of, or in addition to, Closure ...
PHP
app/controllers/SubtitleController.php
Acikteknoloji/acikteknoloji
apache-2.0
7,048
230
codeparrot/github-code
bec7c21359324c70bcf4cd06630469ae342d01d9f00132329f1c9181c4326923
/* * 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-ecr/src/main/java/com/amazonaws/services/ecr/model/DeleteRepositoryResult.java
aws/aws-sdk-java
apache-2.0
3,750
127
codeparrot/github-code
d25bdf67ee15df354aef72429dcb015e5a1c0ed6e9d9197b70d159281b52cbaf
#ifndef SYNCED_MEMORY_H #define SYNCED_MEMORY_H #include <memory> #include <stdlib.h> #include <cuda_runtime.h> #include "base.h" #include "gtest.h" //#include "log.h" #include "util/common.h" namespace BigBang { class SyncedMemory { public: explicit SyncedMemory(size_t size) : size_(size), cpu_data_(nullptr), ...
C
BigBang/include/synced_memory.h
1icas/BigBang
apache-2.0
1,328
79
codeparrot/github-code
f5fbd914c2187f8fb9c963b3b447eb0b7fbfc5639093f2c3bbf9c4c5e2f9ed7d
/** * Copyright 2009-2012 WSO2, Inc. (http://wso2.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 applic...
Java
esb/org.wso2.developerstudio.eclipse.gmf.esb.edit/src/org/wso2/developerstudio/eclipse/gmf/esb/provider/FastXSLTMediatorItemProvider.java
rajeevanv89/developer-studio
apache-2.0
10,178
279
codeparrot/github-code
75f753dff42de628dd79d9b6128be857e9a038687ec80e3a5c1dc88bdb1a8e0a
package com.prt2121.ohseearr; //import com.googlecode.tesseract.android.TessBaseAPI; import android.app.Activity; import android.os.Bundle; import android.view.Menu; import android.view.MenuItem; public class MainActivity extends Activity { @Override protected void onCreate(Bundle savedInstanceState) { ...
Java
app/src/main/java/com/prt2121/ohseearr/MainActivity.java
prt2121/OhSeeAr
apache-2.0
1,392
49
codeparrot/github-code
9c9711cdb34e62df5c0ac22f7a5e4c50d83bd3e8f62beccc121b71cd447f279f
/** * $RCSfile$ * $Revision: 3186 $ * $Date: 2005-12-11 00:07:52 -0300 (Sun, 11 Dec 2005) $ * * Copyright (C) 2005-2008 Jive Software. 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 c...
Java
src/java/org/jivesoftware/openfire/audit/spi/AuditorImpl.java
trimnguye/JavaChatServer
apache-2.0
17,420
464
codeparrot/github-code
73c7b08b2c228299f0bc21ab4628b700cb9dd597f3c34db500dd5741007acac4
/* * 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 no...
JavaScript
src/chart/graph/GraphView.js
starlkj/echarts
apache-2.0
13,490
393
codeparrot/github-code
59c54fb1f826aef555a908e53467555d5c67db0565c8047bf2db7ab0b88b587d
#include <cstdlib> #include <ctime> #include <iostream> #include <iterator> #include <memory> #include <string> #include <sstream> #include <functional> #include <jsoncpp/json/json.h> #include <gflags/gflags.h> #include <grpc/grpc.h> #include <grpc++/client_context.h> #include <grpc++/create_channel.h> #include <re2/r...
C++
vqro_read.cc
vaquero-db/vqro
apache-2.0
17,388
645
codeparrot/github-code
903618b0ac8038ed150754a2110e76f9acc15630960f198475aa615b92c4390e
/* * Copyright 2015 Kakao Corporation * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agre...
Java
hbase0.98/hbase-manager-0.98/src/test/java/com/kakao/hbase/manager/command/BalanceTest.java
kakao/hbase-tools
apache-2.0
9,042
213
codeparrot/github-code
ee4771cdf5b10aa15864db04c6c2d92ac3c083296bcbf7914809a9d56a1b56c3
package uk.co.vurt.hakken.server.service; import java.util.ArrayList; import java.util.Date; import java.util.HashSet; import java.util.List; import java.util.Set; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereot...
Java
hakken-server/src/main/java/uk/co/vurt/hakken/server/service/JobServiceImpl.java
gilesp/taskhelper
apache-2.0
4,131
117
codeparrot/github-code
0aaeca3632d261ff658b262c3316c791c06dd054babefe3ee9e81fb305117a12
/** Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this ...
Java
src/main/java/com/heliosapm/utils/events/EventSink.java
nickman/heliosutils
apache-2.0
16,669
509
codeparrot/github-code
1d9508f46c6e7f817a5afe1ce93b9fcfb4e26a3bc06b67884daf77ee3230af1c
/******************************************************************************* * Copyright 2002-2011, OpenNebula Project Leads (OpenNebula.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 Li...
Java
src/oca/java/src/org/opennebula/client/Client.java
larsks/opennebula-lks
apache-2.0
6,571
226
codeparrot/github-code
cc96aa197ef758adb7d61aa2710c6f9ad4f3b79c870cb1c2c3ec3085bddb9064
/* * Copyright (C) 2012 ZXing 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 agr...
Java
simplezxing/src/main/java/com/acker/simplezxing/assit/AmbientLightManager.java
GuoJinyu/SimpleZXing
apache-2.0
2,672
81
codeparrot/github-code
6474fd5f956b2bbf6a1fb718728ae15caa8c36e65c5835bb8a7b0fd92a06a7c8
package de.bund.bva.isyfact.task; import de.bund.bva.isyfact.datetime.util.DateTimeUtil; import de.bund.bva.isyfact.logging.IsyLogger; import de.bund.bva.isyfact.logging.IsyLoggerFactory; import de.bund.bva.isyfact.logging.LogKategorie; import de.bund.bva.isyfact.task.model.AbstractTask; import de.bund.bva.isyfact.tas...
Java
isy-task/src/test/java/de/bund/bva/isyfact/task/TestTaskMitException.java
IsyFact/IsyFact-Standards
apache-2.0
1,115
32
codeparrot/github-code
bd13346cb2e7811ff59c2daecd1adce8e5737fc634e8d939f31dee6260db6adb
package com.leonti.slickpm.domain.dto; import java.util.Date; public class UploadedFileDTO { private Integer id; private String filename; private String contentType; private Long size; private Date uploadDate; public UploadedFileDTO() { } public UploadedFileDTO(Integer id, String filename, String contentTy...
Java
src/main/java/com/leonti/slickpm/domain/dto/UploadedFileDTO.java
Leonti/slickpm
apache-2.0
1,117
66
codeparrot/github-code
03add6fe401c18bf7c9ebc952adf8fb1a36d3fae70d2befb279daefedbdd573b
/* Copyright 2018 The TensorFlow Authors. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or a...
C++
tensorflow/compiler/tf2xla/lib/random.cc
meteorcloudy/tensorflow
apache-2.0
2,191
59
codeparrot/github-code
09f377a4a16a32acd7493a97e24b4d145881cd66207f04ff76a89ab0388ed3f1
package com.ctrip.platform.dal.dao.datasource.log; import org.junit.Assert; import org.junit.Test; import java.util.Map; /** * @author c7ch23en */ public class KeyedDbSqlContextTest extends BaseSqlContextTest { private static final String DB_KEY = "test_key"; @Test public void testSuccess() throws Ex...
Java
dal-client/src/test/java/com/ctrip/platform/dal/dao/datasource/log/KeyedDbSqlContextTest.java
ctripcorp/dal
apache-2.0
1,470
44
codeparrot/github-code
0ff15c00c18e83229ba2a355171dbf6dc0bde6de253033604821f2fd60743c64
/******************************************************************************* * 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...
Java
src/test/resources/apache-ofbiz-17.12.04/framework/base/src/main/java/org/apache/ofbiz/base/util/UtilGenerics.java
yuri0x7c1/ofbiz-explorer
apache-2.0
7,344
193
codeparrot/github-code
3abd0688082375ab6981078ef01323827b5d6a57bb75aeb1e9bcbb64e62a6d21
using Ruanmou.Advanced9.Homework5.Foods; namespace Ruanmou.Advanced9.Homework5.AbstractFactory { public class 新君豪茶餐厅 : FoodFactoryBase { public override 菠萝油 Cook菠萝油() { return new 菠萝油(); } public override 干炒牛河 Cook干炒牛河() { return new 加蛋干炒牛河(); ...
C#
Homework5/Ruanmou.Advanced9.Homework5.AbstractFactory/AbstractFactory/新君豪茶餐厅.cs
h82258652/Ruanmou.Advanced9.Homework5
apache-2.0
605
32
codeparrot/github-code
afcf024d539935f7b57b0b0f676e9c29466756659d9a74763d7bf7ebca384d24
/* * * Copyright 2007-2008 University Of Southern California * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless re...
Java
src/edu/isi/pegasus/planner/catalog/transformation/impl/Abstract.java
pegasus-isi/pegasus
apache-2.0
3,973
104
codeparrot/github-code
b8953dfe00c7a29e2b96ef9695c9f55250872f29d71d6ee8b1fccf8727123bf2
package karlkfi.jtyped.map; import static org.junit.Assert.*; import static org.hamcrest.MatcherAssert.assertThat; import static org.hamcrest.Matchers.*; import java.util.List; import java.util.Map; import karlkfi.jtyped.TypeTokens; import org.junit.Test; import org.junit.runner.RunWith; import org.junit.runners.JU...
Java
src/test/java/karlkfi/jtyped/map/ImmutableTypedMapTest.java
karlkfi/jtyped
apache-2.0
5,907
197
codeparrot/github-code
e5f520730076cdf4c608cb5dc7c503468c999c46a0816c09df6e38aa0a5e425b
package com.example.pdfhttpdemo; import com.radaee.pdf.Document; import com.radaee.pdf.Global; import com.radaee.pdf.Matrix; import com.radaee.pdf.Page; import com.radaee.util.PDFHttpStream; import android.os.Bundle; import android.app.Activity; import android.graphics.Bitmap; import android.graphics.Bitma...
Java
Source/PDFViewer/PDFViewer2.9.8beta2/PDFHttpDemo/src/com/example/pdfhttpdemo/MainActivity.java
gearit/RadaeePDF-B4A
apache-2.0
2,050
81
codeparrot/github-code
8c497ba423fe12f9e01c11df919469dff661ee2fb374d4afd6c5ebaec2fee6b9
/* * Copyright 2017 original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by appli...
Java
spring-cloud-sockets/src/main/java/org/springframework/cloud/reactive/socket/util/ServiceUtils.java
viniciusccarvalho/spring-cloud-sockets
apache-2.0
1,225
45
codeparrot/github-code
b3b82dcba0624eaa1cd79f6c8a0379a0cd16794e3aff06fb8f1e80eee5c7f261
# coding: utf-8 # Copyright 2013 Daniel Neuhäuser # # 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...
Python
argvard/signature.py
DasIch/argvard
apache-2.0
7,014
246
codeparrot/github-code
ec55ae0399dbd0c979766b8530477264472064c1bc1b41b53e5a632966c974b7
/* Copyright 2016, 2017 Institut National de la Recherche Agronomique Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicab...
Java
src/main/java/fr/inra/maiage/bibliome/util/biotopes2012/Relation.java
Bibliome/bibliome-java-utils
apache-2.0
2,479
87
codeparrot/github-code
a6e2cbcc38ae1a5279af360b2dfd7f4331d56be7dcc0cead493f56ec84346b50
package net.katsuster.strview.media.mp4; import net.katsuster.strview.media.bit.*; /** * <p> * MPEG4 media file format の親ボックス。 * </p> * * <p> * 自身は何もメンバを持たず、子ボックスだけを持ちます。 * </p> * * <p> * 参考規格 * </p> * <ul> * <li>ISO/IEC 14496-12: ISO base media file format</li> * </ul> */ public class MP4HeaderRecursi...
Java
view/src/net/katsuster/strview/media/mp4/MP4HeaderRecursive.java
katsuster/strview
apache-2.0
1,292
68
codeparrot/github-code
0090d0f1cc12cf6d2f38ae38fc860849dd5f2bef70804369b183c05b18010216
var express = require('express'); var router = express.Router(); var crypto = require('crypto'); var auth = require('../config/auth'); var CONST = require('../config/const'); var ORMTools = require('../models/orm'); router.get('/list', function(req, res) { ORMTools.models.host.find().exec(function(err, models) { ...
JavaScript
routes/host.js
lcjfly/NewbieServer
apache-2.0
2,707
105
codeparrot/github-code
d1b341e86feb3e9463d7f2be7ce43a3a252859427fa72fab87ed3ee7ac9ed29d
package com.ruimo.scoins import org.scalatest.flatspec.AnyFlatSpec import org.scalatest.matchers.should import java.io.{ByteArrayInputStream, ByteArrayOutputStream} import java.nio.charset.StandardCharsets.UTF_8 class StreamUtilSpec extends AnyFlatSpec with should.Matchers { it should "copy stream of 0 byte" in { ...
Scala
src/test/scala/com/ruimo/scoins/StreamUtilSpec.scala
ruimo/scoins
apache-2.0
1,913
67
codeparrot/github-code
3b740f39e23b2b3c5b572ab4390aebc5088eaf2b218eeb542f284231e95d324a
/* * 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/test/java/org/springframework/cloud/sleuth/instrument/web/client/integration/WebClientTests.java
marcingrzejszczak/spring-cloud-sleuth
apache-2.0
15,819
425
codeparrot/github-code
060e7c2960b1762d6fc1a72ff7173827a36f3b363c5ec4c8f9b87e58868d872b
# Copyright 2016 Isotoma Limited # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing...
Python
touchdown/config/integer.py
yaybu/touchdown
apache-2.0
1,092
44
codeparrot/github-code
25af838a16bf8e6e8b122276e7bf4f01fb95b117f0c9481e44b12312ebcb9710
/* * Copyright (C) 2015 Twitter, 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 agr...
Java
digits/src/main/java/com/digits/sdk/android/DigitsApiClient.java
jnbt/digits-android
apache-2.0
4,801
135
codeparrot/github-code
e3bc35b98df33248b6df7276297d5a511614414a9b0be62010b3f16aca53f6f4
package org.nbone.test; import java.sql.Timestamp; import java.util.Date; import java.util.List; import org.apache.commons.lang.builder.ToStringBuilder; import org.apache.commons.lang.builder.ToStringStyle; import org.nbone.test.domain.User; public class UserTest { public static int count = 0; private String id;...
Java
nbone/nbone-core/src/test/java/org/nbone/test/UserTest.java
thinking-github/nbone
apache-2.0
2,374
125
codeparrot/github-code
90282d96a4bf769f70a558e224afa167ac9ea39c9c95df7f67853205107987ad
package com.java110.front.components.notice; import com.java110.core.context.IPageData; import com.java110.front.smo.notice.IDeleteNoticeSMO; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.http.ResponseEntity; import org.springframework.stereotype.Component; ...
Java
service-front/src/main/java/com/java110/front/components/notice/DeleteNoticeComponent.java
java110/MicroCommunity
apache-2.0
885
35
codeparrot/github-code
ce17d0bed856f117af29dfb4f0cebcd3d237b80ffdd50fe3199646e5aa44ea24
// Copyright 2017 Archos SA // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in w...
Java
src/com/archos/mediaprovider/video/VideoProvider.java
archos-sa/aos-MediaLib
apache-2.0
57,199
1,420
codeparrot/github-code
12175d6e3378d4b34b3774fbe153155183e0d2415bceba615898e65f51cf0b17
/* * Copyright (C) 2008 ZXing 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 agr...
Java
src/android/src/com/thomas/view/ViewfinderView.java
vilens/cordova-plugin-scan
apache-2.0
8,457
273
codeparrot/github-code
619aa473aa74a62b16028b290917f00c185f209a197ea59bca013f542e96b758
package liquid.user.service; import liquid.user.domain.Group; import liquid.user.domain.GroupMember; import liquid.user.domain.UserProfile; import liquid.user.model.User; import java.util.Collection; import java.util.List; /** * Created by Tao Ma on 3/19/15. */ public interface UserService { Group addGroup(Gro...
Java
user/user-api/src/main/java/liquid/user/service/UserService.java
redbrick9/liquid
apache-2.0
903
46
codeparrot/github-code
80e39c80c0b593d5a9219053d02c89bb838a1898a2fa8ca12aae2101039f25a1
/* * 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-shield/src/main/java/com/amazonaws/services/shield/model/transform/AttackVolumeStatisticsMarshaller.java
aws/aws-sdk-java
apache-2.0
1,993
56
codeparrot/github-code
be1f158717e12c68a89bd06f4f21edc41390c6d99f6f3c629295c535250e6436
/* * Copyright (c) 2016-2020 Onegini B.V. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or ...
Java
app/src/main/java/com/onegini/mobile/exampleapp/network/AnonymousService.java
Onegini/android-example-app
apache-2.0
1,788
50
codeparrot/github-code
ed02014843d5af4f068176ac0c5aaccf916738cbdf27d8077f1f4f411b1acc5e
/* * Copyright 2013 JCertifLab. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to...
Java
src/main/java/com/jcertif/android/model/Contributor.java
JCERTIFLab/jcertif-android-2013
apache-2.0
4,606
249
codeparrot/github-code
3f26a743ca2241521b9971f407e651562e000044bc53dcc55d9187376f4c7c42
/* * Copyright 2007-2010 WorldWide Conferencing, 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 applica...
Scala
framework/lift-base/lift-webkit/src/main/scala/net/liftweb/http/provider/HTTPProvider.scala
jeppenejsum/liftweb
apache-2.0
4,206
133
codeparrot/github-code
23864e8faff39bbbbc8ed626642d0c2c6722cb7a7638d8fd86687dd5864951b1
package mesosphere.marathon package state import com.wix.accord._ import com.wix.accord.dsl._ import mesosphere.marathon.api.v2.Validation._ object ResourceRole { val Unreserved = "*" // NOTE: The validators below use conjunction over `isTrue` in order to provide more user-friendly error messages. // For...
Scala
src/main/scala/mesosphere/marathon/state/ResourceRole.scala
janisz/marathon
apache-2.0
2,338
49
codeparrot/github-code
316ef534e9642d121d84dff2962c9285de9f06f06262ae6cc9c96d9886824ae5
/* * Copyright (C) 2015 Noorq, 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...
Scala
app/controllers/account/AccountController.scala
mailrest/mailrest
apache-2.0
4,620
153
codeparrot/github-code
74efeeb19e507e7e6b0a10ce2b5833e0c28aa1391aad94a15ebd6ba9f1021811
package org.genericsystem.defaults; import org.genericsystem.api.core.IRoot; import org.genericsystem.defaults.DefaultConfig.MetaAttribute; import org.genericsystem.defaults.DefaultConfig.MetaRelation; import org.genericsystem.defaults.DefaultConfig.Sequence; import org.genericsystem.defaults.DefaultConfig.SystemMap; ...
Java
gs-defaults/src/main/java/org/genericsystem/defaults/DefaultRoot.java
genericsystem/genericsystem2015
apache-2.0
867
41
codeparrot/github-code
648dd9c0e2845f4ed7b4d0ebffad20f8d163ce6e342f857c146d0a42dc6ad02f
package gitbucket.core.service import gitbucket.core.model.Profile._ import gitbucket.core.util.ControlUtil._ import gitbucket.core.util.Directory._ import gitbucket.core.util.JGitUtil import gitbucket.core.model.Account import org.eclipse.jgit.api.Git import org.eclipse.jgit.dircache.DirCache import org.eclipse.jgit....
Scala
src/main/scala/gitbucket/core/service/RepositoryCreationService.scala
zhoffice/gitbucket
apache-2.0
2,849
80
codeparrot/github-code
d5d5787b83524040af499aab0a204f4581a291a33ef429b8368dc85730363018
# Copyright 2019 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
Python
models/official/efficientnet/eval_ckpt_main.py
tensorflow/tpu
apache-2.0
4,717
122
codeparrot/github-code
e3b6da7b15d0a7d190f083393705ba7921dbf6ef9bd1d309ceefd87194923220
package com.ahanda.techops.noty.ds; import java.lang.reflect.*; //method import java.util.*; //list import org.springframework.expression.*; // expressionparser import org.springframework.expression.spel.standard.*; // spelexpressionparser import org.springframework.expression.spel.support.*; // standardevaluationcon...
Java
src/main/java/com/ahanda/techops/noty/ds/Utils.java
amit-handa/EventServer
apache-2.0
7,382
258
codeparrot/github-code
e7fbcfd637f40b66aee3f7c55489503063461df9b6b57daf6a86dc35aef50b8a
package com.firtzberg.lines2polygons.opengl; import android.opengl.GLES20; import android.util.Log; /** * Taken from www.learnopengles.com */ public class ShaderHelper { private static final String TAG = "ShaderHelper"; /** * Helper function to compile a shader. * * @param shaderType The s...
Java
app/src/main/java/com/firtzberg/lines2polygons/opengl/ShaderHelper.java
Firtzberg/Lines2Polygons
apache-2.0
3,355
95
codeparrot/github-code
124f1c10598be3083ede141c58c38b5a3e719a89964b2e76ce25f6afd71af4be
<?php class FormBuilder { private $dbMgr, $factory; public function __construct() { $this->factory = new ObjectFactory(); $this->dbMgr = new DatabaseManager(true); } public function generateReactionSelectForm($scriptName,$buttonText) { $reactions = $this->dbMgr->getAllReaction...
PHP
include/class/FormBuilder.php
drclough/reaction-toolkit
apache-2.0
11,104
206
codeparrot/github-code
d0e24217e0239b740867c0b6320aab3e1b9a8a062fe25e94f8af6fee78eb6e64
/* * Copyright 2009-2013 by The Regents of the University of California * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * you may obtain a copy of the License from * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless r...
Java
asterix-om/src/main/java/edu/uci/ics/asterix/dataflow/data/nontagged/printers/json/ADayTimeDurationPrinter.java
parshimers/incubator-asterixdb
apache-2.0
1,467
42
codeparrot/github-code
abcc77cbf1a9c7e8c734fcb2f62593a615d4e77d69a73d613c36fdb2967b2cb4
/*========================================================================= * * Copyright Insight Software Consortium * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * ...
C
Modules/Video/BridgeOpenCV/include/itkOpenCVBasicTypeBridge.h
RayRuizhiLiao/ITK_4D
apache-2.0
5,880
205
codeparrot/github-code
b5fd0c3bc578f7f588adc0848a58ba21af06fee553d479c3158156e99efbd229
#!/usr/bin/env python # Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ...
Python
examples/reporting/get_keyword_stats.py
googleads/google-ads-python
apache-2.0
3,872
108
codeparrot/github-code
92fc8b98cd2e18b891533d8591e63902f94b0e859395f12b70c4af246ed6d16f
'use strict'; // Declare app level module which depends on filters, and services angular.module('drive', [ 'ngRoute', 'good.ui.grid', 'drive.controllers', 'drive.services', 'drive.directives', 'drive.filters', 'ngCookies', 'angularCharts', 'ui.bootstrap']) .config(['$routeProvider', '$locationPr...
JavaScript
app/js/app.js
larrytin/drive-web
apache-2.0
2,078
42
codeparrot/github-code
6350f4e85e9b06e072963a052d60b264a815536c0a1cdac30063fedf79c6eee9
/* * Licensed to ElasticSearch and Shay Banon under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. ElasticSearch licenses this * file to you under the Apache License, Version 2.0 (the * "License"); you may...
Java
src/test/java/org/elasticsearch/search/query/SimpleQueryTests.java
lmenezes/elasticsearch
apache-2.0
96,680
1,602
codeparrot/github-code
2be7b66063fe56a0b4dabd45761f2de48be21ee0d988cb0314cbb128ac42347c
using System; using System.Globalization; using System.Windows.Data; using Microsoft.TeamFoundation.Common.Internal; namespace Spiral.TfsEssentials.Converters { public class DateTimeFormatConverter : IValueConverter { public object Convert(object value, Type targetType, object parameter, CultureInfo culture) { ...
C#
TfsEssentials2013/Converters/DateTimeFormatConverter.cs
ChristopherHaws/TfsEssentials2013
apache-2.0
823
36
codeparrot/github-code
dc3550e003529261a075c324f871a1c03f92951db717fd831c5591d51535b188
/* * Copyright (c) 2008, The Codehaus. 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 ...
Java
httpcache4j-api/src/main/java/org/codehaus/httpcache4j/payload/FilePayload.java
httpcache4j/httpcache4j
apache-2.0
2,195
74
codeparrot/github-code