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
59296d014b22a091ff0cc247648518ec485eb3ea8ad17eb743fa68ff2d8d01ed
/* ======================================================= Copyright 2020 - ePortfolium - 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.osedu.org/licenses/ECL-...
Java
karuta-model/src/main/java/eportfolium/com/karuta/model/exception/DoesNotExistException.java
nobry/karuta-backend
apache-2.0
2,307
68
codeparrot/github-code
1982011c0375322145aa42193eb7f677b885fa44cc96ee97aaa682fa78139565
package com.yiqiniu.easytrans.queue.impl.ons; import java.util.Map; import java.util.Properties; import com.aliyun.openservices.ons.api.Message; import com.aliyun.openservices.ons.api.ONSFactory; import com.aliyun.openservices.ons.api.Producer; import com.aliyun.openservices.ons.api.SendResult; import com.yi...
Java
easytrans-queue-ons-starter/src/main/java/com/yiqiniu/easytrans/queue/impl/ons/OnsEasyTransMsgPublisherImpl.java
QNJR-GROUP/EasyTransaction
apache-2.0
2,097
52
codeparrot/github-code
8bdc830aad93414ddeb93de70ae2e3b40a3ad7374308c500aa400e5ba815f29d
<link rel="import" href="../polymer/polymer.html"> <link rel="import" href="../tf-event-dashboard/tf-data-coordinator.html"> <link rel="import" href="../tf-event-dashboard/tf-tooltip-coordinator.html"> <link rel="import" href="../tf-event-dashboard/tf-run-selector.html"> <link rel="import" href="../tf-event-dashboard/t...
HTML
tensorflow/tensorboard/components/tf-histogram-dashboard/tf-histogram-dashboard.html
awni/tensorflow
apache-2.0
8,383
223
codeparrot/github-code
7413f7883606fe8c922a4bb30b7534dc32b6aadc4f5240d1974482a7c16320c9
<?php if(!isset($_GET['s'])) { die('You must define a search term!'); } $highlight = true;//highlight results or not $search_in = array('html', 'htm');//allowable filetypes to search in $search_dir = '..';//starting directory $recursive = true;//should it search recursively or not define('SIDE_CHARS', 80); $file_cou...
PHP
src/main/webapp/static/apidoc/ohter/search/results.php
futureskywei/whale
apache-2.0
4,810
154
codeparrot/github-code
55dc3b6ae75ee26ba0f5f575103df377597ce9c1c62dd46c7a78e3e139bf4fb9
// Copyright 2018 The Terraformer 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...
GO
providers/keycloak/authentication.go
GoogleCloudPlatform/terraformer
apache-2.0
3,603
93
codeparrot/github-code
c6e9d1adb0a681ed4f00a2af1eead9ef906d6f564cc4b8292b41ad279b4b529b
import re import subprocess import os def get_git_info(path='.', abort_dirty=True): info = {} if not is_git(path): return None if abort_dirty and not is_clean(path): return None info['url'] = get_repo_url(path) info['commit'] = get_commit(path) return info def is_git(path='...
Python
studio/git_util.py
studioml/studio
apache-2.0
2,399
112
codeparrot/github-code
c77b84dceeffd57ca9b98419b2f20bed78c9c74b8117fff32e527da727f140b6
/* * Copyright 2014 Alexey Andreev. * * 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
teavm-core/src/main/java/org/teavm/diagnostics/Problem.java
avdim/teavm
apache-2.0
4,601
160
codeparrot/github-code
a00345f74a871d3aae0bcbc7ed1778575eeedce964106186b723b8d04caa010a
package com.example.practicaltest01; import android.app.Activity; import android.content.Intent; import android.os.Bundle; import android.view.Menu; import android.view.MenuItem; import android.view.View; import android.widget.Button; import android.widget.CheckBox; import android.widget.CompoundButton; import android...
Java
PracticalTest01/src/com/example/practicaltest01/PracticalTest01MainActivity.java
gabi922/PracticalTest01
apache-2.0
4,905
147
codeparrot/github-code
b32fa5769686b1d0db9f3e1c37e9f4efc4675c020b4b2246f8fba64c3d2e3ec4
/* * 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/CollectionSerializer.java
pongasoft/kiwidoc
apache-2.0
2,077
79
codeparrot/github-code
1687b67752c86bac3c6cc7e1536000034667f99e11f5e128894a21a7ca1bc8a2
package org.wso2.iot.alertme.plugin.impl.dto; /** * Created by ruwan on 2/16/17. */ public class MetaData { String owner; String deviceType; String deviceId; public String getOwner() { return owner; } public void setOwner(String owner) { this.owner = owner; } public...
Java
ActiSense/AlertMe/component/plugin/src/main/java/org/wso2/iot/alertme/plugin/impl/dto/MetaData.java
charithag/iot-server-samples
apache-2.0
631
35
codeparrot/github-code
3448b37aac91568690b49bbe6dd1b59e29997b026815f06ac101ea46574c1d4f
/* * Copyright 2010-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 "license" fil...
C
aws-cpp-sdk-alexaforbusiness/include/aws/alexaforbusiness/model/SkillGroupData.h
JoyIfBam5/aws-sdk-cpp
apache-2.0
5,445
172
codeparrot/github-code
73bade8fa44a23b57b0b5339b3a2a32117e5cf508ad567231cf06b0bfdd761fc
// Copyright (c) 2017 James Skimming. All rights reserved. // Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information. namespace Abioc.Generation { using System; using System.Collections.Generic; using System.Linq; using System.Text; using Abioc.Comp...
C#
src/Abioc/Generation/CodeGeneration.cs
JSkimming/abioc
apache-2.0
16,649
380
codeparrot/github-code
05679a34efa2d5eb319fb7518238f0c277bc1fd821dd5f6b64591927198c975d
var archive = (function () { var exports = {}; function should_separate_into_groups(current_msg_time, next_msg_time) { var current_time = new XDate(current_msg_time * 1000); var next_time = new XDate(next_msg_time * 1000); return current_time.toDateString() !== next_time.toDateString(); } function all_me...
JavaScript
static/js/archive.js
rishig/zulip
apache-2.0
5,270
144
codeparrot/github-code
869e0c36e6d866fc7c4b25cbabc77d218426a24ce376bb122e8819805d1964ce
<?php /** * Custom functions that act independently of the theme templates * * Eventually, some of the functionality here could be replaced by core features * * @package Golfio */ /** * Adds custom classes to the array of body classes. * * @param array $classes Classes for the body element. * @return array ...
PHP
wp-content/themes/golfio/inc/extras.php
radovanx/golfio
apache-2.0
1,916
72
codeparrot/github-code
ccb13ac475613c7553c8a95dd3b9a36e6087cd5ac45c38764e56969013d483ff
// Copyright 2012 Aaron Jacobs. All Rights Reserved. // Author: aaronjjacobs@gmail.com (Aaron Jacobs) // // 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/licen...
GO
password.go
jacobsa/comeback
apache-2.0
1,260
50
codeparrot/github-code
bbc3a2e3a2c5c062804639aab0a03563db6cecf6875859f2bbfef690e2d822d1
package gov.nist.registry.ws.serviceclasses; import gov.nist.registry.common2.exception.MetadataException; import gov.nist.registry.common2.registry.Metadata; import gov.nist.registry.common2.registry.MetadataSupport; import gov.nist.registry.common2.registry.Response; import gov.nist.registry.common2.registry.Validat...
Java
iheos/src/main/java/gov/nist/registry/ws/serviceclasses/Test11730.java
jembi/openxds
apache-2.0
1,998
61
codeparrot/github-code
6dc7eedd510601b6eb4ea2e648347b90cafa02c500df79d118e42306b83bcc3b
/* * Copyright 2013 Eediom 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 i...
Java
araqne-logstorage/src/main/java/org/araqne/logstorage/backup/StorageMediaFile.java
araqne/logdb
apache-2.0
1,670
82
codeparrot/github-code
d57c676370a85cb6bd924a2dfac982945fbd0698ffcc954286717d84238e8f8a
package com.example.jingbin.cloudreader.viewmodel.wan; import com.example.jingbin.cloudreader.bean.wanandroid.DuanZiBean; import java.util.List; import io.reactivex.disposables.Disposable; /** * @author jingbin * @data 2018/2/8 * @Description */ public interface WanNavigator { interface JokeModelNavigato...
Java
app/src/main/java/com/example/jingbin/cloudreader/viewmodel/wan/WanNavigator.java
youlookwhat/CloudReader
apache-2.0
592
37
codeparrot/github-code
e44b426d77a4e434cc5f8590aaefb44dd23983bf975f75344537d425dfaba88e
package io.leopard.json; import java.io.IOException; import java.lang.reflect.Field; import java.lang.reflect.ParameterizedType; import java.util.ArrayList; import java.util.Date; import java.util.Iterator; import java.util.List; import com.fasterxml.jackson.core.JsonParser; import com.fasterxml.jackson.core.JsonProc...
Java
leopard-json/src/main/java/io/leopard/json/SubclassJsonDeserializer.java
tanhaichao/leopard-lang
apache-2.0
4,077
159
codeparrot/github-code
b229511c4a9ae36aec066ecf31223ec2efb547a00a23cb292f6d23b863e46cb3
package vn.tale.lcebinding; import rx.Observable; import rx.functions.Action0; import rx.functions.Action1; /** * Implementation of {@link Observable.Transformer} to bind an observable to Lce * @param <T> data type. * @deprecated use {@link LceSubscriber} instead */ @Deprecated public class LceBindingTransformer<...
Java
lcebinding/src/main/java/vn/tale/lcebinding/LceBindingTransformer.java
talenguyen/LceBinding
apache-2.0
1,055
41
codeparrot/github-code
b25e63f9e70a8515e27833fb6cde79b915ee85c8ae19c54fc09d06dd1454f73e
/* * Copyright (c) Sematext International * All Rights Reserved * * THIS IS UNPUBLISHED PROPRIETARY SOURCE CODE OF Sematext International * The copyright notice above does not evidence any * actual or intended publication of such source code. */ package com.sematext.querysegmenter; import java.io...
Java
core/src/main/java/com/sematext/querysegmenter/FileBasedSegmentDictionary.java
sematext/query-segmenter
apache-2.0
1,327
55
codeparrot/github-code
9fa06dc4e625a0a724ce25ec2267f53ffec41f0cbe0c345681378e3e9e82dc8f
/** * Copyright (C) 2014-2018 LinkedIn Corp. (pinot-core@linkedin.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 * * Unle...
Java
pinot-controller/src/main/java/com/linkedin/pinot/controller/helix/core/retention/RetentionManager.java
apucher/pinot
apache-2.0
8,855
192
codeparrot/github-code
fed5829245e4882594ef2c59eeee2b9ffc4cd80708f9f3785121da1b4f3cfb79
/* * Copyright 2017 helloscala.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 or agreed ...
Scala
hs-core/src/main/scala/helloscala/common/util/RunDuration.scala
helloscala/helloscala
apache-2.0
1,230
54
codeparrot/github-code
219b8d97a1372d51015460c764731a5afd6a973085ed7c1986023d8b7542ff50
using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; using System.Linq; using System.Runtime.Serialization; using System.Text; namespace nl.fhict.IntelliCloud.Data.IntelliCloud.Model { /// <summary> /// A class represe...
C#
IntelliCloud/IntelliCloud.Data/IntelliCloud/Model/LanguageDefinitionEntity.cs
fhict-Intellicloud/nl.fhict.intellicloud.backend
apache-2.0
1,109
35
codeparrot/github-code
827f2e873d97a72b9243b085faacc8e244161a0cdfd101cc6e0cbd2687ac7fcc
/* Copyright 2018 The Doctl Authors All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to ...
GO
do/images.go
digitalocean/doctl
apache-2.0
3,691
145
codeparrot/github-code
7574ea7bcf4f55cdd0bde5c162e2082f81b03cde9f1222d0b894574306d6aebf
package ptn011; import com.hadoop.compression.lzo.*; import com.hadoop.compression.lzo.LzoCodec; import com.hadoop.mapreduce.LzoTextInputFormat; import org.apache.hadoop.conf.Configuration; import org.apache.hadoop.fs.*; import org.apache.hadoop.io.compress.CompressionCodec; import org.apache.hadoop.mapreduce.*; impor...
Java
src/main/java/ptn011/LzopMapReduce.java
willddy/bigdata_pattern
apache-2.0
2,729
85
codeparrot/github-code
d14729e314c2a6db38a33a2f40b532f789bad6d09c0010c98a3c0cfd9d48722c
package mesosphere.marathon package core.task import java.util.Base64 import com.fasterxml.uuid.{ EthernetAddress, Generators } import mesosphere.marathon.core.condition.Condition import mesosphere.marathon.core.condition.Condition.Terminal import mesosphere.marathon.core.instance.{ Instance, Reservation } import mes...
Scala
src/main/scala/mesosphere/marathon/core/task/Task.scala
janisz/marathon
apache-2.0
19,403
397
codeparrot/github-code
8877f0cfd5f3b56e2b17aa2e5c5fabb3dfb110ed214acde9c65011f965f6b6b0
package com.ongxeno.bitcoinratewidget.model.suprnova; import com.google.gson.annotations.Expose; import com.google.gson.annotations.SerializedName; public class Shares { @SerializedName("valid") @Expose private Double valid; @SerializedName("invalid") @Expose private Double invalid; @Ser...
Java
app/src/main/java/com/ongxeno/bitcoinratewidget/model/suprnova/Shares.java
Xenocide93/GenericMiningPoolMonitorWidget
apache-2.0
1,534
77
codeparrot/github-code
ca3594c1b51b25618f2c54cb7c6878f53ebf1fffc7b95a194249722ad6d427ae
import numpy as np # for the double bounded trafo def i2e(v, u, l): return l + 0.5 * (u - l) * (np.sin(v) + 1) def e2i(v, u, l, eps2): piby2 = 2. * np.arctan(1.) distnn = 8. * np.sqrt(eps2) vlimhi = piby2 - distnn vlimlo = -piby2 + distnn yy = 2. * (v - l) / (u - l) - 1. yy2 = yy * yy ...
Python
int2ext_precision_solution.py
roofit-dev/parallel-roofit-scripts
apache-2.0
1,674
66
codeparrot/github-code
326024f0bfebbcba3be3999b65ad6430e8d4d495353419113267332f2bf320c1
'use strict'; var fs = require('fs'); var path = require('path'); var _ = require('lodash'); var Q = require('q'); var catSettings = require('cat-settings'); var $28API = require('./28.js').$28; var $28; var Config = (function(){ // Settings var defaultSettings = { 'access_token': '', 'refr...
JavaScript
lib/config.js
28msec/28
apache-2.0
6,790
205
codeparrot/github-code
248a5c0faa1212a6660634009bbff257320cb9198942681cb150e3696a9c2cdc
/* * Copyright 2012 JBoss Inc * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to ...
Java
guvnor-asset-mgmt/guvnor-asset-mgmt-client/src/main/java/org/guvnor/asset/management/client/editors/project/structure/ProjectStructureView.java
yurloc/guvnor
apache-2.0
1,492
48
codeparrot/github-code
c205a2c79116db79efd38a6926ddc38f3cbd2c45b1c1686d4e1c30d37952d004
/* * Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" fil...
C++
aws-cpp-sdk-dms/source/model/ListTagsForResourceRequest.cpp
ambasta/aws-sdk-cpp
apache-2.0
1,401
52
codeparrot/github-code
1ccaa8bccf0b8ebfbfbc096d28a69cd0e9fad318844d12419eb5ab91f1595a67
/* Copyright 2012 Dominic Tootell 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 dis...
Java
tomcat-last-access-time-domain/src/main/java/org/greencheek/tomcat/lastaccesstime/service/AccessTimeRecorder.java
tootedom/tomcat-last-access-time
apache-2.0
1,045
40
codeparrot/github-code
c642a2219b4ed10e3c992cb4796ca6525d1c52222c8818ed2f3a930c0dc91fac
package com.planet_ink.coffee_mud.Items.Basic; import com.planet_ink.coffee_mud.core.interfaces.*; import com.planet_ink.coffee_mud.core.*; import com.planet_ink.coffee_mud.Abilities.interfaces.*; import com.planet_ink.coffee_mud.Areas.interfaces.*; import com.planet_ink.coffee_mud.Behaviors.interfaces.*; import ...
Java
com/planet_ink/coffee_mud/Items/Basic/StdContainer.java
robjcaskey/Unofficial-Coffee-Mud-Upstream
apache-2.0
15,251
572
codeparrot/github-code
d8f8245cd19464c4a86485a5ef079e8b8670afddd49c871ee0d34e928c6550dd
using FinesSE.Contracts; using FinesSE.Contracts.Infrastructure; using OpenQA.Selenium; using OpenQA.Selenium.IE; using System.Collections.Generic; namespace FinesSE.Drivers { public class IE : IWebDriverActivator { public WebDrivers Id => WebDrivers.IE; public IEnumerable<string>...
C#
FinesSE/FinesSE.Drivers/IE.cs
MirekVales/FinesSE
apache-2.0
2,383
60
codeparrot/github-code
297f6b6b9da788b05dc64456f89f4205e7d9175d678a878c1d73c3a762e3fe64
#Задача 8. Вариант 23. #1-50. Доработайте игру "Анаграммы" (см. М.Доусон Программируем на Python. Гл.4) так, чтобы к каждому слову полагалась подсказка. Игрок должен получать право на подсказку в том случае, если у него нет никаких предположений. Разработайте систему начисления очков, по которой бы игроки, отгадавшие с...
Python
INBa/2015/Sarocvashin_M/task_8_23.py
Mariaanisimova/pythonintask
apache-2.0
1,271
38
codeparrot/github-code
6bd0c965e25d9ea5a16ef97af5413b7a21ac122d8cb0c4ed193177b03510e156
/* -*- Mode: C; tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- */ /* * Copyright 2016-2019 Couchbase, 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 * * ...
C
src/hdr_timings.c
avsej/libcouchbase
apache-2.0
2,461
83
codeparrot/github-code
ca183b16aa637762bbf501a0c34e7ff6fde94ba9de7f485fe7db298fd67a241d
// standard namespaces using System.IO; // imported .dll's using Newtonsoft.Json; using Newtonsoft.Json.Bson; using RestSharp; using RestSharp.Deserializers; namespace TwitchLibrary.Helpers.Json { internal class CustomBsonDeserializer : IDeserializer { public string RootElement { get; set; } ...
C#
Helpers/Json/CustomBsonDeserializer.cs
RokuHodo/Twitch-Library
apache-2.0
1,001
36
codeparrot/github-code
2be8af95255fc2a192660ae218c12dae9c8066ed6a3c775ec6de474256714a0b
/* * Copyright 2016 Red Hat, Inc. and/or its affiliates. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by a...
Java
drools-benchmarks/src/main/java/org/drools/benchmarks/cep/DuringBenchmark.java
droolsjbpm/kie-benchmarks
apache-2.0
2,660
71
codeparrot/github-code
625a1f8b6bbe76ed6134f7f87998fae3a25a46b7cd6a5cea4c6177bbd4b7c528
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Linq.Expressions; using Elasticsearch.Net; using Nest; //This file contains all the typed request parameters that are generated of the client spec. //This file is automatically generated from https://github.com/elastic/...
C#
src/Nest/_Generated/_RequestParametersExtensions.Generated.cs
CSGOpenSource/elasticsearch-net
apache-2.0
12,666
160
codeparrot/github-code
87d51ece9de1a14f684990a0a98556391fd31807a7c5e7f53fb9a4db602d857d
#!/usr/bin/python # vim: set ts=4 sts=4 sw=4 et: import sys import subprocess import re try: import biplist except ImportError: print 'Please install the `biplist` module:' print ' sudo easy_install biplist' sys.exit(1) try: import argparse except: print 'Cannot find library "argparse"!' ...
Python
official-translations.py
wonderpush/wonderpush-ios-sdk
apache-2.0
5,820
164
codeparrot/github-code
a7cbf267a464cdb6302b9af53e872259fb72a3e14fe6faadfcd19f0ccc57b41d
/* * Copyright 2016 Centro, Inc. * * 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, Ve...
Java
src/main/java/net/centro/rtb/monitoringcenter/config/GraphiteReporterConfig.java
centro/monitoring-center
apache-2.0
12,366
304
codeparrot/github-code
20dd089b34b9f98c0a23f1198dafe6c5a0aab8fb03a36c4f836860e953624755
/* * COPYRIGHT LICENSE: This information contains sample code provided in source * code form. You may copy, modify, and distribute these sample programs in any * form without payment to IBM for the purposes of developing, using, marketing * or distributing application programs conforming to the application programmin...
Java
src/main/java/net/wasdev/sample/javaee7/websocket/coders/DecoderOne.java
WASdev/sample.javaee7.websocket
apache-2.0
2,027
58
codeparrot/github-code
e6bdaab74b2c19fea4e138ba6cde5540fee27b43854533070bd7144d1783f616
###################################################################### # tc_finite.rb # # Test case for the Float#finite? instance method. ###################################################################### require 'test/unit' class TC_Float_Finite_InstanceMethod < Test::Unit::TestCase def setup @float_one...
Ruby
jruby/src/test/externals/ruby_test/test/core/Float/instance/tc_finite.rb
google-code/android-scripting
apache-2.0
890
35
codeparrot/github-code
524c84d8fb2fa6be4059ae15faf820e78717b5a87cb8bfc1872dc14b3d4d1132
package com.anttoolkit.maestro.tasks.properties; import java.util.*; import org.apache.tools.ant.*; import com.anttoolkit.maestro.common.*; @Action("delete-instance-properties") public class DeletePropertiesTask extends PropertyTask { @Param private boolean all = false; @Param("property-name-list") private Set...
Java
dev/modules/native/maestro/src/main/java/com/anttoolkit/maestro/tasks/properties/DeletePropertiesTask.java
irudyak/ant-toolkit
apache-2.0
762
44
codeparrot/github-code
19bcdc70145fbbcab7051ea8eceb4f395b6d4b662c362fa60e4e313e1cdd8b79
/* * Copyright (C) Lightbend Inc. <https://www.lightbend.com> */ package play.api.libs.ws import java.nio.charset.Charset import java.nio.charset.StandardCharsets._ import akka.stream.scaladsl.Source import akka.util.ByteString import org.specs2.matcher.MustMatchers import org.specs2.mutable.Specification import p...
Scala
play-ws-standalone-json/src/test/scala/play/api/libs/ws/JsonBodyReadablesSpec.scala
playframework/play-ws
apache-2.0
3,762
101
codeparrot/github-code
a4915502c516b63ed043ea9390b4c1e3710aa2341df7e9dd67e56963ef963237
using System.IO; using Qart.Core.Io; using Qart.Core.DataStore; using Qart.Core.Text; namespace Qart.Testing.Transformations.StreamTransformers { public class ConcatJsonArrayStreamTransformer : IStreamTransformer { public Stream Transform(Stream strm, IDataStore dataStore, object param) { ...
C#
src/Qart.Testing/Transformations/StreamTransformers/ConcatJsonArrayStreamTransformer.cs
avao/Qart
apache-2.0
1,040
35
codeparrot/github-code
30a4b2bd01eb8bb7e9105ab2071b9335d93e7a714e5c35056843b7245adf21e7
import { addGenPbHandler } from '../errors/handler.js' import { runConfigFunc } from '../functions/run.js' import { mapValues } from '../utils/functional/map.js' import { getPatchErrorProps } from './error.js' import { parsePatchOp } from './parse.js' import { replaceSimpleRef, replaceRef } from './ref.js' import { pa...
JavaScript
src/patch/apply.js
autoserver-org/autoserver
apache-2.0
3,301
119
codeparrot/github-code
8e7daa24dac925888da5a343b70274fe10e646712dd69f4f85b83d46448f8120
package com.example.administrator.taoyuan.activity_my; import android.content.Intent; import android.os.Bundle; import android.support.v7.app.AppCompatActivity; import android.util.Log; import android.view.View; import android.widget.Button; import android.widget.ImageView; import android.widget.RelativeLayout; import...
Java
app/src/main/java/com/example/administrator/taoyuan/activity_my/MyFriend.java
1111Jin/TaoYuan_group8
apache-2.0
6,742
198
codeparrot/github-code
3edba22d34957a45b03d7363720ac7f7a9d00e3233c2ddf0d7fb04ad2563c68f
package org.wso2.carbon.governance.registry.extensions.handlers; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; import org.wso2.carbon.governance.api.cache.ArtifactCache; import org.wso2.carbon.governance.api.cache.ArtifactCacheManager; import org.wso2.carbon.governance.api.excep...
Java
components/governance/org.wso2.carbon.governance.registry.extensions/src/org/wso2/carbon/governance/registry/extensions/handlers/MetaDataCacheHandler.java
pulasthi/carbon-governance
apache-2.0
3,284
83
codeparrot/github-code
fabc82800067576c2ec886ffe598239bcef99e620b32fc2da5cd54aeea3d20ba
package org.sfx.catholicjourney.core.utils; import android.text.TextUtils; /** * Created by simonadmin on 2015-03-18. */ public class CloundinaryImageUrlBuilder implements ImageUrlBuilder { // this is temporary to be placed here. In the future, the whole URL should come from the server public static final String...
Java
app/src/main/java/org/sfx/catholicjourney/core/utils/CloundinaryImageUrlBuilder.java
simtse/CatholicJourney
apache-2.0
2,575
106
codeparrot/github-code
04845a1a50db3bf76e9a28a2780f435b583606471e9c6e1806f15c84151d5cf8
#!/bin/bash JEN_GIT_FILE=`basename $JEN_GIT_SRC` if [ -n "${JEN_REMOTE_SOCKS_SRC}" ]; then JEN_REMOTE_SOCKS_FILE=`basename $JEN_REMOTE_SOCKS_SRC` fi if [ -n "$JEN_REMOTE_SOCKS_FILE" -a ! -f "$JEN_REMOTE_SOCKS_FILE" ]; then LD_PRELOAD="$JEN_LD_PRELOAD" wget ${JEN_REMOTE_SOCKS_FILE} fi export LD_PRELOAD="$JEN_LD_PR...
Shell
examples/jenkins/start-virl.sh
mthibaut/python-virl2
apache-2.0
6,250
167
codeparrot/github-code
a13ad884f6a650d253a848f7861675cbd87a466af94075f7bb6b64bcc559034a
# =============================================================================== # Copyright 2015 Jake Ross # # 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...
Python
pychron/hardware/linear_axis.py
UManPychron/pychron
apache-2.0
2,566
80
codeparrot/github-code
a845420112c6fec489ff3f4cc781b43652b0d9cf3ac037b7788059c7150386fc
/* * Copyright 2014-2019 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-dms/src/main/java/com/amazonaws/services/databasemigrationservice/model/transform/ModifyReplicationInstanceRequestMarshaller.java
jentfoo/aws-sdk-java
apache-2.0
5,902
87
codeparrot/github-code
544d1840267df2e31d1a27c3b1f26bee23351c5549ae427a0635f4bc6202b030
package com.java110.community.smo.impl; import com.java110.dto.unit.FloorAndUnitDto; import com.java110.utils.util.BeanConvertUtil; import com.java110.community.dao.IUnitServiceDao; import com.java110.core.base.smo.BaseServiceSMO; import com.java110.intf.community.IUnitInnerServiceSMO; import com.java110.intf.user.IU...
Java
service-community/src/main/java/com/java110/community/smo/impl/UnitInnerServiceSMOImpl.java
java110/MicroCommunity
apache-2.0
3,870
128
codeparrot/github-code
c4b80b606f135da05203e852b056f347612cb6fe91e629e6a260675404a9e440
/* * Copyright (c) 2015 Snowplow Analytics Ltd. All rights reserved. * * This program is licensed to you under the Apache License Version 2.0, * and you may not use this file except in compliance with the Apache License Version 2.0. * You may obtain a copy of the Apache License Version 2.0 at http://www.apache.org...
Scala
src/main/scala/com.snowplowanalytics/huskimo/channels/twilio/PricingApiClient.scala
snowplow/huskimo
apache-2.0
6,562
203
codeparrot/github-code
4482c8fe5f52329775f530808cc6ba237476520358ec03a649c160ace6551434
package com.boldijarpaul.backend.servlets; import java.util.List; import javax.ws.rs.GET; import javax.ws.rs.POST; import javax.ws.rs.PUT; import javax.ws.rs.Path; import javax.ws.rs.PathParam; import javax.ws.rs.core.Response; import com.boldijarpaul.backend.entities.Quest; import com.boldijarpaul.backend.entities....
Java
src/main/java/com/boldijarpaul/backend/servlets/ServiceServlet.java
BoldijarPaul/polihack-backend
apache-2.0
1,729
87
codeparrot/github-code
5223278ccc2cbd1d7a690de19562fb71ac38200e0e7250851afd61cf313ce1da
// Copyright 2020 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 applicable ...
GO
cmd/registry-experimental/cmd/compute/search-index.go
apigee/registry-experimental
apache-2.0
4,039
143
codeparrot/github-code
7c2c2feb5ebbe456d1a246083f1118f0704cac51157123b5870df5dc6fd3e9cb
$(function(){ bindEvent(); initData(); }); function bindEvent(){ //查询 $("#sure").off("click").on("click",function(){ freshData(null,10,1); }); } function initData(){ var param={}; param.page=1; param.rows=10; $.post(home+"/productController/getProductList.forward",param,function(data){ show...
JavaScript
web/js/biz/sampleList.js
duwk123456/stone
apache-2.0
2,256
115
codeparrot/github-code
fc2e7b810900cf4a8e90f3618cf4ba446707957c34b919f44deaaff724615f07
/* * 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...
C
test/vandv/testEmptyRange.h
phrocker/sharkbite
apache-2.0
6,038
230
codeparrot/github-code
07e74c336e4505fe087c41b55901251576d720d45bf52995524cbe1a94b1d6cd
# ==================================================================== # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless re...
Python
samples/LuceneInAction/lia/analysis/keyword/KeywordAnalyzerTest.py
fnp/pylucene
apache-2.0
2,858
73
codeparrot/github-code
3a9a504b1689ebd1cc341e27017c2f2d68e9bf4050bbde88c48cf22ec6b81aac
package org.leguan.sonarqube.service; public class MetricState { String key; String description; String hidden; String custom; String availableInCurrent; String availableInHistoric; public boolean isAvailable () { return availableInCurrent.equals(Boolean.TRUE.toString()) || a...
Java
leguan-base/src/test/java/org/leguan/sonarqube/service/MetricState.java
moley/leguan
apache-2.0
822
38
codeparrot/github-code
c0663af846a0d52897b876d8a3d731bf106b61789b6a07a0ec91dd1923af5876
package xxhui.space.floatingcompass.mvp.abstracts; import java.lang.ref.Reference; import java.lang.ref.WeakReference; /** * Created by hui on 2017/3/6. */ /** * 逻辑操作的抽象 * @param <T> view的对象,用于操作view */ public abstract class BasePresenter<T> { protected Reference<T> mViewRef; //View接口类型的弱引用 public void...
Java
app/src/main/java/xxhui/space/floatingcompass/mvp/abstracts/BasePresenter.java
Hitvz/FloatingCompass
apache-2.0
704
36
codeparrot/github-code
961cb938557b279f67d73479b386822a2b0df0e70f220d1c292433c297e43eda
/* global QUnit, sinon */ sap.ui.define([ "sap/ui/core/postmessage/confirmationDialog" ], function ( confirmationDialog ) { "use strict"; var sandbox = sinon.sandbox.create(); QUnit.module("sap.m is not loaded", { afterEach: function () { sandbox.restore(); } }, function () { QUnit.test("successful re...
JavaScript
src/sap.ui.core/test/sap/ui/core/qunit/util/postmessage/ConfirmationDialog.qunit.js
SAP/openui5
apache-2.0
2,477
112
codeparrot/github-code
08c675cfa6db04d6c305dc33b744f36888cf8873521f2db9f82182f45726a3e7
import { Component, OnInit, Output, EventEmitter } from '@angular/core'; import { FormBuilder, FormGroup, Validators } from "@angular/forms"; import { AuthService } from "../auth/auth.service"; @Component({ moduleId: module.id, selector: 'tas-loginform', template: ` <div *ngIf="!working"> <form [formGro...
TypeScript
src/app/shared/loginbox/loginform.component.ts
jmarlow4/tascal
apache-2.0
1,763
66
codeparrot/github-code
4f464209086dacfafb815628ab99a5cb45323925a1e8a1ce0f27d72d0eb9ff88
package com.ikouz.algorithm.interview; import com.ikouz.algorithm.leetcode.domain.TreeNode; import com.ikouz.algorithm.leetcode.utils.TestUtil; /** * Judge a tree Symmetrical */ public class Tree_MirrorTreeII { public static Boolean isSymmetricalTree(TreeNode root) { if (root == null) { ret...
Java
src/main/java/com/ikouz/algorithm/interview/Tree_MirrorTreeII.java
ljmdbc7a/leetcode-java
apache-2.0
901
32
codeparrot/github-code
b0dbadef7f34082592820469554996cdfe211de4180d94ad3ab927d9778e76a1
//+build !example package triangle import ( "math" ) const ( Equ = iota // equilateral Iso // isosceles Sca // scalene NaT // not a triangle ) type Kind int func KindFromSides(a, b, c float64) Kind { // check for triangle inequality if a+b <= c || a+c <= b || b+c <= a { return NaT } ...
GO
go/triangle/triangle.go
zabawaba99/exercism-solutions
apache-2.0
951
61
codeparrot/github-code
12b86dfd349a6a04e2674b41b26cc81c95783fae144d9a649e768864ce9fd9fa
<HTML> <HEAD> <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=windows-1252"> <TITLE>Jini Print Service Tutorial -- Lesson 6. File Print Jobs</TITLE> <link rel="stylesheet" type="text/css" href="../../../../stylesheet.css" title="Style"> </HEAD> <BODY TEXT="#000000" BGCOLOR="#ffffff"> <TABLE BORDER=...
HTML
JiniPrint/src/main/javadoc/net/jini/print/doc-files/tut_inputstreamprintjob_code.html
pfirmstone/Jini-Print-API
apache-2.0
4,415
207
codeparrot/github-code
389c1c4944eff12560da874144f7e343bc5e0750c1745847aa89a13881ca7530
// fgnass.github.com/spin.js#v1.2.6 // usage: new Spinner({color:'#fff', lines: 12}).spin(target); !function(window, document, undefined) { /** * Copyright (c) 2011 Felix Gnass [fgnass at neteye dot de] * Licensed under the MIT license */ var prefixes = ['webkit', 'Moz', 'ms', 'O'] /* ...
JavaScript
volumes/www/survey/application/extensions/yiiwheels/assets/js/spin.js
tambora-org/dockerCRE
apache-2.0
13,148
369
codeparrot/github-code
a86478736e371cc99e4e9fc123a82c315e6a7b1bcb1b0800920bbdc3b3e5013e
package com.incito.gsontools.bean; import java.io.Serializable; public class DataBean implements Serializable{ /** * @Fields serialVersionUID */ private static final long serialVersionUID = 1L; private int isimage; private String path; private String img_id; private String img_format; ...
Java
GsonTools/src/com/incito/gsontools/bean/DataBean.java
sinlov/loqtiAndroidWorkspace
apache-2.0
1,601
93
codeparrot/github-code
74d7e283ab370ad50fd5c17f92e91bee8b0eac22dbd3acccc3d80eca2bc54096
<!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 - Kaniela Stewart</title> <meta name="description" content="Keep track of the statistics from Kaniela St...
HTML
surfers/mlt/kstew.html
chicofilho/fst
apache-2.0
11,182
285
codeparrot/github-code
6adbf75c72709381f5942ca71fa47f331d28ba89d4d47ceb485c0d1c835a5c7b
/* * IssueController.java 2011.05.23 * * Copyright (c) 2010, MEI By Seok Kyun. Choi. (최석균) * http://syaku.tistory.com * * GNU Lesser General Public License * http://www.gnu.org/licenses/lgpl.html */ package com.syaku.modules.issue; import java.util.*; import org.apache.log4j.Logger; import org.apache.commo...
Java
WEB-INF/src/com/syaku/modules/issue/IssueController.java
syakuis/java-mei
apache-2.0
4,241
155
codeparrot/github-code
1fa0fc9bd3c3b05832310dbda4e2e26a6acd403335079443a7a7a2b55959de6d
""" Optional integration with django-any-Imagefield """ from __future__ import absolute_import from django.db import models from fluent_utils.django_compat import is_installed if is_installed('any_imagefield'): from any_imagefield.models import AnyFileField as BaseFileField, AnyImageField as BaseImageField else:...
Python
fluent_utils/softdeps/any_imagefield.py
edoburu/django-fluent-utils
apache-2.0
1,856
55
codeparrot/github-code
ff9bdbafe361e4159119703409c549880979761756527c2a6e11a66f87a6742e
/* * Copyright 2013-2019 consulo.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 required by applicable law or agreed to ...
Java
modules/desktop-awt/desktop-ui-impl/src/main/java/consulo/ui/desktop/internal/validableComponent/DocumentSwingValidator.java
consulo/consulo
apache-2.0
1,315
42
codeparrot/github-code
18bde5b91daf420b9f8380773d06c880e17e3e84d7701c99a32b3c44e9061c10
package com.technologyconversations.bdd.steps; import static org.hamcrest.MatcherAssert.*; import static org.hamcrest.Matchers.*; import com.codeborne.selenide.*; import com.gargoylesoftware.htmlunit.BrowserVersion; import com.opera.core.systems.OperaDriver; import com.technologyconversations.bdd.steps.util.*; import...
Java
src/main/java/com/technologyconversations/bdd/steps/WebSteps.java
TechnologyConversations/TechnologyConversationsBddSteps
apache-2.0
24,994
624
codeparrot/github-code
fdc1f0823773a156fef32fb4ea99880651012d4e747a2227a21c356d02f3ba16
package at.irian.ankor.switching.connector.websocket; import at.irian.ankor.action.Action; import at.irian.ankor.change.Change; import at.irian.ankor.serialization.MessageDeserializer; import at.irian.ankor.path.PathSyntax; import at.irian.ankor.switching.Switchboard; import at.irian.ankor.switching.msg.ActionEventMes...
Java
ankor-websocket-connector/src/main/java/at/irian/ankor/switching/connector/websocket/WebSocketListener.java
ankor-io/ankor-framework
apache-2.0
4,611
117
codeparrot/github-code
0e34e54e454e7fc0c9a5d366c3ff2d84c355b414b0c2672973c3790aca29fe21
/* * 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
plugins/org.apache.geronimo.st.v11.ui/src/org/apache/geronimo/st/v11/ui/sections/DependencySection.java
apache/geronimo-devtools
apache-2.0
3,725
126
codeparrot/github-code
304722f86223edbb74e5db24911fd7c5bee7fae8ca528d1df3599ab7184085a2
package org.gradle.test.performance.mediummonolithicjavaproject.p175; import org.junit.Test; import static org.junit.Assert.*; public class Test3509 { Production3509 objectUnderTest = new Production3509(); @Test public void testProperty0() { String value = "value"; objectUnderTest....
Java
my-app/src/test/java/org/gradle/test/performance/mediummonolithicjavaproject/p175/Test3509.java
oehme/analysing-gradle-performance
apache-2.0
2,111
79
codeparrot/github-code
e666b836c837f334e4b2cb0c22999b8de0d698e48b875149b67e254055ff7d41
/* * Copyright 2020 Red Hat, Inc. and/or its affiliates. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by ap...
Java
optaplanner-examples/src/main/java/org/optaplanner/examples/tsp/app/TspApp.java
droolsjbpm/optaplanner
apache-2.0
2,627
74
codeparrot/github-code
fbf5c9363cfc1a782ec1d9b03679d03b200cdba4401048d4513edbab7a5c860d
# -*- coding: utf-8 -*- # Copyright 2013 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...
Python
api/metricsdata.py
GoogleChrome/chromium-dashboard
apache-2.0
7,840
246
codeparrot/github-code
3b7771a879d36420007f1d24cb9d9177954067c82ef299513a58c7cec2a9125f
#pragma once #include "envoy/server/filter_config.h" #include "extensions/filters/http/common/jwks_fetcher.h" #include "extensions/filters/http/jwt_authn/extractor.h" #include "extensions/filters/http/jwt_authn/jwks_cache.h" #include "jwt_verify_lib/check_audience.h" #include "jwt_verify_lib/status.h" namespace Env...
C
source/extensions/filters/http/jwt_authn/authenticator.h
dnoe/envoy
apache-2.0
2,371
69
codeparrot/github-code
258800a7d7b40e5814d6f9e819d3d16036c40c1572a9a968041252de25545fac
/* ==================================================================== 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
src/java/org/apache/poi/hssf/record/DefaultColWidthRecord.java
lvweiwolf/poi-3.16
apache-2.0
3,033
101
codeparrot/github-code
6bedc3945ab1fd31d7d52a7a859fda05899bb87a85e45a1576db56ac0bdd9e27
package com.communote.server.web.api.service; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import org.apache.commons.lang.StringUtils; import org.apache.log4j.Logger; import org.springframework.web.servlet.mvc.BaseCommandController; import com.communote.common...
Java
communote/webapp/src/main/java/com/communote/server/web/api/service/BaseApiController.java
Communote/communote-server
apache-2.0
7,454
193
codeparrot/github-code
4648a0130ee57cbe628a5917a9b80e3476917fc974d7af00ec7037b221ce6c1f
/* * Copyright 2002-2012 Drew Noakes * * 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...
Java
src/main/java/com/drew/metadata/xmp/XmpDirectory.java
farrukhnajmi/farrukhnajm-mavenization
apache-2.0
6,663
176
codeparrot/github-code
1285fabd2708d7cc3e4561ab7b9a395d71f8ddc1013d03d885dd524a4a5e266d
/* * Copyright 2017-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "licen...
Java
aws-java-sdk-guardduty/src/main/java/com/amazonaws/services/guardduty/model/transform/UsageDataSourceResultMarshaller.java
aws/aws-sdk-java
apache-2.0
2,328
59
codeparrot/github-code
abf9555c5ff6f92f649eef88400696dcd7810b1331885efd1a1acb05a21acdd8
using System; using Aop.Api.Domain; using System.Collections.Generic; using Aop.Api.Response; namespace Aop.Api.Request { /// <summary> /// AOP API: alipay.fund.batch.transfer /// </summary> public class AlipayFundBatchTransferRequest : IAopRequest<AlipayFundBatchTransferResponse> { /// <su...
C#
Snail.Pay.Ali.Sdk/Request/AlipayFundBatchTransferRequest.cs
329277920/Snail
apache-2.0
2,565
110
codeparrot/github-code
79d7a8d9523d28dc8faf2cf809466cdfd5791e5865f6a572f20d37098f60d89b
//////////////////////////////////////////////////////////////////////////////// /// @brief random functions /// /// @file /// /// DISCLAIMER /// /// Copyright 2014 ArangoDB GmbH, Cologne, Germany /// Copyright 2004-2014 triAGENS GmbH, Cologne, Germany /// /// Licensed under the Apache License, Version 2.0 (the "Licens...
C++
lib/Basics/random.cpp
morsdatum/ArangoDB
apache-2.0
5,488
174
codeparrot/github-code
acc255c33a39bd343363c4529166df9ac64087e9f0c2b84a54d98b64bf909f37
// Copyright 2017 Max Toro Q. // // 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...
C#
src/Xcst.Runtime/Runtime/MapWriter.cs
maxtoroq/XCST
apache-2.0
5,665
223
codeparrot/github-code
b5c8c1b0bb956b3e4c3a537f85ee0c7dadac522b6195bc80ac3389e1493e6e54
package ru.ematveev.list; import org.junit.Test; import static org.hamcrest.core.Is.is; import static org.junit.Assert.assertThat; /** * Test for method QueueContainer(). */ public class QueueContainerTest { /** * Test check adding an elements to a container. */ @Test public void whenAddEleme...
Java
chapter_005/src/test/java/ru/ematveev/list/QueueContainerTest.java
evgenymatveev/Task
apache-2.0
944
38
codeparrot/github-code
81cab4e2e0d3e36dce4b2578cbbb1419922ef3635600f706d6ecd95472834da9
// Copyright 2014 the V8 project authors. 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 ...
C++
platform/JS/V8/v8/test/cctest/test-disasm-s390.cc
macchina-io/macchina.io
apache-2.0
15,646
299
codeparrot/github-code
e79dda6fd2aec81be020366edda10e08823131f6c8a98cfe678f3a1035d454bd
package org.whale.system.common.encrypt; /* --------------------------------------------**********-------------------------------------------- 该算法于1977年由美国麻省理工学院MIT(Massachusetts Institute of Technology)的Ronal Rivest,Adi Shamir和Len Adleman三位年轻教授提出,并以三人的姓氏Rivest,Shamir和Adlernan命名为RSA算法,是一个支持变长密钥的公共密钥算法,需要加密的文件快的长度也是...
Java
system-parent/system-common/src/main/java/org/whale/system/common/encrypt/RSA.java
fywxin/base
apache-2.0
5,594
193
codeparrot/github-code
ceafa0d0e5eaaf4bceeeddd0c9c3e09771447e426a08ff82eaea84243942c978
package org.javaee7.jaspic.common; import java.util.Collections; import javax.security.auth.Subject; import javax.security.auth.callback.CallbackHandler; import javax.security.auth.message.AuthException; import javax.security.auth.message.AuthStatus; import javax.security.auth.message.MessageInfo; import javax.securi...
Java
src/test/resources/javaee7-samples/jaspic/common/src/main/java/org/javaee7/jaspic/common/TestServerAuthContext.java
ftomassetti/JavaIncrementalParser
apache-2.0
2,046
50
codeparrot/github-code
eab28b38d6ad755105eb7240669d5f7eeb9a9432b1b710199afc2638b838302e
package com.blinkfox.patterns.proxy.cglib; import net.sf.cglib.proxy.Enhancer; import net.sf.cglib.proxy.MethodInterceptor; import net.sf.cglib.proxy.MethodProxy; import java.lang.reflect.Method; /** * Cglib代理类 * Created by blinkfox on 2017/1/2. */ public class CglibProxy implements MethodInterceptor { privat...
Java
src/main/java/com/blinkfox/patterns/proxy/cglib/CglibProxy.java
blinkfox/probe
apache-2.0
1,006
44
codeparrot/github-code
0d7f985086d1794099e8d6d3e8d1249e874ee888e6f131bf5de5cd42ad407d25
/** * Copyright (c) 2007-2014 Kaazing Corporation. 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...
Java
security/src/main/java/org/kaazing/gateway/security/auth/NegotiateLoginModule.java
biddyweb/gateway
apache-2.0
7,700
202
codeparrot/github-code
b7d7639a95802c1ea834673b8312d499043e1159f10f3bd508fcf40eb1d3a30e
using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; namespace TravelAgent.Web.car { public partial class CarOrder1 : TravelAgent.Web.UI.mBasePage { private static readonly TravelAgent.BLL.CarList CarBll = new Travel...
C#
src/TravelAgent.Web/TravelAgent.Web/car/CarOrder1.aspx.cs
huahuajjh/yueyouyuebei
apache-2.0
5,532
121
codeparrot/github-code
f4dfc8db442700495e6c1773fd7d65adc59f0b1f8783bf10ccf9930c59167db5
package org.ngbw.web.actions.tool; import org.ngbw.sdk.common.util.SuperString; import org.ngbw.web.actions.ToolParameters; @SuppressWarnings("serial") public class msa extends ToolParameters { // file-typed property getters and setters public Long getSeqs_() { return getInputDataItemId("seqs_"); } public void setSeqs_...
Java
saminda/cipres-airavata/cipres-portal/portal2/src/main/java/org/ngbw/web/actions/tool/msa.java
SciGaP/DEPRECATED-Cipres-Airavata-POC
apache-2.0
1,952
81
codeparrot/github-code
81929d7ba2c1beb27fa11977430f1807ba284e545c3b1bdfe8596bcde1a9fb4c
/* Setup global settings */ angular.module('cupid').factory('profileAction', ['$rootScope', '$q' , 'global' , '$http', function($rootScope,$q,global,$http) { // supported languages var user = { profile: { userName:"", email:"", password:"", firstName: "", lastName: "", mobile...
JavaScript
src/app/components/profile/profileAction.service.js
weilewantieba/swiip
apache-2.0
4,395
148
codeparrot/github-code
4da2f369cb6aefd776a3ca131cd682227503f72980e82cd8c15ec356f31df1bf
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <meta http-equiv="content-type" content="text/html; charset=UTF-8" /> <title>SingleSessionIoHandlerDelegate xref</title> <l...
HTML
docs/xref/org/apache/mina/handler/multiton/SingleSessionIoHandlerDelegate.html
sardine/mina-ja
apache-2.0
18,483
172
codeparrot/github-code
66d5700ced3401a305cac4bd8431cd997782e0a2e220563afd0dd05c2689577a
/* Copyright (c) 2014-2015 DataStax 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...
C++
src/error_response.cpp
Teino1978-Corp/cpp-driver
apache-2.0
3,893
132
codeparrot/github-code
b80a37484738eaa8ac74c81b461917e5126a6253661c1e6964d4226f243d4aa7
#!/bin/bash -l set -x export NVM_DIR="/home/jenkins/.nvm" [ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh" nvm use 6 || exit $? npm install || exit $? RC=0 function fail { echo $@ >&2 RC=1 } npm test || fail "npm test finished with return code $?" npm run -s lint -- -f checkstyle > eslint.xml || fail ...
Shell
jenkins.sh
williamboman/matrix-js-sdk
apache-2.0
548
32
codeparrot/github-code