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
d7fc5940cea5ad8e8a4449f358de2791752fd03221ac890bdadcfd526056b53d
using System; using OpenCvSharp.Internal; using OpenCvSharp.Internal.Vectors; // ReSharper disable UnusedMember.Global namespace OpenCvSharp.Face { /// <summary> /// Abstract base class for all facemark models. /// /// All facemark models in OpenCV are derived from the abstract base class Facemark, ...
C#
src/OpenCvSharp/Modules/face/Facemark/Facemark.cs
shimat/opencvsharp
apache-2.0
2,360
64
codeparrot/github-code
2e956d0dd03cd210bb6f951d5b82fad96be38110f3968d3eda30f69f8ca1e9aa
//The following copyright message should appear at the top of all //source files. This file can be removed from your repository. //Copyright (c) 2014 TvMan. 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 ...
JavaScript
r/r.js
TvMan/libs
apache-2.0
2,010
53
codeparrot/github-code
5afd2d2486b4cef03fa23d17221cfddcba769c50eb04094d7185d9ec54fc1f35
/* * Copyright 2014 Facebook, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to...
C
folly/io/Cursor.h
zunc/folly
apache-2.0
19,546
749
codeparrot/github-code
ba376c72de8e2b9a47a4137eec77d1e39029aa06988f69bae201e1bf6879c493
package com.eusecom.exforu; import android.os.Bundle; import android.util.Log; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.Toast; import android.support.v4.app.Fragment; public class FragmentBlue extends Fragment implements FragmentLifecycle { p...
Java
src/com/eusecom/exforu/FragmentBlue.java
eurosecom/exforu
apache-2.0
945
34
codeparrot/github-code
840cfa40254e1c45f7b4e97679e4cf32702a09e94f39e4502621f8843aaf6f6d
import styled from 'styled-components' import type { TTestable } from '@/spec' import css from '@/utils/css' import { getWidth, getHeight } from './metric' export const Wrapper = styled.div.attrs(({ testid }: TTestable) => ({ 'data-test-id': testid, }))<TTestable & { size: string }>` position: relative; ${css....
TypeScript
src/widgets/Folder/styles/index.ts
mydearxym/mastani
apache-2.0
986
41
codeparrot/github-code
c25554631d14918a559c37b55b302e36407c45a72e5bd13015271e5e947d15ec
/* * (C) Copyright IBM Corp. 2017, 2020. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed t...
Java
discovery/src/main/java/com/ibm/watson/discovery/v1/model/DeleteTrainingExampleOptions.java
watson-developer-cloud/java-sdk
apache-2.0
4,808
177
codeparrot/github-code
62c9e0d9655ff8457e01c8a7e98ea48ae08605cf23e2de99a9ae8f29b70d63f7
// Copyright (c) 2021 Alachisoft // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or...
C#
Src/NCCommon/Protobuf/GetEnumeratorResponse.cs
Alachisoft/NCache
apache-2.0
1,499
34
codeparrot/github-code
1c53f88613fb9f6dd6a07d32fbe0887e1dcf20c12817edf22242829aea7928ab
/* * The MIT License * * Copyright 2015 Thibault Debatty. * * 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...
Java
src/test/java/info/debatty/java/stringsimilarity/CosineTest.java
tudarmstadt-lt/QASelection
apache-2.0
1,993
70
codeparrot/github-code
16087795588eb1df7acb65e147cf01ae4c3eec546f3ac9ae0efa8332880fa640
/** * Copyright 2014 Andreas Schildbach * * 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
core/src/test/java/com/google/sha1coin/protocols/payments/PaymentProtocolTest.java
ohac/sha1coinj
apache-2.0
7,249
161
codeparrot/github-code
3c176fe0415050e53089085d267b6b3cb2fd3322f577e3fd53657271cb3af81d
/* * Copyright 2013-2016 iNeunet OpenSource and 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
knife-mgt/src/main/java/com/ineunet/knife/mgt/log/MgtLog.java
ineunetOS/knife
apache-2.0
2,540
122
codeparrot/github-code
099ec465f707190563a210fe1a74bbf435dad1ebf4cc8b0f530a22e0bef87435
/* @flow strict-local */ import React, { PureComponent } from 'react'; import type { Node as React$Node } from 'react'; import * as api from '../api'; import CompatibilityScreen from '../start/CompatibilityScreen'; type Props = $ReadOnly<{| children: React$Node, |}>; type State = {| compatibilityCheckFail: boole...
JavaScript
src/boot/CompatibilityChecker.js
vishwesh3/zulip-mobile
apache-2.0
812
37
codeparrot/github-code
82f8b828e15e51058397e11873f7c8f28985237ed3838608e21556a26e5f8f58
import json import logging import os import re from .. import auth from .. import constants from .. import errors from .. import utils log = logging.getLogger(__name__) class BuildApiMixin(object): def build(self, path=None, tag=None, quiet=False, fileobj=None, nocache=False, rm=False, stream=Fal...
Python
docker/api/build.py
vpetersson/docker-py
apache-2.0
13,266
323
codeparrot/github-code
455cd6ef3f098246924e31263b7fe44e8368db20dcd37e4ff4c2ba7fa5131d17
/* * Copyright 2015-2016 David R. Bild * * 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...
Scala
play-json/src/main/scala/com/github/nscala_money/money/json/play/JodaMoneyWrites.scala
nscala-money/nscala-money
apache-2.0
2,530
66
codeparrot/github-code
98a98aed060a975766e787f43d3c71214474a207f3eac81f6aa94467a5b19af3
/** * Copyright (C) 2015 The Gravitee team (http://gravitee.io) * * 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 requ...
Java
src/main/java/io/gravitee/policy/groovy/sandbox/SecuredAnnotationCustomizer.java
gravitee-io/gravitee-policy-groovy
apache-2.0
2,465
67
codeparrot/github-code
fc169f2ddcbe7a0fcf76f33a3bbbcf894900379584c397e7b299ab5a951bf24c
import { setPropertiesFromJSON } from '../../json-helper'; import ObservationComponent from '../finding/ObservationComponent'; /** * Generated class for shr.oncology.MitoticCountScore. * @extends ObservationComponent */ class MitoticCountScore extends ObservationComponent { /** * Get the value (aliases quant...
JavaScript
src/model/shr/oncology/MitoticCountScore.js
standardhealth/flux
apache-2.0
1,398
56
codeparrot/github-code
2f6883b778842cd22374b54fe88a291ae3f8614d798db3d65edfd0b60619451b
import numpy as np from ray.rllib.models.modelv2 import ModelV2 from ray.rllib.models.preprocessors import get_preprocessor from ray.rllib.models.tf.recurrent_net import RecurrentNetwork from ray.rllib.models.torch.recurrent_net import RecurrentNetwork as TorchRNN from ray.rllib.utils.annotations import override from ...
Python
rllib/examples/models/rnn_model.py
ray-project/ray
apache-2.0
5,133
142
codeparrot/github-code
2181f6011235ab57ff2c745e1fb5fe28156d28d53042d382b79c1601bf90a26d
/* * 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
extras/rya.pcj.fluo/pcj.fluo.api/src/main/java/org/apache/rya/indexing/pcj/fluo/api/GetQueryReport.java
pujav65/incubator-rya
apache-2.0
9,772
253
codeparrot/github-code
7e43cf4ce8e6517857ee60b96b44d03fc2da98a77425cc63e17fb34cf70d6c15
<?php /** * Venti plugin * * * @link http://tippingmedia.com * @copyright Copyright (c) 2017 tippingmedia */ namespace tippingmedia\venti\models; use tippingmedia\venti\Venti; use tippingmedia\venti\models\Group; use tippingmedia\venti\services\Rule; use tippingmedia\venti\services\Groups; use tippingmedia...
PHP
src/models/Event.php
tippingmedia/venti
apache-2.0
8,333
414
codeparrot/github-code
58abf47f0dfdd47b3cb21fbd7c0dc4c35dc55c82c08e3f45815b74ac0e7febe0
#MenuTitle: Set Preferred Names (Name IDs 16 and 17) for Width Variants # -*- coding: utf-8 -*- __doc__=""" Sets Preferred Names custom parameters (Name IDs 16 and 17) for all instances, so that width variants will appear in separate menus in Adobe apps. """ thisFont = Glyphs.font # frontmost font widths = ( "Narrow"...
Python
Font Info/Set Preferred Names (Name IDs 16 and 17).py
schriftgestalt/Mekka-Scripts
apache-2.0
1,956
42
codeparrot/github-code
a5219b3d530bc0c58075916949950b27cb77204512d98598be191260fe24c7c0
/* * 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
src/java/org/apache/cassandra/io/sstable/metadata/LegacyMetadataSerializer.java
chaordic/cassandra
apache-2.0
7,469
152
codeparrot/github-code
80d6b657e1c9cd7be01307d6720b2fc2ddfa2b103ee2ab6bce80107e5d34f78a
$(function(){ getLaborsafetyContent(); // getlist(); // 測試用 // getListContent('list','list','div_content','',true); }); //影印 function print(){ $("#div_print").printArea(); } function getLaborsafetyContent(){ $.getJSON(configObject.logbookGetData,{type: "laborsafety"}, function( rs ) { // conso...
JavaScript
public/include/js/contentpages/logbook/logbook.js
ChenWenChou/Construct-Managemen
apache-2.0
12,738
394
codeparrot/github-code
3360009b001c36cf14a65db2cfa358df4495b3e81b6f280f38edbee3b5cbfa37
package sample { package lib { import scala.xml.{Text, NodeSeq} import net.liftweb.common.{Box,Full,Empty,Failure} import net.liftweb.util.NamedPF import net.liftweb.util.Helpers._ import net.liftweb.http.{SHtml,S,RewriteRequest,RewriteResponse,ParsePath} import net.liftweb.sitemap.Loc import net.liftweb.mapper.{Order...
Scala
chapter-7/src/main/scala/sample/lib/Wiki.scala
timperrett/lift-in-action
apache-2.0
4,719
145
codeparrot/github-code
1f5c457de209ab5139614b28b11a245f48055fb32c418a34a5c3deaa91466ecc
/* * 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 applic...
Java
Alkitab/src/main/java/com/google/samples/apps/iosched/ui/widget/SlidingTabStrip.java
Jaden-J/androidbible
apache-2.0
5,746
167
codeparrot/github-code
5b92857457cf8be6f1259f285122fafc1bb27981940caca118637ce39c39039c
namespace HanRuEdu.LDAL { using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; [MetadataType(typeof(EDU_OAXT_39_A03_GWLZ_metadata))] public partial class EDU_OAXT_39_A03_GWLZ { public EDU_OAXT_39_A03_GWLZ() { XFRID = ""; ...
C#
export/model/HANRU/OAXT/EDU_OAXT_39_A03_GWLZ_MODEL.cs
shinkxw/DataAnalysisSystem
apache-2.0
2,842
101
codeparrot/github-code
a5133415fc78add69ddd638432eeb56ac0a7f6f0f455d89a9f839b5104b17919
sap.designstudio.sdk.Component.subclass("org.scn.community.databound.BulletChart", function() { "use strict"; var that = this; var chartIndex = {}; var chartComponents = {}; var chartProperties = {}; var componentDimensions = {}; var tooltip = undefined; var sourcedata = {}; var data = undefined; v...
JavaScript
src/org.scn.community.databound/res/BulletChart/BulletChart.js
bugodelnya/scn-sdk-package
apache-2.0
22,935
492
codeparrot/github-code
fdaf0bfcae07acefe9b26adba3c3848eda0635aa256f92075d94a97133bcb3f6
/* Copyright 2016 Massachusetts Institute of Technology 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...
C++
system/client_thread.cpp
rharding6373/ddbms
apache-2.0
3,497
116
codeparrot/github-code
c83d74319e2c42c8fc8db7d0db99b5fd663d2a18f28a5b785b26f14033ea14bf
package org.antonyframework.web.common; import java.util.HashMap; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import org.antonyframework.core.bean.BeanManager; import com.antony.service.ServiceManager; import com.antony.service.UserManager; /** * Proce...
Java
Che/src/org/antonyframework/web/common/Process.java
ManGroup/Demo
apache-2.0
2,289
92
codeparrot/github-code
1d6cf0e9ff98b7f06ab4f50d8a218cd8e0b00c5f97de54582591e849c84e417f
/* * Copyright 2021 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applica...
Java
catalog/java/io/material/catalog/divider/DividerItemDecorationDemoFragment.java
material-components/material-components-android
apache-2.0
3,252
102
codeparrot/github-code
64480c339ed54e994519e1063bac99901046eb806557de784b917123e2ec330b
/*! * ${copyright} */ // Provides control sap.ui.layout.form.Form. sap.ui.define(['sap/ui/core/Control', 'sap/ui/layout/library', './FormRenderer'], function(Control, library, FormRenderer) { "use strict"; /** * Constructor for a new sap.ui.layout.form.Form. * * @param {string} [sId] ID for the new control...
JavaScript
src/sap.ui.layout/src/sap/ui/layout/form/Form.js
cschuff/openui5
apache-2.0
9,727
275
codeparrot/github-code
06b7e5cc0bd61a447ead9ddb75ef9a41c237823a9ecd20bec4aff47d6e0f078d
using System; using System.Collections.Generic; using System.Linq; using System.Linq.Expressions; using DotVVM.Framework.Utils; using Newtonsoft.Json; using System.Reflection; using DotVVM.Framework.Configuration; using FastExpressionCompiler; namespace DotVVM.Framework.ViewModel.Serialization { /// <summary> ...
C#
src/Framework/Framework/ViewModel/Serialization/ViewModelSerializationMap.cs
riganti/dotvvm
apache-2.0
25,268
498
codeparrot/github-code
7e412e0f0150170661612becbe009818955ff44bd2b933e557613683bb3e8df6
/* Yet Another Forum.NET * Copyright (C) 2003-2005 Bjørnar Henden * Copyright (C) 2006-2013 Jaben Cargman * Copyright (C) 2014-2020 Ingo Herbote * https://www.yetanotherforum.net/ * * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * dis...
C#
yafsrc/YAF.Types/Models/WatchForum.cs
Pathfinder-Fr/YAFNET
apache-2.0
1,910
66
codeparrot/github-code
39a499f00aecab4e32f9f85c1511fc49725bcd1eea4f6db331c400fb4c30cbc8
/* * 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
plugin-v3/src/main/java/net/groboclown/p4plugin/revision/P4LocalFileContentRevision.java
groboclown/p4ic4idea
apache-2.0
2,690
74
codeparrot/github-code
b21f2542683b2c6e49c1e5fa876f18876b29914669c3c99074cbd0eb5f040612
import React from 'react'; import { PasswordInput } from './../../../components'; import { triggerAction } from './../../../services/DocumentAction'; import { Logger, setValue, getWritableValue, getStyling } from './../../../services'; export const InputPassword = ({ section, index, props, context, pos, childIndex }) ...
JavaScript
src/editable/html/forms/InputPassword.js
webcerebrium/ec-react15-lib
apache-2.0
1,349
37
codeparrot/github-code
08d3cd70d1f4a3a1d32f3f7079235a449878ff8be6158b54fe77b3bca87b9e4e
package com.dfyy.service; import java.util.ArrayList; import java.util.Date; import java.util.List; import org.apache.commons.lang.StringUtils; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.cache.annotation.CacheEvict; import org.springframework.cache.annotation.Caching; im...
Java
src/main/java/com/dfyy/service/UserRelationService.java
secondflying/dfyy
apache-2.0
8,825
387
codeparrot/github-code
0772988a592852105fe58232e130ba09c79192313723bfe9ff14f5a5f1df756e
package cn.xdean.jex.reflect; import cn.xdean.jex.lang.ExceptionUtil; import cn.xdean.jex.lang.collection.Pair; import java.lang.annotation.Annotation; import java.lang.reflect.*; import java.security.AccessController; import java.security.PrivilegedAction; import java.util.Collections; import java.util.HashMap; impo...
Java
src/main/java/cn/xdean/jex/reflect/AnnotationUtil.java
XDean/Java-EX
apache-2.0
13,159
315
codeparrot/github-code
94fb85eb03220e70c47d7c706b0c5f29b942dbb6c27950dc2157c84793ba993b
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="description" content=""> <meta name="author" content=""> <title>CRAFT Louisville</title...
HTML
test.html
craftLouisville/craftlouisville.github.io
apache-2.0
88,027
1,569
codeparrot/github-code
4edb903786e5bb09d3ddbebb3788c4d3ab12e831004a0bada4914a85f33dcc52
package com.djs.learn.sorting; public class QuickSort2 extends AbstractSorting { private static final int CUTOFF = 3; public String getMethodName(){ return "Quick Sort (Variant)"; } @Override public Integer[] sort(Integer[] data, boolean output){ return quickSortInternal(data, 0, data.length, output); } ...
Java
Java_Learn/LearnAlgorithm/src/com/djs/learn/sorting/QuickSort2.java
djsilenceboy/LearnTest
apache-2.0
2,428
101
codeparrot/github-code
e9b8f50f5ee7b907e8f28bcd0037c9360f2c938b4129d954d3dfab736012d3e2
package com.github.database.rider.core.util; import com.github.database.rider.core.api.dataset.DataSet; import com.github.database.rider.core.api.dataset.DataSetImpl; import com.github.database.rider.core.replacers.Replacer; import org.junit.runner.Description; import java.lang.annotation.Annotation; import java.lang...
Java
rider-core/src/main/java/com/github/database/rider/core/util/AnnotationUtils.java
database-rider/database-rider
apache-2.0
9,784
249
codeparrot/github-code
a3e5f9d8f45861913cd06452d7d68e606784c0b635763def5e0c889e59060326
/* * Copyright (C) 2013, 2014 Brett Wooldridge * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or...
Java
src/main/java/com/zaxxer/hikari/pool/ProxyLeakTaskFactory.java
brettwooldridge/HikariCP
apache-2.0
1,709
55
codeparrot/github-code
da1461226a321fcb5615d09f892a375d5a4d5350ffa4e4618c8bfa61449eee74
/* * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distribut...
Java
presto-main/src/main/java/com/facebook/presto/execution/CreateViewTask.java
stagraqubole/presto
apache-2.0
5,124
124
codeparrot/github-code
3034c463319fd6750a3409363278bc8de0526e90f453928c138232a9abb9c38b
/* 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 ...
Java
src/main/java/com/google/cloud/genomics/dataflow/functions/FormatIBSData.java
deflaux/dataflow-java-OBSOLETE
apache-2.0
1,392
37
codeparrot/github-code
8d3294f2daaa6c114cf053a8ab066730647ae029bd8b54411848fab46595739c
package com.nearinfinity.examples.zookeeper.lock; import java.io.IOException; import org.apache.zookeeper.KeeperException; import org.apache.zookeeper.ZooDefs; import org.apache.zookeeper.ZooKeeper; import com.nearinfinity.examples.zookeeper.util.ConnectionHelper; import com.nearinfinity.examples.zookeeper.util.Rand...
Java
src/main/java/com/nearinfinity/examples/zookeeper/lock/WorkerUsingDistributedOperation.java
httpgithub/zk
apache-2.0
1,772
47
codeparrot/github-code
db3ad664450e40cb0caeaf4ab46c61d39ab4ebea12d41c54ceada39982e2fb16
/* * ErrorValues.h * * Created on: 06/02/2012 * Author: MC */ #ifndef EXCEPTIONVALUES_H_ #define EXCEPTIONVALUES_H_ #ifdef __cplusplus extern "C" { #endif typedef enum EXCEPTION_VALUES_enum { EX_NULL, // 0 EX_MEM_OUT_OF_MEMORY, // 1 EX_MEM_INVALID_POINTER, // 2 EX_NULL_POI...
C
firmware/libs/exception/ExceptionValues.h
Wild-Spy/OSTBoardFirmware
apache-2.0
1,697
61
codeparrot/github-code
3a9f2ad14180ec718840519631a411842a6a81501d665adcb766e871125d86ac
/* * Copyright (c) 2011-2018, Meituan Dianping. All Rights Reserved. * * 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 Y...
Java
cat-home/src/main/java/com/dianping/cat/report/page/heartbeat/HeartbeatSvgBuilder.java
dianping/cat
apache-2.0
2,409
100
codeparrot/github-code
9639aaf25275ac1d3bc0c7e024725c8865907b04a773dc3a87e9134a362b3a8c
#!/usr/bin/env python # # Copyright 2014 (c) Lei Xu <eddyxu@gmail.com> # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by ...
Python
ec2/vsfs_ec2.py
vsfs/vsfs-bench
apache-2.0
43,680
1,133
codeparrot/github-code
2dd2e285677f551a6ae2e48dd0b8ecdad90e17fdb3b5a005c58e8c84163503f9
import $ from 'jquery'; var globalID = 1; var pastWarnings = {}; var ParsleyUtils = { // Parsley DOM-API // returns object from dom attributes and values attr: function ($element, namespace, obj) { var i; var attribute; var attributes; var regex = new RegExp('^' + namespace, 'i'); ...
JavaScript
libraries/parsley/Parsley.js-2.5.0/src/parsley/utils.js
Skewmos/Woble
apache-2.0
4,064
149
codeparrot/github-code
6f6b4a5b6172441dac3f3dd21bd86300b78d6a0c92ad0bd5d3f7e2d8a69b1e55
package ca.uhn.fhir.rest.server; import static org.junit.Assert.*; import java.util.ArrayList; import java.util.HashSet; import java.util.List; import java.util.Set; import org.junit.Before; import org.junit.Test; import ca.uhn.fhir.context.FhirContext; import ca.uhn.fhir.model.api.Bundle; import ca.uhn.fhir.model....
Java
hapi-fhir-structures-dstu/src/test/java/ca/uhn/fhir/rest/server/ResourceMethodTest.java
gajen0981/FHIR-Server
apache-2.0
3,941
125
codeparrot/github-code
951f85e98f8e225ed2b8465dd233e813167c9822218611a49b2c9dd9923ac667
// Copyright 2022 Google LLC. All Rights Reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applica...
GO
unstructured/google/compute/alpha/firewall_policy.go
GoogleCloudPlatform/declarative-resource-client-library
apache-2.0
8,756
285
codeparrot/github-code
d05fe8fd4f643c2d7383392f62a7eec709fb0acb9c09a34896105afc0320db70
package org.smart.library.widget.pullRefresh; import android.annotation.SuppressLint; import android.content.Context; import android.os.Build; import android.util.AttributeSet; import android.view.View; import android.widget.ScrollView; import org.smart.library.widget.pullRefresh.ILoadingLayout.State; /** * 封装了Scro...
Java
library/src/main/java/org/smart/library/widget/pullRefresh/PullToRefreshScrollView.java
mvpleung/SmartLibrary
apache-2.0
2,343
89
codeparrot/github-code
ceb31dc7a812959ede705635f9170dd6d62c0b9158daa95262c1929683173fcf
LIMIT = 2000000 SIZE = (LIMIT - 1) // 2 def f(): ans = 2 sieve = [False] * SIZE for i in range(0, SIZE): if not sieve[i]: p = 2 * i + 3 ans += p for j in range(p * p, LIMIT, 2 * p): sieve[(j - 3) // 2] = True return ans import ctypes imp...
Python
problems/010/010.py
japaric/eulermark.rs
apache-2.0
1,006
53
codeparrot/github-code
ec5ff886a63bf89ed5a69d149f746f8c83787b5d2ae08957a4f04c886422598c
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package com.eagerlogic.cubee.client; import java.util.LinkedList; import java.util.logging.Level; import java.util.logging.Logger; import com.google.gwt.user.client.Timer; /** * * @author dipacs */ public final cla...
Java
src/Cubee/src/main/java/com/eagerlogic/cubee/client/EventQueue.java
EagerLogic/Cubee
apache-2.0
2,212
78
codeparrot/github-code
dd8f2967b272954c10107fa3d31afa3f2013aee78c4fb7c4d68bed180fe12264
#!/usr/bin/env python """ Driver for OpenVPN client """ import time import base64 import hashlib import struct import hmac import pollengine # --- class OVDriveData: """OpenVPN authentication data""" def __init__( self ): self.otp_secret = NO_SECRET # --- class ShellAdmin: """Driver for admin ...
Python
just-otp.py
cnamejj/PollEngine
apache-2.0
4,562
167
codeparrot/github-code
b86729f760b03c45936b261478c41b614972a583a5555c642e5c90a38c5e1a3e
/* Copyright IBM Corp. All Rights Reserved. SPDX-License-Identifier: Apache-2.0 */ package lib import ( "crypto/x509" "encoding/asn1" "encoding/pem" "time" "github.com/cloudflare/cfssl/config" "github.com/cloudflare/cfssl/csr" cferr "github.com/cloudflare/cfssl/errors" "github.com/cloudflare/cfssl/log" "gi...
GO
lib/serverenroll.go
saadk10/fabric-ca
apache-2.0
10,847
327
codeparrot/github-code
95303e8f2dd272a4410506f8f88a72a600455b0a448a7a2660cf32959968b95e
require 'table' module Jetpants #-- # Table probing methods #++ class DB # Query the database for information about the table schema, including # primary key, create statement, and columns def detect_table_schema(table_name) table_sql = "SHOW CREATE TABLE `#{table_name}`" create_state...
Ruby
lib/jetpants/db/schema.rb
tumblr/jetpants
apache-2.0
1,334
49
codeparrot/github-code
2322f6cbe26c74b9e711f519d1138d1a6c99de386413d94afbd043116cac2cea
/* * Copyright 2017 Igor Maznitsa. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed...
Java
jbbp/src/main/java/com/igormaznitsa/jbbp/io/JBBPOut.java
raydac/java-binary-block-parser
apache-2.0
39,215
1,219
codeparrot/github-code
37168d67bf50e3c59bcfff9897ed30be219d442b8fc7e1d5857e69715402ac7a
/* Copyright 2015 Alfio Zappala 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...
Java
runrightfast-vertx-core/src/test/java/co/runrightfast/vertx/core/hazelcast/serializers/JsonObjectSerializerTest.java
runrightfast/runrightfast-vertx
apache-2.0
1,435
46
codeparrot/github-code
878e736e3d27efb10671df6c47e141ceac807b8878be781b6cbbbbdf6579d8f2
/* * Copyright (C) 2011 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by app...
Java
src/com/android/settings/bluetooth/LocalBluetoothProfileManager.java
craigacgomez/flaming_monkey_packages_apps_Settings
apache-2.0
13,832
365
codeparrot/github-code
2034b929e15a57a44cc5b601aa1366a53abfa64972f14798dbd717d8b1c65023
/******************************************************************************* * Copyright 2012 - Joakim Erdfelt * * 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
sdkfido-ui/src/main/java/net/erdfelt/android/sdkfido/ui/utils/TableUtils.java
joakime/android-sdkfido
apache-2.0
1,446
37
codeparrot/github-code
2e1dee0e36c7d9af986cf8c0a3909a4565192f28b56d535a31417e8ada8544ac
/* * Copyright (C) 2013 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by app...
Java
app/src/main/java/com/aishang/app/widget/GridViewWithHeaderAndFooter.java
find-happiness/android-aishang
apache-2.0
32,946
889
codeparrot/github-code
1531de83358f5f54521c247bce09a6cd6e87a06263d4402899189c73562ed44f
// // Last.Backend LLC CONFIDENTIAL // __________________ // // [2014] - [2020] Last.Backend LLC // All Rights Reserved. // // NOTICE: All information contained herein is, and remains // the property of Last.Backend LLC and its suppliers, // if any. The intellectual and technical concepts contained // herein are prop...
GO
internal/cli/command/cluster/root.go
unloop/lastbackend
apache-2.0
2,265
89
codeparrot/github-code
c85926d4c09b364b6bd7b1a9ea7adc66f9c60de568b17eddd19335461d9ead95
define([ "backbone", "marionette", "app/applets/medication_review/list/medicationView", "app/applets/medication_review/medicationCollectionHandler", "hbs!app/applets/medication_review/list/detailTemplate", "app/applets/medication_review/appletHelper" ], function(Backbone, Marionette, MedicationV...
JavaScript
ehmp-ui/product/production/app/applets/medication_review/list/detailController.js
KRMAssociatesInc/eHMP
apache-2.0
3,560
102
codeparrot/github-code
97a41dfc131daad2da2da120275cc5c3aa33fc9d2ff5277a1e9ad1b16774cd7a
/** * 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
ambari-server/src/test/java/org/apache/ambari/server/checks/ComponentExistsInRepoCheckTest.java
radicalbit/ambari
apache-2.0
13,090
352
codeparrot/github-code
6c581eeb34a2a32909f6b060cc8dcc6f2d2a14c51c2a24481ddbb6cd2b8356c9
/* * Copyright (c) 2011 Samsung Electronics Co., Ltd 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 ...
C++
src/manager/dpl/core/src/binary_queue.cpp
Samsung/ckm
apache-2.0
7,578
315
codeparrot/github-code
6b1fb99e0915d802d9cd650311a4242b81941abddfca6e27b095dd9bfdb4ad53
/* * Copyright (c) 2008, The Android Open Source Project * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * Redistributions of source code must retain the above copyright * notice, ...
C
toolbox/top.c
craigacgomez/flaming_monkey_system_core
apache-2.0
18,151
572
codeparrot/github-code
fd404b42163834bbed60337281dd82a67c940cb7ed447019ed7022805a043b33
#!/usr/bin/env python # -*- coding: utf-8 -*- # ----------------------------------------------------------------------------------------------------------------------- # INFO: # ----------------------------------------------------------------------------------------------------------------------- """ Authors: Evan Hu...
Python
coconut/command/util.py
evhub/coconut
apache-2.0
20,011
623
codeparrot/github-code
6726a1bf5c8eb36504956a821da1898f8a36e5652e71c5d43249e5524fe1a644
function Controller() { function closeModal(e) { $.modal.fireEvent("removeClose", e); } function handleTableViewClick(e) { if (1 == Alloy.Globals.purchases[e.index] || 1 == Alloy.Globals.purchases[1]) { for (var i = 0; $.tv.data[0].rows.length > i; i++) $.tv.data[0].rows[i].hasCh...
JavaScript
Resources/alloy/controllers/set_select.js
ponnam/ESAT123
apache-2.0
21,876
725
codeparrot/github-code
35fc71dcfb9f1e7c4d48074857e922440ce66143c9afd3edc3b8ecb6d6514478
/* * Copyright (C) 2017 TypeFox and others. * * 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 */ import { TextDocumentSaveReason } from "vscode-la...
TypeScript
src/monaco/browser/monaco-editor-model.ts
lmcgupe/theiagreenkeeperTest
apache-2.0
4,473
132
codeparrot/github-code
9a269331ca4c008824628ee6b967f6128fb72ba7644a986f905e33822355548d
package com.etuchina.niceread.ui.presenter.impl; import com.etuchina.niceread.constant.LoadType; import com.etuchina.niceread.data.GankAllListResult; import com.etuchina.niceread.rx.RxHttpCallBack; import com.etuchina.niceread.ui.interactor.IGankAllListInteractor; import com.etuchina.niceread.ui.interactor.impl.GankAl...
Java
app/src/main/java/com/etuchina/niceread/ui/presenter/impl/TypePresenter.java
xuxingxing001/NiceRead
apache-2.0
2,622
80
codeparrot/github-code
9948550f08d454280cc5860fb97550b123190396606e082f49dc09523f2eadd6
package com.maimemo.text.extractor; import com.maimemo.text.FastIntPairArray; import com.maimemo.text.SubCharSequence; import com.maimemo.text.TextUtils; import com.maimemo.text.stemmer.Stemmer; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; import java.util.TreeMap...
Java
src/java/src/main/java/com/maimemo/text/extractor/WordGroupSearchTree.java
maimemo/word-extractor
apache-2.0
8,560
256
codeparrot/github-code
b0bcb31c0bd60733f13316efd7dd1cf513b6103854ce96b972c2ed2ac219047a
<?php /** * Amazon Payments Checkout Controller * * @category Amazon * @package Amazon_Payments * @copyright Copyright (c) 2014 Amazon.com * @license http://opensource.org/licenses/Apache-2.0 Apache License, Version 2.0 */ class Amazon_Payments_CheckoutController extends Amazon_Payments_Controller...
PHP
app/code/community/Amazon/Payments/controllers/CheckoutController.php
kirchbergerknorr/amazon-payments-magento-plugin
apache-2.0
16,952
505
codeparrot/github-code
5062aefd4c7244adce210dbb279966ca83e7291d96e706684e93525a71f6748d
/* * Copyright 2000-2009 JetBrains s.r.o. * * 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
plugins/maven/src/main/java/org/jetbrains/idea/maven/project/MavenImportingSettingsForm.java
jexp/idea2
apache-2.0
4,954
129
codeparrot/github-code
51f2468d058ff593a58b52b9e92236c66fc55d849963ca7ca8cb2765cc6faf8e
/* * 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 n...
Java
streams/src/main/java/org/apache/kafka/streams/state/QueryableStoreTypes.java
gf53520/kafka
apache-2.0
6,748
172
codeparrot/github-code
7c99141a00eaf5549b178b475bbc345618c0d9fe6f8212976a71f4626de7037c
package aiss.shared.dominio.TMDB.trailer; import java.io.Serializable; import javax.annotation.Generated; import org.codehaus.jackson.annotate.JsonIgnoreProperties; @Generated("org.jsonschema2pojo") @JsonIgnoreProperties(ignoreUnknown = true) public class Trailer implements Serializable { /** * */ private s...
Java
CineDeBarrio1/src/aiss/shared/dominio/TMDB/trailer/Trailer.java
fhera/CineDBarrio
apache-2.0
2,181
163
codeparrot/github-code
3b25b2a6099dd513de42adb20622ae869b09034ce3abf657cdc488592d312061
/* * Copyright (c) 2012 Yan Pujante * * 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
kiwidoc/com.pongasoft.kiwidoc.builder/src/main/java/com/pongasoft/kiwidoc/builder/serializer/model/FieldModelSerializer.java
pongasoft/kiwidoc
apache-2.0
3,042
85
codeparrot/github-code
e606a2e29e38de4683c1df3a450124704e169122dba7337229bdc175226debb9
<?php __autoloadDB('Db'); class LocationController extends AppController { public function countriesAction() { global $mySession; $db = new Db(); $this->view->pageHeading = "Manage Countries"; $qry = "select * from " . COUNTRIES; ...
PHP
admin/application/controllers/LocationController.php
ankuradhey/dealtrip
apache-2.0
34,768
893
codeparrot/github-code
a8877be14f6d209ba809953a0ad91479157aa0ed814a63dee1f4aaeb25600d8c
/* 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
pkg/api/types.go
smarterclayton/kubernetes
apache-2.0
66,382
1,624
codeparrot/github-code
78f7fb45a5557e9491992db8c66f3da90670f579bf9de5621d5697adcb8fb7c5
/* Copyright The containerd 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...
GO
pkg/cri/server/container_list.go
vdemeester/containerd
apache-2.0
3,366
113
codeparrot/github-code
00dccbb7e0c29c388df6fa401b63ce1bd05c0c5f9b37417d135fdf6f1fdfe90d
package com.mycom.bds.hbase; import java.io.IOException; import org.apache.hadoop.hbase.HBaseConfiguration; import org.apache.hadoop.hbase.HColumnDescriptor; import org.apache.hadoop.hbase.HConstants; import org.apache.hadoop.hbase.HTableDescriptor; import org.apache.hadoop.hbase.TableName; public class HBaseSample ...
Java
bds-hbase/src/main/java/com/mycom/bds/hbase/HBaseSample.java
arshadmohammad/BigDataSamples
apache-2.0
2,124
71
codeparrot/github-code
017c18541704add6633faa610e85dd96a416e1c50a2329375b600e08eb8a37a3
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you ...
Java
flink-runtime/src/test/java/org/apache/flink/runtime/checkpoint/StandaloneCompletedCheckpointStoreTest.java
aljoscha/flink
apache-2.0
7,989
179
codeparrot/github-code
5ebe03c0b9709e6ae37118ce74bed4ceb09fa472924c324d85d43a8b3fe25f1a
<?php namespace Topxia\WebBundle\Extensions\DataTag; use Topxia\WebBundle\Extensions\DataTag\DataTag; /** * @todo */ class AnnouncementsDataTag extends BaseDataTag implements DataTag { /** * 获取公告列表 * * 可传入的参数: * count 必需 取值不超过10 * targetId 目标id * targetType 目标类型 ...
PHP
src/Topxia/WebBundle/Extensions/DataTag/AnnouncementsDataTag.php
18826252059/im
apache-2.0
1,413
57
codeparrot/github-code
68b73a8380378a1c1c2fe19601397e50b74a1161ad6b1e702c6915dd1c3a94fb
/* * Copyright (c) 2001-2004 Ant-Contrib project. 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 ...
Java
src/net/sf/antcontrib/logic/OutOfDate.java
blueblazeassociates/ant-contrib
apache-2.0
20,904
681
codeparrot/github-code
b703570a6b43ba774b260c839e87aa4a5a7d710ae65ff3ae89ea028f12f7d072
<!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 xcomp:pred in UD_...
HTML
treebanks/sme_giella/sme-dep-xcomp-pred.html
UniversalDependencies/universaldependencies.github.io
apache-2.0
8,414
195
codeparrot/github-code
ecfbdeba3bf6706a15d05ed83d971fa9b329bf88cfdbaf28c511af513433e359
# -*- coding:utf-8 -*- import json import logging import os from tornado import gen from tornado.gen import coroutine, Task from tornado.httpclient import AsyncHTTPClient from tornado.ioloop import IOLoop from tornado.web import RequestHandler from core import settings import constant __author__ = 'george' @corout...
Python
wechat/__init__.py
hulingfeng211/weixin
apache-2.0
2,930
101
codeparrot/github-code
63088ca2a693993ea6bd46055bdb7a0881ba65c3b89006f1d05468307aa4fe2b
package org.pac4j.play; import java.util.*; import org.pac4j.core.context.Cookie; import org.pac4j.core.context.WebContext; import org.pac4j.core.context.session.SessionStore; import org.pac4j.core.util.CommonHelper; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import play.api.mvc.AnyContentAsFormUrlEncod...
Java
shared/src/main/java/org/pac4j/play/PlayWebContext.java
pac4j/play-pac4j
apache-2.0
9,957
286
codeparrot/github-code
43d17e7a18b4d323a6eecc211970efaed59afd62811c7c7e891b331db9cf7194
/* * Copyright (c) 2015 Shervin Asgari * 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/no/asgari/civilization/server/action/UndoAction.java
cash1981/civilization-boardgame-rest
apache-2.0
14,046
298
codeparrot/github-code
6a0ea81623c8e7afe660d425fcee91c7464a09c430e4346149df8670abcdde91
/* * Copyright (c) 2014, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless require...
Java
codenvy-ext-wso2-esb/src/main/java/org/wso2/developerstudio/codenvy/ext/esb/client/inject/ESBJavaScriptInjector.java
kaviththiranga/cloud-dev-studio
apache-2.0
4,108
131
codeparrot/github-code
8750781491bf55336b71fa2521a056b30452548c93627a8ebb6f344752ec552f
package com.logpresso.client.http.impl; import java.nio.ByteBuffer; import java.util.ArrayList; import java.util.Arrays; import java.util.HashMap; import java.util.List; import java.util.Map; import java.util.concurrent.ArrayBlockingQueue; import java.util.concurrent.Callable; import java.util.concurrent.ExecutionExce...
Java
src/main/java/com/logpresso/client/http/impl/StreamingResultDecoder.java
logpresso/logpresso-sdk-java
apache-2.0
4,080
165
codeparrot/github-code
98c176200307fe8b09c83db05dfd3e6e234ce45a22b6964d50bb51039054a255
package org.apache.maven.scm.provider.svn.svnjava.command.info; import org.apache.maven.scm.CommandParameters; import org.apache.maven.scm.ScmException; import org.apache.maven.scm.ScmFileSet; import org.apache.maven.scm.ScmResult; import org.apache.maven.scm.command.AbstractCommand; import org.apache.maven.scm.comman...
Java
src/main/java/org/apache/maven/scm/provider/svn/svnjava/command/info/SvnJavaInfoCommand.java
olamy/maven-scm-provider-svnjava
apache-2.0
5,551
130
codeparrot/github-code
65d878d198d6c29f563d23a016a96e35c4c373e14c78867de1d7595fecd72640
package com.example.animation.db; import org.litepal.crud.DataSupport; /** * Created by 刘通 on 2018/2/17. */ public class DownloadComic extends DataSupport { private String comicName; private String comicUrl; private String comicPages; private int allPages; private int currentPages; private ...
Java
app/src/main/java/com/example/animation/db/DownloadComic.java
NicoLiutong/miaosou
apache-2.0
3,248
137
codeparrot/github-code
52b213de4db567bc1aaed3502d9457becc14b048c72a816eb5c5e855c26b81dd
package deepDriver.dl.aml.distribution; public abstract class Slave { protected P2PClient talkClient = new P2PClient(); String currentCommand; public void train() throws Exception { talkClient.setup(); talkClient.responseReady(); while(true) { String command = talkClient.receiveCommand(); System.out...
Java
src/deepDriver/dl/aml/distribution/Slave.java
LongJunCai/DeepDriver
apache-2.0
1,366
50
codeparrot/github-code
b6a91989b78d485bd297cc7d7fffe86a991ccea5c32c64fead18b9c8bfd2299a
""" Utilities for managing Debian preseed .. versionadded:: 2015.8.0 """ import shlex import salt.utils.files import salt.utils.stringutils import salt.utils.yaml def mksls(src, dst=None): """ Convert a preseed file to an SLS file """ ps_opts = {} with salt.utils.files.fopen(src, "r") as fh_: ...
Python
salt/utils/preseed.py
saltstack/salt
apache-2.0
2,707
81
codeparrot/github-code
b531c41cc4fda587b4b371ef46bdd71ff71d1e9631878a292e1b8ca1d62f9360
// // main.cpp // gvis // // Created by Marco Grubert on 6/20/15. // Copyright (c) 2015 Marco Grubert. All rights reserved. // #include <iostream> #include <set> #include <string> using namespace std; struct Node; typedef set<Node> TNodeCollection; class Node { public: Node(uint32_t ident) : m_id(ident) {} ...
C++
gvis/gvis/main.cpp
Cross22/gvis
apache-2.0
3,858
142
codeparrot/github-code
b2f5ffd1ae2d58a744f788f3b282b25c6e521fc37d41ee02cce734f4773f5ece
/* * Copyright (c) Facebook, Inc. and its affiliates. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applic...
Java
src/com/facebook/buck/android/AbstractModuleInfo.java
zpao/buck
apache-2.0
1,721
57
codeparrot/github-code
bfc689c1740ebc5c920de3f7a4cd09ab882f2d33f9df9ef98dff3a97ed5adef8
/* * Licensed to Elasticsearch 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 * not use this fi...
Java
src/test/java/org/elasticsearch/index/translog/AbstractSimpleTranslogTests.java
Edwin-Ran/es_source_read
apache-2.0
24,168
585
codeparrot/github-code
d7efbaa0fbaf1d1a0f2c4ee0ba706f8bfdbb33c3faaa2fb7da197e1aa037c92e
#!/usr/bin/env python3 # # Copyright 2013 Simone Campagna # # 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 ...
Python
lib/python/statcode/project_file.py
simone-campagna/statcode
apache-2.0
5,340
123
codeparrot/github-code
8e4f7c84d4b1b552b110456dbdda2a6509f3b7a8e616d955e14b2a80dc3c91ff
/* * Copyright 2012-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "licen...
Java
aws-java-sdk-emr/src/main/java/com/amazonaws/services/elasticmapreduce/model/transform/InstanceGroupStateChangeReasonMarshaller.java
dagnir/aws-sdk-java
apache-2.0
2,404
59
codeparrot/github-code
8eaf23e2dc740330299a81e2e6319c10eb7372ce613960f594f9f9d203d86f30
/* * Copyright 2017 Yi-Kun Yang. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed t...
Java
boot/src/main/java/org/allnix/boot/web/WebSocketClientHandler.java
ykyang/allnix
apache-2.0
2,757
94
codeparrot/github-code
9040acff6cafa4e3fb2275c1171d53d462868159a499aef3be533af7544da8df
/*** * Write a program to find the node at which the intersection of two singly linked lists begins. * * * For example, the following two linked lists: * * A: a1 -> a2 * \ * c1 -> c2 -> c3 * / * B: b1 -> b2 -> b3 * begin...
Java
IntersectionofTwoLinkedLists.java
charlesxu90/my_leetcode
apache-2.0
2,210
80
codeparrot/github-code
f5aaac43256ba29a09c9a52616f8941525970daba04bc57c5a6977415916c793
/* * Copyright 2007 The Kuali Foundation * * Licensed under the Educational Community License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.opensource.org/licenses/ecl2.php * * Unless required by appl...
Java
af_webapp/src/main/java/org/kuali/kfs/module/purap/util/VendorGroupingHelper.java
Ariah-Group/Finance
apache-2.0
3,776
103
codeparrot/github-code
26db3571bc87a1342aa04f237095225709c02fe0505e6ac581a3172dcc0b3fb4
/* Copyright 2015 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
pkg/volume/glusterfs/glusterfs.go
cri-containerd/kubernetes
apache-2.0
32,710
1,001
codeparrot/github-code