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
0eaf7e14661274a1de87c81c2a7fa522816ed5a947bd182b0d6560df74865d49
package com.quollwriter.ui.actionHandlers; import java.awt.*; import java.awt.event.*; import java.io.*; import javax.swing.*; import com.quollwriter.*; import com.quollwriter.data.*; import com.quollwriter.ui.*; import com.quollwriter.editors.*; public class DeleteProjectActionHandler extends YesDeleteConfirmTe...
Java
src/com/quollwriter/ui/actionHandlers/DeleteProjectActionHandler.java
garybentley/quollwriter
apache-2.0
5,189
139
codeparrot/github-code
1597823ca38d10bb21b5df277eec3107cefab400905e6c6e666dadda4c91837f
using System; namespace UtfString.Utf8 { public static class Decoder { public static int GetLength(ArrayAccessor buffer) { var count = 0; for (int i = 0; i < buffer.Length; i++) { var x = buffer[i]; if ((x & 0b1100_0000) != 0b...
C#
Demo/2016/Unicode/UtfString/Utf8/Decoder.cs
ufcpp/UfcppSample
apache-2.0
3,917
115
codeparrot/github-code
96b654acc0d266e255961320cdd95f5519b193da8e227306afbab4d2f39cedc3
using System.Windows.Controls; using ESRI.ArcLogistics.Geocoding; using System.Diagnostics; using ESRI.ArcLogistics.App.Tools; using System.Windows.Media.Imaging; /* | Version 10.1.84 | Copyright 2013 Esri | | Licensed under the Apache License, Version 2.0 (the "License"); | you may not use this file except in co...
C#
RoutePlanner_DeveloperTools/Source/ArcLogisticsApp/Pages/Wizards/FleetSetupWizard/GeocodeSubPages/CandidatesFoundSubPage.xaml.cs
Esri/route-planner-csharp
apache-2.0
3,895
122
codeparrot/github-code
53cca9ed3327dd0beffa52de1f9ce065fc3eb0d5d8317cfba6a7bc84776f696c
using System; using System.Collections.Generic; using Sce.PlayStation.Core; using Sce.PlayStation.Core.Graphics; using Sce.PlayStation.Core.Imaging; using Sce.PlayStation.Core.Environment; using Sce.PlayStation.Core.Input; using API.Framework; using API; namespace SpaceShips { public class EnemyCommander : GameActo...
C#
enemy/EnemyCommander.cs
Reisor/SpaceShips
apache-2.0
6,083
184
codeparrot/github-code
1d9a485f3a63605c9f573b06316bc3960f365e1ff0941e18b0f0fb336834d605
/* * 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
src/java/org/apache/fop/layoutmgr/KnuthSequence.java
spepping/fop-cs
apache-2.0
7,032
217
codeparrot/github-code
b505dc23829313d2c0fd92b142ffe90cba0843f23011d9309a3a2b9128eee226
package com.lenox.beyond; import java.io.BufferedOutputStream; import java.io.File; import java.io.FileInputStream; import java.io.FileOutputStream; import java.io.IOException; import java.util.zip.ZipEntry; import java.util.zip.ZipInputStream; public class UnzipUtility { /** * Size of the buffer to read/wri...
Java
beyondj-parse/src/main/java/com/lenox/beyond/UnzipUtility.java
nkasvosve/beyondj
apache-2.0
2,080
62
codeparrot/github-code
35c14a598cc46906407e62e48643733724c53f48e9829ddde8caa1046d52a1c9
/* * ModSecurity connector for nginx, http://www.modsecurity.org/ * Copyright (c) 2015 Trustwave Holdings, Inc. (http://www.trustwave.com/) * * 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 * * If a...
C
src/ngx_http_modsecurity_module.c
SpiderLabs/ModSecurity-nginx
apache-2.0
23,010
792
codeparrot/github-code
4fcdca90aaf8c3ac708a08a843af94f3a0af61646bae2e4da64cb0b07752bc81
using System; using System.Threading; using Microsoft.Extensions.Logging; namespace Elders.Cronus { public delegate ShouldRetry RetryPolicy(); public delegate bool ShouldRetry(int retryCount, Exception lastException, out TimeSpan delay); public static class RetryableOperation { static readonl...
C#
src/Elders.Cronus/Userfull/RetryableOperation.cs
Elders/Cronus
apache-2.0
4,876
130
codeparrot/github-code
dffa044c0ec8761a7726256c5d61509518597ee8874d3515ae3995a7e22e731b
import java.io.FileOutputStream; import java.io.IOException; import java.util.HashMap; import java.util.Random; import com.google.common.collect.Maps; import com.twitter.elephantbird.examples.proto.Examples; import com.twitter.elephantbird.mapreduce.io.ProtobufBlockWriter; /** * Copyright (C) 2014 Turn Inc. All Righ...
Java
turnexamples/src/main/java/TPWriter.java
wicknicks/elephant-bird
apache-2.0
1,362
51
codeparrot/github-code
eb8d457123bdff8b8b91c728e4aad787cbf56a0e190f5a3cbced559f0e5dc262
import {VisibilityState} from '#core/constants/visibility-state'; import { insertAtStart, isJsonScriptTag, removeChildren, removeElement, } from '#core/dom'; import {escapeCssSelectorIdent} from '#core/dom/css-selectors'; import { childElementByAttr, childElementsByTag, scopedQuerySelector, } from '#core/...
JavaScript
extensions/amp-next-page/1.0/service.js
jpettitt/amphtml
apache-2.0
32,972
1,116
codeparrot/github-code
27618af46e1394ef16c8744994ef277032cc3ec229b25097264bb080ded6fdc6
package com.ams.pageobject; import org.openqa.selenium.Alert; import org.openqa.selenium.By; import com.ams.testsetup.SetUp; public class SignUp_Validations extends SetUp { By signup = By.tagName("span"); By signbtn = By.name("registerbutton"); By email = By.name("email"); By firstName = By.name("firstname"); B...
Java
src/test/java/com/ams/pageobject/SignUp_Validations.java
kiranpreet-nerd/assetmanagementsystem
apache-2.0
5,669
194
codeparrot/github-code
96cf61c3039702fab8271ee12c88d6f33485078521c6cebb68a0e1136dd057af
package com.github.taller.db.security; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import javax.sql.DataSource; import java.sql.Connection; import java.sql.ResultSet; import java.sql.SQLException; import java.sql.Statement; import java.util.Map; import java.util.concurrent.ConcurrentHashMap; /** * Auth...
Java
src/main/java/com/github/taller/db/security/AuthCache.java
Taller/auth-test-example
apache-2.0
2,679
92
codeparrot/github-code
625ef540fe6f91b880540ca69f9ece90a8fbdae7514a60dd58a3662ff209b2bd
package com.chatbot.services.asyncservices; import java.io.IOException; import java.util.List; import com.chatbot.services.ChatServiceConstants; import com.chatbot.services.IDMapping; import com.chatbot.services.dialogflowservices.DialogflowConversation; import com.chatbot.services.messagesenders.HangoutsMessageSende...
Java
services/src/main/java/com/chatbot/services/asyncservices/HangoutsAsyncService.java
googleinterns/chatbot-framework-for-smbs
apache-2.0
6,511
145
codeparrot/github-code
0dd8a0a07a9c0e5a4e044f22fbe7ae2a1c4a71d0fd005841fa53d68a78e6e9db
<include file="public:header"/> <script type="text/javascript" language="javascript"> $(document).ready(function(){ var i = 1; $('.tgdd_pic').click(function(){ i = i + 1 ; $('.tgdd_pic').css('width','100px').css('height','70'); if(i%2 == 1){ $(this).css('width','100px').css('height','70'); }...
HTML
themes/default/Member/dianping/index.html
ksyydream/llx_admin
apache-2.0
4,978
127
codeparrot/github-code
383ff9024faf01f86a7eac9b00dce8cf2325e9f57cd6cf8b4a5c6b5f13bb4ea8
__author__ = 'popov.sn' from selenium.webdriver.firefox.webdriver import WebDriver from fixture.session import SessionHelper from fixture.group import GroupHelper from fixture.contact import ContactHelper class Application: def __init__(self): self.wd = WebDriver() self.wd.implicitly_wait(2) ...
Python
fixture/application.py
popovsn777/python_training_2
apache-2.0
807
30
codeparrot/github-code
3e32f337529f3a783855ee782c597f18591f21fc81f4df0778a2655b7541d935
// // ======================================================================== // Copyright (c) 1995-2014 Mort Bay Consulting Pty. Ltd. // ------------------------------------------------------------------------ // All rights reserved. This program and the accompanying materials // are made available under the ter...
Java
jetty-start/src/test/java/org/eclipse/jetty/start/ModuleGraphWriterTest.java
sdw2330976/Research-jetty-9.2.5
apache-2.0
2,622
75
codeparrot/github-code
3d26be8cdaa67f218293d989c40d05bebc47afb75620da92c0d07ca60143f989
/* * Copyright (C) 2017-2019 Dremio Corporation * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable l...
Java
sabot/kernel/src/test/java/com/dremio/exec/work/foreman/TestResourceSchedulerInProfile.java
dremio/dremio-oss
apache-2.0
5,466
142
codeparrot/github-code
ee38f7f8a816395d0bc361136a63eba7d0187b43010e5ef64953066ec9c274ea
/* * 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...
C++
src/xercesc/internal/ElemStack.cpp
ksmyth/xerces-c
apache-2.0
28,770
847
codeparrot/github-code
7101769f45280c8b22add1b0c3d4063d04c05eec0f1f8c74e141a0bb9f74f9e6
package com.simpligility.maven.plugins.android.standalonemojos; import java.io.File; import java.io.IOException; import java.util.ArrayList; import java.util.List; import java.util.Set; import com.android.tools.lint.LintCliClient; import com.android.tools.lint.LintCliFlags; import com.android.tools.lint.MultiProjectH...
Java
src/main/java/com/simpligility/maven/plugins/android/standalonemojos/LintMojo.java
simpligility/android-maven-plugin
apache-2.0
27,531
749
codeparrot/github-code
7eaea4ebc5caa6a4a0d599fbdc9daff7390c4a59721f5125aa47d0da17e5b0ea
/** * Copyright 2010 CosmoCode GmbH * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed...
Java
src/main/java/de/cosmocode/palava/jmx/PlatformMBeanServerModule.java
palava/palava-jmx
apache-2.0
1,300
47
codeparrot/github-code
76ca8c0a82ef1de0ea8a743d69f24814cd12dcca02e8ea843a1c30f026e8bcce
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. package com.yahoo.jrt; import java.nio.channels.SocketChannel; import java.util.ArrayList; import java.util.Random; import java.util.concurrent.atomic.AtomicInteger; import java.util.logging.Level; import java.uti...
Java
jrt/src/com/yahoo/jrt/Transport.java
vespa-engine/vespa
apache-2.0
8,356
229
codeparrot/github-code
697e86d55fc4d5256a3e22fb4d526fd13f0097fe076e946daa4043348eef3f73
package ru.osetsky.httpprotocol; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import javax.servlet.ServletException; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import java.io.IOException; /** * Created by koldy on 2...
Java
chapter_009/src/main/java/ru/osetsky/httpprotocol/CreateRole.java
AlexeyOs/Alexey
apache-2.0
1,487
36
codeparrot/github-code
604443a35acd1e2f0323ed13772462ee2f1af0b638377f822c93f39408a76cb8
package scala package collection package mutable import scala.collection.immutable.Range import BitSetOps.{LogWL, MaxSize} /** * A class for mutable bitsets. * * $bitsetinfo * * @see [[http://docs.scala-lang.org/overviews/collections/concrete-mutable-collection-classes.html#mutable-bitsets "Scala's Collect...
Scala
corpus/scala-library/src/main/scala/collection/mutable/BitSet.scala
rorygraves/perf_tester
apache-2.0
5,000
171
codeparrot/github-code
c339c612d45e19b720d4245faa21ad036048b84f706f2a677b70fc36af5bc4ca
using System; using System.Collections.Generic; using System.ComponentModel; using System.Diagnostics; using System.IO; using System.Linq; using NDesk.Options; using Sep.Git.Tfs.Core; using StructureMap; using Sep.Git.Tfs.Util; namespace Sep.Git.Tfs.Commands { [Pluggable("clone")] [Description("clone [options]...
C#
GitTfs/Commands/Clone.cs
timotei/git-tfs
apache-2.0
3,832
107
codeparrot/github-code
e8d8063988e452df63f7d389be897c4673252e180cbc46616366a69b33b419e5
// Python Tools for Visual Studio // Copyright(c) Microsoft 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 //...
C#
Python/Product/Cookiecutter/Commands/CheckForUpdatesCommand.cs
DEVSENSE/PTVS
apache-2.0
1,722
49
codeparrot/github-code
26bcca8f8b29ebd10e8978a84a6b6057205b239576052b862799d3509fac8873
/* Author: Mo McRoberts <mo.mcroberts@bbc.co.uk> * * Copyright 2015-2017 BBC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * ...
C
libspider/libspider-internal.h
bbcarchdev/anansi
apache-2.0
1,688
50
codeparrot/github-code
5faf3264121381438ff2d0efb8c7b0f3b79e3867392386d4bd649694b9a0a0d4
/*var LolClient = require('./lol-client'); var options = { region: 'na', username: '', password: '', version: '4.21.14_12_08_11_36', debug: true }; var testKey; var testGID; var client = new LolClient(options); var heartbeat = function() { client.heartbeat(); }; client.on('connection', function() { setInterv...
JavaScript
example.js
ryanms15/test-node-client
apache-2.0
4,223
137
codeparrot/github-code
b95773c286cb25786503a43a9f446ed59fa2adac2633cae666f080b0c9e48606
/* Copyright 2014 - 2015 Janek Bogucki Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law o...
Scala
src/test/scala/com/scalacraft/domain/v2/internal/ReflectionsSpec.scala
janekdb/scalacraft-domain
apache-2.0
1,717
58
codeparrot/github-code
345916ff0a221cdf747689bae9262e69fb12b9b694da7157a6d2b693f5ea62a1
#!/usr/bin/env ruby # Encoding: utf-8 # # Copyright:: Copyright 2016, Google Inc. All Rights Reserved. # # License:: 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 # # ...
Ruby
dfp_api/examples/v201802/company_service/get_all_companies.rb
Invoca/google-api-ads-ruby
apache-2.0
2,564
81
codeparrot/github-code
96446d8e5f1d404ec2fb725e820e03800e86acfac7d69faaa6d7b829345987a8
/* * Copyright 2017-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "licen...
Java
aws-java-sdk-iot/src/main/java/com/amazonaws/services/iot/model/transform/DeleteStreamRequestMarshaller.java
aws/aws-sdk-java
apache-2.0
1,977
56
codeparrot/github-code
bb82110be9d52fc3e5f51c720b435887f40b7b8f87158ff34567b0156b278247
# -*- coding:utf-8 -*- import re, json, time, codecs, urllib, requests, click from tyc_conf_and_parse import * class TianYanCha(): item = None session = requests.session() session.cookies.set("tnet", "123.114.125.92") referer_url = get_conf('referer_url') public_headers = get_conf('public_headers')...
Python
gjqyxyxxcxxt/gjqyxyxxcxxt/spiders/parser/tyc_dispatcher.py
AisinoPythonTeam/PythonAiniso
apache-2.0
3,754
102
codeparrot/github-code
08481c5069a7941b3d290d4b1871bc7f3d25602dfc53525d57ca31d04b871f45
#!/bin/bash T_TEST_ARRAY=(${T_TEST//:/ }) T_LANG=${T_TEST_ARRAY[0]} T_VERSION=${T_TEST_ARRAY[1]} T_DB=${T_TEST_ARRAY[2]} echo "Running tests in language: ${T_LANG} version: ${T_VERSION}" if [ $T_LANG == "ruby" ]; then # Using `rvm use` in travis-ci needs a lot more work, so just accepting # the default version ...
Shell
ext/travisci/test.sh
jantman/puppetdb
apache-2.0
988
43
codeparrot/github-code
188978258dc969810a60548ceaeb113ec32f88edf85252b547fe8d77d1d9f070
--- type: post120 title: Free Text Search categories: XAP120NET, PRM parent: querying-the-space.html weight: 550 --- {{%ssummary%}}{{%/ssummary%}} Free text search is required almost with every application. Users placing some free text into a form and later the system allows users to search for records that include...
Markdown
sites/xap-docs/content/xap120net/query-free-text-search.markdown
croffler/documentation
apache-2.0
3,656
149
codeparrot/github-code
5c2b9cd6b7d5783138591731d37cf346fbcadd5857baaacc281915ff13f7fade
/* * * * Copyright (C) 2016 Singular Studios (a.k.a Atom Tecnologia) - www.opensingular.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.o...
Java
requirement/requirement-module/src/test/java/org/opensingular/requirement/commons/spring/security/SingularPermissionTest.java
opensingular/singular-server
apache-2.0
4,228
89
codeparrot/github-code
afe8fb9e08f343f9dd00b1d043b2368e20b275bdc4210549062ea36606e9aa68
package io.qameta.htmlelements.handler; import io.qameta.htmlelements.context.Context; import io.qameta.htmlelements.exception.MethodInvocationException; import io.qameta.htmlelements.exception.NotImplementedException; import io.qameta.htmlelements.extension.MethodHandler; import io.qameta.htmlelements.extension.Metho...
Java
src/main/java/io/qameta/htmlelements/handler/WebBlockMethodHandler.java
eroshenkoam/htmlelements
apache-2.0
4,732
121
codeparrot/github-code
fd82e1f99b7da2becb687da591274cfbea4b6fd884ae269c83934bba35aa7a60
package org.itsnat.droid.impl.dommini; import org.itsnat.droid.impl.util.MiscUtil; import java.util.List; /** * Created by jmarranz on 10/02/2016. */ public class DOMMiniRender { public static String toString(DMNode[] nodeArray) { StringBuilder res = new StringBuilder(); for(D...
Java
itsnatdroid/src/main/java/org/itsnat/droid/impl/dommini/DOMMiniRender.java
jmarranz/itsnat_droid
apache-2.0
3,104
106
codeparrot/github-code
72490108add25d43d1ce734a20d2e6ad2169c65d59aadbd98ea0ba42946145f5
#!/usr/bin/env python # encoding: utf-8 # Copyright 2014 Xinyu, He <legendmohe@foxmail.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...
Python
home.py
fangjing828/LEHome
apache-2.0
9,251
263
codeparrot/github-code
c6fe810da0cf17a5e8599c7e4745838f7cb9169b70f3b41db8825f0df146a246
=head1 LICENSE Copyright [1999-2015] Wellcome Trust Sanger Institute and the EMBL-European Bioinformatics Institute Copyright [2016-2018] EMBL-European Bioinformatics Institute Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obta...
Perl
tools/modules/EnsEMBL/Web/JSONServer/Tools.pm
muffato/public-plugins
apache-2.0
5,551
166
codeparrot/github-code
64d39fb01a3400df494e99acd96c171bf9b20c9d60016ef4a512967ccb4710fa
/* Configuration for env development */ var dev = { title: 'SINCEP', baseUrl: 'http://localhost:3000/api/', providers: { loginUrl: 'http://0.0.0.0:3000/api/Users/login' } }; /* Configuration for env production */ var prod = { title: 'SINCEP', baseUrl: 'http://example.com/api/', providers: { ...
JavaScript
src/config.js
sergiofreitas/instadmin
apache-2.0
517
36
codeparrot/github-code
14afec84a99db5e6f67970d930211bb8bd47a0547f9ec0ff384bfaacd1f97587
/* Copyright 2009 Semantic Discovery, Inc. (www.semanticdiscovery.com) This file is part of the Semantic Discovery Toolkit. The Semantic Discovery Toolkit 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 So...
Java
src/main/java/org/sd/text/StringScorer.java
KoehlerSB747/sd-tools
apache-2.0
6,705
240
codeparrot/github-code
4dfbb548bfb7ceb0b20cb4e6856f7d48483ef86d6feaba118e64f8652a1260e1
/** * 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 ...
Java
core/src/main/java/org/cryptocredits/credits/core/Message.java
Qw0kka/creditsj
apache-2.0
18,889
493
codeparrot/github-code
9eaad31726954ecbad2abb36b4ec55a418793d40b1c3a2068ac931aff9e86594
#pragma once #include "il2cpp-config.h" #ifndef _MSC_VER # include <alloca.h> #else # include <malloc.h> #endif #include <stdint.h> // System.String struct String_t; #include "mscorlib_System_Object837106420.h" #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #...
C
01Dongzuo/Temp/il2cppOutput/il2cppOutput/AssemblyU2DCSharp_UISpriteData3578345923.h
moixxsyc/Unity3dLearningDemos
apache-2.0
5,951
165
codeparrot/github-code
86362c6654657ec275ff7caea60d73986ed1f87a4644471b8125aff00511f04f
/* * Copyright 2016 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applica...
Java
modules/bin/src/main/java/com/mooregreatsoftware/gitprocess/bin/ReadVersionFromClasspath.java
jdigger/jgit-process
apache-2.0
2,565
71
codeparrot/github-code
99efc48665bb46410b897abd80e916de8436b6afa78247af95245360340f8221
/* * Copyright 2017-2022 John Snow Labs * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agr...
Scala
src/test/scala/com/johnsnowlabs/nlp/pretrained/ResourceDownloaderSpec.scala
JohnSnowLabs/spark-nlp
apache-2.0
4,527
108
codeparrot/github-code
7aae0dd5e7aa7405f375a1dcfac15031f60ced156ed3dcddf7c8109add99e948
/* * Copyright 2000-2016 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
platform/lang-impl/testSources/com/intellij/openapi/wm/impl/ToolWindowManagerTestCase.java
youdonghai/intellij-community
apache-2.0
1,920
53
codeparrot/github-code
02c69b2f83342b52da2e2a7563050eb3bb425bf4e9d86c495c641ac7733b2d67
<?php namespace RedisManagementClient; /** */ class RedisProperties { /** * @var string[]|null */ public $redisConfiguration; /** * @var bool|null */ public $enableNonSslPort; /** * @var string[]|null */ public $tenantSettings; /** * @var int|null ...
PHP
src/RedisManagementClient/RedisProperties.php
sergey-shandar/petstore-php-poc
apache-2.0
3,837
137
codeparrot/github-code
914d67fcf423c12e0599053911e8cb7f1f579e691e6ef9ff2b8ab0bc662b7b0a
package us.stivers.blue.json import scalax.util.{Try} import us.stivers.blue.codec.{ContentCodec,ContentEncoder,ContentDecoder} import us.stivers.blue.http.{Content} /** * Encodes A into JSON Content. */ class JsonContentEncoder[A](json: Json) extends ContentEncoder[A] { def apply(a: A): Try[Content] = Try(Conten...
Scala
blue-json/src/main/scala/us/stivers/blue/json/JsonContentCodec.scala
cstivers78/blue
apache-2.0
1,116
36
codeparrot/github-code
8f7386388fd9113289d7be3d100c3eebdae59cfc6d203c1e9eb9589928ac875b
package org.cee.highlighter.impl; /* * #%L * Content Extraction Engine - News Parser Implementations * %% * Copyright (C) 2013 Andreas Behnke * %% * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the ...
Java
cee-parser-impl/src/main/java/org/cee/highlighter/impl/HighlightWriter.java
andreasbehnke/cee
apache-2.0
4,228
140
codeparrot/github-code
5dc337c502e29416583c554a8d4584b03df86f8f686d0c805ec212f377c4988e
import glob import json import pkg_resources from collections import defaultdict, namedtuple from multiprocessing import Value from unittest import TestCase import snappy from perfrunner.settings import ClusterSpec, TestConfig from perfrunner.workloads.bigfun.query_gen import new_queries from perfrunner.workloads.tcm...
Python
unittests.py
couchbase/perfrunner
apache-2.0
28,115
676
codeparrot/github-code
34d76de6e1bb28a78e6df3e643f5094214a71992d004d17644f00bd99c2dbca5
/* * Copyright 2015 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/vtn/sfcmgr/src/main/java/org/onosproject/sfc/manager/impl/SfcManager.java
planoAccess/clonedONOS
apache-2.0
7,358
187
codeparrot/github-code
a5349baea53b1782d1a818ade9795be74cddbb25b80d73fc902e26c144b9375d
/** * Licensed to Big Data Genomics (BDG) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The BDG licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use ...
Scala
src/main/scala/org/bdgenomics/guacamole/LociMap.scala
ryan-williams/guacamole
apache-2.0
14,380
379
codeparrot/github-code
713d7708e1fd6ec97f50baf1a87baa47dc37731835ba9e8a6d6c6902c2d45b78
/****************************************************************************** * Copyright 2018 The Apollo 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 ...
C
modules/perception/base/object.h
msbeta/apollo
apache-2.0
4,226
119
codeparrot/github-code
a00614940f9b40ed62818d8ccf2597220e825fe69acad1b12ad33e374161ebcc
/* * Copyright (c) 2017 Contributors to the Eclipse Foundation * * See the NOTICES file(s) distributed with this work for additional * information regarding copyright ownership. * * Licensed under the Apache License, Version 2.0 (the "License"); * You may not use this file except in compliance with the License. ...
Java
api/src/main/java/org/eclipse/microprofile/health/HealthStatus.java
heiko-braun/microprofile-health
apache-2.0
3,976
143
codeparrot/github-code
7f124163b70ecc5dd5eb02804c30ee269fa952adf56a78396c54c8636e2497b5
package io.skysail.server.app.designer.fields.resources; import java.util.*; import io.skysail.api.links.Link; import io.skysail.api.responses.SkysailResponse; import io.skysail.domain.core.repos.Repository; import io.skysail.server.app.designer.DesignerApplication; import io.skysail.server.app.designer.application.r...
Java
skysail.server.app.designer/src/io/skysail/server/app/designer/fields/resources/FieldResource.java
evandor/skysail-framework
apache-2.0
2,420
63
codeparrot/github-code
707f9d1e94f8b9e1d7f76af4c0d8b849d670966a7693a2e0621ec19b7acfe035
/*! @file OIDTokenUtilities.h @brief AppAuth iOS SDK @copyright Copyright 2015 Google Inc. All Rights Reserved. @copydetails 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 ...
C
Source/OIDTokenUtilities.h
WilliamDenniss/AppAuth-iOS-PlainPKCE
apache-2.0
2,042
61
codeparrot/github-code
60f5263d33576d7b24c4c3e23cc839cda1c306d4e27bde1adbc346c05e85107a
package org.bergefall.iobase.server; import java.util.List; import org.bergefall.iobase.blp.BusinessLogicPipline; import org.bergefall.protocol.metatrader.MetaTraderProtos.MetaTraderMessage; import io.netty.channel.ChannelHandlerContext; import io.netty.channel.SimpleChannelInboundHandler; public class MetaTraderTc...
Java
ioBase/src/main/java/org/bergefall/iobase/server/MetaTraderTcpServerHandlerBase.java
drofe/metaTrader
apache-2.0
1,034
39
codeparrot/github-code
3039ae895087d13e3b600ca0eb37e381d4fe79df6b1ba3170db21af5e60fbead
/** * 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
hbase-server/src/test/java/org/apache/hadoop/hbase/client/TestAdmin3.java
HubSpot/hbase
apache-2.0
13,765
390
codeparrot/github-code
937e93cfad9da9ee13f763cd23747ebd2937d8d55566eac8fbfdb5da757ce4bd
package org.metaborg.core.language; import java.util.Collection; import org.apache.commons.vfs2.FileObject; import org.metaborg.core.config.ILanguageComponentConfig; import com.google.common.collect.Lists; public class ComponentCreationConfig { protected final Collection<IFacet> facets = Lists.newLinkedList(); ...
Java
org.metaborg.core/src/main/java/org/metaborg/core/language/ComponentCreationConfig.java
metaborg/spoofax
apache-2.0
924
32
codeparrot/github-code
9a23131298afc54779aca1188924cf8cd9fd0f2951d0da7c3b7f5d5c19da363a
package org.tylproject.vaadin.addon.mongo; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertFalse; import static org.junit.Assert.assertNotEquals; import static org.junit.Assert.assertNotNull; import org.bson.types.ObjectId; import org.junit.Test; import org.tylproject.data.mongo.Cust...
Java
src/test/java/org/tylproject/vaadin/addon/mongo/BufferedMongoContainerTest.java
gpedro/morphiacontainer-addon
apache-2.0
1,118
38
codeparrot/github-code
d6f1e74ce6548cba7d1ef069008261854a71ac228e9aad4ed60335fe7745e74a
import org.junit.Test; public class LeetCode_029_Divide2Integers { public int divide(int dividend, int divisor) { if(divisor == 1) return dividend;//除数为1的情况。。。 if(divisor == -1) return dividend == Integer.MIN_VALUE ? Integer.MAX_VALUE : -dividend;//除数为-1时。。。 boolean sign = (dividend < 0...
Java
src/leetcode029_Divide2Integers/LeetCode_029_Divide2Integers.java
jnuyanfa/YanFa-LeetCode-with-JAVA
apache-2.0
1,059
35
codeparrot/github-code
3f53926d271d3c857c4725a37c912fbf14524217aa7c73743293ed9aabc28e65
/* * 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
elasticsearch/src/test/java/org/apache/calcite/adapter/elasticsearch/EmbeddedElasticsearchNode.java
googleinterns/calcite
apache-2.0
5,818
167
codeparrot/github-code
ef700206dcd695cd669c409951bd61e74bb5fbcab9e4609a2de3b69e3be7ec23
# vim: tabstop=4 shiftwidth=4 softtabstop=4 # # Copyright 2012 Cisco Systems, Inc. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache...
Python
neutron/plugins/cisco/network_plugin.py
armando-migliaccio/neutron
apache-2.0
17,219
405
codeparrot/github-code
66d01580a37289dc81a684b4ce78802378839bef5b3d14ed5f022f4e09a7df02
/* * Copyright 2013-2021 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by ap...
Java
cloudfoundry-operations/src/test/java/org/cloudfoundry/operations/buildpacks/DeleteBuildpackRequestTest.java
cloudfoundry/cf-java-client
apache-2.0
1,116
40
codeparrot/github-code
44a1dad9826050ff4f999bf27562be4b6a90183ea4f535109bde4f05cc721ad7
package com.gavin.ssm.sys.api.pojo; import java.util.ArrayList; import java.util.List; public class PermissionExample { protected String orderByClause; protected boolean distinct; protected List<Criteria> oredCriteria; public PermissionExample() { oredCriteria = new ArrayList<Criteria>(); ...
Java
ssm-sys/ssm-sys-api/src/main/java/com/gavin/ssm/sys/api/pojo/PermissionExample.java
lugavin/ssm
apache-2.0
26,098
845
codeparrot/github-code
738f7c74266d54aeee061fb5985c90904bc0edd73f22ccf00ecbee18629e410d
/* * DBeaver - Universal Database Manager * Copyright (C) 2010-2019 Serge Rider (serge@jkiss.org) * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/license...
Java
plugins/org.jkiss.dbeaver.ext.oracle/src/org/jkiss/dbeaver/ext/oracle/model/OracleMaterializedView.java
AndrewKhitrin/dbeaver
apache-2.0
6,232
199
codeparrot/github-code
edbbbe1e328ecc26176ebfcd1771f87a24126119a054e755057cb26fb5995929
/** * Copyright 2010 - 2015 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 a...
Java
utils/src/test/java/jetbrains/exodus/core/crypto/MessageDigestTest.java
morj/xodus
apache-2.0
3,077
76
codeparrot/github-code
fe00e00ad69130109c975431ff258b177c0d8d8b955db7cca9b3e72859075305
// // ======================================================================== // Copyright (c) 1995-2013 Mort Bay Consulting Pty. Ltd. // ------------------------------------------------------------------------ // All rights reserved. This program and the accompanying materials // are made available under the ter...
Java
jetty-client/src/test/java/org/eclipse/jetty/client/ErrorStatusTest.java
whiteley/jetty8
apache-2.0
8,910
277
codeparrot/github-code
4b226da9f7275e4978171c591ebfecf2c40127a222dcff1076e49d48bd36700f
/* * 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")...
Java
samples/dci/src/test/java/org/apache/polygene/dci/moneytransfer/test/TransferMoneyTest2.java
Qi4j/qi4j-sdk
apache-2.0
7,501
214
codeparrot/github-code
2f8a1748799c77b6dda1b2ce016976d3923cd3acae3f1da2ee1efcb94b18a1d9
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you ...
Java
ambari-server/src/main/java/org/apache/ambari/server/state/stack/upgrade/ClusterGrouping.java
arenadata/ambari
apache-2.0
13,676
418
codeparrot/github-code
6ea518a26dc493263a5ab61f6491dbd7c8e0b419251cec8c308e0d354bad0198
/* * Copyright (c) Facebook, Inc. and its affiliates. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applic...
Java
src/com/facebook/buck/doctor/AbstractReport.java
zpao/buck
apache-2.0
13,696
335
codeparrot/github-code
3280902ff284127ed282c8b8dc8fc04bc1d891749bf7ee1ee3051599a3b78d1b
#region Apache License v2.0 //Copyright 2014 Stephen Yu //Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except //in compliance with the License. You may obtain a copy of the License at //http://www.apache.org/licenses/LICENSE-2.0 //Unless required by applicable law or agr...
C#
StarMQ/Global.cs
iarcher367/StarMQ
apache-2.0
2,143
60
codeparrot/github-code
141e5f99124181cc2e858ea11ef7427f0c3c3e09c03ab46802e00d3afe8fbc48
<?php abstract class PonderEditor extends PhabricatorApplicationTransactionEditor { protected function shouldPublishFeedStory( PhabricatorLiskDAO $object, array $xactions) { return true; } protected function buildMailTemplate(PhabricatorLiskDAO $object) { $id = $object->getID(); $title = ...
PHP
src/applications/ponder/editor/PonderEditor.php
Automattic/phabricator
apache-2.0
786
35
codeparrot/github-code
2c1b14398fa724ffdecea046ba11d84ab3b45d214a07555f2fa2c6bd780959f6
# Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under t...
Python
kiteclient/common/meta_data.py
jamielennox/python-kiteclient
apache-2.0
1,416
44
codeparrot/github-code
1eeb422f2d1fe84c7cb5158b39a1a1a6c6a759c75a355bc0850c70cd4fc69346
/* * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed u...
JavaScript
parser/src/main/resources/net/rptools/parser/javascript/api/BaseAPI.js
RPTools/zz-old-rptools-common
apache-2.0
12,430
394
codeparrot/github-code
b383aae71dd0b53738d7634c7012eab0ba102b7f894bb7bef7110882f3c12387
/** * * 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"); ...
Java
hbase-client/src/test/java/org/apache/hadoop/hbase/client/TestGet.java
juwi/hbase
apache-2.0
11,319
245
codeparrot/github-code
7731aca5d62f3865571a6eedff04a73a94d74ae2608d203eea4e4972f6894737
package ru.job4j.generic; import java.util.Random; /** * Класс User. * @author Konstantin Kolganov (kkolganov.92@gmail.com) * @since 14.11.2017 * @version 2.0 */ public class User extends Base { /** * Класс User. */ private String name; /**Name.*/ private String id; /**Номер id.*/ private final Random rn = new Ra...
Java
chapter_005/src/main/java/ru/job4j/generic/User.java
konstantinkolganov/kkolganov
apache-2.0
1,371
75
codeparrot/github-code
3f871ae5e14141ddb26038a421913d316f7842fb2bccf7b41dc5eca571a1ded9
# Copyright 2016-2017 Capital One Services, LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed ...
Python
c7n/resources/account.py
jimmyraywv/cloud-custodian
apache-2.0
35,461
967
codeparrot/github-code
d1ec3fd8e7f70f6833a202ae367673d976fc312cb577f2c5dd06e89ba149299f
import { Gesture } from 'app/modules/editor/scripts/paper/gesture'; import { PaperLayer } from 'app/modules/editor/scripts/paper/item'; import { PaperService } from 'app/modules/editor/services'; import * as paper from 'paper'; /** * A gesture that selects one or more items using a selection box. * * Preconditions:...
TypeScript
src/app/modules/editor/scripts/paper/gesture/select/BatchSelectItemsGesture.ts
alexjlockwood/ShapeShifter
apache-2.0
2,287
75
codeparrot/github-code
8992af408d94311609f7de146683f227c4a489d6324fbfccb8d31c88df6891fc
import React, { Component } from 'react'; import { View, ViewPropTypes } from 'react-native'; import { connectStyle } from 'native-base-shoutem-theme'; import variables from '../theme/variables/platform'; import mapPropsToStyleNames from '../Utils/mapPropsToStyleNames'; class Badge extends Component { render() { ...
JavaScript
src/basic/Badge.js
chaitanya0bhagvan/NativeBase
apache-2.0
649
32
codeparrot/github-code
3c9b3371a608a0a859b34a054648cd9bb19c8f3219bfc11b6765e1de89fa45dc
/* * Licensed to Mandrel under one or more contributor * license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright * ownership. Mandrel licenses this file to you under * the Apache License, Version 2.0 (the "License"); you may * not use this file except in...
Java
mandrel-core/src/main/java/io/mandrel/data/filters/link/SkipAncorFilter.java
Treydone/mandrel
apache-2.0
1,510
47
codeparrot/github-code
a5138a387af9f95bb189a7b3d18eb451c97731cf9865119aa694be82540294e6
package ch21 import scala.math._ object ex05 { class Fraction(n: Int, d: Int) { val num: Int = if (d == 0) 1 else n * sign(d) / gcd(n, d); val den: Int = if (d == 0) 0 else d * sign(d) / gcd(n, d); override def toString = num + "/" + den def sign(a: Int) = if (a > 0) 1 else if (a < 0) -1 else 0 ...
Scala
src/main/scala/ch21/ex05.scala
tuxdna/scala-for-the-impatient-exercises
apache-2.0
1,354
44
codeparrot/github-code
b4a5a713e884c7935c45cdff5d6e9b617657be8b516df20d73aed445a702c521
import fide from '@/services/fide' import { openProject, openFolder } from '@/services/local-files' import { getThumbnailByExtension, getFileType, isDirectory, isFile } from '@/utils/files' import { supportedFileSchema } from '../validations' import validate from '@/utils/validate' import { join, parse } f...
JavaScript
src/renderer/store/modules/file-managers/local-files/index.js
DrSensor/F.I.D.E
apache-2.0
3,849
118
codeparrot/github-code
01d5125e39ab3ff68f3b3a5416fb61d2f0481e2fc489cd038c995173a8d0b40f
// // Licensed to Green Energy Corp (www.greenenergycorp.com) under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information // regarding copyright ownership. Green Enery Corp licenses this file // to you under the Apache License, Version 2.0 (the // "...
C
src/opendnp3/APL/Intercept.h
tweakmy/dnp3-old
apache-2.0
2,946
100
codeparrot/github-code
8fb3e30436af085bbc8b9f276523b38ada213bdc74e1ed358e495b9377f9440e
package jcurry.util.function; import jcurry.util.Currying; import jcurry.util.function.testdata.BiFunctions; import jcurry.util.function.testdata.BooleanSuppliers; import jcurry.util.function.testdata.Functions; import jcurry.util.function.testdata.Suppliers; import org.junit.Test; import org.junit.runner.RunWith; imp...
Java
src/test/java/jcurry/util/function/CurryingSupplierTest.java
adorow/jcurry
apache-2.0
1,651
54
codeparrot/github-code
b6ffd7d81547fa852a41d78d8c88432b16b141b880e5402045460060e25693f3
/* * 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-logs/src/main/java/com/amazonaws/services/logs/model/transform/QueryCompileErrorJsonUnmarshaller.java
aws/aws-sdk-java
apache-2.0
3,010
79
codeparrot/github-code
034f38ee1590684dc38fd7dd77358b5de19a832c3e517599b7d061a8b77d9cc4
/* A Bison parser, made by GNU Bison 2.5. */ /* Bison implementation for Yacc-like parsers in C Copyright (C) 1984, 1989-1990, 2000-2011 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as publi...
C
Fac/Licence/IN604/expreg.tab.c
slvrgauthier/archives
apache-2.0
45,210
1,637
codeparrot/github-code
562fb7ba56168e29a2cfa07e12e6dfe2a9f1323dae05cb1915cdbe1dad3cd961
// -*- mode: c++; tab-width: 4; indent-tabs-mode: t; c-file-style: "stroustrup"; -*- // vi:set ts=4 sts=4 sw=4 noet : // Copyright 20015 The TPIE development team // // This file is part of TPIE. // // TPIE is free software: you can redistribute it and/or modify it under // the terms of the GNU Lesser General Public Li...
C
keyvi/3rdparty/tpie/tpie/flags.h
DavidNemeskey/keyvi
apache-2.0
3,642
114
codeparrot/github-code
36093e0e97d5cd6384131e05e13d3bf187da368e0d27b8317cab17f75292ce0f
#!/bin/bash # # Script to create a snapshot of the leveldb (standalone) version of Warp. # WARP10_USER=${WARP10_USER:=warp10} # # Make sure the caller is warp10 # if [ "`whoami`" != "${WARP10_USER}" ] then echo "You must be ${WARP10_USER} to run this script." exit 1 fi if [ "$#" -eq 1 ]; then # Name of snapsh...
Shell
warp10/src/main/sh/snapshot.sh
StevenLeRoux/warp10-platform
apache-2.0
5,109
214
codeparrot/github-code
e4827d9740616e6e8461927f0e7a0b7fa4cc0b842e4e6fe736e07937cbd7067e
/* * Copyright 2021 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to ...
TypeScript
src/app/routes/project/components/outlet-frame/outlet-container.component.ts
google/web-prototyping-tool
apache-2.0
7,216
208
codeparrot/github-code
bd73f80feaa169c987d6cc5a7d873b904e141cb74efcfcc3747c63d713787152
package rest import ( "fmt" "github.com/viant/endly" "github.com/viant/endly/testing/validator" "github.com/viant/toolbox" ) //ServiceID represents rest service id. const ServiceID = "rest/runner" type restService struct { *endly.AbstractService } func (s *restService) sendRequest(context *endly.Context, reque...
GO
testing/runner/rest/service.go
viant/endly
apache-2.0
2,550
114
codeparrot/github-code
fcc2c24dd39f06d5bf4e368cc107733087a56dd5147e6b1f1a24bcb5c4045490
/** * Project Desc: * Project Name:TestExample * File Name:Person.java * Package Name:util * Date:2015-5-6上午11:40:49 * Copyright (c) 2015, zhgo116.com All Rights Reserved. * */ package util; /** * ClassName:Person <br/> * Date: 2015-5-6 上午11:40:49 <br/> * * @author caosheng */ public cla...
Java
Fancy/src/test/java/util/Person.java
zhgo116/fancy
apache-2.0
855
60
codeparrot/github-code
09e911f50332205b9faeb81535cf3d3c8cf9cc9decf34d6c9e3f13ebf024b0ce
package com.sequenceiq.cloudbreak.api.endpoint.v4.stacks.base.parameter.instancegroup.network.gcp; import java.util.ArrayList; import java.util.List; import java.util.Map; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.ann...
Java
core-api/src/main/java/com/sequenceiq/cloudbreak/api/endpoint/v4/stacks/base/parameter/instancegroup/network/gcp/InstanceGroupGcpNetworkV4Parameters.java
hortonworks/cloudbreak
apache-2.0
1,674
54
codeparrot/github-code
17634e1122144bbbdcc72df5585ea12ffc08ddd41cf4626cd38a9d797e20681c
# Copyright 2020 Makani Technologies LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to...
Python
config/base_station/sim/perch_sim.py
google/makani
apache-2.0
5,391
139
codeparrot/github-code
80032e1256f2e311b6c02943206d7be951d0d80783d732a92bdd0eb6f5374a1a
package net.ME1312.SubServers.Client.Bukkit.Event; import net.ME1312.Galaxi.Library.Util; import net.ME1312.SubServers.Client.Bukkit.Library.SubEvent; import org.bukkit.event.Event; import org.bukkit.event.HandlerList; import java.util.UUID; /** * Send Command Event */ public class SubSendCommandEvent extends Eve...
Java
SubServers.Client/Bukkit/src/net/ME1312/SubServers/Client/Bukkit/Event/SubSendCommandEvent.java
ME1312/SubServers-2
apache-2.0
1,815
77
codeparrot/github-code
506922a07750d443eac4c837163a92d60b3655b19f8fb89c09c8f9bc4c82d1a7
//https://gist.github.com/shawnbot/4166283 (function() { // get a reference to the d3.selection prototype, // and keep a reference to the old d3.selection.on var d3_selectionPrototype = d3.selection.prototype, d3_on = d3_selectionPrototype.on; // our shims are organized by event: // "desired-event": ["s...
JavaScript
static/d3/general/mouse.event.js
helmutkemper/GitGoServer
apache-2.0
1,377
52
codeparrot/github-code
0d3e5c1cfe92dad0a55544c203b181967447cb858e2a4ecad7a1b4f1baf7ddd6
/** * 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
core/src/main/java/org/apache/oozie/servlet/V1AdminServlet.java
cbaenziger/oozie
apache-2.0
7,166
162
codeparrot/github-code
4fde09cab978bf865446fdf8ae54d647290de232ed65c8671968fd018873760d
// ## Token types // The assignment of fine-grained, information-carrying type objects // allows the tokenizer to store the information it has about a // token in a way that is very cheap for the parser to look up. // All token type variables start with an underscore, to make them // easy to recognize. // The `befor...
JavaScript
libs/parsers/jstokentype.js
makepad/makepad.github.io
apache-2.0
5,325
154
codeparrot/github-code
58b9b3ff5e8b54d5320253dbb2f8837d95393aaf35081a6c5fc41607b59960f5
package azgo import ( "encoding/xml" "reflect" log "github.com/sirupsen/logrus" ) // AggrSpaceGetIterRequest is a structure to represent a aggr-space-get-iter Request ZAPI object type AggrSpaceGetIterRequest struct { XMLName xml.Name `xml:"aggr-space-get-iter"` Desi...
GO
storage_drivers/ontap/api/azgo/api-aggr-space-get-iter.go
NetApp/trident
apache-2.0
12,020
335
codeparrot/github-code
a5f04891c651c6b379276da17db5871e8a79fe3f1ff6c24bf7aa580062890915
/* * 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
tez-api/src/main/java/org/apache/tez/common/ProgressHelper.java
ueshin/apache-tez
apache-2.0
3,500
93
codeparrot/github-code
29770a0e6a46695a09ae80e942c2093847da2af86b4256e610301618c3f6eac6
#!/usr/bin/python -u # Copyright (c) 2010-2011 OpenStack, LLC. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
Python
test/functional/tests.py
ceph/swift
apache-2.0
63,978
1,771
codeparrot/github-code