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
e35a9fa89ab836610679d2caecb6cf9fae1e4a51f2dc20326373a3302ff03e36
/* * Copyright 2014 CyberVision, 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 agr...
Java
server/common/dao/src/main/java/org/kaaproject/kaa/server/common/dao/model/sql/Topic.java
vzhukovskyi/kaa
apache-2.0
8,946
276
codeparrot/github-code
9d5ac502db9c43e41ea531b4a58a27a747718db9f426f886a3b1cb90ac1e693f
package com.marverenic.music.player.transaction; import org.junit.Before; import org.junit.Test; public class IncomingTransactionTest { // chosen by fair dice roll. guaranteed to be random. private static final String TRANS_ID = "4"; private static final int TRANS_SIZE = 20; private IncomingTransact...
Java
app/src/test/java/com/marverenic/music/player/transaction/IncomingTransactionTest.java
marverenic/Jockey
apache-2.0
1,654
52
codeparrot/github-code
b646d1c4c36855dbb20ac72df80ae7067c362dcb76b518f02baeb6d70519ca9a
import sys from _pydevd_bundle import pydevd_xml from os.path import basename import traceback try: from urllib import quote, quote_plus, unquote, unquote_plus except: from urllib.parse import quote, quote_plus, unquote, unquote_plus #@Reimport @UnresolvedImport #==============================================...
Python
python/helpers/pydev/_pydevd_bundle/pydevd_referrers.py
da1z/intellij-community
apache-2.0
8,753
240
codeparrot/github-code
3106586ba072b7070825a1eebcc1f9db2419af3620222da1d0462ea34adc46e8
using NGUI; using UnityEngine; [AddComponentMenu("NGUI/Examples/Item Attachment Point")] // ReSharper disable once CheckNamespace public class InvAttachmentPoint : MonoBehaviour { private GameObject mChild; private GameObject mPrefab; public InvBaseItem.Slot slot; public GameObject Attach(GameObject p...
C#
Shelter/NGUI/InvAttachmentPoint.cs
ITALIA195/Shelter
apache-2.0
1,078
36
codeparrot/github-code
a5f70f52485eddea493d783ea702ebd3bf5847c8c6bea237e80b1092c7a16be2
/** @file dlgRegisterMap.cpp @author Lime Microsystems @brief dialog for displaying registers data */ #include "dlgRegisterMap.h" #include "RegistersMap.h" #include "LMS7002_MainControl.h" #include "ConnectionManager.h" #include <iostream> using namespace std; //(*InternalHeaders(dlgRegisterMap) #include <wx/sizer....
C++
LMS7002M/lms7suite/controlPanelGUI/dlgRegisterMap.cpp
myriadrf/lms-suite
apache-2.0
7,579
191
codeparrot/github-code
aa10289b4fc904397d9ceb4a4256a6929b91f7d5cf0b38b9e5eab9c9d2a38117
// Copyright 2016 Google Inc. All Rights Reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicabl...
C#
GoogleCloudExtension/GoogleCloudExtension/CloudExplorer/CloudExplorerViewModel.cs
ivannaranjo/google-cloud-visualstudio
apache-2.0
15,889
442
codeparrot/github-code
84efaf7f540a03046d028fc17576884e2f553417c6fd602b5a3798bad483b633
/** * Exercise 25 */ package com.ciaoshen.thinkinjava.chapter14; import java.util.*; import java.lang.reflect.*; class TestClass{ public void publicMethod(){System.out.println("I am public method!");} void packageAccessMethod(){System.out.println("I am package access method!");} protected void protected...
Java
chapter14/TestSetAccessibility.java
helloShen/thinkinginjava
apache-2.0
881
30
codeparrot/github-code
0ae60135d108dc359f1da3261923eb0dfd2572f7edcc26f315ca20d66040dc05
import { mock, IQService, IRootScopeService, IScope } from 'angular'; import { AWS_SERVER_GROUP_TRANSFORMER, AwsServerGroupTransformer } from './serverGroup.transformer'; import { IScalingPolicyAlarmView, IAmazonServerGroup, IStepAdjustment } from '../domain'; import { VPC_READ_SERVICE, VpcReader } from '../vpc/vpc.re...
TypeScript
app/scripts/modules/amazon/src/serverGroup/serverGroup.transformer.spec.ts
kenzanlabs/deck
apache-2.0
6,652
185
codeparrot/github-code
fbeb82ac1696b0937740ea6e34daddae2bd429ea74ac709b7b98539449fbbde2
# Copyright 2019 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, ...
Python
research/gam/gam/trainer/trainer_classification_gcn.py
tensorflow/neural-structured-learning
apache-2.0
38,149
886
codeparrot/github-code
497281e5ffbfc18dee224c5c037ecdbe4259784cf2f5ea320836c41c2e677676
package oauth2 import ( "time" "context" "github.com/ory/fosite" "github.com/pkg/errors" ) type RefreshTokenGrantHandler struct { AccessTokenStrategy AccessTokenStrategy RefreshTokenStrategy RefreshTokenStrategy // RefreshTokenGrantStorage is used to persist session data across requests. RefreshTokenGrant...
GO
handler/oauth2/flow_refresh.go
spotxchange/fosite
apache-2.0
4,518
113
codeparrot/github-code
2ef6dbc2c8ff3aeef60bb20a43c4ebe6649e8ab28e00ca4d582f9a4dfba725c4
/* Copyright 2018 - 2021 The Matrix.org Foundation C.I.C. 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...
TypeScript
src/components/views/dialogs/RoomUpgradeDialog.tsx
matrix-org/matrix-react-sdk
apache-2.0
4,077
112
codeparrot/github-code
63f7d521772a74df81affde4bbc973c7152098282d73d91513c7b907bb74bee4
package net.zdendukmonarezio.pathfinder.presentation.game; import android.content.Context; import android.graphics.Point; import android.os.Build; import android.support.annotation.RequiresApi; import android.util.AttributeSet; import android.view.Display; import android.view.WindowManager; import android.widget.GridL...
Java
app/src/main/java/net/zdendukmonarezio/pathfinder/presentation/game/GameBoardLayout.java
monarezio/PathFinder
apache-2.0
2,026
56
codeparrot/github-code
365b0e65edb4ff50558760dbf625096d47a61934ad38b930a4b6f750c22abb9c
/* * 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-ec2/src/main/java/com/amazonaws/services/ec2/model/FleetActivityStatus.java
aws/aws-sdk-java
apache-2.0
1,899
63
codeparrot/github-code
16f7906e42b97bf06a0b77745b86e1d8a38f3b04ec9dc05679b7931ed03be83e
<link rel="stylesheet" href="assets/js/jquery-ui/css/no-theme/jquery-ui-1.10.3.custom.min.css"> <link rel="stylesheet" href="assets/css/font-icons/entypo/css/entypo.css"> <link rel="stylesheet" href="http://fonts.googleapis.com/css?family=Noto+Sans:400,700,400italic"> <link rel="stylesheet" href="assets/css/bootstrap.c...
PHP
application/views/backend/includes_top.php
yahongie/Modern-Academy-ERB-System
apache-2.0
3,229
66
codeparrot/github-code
05dd95901db1dc4239e5620c4d0edc0a0c9b035d9ef33a70ac48aed790964fa8
/** * $RCSfile$ * $Revision: $ * $Date: $ * * Copyright (C) 2005-2008 Jive Software. 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....
Java
src/java/org/jivesoftware/util/CertificateManager.java
trimnguye/JavaChatServer
apache-2.0
50,538
1,085
codeparrot/github-code
d07ad9a67831cd632679397e3fd407ce5955200da7272c5c60c74c2fa103a19a
package org.apache.helix.common.caches; /* * 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 Lice...
Java
helix-core/src/main/java/org/apache/helix/common/caches/BasicClusterDataCache.java
lei-xia/helix
apache-2.0
8,430
252
codeparrot/github-code
dd69f1c2ffa1afe797b352279f5546b0e5bd3ad4a500a979b0626ba788ddb478
package org.synyx.minos.core.security; import java.util.ArrayList; import java.util.Collection; import java.util.List; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; import org.springframework.security.access.AccessDecisionManager; import org.springframework.security.access.Acces...
Java
modules/core/src/main/java/org/synyx/minos/core/security/SpringSecurityAuthenticationService.java
synyx/minos
apache-2.0
5,098
156
codeparrot/github-code
bf0c98ba94302476f13c23f39aa3fff84ad099ee9fd6bc051b194a7bb7713f8f
<?php /** * SugarCLI * * PHP Version 5.3 -> 5.4 * SugarCRM Versions 6.5 - 7.6 * * @author Rémi Sauvat * @author Emmanuel Dyan * @copyright 2005-2015 iNet Process * * @package inetprocess/sugarcrm * * @license Apache License 2.0 * * @link http://www.inetprocess.com */ namespace SugarCli\Console\Command\I...
PHP
src/Console/Command/Inventory/AbstractInventoryCommand.php
kenbrill/sugarcli-plus
apache-2.0
2,020
71
codeparrot/github-code
b32d7e3383429684b91339bd3114501d22ae2914f61a4d2d44775eb166818419
package ru.job4j.shape; import org.junit.Test; import static org.hamcrest.core.Is.is; import static org.junit.Assert.assertThat; /** * Created by Comp on 22.06.2017. */ public class ShapeTest { @Test public void whenPaintNewFigureThenHasOtherFigures() { Shape figure = new Triangle(); Paint...
Java
chapter_002/src/test/java/ru/job4j/shape/ShapeTest.java
kirillkrohmal/krohmal
apache-2.0
947
31
codeparrot/github-code
5375f2a0ee65bf01fb55b13fb7c34a2630d61bcb3318f3f7b811e5edba69dbf9
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); class User_verifyLogin extends CI_Controller { function __construct() { parent::__construct(); $this->load->model('m_user_login','login',TRUE); } function index() { $this->form_validation->set_rules('usern...
PHP
application/controllers/user_verifylogin.php
dharuwicak/ipsit
apache-2.0
1,780
45
codeparrot/github-code
efeab50bd56c66def54a7cce64e93426be74209d773d571d3d1814c589454b3e
/* * 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-config/src/main/java/com/amazonaws/services/config/model/ComplianceByConfigRule.java
jentfoo/aws-sdk-java
apache-2.0
5,920
191
codeparrot/github-code
2c827cc21dcaddf9761bb5a9825bde55606d524e45d019ade166378457306ab2
namespace Stripe { using Newtonsoft.Json; public class SourceCard : StripeEntity<SourceCard> { [JsonProperty("address_line1_check")] public string AddressLine1Check { get; set; } [JsonProperty("address_zip_check")] public string AddressZipCheck { get; set; } [JsonP...
C#
src/Stripe.net/Entities/Sources/SourceCard.cs
richardlawley/stripe.net
apache-2.0
1,304
50
codeparrot/github-code
952d774ffdc221c0bf95751c5857e98e83143724490a1cea8d26836b244d3353
/* * Copyright (C) 2011 The Guava 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 ...
Java
src/com/landawn/abacus/hash/HashingOutputStream.java
landawn/AbacusUtil
apache-2.0
2,708
77
codeparrot/github-code
412bc0c8ec4700afb35fd34c1047ef98f99ae37675bf675cdf745076b28b29d8
package com.novoda.merlin.service; import android.app.Service; import android.content.ComponentName; import android.content.Intent; import android.content.pm.PackageManager; import android.os.Binder; import android.os.IBinder; import com.novoda.merlin.MerlinsBeard; import com.novoda.merlin.NetworkStatus; import com.n...
Java
core/src/main/java/com/novoda/merlin/service/MerlinService.java
xiaoyanit/merlin
apache-2.0
3,964
128
codeparrot/github-code
4f26d028e74d48a912a4f5a06a598c62ba34dbbca6c8227be4d551d8277b2997
/******************************************************************************* * Copyright 2014 United States Government as represented by the * Administrator of the National Aeronautics and Space Administration. * All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you m...
Java
gov.nasa.ensemble.emf/src-test/gov/nasa/ensemble/emf/patch/TestPatchWithAllFeatureTypesSerializedWithoutID.java
nasa/OpenSPIFe
apache-2.0
1,335
36
codeparrot/github-code
3d49f0d38b34dde7a6676381b5dabd11e1d7b88bb31e4bd81a92fddd59ffbfea
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package ht.edu.fds.mbds.android.bibliotheque.bean; import ht.edu.fds.mbds.android.bibliotheque.Users; import javax.ejb.Stateless; import javax.persistence.EntityManager; import javax.persistence.PersistenceContext; /**...
Java
src/java/ht/edu/fds/mbds/android/bibliotheque/bean/UsersFacade.java
eamosse/mbds_haiti_android_nfc
apache-2.0
653
31
codeparrot/github-code
7b08ad50ef7e4746d42aca71d94b4c4dbe4d22e0bd62ea00b6cc21b3fb88ea4d
/* * Copyright [2007] [University Corporation for Advanced Internet Development, 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...
Java
src/test/java/org/opensaml/xml/signature/validator/RetrievalMethodSchemaValidatorTest.java
duck1123/java-xmltooling
apache-2.0
1,868
54
codeparrot/github-code
9aee02204db38f3e896b4c49c6a2f0424f3022cdce183368888facfc8f01560a
/* * Copyright 2015 Stephan Rehfeld * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed ...
Scala
src/test/scala/test/scaladelray/light/DirectionalLightSpec.scala
stephan-rehfeld/scaladelray
apache-2.0
3,159
91
codeparrot/github-code
287b07be246964ff363cebfb97a7bd8f990b58f150448b68ce73197634cf6a96
using UnityEngine; using System.Collections; using System.Collections.Generic; using System.Linq; public class PlacementManager : MonoBehaviour { public static float gridSize = 0.5f; private static List<Vector2> occupied; public GameObject[] towers; private Vector3 pos; private GameObject toMove...
C#
Assets/PlacementManager.cs
githuis/Flower-Tower-Defense
apache-2.0
2,226
89
codeparrot/github-code
94659eba774c4df387b448e2d7bfdc02abe05a3cc6ef064107cdabc5aac6c101
<?php namespace TwoBros\Outbound; /** * Copyright 2013 CPI Group, 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...
PHP
src/Outbound/AmazonFulfillmentOrderCreator.php
2brosdevelopment/php-amazon-mws
apache-2.0
18,226
437
codeparrot/github-code
3b16a8315c279b0004a7bb6ed4697c1681c68380e21ca638ff0e152cd6622792
/* * Copyright 2007 Steve Chaloner * * 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 ag...
Java
src/java/net/stevechaloner/intellijad/environment/EnvironmentValidator.java
schaloner/Intellijad
apache-2.0
6,194
149
codeparrot/github-code
7e67802a29dff3652b0ec7c9e85eb4c3b412e94410eabfd51c8e7fc789b83c17
/* * Copyright 2022 Red Hat * * 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 ...
Java
processors/src/main/java/org/jboss/hal/processor/TypeSimplifier.java
michpetrov/hal.next
apache-2.0
2,430
73
codeparrot/github-code
0c6d3f031808f026981fe2e99834112b514089e0afbccdfbbb89da10b7d9225f
// Copyright 2018 The Outline 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 agre...
TypeScript
src/server_manager/model/server.ts
Jigsaw-Code/outline-server
apache-2.0
6,086
174
codeparrot/github-code
491da0eb17a15cd9d6342490f4edde76e9e776ed1090f7c8f89001d223deb564
import React, { Component } from 'react'; import { observer, inject } from 'mobx-react'; import type { InjectedProps } from '../../types/injectedPropsType'; import AssetSettingsDialog from '../../components/assets/AssetSettingsDialog'; import type { AssetToken } from '../../api/assets/types'; type Props = InjectedProp...
TypeScript
source/renderer/app/containers/assets/AssetSettingsDialogContainer.tsx
input-output-hk/daedalus
apache-2.0
1,293
46
codeparrot/github-code
30b13ecc48bf510fc340dfcc033669d3ba0c17e9ca89a7e35de4b20eb1f1d8f2
package com.wemote.scorpio.modules.test.selenium; import org.apache.commons.io.FileUtils; import org.openqa.selenium.*; import org.openqa.selenium.support.ui.ExpectedCondition; import org.openqa.selenium.support.ui.ExpectedConditions; import org.openqa.selenium.support.ui.Select; import org.openqa.selenium.support.ui....
Java
scorpio-test/src/main/java/com/wemote/scorpio/modules/test/selenium/Selenium2.java
wemote/scorpio
apache-2.0
8,508
363
codeparrot/github-code
9377b5663eec686d0cc51f592439378e68bd7a9943505a00a8ae7d0d83eb9163
/* * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed u...
Java
pax-web-itest/pax-web-itest-container/pax-web-itest-container-jetty/src/test/java/org/ops4j/pax/web/itest/jetty/WhiteboardR7JaxRsIntegrationTest.java
lostiniceland/org.ops4j.pax.web
apache-2.0
2,921
62
codeparrot/github-code
3ce8f73d39fd5f70b9328e283277037712f44b7773f8cce97221a457c566aa07
/** * */ package com.netflix.simianarmy.manic; import java.io.IOException; import java.util.ArrayList; import java.util.Collections; import java.util.HashMap; import java.util.HashSet; import java.util.List; import java.util.Map; import java.util.Set; import java.util.UUID; import java.util.concurrent.Executors; im...
Java
src/main/java/com/netflix/simianarmy/manic/InstanceMonitor.java
DaveXiong/manic-monkey
apache-2.0
4,803
168
codeparrot/github-code
9d71a03e2d7c8314df4be2a7efb9adb9352933eb27bea79cdfdc98355523e76e
/* * Copyright 2013-2019 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-client/src/test/java/org/cloudfoundry/client/v2/securitygroups/SetSecurityGroupStagingDefaultRequestTest.java
alexander071/cf-java-client
apache-2.0
1,135
37
codeparrot/github-code
eac32b3289fac2e0a87475fb409ff98232d201370f7190e16d67b26976f281ed
// (C) Copyright 2015 Martin Dougiamas // // 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...
JavaScript
www/core/components/login/controllers/credentials.js
sulzer/moodlemobile2
apache-2.0
8,252
216
codeparrot/github-code
b193fec3beb6c530b9f984697f2b6fbb816d3e6b6cd5d003b047396bad75302b
package cmd import ( "strconv" "github.com/spf13/cobra" "github.com/filebrowser/filebrowser/v2/settings" "github.com/filebrowser/filebrowser/v2/users" ) func init() { rulesCmd.AddCommand(rulesRmCommand) rulesRmCommand.Flags().Uint("index", 0, "index of rule to remove") _ = rulesRmCommand.MarkFlagRequired("in...
GO
cmd/rule_rm.go
hacdias/caddy-hugo
apache-2.0
1,643
67
codeparrot/github-code
7b6a90bccde9410b54c7360f1d333fc854d1cd8d45388acff19bce69292388b2
using System; using System.Collections.Generic; using System.Collections.Immutable; using System.Linq; using Akka.Actor; using Akka.Configuration; using Akka.Remote.TestKit; using FluentAssertions; namespace Akka.Cluster.Tests.MultiNode { public class RestartFirstSeedNodeSpecConfig : MultiNodeConfig { ...
C#
src/core/Akka.Cluster.Tests.MultiNode/RestartFirstSeedNodeSpec.cs
rogeralsing/akka.net
apache-2.0
6,841
185
codeparrot/github-code
781757a00ca9de2f5241f5747bd8ac326b9498d7b1c1a3232e3782fb5211bd0b
/* Copyright 2017 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 applicable law or a...
C++
tensorflow/core/grappler/optimizers/layout_optimizer.cc
Xeralux/tensorflow
apache-2.0
76,403
2,156
codeparrot/github-code
ea40e8d68d2319ce87f26a635a4c6a4237c5401c406665c8e8716bace2c0f2f2
/* * 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
exec/vector/src/main/java/org/apache/drill/exec/vector/accessor/reader/AbstractArrayReader.java
KulykRoman/drill
apache-2.0
5,057
189
codeparrot/github-code
29020fca867d3b0987779ab43172cdb06d9d12309a33a9253c967c87f6922335
#local from message import MessageHeader from base import Struct, StructArray #standard from datetime import datetime from ctypes import LittleEndianStructure, Union, c_uint32 from six import iteritems, raise_from import inspect import config import sys class Error(Exception): pass class InvalidTimestampError(Error):...
Python
estreamer/eventrequest.py
TeePaps/estreamer
apache-2.0
5,410
169
codeparrot/github-code
264dd12b372aeb85b7b9d1c00a41d0708fe84fbfb8f488302c89676923debb82
/* * Copyright (C) 2017 The Dagger 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 ag...
Java
java/dagger/internal/codegen/base/Scopes.java
dushmis/dagger
apache-2.0
3,357
86
codeparrot/github-code
3593412030158636a703cb0f1980ea54b8b365fb637cb2ae22b9d3a90040c34d
#include <stdio.h> #include <stdlib.h> #include <time.h> #include "menu.h" #define FONTSIZE 10 int PrintMenuOS() { int i, j; char data_M[FONTSIZE][FONTSIZE] = { " ", " * * ", " *** *** ", " * * * * ", " * * * * ", " * ** * ", " * ...
C
test.c
descent/menu
apache-2.0
3,444
163
codeparrot/github-code
73f65b991f80eac4c771b3f6be10fcc7e75f521a6a35125f7805ff8db2772a21
# vim: tabstop=4 shiftwidth=4 softtabstop=4 # Copyright 2013 SolidFire 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/l...
Python
cinder/volume/drivers/solidfire.py
rickerc/cinder_audit
apache-2.0
29,104
764
codeparrot/github-code
30aa9e78fc9b97c109e8ab81ac4fb5cd934f64556dac77089644d338670c8fb3
<!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="Personal website of Kaushik Raj"> <title>Kaushik Raj</title> <link rel="...
HTML
page2/index.html
kaushikraj/kaushikraj.github.io
apache-2.0
6,562
213
codeparrot/github-code
e9d1ee7fbd6066d6ec1a7fe864f1ecdc4a67643404ed088fcdeb3d707cdf0651
/* * 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
flink-table/flink-table-common/src/main/java/org/apache/flink/table/types/inference/strategies/FamilyArgumentTypeStrategy.java
GJL/flink
apache-2.0
5,378
139
codeparrot/github-code
00a4da32d9774be4734566f1be5de7b8c22b0f35f01784adbb3e7ed3d94bf9bc
/* * Copyright 2011-2018 GatlingCorp (http://gatling.io) * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applic...
Scala
gatling-core/src/main/scala/io/gatling/core/check/extractor/regex/RegexExtractorFactory.scala
wiacekm/gatling
apache-2.0
2,305
66
codeparrot/github-code
e889ad9bae8b3889d4920afec418cf0e82d4979e33b64410a6c81da330ed3d93
package com.comsysto.springdata.workshop; import com.mongodb.Mongo; import org.junit.Test; import org.springframework.beans.factory.annotation.Value; import org.springframework.data.mongodb.core.MongoTemplate; import org.springframework.test.context.ActiveProfiles; import org.springframework.test.context.ContextConfig...
Java
workshop/src/test/java/com/comsysto/springdata/workshop/Step1_MongoDBConnectionTest.java
comsysto/mongodb-onlineshop
apache-2.0
1,525
43
codeparrot/github-code
5869cf2c91bfcaf9a8ce49d7cd42fb3ff4b67c50fcd9a6e966daae53a56752c6
package io.plasmap.pamphlet import io.plasmap.util.Helpers.JSOptionBuilder import scala.scalajs.js /** * Created by mark on 26.02.15. */ trait Marker extends ILayer { def addTo(map:LeafletMap):Circle = js.native def getLatLng():LeafletLatLng = js.native def setLatLng(latlng:LeafletLatLng):Circle = js.native ...
Scala
src/main/scala/io/plasmap/pamphlet/Marker.scala
plasmap/pamphlet
apache-2.0
1,652
44
codeparrot/github-code
9fd0c2c3655376df858061f34e6714677347a7906b744cc7a9947c6861927f1e
/* * Copyright 2012 Twitter 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 agree...
Scala
zipkin-collector-service/src/test/scala/com/twitter/zipkin/config/ConfigSpec.scala
zerdliu/zipkin
apache-2.0
1,411
46
codeparrot/github-code
66c987de0537674b27cb01992f17ba8837b6250704ed1ea4a313b6008248ac0f
/******************************************************************************* * Copyright 2010 Dieselpoint, 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:...
Java
src/main/java/org/openpipeline/pipeline/stage/SimpleSentenceExtractor.java
Spantree/openpipeline
apache-2.0
5,578
202
codeparrot/github-code
948b6086aff6c18711f97bfabb8da4c211154881288315b0520a399f2ac62685
package org.apache.lucene.search; /** * 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, Vers...
Java
src/java/org/apache/lucene/search/TermScorer.java
tokee/lucene
apache-2.0
5,318
167
codeparrot/github-code
ba154ef621960c6ec1d1a07d6461bc5ae7aa0481e7368801dc3fbc1ed5573c9c
using System; using System.IO; using System.Collections.Generic; using System.ComponentModel.Composition; using System.Linq; using System.Text; using System.Threading.Tasks; using Functional.Test; using Functional.Contracts; namespace Functional.Implementation { public static partial class F { /// <sum...
C#
Functional/Functional.cs
codecore/Functional
apache-2.0
1,438
40
codeparrot/github-code
d95bcacf88b5224cb6119956247f3655c80b1c1fadd6936b5274400083cb63f7
/* * Copyright (c) 2015, Freescale Semiconductor, Inc. * Copyright 2016-2017 NXP * All rights reserved. * * SPDX-License-Identifier: BSD-3-Clause */ #ifndef _FSL_FLEXIO_H_ #define _FSL_FLEXIO_H_ #include "fsl_common.h" #include "fsl_clock.h" /*! * @addtogroup flexio_driver * @{ */ /*************************...
C
source/hic_hal/freescale/kl27z/fsl_flexio.h
google/DAPLink-port
apache-2.0
29,614
702
codeparrot/github-code
c40c18e3ff25514f061d8cbabc8dc1c7e1ca1690cd9bb032eaa61d4caafa41ad
/* * Copyright 2016 ThoughtWorks, 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 agr...
Java
src/test/java/com/thoughtworks/cruise/page/CruisePage.java
ketan/functional-tests
apache-2.0
8,039
214
codeparrot/github-code
1035a32f44cbedc747ebb917dd090516d047d6bd351a878446fc43e3f0a9c0c0
/* * 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-route53recoverycontrolconfig/src/main/java/com/amazonaws/services/route53recoverycontrolconfig/model/transform/ClusterEndpointJsonUnmarshaller.java
aws/aws-sdk-java
apache-2.0
3,012
79
codeparrot/github-code
457fccaeebe37fafafc100eb28071c1f544837cf4bb33aa39df1a9b227f7b130
/* * 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
mllib/src/main/scala/org/apache/spark/ml/classification/LogisticRegression.scala
tophua/spark1.52
apache-2.0
34,098
960
codeparrot/github-code
018a3da4428273f40582238a9dc47a387956e60dc0f1ea830b0bebc50a87e9d5
# Copyright 2014-2018 The PySCF Developers. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by appl...
Python
examples/local_orb/pmloc.py
gkc1000/pyscf
apache-2.0
8,521
286
codeparrot/github-code
e13108c5c478e109efcdfa912537a610787f05bd581a680c54dff88b8d7d45cf
package com.cantinho.spoonacularexample.retrofit_models; import com.google.gson.annotations.SerializedName; import java.util.ArrayList; import java.util.List; /** * Created by samirtf on 18/02/17. */ public class ExtendedIngredient { @SerializedName("id") private int id = 0; @SerializedName("aisle") ...
Java
SpoonacularExample/app/src/main/java/com/cantinho/spoonacularexample/retrofit_models/ExtendedIngredient.java
Cantinho/spoonaculator-android-example
apache-2.0
3,789
158
codeparrot/github-code
86c5158aede91e6292211917af5e8199feaec0d709609ca70b02d38ce2065b26
/* * Copyright 2012 Research Studios Austria Forschungsges.m.b.H. 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
webofneeds/won-core/src/main/java/won/protocol/validation/BaseValidator.java
researchstudio-sat/webofneeds
apache-2.0
4,017
99
codeparrot/github-code
fe0e3bdebeebb4c6372946d3e80fc017d02bd9f3336755b784a606cb33871b3e
/* /* * 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"); y...
JavaScript
www/js/index.js
UTD-CSLLC/Door-Karma-Client
apache-2.0
5,355
200
codeparrot/github-code
5f98a291a5b9b9dc81c12ac8530bb29cc9828e2b2948c43799585e6b0e183cb0
package com.yjkmust.arcgisdemo.Bean; import org.greenrobot.greendao.annotation.Entity; import org.greenrobot.greendao.annotation.Generated; /** * Created by GEOFLY on 2017/8/15. */ @Entity public class User { @org.greenrobot.greendao.annotation.Id(autoincrement = true) private Long Id; private String Na...
Java
app/src/main/java/com/yjkmust/arcgisdemo/Bean/User.java
yjkmust/ArcGisDemo
apache-2.0
1,553
79
codeparrot/github-code
8204b8be27f3eb44ca01a5504c820fad696269ed299d097a3669acf6b25d8ecd
/** * Copyright 2016 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
src/service/resource.js
adup-tech/amphtml
apache-2.0
30,399
1,097
codeparrot/github-code
93006f8b84813d6e824eb4ef6cfc7dd940e688e83945495300e2aff3a4306c3d
/* * 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/cli/CommandLineTargetNodeSpecParser.java
zpao/buck
apache-2.0
9,298
216
codeparrot/github-code
6c38ab1b87d6f136cf2c50bb009bb062f2e8094afcdfe6b37fc40aff1314bc4a
package org.onetwo.common.md; import org.apache.commons.codec.binary.Base64; import org.onetwo.common.utils.LangUtils; /** * @author wayshall * <br/> */ public enum CodeType { HEX{ @Override public String encode(byte[] bytes, String charset) { return LangUtils.toHex(bytes); } @Override public byte[]...
Java
core/modules/common/src/main/java/org/onetwo/common/md/CodeType.java
wayshall/onetwo
apache-2.0
831
38
codeparrot/github-code
2270c4d9de3c132e3d7e4103a6439c23626651b451ac362671afda47b80f0213
<?xml version="1.0" encoding="UTF-8"?> <html><body class="spl" id="spl"> <div class="DocumentTitle"> <p class="DocumentTitle"><strong>HEAD AND SHOULDERS  INSTANT OIL CONTROL- pyrithione zinc lotion/shampoo </strong><br>Procter &amp; Gamble Manufacturing Co.<br></p> <p class="disclaimer">Disclaimer: Most OTC drugs are n...
HTML
web/js/spl/83f0f5e0-2883-4c68-a6bc-f22f6c9d9f80.html
OHDSI/Penelope
apache-2.0
11,534
264
codeparrot/github-code
3d69c747b5b743b9486249883a1444069a47ac971448bfc3ba5310e0349a6541
/* * Copyright (c) 2015 PocketHub * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed t...
Java
app/src/main/java/com/github/pockethub/android/ui/commit/CommitCompareListFragment.java
songful/PocketHub
apache-2.0
9,691
280
codeparrot/github-code
5de07d775383ed21bbb6ae31fa0e1e538f7019e8e1ea94c9f20b0556c346fc82
/* * File created on Feb 28, 2014 * * Copyright 2008-2014 Virginia Polytechnic Institute and State University * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apac...
Java
push-library/src/edu/vt/alerts/android/library/tasks/FetchAlertSummaryTask.java
ualerts-org/push-android-library
apache-2.0
3,898
108
codeparrot/github-code
2e0306b7fa72fa74a352e535f742687c0d784f954d93d8272d8af9bddec6684b
from cuttsum.sentsim import SentenceLatentVectorsResource from cuttsum.summarizer.ap import APSummarizer, APSalienceSummarizer from cuttsum.summarizer.baseline import HACSummarizer import os import pandas as pd import numpy as np from datetime import datetime, timedelta from sklearn.metrics.pairwise import cosine_simil...
Python
trec2014/python/cuttsum/summarizer/filters.py
kedz/cuttsum
apache-2.0
26,439
610
codeparrot/github-code
48b707f037245cdefc0feef0dd40b946b5080f58a7b279b88964b3343b2d870b
--- layout: post100 title: Data Events categories: XAP100 parent: notify-container.html weight: 100 --- {%summary%}The new Notify Session API provides a unified and consistent mechanism for event registration.{%endsummary%} # Overview In some cases, SBA applications require the ability to call the u...
Markdown
xap100/session-based-messaging-api.markdown
yuvaldori/gigaspaces-wiki-jekyll
apache-2.0
43,105
717
codeparrot/github-code
30f86ed57f1724c50a8f6b4fbd2f91c2ea86f86b388593eafbb6084167a5992c
/* * Copyright (c) 2015-2018 Petr Zelenka <petr.zelenka@sellcom.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/licenses/LICENSE-2.0 * * Unless re...
Java
src/main/java/org/sellcom/geotemporal/internal/time/applicability/DayOfWeekAfterMonthDayApplicability.java
petrzelenka/sellcom-java-geotemporal
apache-2.0
1,928
61
codeparrot/github-code
cdc6c3b758e1c6ff2375baac6f78af9cd761abb72f730d3150cbc81157791d6d
//===- CoroFrame.cpp - Builds and manipulates coroutine frame -------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===---------------------------...
C++
llvm/lib/Transforms/Coroutines/CoroFrame.cpp
google/llvm-propeller
apache-2.0
66,477
1,853
codeparrot/github-code
301f0588436d87baccc34c208e4954d1a7e284a15deea2d62a0ec204a7ea0054
/* * 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
protocol-kerberos/src/main/java/org/apache/directory/server/kerberos/protocol/codec/MinaKerberosEncoder.java
darranl/directory-server
apache-2.0
1,844
51
codeparrot/github-code
496c074c8d6cc490ccaa2aa20aabdf47ec1456a75e7d6bf5aef3558d03e5e63c
# # Copyright 2012 Red Hat, Inc # # Author: Eoghan Glynn <eglynn@redhat.com> # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless req...
Python
external/ceilometer/compute/virt/libvirt/inspector.py
lcostantino/healing-os
apache-2.0
8,169
203
codeparrot/github-code
477c8c20ba186604924cdab6414f76c6ccd7b6ffc758f69d5f9a44a8fccbef66
<?php namespace App\Http\Controllers; use DB; class StatsController extends Controller { public function __construct() { $this->middleware('loggedIn'); if ( ! IS_DEMO) { $this->middleware('admin'); } } /** * Return site stats for analytics page. * ...
PHP
application/app/Http/Controllers/StatsController.php
mmayorivera/Alms
apache-2.0
615
32
codeparrot/github-code
76458787a0b96832ff40feef3456ba65a599213ff8d33847ae819f0f784062fa
/* * Copyright 2011-2017 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
cartier-redis/src/main/java/com/lambdaworks/redis/AbstractRedisClient.java
CiNC0/Cartier
apache-2.0
22,075
538
codeparrot/github-code
d380b2008b5401f7ed2299aeb41a2e599d8bf7384afb7fd95ea0a10505bfc089
package com.gem.xperiaxposed; import static com.gem.xperiaxposed.Constants.*; import java.lang.reflect.Field; import android.content.Context; import android.util.Log; import de.robv.android.xposed.XposedBridge; public class Conditionals { public static final boolean KITKAT = android.os.Build.VERSION.SDK_INT >= an...
Java
src/com/gem/xperiaxposed/Conditionals.java
greg2001/GemXperiaXposed
apache-2.0
2,951
112
codeparrot/github-code
bcb2714d8541f90e34a3a4cd81a183de0993691df059ba436ad371e05f9cb372
using System; using System.Linq; using System.Text; using DotVVM.Core.Common; using NJsonSchema; using NJsonSchema.CodeGeneration; namespace DotVVM.CommandLine.OpenApi { public class CustomPropertyNameGenerator : IPropertyNameGenerator { private readonly Func<string, string> editCasing; publi...
C#
src/Tools/CommandLine/OpenApi/CustomPropertyNameGenerator.cs
riganti/dotvvm
apache-2.0
1,360
43
codeparrot/github-code
428870b50e2ea65256b694c22e09cfa8c66f5312f98f51269cd8040c1e52b16d
// This file is a part of the IncludeOS unikernel - www.includeos.org // // Copyright 2015-2016 Oslo and Akershus University College of Applied Sciences // and Alfred Bratterud // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // Yo...
C++
lib/mana/src/middleware/director.cpp
ingve/IncludeOS
apache-2.0
4,155
143
codeparrot/github-code
609ae76abcfa6c780e665415a15694eed9cf29eec26ac517923fbc16a2220e1c
#!/usr/bin/python # -*- coding: utf-8 -*- import copy import simplejson as json attrs = { 'BC' : 'BirthCountry', 'G' : 'Gender', 'CC' : 'CitizenshipCountry', 'CB' : 'CitizenshipBasis', 'PC' : 'PassportCountry', 'CETP' : 'CurrentEmploymentType', 'CETT' : 'CurrentEmploymentTitle', 'MSB' : 'MilitaryServic...
Python
Wang/email_relations/jsonsplit.py
Adward-R/InfoVis
apache-2.0
2,100
84
codeparrot/github-code
0fa6a806a4287d7a554d0e42d300c8694c9f776baa3e935179734ba2aa7e4863
/* * 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...
Java
src/org/ensembl/healthcheck/testcase/eg_core/GeneDescriptionSource.java
thomasmaurel/ensj-healthcheck
apache-2.0
2,292
78
codeparrot/github-code
a8e35f920dc271ecf55d1a545c47c789b758a8b9cb4fa8a88c5784927c14e1be
/* * Licensed to Elasticsearch under one or more contributor * license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright * ownership. Elasticsearch licenses this file to you under * the Apache License, Version 2.0 (the "License"); you may * not use this fi...
Java
server/src/test/java/org/elasticsearch/test/cluster/metadata/IndexNameExpressionResolverTests.java
jprante/elasticsearch-server
apache-2.0
66,645
1,146
codeparrot/github-code
f4f1be14339eecb4f34ef5593b05262c977c563a9858188d53f2b7a608db76f0
<!DOCTYPE html> <!-- ~ Copyright 2016 Cnlyml ~ ~ 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...
HTML
src/main/webapp/resources/js/plugins/zTree/demo/cn/super/oneclick.html
cnlyml/summer
apache-2.0
3,406
103
codeparrot/github-code
86afdf398f4a813ca7ca05823a92b50630389ffac43ec15b05f2c3d1d575cae7
/* * Copyright 2010-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" fil...
C++
aws-cpp-sdk-athena/source/model/ListQueryExecutionsRequest.cpp
svagionitis/aws-sdk-cpp
apache-2.0
1,521
62
codeparrot/github-code
5ea6878c1140343124deca7ca67695613c4b0048a83ea10b9bb5c05c16e89c17
package com.dinglian.server.chuqulang.dao.impl; import java.io.Serializable; import java.util.List; import java.util.Map; import org.hibernate.Query; import org.hibernate.Session; import org.hibernate.SessionFactory; import org.springframework.beans.factory.annotation.Autowired; public abstract class Abst...
Java
src/main/java/com/dinglian/server/chuqulang/dao/impl/AbstractHibernateDao.java
fyunxu/chuqulang
apache-2.0
1,963
79
codeparrot/github-code
7bc07efd6707f956c564365351edd8a922eb8d85cfc4b6a74b24e38395ffeb1f
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. using System; using System.Collections.Generic; namespace Microsoft.Extensions.Localization { /// <summary> /// Extension methods for operating on <see cref="IStringLocalize...
C#
src/Localization/Abstractions/src/StringLocalizerExtensions.cs
aspnet/AspNetCore
apache-2.0
2,814
78
codeparrot/github-code
fa6e5b39d1b6e21e753af72e65ec2fd57d31caf82f0e57195ecbc554875ecf4c
package org.drools.solver.examples.travelingtournament.solver.smart.move; import java.util.ArrayList; import java.util.Collection; import java.util.Collections; import java.util.Iterator; import java.util.List; import org.apache.commons.lang.builder.EqualsBuilder; import org.apache.commons.lang.builder.HashCodeBuilde...
Java
drools-solver/drools-solver-examples/src/main/java/org/drools/solver/examples/travelingtournament/solver/smart/move/MultipleMatchListRotateMove.java
bobmcwhirter/drools
apache-2.0
3,800
102
codeparrot/github-code
456460d26320e2d35389b5ef32fb8152a17b46531e30d7f0f7ef882cadd81e7d
/* * Copyright 2005 Sascha Weinreuter * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed t...
Java
src/org/intellij/lang/xpath/xslt/quickfix/FlipOperandsFix.java
consulo/consulo-xslt-debugger
apache-2.0
2,824
76
codeparrot/github-code
309eae323e732d45eb47ed6a96e175236155d485c3cc23cf136f256832e00710
var connexionSymbol = Symbol('connexion'); var entitiesSymbol = Symbol('entities'); class Storage { constructor($q, entities) { this.$q = $q; this[connexionSymbol] = null; this[entitiesSymbol] = entities; } getObjectStore(entity, mode) { var deferred = this.$q.defer(); ...
JavaScript
app/scripts/services/storage.js
ChristopheBoucaut/periodic-task-manager
apache-2.0
2,707
94
codeparrot/github-code
790e9f51e2e3717c50af3ef2fb000c05663777221a7ea906a1745f28a09406f9
/** * 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
hadoop-hdds/server-scm/src/main/java/org/apache/hadoop/hdds/scm/chillmode/DataNodeChillModeRule.java
littlezhou/hadoop
apache-2.0
2,680
83
codeparrot/github-code
8f8df1e44123dea5a09dee11ca4498f297cc314b5df2ab80ad60b95e3c85e4a5
package vip import ( "context" "net/url" "strconv" "go-common/app/interface/main/app-view/conf" "go-common/library/ecode" httpx "go-common/library/net/http/blademaster" "github.com/pkg/errors" ) const ( _vipActive = "/internal/v1/notice/active" ) // Dao is vip dao. type Dao struct { client *httpx.Cl...
GO
126-go-common-master/app/interface/main/app-view/dao/vip/dao.go
LQJJ/demo
apache-2.0
1,008
53
codeparrot/github-code
c504df1f50698b3dab8579a79cdc17f956e63443ca0d77145c7d27ec40e4244b
package linprogMPC.helper; import java.io.BufferedReader; import java.io.FileReader; import java.io.IOException; import java.text.NumberFormat; import java.text.ParseException; import java.util.ArrayList; import java.util.HashMap; import java.util.Locale; import java.util.concurrent.TimeUnit; import linprogMPC.MILPTo...
Java
projects/previousProjects/memapLinProgHDN/src/main/java/linprogMPC/helper/ConsumptionProfiles.java
SES-fortiss/SmartGridCoSimulation
apache-2.0
5,516
172
codeparrot/github-code
a6699d21b085aa838fedb84b19f947d512f62c542ad48b8dc060d96d3f706aaf
//--------------------------------------------------------------------------- // Greenplum Database // Copyright (C) 2011 EMC Corp. // // @filename: // CSyncList.h // // @doc: // Template-based synchronized list class with minimum synchronization // overhead; it provides a minimal set of thread-safe operations throu...
C
libgpos/include/gpos/common/CSyncList.h
xinzweb/gpos_old
apache-2.0
2,806
146
codeparrot/github-code
173ed519aea824d41c36dd2c8fe33aec6634c28a1339c5f58b93c22a90709cc6
package com.sjc.cc.entity; import java.io.Serializable; import java.util.HashSet; import java.util.Set; public class TccClusterConfig implements Serializable { private static final long serialVersionUID = 6365135792006240699L; private Long id; private String uuid; private String clusterN...
Java
SjcProject/src/com/sjc/cc/entity/TccClusterConfig.java
AfricaRegex/SjcProduct
apache-2.0
3,559
158
codeparrot/github-code
565aecf7f393afb313468b464e4f510086d99e1f8e4fd69a6b6db1ccbc3b0bdd
/* * The Alluxio Open Foundation licenses this work under the Apache License, version 2.0 * (the "License"). You may not use this work except in compliance with the License, which is * available at www.apache.org/licenses/LICENSE-2.0 * * This software is distributed on an "AS IS" basis, WITHOUT WARRANTIES OR CONDI...
Java
core/server/src/main/java/alluxio/master/file/options/CompleteFileOptions.java
bit-zyl/Alluxio-Nvdimm
apache-2.0
2,658
107
codeparrot/github-code
2ae5b71700e27157bdc451f3005686c01d917325489a2c2268b128cc1e1180b9
// Licensed to Cloudera, Inc. under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information // regarding copyright ownership. Cloudera, Inc. licenses this file // to you under the Apache License, Version 2.0 (the // "License"); you may not use this f...
Java
java/src/main/java/com/cloudera/api/model/ApiCommand.java
cloudera/cm_api
apache-2.0
8,545
314
codeparrot/github-code
40f3a2b82cc1bf775020a65d71adf9fb952123c923bc365d451b33e2e20a93c9
/******************************************************************************* * (c) Copyright 2014 Hewlett-Packard Development Company, L.P. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Apache License v2.0 which accompany this distribution. * * The Ap...
Java
engine/orchestrator/score-orchestrator-impl/src/main/java/org/openscore/orchestrator/repositories/RunningExecutionPlanRepository.java
orius123/slite
apache-2.0
1,872
45
codeparrot/github-code