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 |
|---|---|---|---|---|---|---|---|---|
1c6c20f910f154fbac27a4c482a2dce3079da3d78a13386550a9ec2ff3bcf324 | /**
* Appcelerator Titanium Mobile
* Copyright (c) 2009-2016 by Appcelerator, Inc. All Rights Reserved.
* Licensed under the terms of the Apache Public License
* Please see the LICENSE included with this distribution for details.
*/
package ti.modules.titanium.geolocation;
import java.util.ArrayList;
import java.... | Java | android/modules/geolocation/src/java/ti/modules/titanium/geolocation/GeolocationModule.java | ashcoding/titanium_mobile | apache-2.0 | 36,967 | 953 | codeparrot/github-code |
bc9fce8206486c91ddc2f5fe59d88197d8d71cf4e57440048315f8f2528de51b | using EPiServer.Core;
namespace EPiServer.SocialAlloy.Web.Social.Models
{
/// <summary>
/// The LikeButtonBlockViewModel class represents the model that will be used to
/// provide data to the Like button block frontend view.
/// </summary>
public class LikeButtonBlockViewModel
{
/// <... | C# | src/EPiServer.SocialAlloy.Web/Social/Models/Ratings/LikeButtonBlockViewModel.cs | episerver/SocialAlloy | apache-2.0 | 985 | 33 | codeparrot/github-code |
37aa46d078318e2502a4c5d19b5f48e03ef490fef31235143391fa5c1c778571 | package org.xmlcml.ami.visitor;
import java.io.File;
import java.util.List;
import org.apache.commons.io.FilenameUtils;
import org.apache.log4j.Logger;
import org.xmlcml.ami.util.AMIUtil;
import org.xmlcml.ami.visitable.VisitableInput;
/** manages the output.
*
* Decides whether to create files or dir... | Java | src/main/java/org/xmlcml/ami/visitor/VisitorOutput.java | tarrow/ami | apache-2.0 | 3,654 | 124 | codeparrot/github-code |
99229ca259ec795aed5fb56b509be30232fb2b78b35230b8832c9af38d524260 | package interviews;
public class Yahoo {
}
Run Length Encoding for byte array
Input byte array [10, 10, 10, 255, 255, 0, 10] ==> output byte array [3, 10, 2, 255, 1, 0, 1, 10]
Class ByteArrayEncodeDecode {
public byte[] encodeByteArray(byte[] input) {
int n = input.length;
if (n == 0) return new... | Java | Java/interviews/Yahoo.java | rezaur86/Coding-competitions | apache-2.0 | 1,011 | 41 | codeparrot/github-code |
40f31eb556daf4c692d856c74b0299699cdad64824e6156a5b85d2678b1b67f7 | /*******************************************************************\
Module: Type Naming for C
Author: Daniel Kroening, kroening@cs.cmu.edu
\*******************************************************************/
#include <ctype.h>
#include <i2string.h>
#include <std_types.h>
#include "type2name.h"
/**************... | C++ | ansi-c/type2name.cpp | ssvlab/esbmc-gpu | apache-2.0 | 3,566 | 148 | codeparrot/github-code |
8a6079f7d84b69b626527091bf386b685b02523b78cb5c40afd48e34c15ea8dc | /*
* Copyright 2013-2017 Grzegorz Ligas <ligasgr@gmail.com> and other contributors
* (see the CONTRIBUTORS file).
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache... | Java | gen/org/intellij/xquery/psi/XQueryContextItemDecl.java | ligasgr/intellij-xquery | apache-2.0 | 1,132 | 40 | codeparrot/github-code |
c798563378de9039642958176462da9c240fb2d604b5c485969c029837c22f38 | using GoBuddies.Server.Data;
using GoBuddies.Server.Data.DbModels;
using GoBuddies.Services;
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.DataProtection;
using Microsoft.AspNetCore.Hosting;
using Microsoft.AspNetCore.Identity;
using Microsoft.AspNetCore.Identity.EntityFrameworkCore;
using Microsoft.A... | C# | GoBuddies/GoBuddies.Server.WebApi/StartUp.cs | dot-connect/GoBuddies | apache-2.0 | 4,124 | 110 | codeparrot/github-code |
7207a749719c89c4a65138cc06ed52bc50fe1a42e9a827bf39ea55d0d1c4fc0c | /*
* Copyright (c) 2008-2016 Computer Network Information Center (CNIC), Chinese Academy of Sciences.
*
* This file is part of Duckling project.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the L... | Java | src/main/java/net/duckling/vmt/domain/HttpGet.java | duckling-falcon/vmt | apache-2.0 | 1,845 | 65 | codeparrot/github-code |
c11581322a586ca875a87ee3125bd967d18eb6da6230e68ffd9665422b552820 | /*
* Copyright 2011 Jon S Akhtar (Sylvanaar)
*
* 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 | src/main/java/com/sylvanaar/idea/Lua/lang/psi/impl/symbols/LuaUpvalueIdentifierImpl.java | consulo/consulo-lua | apache-2.0 | 1,415 | 45 | codeparrot/github-code |
f05e5f2a85bc162c8275f92bf24a964008a5922e4751b55ea06db3a99c7f33e9 | package com.buschmais.xo.neo4j.test.id;
import static org.hamcrest.MatcherAssert.assertThat;
import static org.hamcrest.Matchers.equalTo;
import java.util.Collection;
import com.buschmais.xo.api.XOManager;
import com.buschmais.xo.api.bootstrap.XOUnit;
import com.buschmais.xo.neo4j.test.AbstractNeo4JXOManagerIT;
impo... | Java | neo4j/test/src/test/java/com/buschmais/xo/neo4j/test/id/EqualsHashcodeIT.java | buschmais/extended-objects | apache-2.0 | 1,744 | 52 | codeparrot/github-code |
1f2acfd08a851b8278485b5dcd011080914aa2b7c8c984ae01f4e874ac29f8bf | package com.tle.configmanager;
import com.dytech.gui.ComponentHelper;
import com.thoughtworks.xstream.XStream;
import com.tle.common.Check;
import java.awt.Container;
import java.awt.Dimension;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.io.BufferedReader;
import java.io.Buffer... | Java | Source/Tools/ConfigManager/src/com/tle/configmanager/ConfigLauncherGUI.java | equella/Equella | apache-2.0 | 13,989 | 408 | codeparrot/github-code |
0abceda2e82ba363fcecfd167d90db86f79dde5dddd7477ca678acec16b45cf4 | <?php
final class DrydockLeaseViewController extends DrydockLeaseController {
public function handleRequest(AphrontRequest $request) {
$viewer = $request->getViewer();
$id = $request->getURIData('id');
$lease = id(new DrydockLeaseQuery())
->setViewer($viewer)
->withIDs(array($id))
->n... | PHP | src/applications/drydock/controller/DrydockLeaseViewController.php | librewiki/phabricator | apache-2.0 | 4,366 | 159 | codeparrot/github-code |
8448a013f129420c48f72ac841adc778984c71c8964998b9ac84468a91797535 | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT license.
using System;
using System.ComponentModel;
using System.Diagnostics.CodeAnalysis;
using System.Runtime.InteropServices;
using System.Text;
namespace Microsoft.Web.Utility.PInvoke.Fusion
{
[ComImport, InterfaceType(ComI... | C# | src/Installers/Windows/AspNetCoreModule-Setup/IIS-Setup/IIS-Common/Managed/NativeMethods/Fusion.cs | aspnet/AspNetCore | apache-2.0 | 4,421 | 180 | codeparrot/github-code |
7b51c7eb98f4d19db31c45f8a0468f656c1ee2be84619d28c2a085ea8e5b695c | package com.krealid.starter.adapters;
import android.content.Context;
import android.support.v7.widget.RecyclerView;
import android.util.TypedValue;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.webkit.WebChromeClient;
import android.webkit.WebSettings;
imp... | Java | ParseStarterProject/src/main/java/com/krealid/starter/adapters/ActuExpendedAdapter.java | max02100/paroisse | apache-2.0 | 4,384 | 112 | codeparrot/github-code |
ed36e565dec8a9a778d37d18b600c12a9b7ea8f354f5c5b4840f09614900d3c9 | /*
* Copyright 2005-2017 ECMWF.
*
* This software is licensed under the terms of the Apache Licence Version 2.0
* which can be obtained at http://www.apache.org/licenses/LICENSE-2.0.
*
* In applying this licence, ECMWF does not waive the privileges and immunities granted to it by
* virtue of its status as an int... | C | src/grib_accessor_class_number_of_coded_values.c | weathersource/grib_api | apache-2.0 | 7,223 | 188 | codeparrot/github-code |
6093588493abd10277f5b114ee549a07f07f1c664a8bf308d5f0fbc2c40e5eb3 | /*
* Copyright 2014 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include "SkBigPicture.h"
#include "SkData.h"
#include "SkDrawable.h"
#include "SkLayerInfo.h"
#include "SkPictureRecorder.h"
#include "SkPictureUtils.h"
#include "SkRecord.h"... | C++ | src/core/SkPictureRecorder.cpp | qrealka/skia-hc | apache-2.0 | 7,381 | 204 | codeparrot/github-code |
b74bf51baadb931a831a95aef3799b0d6fcc0fea529d98486449be987747cb52 | /*
* Copyright (C) 2013 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | Java | src/com/android/inputmethod/keyboard/internal/GestureTrailsPreview.java | slightfoot/android-kioskime | apache-2.0 | 7,627 | 200 | codeparrot/github-code |
597e358d4899fc908b9f609489ac45054a71a966d67bc5013e9001fb1517da2d | /** @file
Provide Boot Manager related library APIs.
Copyright (c) 2011 - 2019, Intel Corporation. All rights reserved.<BR>
(C) Copyright 2015-2016 Hewlett Packard Enterprise Development LP<BR>
This program and the accompanying materials
are licensed and made available under the terms and conditions of the BSD... | C | third_party/edk2/MdeModulePkg/Include/Library/UefiBootManagerLib.h | google/google-ctf | apache-2.0 | 28,153 | 824 | codeparrot/github-code |
c82dbb7699fa2d4ddc7320bd51f44e0d458ca2dc0d536e57875474a07a622209 | package org.jboss.resteasy.test;
import org.jboss.resteasy.client.jaxrs.ResteasyClientBuilder;
import org.jboss.resteasy.client.jaxrs.ResteasyWebTarget;
import org.jboss.resteasy.util.PortProvider;
import java.net.MalformedURLException;
import java.net.URI;
import java.net.URL;
import javax.ws.rs.client.ClientBuilde... | Java | resteasy-client/src/main/java/org/jboss/resteasy/test/TestPortProvider.java | awhitford/Resteasy | apache-2.0 | 3,100 | 118 | codeparrot/github-code |
89bacda50e7fef21de086ceb4bd4e80abccd5ea7b802bed592591f5ba024d3f1 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Text;
using System.Threading.Tasks;
using Windows.Web.Syndication;
namespace DncShowcaseHub.DataModel
{
class FeedItemIterator
{
private SyndicationFeed feed;
private int index;
public F... | C# | DncShowcaseHub/DncShowcaseHub/DataModel/FeedItemIterator.cs | dotnetcurry/winrt-81-hub-control | apache-2.0 | 3,495 | 148 | codeparrot/github-code |
075c077d0da87155f6f61e680ee47b64a4928f06e52fd4fd904746e23a25fde3 | package com.xiaochen.progressroundbutton;
import android.animation.Animator;
import android.animation.AnimatorSet;
import android.animation.TimeInterpolator;
import android.animation.ValueAnimator;
import android.annotation.TargetApi;
import android.content.Context;
import android.content.res.TypedArray;
import androi... | Java | library/src/main/java/com/xiaochen/progressroundbutton/AnimDownloadProgressButton.java | Ernest-su/ProgressRoundButton | apache-2.0 | 22,921 | 684 | codeparrot/github-code |
3dbf7414cf408bd0dcd4cde40ce0f5bbfd2378afba2e13c8c491611cbeb57acc | ######################################################################
# tc_divmod.rb
#
# Test case for the Bignum#divmod instance method.
######################################################################
require 'test/unit'
class TC_Bignum_Divmod_InstanceMethod < Test::Unit::TestCase
def setup
@num_int ... | Ruby | jruby/src/test/externals/ruby_test/test/core/Bignum/instance/tc_divmod.rb | google-code/android-scripting | apache-2.0 | 1,607 | 52 | codeparrot/github-code |
379d5a1f11e0017afe494033801a720a9be191b23d6a61b55fd3d0f52d625577 | /*
* Copyright 2017 Crown Copyright
*
* 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 | stroom-security/stroom-security-identity/src/main/java/stroom/security/identity/authenticate/AuthenticateModule.java | gchq/stroom | apache-2.0 | 1,110 | 34 | codeparrot/github-code |
17ae00957979f9efd108593cd54e58d086f660248b0dbf7ca10fcee503ae6752 | <?php
namespace DCarbone\PHPFHIRGenerated\STU3\FHIRElement;
/*!
* This class was generated with the PHPFHIR library (https://github.com/dcarbone/php-fhir) using
* class definitions from HL7 FHIR (https://www.hl7.org/fhir/)
*
* Class creation date: December 26th, 2019 15:43+0000
*
* PHPFHIR Copyright:
*
* C... | PHP | src/DCarbone/PHPFHIRGenerated/STU3/FHIRElement/FHIRMeasmntPrinciple.php | dcarbone/php-fhir-generated | apache-2.0 | 11,892 | 325 | codeparrot/github-code |
63051266fc37966aadf95a9a0a210da4663b2de204024d6a8daddb5fc2c055a2 | using System;
using System.Linq;
using System.Linq.Expressions;
using System.Reactive;
using Xamarin.Forms;
using RxObservable = System.Reactive.Linq.Observable;
using System.Reactive.Linq;
namespace RxApp.XamarinForms
{
public static class Bindings
{
public static IDisposable BindTo(
thi... | C# | RxApp.XamarinForms/Bindings.cs | bordoley/RxApp | apache-2.0 | 4,568 | 115 | codeparrot/github-code |
86db1383291da85dfa8e1df7fbf5f0b9f8dee7968557a41f313ae0353379d4fe | /*
* Copyright (c) 2012-2015 S-Core Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable ... | JavaScript | apps/dashboard/src/js/main_bak.js | 5hk/webida-client | apache-2.0 | 21,852 | 597 | codeparrot/github-code |
760ba4255fe67470dff02e3e720a0ad54ebf4b9205331a5bdd29d0b1e10d979c | SET NAMES utf8;
SET FOREIGN_KEY_CHECKS = 0;
-- ----------------------------
-- Table structure for `KBOOpenData_activity`
-- ----------------------------
-- DROP TABLE IF EXISTS `KBOOpenData_activity`;
CREATE TABLE IF NOT EXISTS `KBOOpenData_activity` (
`EntityNumber` varchar(13) NOT NULL COMMENT '9999.999.999 of 9... | SQL | v1/lib/Tool/KBOOpenData/sql/db-000.sql | TomLous/datatools | apache-2.0 | 5,288 | 124 | codeparrot/github-code |
87f45339441e820faf93d0ac6bedabf38d4361bdc1709881851e4770b0722c6c | # coding=utf8
from django.views.generic import ListView, DetailView, CreateView
from django.db.models import Q
from django.http import JsonResponse, HttpResponseRedirect
from django.core.urlresolvers import reverse
from django.shortcuts import render
from pure_pagination.mixins import PaginationMixin
from django.contri... | Python | lesson10/apps/books/publish/__init__.py | 1032231418/python | apache-2.0 | 3,101 | 93 | codeparrot/github-code |
b00774dc5b0ca7c057f4b321fd63778d1a720e8d2022f062e5232995e21c057f | /*
* 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-workmailmessageflow/src/main/java/com/amazonaws/services/workmailmessageflow/model/transform/MessageRejectedExceptionUnmarshaller.java | aws/aws-sdk-java | apache-2.0 | 2,934 | 75 | codeparrot/github-code |
1a8843b714d3f4fd0552555ddabdd9e32abcb067b95e29975f29d833e98e1b59 | // Copyright 2005-2010 Gallio Project - http://www.gallio.org/
// Portions Copyright 2000-2004 Jonathan de Halleux
//
// 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.a... | C# | src/Gallio/Gallio/Model/Filters/FilterToken.cs | citizenmatt/gallio | apache-2.0 | 1,333 | 47 | codeparrot/github-code |
ccec3f035a1a276dcd3821a4974a80718393a5e8de476fb2c32dcdf2f4af9647 | ngDefine(
'cockpit.plugin.statistics-plugin.controllers',
function(module) {
module
.controller(
'processDefinitionCtrl',
[
'$scope',
'DataFactory',
'Uri',
function($scope, DataFactory, Uri) {
... | JavaScript | src/main/resources/plugin-webapp/statistics-plugin/app/controllers/processDefinitionCtrl.js | nagyistoce/camunda-cockpit-plugin-statistics | apache-2.0 | 3,679 | 88 | codeparrot/github-code |
1c8419d489c101eda102b3003f849bce0e3fb224a4c06aec715abc749c2e443d | /* Copyright 2015 ETH Zurich
*
* 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 wri... | C++ | c/ssp/PathState.cpp | dmpiergiacomo/scion | apache-2.0 | 23,627 | 814 | codeparrot/github-code |
5ac979f71b94c23f384a199bda30c0b94ab07c3f11fc41294ba2e49f0d73a9b7 | import { Injectable } from '@angular/core';
import { Http } from '@angular/http';
import { UserData } from './user-data';
import { Observable } from 'rxjs/Observable';
import 'rxjs/add/operator/map';
import 'rxjs/add/observable/of';
@Injectable()
export class ConferenceData {
data: any;
constructor(public htt... | TypeScript | Ionic/src/providers/conference-data.ts | josephjohn136/logonfly | apache-2.0 | 4,422 | 156 | codeparrot/github-code |
bf4804305e458d70238e2697ef9c9e6242e62c2238b23843a1541f99e1fb0153 | package nl.esciencecenter.e3dchem.modifiedtanimoto;
import org.knime.base.util.flowvariable.FlowVariableProvider;
import org.knime.core.data.DataTableSpec;
import org.knime.core.node.InvalidSettingsException;
import org.knime.core.node.util.CheckUtils;
import org.knime.distance.category.DistanceCategoryConfig;
import ... | Java | nl.esciencecenter.e3dchem.modifiedtanimoto/src/nl/esciencecenter/e3dchem/modifiedtanimoto/ModifiedTanimotoDistanceConfig.java | 3D-e-Chem/knime-modified-tanimoto | apache-2.0 | 1,815 | 65 | codeparrot/github-code |
a96f202bd945f593efa41e6cacc02f0b9ae7aee9a62a5086adbe17c6bb3733d7 | using System;
using System.Reactive.Linq;
using System.Reactive.Subjects;
using System.Threading.Tasks;
using RElmah.Common.Model;
using RElmah.Errors;
using RElmah.Services.Nulls;
namespace RElmah.Services.Inbox
{
public class SerializedErrorsInbox : IErrorsInbox
{
private readonly IErrorsBacklog _er... | C# | relmah/src/RElmah/Services/Inbox/SerializedErrorsInbox.cs | wasphub/RElmah | apache-2.0 | 1,103 | 41 | codeparrot/github-code |
34a848ba34e375c552f984d59b719253fbc49e132957e87950c2ac8c7c21835f | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- NewPage -->
<html lang="de">
<head>
<title>Uses of Class org.deidentifier.arx.aggregates.HierarchyBuilderDate.Format (ARX API Documentation)</title>
<link rel="stylesheet" type="text/css" href="../../../../.... | HTML | doc/api/org/deidentifier/arx/aggregates/class-use/HierarchyBuilderDate.Format.html | jgaupp/arx | apache-2.0 | 10,656 | 189 | codeparrot/github-code |
97cae14eb1f4fd627c17c1c815fcaf6838d138eadd918831eeaf7795b0b11e7d | /* Copyright 2020 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 in writing, software
dis... | C++ | struct2tensor/kernels/parquet/parquet_dataset_kernel.cc | google/struct2tensor | apache-2.0 | 14,363 | 354 | codeparrot/github-code |
40904caaefb9409695b52d1737acebed6f532e5576ba104dd9d1981d9bf18648 | /*=========================================================================
Program: GDCM (Grassroots DICOM). A DICOM library
Copyright (c) 2006-2011 Mathieu Malaterre
All rights reserved.
See Copyright.txt or http://gdcm.sourceforge.net/Copyright.html for details.
This software is distributed W... | C | Modules/ThirdParty/GDCM/src/gdcm/Source/Common/gdcmMD5.h | RayRuizhiLiao/ITK_4D | apache-2.0 | 1,568 | 52 | codeparrot/github-code |
96665469ba260fdaa2562f50fe0d723c11de93ea94ba3e2f5d6ab32bca50807b | /*
* ====================================================================
* 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... | Java | src/protocol/http/org/apache/jmeter/protocol/http/sampler/JMeterClientConnectionOperator.java | ra0077/jmeter | apache-2.0 | 3,341 | 91 | codeparrot/github-code |
8fa693076fa7997820956469f7e8760b19f38c3a599e3e58e820843bbc65b1b6 | angular.module('aac.controllers.main', [])
/**
* Main layout controller
* @param $scope
*/
.controller('MainCtrl', function($scope, $rootScope, $location, Data, Utils) {
$scope.go = function(v) {
$location.path(v);
}
$scope.activeView = function(view) {
return view == $rootScope.currentView ? 'ac... | JavaScript | src/main/resources/public/js/account/main.js | smartcommunitylab/AAC | apache-2.0 | 3,561 | 129 | codeparrot/github-code |
74cc365b63f4e0d7fd9b156881ead56fe02957a0e905646920c98a73b881fd94 | <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Generic values</title>
<meta name="generator" content="DocBook XSL Stylesheets V1.77.1">
<link rel="home" href="index.html" title="GObject Reference Manual">
<link rel... | HTML | host/gui/GTK+/share/gtk-doc/html/gobject/gobject-Generic-values.html | jonnyniv/boost_converter | apache-2.0 | 56,410 | 831 | codeparrot/github-code |
70c4419174e27e764cbc2294f3dc897c4123075490dbb6ad52a0d598e6a8614e | /*
* 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 ... | Scala | core/src/main/scala/org/apache/spark/rdd/CartesianRDD.scala | tophua/spark1.52 | apache-2.0 | 3,104 | 97 | codeparrot/github-code |
e446e40580748b59492df80c07e32811093df6fe3aa36015b9ca11aaaf2e5a6d | package com.jota.patterns.singleton;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.widget.TextView;
import butterknife.BindView;
import butterknife.ButterKnife;
import butterknife.OnClick;
import com.jota.patterns.singleton.singleton.User;
public class MainActivity extends ... | Java | singleton/src/main/java/com/jota/patterns/singleton/MainActivity.java | jotaramirez90/Android-DesignPatterns | apache-2.0 | 1,406 | 49 | codeparrot/github-code |
0ba2708d81be5fca140dafe8aeeee9d01e2f0621c5d7daa9ccf798564f22e131 | # This file is part of the MapProxy project.
# Copyright (C) 2010 Omniscale <http://omniscale.de>
#
# 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... | Python | mapproxy/util/coverage.py | Anderson0026/mapproxy | apache-2.0 | 7,709 | 257 | codeparrot/github-code |
df56a736bf6e8ac32c2ed829021bd2fa63db5c7cf3517ab25b19818c47aa4981 | package ru.maizy.ambient7.core.data
/**
* Copyright (c) Nikita Kovaliov, maizy.ru, 2016-2017
* See LICENSE.txt for details.
*/
import java.time.ZonedDateTime
case class Co2AggregatedLevels(
lowLevel: Int,
mediumLevel: Int,
highLevel: Int,
unknownLevel: Int,
from: ZonedDateTime,
to: ZonedDa... | Scala | core/src/main/scala/ru/maizy/ambient7/core/data/Co2AggregatedLevels.scala | maizy/ambient7 | apache-2.0 | 1,045 | 35 | codeparrot/github-code |
61e1dfb4d97fea7e5d1ec66493ee946dfa743a52378dd2ee8a171c42af089b13 | // Licensed under the Apache License, Version 2.0
// Details: https://raw.githubusercontent.com/square/quotaservice/master/LICENSE
// Package memory implements token buckets in memory, inspired by the algorithms used in Guava's
// RateLimiter library - https://github.com/google/guava/blob/master/guava/src/com/google/c... | GO | buckets/memory/bucket.go | maniksurtani/quotaservice | apache-2.0 | 4,687 | 156 | codeparrot/github-code |
b3877dea7efda11df309327bde3bf5d62b710ee9819ed8ba9896d9587cf6a28d | package com.gotcreations.emojilibrary.controller;
import android.animation.Animator;
import android.graphics.PorterDuff;
import android.graphics.drawable.Drawable;
import android.os.Build;
import android.os.Handler;
import androidx.annotation.DrawableRes;
import androidx.appcompat.widget.Toolbar;
import android.text.E... | Java | emoji-library/src/main/java/com/gotcreations/emojilibrary/controller/TelegramPanel.java | ander7agar/emoji-keyboard | apache-2.0 | 13,759 | 338 | codeparrot/github-code |
e3d750571c71db3ddcfda0483927eee83bc80b36dab7f9c464f6cbc664a5580c | /**
* Copyright Pravega Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to... | Java | controller/src/main/java/io/pravega/controller/server/eventProcessor/requesthandlers/AbortRequestHandler.java | pravega/pravega | apache-2.0 | 5,395 | 112 | codeparrot/github-code |
88e6f54e4183a7c7cc5dbc8fe677b724354672e9a454712aef1c8a4a9e940fcd | (function outer(modules, cache, entries){
/**
* Global
*/
var global = (function(){ return this; })();
/**
* Require `name`.
*
* @param {String} name
* @param {Boolean} jumped
* @api public
*/
function require(name, jumped){
if (cache[name]) return cache[name].exports;
if (mo... | JavaScript | test/exp_react.js | wdamron/duo-jsx | apache-2.0 | 1,625 | 93 | codeparrot/github-code |
7d41d33af6773c2e6035cfdc50e21105f8d91ccd3f53fe77d70fd925a7740ce5 | /**
* Copyright 2011-2021 Asakusa Framework Team.
*
* 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... | Java | hive-project/core-v2/src/test/java/com/asakusafw/directio/hive/serde/ValueSerdeFactoryTest.java | asakusafw/asakusafw | apache-2.0 | 11,792 | 287 | codeparrot/github-code |
99b8d6a5ec7e9a88963962786b885fe53b146ccfddeca43c3ac2451a4b03fe3e | /**
* Copyright 2015 The AMP HTML 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 require... | JavaScript | extensions/amp-instagram/0.1/amp-instagram.js | aghassemi/amphtml | apache-2.0 | 7,111 | 226 | codeparrot/github-code |
984893a7dabe65fb9a74ec5ead89bd170ee06d0af8819b260ecd3e9ea25e1174 | /**
* Licensing arrangement (from website FAQ):
*
* The software is completely free for any purpose, unless notes at the
* head of the program text indicates otherwise (which is rare). In any
* case, the notes about licensing are never more restrictive than the
* BSD License.
*
*/
package com.novartis.pcs... | Java | src/main/java/com/novartis/pcs/ontology/service/mapper/PorterStemmer.java | Novartis/ontobrowser | apache-2.0 | 13,830 | 541 | codeparrot/github-code |
535cbff8e0999ca169947eb8ca07ec8af7fefbd39f714af0507af24d08bb4392 | <?php
/**
* @copyright Copyright (c) 2014 X.commerce, Inc. (http://www.magentocommerce.com)
*/
namespace Magento\Sales\Model\Grid;
class CollectionUpdater implements \Magento\Framework\View\Layout\Argument\UpdaterInterface
{
/**
* @var \Magento\Framework\Registry
*/
protected $registryManager;
... | PHP | app/code/Magento/Sales/Model/Grid/CollectionUpdater.php | webadvancedservicescom/magento | apache-2.0 | 1,062 | 40 | codeparrot/github-code |
3430126e3f12d0ca604e0166be7fc5f2082ae492cd9d41c485616b27b771c01d | // Copyright (C) 2017 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 t... | GO | gapis/resolve/resource_data.go | Qining/gapid | apache-2.0 | 4,307 | 150 | codeparrot/github-code |
2e68b6a9b1f14af2b7e5ac8d625018901db9a88ba1bf5c20d414d52c23509276 | <style type="text/css">
.placeholder {
display: none;
}
</style>
<div class="contentRight">
<div class="sanpham" style=" height: 100%; margin-top: 0">
<div class="row" style="margin: 5px">
<div class="page-header">
<h2><?php echo lang('form_checkout'); ?></h2>
</div>
<?php if (validation_errors()... | PHP | Code/tranhviet/gocart/themes/default/views/checkout/address_form.php | CaoLP/tranhviet | apache-2.0 | 11,286 | 266 | codeparrot/github-code |
f2729650f9a329e90d30837ed33969e121f9d4996985406ffa23c65cd403ec22 | /*
* Copyright 2014-2021 Sayi
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in... | Java | poi-tl/src/main/java/com/deepoove/poi/xwpf/ParagraphContext.java | Sayi/poi-tl | apache-2.0 | 3,416 | 94 | codeparrot/github-code |
c7a783ded996671da04b4263f3bf09738340b488e4907d51b428eeae4e7441a3 | /*
* 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 | modules/core/src/main/java/org/apache/ignite/internal/portable/PortableThreadLocalMemoryAllocator.java | avinogradovgg/ignite | apache-2.0 | 4,612 | 163 | codeparrot/github-code |
a82d5681e0d875386fa742946f2242816b96d4edbc8e3c2dbe64ab7307eba64a | package BinaryTreeLevelOrderTraversal;
import org.junit.Test;
import java.util.List;
import static org.assertj.core.api.Assertions.assertThat;
public class BinaryTreeLevelOrderTraversalSolutionTest {
private BinaryTreeLevelOrderTraversalSolution solution = new BinaryTreeLevelOrderTraversalSolution();
@Te... | Java | algorithms/src/test/java/BinaryTreeLevelOrderTraversal/BinaryTreeLevelOrderTraversalSolutionTest.java | mengdd/LeetCode | apache-2.0 | 2,013 | 71 | codeparrot/github-code |
b7c7e8ca947133c8397ebf8be15ba1371ebe2d6d9ea2bb15bbd7a27cbcbbe2cd | /*
* Copyright 2006-2011 The Kuali Foundation
*
* Licensed under the Educational Community License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.opensource.org/licenses/ecl2.php
*
* Unless requi... | Java | it/kew/src/test/java/org/kuali/rice/kew/xml/export/GroupXmlExporterTest.java | sbower/kuali-rice-1 | apache-2.0 | 4,009 | 92 | codeparrot/github-code |
39535b86709bd796068a1ff2ec772ac52dab6c3c8514d4496cce33f3adc133c8 | /**
* Copyright 2015 Smart Society Services B.V.
*
* 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
*/
package com.alliander.osgp.core.infra... | Java | osgp-core/src/main/java/com/alliander/osgp/core/infra/jms/protocol/in/ProtocolResponseMessageJmsTemplateFactory.java | wernerb/Platform | apache-2.0 | 2,471 | 62 | codeparrot/github-code |
47495aad0c25637c920a7b289105ea88aeda7e2f225bc25664c9a1a9d1043425 | "use strict";
define(["lib/three.min"], function() {
var Reality = function(sourceCanvas){
// Create a default camera and scene.
var camera = new THREE.Camera();
var scene = new THREE.Scene();
// Create a plane geometry to hold the sourceCanvas texture
var geometry = new T... | JavaScript | arview.js | xsoh/3DKabah | apache-2.0 | 3,251 | 120 | codeparrot/github-code |
9fdfc811599e746b6b26562ce766bb4a9215823b2f106a1a2c33c2125057db4b | # Copyright 2015 The TensorFlow 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 applica... | Python | tensorflow/python/keras/utils/generic_utils.py | alsrgv/tensorflow | apache-2.0 | 19,553 | 600 | codeparrot/github-code |
1e4647d67b20e73a27d475fa6401c27622fbc2f746d3fcbb2f71976c1cff707a | const $ = require('jquery');
const { BagItProfile } = require('../../bagit/bagit_profile');
const { Job } = require('../../core/job');
const { JobRunController } = require('./job_run_controller');
const { PackageOperation } = require('../../core/package_operation');
const path = require('path');
const { StorageService ... | JavaScript | ui/controllers/job_run_controller.test.js | APTrust/easy-store | apache-2.0 | 2,913 | 91 | codeparrot/github-code |
86d2d9577706cad523b05d1e37513dfda9f887e0fb4d49cf23665591c5847a55 | package io.github.dantesun.petclinic.data.velocity;
import org.apache.ibatis.executor.parameter.ParameterHandler;
import org.apache.ibatis.mapping.BoundSql;
import org.apache.ibatis.mapping.MappedStatement;
import org.apache.ibatis.mapping.SqlSource;
import org.apache.ibatis.parsing.XNode;
import org.apache.ibatis.scr... | Java | core-models/src/main/java/io/github/dantesun/petclinic/data/velocity/VelocityDriver.java | dantesun/webapp-boilerplate | apache-2.0 | 1,398 | 38 | codeparrot/github-code |
b085719430bdf624be371ae2c7c23df75f7101c5b474f628b00982ce90b025ad | package core.utils;
import java.util.ArrayList;
import java.util.List;
public class Page<T> {
public static final int PAGE_SIZE = 10;
protected List<T> listObjects = new ArrayList<>();
protected int currentPage;
protected int pageSize = PAGE_SIZE;
/**
* Constructor.
* @param list conta... | Java | core/src/main/java/core/utils/Page.java | gdanguy/training-java-gdanguy | apache-2.0 | 3,276 | 140 | codeparrot/github-code |
42e79e69f1fb8e827c6d5f55d3cbfbcaeac489f4814fe024a7c7e503bd41d2f0 | /*
* Copyright (C) 2015 The Gravitee team (http://gravitee.io)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless requi... | TypeScript | gravitee-am-ui/src/app/domain/settings/scim/scim.component.ts | gravitee-io/graviteeio-access-management | apache-2.0 | 2,097 | 64 | codeparrot/github-code |
55549513ae6aaddaf79edb5242c44e600ccf752e671f61f01f63c9bbd7d4d908 | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="">
<meta name="author" content="">
<title>Software Testing</title>
<link rel="styl... | HTML | Topics.html | dannalaynas/QA-WebSite | apache-2.0 | 7,678 | 175 | codeparrot/github-code |
0a6f6576a5ea28f611e934975b5374f507922265eeebbfd3418ae07375594690 | /*
© 2017 Altavant Technologies Inc.
Web: http://www.altavant.com
*/
namespace Altavant.Fusion.Graphics
{
using System;
using Fusion.Utils;
public enum MatrixOrder : byte
{
Append,
Prepend
}
public class Matrix
{
private float _m11;
private float _m12;
private float _m21;
priv... | C# | Android/Source/Graphics/Matrix.cs | altavant/Fusion | apache-2.0 | 14,617 | 620 | codeparrot/github-code |
213bc2750bb368a7afce841ab7e1021b8aaa6d7f13753ed1599416c47de6f1d0 | /*
* Copyright (c) 2008-2013, Hazelcast, Inc. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required ... | Java | library/hazelcast/2.5/hazelcast-2.5-source/hazelcast/src/test/java/com/hazelcast/core/IMapAsyncTest.java | health-and-care-developer-network/health-and-care-developer-network | apache-2.0 | 3,450 | 103 | codeparrot/github-code |
691fe2a0861c3ac9cd5c7d9de4d6597457720de19e83771cd9ddf3af995e9c1b | /*
* Licensed to ElasticSearch and Shay Banon under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. ElasticSearch licenses this
* file to you under the Apache License, Version 2.0 (the
* "License"); you may... | Java | elasticsearch-client-search/src/main/java/org/elasticsearch/index/query/SpanFirstQueryBuilder.java | jprante/elasticsearch-client | apache-2.0 | 1,877 | 61 | codeparrot/github-code |
1d6cf5c5e2ae189c8b2ef53f76e8b507d8f3e5189888e9c07a0408815444250a | [assembly: Xamarin.Forms.Platform.WPF.ExportRenderer(typeof(Xamarin.Forms.Entry), typeof(Xamarin.Forms.Platform.WPF.Controls.EntryRenderer))]
namespace Xamarin.Forms.Platform.WPF.Controls
{
using System.Windows;
using System.Windows.Controls;
public partial class EntryRenderer : Xamarin.Forms.Platform.WPF... | C# | src/Xamarin.Forms.Platforms/Xamarin.Forms.Platform.WPF/Platform.WPF/Rendereres/EntryRenderer.xaml.cs | jvlppm/xamarin-forms-wpf | apache-2.0 | 2,630 | 89 | codeparrot/github-code |
9172c3909b8779302d57549c6a83ca9fc232a8994d7bfa984a56f35d65a7731d | /**
* @license
* Copyright The Closure Library Authors.
* SPDX-License-Identifier: Apache-2.0
*/
/**
* @fileoverview Displays and edits the value of a cookie.
* Intended only for debugging.
*/
goog.provide('goog.ui.CookieEditor');
goog.require('goog.asserts');
goog.require('goog.dom');
goog.require('goog.dom.T... | JavaScript | closure/goog/ui/cookieeditor.js | google/closure-library | apache-2.0 | 4,463 | 183 | codeparrot/github-code |
1d9e780c5f400fa47958d11719ecb5452dcd106274e0e55383b2733565a57457 | #!/usr/bin/env perl
use warnings;
use strict;
use POSIX;
# convert a set of numbers to a distribution
my $bin = shift @ARGV;
my $col = shift @ARGV;
$bin or die "usage: $0 <bin size> <column number (0 based)> <table (on STDIN)>\n";
my $delim = "\t";
my $n=0;
my $sum=0;
my $min=1000000000;
my $max = -999999999;
my %dist... | Perl | set2dist.pl | warelab/misc | apache-2.0 | 2,168 | 109 | codeparrot/github-code |
b7e18dfb6b62fdc1fee99f7cb11abee7fd12d721431732cbfbcdcdc3d7d4a55c | /*
Copyright 2014 Cloudbase Solutions Srl
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, sof... | C | Driver/Protocol/Tcp.c | cloudbase/openvswitch-hyperv-kernel | apache-2.0 | 4,804 | 145 | codeparrot/github-code |
2fde60b0c0691d82e3c13252361ff9cdfee39b176dd24119b3f2036278a835d8 | /*
* Copyright 2017 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 app... | Java | kie-wb-common-screens/kie-wb-common-library/kie-wb-common-library-client/src/test/java/org/kie/workbench/common/screens/library/client/screens/assets/AssetsScreenTest.java | etirelli/kie-wb-common | apache-2.0 | 5,601 | 154 | codeparrot/github-code |
be25b512700364bbb821269cde7f71e1025e6a03c71f3d21e7a7b21942b8185a | /*
* Copyright 2010 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 | src/com/google/android/apps/iosched/provider/ScheduleProvider.java | ghchinoy/wicsa2011 | apache-2.0 | 33,646 | 731 | codeparrot/github-code |
10be2792b5fecfde0f601ef072d992830bcee36ddb72176db07f3edb80ddd916 | /*
* 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-dataexchange/src/main/java/com/amazonaws/services/dataexchange/model/DeleteEventActionRequest.java | aws/aws-sdk-java | apache-2.0 | 3,714 | 125 | codeparrot/github-code |
51cc8cc4d8af488a4b32e37f9e2f3719a7e3bc9329a775985997108ba7e3e90a | using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace com.huawei.ebg.esdk.ucsdk.client.control
{
public partial class DialCall : Button
{
public DialCall()
... | C# | com.huawei.ebg.esdk.ucsdk.client.control/Client Control/DialCall.cs | eSDK/esdk_uc_control_net | apache-2.0 | 1,135 | 54 | codeparrot/github-code |
cebad1613f026f8e2472d62c9c333022789b8af47cfdfadecb78fe70ad1bd5cf | /*
* =============================================================================
*
* Copyright (c) 2011-2016, The THYMELEAF team (http://www.thymeleaf.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 ... | Java | src/test/java/org/thymeleaf/dialect/dialectwrapping/ElementModelProcessor.java | thymeleaf/thymeleaf-tests | apache-2.0 | 1,538 | 40 | codeparrot/github-code |
20fcf9c6ed66a5d0e67fa7186a6bd7f10900bfb145bcb4756b1daf72265d7ad8 | /*
* 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-lightsail/src/main/java/com/amazonaws/services/lightsail/model/transform/DetachStaticIpResultJsonUnmarshaller.java | jentfoo/aws-sdk-java | apache-2.0 | 2,855 | 75 | codeparrot/github-code |
df6b04306bdb9277bc1bb432b3659e6c3502ac9d0be47a2ac91bf38793b6a488 | package io.teknek.nibiru.transport.rpc;
import io.teknek.nibiru.transport.BaseResponse;
public class BlockingRpcResponse<T> implements BaseResponse {
private String exception;
private T rpcResult;
public BlockingRpcResponse(){
}
public String getException() {
return exception;
}
public voi... | Java | src/main/java/io/teknek/nibiru/transport/rpc/BlockingRpcResponse.java | edwardcapriolo/nibiru | apache-2.0 | 530 | 31 | codeparrot/github-code |
b6268e52d07068fd17046c4c3aa5608b981f18b8b49934abda4275b38c91b3bf | /*
Copyright 2021 The Kubeflow Authors.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | GO | hack/swagger/main.go | kubeflow/katib | apache-2.0 | 2,606 | 87 | codeparrot/github-code |
0b626116d2de5127c282fb11f6b0927b16fc4d7f012e147216f1b32a6f25ec62 | /*
* 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-config/src/main/java/com/amazonaws/services/config/model/transform/DescribeConfigRulesRequestMarshaller.java | aws/aws-sdk-java | apache-2.0 | 2,415 | 60 | codeparrot/github-code |
206bc93fba6b2029db96c0324de3abcb6045d50feb0b9340bf4cdc622d5f41fb | /*
* 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-iotevents/src/main/java/com/amazonaws/services/iotevents/model/GetDetectorModelAnalysisResultsRequest.java | aws/aws-sdk-java | apache-2.0 | 7,053 | 231 | codeparrot/github-code |
de70c0e3fbb5f0702d701aa5aecd8cace2b20e56316ef290c25024bf94a0a03e | /*
Copyright 2014 The Kubernetes Authors.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, ... | GO | pkg/kubectl/cmd/annotate.go | mdshuai/kubernetes | apache-2.0 | 13,212 | 384 | codeparrot/github-code |
c00cbe83355055aadfb91103cde6c3df705679311f25f939a4eb0c6301985d68 | /**
* AET
*
* Copyright (C) 2013 Cognifide Limited
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
* in compliance with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law... | Java | api/jobs-api/src/main/java/org/browsermob/core/json/ISO8601DateFormatter.java | Cognifide/AET | apache-2.0 | 2,315 | 65 | codeparrot/github-code |
787211d4e8194b2146a0ed04570522e687df7b573d5cb49cd5d267c2e07a7f64 | package org.apache.lucene.index;
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Versio... | Java | lucene/core/src/java/org/apache/lucene/index/TermVectorsConsumerPerField.java | fogbeam/Heceta_solr | apache-2.0 | 10,979 | 304 | codeparrot/github-code |
c4b8a6222f6b8b8050db1fe27b0780b94b645b5b2a8d6671f619496cb7fd2728 | /*
* Copyright 2011 Ning, Inc.
*
* Ning licenses this file to you 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/main/java/com/mogwee/executors/NamedThreadFactory.java | twilliamson/mogwee-executors | apache-2.0 | 1,331 | 46 | codeparrot/github-code |
3e2d503ab05acfd7e1145a7207b3fa5e0ec391cfb2a9c96e28f5118dd2c9ab6e | #
# farmwork/forms.py
#
from django import forms
from django.utils.text import slugify
from .models import Farmwork
# ========================================================
# FARMWORK FORM
# ========================================================
class FarmworkForm(forms.ModelForm):
def __init__(self, *args... | Python | backend/apps/farmwork/forms.py | ianmilliken/rwf | apache-2.0 | 1,542 | 60 | codeparrot/github-code |
b0fc0859a78264cce3d853bb73796de675a9e6146210f7e5c961e9975410709f | /*
* Copyright (C) 2015 The Gravitee team (http://gravitee.io)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless requi... | TypeScript | src/management/api/creation/steps/api-creation-step1.component.ts | gravitee-io/gravitee-management-webui | apache-2.0 | 2,038 | 57 | codeparrot/github-code |
fbaccb93071afbcec5ad6ad6f5d7dc6a1985fbbc146e01eb15e79aa7bde4371b | /*****************************************************************************
* Copyright (C) jparsec.org *
* ------------------------------------------------------------------------- *
* Licensed under the Apache License, Version 2.0 (the "License"); *
* yo... | Java | jparsec-examples/src/main/java/org/jparsec/examples/sql/parser/ExpressionParser.java | jparsec/jparsec | apache-2.0 | 9,523 | 230 | codeparrot/github-code |
880f0ef8d4a6b00b4d80714d8cfa2dd9357267f18ec4e83434bf0a950a119653 | /*
* Copyright 2004-2008 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 | grails-web/src/main/groovy/org/codehaus/groovy/grails/web/json/PrettyPrintJSONWriter.java | jeffbrown/grailsnolib | apache-2.0 | 4,112 | 164 | codeparrot/github-code |
76a50d54f96ea401396eee97bc0834f199984ff744f198b4c4d3cb13094d1a91 | // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
#nullable enable
using System;
using System.Collections.Generic;
using System.Collections.Immutable;
using System.... | C# | src/EditorFeatures/CSharpTest/Diagnostics/DiagnosticAnalyzerDriver/DiagnosticAnalyzerDriverTests.cs | davkean/roslyn | apache-2.0 | 34,708 | 697 | codeparrot/github-code |
a9364845adb8a91571b7d547f447f05a30cc5ef8c49ff8cf76701609e0e07c75 | // bslmf_invokeresult.06.t.cpp -*-C++-*-
// ============================================================================
// INCLUDE STANDARD TEST MACHINERY FROM CASE 0
// ----------------------------------------------------------------------------
#define BSLMF... | C++ | groups/bsl/bslmf/bslmf_invokeresult.06.t.cpp | bloomberg/bde | apache-2.0 | 15,358 | 382 | codeparrot/github-code |
3191aec2018d5586d2bd22cddbca4cc7f76aeac6326e7cd9c11f6c4e88391520 | /**
* Test for LOOMIA TILE Token
*
* @author Pactum IO <dev@pactum.io>
*/
import {getEvents, BigNumber} from './helpers/tools';
import expectThrow from './helpers/expectThrow';
const loomiaToken = artifacts.require('./TileToken');
const should = require('chai') // eslint-disable-line
.use(require('chai-as-pr... | JavaScript | tiletoken/test/contracts/0_TileToken.js | LOOMIA/loomia | apache-2.0 | 26,410 | 527 | codeparrot/github-code |
d4462ef87b6ec5ea3ce051895254d3eb5250847c51ca42640111feae62dfcd92 | /**
*/
package org.tud.inf.st.mbt.ocm.impl;
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.EObject;
import org.eclipse.emf.ecore.EPackage;
import org.eclipse.emf.ecore.impl.EFactoryImpl;
import org.eclipse.emf.ecore.plugin.EcorePlugin;
import org.tud.inf.st.mbt.ocm.*;
/**
* <!-- begin-user-doc... | Java | MATE/org.tud.inf.st.mbt.emf/src-gen/org/tud/inf/st/mbt/ocm/impl/OcmFactoryImpl.java | paetti1988/qmate | apache-2.0 | 3,466 | 140 | codeparrot/github-code |
0a905fd9152ad390b6d43fe2a385259a9b81d3db4b9d0af3761d5accaab3b19f | /**
* Copyright (c) 2013-2019 Contributors to the Eclipse Foundation
*
* <p> See the NOTICE file distributed with this work for additional information regarding copyright
* ownership. All rights reserved. This program and the accompanying materials are made available
* under the terms of the Apache License, Versio... | Java | core/store/src/main/java/org/locationtech/geowave/core/store/util/RewritingMergingEntryIterator.java | spohnan/geowave | apache-2.0 | 2,157 | 55 | codeparrot/github-code |
70444629974e5d98e7db1197719e28a7c63edd7a01cfc889290ef4faa7c579df | /*
* Copyright (C) 2019 Contentful 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/com/contentful/java/cma/ServiceContentTags.java | contentful/contentful-management.java | apache-2.0 | 2,309 | 70 | codeparrot/github-code |
172370b8d0a072b6daa15dc00da7a232979d284f70470451aa51b96b8ba57921 | package main
import (
"net/url"
"time"
"github.com/codegangsta/cli"
"github.com/michaeltrobinson/cadvisor-integration/scraper"
"github.com/signalfx/metricproxy/protocol/signalfx"
log "github.com/Sirupsen/logrus"
)
var (
sfxAPIToken string
sfxIngestURL string
clusterName string
sendInterva... | GO | cmd/signalfx-cadvisord/run.go | michaeltrobinson/cadvisor-integration | apache-2.0 | 3,432 | 138 | codeparrot/github-code |
b2a0f35e86e4fbb13e3594f7b112a782b8bc69808c751712908018d8f5807a21 | package org.lionsoul.jcseg.util;
import java.io.Serializable;
/**
* string buffer class
*
* @author chenxin<chenxin619315@gmail.com>
*/
public class IStringBuffer implements Serializable
{
private static final long serialVersionUID = 1L;
/**
* buffer char array.
*/
private char buff[];
... | Java | jcseg-core/src/main/java/org/lionsoul/jcseg/util/IStringBuffer.java | lionsoul2014/jcseg | apache-2.0 | 7,966 | 360 | codeparrot/github-code |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.