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
63cfc58ba87b8adc2af3402ca2451f8bc6b17f8d7716bffa6d3904978bf524a5
package cn.edu.zjnu.acm.judge.core; import java.io.BufferedReader; import java.io.IOException; import java.nio.charset.StandardCharsets; import java.nio.file.Files; import java.nio.file.Path; import java.util.Objects; import java.util.Scanner; /** * @author zhanhb */ public enum SimpleValidator implements Validator...
Java
judge-core/src/main/java/cn/edu/zjnu/acm/judge/core/SimpleValidator.java
zjnu-acm/judge
apache-2.0
2,568
79
codeparrot/github-code
6e93b6da3e74d4839b909f810703d01a633f403cd691e6ddef99aaa681e20fb8
/* * 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/src/main/java/org/apache/druid/curator/CuratorConfig.java
knoguchi/druid
apache-2.0
3,187
131
codeparrot/github-code
45c6065584cb90c6372d09227ab1eb6c5052074288f8750958d4e068dd651f7a
/* * 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-iot/src/main/java/com/amazonaws/services/iot/model/TransferCertificateResult.java
aws/aws-sdk-java
apache-2.0
3,993
127
codeparrot/github-code
7748eeb9c2c216e3ee6e0b8476a64bfc9d532b47d5be50d8292a7d1e1f23eade
// Copyright 2020 PingCAP, Inc. Licensed under Apache-2.0. package task import ( "context" "time" "github.com/opentracing/opentracing-go" "github.com/pingcap/errors" "github.com/pingcap/failpoint" backuppb "github.com/pingcap/kvproto/pkg/brpb" "github.com/pingcap/log" "github.com/pingcap/tidb/br/pkg/conn" b...
GO
br/pkg/task/restore.go
coocood/tidb
apache-2.0
19,913
605
codeparrot/github-code
10c640f73a05ff3bd70b1ec2f48b763db48fa4dbe7f2246150135df6c515b941
package org.vep.models; import javax.persistence.*; import java.util.ArrayList; import java.util.List; /** * Protocol is a series of subjects for specific purpose, may */ @Entity public class Protocol { @Id @GeneratedValue private long id; private String name; @OneToMany(cascade = {CascadeType.PER...
Java
src/main/java/org/vep/models/Protocol.java
maedoc/vep
apache-2.0
920
51
codeparrot/github-code
ed08f4150e06be109005bcf8d4dcdffe0c6e5a492471655b55557dca1368da3d
package com.xjt.crazypic.imagedata.blobcache; import android.graphics.Bitmap; import android.graphics.BitmapFactory; import com.xjt.crazypic.NpApp; import com.xjt.crazypic.common.ApiHelper; import com.xjt.crazypic.common.LLog; import com.xjt.crazypic.common.ThreadPool.Job; import com.xjt.crazypic.common.ThreadPool.J...
Java
src/com/xjt/crazypic/imagedata/blobcache/BlobCacheRequest.java
jituo666/CrazyPic
apache-2.0
3,912
98
codeparrot/github-code
34ac41208c66e3b32b43d0407776c4aec17e8872b952e63483af5747b965f85a
/* * Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" fil...
C
aws-cpp-sdk-s3/include/aws/s3/model/Type.h
ambasta/aws-sdk-cpp
apache-2.0
1,029
42
codeparrot/github-code
a5e73e36adaa4c122b330d1712d664cd651c94db366b80c2822504c9023cf61a
#ifndef __FORWARD_SOURCE_HANDLER_H__ #define __FORWARD_SOURCE_HANDLER_H__ #include "Headers.hpp" #include "SocketHandler.hpp" namespace et { class ForwardSourceHandler { public: ForwardSourceHandler(shared_ptr<SocketHandler> _socketHandler, const SocketEndpoint& _source, ...
C++
src/terminal/forwarding/ForwardSourceHandler.hpp
MisterTea/EternalTCP
apache-2.0
978
43
codeparrot/github-code
ef9befa8c61c0ed5495adda8cffa395dcd2a4a33883e7284e5731fffffa43308
/* * Bean Validation: constrain once, validate everywhere. * * License: Apache License, Version 2.0 * See the license.txt file in the root directory or <http://www.apache.org/licenses/LICENSE-2.0>. */ package org.beanvalidation.specexamples.constraintmetadata; import java.util.List; import java.util.Map; import ...
Java
spec-examples/src/test/java/org/beanvalidation/specexamples/constraintmetadata/EmployeeImpl.java
gunnarmorling/beanvalidation-spec
apache-2.0
865
43
codeparrot/github-code
e569fb8943cc960fae99753e5e6c08852ccf3f9010ca994a6d0ea02c981cede9
/** * Copyright (C) 2006-2013 phloc systems * http://www.phloc.com * office[at]phloc[dot]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/license...
Java
phloc-commons/src/test/java/com/phloc/commons/microdom/impl/MicroTextTest.java
lsimons/phloc-schematron-standalone
apache-2.0
3,740
132
codeparrot/github-code
243261d0bacd4bee9b980c61217a09e3e6a608fafce62a4d2f3714398e66d7b0
package jp.sourceforge.ea2ddl.dao.bsentity.dbmeta; import java.util.List; import java.util.Map; import org.seasar.dbflute.Entity; import org.seasar.dbflute.dbmeta.AbstractDBMeta; import org.seasar.dbflute.dbmeta.info.*; import org.seasar.dbflute.helper.StringKeyMap; import jp.sourceforge.ea2ddl.dao.exentity....
Java
ea2ddl-dao/src/main/java/jp/sourceforge/ea2ddl/dao/bsentity/dbmeta/TObjectDbm.java
taktos/ea2ddl
apache-2.0
31,742
429
codeparrot/github-code
17ee71e7e087f213f91672a6b5fc9b9389735c102b9049e9f074d4e6441ccb6d
package com.jlj.action; import java.net.URLDecoder; import java.util.List; import java.util.Map; import javax.annotation.Resource; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import org.apache.struts2.interceptor.RequestAware; import org.apache.struts2.interceptor.Ser...
Java
src/com/jlj/action/WscprorecommendAction.java
dspjlj/wsp
apache-2.0
6,172
261
codeparrot/github-code
cb46f96bcad5570fa41b4aadcd93805701ce96b89f11af8f4152878e63d10d80
/* Copyright 2019 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, ...
GO
staging/src/k8s.io/component-base/metrics/registry.go
bizhao/kubernetes
apache-2.0
7,205
221
codeparrot/github-code
7b0b42ccd9b53cc1c433f2d78dc914a60e731978d676bdf103954a9f52a75e02
# Copyright (c) 2003-2014 CORE Security Technologies # # This software is provided under under a slightly modified version # of the Apache Software License. See the accompanying LICENSE file # for more information. # # $Id: lsad.py 1106 2014-01-19 14:17:01Z bethus@gmail.com $ # # Author: Alberto Solino # # Description:...
Python
impacket-0.9.11/impacket/dcerpc/v5/lsad.py
hecchi777/S3-SlaacSecuritySolution
apache-2.0
57,687
1,679
codeparrot/github-code
ccd911a0cb3eea4974757d2dcc244e1b257411ee22b30020c79057dc411ceea1
/* * Copyright 2013 Amadeus s.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 obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to i...
JavaScript
test/aria/widgets/container/dialog/escKey/multipleDialogs/EscapeOnModalTest.js
simonarbuckle/ariatemplates
apache-2.0
4,142
116
codeparrot/github-code
12961d7c5f92a142b6f726b47af8111ebf9d8a4f8aad1a8c0f4c4bb8743d6b44
package workload import ( "crypto/md5" "encoding/hex" "fmt" "math" "math/rand" "strconv" "sync" "time" "github.com/pavel-paulau/gateload/api" ) type User struct { SeqId int Type, Name, Channel string } const ChannelQuota = 40 func UserIterator(NumPullers, NumPushers int) <-chan User { num...
GO
workload/workload.go
pavel-paulau/gateload
apache-2.0
4,229
170
codeparrot/github-code
b3add63bf05e307c253d8111e3020a6d0f0740dbb103424aa354beae69132e70
/* * Copyright 2016 Martin Winandy * * 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
tinylog-impl/src/test/java/org/tinylog/writers/raw/OutputStreamWriterTest.java
pmwmedia/tinylog
apache-2.0
1,531
52
codeparrot/github-code
5f9c200a39148d1e06940f51dc2bd0d252088b05d1f22b63f6735bb21a752e4a
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html lang="en-GB" xml:lang="en-GB" xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="content-type" content="text/html; charset=utf-8"/> <title>Statistics of PronType in UD_Ge...
HTML
treebanks/de_hdt/de_hdt-feat-PronType.html
UniversalDependencies/universaldependencies.github.io
apache-2.0
16,368
242
codeparrot/github-code
4fbb4e1234f0d813b84ffdfe883c5229d7a72a2b92f733fbc028348165e34b12
package org.osgl.util.converter; /*- * #%L * Java Tool * %% * Copyright (C) 2014 - 2018 OSGL (Open Source General Library) * %% * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * ...
Java
src/main/java/org/osgl/util/converter/TypeConverterRegistry.java
greenlaw110/java-tool
apache-2.0
18,852
518
codeparrot/github-code
2e01c859d9e14b06716207c311cd5e5818f9c1cabbe8848614c7255be928ed21
/** UserUtil.java * * Copyright 2017 President and Fellows of Harvard College * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * ...
Java
app/util/UserUtil.java
kurator-org/kurator-web
apache-2.0
2,827
87
codeparrot/github-code
2a472c419262d0bec1a787d2d27582738e8ff5052c0a4667332d1ed07c7f9791
package model.map.tile; import model.map.CubeVector; import model.map.tile.nodeRepresentation.NodeRepresentation; import view.renderer.MapRenderer; /** * Created by TheNotoriousOOP on 3/26/2017. * Class Description: a subclass of LandTile * Responsibilities: * can be irrigated to become a pasture tile at a certa...
Java
src/main/model/map/tile/DesertTile.java
TheNotoriousOOP/Iteration3
apache-2.0
807
32
codeparrot/github-code
ac5aa5235784c4cfe0e70192671fc0fd4ad4d2330c18dfde5672226500118bd8
// // Copyright 2016 Cityzen Data // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law o...
Java
warp10/src/main/java/io/warp10/script/functions/URLFETCH.java
StevenLeRoux/warp10-platform
apache-2.0
5,187
172
codeparrot/github-code
c766394f7414a04d94b1dcf5615c4d2d1f7a40cb9428eb3bf70226e1b81533c4
package com.lovecws.mumu.common.core.utils; import java.io.File; import java.io.IOException; import java.net.MalformedURLException; import java.net.URL; import java.security.CodeSource; import java.security.ProtectionDomain; import java.util.Collection; import java.util.Map; import org.apache.commons.lang3.ArrayUtil...
Java
mumu-common/mumu-common-core/src/main/java/com/lovecws/mumu/common/core/utils/DataUtil.java
babymm/mumu
apache-2.0
6,206
258
codeparrot/github-code
a6882cf1362c778c1fdc05f7dfdb0a2bb82841aef7d028128fd4930902920205
package com.w.plugindemo.vu; import android.view.LayoutInflater; import android.view.ViewGroup; import com.w.jinone.base.AnimSwitchEnum; import com.w.jinone.base.BaseVu; import com.w.jinone.base.VuManager; import com.w.plugindemo.R; import butterknife.ButterKnife; import butterknife.OnClick; /** * Created by yutao...
Java
PluginDemo/app/src/main/java/com/w/plugindemo/vu/OneVu.java
qq545057627/JInOne
apache-2.0
877
39
codeparrot/github-code
3eef09f02f1bbfed5ab949484d5112920bf1415ce4f934f7b52a515b8bf42292
import time from django import forms from django.forms.util import ErrorDict from django.conf import settings from django.contrib.contenttypes.models import ContentType from django.utils.crypto import salted_hmac, constant_time_compare from django.utils.encoding import force_text from django.utils.text import get_text_...
Python
opendebates/opendebates_comments/forms.py
boldprogressives/django-opendebates
apache-2.0
7,408
183
codeparrot/github-code
169b9355890ea28b3156c32f1b719b4656937df3518576b52b7f22a6c718156b
package com.github.seykron.webjars.maven; import static org.hamcrest.CoreMatchers.*; import static org.junit.Assert.assertThat; import java.io.ByteArrayOutputStream; import java.io.IOException; import java.io.OutputStreamWriter; import java.io.Writer; import java.util.ArrayList; import java.util.Arrays; import java.u...
Java
webjars-maven-plugin/src/test/java/com/github/seykron/webjars/maven/JsonDependencyGraphWriterTest.java
seykron/webjars-utils
apache-2.0
3,999
112
codeparrot/github-code
49f8bea6b920f56494b84e98f148f4919f81090ab60c3ecc149a699876b9ed02
package org.mitre.synthea.export; import static org.junit.Assert.assertEquals; import ca.uhn.fhir.context.FhirContext; import ca.uhn.fhir.parser.IParser; import ca.uhn.fhir.validation.FhirValidator; import ca.uhn.fhir.validation.ResultSeverityEnum; import ca.uhn.fhir.validation.SingleValidationMessage; import ca.uhn....
Java
src/test/java/org/mitre/synthea/export/FHIRExporterTest.java
cjduffett/synthea
apache-2.0
6,150
143
codeparrot/github-code
b37ff279f463762a25a2d22f0bfaac61117fe5ca60d23a8dca68ac30687936bc
package notebook.server import java.io.{File, InputStream} import java.net.URL import org.apache.commons.io.FileUtils import play.api.libs.json._ import play.api.{Logger, _} import scala.collection.JavaConverters._ import scala.util.control.Exception.allCatch case class NotebookConfig(config: Configuration) { me...
Scala
app/notebook/server/NotebookConfig.scala
antonkulaga/spark-notebook
apache-2.0
4,707
132
codeparrot/github-code
45d30119c378b56c486dfa9b3971265ec4fcf6068bcde748f2d8c3b9d52edabb
/* * Copyright 2014-2021 Lukas Krejci * and other contributors as indicated by the @author tags. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses...
Java
revapi-maven-plugin/src/main/java/org/revapi/maven/SchemaDrivenJSONToXmlConverter.java
revapi/revapi
apache-2.0
13,008
336
codeparrot/github-code
07449fc2bf94031a40dc0a0fad7fee654b4dfeaa711c27a93da1001306934b00
using System; using System.Net; using System.Net.Http; using System.IO; using System.Threading.Tasks; using System.Collections; using System.Collections.Generic; using System.Globalization; using System.Linq; using Restless; using Restless.Extensions; namespace Restless.Deserializers { public class JsonDeserializer...
C#
RestlessSerialization/Deserializers/JsonDeserializer.cs
Muraad/RestlessSerialization
apache-2.0
7,041
296
codeparrot/github-code
bd5ffa9af28d5af381cab325750fc8c75ec93e216c186bf7216890b0bcb1f20b
/* * Copyright 2013-2019 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-netflix-hystrix/src/test/java/org/springframework/cloud/netflix/hystrix/security/HystrixSecurityAutoConfigurationTest.java
joshiste/spring-cloud-netflix
apache-2.0
5,087
126
codeparrot/github-code
14cfc043b0d263ff8bc97a43dcdae936c1e66571f32dfb27466cbf75554a3cdd
/* Copyright 2017 TUBITAK, BILGEM, B3LAB * * Licensed under the Apache License, Version 2.0 (the "License"); you may * not use self 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...
JavaScript
monitor_dashboard/static/dashboard/project/monitor/samples/actions/launch-alarm/modal.service.js
b3lab/safir_monitor_dashboard
apache-2.0
2,916
88
codeparrot/github-code
5ee89fc0037f83984faed9bb3ab5e5b76f14f789839bac4b41abd8ac7307506c
/* * Copyright 2010, 2011, 2012 Christopher Pheby * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by appl...
Java
usertype.core/src/test/java/org/jadira/usertype/unitsofmeaurement/indriya/testmodel/QuantityAndUnitHolder.java
JadiraOrg/jadira
apache-2.0
1,960
72
codeparrot/github-code
2b5bb234e92888857aee9a18ac73c9f6bf9c1b636bef67a1ac86ba94c74efe12
package opensourcedebate.extemp_tub.config; import java.sql.Timestamp; import java.util.ArrayList; import java.util.Date; import java.util.HashMap; import java.util.Iterator; import java.util.Map; import opensourcedebate.extemp_tub.config.Configuration; import org.json.JSONArray; import org.json.JSONObject; public ...
Java
src/main/java/opensourcedebate/extemp_tub/config/DirectoryTree.java
opensourcedebate/Extemp-Tub
apache-2.0
2,975
85
codeparrot/github-code
6dbf709ab478474b780a32f7d62083b494c25d1ba916f15c6f1034736543a161
<!doctype html> <html lang=""> <head> <meta charset="utf-8"> <meta http-equiv="x-ua-compatible" content="ie=edge"> <title></title> <meta name="description" content=""> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="stylesheet" href="{{...
HTML
webserver/templates/glove-controller-raw.html
daniego/rover-webserver
apache-2.0
8,030
203
codeparrot/github-code
c1a1ac19d71a1dd74b47c544280b8d5b73a04298cfdf193e34c093fa7d62df41
/* * 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
eai-portal-webapp-administration/src/test/java/de/unioninvestment/eai/portal/portlet/crud/mvp/views/ui/CrudTableColumnGeneratorTest.java
Union-Investment/Crud2Go
apache-2.0
11,620
336
codeparrot/github-code
e090e1554331e13b5d4e7339d83c71d0efa6d446c7dd8eec4e259e9e37546a58
package org.nmrg.common.utils.email; import java.io.File; import java.util.Map; import org.nmrg.entity.common.EmailEntity; /** * Created by admin on 2017/9/27. */ public interface SpringBootStarterMailService { /** * 发送简单邮件 * * @param email 邮件信息 */ public void sendSim...
Java
src/main/java/org/nmrg/common/utils/email/SpringBootStarterMailService.java
bella0101/websitePortal
apache-2.0
684
42
codeparrot/github-code
2b52b6d60cb01875fb1a90dc1b875ed345393d62545c9fc82d3e52dd7acb1d70
package io.craigmiller160.stockmarket; import org.springframework.beans.BeansException; import org.springframework.beans.FatalBeanException; import org.springframework.beans.factory.config.BeanPostProcessor; import org.springframework.context.ApplicationContext; import org.springframework.context.ApplicationContextAwa...
Java
src/main/java/io/craigmiller160/stockmarket/ModelPostProcessor.java
craigmiller160/StockMarket-2.0
apache-2.0
2,200
65
codeparrot/github-code
56885a353d1abd312fdb23d3dcfd0cd3532c29600f56ee3bfe784f88314e9ed1
package com.rs.game.minigames; import java.util.Collections; import java.util.Iterator; import java.util.LinkedList; import java.util.List; import java.util.TimerTask; import com.rs.cores.CoresManager; import com.rs.game.World; import com.rs.game.WorldObject; import com.rs.game.WorldTile; import com.rs.game.item.Item...
Java
src/com/rs/game/minigames/CastleWars.java
calvinlotsberg/OurScape
apache-2.0
16,392
529
codeparrot/github-code
376f83438e054d9c9327f0673b0e1407ecbefdd59791a4b603662c22c163d001
package ca.uhn.fhir.rest.param.binder; /* * #%L * HAPI FHIR - Core Library * %% * Copyright (C) 2014 - 2021 Smile CDR, Inc. * %% * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * ...
Java
hapi-fhir-base/src/main/java/ca/uhn/fhir/rest/param/binder/BaseBinder.java
SingingTree/hapi-fhir
apache-2.0
2,367
73
codeparrot/github-code
8881a6becf151657ad505cbb1bb554782edcc8ca1a59c3c58d5dc8b2c133b153
/* * Copyright (c) 2018 Evolveum and contributors * * This work is dual-licensed under the Apache License 2.0 * and European Union Public License. See LICENSE file for details. */ package com.evolveum.midpoint.testing.story.security; import static org.testng.Assert.assertEquals; import static org.testng.Assert.as...
Java
testing/story/src/test/java/com/evolveum/midpoint/testing/story/security/TestPrivacy.java
bshp/midPoint
apache-2.0
3,678
98
codeparrot/github-code
2f0094827703d36a928ef395fd715255a4433d918e7d032e932f0f3b378a04b8
/* * * * Copyright 2015-2016 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 * ...
Java
yqboots-security/yqboots-security-core/src/main/java/com/yqboots/security/autoconfigure/SecurityAutoConfiguration.java
zhanhongbo1112/trunk
apache-2.0
6,456
170
codeparrot/github-code
423398c42ec220cdfd93180acdb51ef537d2b458922dc1ee2677cfa6584f4d20
package eu.crushedpixel.littlstar.api.data.upload; import eu.crushedpixel.littlstar.api.data.ApiSend; import eu.crushedpixel.littlstar.api.data.resource.ResourceVisibility; import lombok.AllArgsConstructor; import lombok.Data; import lombok.NoArgsConstructor; /* * Copyright 2015 Marius Metzger - http://crushedpixel....
Java
src/main/java/eu/crushedpixel/littlstar/api/data/upload/UpdateUpload.java
CrushedPixel/littlstar-java-sdk
apache-2.0
1,344
46
codeparrot/github-code
c4c4e78ce67bfaf16ce733b30014ee03cb7e33d73e8ad552b4098cd4a82cf225
import json import os import re import shutil import subprocess import sys import tempfile import textwrap import time import venv # type: ignore import zipfile from typing import Dict from argparse import ArgumentParser from dataclasses import dataclass from pathlib import Path from urllib.request import urlopen f...
Python
scripts/build-dbt.py
fishtown-analytics/dbt
apache-2.0
29,183
935
codeparrot/github-code
a7ff89a74a22553c73b84664edc9ce26cc68dce9bde0e4a22a6efb196814d289
/** * Copyright (c) 2008-2012, http://www.snakeyaml.org * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by appl...
Java
Citysynth_v2/Yaml_reader/snakeyaml/src/test/java/org/yaml/snakeyaml/JavaBeanDumperTest.java
Mohitsharma44/Citysynth
apache-2.0
3,435
109
codeparrot/github-code
2dede752866bd0134b12cc613b9d100e662e4db99ee5283a954e0c1ed7c03f63
/** * Copyright (C) 2017 WhiteSource Ltd. * <p> * 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 * <p> * http://www.apache.org/licenses/LICENSE-2.0 * <p> * Unless required by applicable...
Java
src/main/java/org/whitesource/agent/dependency/resolver/bower/BowerBomParser.java
whitesource/fs-agent
apache-2.0
2,039
60
codeparrot/github-code
13961089abb3df6240d93794d835fe1e9f7dd645558f35b517ad5eb9c0f5a4eb
// Copyright 2000-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file. package com.intellij.refactoring.introduceVariable; import com.intellij.codeInsight.CodeInsightUtil; import com.intellij.codeInsight.completion.JavaCompletionUtil; import com.int...
Java
java/java-impl/src/com/intellij/refactoring/introduceVariable/IntroduceVariableBase.java
paplorinc/intellij-community
apache-2.0
58,693
1,234
codeparrot/github-code
33fa5178c6b71e844d75c53f05847d7efdfd3d75a08e1596e4972a98a5c25627
#requires -Version 5 Configuration SMA { Import-DscResource -Module xSQLServer Import-DscResource -Module xSCSMA # Set role and instance variables $Roles = $AllNodes.Roles | Sort-Object -Unique foreach($Role in $Roles) { $Servers = @($AllNodes.Where{$_.Roles | Where-Object {$_ -eq $Rol...
PowerShell
lib/puppet_x/dsc_resources/xSCSMA/Examples/SCSMA-SeperateSQL-TP.ps1
phongdly/puppetlabs-dsc
apache-2.0
13,406
336
codeparrot/github-code
039330a04c4d37b93cf0968552bf208bac4dec9e274b3c3d4f68129104c6dd52
#!/usr/bin/python # -*- coding: utf-8 -*- # Hive Appier Framework # Copyright (c) 2008-2021 Hive Solutions Lda. # # This file is part of Hive Appier Framework. # # Hive Appier Framework is free software: you can redistribute it and/or modify # it under the terms of the Apache License as published by the Apach...
Python
src/appier/test/model.py
hivesolutions/appier
apache-2.0
28,827
842
codeparrot/github-code
18d2a171d74193122537918720ea7c3ea9b57d5bb7a2ef519594c9b8e1d27c2d
<?php Route::group(['prefix' => 'purchasing/point', 'namespace' => 'Point\PointPurchasing\Http\Controllers\Inventory'], function () { Route::resource('/', 'PurchasingMenuController@index'); Route::group(['middleware' => 'auth'], function () { Route::get('/report/pdf', 'PurchaseReportController@indexPDF...
PHP
packages/point/point-purchasing/src/Http/Routes/purchasing-inventory.php
pringgojs/point-app-test
apache-2.0
11,620
171
codeparrot/github-code
8a4b5ea864067a0b47c79724226dc203929c15c7f2219734ca70b15c08b4d7fb
<!DOCTYPE html> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <meta name="description" content="Javadoc API documentation for MyBatis Generator Core." /> <link rel="shortcut icon" type="image/x-icon" href="../../../../../../../favi...
HTML
mybatis-generator-doc-zh/apidocs/reference/org/mybatis/generator/codegen/ibatis2/dao/elements/InsertMethodGenerator.html
hemingwang0902/doc.javake.cn
apache-2.0
39,715
1,304
codeparrot/github-code
9ecb2d40e0123c1c5c9e525a7e493ae05b1b8426063ae95b6ead5a551042d5e1
package test.util; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertNotNull; import static org.junit.Assert.assertNull; import static org.junit.Assert.fail; import java.util.ArrayList; import java.util.List; import java.util.Random; import org.jfairy.Fairy; import org.junit.Test; im...
Java
src/main/java/test/util/PagingUtilsTest.java
danshannon/javastrava-test
apache-2.0
11,257
352
codeparrot/github-code
7d5fe17ee533cc33d6ca062bada034cfa1b8dc7e0cb26ff6efa883803ae96ffb
#pragma once #include <utils/exceptions.hpp> #include <utils/utils.hpp> #include "cuda.h" #include "cufft.h" #include <iostream> #include <vector> template <class T> class FoldedSubints { private: T* data_ptr; unsigned int nbins; unsigned int nints; double period; float accel; double opt_period; int opt_...
C++
include/data_types/folded.hpp
ewanbarr/peasoup
apache-2.0
1,725
67
codeparrot/github-code
7d815b21a909ea00e7bc6987ddd091fbc73d551db72b544ba1321e476832fbf3
package com.lerx.sys.util; import com.opensymphony.xwork2.ActionSupport; public class IcoUtil { public static String read(ActionSupport as, String flag, int mod) { /* * mod * 0 直接读 * 1取前部分 * 2取后部分 */ String reStr; flag=flag.trim(); String icoFile = as.getText("lerx.bbs.ico." + flag)...
Java
src/com/lerx/sys/util/IcoUtil.java
chenxyzy/cms
apache-2.0
804
52
codeparrot/github-code
74bbe57cb499158535681bac2ae673769c45b095aa0d898b992c3460238851d3
// Copyright 2015 go-fuzz project authors. All rights reserved. // Use of this source code is governed by Apache 2 LICENSE that can be found in the LICENSE file. // +build !nacl // run // Copyright 2014 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be f...
GO
goast/testdata/sinit_run.go
dvyukov/go-fuzz-corpus
apache-2.0
885
44
codeparrot/github-code
cf7b21c35d93ef9c24e409f8d4d5ede64839158d3a89066822d68df6269563f8
/* The contents of this file are subject to the license and copyright terms * detailed in the license directory at the root of the source tree (also * available online at http://fedora-commons.org/license/). */ package org.fcrepo.test.api; import org.fcrepo.common.PID; import org.fcrepo.server.management.FedoraAPI...
Java
fcrepo-integrationtest/fcrepo-integrationtest-core/src/main/java/org/fcrepo/test/api/TestRESTAPIConfigQ.java
fcrepo4-archive/fcrepo
apache-2.0
3,240
91
codeparrot/github-code
fd06284b0c5b109bd3ef8746b51e5ca9840561556e509b7c4270b8c710d84f89
package ca.uhn.fhir.jpa.subscription.model.config; /*- * #%L * HAPI FHIR Subscription Server * %% * Copyright (C) 2014 - 2021 Smile CDR, 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 ...
Java
hapi-fhir-jpaserver-subscription/src/main/java/ca/uhn/fhir/jpa/subscription/model/config/SubscriptionModelConfig.java
SingingTree/hapi-fhir
apache-2.0
1,385
42
codeparrot/github-code
1c04bf86f3e6cee06447c014d787362d92bd0cdfe03cfe08419ca51d6a3df5eb
// // BSNetworkServer.h // Neighbor // // Created by lbs on 2020/3/28. // Copyright © 2020 lbs. All rights reserved. // #import <Foundation/Foundation.h> @class BSNetworkBaseRequest; @class BSNetworkBaseResponse; // 请求完成的回调 typedef void (^BSRequestCompleteBlock)(BSNetworkBaseResponse * _Nonnull response); NS_AS...
C
BSNetwork/网络层/基础服务/BSNetworkServer.h
LvBisheng/BSNetwork
apache-2.0
815
36
codeparrot/github-code
063dd6839900102a7fdca6af89c661c81530cad1caf1c6e3ca6187373a359ddc
package cn.jin.utils; /** * * 获取网络路径的文件名字的工具类 * Created by Jin on 2016/5/25. */ public class NameUtil { /** * * @param url 图片路径 * @param hasexit 是否有扩展名 true 有 false 无 * @return 名字 */ public static String getPicName(String url,boolean hasexit){ L.e("NameUtil getPicName ...
Java
jinlib/src/main/java/cn/jin/utils/NameUtil.java
Jeff518/JinBase
apache-2.0
1,031
43
codeparrot/github-code
e54f297a410217ae5087014d10d36d2f44ef6163427c21cbfa2771a99f85575f
// Copyright 2000-2020 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file. package com.intellij.lang.properties.psi.codeStyle; import com.intellij.application.options.codeStyle.OptionTableWithPreviewPanel; import com.intellij.lang.Language; import com.i...
Java
plugins/properties/src/com/intellij/lang/properties/psi/codeStyle/PropertiesCodeStyleSettingsPanel.java
leafclick/intellij-community
apache-2.0
1,172
36
codeparrot/github-code
84df0878c1ee59be767ba0b1207fa302adf5110a426e6ba0c76a01babaa2b18d
/** * Copyright 2013 www.codereligion.com * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable la...
Java
src/test/java/com/codereligion/beast/object/MissingDefaultConstructor.java
codereligion/beast
apache-2.0
2,165
77
codeparrot/github-code
2f00c505094d11cacbecb9b8079102ce9a8bbc0f29779b2b4e7974f022044d04
package com.belladati.sdk.dataset.impl; import java.util.Date; import java.util.Locale; import com.belladati.sdk.dataset.DataSet; import com.belladati.sdk.dataset.DataSetInfo; import com.belladati.sdk.dataset.data.DataRow; import com.belladati.sdk.impl.BellaDatiServiceImpl; import com.belladati.sdk.util.PaginatedIdLi...
Java
src/main/java/com/belladati/sdk/dataset/impl/DataSetInfoImpl.java
BellaDati/belladati-sdk-java
apache-2.0
2,439
111
codeparrot/github-code
7a646ce7667e5e214cfc9fa9bbed85af780d86009f61a9bd66bcf5b01e3ba195
/* * #%L * %% * Copyright (C) 2020 BMW Car IT 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 app...
Java
java/common/discovery-common/src/main/java/io/joynr/capabilities/CapabilityUtils.java
bmwcarit/joynr
apache-2.0
8,600
179
codeparrot/github-code
2c727cf98e5355dfeaaf4d164c2bbe887190bb5cbc2e1c1d5de2aad98fdc9f52
package me.fns.gwt.datehandling.client; import junit.framework.Test; import junit.framework.TestCase; import me.fns.gwt.datehandling.client.util.CSTimeUtilTestGwt; import com.google.gwt.junit.tools.GWTTestSuite; /** * <p> * GWT Date Handling Example Test Suite. * </p> * <p> * See <a href= * "https://developers...
Java
src/test/java/me/fns/gwt/datehandling/client/GwtExampleTestSuite.java
fastnsilver/gwt-datehandling-example
apache-2.0
753
31
codeparrot/github-code
cd687b8636dd2b5c926ba44ca4a2e9c5d57c55fed58537d721b4529245b0888f
package com.gss.gmo.cao.integration.xmpp.component.outbound; import static org.springframework.util.Assert.isTrue; import org.springframework.messaging.Message; import org.xmpp.packet.Presence; import com.gss.gmo.cao.integration.xmpp.component.core.AbstractComponentManagerAwareMessageHandler; import com.gss....
Java
gmo-cao-integration-xmpp-component/src/main/java/com/gss/gmo/cao/integration/xmpp/component/outbound/PresenceSendingMessageHandler.java
linuschien/Java
apache-2.0
1,164
38
codeparrot/github-code
2a6c16607ed793c6fe6dfe1d1f3ca05f8fa97c1b63de5aeebae50791f069b707
/* * Copyright (c) 2009-2018, toby weston & tempus-fugit committers * * 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...
Java
src/test/java/com/google/code/tempusfugit/concurrency/RepeatingAnnotation.java
tobyweston/tempus-fugit
apache-2.0
996
32
codeparrot/github-code
5ead49879dd3013d50fda51d18f9cca3d09d1e6a922ed940360f7b2f2435d0c4
/* This file is part of VoltDB. * Copyright (C) 2008-2013 VoltDB Inc. * * 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...
Java
voltdb-3.7/examples/voltkv/src/voltkv/AsyncBenchmark.java
vtorshyn/voltdb-shardit-src
apache-2.0
22,506
530
codeparrot/github-code
0345edf379850e4e31fb1aec67d590c57d94980b5117d1230c0fcec248b2fcae
/* * Copyright (c) 2016 Intel Corporation * * SPDX-License-Identifier: Apache-2.0 */ /** * @file * @brief Nios II specific kernel interface header * This header contains the Nios II specific kernel interface. It is * included by the generic kernel interface header (include/arch/cpu.h) */ #ifndef ZEPHYR_INCL...
C
include/arch/nios2/arch.h
kraj/zephyr
apache-2.0
6,785
211
codeparrot/github-code
fe3490fc5b773468b50129fa9e03c1b6e00446c0c2872a6a738321818af53d61
package org.jetbrains.plugins.scala.project.migration import com.intellij.codeInspection.{InspectionManager, ProblemsHolder} import com.intellij.openapi.module.ModuleManager import com.intellij.openapi.progress.{ProgressIndicator, Task} import com.intellij.openapi.project.Project import com.intellij.openapi.roots.Modu...
Scala
scala/scala-impl/src/org/jetbrains/plugins/scala/project/migration/ScalaMigrationRunner.scala
jastice/intellij-scala
apache-2.0
5,229
154
codeparrot/github-code
fd5e41c8af89d0a0faa74ac8df16162eae3724cfe09d856e4491a9789f48603d
// Copyright 2000-2019 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file. package com.intellij.psi.impl.source.tree.injected; import com.intellij.lang.ASTNode; import com.intellij.lang.Language; import com.intellij.lang.StdLanguages; import com.intell...
Java
java/java-impl/src/com/intellij/psi/impl/source/tree/injected/MyTestInjector.java
paplorinc/intellij-community
apache-2.0
15,371
337
codeparrot/github-code
1ecdfbbe86b4a235190e544f378059a494818dd1fd636d88bf8aed7bd19167c8
/* * Copyright 2015-2016 Red Hat, Inc, and individual contributors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless require...
Java
app/src/main/java/org/jboss/hal/client/runtime/server/StandaloneServerPresenter.java
hal/hal.next
apache-2.0
17,289
368
codeparrot/github-code
517442dece089fb452314b799e98be9ed1f7356c62d43d90172405a887bb809e
var assert = require('assert') , moment = require('moment-timezone') , DateOnly = require('../') ; describe('DateOnly', function() { it('should accept a DateOnly as a parameter', function() { var dateOnly = new DateOnly(20000001); dateOnly = new DateOnly(dateOnly); assert.equal(dateOnly.year, ...
JavaScript
test/index.js
boblauer/dateonly
apache-2.0
3,518
105
codeparrot/github-code
35ce95bafdd1f55891593884c3239e777f998f181a57863dfb1c8207b5e1b654
require.config({ paths: { jquery: 'vendor/jquery-2.2.3.min', underscore: 'vendor/underscore-min', backbone: 'vendor/backbone-min', p5 : "vendor/p5.min", squiggle: 'squiggle', Tween : "vendor/Tween", saveAs : "vendor/FileSaver.min" }, shim: { backbone: { ...
JavaScript
js/main.js
piterwilson/squiggle-animation-tool
artistic-2.0
1,563
66
codeparrot/github-code
5cab97dcf57c368e7174622a85d36ce673dceb24b2471657a9151873d7a67c8f
/* * Thibaut Colar Aug 20, 2009 */ package net.colar.netbeans.fan.debugger; import net.colar.netbeans.fan.FanUtilities; import org.netbeans.api.debugger.DebuggerEngine.Destructor; import org.netbeans.spi.debugger.DebuggerEngineProvider; /** * UNUSED, so far * * Debugger engine impl. * Gets registered with Anno...
Java
src/net/colar/netbeans/fan/debugger/FanDebuggerEngineProvider.java
tcolar/fantomidemodule
artistic-2.0
1,105
57
codeparrot/github-code
c86ec617cfda6dec72961e5531ff4bfbf587e8ec025d41ac9ad748924cf464a0
define([ "underscore", "backbone", "views/snippet", "views/temp-snippet", "helper/pubsub" ], function( _, Backbone, SnippetView, TempSnippetView, PubSub ){ return SnippetView.extend({ events:{ "click" : "preventPropagation" //stops checkbox / radio reacting. , "mousedown" ...
JavaScript
main/admin/js/Bootstrap-Form-Builder-gh-pages/assets/js/views/my-form-snippet.js
eos-13/YaCMS
artistic-2.0
3,033
101
codeparrot/github-code
9579bdfa4b3039b425ec011262152c11caeb14e3304a7b7334add6f93bf50786
package byte_tree import ( "fmt" "github.com/kentik/patricia" ) // this is IPv6 tree code that's not very copy/paste friendly for when we transfer IPv4 code to IPv6 // create a new node in the tree, return its index func (t *TreeV6) newNode(address patricia.IPv6Address, prefixLength uint) uint { availCount := le...
GO
byte_tree/tree_v6_manual.go
Kentik/patricia
bsd-2-clause
1,124
32
codeparrot/github-code
cd27ed849f3e8731f39e0ed3e4e31fe3f8ddc1e31e4ad92ac6c18f0112446233
# pylint:disable=consider-using-with from typing import List, Dict import json import subprocess import argparse import tempfile import os import itertools from collections import defaultdict import angr UNIQUE_STRING_COUNT = 20 # strings longer than MAX_UNIQUE_STRING_LEN will be truncated MAX_UNIQUE_STRING_LEN = 70...
Python
angr/flirt/build_sig.py
angr/angr
bsd-2-clause
10,375
318
codeparrot/github-code
6de15c932a9c42138a501493454c2e61e840dd7409c05f3287911ee36815eabf
package de.htwg.zeta.parser.style import scala.util.parsing.input.Positional import scalafx.scene.paint.Color sealed abstract class StyleAttribute(val attributeName: String) extends Positional object StyleAttribute { // style dsl attribute names val backgroundColor = "background-color" val fontBold = "font-b...
Scala
api/parser/src/main/scala/de/htwg/zeta/parser/style/StyleParseTree.scala
Zeta-Project/zeta
bsd-2-clause
2,676
61
codeparrot/github-code
87e282e0f9faa54ca7cc2ee66e26e3990e1d846351bb58ab6ff7d8ca8f71986a
require "formula" class Jenkins < Formula homepage "http://jenkins-ci.org" url "http://mirrors.jenkins-ci.org/war/1.591/jenkins.war" sha1 "7759da4968f7f2cf41b728f13550c361a76cd52e" head "https://github.com/jenkinsci/jenkins.git" def install if build.head? system "mvn clean install -pl war -am -Ds...
Ruby
Library/Formula/jenkins.rb
mjbshaw/homebrew
bsd-2-clause
1,355
49
codeparrot/github-code
8cde60de3a5169968580ecb8049f6c1450b40996efb0e223c5b997cc9d6121eb
############################################################################### # Copyright 2015-2020 University of Florida. All rights reserved. # This file is part of UF CTS-IT's NACCulator project. # Use of this source code is governed by the license found in the LICENSE file. #######################################...
Python
nacc/uds3/np/builder.py
ctsit/nacculator
bsd-2-clause
5,859
174
codeparrot/github-code
9aeb558b763e6b4a438da12f8c6df0a9b832f4bb8ddcc7321ff2388bea911aa6
namespace Lombiq.Vsix.Orchard.Models { public interface IResult { bool Success { get; } string ErrorCode { get; } } public class Result : IResult { private static IResult _successResult; public static IResult SuccessResult { g...
C#
Lombiq.Vsix.Orchard/Models/Result.cs
Lombiq/Lombiq-Visual-Studio-Extension
bsd-2-clause
742
34
codeparrot/github-code
ec3fe54919e9018c12944160e21caee835b9da3bec65ab655e958b0ac3850502
package net.cattaka.android.foxkehrobo.data; public enum OpCode { ECHO((byte)0), // SERVO_ANGLES((byte)1), // EYE_LEDS((byte)2), // POSE((byte)3), // REQ_ACCEL((byte)4), // RES_ACCEL((byte)5), // UNKNOWN((byte)-1); private byte value; private OpCode(byte value) { this.va...
Java
FoxkehRobo/src/net/cattaka/android/foxkehrobo/data/OpCode.java
cattaka/adkworks
bsd-2-clause
609
33
codeparrot/github-code
0de2c8fc52ab33840853ec95b92fe97a351cc4478203325c623492e00d3ea701
import numpy as np def conjunction(stats, ps=None): """Run a conjunction test. Parameters ---------- stats : np.array([float, ...]) A list of statistics, e.g *t*-values. ps : np.array([float, ...]), None A list of (optional) p-values matching elements in stats. ...
Python
stats.py
parenthetical-e/modelmodel
bsd-2-clause
1,951
60
codeparrot/github-code
2b1a6424eb944c3f236b455735f1c3ed08a704c4e9cb87c0e844d2bc25cdbda9
/* NicEdit - Micro Inline WYSIWYG * Copyright 2007-2014 Brian Kirchoff * * NicEdit is distributed under the terms of the MIT license * For more information visit http://nicedit.com/ * Do not remove this copyright message * * Japanese Version * Translated and Customized by CMONOS (http://cmonos.jp) * Last-Modif...
JavaScript
tecfolio/public_html/js/nicEdit.js
tec-admin/tecsystem
bsd-2-clause
62,137
1,962
codeparrot/github-code
21905c4ecf2832585cb40e20171b380437decc77996285c9577613942bbc4900
// Copyright 1998-2015 Epic Games, Inc. All Rights Reserved. #pragma once #include "NiagaraEditorCommon.h" class UNiagaraNode; class UNiagaraDataObject; //Interface for Niagara compilers. class UNREALED_API INiagaraCompiler { public: /** Compiles a script. */ virtual bool CompileScript(class UNiagaraScript* InSc...
C
Engine/Source/Editor/UnrealEd/Public/INiagaraCompiler.h
PopCap/GameIdea
bsd-2-clause
3,557
66
codeparrot/github-code
4dd32e2494ef499bba2d4639c0dcf4219041cf82546373f749faede779e1a7d6
package lodi; import junit.framework.Test; import junit.framework.TestCase; import junit.framework.TestSuite; /** * Unit test for simple App. */ public class AppTest extends TestCase { /** * Create the test case * * @param testName name of the test case */ public AppTest( String tes...
Java
location-disambiguation/src/test/java/lodi/AppTest.java
CSSIP-AIR/PatentsProcessor
bsd-2-clause
632
39
codeparrot/github-code
031f3df11400c8e61ce2f5b20910ab81644399e0dd417860ffa27f64622ad830
class Cython < Formula desc "Compiler for writing C extensions for the Python language" homepage "https://cython.org/" url "https://files.pythonhosted.org/packages/f0/f8/7f406aac4c6919d5a4ce16509bbe059cd256e9ad94bae5ccac14094b7c51/Cython-0.29.1.tar.gz" sha256 "18ab7646985a97e02cee72e1ddba2e732d4931d4e1732494ff3...
Ruby
Formula/cython.rb
git-lfs/homebrew-core
bsd-2-clause
1,758
48
codeparrot/github-code
a172a715c3bb36c06e2be47f04464bcb4cdd25b58131e41df8ddfb69aac8f4dd
#! /usr/bin/env python # -*- mode: python; coding: utf-8 -*- # Copyright 2018 the HERA Collaboration # Licensed under the 2-clause BSD license. """Gather correlator log outputs and log them into M&C.""" import sys import json import redis import socket import logging from astropy.time import Time from hera_mc impor...
Python
scripts/mc_listen_to_corr_logger.py
HERA-Team/hera_mc
bsd-2-clause
3,281
111
codeparrot/github-code
2bb6079d1777980529e2db728d955e466510d30696176ebdc2fc3a10805a6423
#ifndef UINPUTDEVICE_H #define UINPUTDEVICE_H #include <linux/input.h> #include <stdio.h> #include <fcntl.h> #include <unistd.h> #include <memory.h> #include <linux/uinput.h> #include <iostream> #include <string> #include <vector> class UinputDevice { public: struct PossibleEvent { unsigned int type; std...
C
include/uinputdevice.h
bzar/funkeymonkey
bsd-2-clause
3,603
141
codeparrot/github-code
7ac23966751cbfc37b1a0a4546c9b40a3c5de0a5ef0f85cb154f49eef84e5769
/* Copyright (c) 2018, Lars Brubaker, John Lewin 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. Redistributions of source code must retain the above copyright notice, this list of conditions and...
C#
MatterControlLib/ApplicationView/Config/PrinterConfig.cs
jlewin/MatterControl
bsd-2-clause
12,595
356
codeparrot/github-code
1a43bcc67674cccf287e96f52822e1dd217bc5300473824176d93eec4d466524
package pfps; import java.awt.Point; import java.awt.event.KeyEvent; import java.awt.event.KeyListener; import java.awt.event.MouseEvent; import java.awt.event.MouseMotionListener; public class Input implements KeyListener, MouseMotionListener { private MyFrame frame_; private boolean W_ = false; pri...
Java
src/pfps/Input.java
dlarudgus20/pfps
bsd-2-clause
2,455
116
codeparrot/github-code
66408e00cf22ab018452468c9cc185c60ff9c603d7b09743cfadd0b9d8d8a565
/*++ Copyright (C) 2019 3MF Consortium 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. Redistributions of source code must retain the above copyright notice, this list of conditions and the followi...
C
Include/Model/Classes/NMR_KeyStoreConsumer.h
3MFConsortium/lib3mf
bsd-2-clause
2,226
64
codeparrot/github-code
106bc0c1080338bca59723841510087ed96f1451017afad839dbb3babb9010a3
package org.newdawn.slick.thingle.demos; import org.newdawn.slick.AppGameContainer; import org.newdawn.slick.BasicGame; import org.newdawn.slick.GameContainer; import org.newdawn.slick.Graphics; import org.newdawn.slick.SlickException; import org.newdawn.slick.thingle.Page; import org.newdawn.slick.thingle.Thi...
Java
slick_dev/trunk/thingle/src/org/newdawn/slick/thingle/demos/ThingleSkinTest.java
SenshiSentou/SourceFight
bsd-2-clause
2,128
78
codeparrot/github-code
981b809ce60328fa3d4d294059a3bb57bbe31734ce29cea8dc3b2cc7c3ab82f8
// Copyright 1998-2015 Epic Games, Inc. All Rights Reserved. #pragma once #include "OnlineDelegateMacros.h" #include "OnlineStoreInterface.generated.h" /** * Possible result states of an in-app purchase transaction */ UENUM(BlueprintType) namespace EInAppPurchaseState { enum Type { Success = 0 UMETA(DisplayName...
C
Engine/Source/Runtime/Online/OnlineSubsystem/Public/Interfaces/OnlineStoreInterface.h
PopCap/GameIdea
bsd-2-clause
7,650
259
codeparrot/github-code
868c3d7eae6e91d0bd611157477bcea5c1f8350a2c9d4daa87f6a985a6b85a1b
<?php use Migrations\AbstractSeed; class InstancesUsersSeed extends AbstractSeed { public function run() { $faker = Faker\Factory::create(); $faker->seed(1111); $data = []; $offset = 8; for ($i = 1 + $offset; $i < 50; $i++) { // register user $da...
PHP
config/Seeds/InstancesUsersSeed.php
mpavezb/conectados-al-sur
bsd-2-clause
2,118
69
codeparrot/github-code
1085e5d1704fa843b0b31f825f95c27ef3177ab478ae640ab460bbc0adb42e85
#include <algorithm> #include <cassert> #include <cstdio> #include <iostream> #include <sstream> #include <string> #include <vector> #include <cstring> using namespace std; bool is_square[10001]; int win[10001], lose[10001]; string to_str(int x) { ostringstream os; os << x; return os.str(); } c...
C++
tc 160+/PowerGame.cpp
ibudiselic/contest-problem-solutions
bsd-2-clause
3,165
92
codeparrot/github-code
cd30b7722ddfbdf43226ab2127b294311e07a6c5690d7115e9b73f458204123c
import json from channels import Group as ChannelGroup from django.contrib.sites.shortcuts import get_current_site from django.db import transaction from django.db.models import Q from registration import signals from registration.models import RegistrationProfile from registration.views import RegistrationView from r...
Python
onadata/apps/users/viewsets.py
awemulya/fieldsight-kobocat
bsd-2-clause
10,959
258
codeparrot/github-code
f6c7ef86e4d6e7be52220ec9269bef6a54f7104945750c602f0833fe72eaa256
<?php # Copyright (c) 2017, CESNET. All rights reserved. # # Redistribution and use in source and binary forms, with or # without modification, are permitted provided that the following # conditions are met: # # o Redistributions of source code must retain the above # copyright notice, this list of conditions and...
PHP
lib/modules/vds/lib/SubSourceDef.php
mlcit/pakiti3
bsd-2-clause
2,536
102
codeparrot/github-code
78fd328234c4d5beec23b9e4a4458169320032c7a566ca120f8a385cafabfb9b
using UnityEngine; using System.Collections.Generic; using System; namespace EA4S { public class IntroStrollingLetterFallingState : IntroStrollingLetterState { LetterObjectView view; float fallSpeed = 0; public IntroStrollingLetterFallingState(IntroStrollingLetter letter) : base(lette...
C#
finalApprovedVersion/Antura/EA4S_Antura_U3D/Assets/_app/_scripts/Intro/IntroStrollingLetterFallingState.cs
Norad-Eduapp4syria/Norad-Eduapp4syria
bsd-2-clause
1,187
52
codeparrot/github-code
68723c3a496dbe8d563e5c8457f0904550ad6bab0db45401a781e57faa9b50e5
/* -*- mode: java; c-basic-offset: 8; indent-tabs-mode: t; tab-width: 8 -*- */ package vib; import ij.ImagePlus; import ij.measure.Calibration; import java.util.StringTokenizer; import java.util.Vector; import math3d.FastMatrixN; import math3d.JacobiDouble; import math3d.Point3d; import math3d.Triangle...
Java
lib/VIB-lib-master/src/main/java/vib/FastMatrix.java
yajunyang/BioImage
bsd-2-clause
33,995
1,119
codeparrot/github-code