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
3871859f61bba3d4a90bec13431595f72dacdca9ebe2c18293a841989effce9b
/* * Copyright 2015 Lei CHEN (raistlic@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 applicable law...
Java
src/test/java/org/raistlic/common/config/converter/DefaultShortConverterTest.java
raistlic/raistlic-lib-commons-core
apache-2.0
3,889
119
codeparrot/github-code
a574f6b05b8d830e897c331b2ddea9a4200e99dc8c073a3674680f95cef159c4
package com.jeek.calendar.widget; import android.content.Context; import android.support.v4.widget.DrawerLayout; import android.util.AttributeSet; import android.view.MotionEvent; import android.view.View; public class NoSlideDrawerLayout extends DrawerLayout { private boolean mCanMove; public NoSlideDrawe...
Java
app/src/main/java/com/jeek/calendar/widget/NoSlideDrawerLayout.java
MTmotong/DZY-Weather
apache-2.0
940
42
codeparrot/github-code
b8e5df50861cfb0977bfa67c70ef9a1534108bd6a12ff34ceca14e70cfb67fde
<?xml version='1.0' encoding='UTF-8'?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> <html> <head> <title>org.scalatest.concurrent.PatienceConfiguration.PatienceConfigParam</title> <meta http-equiv="content-type" content="text/html; charset...
HTML
public/scaladoc/1.8/org/scalatest/concurrent/PatienceConfiguration$PatienceConfigParam.html
scalatest/scalatest-website
apache-2.0
18,885
373
codeparrot/github-code
f55cb1992887ff8be5ed541eb12c2828a742d2bbdda2732e8d579d7425993533
package org.jenkinsci.plugins.spoontrigger; import com.google.common.base.Optional; import com.google.common.reflect.TypeToken; import hudson.*; import hudson.model.*; import hudson.tasks.BuildStepDescriptor; import hudson.tasks.Builder; import hudson.util.FormValidation; import hudson.util.ListBoxModel; import lombok...
Java
src/main/java/org/jenkinsci/plugins/spoontrigger/ScriptBuilder.java
jenkinsci/spoonscript-plugin
apache-2.0
13,859
361
codeparrot/github-code
3aeed011aad024f9d6b58706e6b5d30e4b3b668bf3fe7fde8844d5bab7299ef6
package fr.openwide.core.showcase.web.application.widgets.component; import java.util.List; import org.apache.wicket.markup.html.form.ChoiceRenderer; import org.apache.wicket.model.IModel; import fr.openwide.core.showcase.core.business.user.model.User; import fr.openwide.core.showcase.core.business.user.search.IUser...
Java
owsi-core/owsi-core-examples/wicket-showcase/wicket-showcase-webapp/src/main/java/fr/openwide/core/showcase/web/application/widgets/component/UserAutocompleteAjaxComponent.java
openwide-java/owsi-core-parent
apache-2.0
1,544
51
codeparrot/github-code
49b4a8b0d53ef370f4b45029109ba88618ecd377ebd4bb7344c75db2d2c6b062
<!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 Foreign in UD_Bul...
HTML
treebanks/bg_btb/bg-feat-Foreign.html
UniversalDependencies/universaldependencies.github.io
apache-2.0
7,619
175
codeparrot/github-code
8d4f6c63b8db5234269cd34057b8818addbb89bb097013ee0658d706c6e48e86
package ru.sbulygin.models; import org.junit.Test; import static org.hamcrest.core.Is.is; import static org.junit.Assert.assertThat; /** * Class CommentTest. * * @author ru.sbulygin. * @since 24.04.2017. * @version 1.0. */ public class CommentTest { /** * Test comment field. */ private Stri...
Java
Chapter_005/Generalizations/ChangeTracker/src/test/java/ru/sbulygin/models/CommentTest.java
sergeyBulygin/Java_a_to_z
apache-2.0
1,175
54
codeparrot/github-code
cfe4e0e7b5f71cb5f0f5194a662388b8db00407e9e52afefbaa49718b68e8cb3
// Licensed to the Software Freedom Conservancy (SFC) under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information // regarding copyright ownership. The SFC licenses this file // to you under the Apache License, Version 2.0 (the // "License"); you m...
Java
src/test/java/org/openqa/selenium/ChildrenFindingTest.java
SeleniumHQ/htmlunit-driver
apache-2.0
13,177
369
codeparrot/github-code
ee3ac31bdbeacda14136ccf5c4fb6685cab100d63f275fe64ecd4abab18857d9
/** * A class which describes the properties and actions of an event channel. This * channel will write the incoming events to the specified socket. * * @date 17 January, 2015 * @author Joeri HERMANS * @version 0.1 * * Copyright 2015 Joeri HERMANS * * Licens...
C++
src/ias/channel/event_channel.cpp
JoeriHermans/Intelligent-Automation-System
apache-2.0
1,932
64
codeparrot/github-code
0f25602d9498d34f6382ae820797da3a48b3411cf5b34060f770523b23b904e0
/* * This file is part of UniERM ReportDesigner, based on reportFU by Josh Wilson, * the work of Kim Sheffield and the fyiReporting project. * * Prior Copyrights: * _________________________________________________________ * |Copyright (C) 2010 devFU Pty Ltd, Josh Wilson and Others| * | (http://reportfu...
C#
src/RdlEngine/Core/Report/Report Objects/Report Items/Data Regions/Table/Table Items/TableGroups.cs
isgmbh/UniERM-ReportDesigner
apache-2.0
7,619
249
codeparrot/github-code
6036d22851975de183b700d830b54eb33cc86aaba735f9bb02e2114cef6e7d7d
/* * Copyright 2006-2015 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 app...
Java
endpoints/citrus-zookeeper/src/main/java/com/consol/citrus/zookeeper/actions/ZooExecuteAction.java
christophd/citrus
apache-2.0
18,137
516
codeparrot/github-code
4bda920dbf14d1de6ee75013a7b367643a05b746dddcd8a7438587756945abc5
# Copyright 2020 Telstra Open Source # # 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...
Python
src-python/grpc-stub/server.py
telstra/open-kilda
apache-2.0
6,031
173
codeparrot/github-code
994e60d6b05538d6421a7e13668e7f3060daf58e7df0ee4dfc5665f7e9f7c4d8
/* * 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-0-7-custom/flink-compiler/src/main/java/org/apache/flink/compiler/operators/CrossBlockOuterFirstDescriptor.java
citlab/vs.msc.ws14
apache-2.0
1,548
48
codeparrot/github-code
c1d6469d2076e88c4d5683da0b7a4a65168e29cd9f4edd38758e6b3df6545f82
package com.litesuits.common.utils; import android.content.Context; import android.net.wifi.WifiInfo; import android.net.wifi.WifiManager; import android.os.Build; import android.os.SystemClock; import com.litesuits.android.log.Log; import java.text.SimpleDateFormat; import java.util.Date; /** * 手机信息 & MAC地址 & 开机时间...
Java
library/src/com/litesuits/common/utils/AndroidUtil.java
yooranchen/android-lite-common
apache-2.0
3,811
98
codeparrot/github-code
544b0542aa9bf118b7e810f31d291b608ac2af56db6fa35e273e27ec1507aa4f
/* * Copyright 2016-present 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...
Java
src/com/facebook/buck/cxx/CxxGenruleDescription.java
sdwilsh/buck
apache-2.0
29,355
804
codeparrot/github-code
68f2e418d3a44aa0466a95f2b48f8c509f62b2679d5e261a18f224f953cce0c9
#include <SFML/System/Vector2.hpp> #include <SFML/Graphics/Rect.hpp> #include <SFML/Graphics/Color.hpp> #include <SFML/System/Time.hpp> namespace sf { class Event; class RenderTarget; class RenderWindow; class Sprite; class Texture; class Window; } namespace ImGui { namespace SFML { ...
C
libext/imgui-SFML.h
Limeoats/Lime2D
apache-2.0
1,855
49
codeparrot/github-code
7cc66c79e9da81dec2f4a4db2e614a56d2dbc7831f42808cf4950465ef3f862f
package nl.vaya.mgdd.rjp; import android.app.Activity; import android.content.Intent; import android.content.pm.ActivityInfo; import android.os.Bundle; import android.view.Menu; import android.view.MenuInflater; import android.view.MenuItem; import android.view.View; import android.view.View.OnClickListener; public c...
Java
src/nl/vaya/mgdd/rjp/Game.java
jasperkennis/The-Vaya-Game-2
apache-2.0
1,442
56
codeparrot/github-code
6579225ffef6564be97c18426d9a96a065063ad529f0e0beccc65a538e468aec
/* * Copyright (C) 2014 Marc Lester Tan * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or a...
Java
wear/src/main/java/com/marctan/hrmtest/MyActivity.java
issticky84/CollectSensorData
apache-2.0
5,651
200
codeparrot/github-code
2fe32c4015e647ac35f3fa79bf90f086039ca3d470fcd5a0bd52bd49f0847f07
create database nfvodb default character set utf8 collate utf8_general_ci; use nfvodb; /*==============================================================*/ /* DBMS name: MySQL 5.0 */ /* Created on: 2015/4/25 19:41:41 */ /*============================...
SQL
main/resources/scripts/sql/unfvo.sql
wolabs/womano
apache-2.0
21,470
582
codeparrot/github-code
acce186c99974d4188968e9ca0f70b943abdafca93cf085c526d84baae15be24
/* * Copyright 2013 SimplifyOps Inc, <http://simplifyops.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 a...
JavaScript
rundeckapp/grails-app/assets/javascripts/workflow.js
variacode/rundeck
apache-2.0
8,566
283
codeparrot/github-code
48153c49e41faa8fceee45113ddaae1dcf4fc13dab622bcd0d0b80f1a310d341
package me.anky.connectid.connections; import java.util.List; import javax.inject.Inject; import io.reactivex.android.schedulers.AndroidSchedulers; import io.reactivex.annotations.NonNull; import io.reactivex.disposables.CompositeDisposable; import io.reactivex.observers.DisposableSingleObserver; import io.reactivex...
Java
app/src/main/java/me/anky/connectid/connections/ConnectionsActivityPresenter.java
anky21/Remember-Names
apache-2.0
2,909
76
codeparrot/github-code
b2d3a10c9b0c9bdd8a1a87eb0d7e8704cd85c8478632346959eea7e84df7cf94
<?php namespace DCarbone\PHPFHIRGenerated\R4\FHIRElement\FHIRBackboneElement\FHIRMedicinalProduct; /*! * This class was generated with the PHPFHIR library (https://github.com/dcarbone/php-fhir) using * class definitions from HL7 FHIR (https://www.hl7.org/fhir/) * * Class creation date: December 26th, 2019 15:44+...
PHP
src/DCarbone/PHPFHIRGenerated/R4/FHIRElement/FHIRBackboneElement/FHIRMedicinalProduct/FHIRMedicinalProductSpecialDesignation.php
dcarbone/php-fhir-generated
apache-2.0
41,503
994
codeparrot/github-code
d38339b8e6f45eaba86d63feb322456a40dfdee23b8b626d873a4216af5a597d
package org.jetbrains.plugins.scala package lang package psi package impl package toplevel package typedef import com.intellij.lang.ASTNode import com.intellij.psi.PsiElementVisitor import org.jetbrains.plugins.scala.extensions._ import org.jetbrains.plugins.scala.icons.Icons import org.jetbrains.plugins.scala.lang.pa...
Scala
src/org/jetbrains/plugins/scala/lang/psi/impl/toplevel/typedef/ScTraitImpl.scala
loskutov/intellij-scala
apache-2.0
3,777
100
codeparrot/github-code
24d66a4e383e578190bd062c3b93bc298b30520fd1d4a9afe1692d997a2241c5
package jeffaschenk.commons.standards.statecodes; import jeffaschenk.commons.standards.CountryCode; /** * Official ISO-3166 State/Province Codes * <p/> * Country: Slovenia * * @author jeffaschenk@gmail.com * Date: May 19, 2010 * Time: 12:12:11 PM */ @SuppressWarnings("unused") public enum Stat...
Java
src/main/java/jeffaschenk/commons/standards/statecodes/StateCodes_SI.java
jaschenk/jeffaschenk-commons
apache-2.0
14,523
256
codeparrot/github-code
623747bd693f642e5fa189b80cbf1a2fe127e2301aaec21591a010cbcfbc6b4a
package com.yarin.android.Examples_05_11; import android.app.Activity; import android.os.Bundle; import android.view.KeyEvent; public class Activity01 extends Activity { private GameView mGameView = null; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); mGameVie...
Java
Examples_05_11/src/com/yarin/android/Examples_05_11/Activity01.java
zoozooll/MyExercise
apache-2.0
720
34
codeparrot/github-code
2fe08420742bee58962732a9af422dda59dcab453e069f703c82de2bf09cdd9f
<?php /* * Copyright (C) 2018 Blackmoon Info Tech Services * * 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 ...
PHP
framework/app/costumes/Wardrobe/SiteUpdater.php
baracudda/phpBitsTheater
apache-2.0
5,976
170
codeparrot/github-code
b45b97a58b3496abe85599b2e9499019f2ae57a773302f78cc4dc5ca026e25d2
/** * Copyright (C) 2016 Newland Group Holding Limited * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by appli...
Java
src/com/newlandframework/avatarmq/test/AvatarMQConsumer1.java
tang-jie/AvatarMQ
apache-2.0
1,851
49
codeparrot/github-code
d426e0bb50e0708055fe8bf890b94ff0720ec7ca5551883350a8f1de8a9440b1
package nam.model.util; import nam.model.Application; import nam.model.Module; import nam.model.ModuleLevel; import nam.model.ModuleType; import nam.model.Project; public class ModuleFactory { public static Module createPomModule() throws Exception { return createModule(ModuleType.POM); } public static Module...
Java
nam/nam-model/src/main/java/nam/model/util/ModuleFactory.java
tfisher1226/ARIES
apache-2.0
3,193
102
codeparrot/github-code
2aadc7f58f771864a1195376caf474ec311274dac5d78e09d4c628aea7460507
package bunny import ( "crypto/tls" "encoding/json" "fmt" "io/ioutil" "net/http" ) type Bunny interface { Healthy() bool } type HttpBunny struct { url string } type BunnyStatus struct { Name string `json:"name"` Status string `json:"status"` ProcessTime int `json:"timeToEvaluate"` } func NewBunny(url s...
GO
bunny/build-bunny.go
davidehringer/bamboo-blinker
apache-2.0
880
56
codeparrot/github-code
b2024921439c6be63e4ab14f85c4c93dbf82d4be2159fc995be30ab37ff1c3c5
package com.cpic.carmarket.activity; import android.app.Dialog; import android.content.SharedPreferences; import android.os.Bundle; import android.preference.PreferenceManager; import android.view.View; import android.view.View.OnClickListener; import android.widget.Button; import android.widget.EditText; im...
Java
src/com/cpic/carmarket/activity/AnswerOnlineResponseActivity.java
cf0566/CarMarket
apache-2.0
3,707
126
codeparrot/github-code
41258492f276befa3ab3a773b88462c239f8aecd602254cde334f1f5bc369de6
/** * */ package com.jettmarks.clue.client.nav; import java.util.Date; import com.google.gwt.user.client.Cookies; import com.google.gwt.user.client.Window; /** * Tracks details regarding the State of the user's session. * * @author jett */ public class State { private static int groupId; ...
Java
cluepageMGWT/src/main/java/com/jettmarks/clue/client/nav/State.java
jettmarks/clueRide
apache-2.0
1,469
70
codeparrot/github-code
818625ac9852dd071d3369444814c1a53944d84e8c3b2d94fbe963d1a79085e8
import numpy as np import pandas as pd def train(df_train, tau, max_iters): Xtrain = df_train.iloc[:, 1:].as_matrix() ytrain = df_train.iloc[:, 0].as_matrix() classifier = SVM(Xtrain, ytrain, tau, max_iters) return classifier class SVM: def __init__(self, X, y, tau, max_iters): """ ...
Python
src/homework2/q3/svm_train.py
stallmanifold/cs229-machine-learning-stanford-fall-2016
apache-2.0
3,651
98
codeparrot/github-code
3c4f78be61bd1f98bd99667d46c714ac8ac322adc50f38915b70aba9b55e7f3a
package org.openstreetmap.osmosis.plugin.elasticsearch.integration; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertTrue; import java.io.File; import java.net.URISyntaxException; import java.net.URL; import org.elasticsearch.action.admin.indices.exists.indices.IndicesExistsRequest; ...
Java
src/test/java/org/openstreetmap/osmosis/plugin/elasticsearch/integration/PluginIntegrationITest.java
Sparkycz/elasticsearch-osmosis-plugin
apache-2.0
1,838
55
codeparrot/github-code
5d806e2a7379ba003f16453462858e6e186b015933f011ed9678afc497e608e4
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>FST - Xuban Lopetegui</title> <meta name="description" content="Keep track of the statistics from Xuban Lope...
HTML
surfers/mjun/xlope.html
chicofilho/fst
apache-2.0
11,822
295
codeparrot/github-code
f6220b027546aef9bc6dc827d0f1b7a5c77c73041762b191f9698f933ba87800
/* ***** BEGIN LICENSE BLOCK ***** * Version: MPL 1.1/GPL 2.0/LGPL 2.1 * * The contents of this file are subject to the Mozilla Public License Version * 1.1 (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.mozilla.org/MPL/ * ...
Java
dcm4chee-arc3-entities/tags/DCM4CHEE-WEB-3_0_0/src/main/java/org/dcm4chee/archive/entity/Instance.java
medicayun/medicayundicom
apache-2.0
11,085
357
codeparrot/github-code
293135233fbd902c126f008aab005ccb3c457ef2295bbfbe2a811182de05d061
'use strict'; interface Discount { /** * Returns the discount factor for a given time-to-maturity. * @param t Time-to-maturity, expressed in years. * @param gradient If supplied, returns the gradient vector of df with * respect to an internal vector of state variables. * @r...
TypeScript
WebDemo/src/Instruments.ts
fancidev/YieldCurve
apache-2.0
4,815
186
codeparrot/github-code
e51977e30370574d61f0faa5c44d59f0771108695f73ce861425d7bedc492ac8
package me.pkliang.gankmaku.application; import android.app.Application; import dagger.Module; import dagger.Provides; import javax.inject.Singleton; import me.pkliang.gankmaku.data.RepositoryImpl; import me.pkliang.gankmaku.data.net.HttpLoggingInterceptor; import me.pkliang.gankmaku.data.net.RestApi; import me.pklian...
Java
app/src/main/java/me/pkliang/gankmaku/application/AppModule.java
pkliang/gankmaku
apache-2.0
972
37
codeparrot/github-code
e5fd19eac5c71eff48d39fb122de650c2fdca54c16f232063ff94b1beaf77257
/* * Copyright 2002-2011 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by a...
Java
samples/xml/cas/cassample/src/integration-test/java/org/springframework/security/samples/cas/pages/ExtremelySecurePage.java
fhanik/spring-security
apache-2.0
1,604
55
codeparrot/github-code
5515ab9f9ddde8f4c9f6fa74fa16d0f85233e5729a59cc125cadd5ee36c8329b
/** * Copyright 2007-2015, Kaazing Corporation. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless require...
Java
server/src/test/java/org/kaazing/gateway/server/test/SingleThreadedPolicy.java
chao-sun-kaazing/gateway
apache-2.0
1,708
52
codeparrot/github-code
66235c4dce92559be9ba9529482873010ea98acd63fa51978f088dbb9421a57f
__author__ = 'Collin Day and Joe Kvedaras' import random # Example of how to implement an RPS player within the framework import Player import Message class CDJKPlayer(Player.Player): def __init__(self): # Call super class constructor Player.Player.__init__(self) self.reset() def pla...
Python
CDJKPlayer.py
geebzter/game-framework
apache-2.0
3,670
107
codeparrot/github-code
ec81915137667b7302d5a3df2b844c4d7588796ce5e3f0393b554c976b794cae
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may ...
Java
gobblin-yarn/src/main/java/org/apache/gobblin/yarn/GobblinYarnTaskRunner.java
ibuenros/gobblin
apache-2.0
7,232
189
codeparrot/github-code
ea863e75c8bc809f647443c5f395e13f1c85639ed2e9a2f4a8604f66b3dc0fb8
/* * 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-libraries/flink-cep/src/test/java/org/apache/flink/cep/nfa/NFATestUtilities.java
zhangminglei/flink
apache-2.0
4,525
147
codeparrot/github-code
10932b8b257db5dc43018d4fdc0a9d9d15b60d3eedfa4a072c431469204ad29d
/* * ****************************************************************************** * Copyright (c) 2015 Gabriele Mariotti. * * 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
qdong_communal_library/src/main/java/com/qdong/communal/library/widget/RefreshRecyclerView/animation/adapter/ScaleInAnimatorAdapter.java
506954774/android_communal_library
apache-2.0
2,304
60
codeparrot/github-code
c1d025a75799d59c3594d28d53e66b0e97211304fdf457c65706ed208dd5f847
import {Component, EventEmitter, Output, Input, AfterViewInit, ViewChild, OnInit} from '@angular/core'; import {BlogDocumentModel} from "./blog.model"; import {BlogService} from "./blog.service"; import {FormGroup, FormControl, Validators, FormBuilder} from "@angular/forms"; @Component({ selector: 'blog-doc-editor'...
TypeScript
admin/src/app/admin-app/components/blog/blog-doc-editor.component.ts
avsek477/blogSite
apache-2.0
3,470
121
codeparrot/github-code
13743546bec8401dacf199fa2ecdbb49ce4da3a5a555e74a6d2a76c598238a61
/* * Copyright (c) 2017 Uber Technologies, Inc. (hoodie-dev-group@uber.com) * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * ...
Java
hoodie-hadoop-mr/src/main/java/com/uber/hoodie/hadoop/HoodieROTablePathFilter.java
vinothchandar/hoodie
apache-2.0
6,951
182
codeparrot/github-code
b4cd102fae8cdffb2c81c201f156637a87c1b6c5fe77b8ed883469832f126312
/* Generic definitions */ /* Assertions (useful to generate conditional code) */ /* Current type and class (and size, if applicable) */ /* Value methods */ /* Interfaces (keys) */ /* Interfaces (values) */ /* Abstract implementations (keys) */ /* Abstract implementations (values) */ /* Static containers (keys) */ /...
Java
src/it/unimi/dsi/fastutil/doubles/Double2IntArrayMap.java
karussell/fastutil
apache-2.0
9,699
294
codeparrot/github-code
be48c50fb0e37e914a9bda53a015278918180e99d02cc029793f21ba31c18573
package org.aktin.broker.admin.standalone; import java.lang.reflect.Constructor; import java.lang.reflect.InvocationTargetException; import java.nio.file.Path; import java.nio.file.Paths; import java.util.Arrays; import javax.sql.DataSource; import org.aktin.broker.auth.CascadedAuthProvider; import org.aktin.broker....
Java
broker-admin/src/main/java/org/aktin/broker/admin/standalone/DefaultConfiguration.java
aktin/broker
apache-2.0
4,194
133
codeparrot/github-code
b2fe38b2065a9ab3410fcb8182e6215016fcaedcc8f49560a02eddabb7a1ef43
# Copyright 2021 Pants project contributors (see CONTRIBUTORS.md). # Licensed under the Apache License, Version 2.0 (see LICENSE). from __future__ import annotations from dataclasses import dataclass from typing import Any, Sequence @dataclass(frozen=True) class JavaImport: name: str is_static: bool = False...
Python
src/python/pants/backend/java/dependency_inference/types.py
patricklaw/pants
apache-2.0
1,065
38
codeparrot/github-code
bbb9a3a06de886c4c75d7888254c1287a4969e25e0498589076e28f07ec33b06
package com.orientechnologies.orient.core.sql.parser; import static org.junit.Assert.fail; import java.io.ByteArrayInputStream; import java.io.InputStream; import org.junit.Test; public class OInsertStatementTest { protected SimpleNode checkRightSyntax(String query) { return checkSyntax(query, true); } p...
Java
core/src/test/java/com/orientechnologies/orient/core/sql/parser/OInsertStatementTest.java
orientechnologies/orientdb
apache-2.0
4,183
124
codeparrot/github-code
e90967b7b494fe0fbd513379f445ba9e4833533621b68dfce0cc6f039a7d520d
<!doctype html> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="X-UA-Compatible" content="IE=Edge" /> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title>docplex.cp.solver.solver_listener &#8212; DOcplex.CP: Constraint Programming Modeling for Python V...
HTML
docs/2.16.195/cp/_modules/docplex/cp/solver/solver_listener.html
IBMDecisionOptimization/docplex-doc
apache-2.0
90,409
719
codeparrot/github-code
fde4e5ebb9f33915aac7f98395a77ae827b14f688d43f871744bb6974cb234ef
package nifi.flink.examples.logs.functions; import nifi.flink.examples.logs.data.LogLevel; import org.apache.flink.api.common.functions.FlatMapFunction; import org.apache.flink.streaming.connectors.nifi.NiFiDataPacket; import org.apache.flink.util.Collector; import java.util.Map; /** * A FlatMapFunction that maps a...
Java
nifi-flink-examples/src/main/java/nifi/flink/examples/logs/functions/LogLevelFlatMap.java
bbende/nifi-streaming-examples
apache-2.0
1,193
37
codeparrot/github-code
ce253542de43b1e2b7648c749c0e1b1ab14d51c863404a8d18231db65817bee8
/******************************************************************************* * Copyright (c) 2013 JD Corporation and others. * * Contributors: * JD Corporation *******************************************************************************/ package net.vdrinkup.alpaca.flow; import java.util.concurrent.E...
Java
alpaca/alpaca-core/src/main/java/net/vdrinkup/alpaca/flow/DefaultFlowEngine.java
v-drinkup/alpaca
apache-2.0
3,376
151
codeparrot/github-code
273b83487553a9f71ffeb646e6c57ba71184deb64927bda57d3483920d14d539
package chatty; import chatty.gui.MainGui; import java.util.Timer; import java.util.TimerTask; /** * A Timer that runs throughout the execution of the program, mainly to update * the title and such, which however in turn also gets the StreamInfo. * * @author tduva */ public class UpdateTimer exten...
Java
src/chatty/UpdateTimer.java
Jolicost/ChattyTpp
apache-2.0
741
35
codeparrot/github-code
cb4b007a12bb5559506db00b26138015ac68eaaa89e2b1092e19826c750dbe8f
/** * Copyright (c) 2000-present Liferay, Inc. All rights reserved. * * This library is free software; you can redistribute it and/or modify it under * the terms of the GNU Lesser General Public License as published by the Free * Software Foundation; either version 2.1 of the License, or (at your option) * any la...
Java
oep-datamgt-portlet/docroot/WEB-INF/service/org/oep/datamgt/service/persistence/DictDataFinder.java
openegovplatform/OEPv2
apache-2.0
3,383
72
codeparrot/github-code
9b1edb0aba2db8d0ad93f9963ca7b02ca8ba6b96d30773226bf1e885be4d5713
/************************************************************************** * DefaultLayout.java is part of Touch4j 4.0. Copyright 2012 Emitrom LLC * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy of *...
Java
src/com/emitrom/touch4j/client/layout/DefaultLayout.java
paulvi/touch4j
apache-2.0
1,843
51
codeparrot/github-code
f833b81f44918f5bf26b26ddddbfbcdc8582a658ec5151b14f66c3d8379521c7
package com.github.christianfranco.geomatch.repository; import com.github.christianfranco.geomatch.entities.ImmutableLocale; import com.github.christianfranco.geomatch.entities.ImmutablePhoneNumber; import com.github.christianfranco.geomatch.entities.PhoneNumber; import com.github.christianfranco.geomatch.excepti...
Java
geo-match/server/core/src/test/java/com/github/christianfranco/geomatch/repository/PhoneNumberRepositoryTest.java
christianfranco/the-clean-code-bay
apache-2.0
2,072
56
codeparrot/github-code
1150b6eb0e28dbdd65b36dcf7a5ebc8b53e437f7fbdd2026d948fc68dfa5a524
#include "update-checker.h" #include <QDateTime> #include <QSettings> UpdateChecker::UpdateChecker(QSettings *settings, QObject *parent) : QObject(parent) { connect(&m_updater, &ProgramUpdater::finished, this, &UpdateChecker::checkFinished); const int cfuInterval = settings->value("check_for_updates", 24 * 60 * 6...
C++
src/gui-qml/src/update-checker.cpp
Bionus/imgbrd-grabber
apache-2.0
1,194
42
codeparrot/github-code
01c7a420329f4995b1328c294509e9ec733e18603a007358d4989853d96ff423
package jp.mydns.sys1yagi.android.jsoupsample; import org.jsoup.Jsoup; import org.jsoup.safety.Whitelist; import android.app.Activity; import android.os.Bundle; import android.view.View; import android.view.View.OnClickListener; import android.widget.EditText; public class SanitizeActivity extends Activity { @O...
Java
04-04-jsoup/jsoupSample/src/jp/mydns/sys1yagi/android/jsoupsample/SanitizeActivity.java
android-opensource-library-56/android-opensource-library-56
apache-2.0
1,189
34
codeparrot/github-code
911312ba02202a40943a9ba58e6aed9afe9693b9e4be4d8c796ca23132ae6e0e
<?php namespace App\Http\Controllers; use App\Category; use App\Suggested; use App\Traits\CachableCategory; use App\Traits\CachableUser; use Auth; use Illuminate\Http\Request; use Illuminate\Support\Facades\Cache; class SuggestionController extends Controller { use CachableUser, CachableCategory; public fun...
PHP
app/Http/Controllers/SuggestionController.php
robertalanm/v
apache-2.0
2,850
115
codeparrot/github-code
a9b450f20749fa89f67101592f08c8f2bf1b8a21142416592ee4770d0d0f7b05
/* * The problem definition for the following program is as follow:- * Given a positive integer n and you can do operations as follow: * - If n is even, replace n with n/2. * - If n is odd, you can replace n with either n + 1 or n - 1. * What is the minimum number of replacements needed for n to become 1? * TOD...
C
get_minimum_integer_replacements/get_minimum_integer_replacements.c
ggupta2005/Programming-and-Algorithm-Questions
apache-2.0
1,715
75
codeparrot/github-code
d42f19059e9d1ca195b388971e6cf020a19de45c1ef22c0d5ec097fd1dbee14c
package org.openprocurement.api; import org.joda.time.format.DateTimeFormatter; import org.joda.time.format.ISODateTimeFormat; import org.slf4j.Logger; import org.joda.time.DateTime; import org.openprocurement.api.model.Tender; import org.openprocurement.api.model.TenderList; import org.openprocurement.api.model.Tende...
Java
src/main/java/org/openprocurement/api/TenderService.java
akuchin/openprocurement-java-client
apache-2.0
5,642
127
codeparrot/github-code
6b1566adb8a33aef4840a9d6ee6169ca41ef64c314069ccfde8befa102e924ac
package io.smesh.cluster; import io.smesh.cluster.task.TaskService.TaskThread; import java.util.ArrayList; import java.util.Collections; import java.util.List; import java.util.Objects; class RemoteMembers<M extends ClusterMember> { private final List<M> members = new ArrayList<>(); private final Cluster cl...
Java
smesh-core/src/main/java/io/smesh/cluster/RemoteMembers.java
r2dg/smesh
apache-2.0
1,404
50
codeparrot/github-code
ff9ac957eaf8e59af6b778faff67e5aac8da1b44500fd1b46954bbe548ac05b2
// Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using System.Collections.Immutable; using System.Diagnostics; using System.Threading; using System.Threading.Tasks; using Microsoft.CodeAnalysis.Editor.UnitT...
C#
src/EditorFeatures/TestUtilities/BraceHighlighting/MultiCharacterBraceHighlightingTests.cs
nguerrera/roslyn
apache-2.0
9,874
257
codeparrot/github-code
9f1297c4537bb176bac89f3cec481725f4146533ac4e0859822d60eafb70d455
/** * Copyright 2015 Otto (GmbH & Co KG) * * 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 agree...
Scala
schedoscope-tutorial/src/main/scala/schedoscope/example/osm/stage/NodeTags.scala
hpzorn/schedoscope
apache-2.0
1,234
35
codeparrot/github-code
a9810d720b0f83600bd8ad823bdff1050381cce331f32dea79b0318744086fb1
d3.sankey = function() { var sankey = {}, nodeWidth = 24, nodePadding = 8, size = [1, 1], nodes = [], links = []; sankey.nodeWidth = function(_) { if (!arguments.length) return nodeWidth; nodeWidth = +_; return sankey; }; sankey.nodePadding = function(_) { if (!ar...
JavaScript
sankey.js
Ecotrust/forest_climate_visualization
apache-2.0
7,862
307
codeparrot/github-code
5861ff668b93df99a6434bc5c7b7370a6e637e8d8e6c3af454475450d1a7a754
/* * Copyright 2015-2016 OpenCB * * 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
opencga-catalog/src/main/java/org/opencb/opencga/catalog/monitor/executors/LocalExecutor.java
javild/opencga
apache-2.0
4,448
134
codeparrot/github-code
6ffb17ae8756538bd3101b4a602b3fbe75f3404f183f726609f175270aab649d
package com.mvp.weather_example.di; import android.support.v7.app.AppCompatActivity; import com.mvp.BaseApplicationProvider; import com.mvp.annotation.Provider; import com.mvp.annotation.ProvidesComponent; import com.mvp.annotation.ProvidesModule; @Provider public class WeatherApplication extends BaseApplicationProv...
Java
weather-sample/src/main/java/com/mvp/weather_example/di/WeatherApplication.java
aschattney/annotated-mvp
apache-2.0
1,725
52
codeparrot/github-code
1aa47b291684cd3c1e7cb4ec86b09efc5ebc0ac49250b89962509ac2d468ee5e
/** * Copyright (c) 2016-present, RxJava Contributors. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in * compliance with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable l...
Java
src/test/java/io/reactivex/internal/operators/maybe/MaybeFlatMapIterableObservableTest.java
AttwellBrian/RxJava
apache-2.0
10,601
334
codeparrot/github-code
835c1eb6a3df736cfbe20fbe5118bf735be60aa4c41d518e6db0031fcd86b4c3
package com.kixeye.kixmpp.p2p.serialization; /* * #%L * Zaqar * %% * Copyright (C) 2014 Charles Barry * %% * 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...
Java
kixmpp-p2p/src/test/java/com/kixeye/kixmpp/p2p/serialization/SerializationTest.java
Kixeye/kixmpp
apache-2.0
3,295
117
codeparrot/github-code
1510ec3b3311e8e1f26538e3ea9a4341075a3ff692b5a52c932fe3c4b0244a89
package com.gymnast.view.personal.adapter; import android.support.v4.app.Fragment; import android.support.v4.app.FragmentManager; import android.support.v4.app.FragmentPagerAdapter; import java.util.ArrayList; import java.util.List; /** * Created by yf928 on 2016/7/18. */ public class PersonalAdapter extends Fragmen...
Java
app/src/main/java/com/gymnast/view/personal/adapter/PersonalAdapter.java
928902646/Gymnast
apache-2.0
1,044
39
codeparrot/github-code
5c0fe80662f0c784c8b91a21cc430d123a5239dfa93b40e6bbdc376aacc8acf2
#region Apache License Version 2.0 /*---------------------------------------------------------------- Copyright 2022 Jeffrey Su & Suzhou Senparc Network Technology Co.,Ltd. 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 ...
C#
src/Senparc.Weixin.TenPay/Senparc.Weixin.TenPay/V3/Universal/Entities/Request/PayBank/TenPayV3QueryBankRequestData.cs
JeffreySu/WeiXinMPSDK
apache-2.0
3,287
101
codeparrot/github-code
ad424374695d53f13d508c9c47c91c20ca78f6ff0ea56154358e558a8c8eef47
/* * Copyright 2012, Google Inc. * 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, this list of conditio...
Java
app/src/main/java/org/jf/dexlib2/base/value/BaseEnumEncodedValue.java
nao20010128nao/show-java
apache-2.0
2,426
66
codeparrot/github-code
a708830619a93e982de48f5da02fe5a9ee973232d992e9ba774d3d9e75275310
/* ----------------------------------------------------------------------------- * Rule_classClass.java * ----------------------------------------------------------------------------- * * Producer : com.parse2.aparse.Parser 2.3 * Produced : Fri Apr 12 10:40:21 MUT 2013 * * ---------------------------------------...
Java
src/main/java/com/litecoding/smali2java/parser/method/Rule_classClass.java
Crysty-Yui/smali2java
apache-2.0
8,444
296
codeparrot/github-code
ffa3ef3e5e471ccfcd251c11998b3d226e7d6d86919979a1d9d0062300b6dc05
/* * 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
modules/base/lang-api/src/main/java/com/intellij/application/options/IndentOptionsEditor.java
consulo/consulo
apache-2.0
7,484
226
codeparrot/github-code
6c57735000f0cb2dbb9128893802a351adf4c7c746358329f8cc07860f27fa98
package de.dbaelz.secludedness.level; public class LevelStatistic { private final int START_HEALTH; private final String LEVEL_FILENAME; private int mMoves; private int mTeleports; private int mTraps; private int mHealth; public LevelStatistic(int startHealth, String levelFilename) { START_HEALTH = star...
Java
core/src/de/dbaelz/secludedness/level/LevelStatistic.java
dbaelz/Secludedness
apache-2.0
965
58
codeparrot/github-code
47264a381cb622ca67f7376e284f798308271c96dae81a930fbe06fd8fbc2a21
using System; using System.Numerics; using System.Runtime.CompilerServices; using BepuUtilities.Memory; using BepuUtilities; using BepuPhysics.CollisionDetection; namespace BepuPhysics.Collidables { /// <summary> /// Collision shape representing an individual triangle. Triangle collisions and ray tests are on...
C#
BepuPhysics/Collidables/Triangle.cs
bepu/bepuphysics2
apache-2.0
14,447
302
codeparrot/github-code
a983de8bb478be3761643a1380f6f96d2ff4ca11019aed673e10d7d34cee8cef
import re import sys import subprocess import json def shell(command): _ps = subprocess.Popen( command.split(), stdout=subprocess.PIPE ).communicate()[0].decode() return _ps def cut_option(_param, _options_list): _option = "n/a" _result_list = [] if _param in _options_list: ...
Python
tools/salt_networks.py
savex/spectra
apache-2.0
2,298
67
codeparrot/github-code
10341052c0d0d51bebb53887ddf2b7657cfcec549b1088fb4277fa7167d5513b
/* * Copyright (c) 2020, Peter Abeles. All Rights Reserved. * * This file is part of BoofCV (http://boofcv.org). * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apac...
Java
main/boofcv-ip/src/test/java/boofcv/alg/filter/convolve/TestConvolveImageNormalized.java
lessthanoptimal/BoofCV
apache-2.0
1,893
60
codeparrot/github-code
558df7000889bd98ead741920d66ded8722e0e9c3aa85b82f56c7976dcb0b0a3
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <!-- <title>Evaluating Spark RDD's for side effects</title> --> <title>Manoj G</title> <meta name="viewport" content="width=device-width"> <meta name="description" content="Personal web...
HTML
blog/spark/2014/09/29/evaluating-spark-rdd-for-side-effects-2/index.html
mailmrmanoj/mailmrmanoj.github.io
apache-2.0
26,663
588
codeparrot/github-code
f91de8a016bb8b7e5ec4e16098ec1d704f8642161a6ce2859133bdc9714cab1f
""" sentry_javascript_lite.plugin ~~~~~~~~~~~~~~~~~~~~~ """ import re from django.conf import settings from sentry.lang.javascript.plugin import JavascriptPlugin from sentry.lang.javascript.processor import SourceProcessor from sentry.interfaces.stacktrace import (Frame, Stacktrace) from sentry_javascript_lite import...
Python
sentry_javascript_lite/plugin.py
Banno/getsentry-javascript-lite
apache-2.0
3,880
121
codeparrot/github-code
ada3f4f728ed91d0fa077a5c96d76a540d5385aae4321faf24a72f66e5de4a25
// ------------------------------------------------------------------------- // @FileName : NFCAsyMysqlModule.h // @Author : ChuanBo.Guo // @Date : 2016-01-31 // @Module : NFCAsyMysqlModule // // ------------------------------------------------------------...
C
NFComm/NFMysqlPlugin/NFCAsyMysqlModule.h
xinst/NoahGameFrame
apache-2.0
7,466
209
codeparrot/github-code
4312e5c229f4c3ffdd7c3dc31ac2cf538daa02d1efc5c4f48c654fff829f3fdf
/** * Created by Healer on 14-8-30. */ $class("Charts", null, { showCharts: function(domNode, p) { this.showChartsData(domNode, p, this._chartsItems) if (!this._chartsItems) { console.log('No data to render'); } }, showChartsData: function(domNode, p, data) { ...
JavaScript
www/view/media/widgets/charts.js
healerkx/AdminBuildr
apache-2.0
8,396
287
codeparrot/github-code
08885578ecc68dfcf0a7caf18a436e423cd2a6ac4c1a7d79906d86491b5fbe8a
package main import ( "fmt" "html/template" "io/ioutil" "net/http" "os" ) type Page struct { Title string Body []byte } func (p *Page) save() error { filename := p.Title + ".txt" return ioutil.WriteFile(filename, p.Body, 0600) } func loadPage(title string) (*Page, error) { filename := titl...
GO
golang-org-wiki/gowiki/httpServeWikiStatusCode.go
tangfeixiong/go-to-exercise
apache-2.0
1,356
61
codeparrot/github-code
5ed37502f5cee0bd036984f3a6f7c2dd0e280e2ca4c4193469507640b3c62529
/*! @license Firebase v4.2.0 Build: rev-d6b2db4 Terms: https://firebase.google.com/terms/ */ 'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); exports.base64 = undefined; var _globalScope = require('./globalScope'); var stringToByteArray = function stringToByteArray(str) { var out...
JavaScript
utils/crypt.js
romario333/firebase-proxy-patched
apache-2.0
9,502
260
codeparrot/github-code
4bb8d1a975c4e8d72cbf81a8155b42b908c5c53295288dd435fc8b18317847d5
/* * The Gemma project * * Copyright (c) 2006-2007 University of British Columbia * * 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
gemma-core/src/main/java/ubic/gemma/core/apps/NcbiGeneLoaderCLI.java
ppavlidis/Gemma
apache-2.0
5,767
162
codeparrot/github-code
eb6c6dbe017488eecb55a53784f1ae10d8c0cb17e13cafc1f3ebd49920118f2b
// Copyright 2015-2022 Bret Jordan, All rights reserved. // // Use of this source code is governed by an Apache 2.0 license that can be // found in the LICENSE file in the root of the source tree. package identity import "fmt" // ---------------------------------------------------------------------- // Public Method...
GO
objects/identity/valid.go
freetaxii/libstix2
apache-2.0
1,573
49
codeparrot/github-code
17ea3810ac8fb3145ab66c20ea55497840581602798b21727dbcd164035f87b4
/******************************************************************************* * Copyright 2011 See AUTHORS file. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http:...
Java
gdx/src/com/badlogic/gdx/utils/SortedIntList.java
alex-dorokhov/libgdx
apache-2.0
5,223
192
codeparrot/github-code
0304a320366f34a35c971e87f2e8383ef95d34e0df0c1c214734bc26c0c58dab
# Copyright 2014-2018 The PySCF Developers. 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 appl...
Python
examples/local_orb/nlocal.py
sunqm/pyscf
apache-2.0
6,720
214
codeparrot/github-code
b95cde275781080065e3692c8bdea5aacbc0730a87fa58a8b17aa886c49a8b38
// Copyright 2011 Google Inc. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in...
Java
projects/slf4j-stub/source/java/org/slf4j/LoggerImpl.java
googlegsa/manager.v3
apache-2.0
4,171
146
codeparrot/github-code
2ffc1e44c4b047a34179db8fca9ce1ef8f914ca19a6024ee81e2e59dcf7b9f7a
using System.Diagnostics; namespace Lucene.Net.Index { /* * 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 fi...
C#
src/Lucene.Net/Index/SingletonSortedSetDocValues.cs
laimis/lucenenet
apache-2.0
2,947
93
codeparrot/github-code
7878628cc38eaa88df4081ea6ff274cb8efb99353ab1242d35ec5faed6f5ff7a
package cgeo.geocaching.enumerations; import cgeo.geocaching.CgeoApplication; import cgeo.geocaching.R; import org.apache.commons.lang3.StringUtils; import org.eclipse.jdt.annotation.NonNull; import org.eclipse.jdt.annotation.Nullable; import android.util.SparseArray; import java.util.HashMap; import java.util.List...
Java
main/src/cgeo/geocaching/enumerations/CacheAttribute.java
SammysHP/cgeo
apache-2.0
17,764
217
codeparrot/github-code
fc2822f65f9b49880733b076f19303ca4434cd9c875a43bede6b8ea3525550d0
/* * Minio Client (C) 2015, 2016 Minio, 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 ...
GO
cmd/mirror-url.go
abperiasamy/mc
apache-2.0
6,910
206
codeparrot/github-code
ce787349e4d23edad71ae8bd6cf4e9616f7a5953c2017d10d712e171e7492e68
import os import shutil import subprocess import sys import tempfile import threading _g_failed = [] def this_location(): return os.path.abspath(os.path.dirname(__file__)) def checkenv(sd_license, release, ssh_key_path): required_vars = ['AWS_ACCESS_KEY_ID', 'AWS_SECRET_ACCESS_KEY',...
Python
release/release.py
stardog-union/stardog-graviton
apache-2.0
8,041
237
codeparrot/github-code
58761e385e468b0d741a1bcd81f81a47b735ac6916cc8e3b21a14b24ca4d1335
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may ...
Java
zeppelin-zengine/src/main/java/org/apache/zeppelin/notebook/Note.java
i1befree/zeppelin
apache-2.0
9,447
369
codeparrot/github-code
168fdb898824e02a1666c31ef43b2ef589880f807550f74ccb8b508938b5c15b
/* * Copyright 2011 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 applicabl...
Java
betamax-core/src/main/java/co/freeside/betamax/TapeMode.java
georgecodes/betamax
apache-2.0
1,499
55
codeparrot/github-code
5b48762c5e1189d52fea5df554902f588e7c178f7a92dcb9548722a8ae529adc
"""List the IP forwarding rules""" from baseCmd import * from baseResponse import * class listIpForwardingRulesCmd (baseCmd): typeInfo = {} def __init__(self): self.isAsync = "false" """list resources by account. Must be used with the domainId parameter.""" self.account = None ...
Python
marvin/cloudstackAPI/listIpForwardingRules.py
MissionCriticalCloud/marvin
apache-2.0
4,977
125
codeparrot/github-code
e6840ac863948fbe31413028ccb97f4dbcfb21a546a8379db18d54ab7dbaf1f2
<?php if(!isset($archivo)&&isset($archivos)){ $archivo = $archivos; } ?> <!-- MAIN CONTENT --> <div id="content" > <div class="row"> <div class="col-xs-12 col-sm-9 col-md-9 col-lg-9"> <h1 class="page-title txt-color-blueDark"> <?php if($type=='5'){?> <a class="backHome" href="/bo...
PHP
application/views/website/bo/logistico/archivero.php
networksoft/erp.vitale
apache-2.0
12,422
406
codeparrot/github-code
fcc33ad6863845839cbb3f132af2543fd5ea2f48386957773a7ba1e5fe77b2ab
/* * Copyright 2014 NAVER Corp. * * 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
bootstrap-core/src/main/java/com/baidu/oped/apm/bootstrap/plugin/jdbc/interceptor/PreparedStatementCreateInterceptor.java
masonmei/java-agent
apache-2.0
4,906
101
codeparrot/github-code
eac9d25ca02604896a1e7a5e70be4fa417d7376bb641c13b57962da85cca6a0f
package com.saoyor.generic; /** * 内部链式存储的实现 * * 主要思想 : 上一个对象持有下一个对象 * * 每次访问的时候 * - 把当前对象 返回 * - 把下一个对象设置为当前对象 * * @author saoyor <345747439@qq.com> * @copyright 广州拉丁网络股份有限公司版权所有 Copyright (c) 2014-2016 (http://www.comprame.com) * @date 16/4/3 */ public class LinkedHolder<T> { private class Node{ ...
Java
java-demo/src/main/java/com/saoyor/generic/LinkedHolder.java
saoyor/demo
apache-2.0
870
64
codeparrot/github-code
6bede9e7f1272221a063218fcb0558065cc44d903dc618f0868f035c7ad4ae4c
/* * Copyright 2016 Open Networking Laboratory * * 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
apps/openstackinterface/app/src/main/java/org/onosproject/openstackinterface/web/OpenstackRouterInterfaceCodec.java
sonu283304/onos
apache-2.0
2,437
65
codeparrot/github-code