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
54fb9774698c96b366ccf91c67a10ef9e2d41e55757f66a7b3781274e996eddc
#!/usr/bin/python2.7 from __future__ import print_function # -*- coding: utf-8 -*- import wx import threading import lcm import random import Forseti import configurator BLUE = (24, 25, 141) GOLD = (241, 169, 50) class TeamPanel(wx.Panel): def __init__(self, remote, letter, number, name, colour, *args, **kwargs...
Python
wxdash.py
pioneers/forseti
apache-2.0
10,763
327
codeparrot/github-code
c0ee435bbe30d89ddd7556996d62ac6944bd94cca90947a710b083ba98b194d0
/* * Copyright 2013-2020 consulo.io * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to ...
Java
modules/base/platform-impl/src/main/java/com/intellij/ide/plugins/LabelPopup.java
consulo/consulo
apache-2.0
2,225
63
codeparrot/github-code
63655cbabb670d81b9d11f865433f744e4a9a57216eac3fd9f6838cec2c9cae2
// Copyright (C) 2014 Space Monkey, 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 agre...
GO
ssl.go
xakep666/openssl
apache-2.0
5,686
192
codeparrot/github-code
90d6b46c40d57b84dfcf3b61dd977e114d82e58d812faa9f6a94d67c7b3e45d8
package etri.sdn.controller.module.vxlanflowmapper; import java.io.IOException; import java.util.ArrayList; import java.util.Arrays; import java.util.List; import org.codehaus.jackson.map.ObjectMapper; public class Tester { public static void main(String[] args) { testV2PRequest(); testV2PResp...
Java
Torpedo/src/etri/sdn/controller/module/vxlanflowmapper/Tester.java
uni2u/iNaaS
apache-2.0
1,831
70
codeparrot/github-code
b52b9abc8750fbac276ba0a442da7fb0f4d5bc09bedb5545445c263a86a658e7
module ZendeskAPI # Creates put, post, delete class methods for custom resource methods. module Verbs class << self private # @macro [attach] container.create_verb # @method $1(method) # Executes a $1 using the passed in method as a path. # Reloads the resource's attributes ...
Ruby
lib/zendesk_api/verbs.rb
zendesk/zendesk_api_client_rb
apache-2.0
2,079
66
codeparrot/github-code
65c209c1dee0b6bea0ead8bfb816ffaa6600382f01c7496dd90eb738e34f495c
/* * 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 * distri...
Java
src/test/java/fuzzy/internal/functions/TestMax.java
tupilabs/nebular
apache-2.0
1,371
52
codeparrot/github-code
e94c6f5c2fa8b039d07cbda4c8425527b408b7c0cb0018c2db97db2694c75ebe
/* * Hibernate, Relational Persistence for Idiomatic Java * * License: GNU Lesser General Public License (LGPL), version 2.1 or later * See the lgpl.txt file in the root directory or http://www.gnu.org/licenses/lgpl-2.1.html */ package org.hibernate.orm.type.descriptor.sql.internal; import java.time.temporal.Temp...
Java
src/test/java/org/hibernate/orm/type/descriptor/sql/internal/JdbcLiteralFormatterTemporal.java
hibernate/hibernate-semantic-query
apache-2.0
2,399
80
codeparrot/github-code
d05174a445bd709698ec2bd48e2f796bd4e19e90915b2f2e5272e71e3dd7675a
package com.etiennelawlor.loop.network.models.response; import android.os.Parcel; import android.os.Parcelable; import com.google.gson.annotations.SerializedName; /** * Created by etiennelawlor on 5/23/15. */ public class Tag implements Parcelable { // region Fields @SerializedName("uri") private Stri...
Java
app/src/main/java/com/etiennelawlor/loop/network/models/response/Tag.java
lawloretienne/Loop
apache-2.0
2,066
103
codeparrot/github-code
2a33689228d63570a139dc6fddc0bc8249c14831e64fd49a1a6a159ddb8d2bd0
# -*- coding: utf-8 -*- # Copyright 2020 The Pigweed Authors # # Licensed under the Apache License, Version 2.0 (the "License"); you may not # use this file except in compliance with the License. You may obtain a copy of # the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applic...
Python
pw_env_setup/py/pw_env_setup/windows_env_start.py
google/pigweed
apache-2.0
2,615
87
codeparrot/github-code
8ebe62403a14a225f487a1113c03eb0f668713beaa21217d0da8a4bba3a4a502
package com.xiaojinzi.component.bean; import javax.lang.model.element.Element; /** * time : 2018/07/26 * * @author : xiaojinzi */ public class RouterDegradeAnnoBean { /** * ไผ˜ๅ…ˆ็บง */ private int priority; /** * ๆ˜ฏไธ€ไธช็ฑปๅฎž็Žฐไบ† RouterDegrade ๆŽฅๅฃ */ private Element rawType; public i...
Java
ComponentCompiler/src/main/java/com/xiaojinzi/component/bean/RouterDegradeAnnoBean.java
xiaojinzi123/Component
apache-2.0
608
39
codeparrot/github-code
e93ff419ec6fef4402ef9f518ea605d6411f73b374f6c628cbcaaa772d5d373e
package Paws::EC2::DhcpConfiguration; use Moose; has Key => (is => 'ro', isa => 'Str', request_name => 'key', traits => ['NameInRequest']); has Values => (is => 'ro', isa => 'ArrayRef[Paws::EC2::AttributeValue]', request_name => 'valueSet', traits => ['NameInRequest']); 1; ### main pod documentation begin ### =...
Perl
auto-lib/Paws/EC2/DhcpConfiguration.pm
ioanrogers/aws-sdk-perl
apache-2.0
1,512
62
codeparrot/github-code
e4e272c1c52a2afd6dc2ae1ec7638b20f289265932b8c44ccb653ae43ce08ea0
--- layout: article title: "Constructing the Object Model" description: "Before the browser can render content to the screen it needs to construct the DOM and CSSOM trees. As a result, we need to ensure that we deliver both the HTML and CSS to the browser as quickly as possible." introduction: "Before the browser can r...
Markdown
src/site/performance/critical-rendering-path/constructing-the-object-model.markdown
SuriyaaKudoIsc/WebFundamentals
apache-2.0
7,813
97
codeparrot/github-code
b32391d2a9ce27ccadc671a6d8b8756b09a5157edec4155db6d0fa9a45ff7f27
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you ...
Java
flink-runtime/src/main/java/org/apache/flink/runtime/executiongraph/Execution.java
shaoxuan-wang/flink
apache-2.0
59,232
1,576
codeparrot/github-code
1a753407ee620bad4c1ebf08cfd4b80bb32ad427c35100000306296acc8f2929
/************************************************************************************ * XtApp.h : header file * * CXtApp Definition header, An Application framework for common use * (Xtrovert Application Frameworks). * * AUTHOR : Sean Feng <SeanFeng2006@hotmail.com> * DATE : Aug. 7, 2012 * Copyright (c) 2009-?. All ...
C
xtrovert/app/inc/XtApp.h
tempbottle/xtrovert
apache-2.0
5,143
151
codeparrot/github-code
e5ddaacfea51fcf95a846848f7e269478bada27d89b11a4f0972ec298aae8408
package water; import java.io.*; import java.lang.reflect.Array; import java.net.*; import java.nio.*; import java.nio.channels.*; import java.util.ArrayList; import java.util.Random; import water.network.SocketChannelUtils; import water.util.Log; import water.util.StringUtils; import water.util.TwoDimTable; /** A B...
Java
h2o-core/src/main/java/water/AutoBuffer.java
mathemage/h2o-3
apache-2.0
74,621
1,916
codeparrot/github-code
a3117ead5484003f8fb7c98ec6f3ad6265d852c4304126dcc11d02036ee5d271
/* * Copyright (c) 2010-2013 Evolveum * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agre...
Java
model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/lens/LensProjectionContext.java
sabriarabacioglu/engerek
apache-2.0
42,728
1,142
codeparrot/github-code
b2048fad8f9da5760a6e467fd4bb7d28c2eaa5fd4d01adad45800663e98420ce
/* * 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
sdks/java/io/kafka/src/test/java/org/apache/beam/sdk/io/kafka/KafkaIOTest.java
wangyum/beam
apache-2.0
49,154
1,305
codeparrot/github-code
64442ae03f8640b18cba20af10abe17db9f64d48865400a63b3781b4137cc2a7
/* * Copyright 2017 Exorath * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or...
Java
src/main/java/com/exorath/plugin/game/cakewars/rewards/KillsReward.java
Exorath/CakeWarsGamePlugin
apache-2.0
1,398
42
codeparrot/github-code
33ae92c3b9f322810f1a0285a9a1a83ef934854ae4d43dc21741436fa29e3530
#!/usr/bin/env python # pylint: disable=missing-docstring # flake8: noqa: T001 # ___ ___ _ _ ___ ___ _ _____ ___ ___ # / __| __| \| | __| _ \ /_\_ _| __| \ # | (_ | _|| .` | _|| / / _ \| | | _|| |) | # \___|___|_|\_|___|_|_\/_/_\_\_|_|___|___/_ _____ # | \ / _ \ | \| |/ _ \_ _| | __| \_ ...
Python
roles/lib_openshift/library/oc_adm_registry.py
DG-i/openshift-ansible
apache-2.0
94,103
2,753
codeparrot/github-code
995b3f28ac85bb4afc731b171240549766115177a6f03e21dbe4629a3443ac30
/** * 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"); yo...
Java
components/camel-irc/src/test/java/org/apache/camel/component/irc/IrcEndpointTest.java
everttigchelaar/camel-svn
apache-2.0
3,292
101
codeparrot/github-code
a66e576e5f0b7c62720c88d3b444ec8602dfc38135bd04ce25556c588e8903dc
// STLport regression testsuite component. // To compile as a separate example, please #define MAIN. #include <algorithm> #include <iostream> #include "unary.h" #ifdef MAIN #define bcompos1_test main #endif #if !defined (STLPORT) || defined(__STL_USE_NAMESPACES) using namespace std; #endif int bco...
C++
src/STLport/test/regression/bcompos1.cpp
aestesis/elektronika
apache-2.0
736
32
codeparrot/github-code
e782eed9bbc45c467db8f96ad63215dcf683caa7b24fe2501170d644ef69edb7
package com.zxinsight.classifier.ruleengine.admin; import java.rmi.RemoteException; import java.util.Map; import javax.rules.admin.LocalRuleExecutionSetProvider; import javax.rules.admin.RuleAdministrator; import javax.rules.admin.RuleExecutionSet; import javax.rules.admin.RuleExecutionSetDeregistrationException; imp...
Java
src/main/java/com/zxinsight/classifier/ruleengine/admin/RuleAdministratorImpl.java
kevin-ww/commentClassifier
apache-2.0
1,738
56
codeparrot/github-code
568bdd116d38efc980a33048f288af024f90360bc234740caa6abe9a6f1068a4
package trendli.me.makhana.common.entities; import java.util.Arrays; import java.util.Collections; import java.util.List; public enum ActionType { MOVE( "Moving", "newTile" ), FABRICATING( "Fabricating" ); private final String verb; private final List< String > dataKeys; private ActionType( String v...
Java
common/src/main/java/trendli/me/makhana/common/entities/ActionType.java
elliottmb/makhana
apache-2.0
806
43
codeparrot/github-code
32bd4a0c473c9e79783c45f66ccbf4ef98170bebaa11439c5630f3d08f9d6bca
/* 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...
GO
pkg/cmd/kilt/rework.go
google/kilt
apache-2.0
4,097
122
codeparrot/github-code
7a3cefc5a02423fdb65211d9af58394bc034c9a45fa8705a21eec32c330a6ae4
/* * Copyright 2014-2015 Nikos Grammatikos * * 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://raw.githubusercontent.com/nikosgram13/OglofusProtection/master/LICENSE * * ...
Java
sponge/src/main/java/me/nikosgram/oglofus/protection/OglofusProtectionStaff.java
Oglofus/OglofusProtection
apache-2.0
16,214
543
codeparrot/github-code
022a83d080f0b1a78972e6d65607ac13fa8901981dda82f4e03d41b8f9c221af
package commons; import org.makagiga.commons.ConfigFile; import org.makagiga.test.AbstractEnumTest; import org.makagiga.test.Test; import org.makagiga.test.TestMethod; import org.makagiga.test.Tester; @Test(className = ConfigFile.Format.class) public final class TestConfigFile_Format extends AbstractEnumTest<ConfigF...
Java
test/src/commons/TestConfigFile_Format.java
stuffer2325/Makagiga
apache-2.0
4,186
160
codeparrot/github-code
8d4d0eaf9a39235d5d971898f8ec1999700489d9782cea2e46049d415b65a598
package org.apache.rave.portal.service.impl; import org.apache.rave.model.ExcercicesHasTrainingPlan; import org.apache.rave.model.Serie; import org.apache.rave.model.TrainingPlan; import org.apache.rave.portal.repository.ExcercicesHasTrainingPlanRepository; import org.apache.rave.portal.repository.SerieRepository; imp...
Java
rave-components/rave-core/src/main/java/org/apache/rave/portal/service/impl/DefaultTrainingPlanService.java
lletsica/my_test_repo
apache-2.0
2,990
71
codeparrot/github-code
fbc01c0b3a93daa51928b28307cf77659be0aef160696ce82d0d72a034046235
/* =========================================================================== Copyright 2002-2010 Martin Dvorak 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.apach...
Java
mr7/src/main/java/com/mindcognition/mindraider/ui/swing/trash/TrashJPanel.java
dvorka/mindraider
apache-2.0
24,481
672
codeparrot/github-code
e82735d2f22761a2cde9f8df77c8e2d1625753080246b27600853566ce93f5f1
package com.fpliu.newton.ui.list; import android.view.View; import android.view.ViewGroup; import android.widget.AdapterView; import android.widget.GridView; /** * @author 792793182@qq.com 2017-06-30. */ public interface IGrid<T, V extends GridView> extends ICommon<T> { V getGridView(); void setItemAdapte...
Java
library/src/main/java/com/fpliu/newton/ui/list/IGrid.java
leleliu008/Android-List
apache-2.0
688
31
codeparrot/github-code
0c25e55ebd7e22d04e405244a903e8d7cf78d099f6c1461f939e5be4f8e33f49
/** * Package: MAG - VistA Imaging WARNING: Per VHA Directive 2004-038, this routine should not be modified. Date Created: Jul 10, 2012 Site Name: Washington OI Field Office, Silver Spring, MD Developer: VHAISWWERFEJ Description: ;; +------------------------------------------------------------...
Java
Source/Java/PathologyWebApp/main/test/java/gov/va/med/imaging/pathology/rest/translator/PathologyRestTranslatorTest.java
VHAINNOVATIONS/Telepathology
apache-2.0
1,621
57
codeparrot/github-code
8e29c35449b15a690cadc28fe2c39d7cdfcdbd692451ff5aca3718d0e5b19825
/** * * 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 *...
Java
hbase-server/src/test/java/org/apache/hadoop/hbase/filter/TestFuzzyRowAndColumnRangeFilter.java
intel-hadoop/hbase-rhino
apache-2.0
5,447
179
codeparrot/github-code
9793b8fb1b3525ec5edbaca48a766c8a6c0e9b00b4f08c0878388ec3ab258721
/* * Trap * An anti-pryer server for better privacy * * This file is a part of Trap project * * Copyright 2016 Rain Lee <raincious@gmail.com> * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the Li...
GO
trap/logger/file.go
raincious/trap
apache-2.0
1,990
88
codeparrot/github-code
85101160ef195aea5b5bc114286e816ba4c8d8260251184eaaed9f3c6f451230
define([ 'jquery', 'underscore', 'backbone', 'app' ], function ( $, _, Backbone, app ) { var Models = {}, Collections = {}, Views = {}; Models.Project = Backbone.Model.extend(); Collections.Projects = Backbone.Model.extend({ model: Models.Project, url: function() { return app.api('projects/' + this...
JavaScript
frontend/source/js/modules/Projects.js
Redmart/os-mobilizer
apache-2.0
666
39
codeparrot/github-code
e5f942d0233a5182b7d75a12fbf620f8c64f6276fe3d7e674f4616fa04d5e773
# Copyright 2018 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
models/official/resnet/benchmark/resnet_benchmark.py
tensorflow/tpu
apache-2.0
8,651
230
codeparrot/github-code
a5f68073dede331e87f43a2880c0a5a41f900ff37f39a7fe76c2c5f11a48ae84
<?php require_once "db_config.php"; session_start(); if(!array_key_exists('id', $_SESSION)) { header("location : index.php"); } ?> <!DOCTYPE html> <!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]--> <!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8"> <![endif]--> <!--[if IE 8]> ...
PHP
admin/acp.php
PuloV/homepage
apache-2.0
6,849
144
codeparrot/github-code
bfa8fe358200be1aa45977a4fef52318770598de56c1f50b79a2e532648e9b21
package pl.matisoft.soy.config; import com.google.template.soy.jssrc.SoyJsSrcOptions; import com.google.template.soy.tofu.SoyTofuOptions; import org.springframework.beans.factory.annotation.Value; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; import or...
Java
spring-soy-view/src/main/java/pl/matisoft/soy/config/SpringSoyViewBaseConfig.java
matiwinnetou/spring-soy-view
apache-2.0
8,365
206
codeparrot/github-code
3509a46ffd1c9ab288c8fcddcef83e6f69b2fccddf7a8cf1e194283067515197
package userstoreauth.servlets; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; import userstoreauth.model.UserVer2; import userstoreauth.service.UserStoreMb; import javax.servlet.ServletException; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse;...
Java
chapter_009/src/test/java/userstoreauth/servlets/EditUserTest.java
HeTyDeHer/ZapovA
apache-2.0
1,905
51
codeparrot/github-code
f3bcab6ad75866b345228b6b8783f1d1e7d240b47a2821e44101a29fde7d1163
//------------------------------------------------------------------------------------- // ExportXmlParser.cpp // // Simple callback non-validating XML parser implementation. // // Microsoft XNA Developer Connection. // Copyright ยฉ Microsoft Corporation. All rights reserved. //------------------------------------...
C++
PlanetSim/DirectX/Samples/C++/Misc/ContentExporter/ExportObjects/ExportXmlParser.cpp
MorrigansWings/GamePhysics
apache-2.0
29,004
951
codeparrot/github-code
8b2542bcbe22b9db5e864fe24c7d6319d5d0dbab442d4da17fdda4adf8daee54
// Copyright 2000-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file. package com.intellij.execution.testframework.sm.runner; import com.intellij.execution.testframework.sm.SMTestRunnerConnectionUtil; import com.intellij.execution.testframework.sm....
Java
platform/smRunner/src/com/intellij/execution/testframework/sm/runner/GeneralToSMTRunnerEventsConvertor.java
msebire/intellij-community
apache-2.0
17,626
512
codeparrot/github-code
7112d257cdc2a0f3171700e885ffb482b2ffb5ad5257ce610fb8affa617afa20
๏ปฟusing System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Data; using System.Data.SQLite; using System.Data.Common; using System.IO; namespace GatherAll { class Cls_SqliteMng { //string m_DBName = ""; //string connStr = ""; ...
C#
GatherAll/Cls_SqliteMng.cs
songboriceboy/GatherAllStoreInDB
apache-2.0
1,926
65
codeparrot/github-code
cb675b1ca90b3de343ef66885c2296746bce6352a6928cc0e4bdbbef6514e928
package br.copacabana; import java.util.ArrayList; import java.util.Date; import java.util.HashMap; import java.util.HashSet; import java.util.Iterator; import java.util.List; import java.util.Map; import java.util.Set; import java.util.logging.Level; import javax.cache.Cache; import javax.servlet.http.H...
Java
src/br/copacabana/PlaceOrderController.java
rafaelcoutinho/comendobemdelivery
apache-2.0
16,224
427
codeparrot/github-code
92899812ae2029bb6df89b599717e53d614494ac8e5924be847e07e68395915b
๏ปฟusing System.Threading; using System.Threading.Tasks; using MediatR; namespace CoreDocker.Core.Framework.CommandQuery { public class MediatorCommander : ICommander { private readonly IMediator _mediator; public MediatorCommander(IMediator mediator) { _mediator = mediator; ...
C#
src/CoreDocker.Core/Framework/CommandQuery/MediatorCommander.cs
rolfwessels/CoreDocker
apache-2.0
826
30
codeparrot/github-code
1c5585b8737c3ff8eb1e36124cc311fe596673a02c1aef96609e268f1dd7d025
package hska.iwi.eShopMaster.model.businessLogic.manager.impl; import com.fasterxml.jackson.databind.ObjectMapper; import com.sun.jersey.api.client.Client; import com.sun.jersey.api.client.ClientResponse; import com.sun.jersey.api.client.WebResource; import hska.iwi.eShopMaster.model.businessLogic.manager.CategoryMan...
Java
WebShopStart/src/main/java/hska/iwi/eShopMaster/model/businessLogic/manager/impl/CategoryManagerImpl.java
Am3o/eShop
apache-2.0
3,084
100
codeparrot/github-code
3505d447176d2545ab364c19b16a279f93d11c8134f0d0db8c049b14f9f1ffda
/** @file An example program which illustrates adding and manipulating an HTTP response MIME header: Usage: response_header_1.so add read_resp_header hook get http response header if 200, then add mime extension header with count of zero add mime ex...
C
example/response_header_1/response_header_1.c
persiaAziz/trafficserver
apache-2.0
10,717
287
codeparrot/github-code
c8df9113caff1326875d4170e53544fe3bcc07cf5c6ecbf0f56c2d00cb426462
import App from '../containers/App'; import { PageNotFound } from '../components'; import homeRoute from '../features/home/route'; import taggrRoute from '../features/taggr/route'; const routes = [{ path: '/', component: App, childRoutes: [ homeRoute, taggrRoute, { path: '*', name: 'Page not found',...
JavaScript
src/common/routeConfig.js
thehig/taggr
apache-2.0
1,246
47
codeparrot/github-code
da52ef4bc90c8628ff6f4b3f63c1ec5891f3bac1cb78284f4016c66b8ecbf9ee
// Copyright 2000-2020 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file. package com.intellij.openapi.vcs; import com.intellij.execution.ui.ConsoleView; import com.intellij.execution.ui.ConsoleViewContentType; import com.intellij.util.containers.Conta...
Java
modules/base/vcs-api/src/main/java/com/intellij/openapi/vcs/VcsConsoleLine.java
consulo/consulo
apache-2.0
1,604
43
codeparrot/github-code
e7272104d30f99a673be8e66c405caf63e54c61628f9596a9183d6ae156ff446
/** * 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 * distribu...
Java
brix-core/src/main/java/org/brixcms/web/nodepage/BrixPageParameters.java
kbachl/brix-cms-backup
apache-2.0
11,587
358
codeparrot/github-code
eed468e965fc5e66c3239df55a4a40162e0e44f29c1bf0d8a858063a9c0c78fd
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you...
Java
core/src/main/java/org/apache/oozie/action/hadoop/ScriptLanguageActionExecutor.java
cbaenziger/oozie
apache-2.0
3,702
102
codeparrot/github-code
67b89fe59e3be3289854ef7298f36b32f6bab9d60d0d59f74e4ed1a047e4fa58
/* * Copyright 2000-2009 JetBrains s.r.o. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agre...
Java
plugins/ant/src/com/intellij/lang/ant/config/execution/PlainTextView.java
mdanielwork/intellij-community
apache-2.0
6,686
233
codeparrot/github-code
5357a0159607ef2f5eac134b0ea461100b190400b4401e28eb7cc6500d97fd4d
๏ปฟ/* Copyright 2012-2022 Marco De Salvo 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...
C#
RDFSharp/Semantics/SKOS/Abstractions/RDFSKOSConceptScheme.cs
mdesalvo/RDFSharp
apache-2.0
41,107
740
codeparrot/github-code
33bf0fcc9c90afd07e3e7dd10ce15a1215bf8f81392ea883a53053b9ce863658
/* * Copyright 2010-2012 Luca Garulli (l.garulli--at--orientechnologies.com) * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 ...
Java
core/src/main/java/com/orientechnologies/orient/core/command/script/OCommandExecutorFunction.java
redox/OrientDB
apache-2.0
4,208
125
codeparrot/github-code
7afa3a57804119e58f53adda615b6c922f477b6918a1b840ee86bf262897ce3d
import java.util.Scanner; /** * @author Oleg Cherednik * @since 13.07.2018 */ public class Solution { static int palindromeIndex(String s) { for (int i = 0, j = s.length() - 1; i < j; i++, j--) { if (s.charAt(i) == s.charAt(j)) continue; for (int k = i, m = j - ...
Java
Algorithms/Strings/Palindrome Index/Solution.java
oleg-cherednik/hackerrank
apache-2.0
921
40
codeparrot/github-code
3c074fc666d3c990159ea3847dcbbd4707c1f14beb12eabfdd7fe873ef2b8df5
package de.newsarea.homecockpit.connector.facade.registration.util; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import java.io.File; import java.io.IOException; import java.lang.reflect.Constructor; import java.lang.reflect.Method; import java.net.URL; import java.util.ArrayList; import java.util.Enumera...
Java
connectors-facade/src/main/java/de/newsarea/homecockpit/connector/facade/registration/util/ClassLoaderHelper.java
RBernhardt/homecockpit-connectors
apache-2.0
3,378
103
codeparrot/github-code
e60a65d318b666af2727fcffff5f0a442001257b93d28fb6b20bf4fb07f063e5
/** * 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
data-sync-tools-core/src/main/java/tools/datasync/utils/Md5HashGenerator.java
datasynctools/sync-tools-prototype
apache-2.0
1,858
62
codeparrot/github-code
8c419f1f7b21f155a39eb39e79676a461126785b0e0c27669a56d073d5620c01
package com.github.database.rider.core.script; import org.assertj.core.api.SoftAssertions; import org.junit.Before; import org.junit.Rule; import org.junit.Test; import org.junit.rules.ExpectedException; import javax.script.ScriptException; import static org.assertj.core.api.Java6Assertions.assertThat; public clas...
Java
rider-core/src/test/java/com/github/database/rider/core/script/ScriptEngineManagerWrapperTest.java
database-rider/database-rider
apache-2.0
4,246
91
codeparrot/github-code
a3f3367b0ea8a56bcff58bf859b679078969412895c86b7ad903652e085607ce
/*global describe, beforeEach, it*/ 'use strict'; var assert = require('yeoman-generator').assert; var helper = require('./helper'); describe('mcap:connections', function () { beforeEach(function (done) { var answers = { name: 'MyApp' }; // Creates a generateor with the default options / argumen...
JavaScript
generators/generator-mcap/test/test-connections.js
mwaylabs/mcap-cli
apache-2.0
1,116
49
codeparrot/github-code
711c9f3ed0c6a6c7b689ef1b91ec8cbaf9e8241f77df8003452656fa0edbb832
/* * Copyright 2018 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 * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to...
Java
jib-core/src/main/java/com/google/cloud/tools/jib/api/Credential.java
GoogleContainerTools/jib
apache-2.0
2,498
95
codeparrot/github-code
fedd34d3ad3cc55bc80bd95f2bf25ed4bcf51662f89a5575c7641d7e675ca163
package com.github.agourlay.cornichon.steps.wrapped import com.github.agourlay.cornichon.core._ import com.github.agourlay.cornichon.steps.regular.assertStep.{ AssertStep, GenericEqualityAssertion } import com.github.agourlay.cornichon.testHelpers.CommonTestSuite import munit.FunSuite import scala.concurrent.duration...
Scala
cornichon-core/src/test/scala/com/github/agourlay/cornichon/steps/wrapped/WithinStepSpec.scala
agourlay/cornichon
apache-2.0
1,298
42
codeparrot/github-code
ceedbd36388cad83aaa685e5a2eeb114632267e467831efbba9b332388f03146
const browserSync = require('../../../'); const utils = require('../utils'); const register = require('../../../dist/plugins/clients').ClientEvents.register; const assert = require('chai').assert; describe('Client connection stream', function () { it('does not have duplicates', function (done) { ...
JavaScript
test/mocha/api/clients$.js
BrowserSync/browser-sync-core
apache-2.0
2,869
66
codeparrot/github-code
3d96737ddda0371e78b2aa0d88b7ce4e996c97af85402877b6b84cf01ba26d72
using Lucene.Net.Diagnostics; using System.Runtime.CompilerServices; namespace Lucene.Net.Util.Fst { /* * 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 copyri...
C#
src/Lucene.Net/Util/Fst/PairOutputs.cs
NightOwl888/lucenenet
apache-2.0
6,273
188
codeparrot/github-code
445571590ad786b0dcc89912302964de86a1e3d9991c704bf4be48bf39d4c742
#!/usr/bin/env python """A flow to run checks for a host.""" from grr.lib import aff4 from grr.lib import flow from grr.lib import rdfvalue from grr.lib.checks import checks from grr.proto import flows_pb2 class CheckFlowArgs(rdfvalue.RDFProtoStruct): protobuf = flows_pb2.CheckFlowArgs class CheckRunner(flow.GRRF...
Python
lib/flows/general/checks.py
ojengwa/grr
apache-2.0
3,088
77
codeparrot/github-code
69608eb56fa94232bb9f4d4e027054c54e2e606872a08e09a9b2cead02f036d4
/* Copyright 2017 - 2022 R. Thomas * Copyright 2017 - 2022 Quarkslab * * 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...
C++
api/python/MachO/objects/pyRelocationObject.cpp
lief-project/LIEF
apache-2.0
2,566
84
codeparrot/github-code
298a9dfa3c55a75fa631432c700c644325ac37b7e3dca4b256624374c4aa0f70
/* Copyright 2019 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/compiler/mlir/lite/tf_tfl_translate_cl.h
DavidNorman/tensorflow
apache-2.0
1,784
42
codeparrot/github-code
c8b64452333aa332ea38e3385190f4c73e4d132d3eb1a3b4448c049c725975b3
/* * Copyright (C) 2016 Mkhytar Mkhoian * * 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
domain/src/test/java/com/justplay1/shoppist/interactor/units/UpdateUnitsTest.java
justplay1/Shoppist
apache-2.0
2,190
65
codeparrot/github-code
ebec926ce5582c255219ddc9cd06c0345b1030b1da27a9398b7cd43475cc3dc3
#!/usr/bin/python3 ################################################################################ # # Copyright 2014 Stjepan Henc <sthenc@gmail.com> # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the Lic...
Python
Signal.py
sthenc/pyKAM
apache-2.0
2,314
75
codeparrot/github-code
60a30cf32d64c156e53ff35d45c359c7b2195cfae56a7338eaab895790366b56
#include <assert.h> #include <pthread.h> #include <stdint.h> #include <time.h> #include "../lib/includes.h" #include "../lib/blacklist.h" #include "../lib/logger.h" #include "../lib/xalloc.h" #include "iterator.h" #include "aesrand.h" #include "shard.h" #include "state.h" struct iterator { cycle_t cycle; uint8_t ...
C
src/iterator.c
scarito/zmap-android
apache-2.0
2,428
103
codeparrot/github-code
eca56ce689659742420f547eb32b28beb77f2c24012739fe9eabe2e9eaa712bd
/* * Copyright 2012 Rackspace * * 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...
C
lib/virgo_conf.c
cp16net/virgo-base
apache-2.0
6,480
332
codeparrot/github-code
dfbace7ddad9877c8d9e419f9357b854294d2ba357c0120129846292cd711e7d
/* * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one * or more contributor license agreements. Licensed under the Elastic License * 2.0 and the Server Side Public License, v 1; you may not use this file except * in compliance with, at your election, the Elastic License 2.0 or the Server...
Java
server/src/main/java/org/elasticsearch/rest/action/admin/indices/RestGetAliasesAction.java
robin13/elasticsearch
apache-2.0
9,110
194
codeparrot/github-code
b0022d0748051147fcaf2c9d37524aab319ac90f6fa78271ac724dd0eeec9b39
/* * 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 ...
TypeScript
web-console/src/utils/druid-query.tsx
liquidm/druid
apache-2.0
1,670
46
codeparrot/github-code
c40fa8d4f26e30195f0ba4f6b55f5d07727447d4f07aa0f39af60b91d994aa9c
<?php /** * Created by PhpStorm. * User: vjcspy * Date: 28/05/2016 * Time: 12:56 */ namespace Modules\IzCore\Repositories; use Modules\IzCore\Repositories\Object\DataObject; use Modules\IzCore\Repositories\Theme\View\AdditionViewInterface; use Pingpong\Modules\Repository; /** * Quแบฃn lรฝ Theme * Bao gแป“m: * - ...
PHP
Repositories/Theme.php
vjcspy/IzCore
apache-2.0
7,506
301
codeparrot/github-code
c534d3cd2d30207527bf75db53a158133a3f8e09eaaeeac6485c63e3571062ee
package com.ejlchina.searcher.implement; import com.ejlchina.searcher.*; import com.ejlchina.searcher.bean.InheritType; import java.lang.reflect.Field; import java.util.*; import java.lang.reflect.Modifier; import java.util.concurrent.ConcurrentHashMap; /*** * ้ป˜่ฎคๅ…ƒไฟกๆฏ่งฃๆžๅ™จ * @author Troy.Zhou @ 2021-10-30 * @since v3...
Java
bean-searcher/src/main/java/com/ejlchina/searcher/implement/DefaultMetaResolver.java
ejlchina/bean-searcher
apache-2.0
4,262
122
codeparrot/github-code
0e5cccbc7d9cbfd5d3fabb8f0c0ab54f73e5e2c9456963c23b380c5162c8f989
<html> <head> <meta http-equiv="Content-Type" content="text/html;charset=utf-8"> <link rel="stylesheet" type="text/css" href="licenses.css"> </head> <body> <h2>fh-service-mongodb-cloud</h2> <table> <tr> <th>Package Group</th> <th>Package Artifact</th> <th>Package Version</th> <th>Remote Licenses</th> <th>Local Licenses...
HTML
licenses/licenses.html
feedhenry-templates/fh-connector-mongodb-cloud
apache-2.0
60,702
2,293
codeparrot/github-code
16e5b0d991a559895f6b2837ab3852514e1469a562a0cae53ecfe01e054c9860
๏ปฟusing MO.Core.Forms.Common; using System; using System.ComponentModel; using System.Drawing; using System.Windows.Forms; namespace MO.Core.Forms.Controls { //============================================================ // <T>้ขœ่‰ฒ้€‰ๅ–ๆŽงไปถ<T> //============================================================ public p...
C#
Tools/1 - Common/MoCore/Forms/Controls/QColorPicker.cs
favedit/MoCross
apache-2.0
5,050
147
codeparrot/github-code
36a181bb32e218281794001f68547eaa26cf2c4437c298d4f981d58a1d615e51
/* * Copyright 2017 Facebook, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to...
C++
folly/test/CacheLocalityTest.cpp
charsyam/folly
apache-2.0
25,381
449
codeparrot/github-code
98a34e117f3941d3ecd5990bd9ce2194ef6536bc229c84730424a34706024541
๏ปฟ#define NETCORE using System; using System.Linq; using System.Reflection; namespace Foundatio.Force.DeepCloner.Helpers { internal static class ReflectionHelper { public static bool IsEnum(this Type t) { #if NETCORE return t.GetTypeInfo().IsEnum; #else return t.IsEnum; #endif } public static bool IsVa...
C#
src/Foundatio/DeepCloner/Helpers/ReflectionHelper.cs
FoundatioFx/Foundatio
apache-2.0
3,815
171
codeparrot/github-code
e37de42c8c05c22b0835595ef888cd07ec37d1707a2c034c86c4c9fc31e7b176
"""Translation helper functions.""" import locale import os import re import sys import gettext as gettext_module from cStringIO import StringIO from django.utils.importlib import import_module from django.utils.safestring import mark_safe, SafeData from django.utils.thread_support import currentThread ...
Python
django/utils/translation/trans_real.py
greggian/TapdIn
apache-2.0
20,192
540
codeparrot/github-code
e8f146c3896988871181133e9665f3fbd2b60a17c761f65ed18cb1759ff7c823
{-# LANGUAGE ExplicitForAll, Rank2Types #-} -- | An implementation of Reagents (http://www.mpi-sws.org/~turon/reagents.pdf) -- NOTE: currently this is just a very tiny core of the Reagent design. Needs -- lots of work. module Data.Concurrent.Internal.Reagent where import Data.IORef import Data.Atomics import P...
Haskell
src/Data/Concurrent/Internal/Reagent.hs
rrnewton/concurrent-skiplist
apache-2.0
1,287
43
codeparrot/github-code
1a3cfc4aba4f6cf14529f4a280d9ee577196748857a0c41a5f6804309385840b
package org.myrobotlab.framework; import static org.myrobotlab.framework.StatusLevel.DEBUG; import static org.myrobotlab.framework.StatusLevel.ERROR; import static org.myrobotlab.framework.StatusLevel.INFO; import static org.myrobotlab.framework.StatusLevel.SUCCESS; import static org.myrobotlab.framework.StatusL...
Java
src/main/java/org/myrobotlab/framework/Status.java
MyRobotLab/myrobotlab
apache-2.0
7,254
267
codeparrot/github-code
dfb41d1fd1980cf7cd7fedb228142ef9595cf4ff6862b6d098683fa46e5ae227
๏ปฟ// 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. using System.Threading; using Microsoft.CodeAnalysis.CSharp.Extensions; using Microsoft.CodeAnalysis.CSharp.Syntax;...
C#
src/Features/CSharp/Portable/Structure/Providers/RegionDirectiveStructureProvider.cs
eriawan/roslyn
apache-2.0
2,847
64
codeparrot/github-code
cc973a83b5b3a808bad2cd397ba6664d5bc0dad34e5838163e103e0a8935a976
// Copyright 2014 The Rust Project Developers. See the COPYRIGHT // file at the top-level directory of this distribution and at // http://rust-lang.org/COPYRIGHT. // // Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or // http://www.apache.org/licenses/LICENSE-2.0> or the MIT license // <LICENSE-MIT or ...
Rust
src/librustc_typeck/check/writeback.rs
emk/rust
apache-2.0
17,553
500
codeparrot/github-code
e023a5418f056ea9b1ca244c4b876d980c5aabc97b7150167f29ec1f43895a52
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you...
Java
tez-api/src/test/java/org/apache/tez/dag/api/TestDagTypeConverters.java
Altiscale/tez
apache-2.0
2,256
54
codeparrot/github-code
c5183f0f20639a42de18a4a34f4da7e574faa40c6e32291cab552e2f07274fea
/** * 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"); yo...
Java
components/camel-jetty/src/test/java/org/apache/camel/component/jetty/HttpFilterCamelHeadersTest.java
everttigchelaar/camel-svn
apache-2.0
2,847
80
codeparrot/github-code
37bdb3264d8dda606a939240af9b1d4dee74f8bd1c05b0169eb1399d92998400
""" Support for EBox. Get data from 'My Usage Page' page: https://client.ebox.ca/myusage For more details about this platform, please refer to the documentation at https://home-assistant.io/components/sensor.ebox/ """ import logging from datetime import timedelta import voluptuous as vol import homeassistant.helper...
Python
homeassistant/components/ebox/sensor.py
Cinntax/home-assistant
apache-2.0
4,756
155
codeparrot/github-code
54c381ed0d329e6edbca277c1ac0bde714c2be22f58209cd653719d19f2b0a8c
/* * Licensed to The Apereo Foundation under one or more contributor license * agreements. See the NOTICE file distributed with this work for * additional information regarding copyright ownership. * * The Apereo Foundation licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may...
Java
JavaSource/org/unitime/timetable/solver/exam/ui/ExamConflictStatisticsInfo.java
UniTime/unitime
apache-2.0
36,624
832
codeparrot/github-code
194745f8c92ba1a168350f8fc7a47d03d469d55f5f1a6ba4c844645d1b000c9a
#ifndef _CUFTPD_H #define _CUFTPD_H #define CUFTPD_DEBUG(fmt, ...) cuftpd_debug(__FILE__, __LINE__, fmt, __VA_ARGS__) #define CUFTPD_ARR_LEN(arr) (sizeof(arr)/sizeof(arr[0])) #define CUFTPD_VER "1.0" #define CUFTPD_DEF_SRV_PORT 21 #define CUFTPD_LIS...
C
system/ftpd.h
easion/os_sdk
apache-2.0
901
37
codeparrot/github-code
c448114d60fd33a4d8e42b6bd1d9b3334f946c7662c618573014c635b6a0c1eb
package no.nb.nna.veidemann.chrome.client.ws; import no.nb.nna.veidemann.chrome.client.ws.GetBrowserVersionCmd.Response; public class GetBrowserVersionCmd extends Command<Response> { public GetBrowserVersionCmd(Cdp client) { super(client, "Browser", "getVersion", Response.class); } public static ...
Java
veidemann-chrome-client/src/main/java/no/nb/nna/veidemann/chrome/client/ws/GetBrowserVersionCmd.java
nlnwa/broprox
apache-2.0
1,385
57
codeparrot/github-code
98ff2901878b054622f9e7c83ee3705100cddd8129c1da17d5308ac4f9d44c98
OC.L10N.register( "settings", { "Security & Setup Warnings" : "Sรคkerhets & Instรคllningsvarningar", "Cron" : "Cron", "Sharing" : "Dela", "Security" : "Sรคkerhet", "Email Server" : "E-postserver", "Log" : "Logg", "Authentication error" : "Fel vid autentisering", "Your full name has ...
JavaScript
settings/l10n/sv.js
kebenxiaoming/owncloudRedis
apache-2.0
20,861
267
codeparrot/github-code
3bee10b4d1cfc83cdb13990eb88dad5fb35f7270b7e5220b1eb807cfb5443a49
package cn.edu.hhu.reg.vo; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.GeneratedValue; import javax.persistence.GenerationType; import javax.persistence.Id; import javax.persistence.Table; @Entity @Table(name="doctor_login") public class DoctorLogin { @Id @GeneratedVa...
Java
src/cn/edu/hhu/reg/vo/DoctorLogin.java
pqpo/registration_api
apache-2.0
1,190
76
codeparrot/github-code
b2d5675df81e4cdd31d650db589977aeef66b64a3d0bdf941d776566e69b5f5d
/* * Copyright 2018 Aleksander Jagieล‚ล‚o * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or ag...
Java
src/main/java/pl/themolka/arcade/team/TeamCommands.java
ShootGame/Arcade2
apache-2.0
9,512
270
codeparrot/github-code
f99abdd7bf25ef8c7274c0ee3cd67b5cd0397e18cee6f131f45ff7e57e5a7ad0
package problems; import java.util.Arrays; import java.util.PriorityQueue; /** * Leetcode: Super Ugly Number * Created by alan on 2/24/2016. */ public class SuperUglyNumber { class Node implements Comparable<Node> { int val; final int prime_index; public Node(int value, int prime_idx) ...
Java
src/problems/SuperUglyNumber.java
alyiwang/LeetCode
apache-2.0
1,548
56
codeparrot/github-code
a9c5355439a6d798e1cf48c955e93735a7b9125b06654de3254fb4d842576904
/* * Copyright 2021 HM Revenue & Customs * * 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...
Scala
test/services/AutoCompleteServiceSpec.scala
hmrc/amls-frontend
apache-2.0
1,305
44
codeparrot/github-code
b65876fbc11ce78eccde8b002d4c41d65e95c86197bb010ed5f191fb32de2e1c
package yuku.alkitab.base.util; import android.app.Activity; import android.app.Dialog; import android.content.Intent; import android.database.Cursor; import android.database.DatabaseUtils; import android.database.sqlite.SQLiteDatabase; import android.os.AsyncTask; import android.support.annotation.NonNull; import and...
Java
Alkitab/src/main/java/yuku/alkitab/base/util/BookmarkImporter.java
infojulio/androidbible
apache-2.0
11,461
311
codeparrot/github-code
8f3cb73f6eae16c8ef46cc9296eb9bceffd8006f0ff1c1e2e443c9ec7f928610
var config = require('./lib/config'); var FaceRec = require('./lib/facerec').FaceRec; var hfr = new FaceRec(config); // constant var threshold = 20; var prevX; var prevY; setInterval(function() { var result = hfr.detect(); console.log('result:' + JSON.stringify(result)); if (result && result.pos_x &...
JavaScript
test.js
project-humix/humix-facerec-module
apache-2.0
992
49
codeparrot/github-code
bedc591ca7fa769019e9119b2fe205b6e7a79c49ab9578619407081a06504db7
using System; using System.Collections.Generic; using System.Data.Services.Common; using System.IO; using System.Linq; using NuGet.Resources; namespace NuGet { [DataServiceKey("Id", "Version")] [EntityPropertyMapping("LastUpdated", SyndicationItemProperty.Updated, SyndicationTextContentKind.Plaintext,...
C#
src/Core/Packages/DataServicePackage.cs
grendello/nuget
apache-2.0
9,582
334
codeparrot/github-code
547b56e2602ca4c73fa5f1e2dac492cfc73deb99e1df60d80a2921a0ebadfc63
/** * 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 m...
Java
opensource_cxf/org/apache/cxf/tools/common/ToolConstants.java
zzsoszz/webservice_gzdx
apache-2.0
12,534
254
codeparrot/github-code
6f1d095a73150f8c31e097d1f1e4edb08c1e694d94b510bde5ebaff0f676e5c9
<!doctype html> <html class="default no-js"> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <title>PriceComparable | GDAX Trading Toolkit API Reference</title> <meta name="description" content=""> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="...
HTML
docs/apiref/interfaces/_src_lib_orderbook_.pricecomparable.html
tianyangj/gdax-tt
apache-2.0
11,761
238
codeparrot/github-code
7df0fbf631cf8174859815fd1410914abbafad789b9785762b1255d0490f55f2
/** * 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
client/src/test/java/io/pravega/client/connection/impl/ConnectionPoolingTest.java
pravega/pravega
apache-2.0
21,376
507
codeparrot/github-code
c4b75dbf7b3699d145a52ce7faf8f44d368c38636c5c3b7e899e4bb196356948
#define DEBUG_TYPE "sil-simplify-cfg" #include "llvm/ADT/SmallPtrSet.h" #include "llvm/ADT/SmallVector.h" #include "swift/SIL/SILInstruction.h" #include "swift/SILOptimizer/Analysis/DominanceAnalysis.h" #include "swift/SILOptimizer/Utils/CFG.h" #include "swift/SILOptimizer/Utils/Local.h" #include "swift/SILOptimizer/Ut...
C++
lib/SILOptimizer/Utils/CheckedCastBrJumpThreading.cpp
adrfer/swift
apache-2.0
26,094
754
codeparrot/github-code
627b2fb90438ab9b16cbb4648bc4fc6a7fb686cd0e261f02ad0542abe5c14bfc
๏ปฟ/* Copyright 2017 Processwall 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 or agreed to in ...
C#
Aras.ViewModel.Design/Applications/Parts.cs
ArasExtensions/Aras.ViewModel
apache-2.0
3,014
88
codeparrot/github-code
b109e0c1c95568f935ae2a3af7565d2c12440b6578e78100788c37ed8bed106a
#include <tuple> #include "Vector2.h" Vector2::Vector2(void) { } Vector2::Vector2(float X, float Y) { this->X = X; this->Y = Y; } // Returns the length of the vector float Vector2::Magnitude() { return sqrt(X * X + Y * Y); } // Returns the length of the vector squared // Used for length comparisons without need...
C++
Crispy-Waffle/Vector2.cpp
Henrywald/crispy-waffle
apache-2.0
1,685
108
codeparrot/github-code