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
ff56e0f37dd4b7d062209d96b1aebb3f592c1a6d23c92114f5d6be2f50f3d167
/* * Copyright 2005 JBoss Inc * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to i...
Java
drools-model/drools-model-compiler/src/test/java/org/drools/modelcompiler/domain/TargetPolicy.java
reynoldsm88/drools
apache-2.0
1,281
52
codeparrot/github-code
3932065fd2ddf3d6717cfc5f7ec11f7ccb619ff98aef452b6561314261c4f7b6
package com.cell.user.web.shrio.filter.authc; import javax.servlet.ServletRequest; import org.apache.shiro.SecurityUtils; import org.apache.shiro.authc.AuthenticationException; import org.apache.shiro.web.filter.authc.FormAuthenticationFilter; import org.springframework.beans.factory.annotation.Autowired; imp...
Java
src/main/java/com/cell/user/web/shrio/filter/authc/CustomFormAuthenticationFilter.java
TonyYang9527/Magic-Web
apache-2.0
1,554
56
codeparrot/github-code
350b0375d60ceb074a1f35046b303679f9108930311009d5d62a481097958159
/* Copyright 2014 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 applicable law or agreed to in ...
GO
pkg/proxy/proxier.go
CaptTofu/kubernetes
apache-2.0
4,258
135
codeparrot/github-code
6b9dfc00bd939d1f3c273f2609ffc4f9d959e2806932e47f8d133338b1890c47
#pragma once #include "il2cpp-config.h" #ifndef _MSC_VER # include <alloca.h> #else # include <malloc.h> #endif #include <stdint.h> // System.Threading.ManualResetEvent struct ManualResetEvent_t924017833; // System.IO.Stream struct Stream_t1561764144; // Mono.Security.Protocol.Tls.Context struct Context_t658806145...
C
iOS_app/Classes/Native/Mono_Security_Mono_Security_Protocol_Tls_RecordPro1331996967.h
Bersaelor/D2
apache-2.0
2,631
77
codeparrot/github-code
8767910ed6853e3447593ba59d6666d10eb270ed3a728de3278c482a4db4d565
#region S# License /****************************************************************************************** NOTICE!!! This program and source code is owned and licensed by StockSharp, LLC, www.stocksharp.com Viewing or use of this code requires your acceptance of the license agreement found at https://github.com/St...
C#
Algo/Candles/Candle.cs
StockSharp/StockSharp
apache-2.0
13,470
556
codeparrot/github-code
0f4556c3e3df9bd4834aae8e50ffdccefa8f8fee8c4f4d76e75175d095bdb173
/** * Copyright 2014 Netflix, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed t...
Java
rxjava-core/src/test/java/rx/internal/operators/OperatorOnBackpressureBufferTest.java
mttkay/RxJava
apache-2.0
3,022
96
codeparrot/github-code
ebfce03cc133329f1a5a0a408a4fa324c4d02e8e36763e39ca00a8e616f862e4
# -*- coding: utf-8 -*- # # Copyright (c) 2013 Clione Software # Copyright (c) 2010-2013 Cidadania S. Coop. Galega # # 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.or...
Python
src/core/spaces/models.py
cidadania/e-cidadania
apache-2.0
8,796
229
codeparrot/github-code
814108faee4a4cf7801d4ae27eccf969726b2e47dcd70c77d5349d0894343869
# Copyright (C) 2015 Yahoo! 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 applicable law...
Python
openstack_dashboard/dashboards/identity/identity_providers/protocols/tables.py
openstack/horizon
apache-2.0
2,469
76
codeparrot/github-code
e834e0daf29a6088e5f7873b4378940e1f9b104c1f9c1da022230d7a6902f8a2
/* * Copyright 2015-2020 OpenCB * * 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
opencga-core/src/main/java/org/opencb/opencga/core/models/study/VariableSetCreateParams.java
j-coll/opencga
apache-2.0
3,818
128
codeparrot/github-code
0ffad93fe7b441ddd07d75620b8972dec3c10d9d729228bb675c8c70de2f5a16
package es.ucm.fdi.iw.controller; import java.security.Principal; import java.util.ArrayList; import java.util.List; import javax.persistence.EntityManager; import javax.servlet.http.HttpSession; import org.apache.log4j.Logger; import org.springframework.beans.factory.annotation.Autowired; import org.springframework...
Java
src/main/java/es/ucm/fdi/iw/controller/HomeController.java
lorenpaz/CardEx
apache-2.0
4,000
129
codeparrot/github-code
6034b8fa44b7147f2a72a79fd69bdc912720ed09a0972425902e2d755ca50574
package org.apache.hadoop.mapred.spatial; import java.io.IOException; import org.apache.hadoop.fs.FileSystem; import org.apache.hadoop.fs.Path; import org.apache.hadoop.io.IntWritable; import org.apache.hadoop.io.Text; import org.apache.hadoop.mapred.RecordWriter; import org.apache.hadoop.mapred.Reporter; import org....
Java
src/mapred/org/apache/hadoop/mapred/spatial/RTreeGridRecordWriter.java
aseldawy/spatialhadoop
apache-2.0
955
32
codeparrot/github-code
b2cc7bd0150290d2c5ef4d7e9a1cc1ebef08f890c227e0549378384a39d72150
from datetime import datetime import random import string from bson import ObjectId class DuplicateUserException(Exception): def __init__(self, message='User name/email already exits'): Exception.__init__(self, message) pass class UserServiceException(Exception): def __init__(self, message=None...
Python
src/geosnap/service/UserService.py
cackharot/geosnap-server
apache-2.0
2,611
87
codeparrot/github-code
8e04df5543a28025d584cb1c18fce434317adb3264ffc3f23fbc46d394e17de9
/* * (c) Copyright 2016 Hewlett Packard Enterprise Development LP * * 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 b...
Scala
src/main/scala/cogx/cogmath/hypergraph/Levelize.scala
hpe-cct/cct-core
apache-2.0
3,714
108
codeparrot/github-code
08b6f067bfe12992b4b0b596d292f4d57885b97da37eed93d5353fe8b58aec2b
package org.apache.lucene.index; /** * Copyright 2004 The Apache Software Foundation * * 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
src/java/org/apache/lucene/index/SegmentReader.java
lpxz/grail-lucene358684
apache-2.0
18,645
591
codeparrot/github-code
8aff1165681232582e11916d691165ad8fdf7836ebaef96a6e35bf6f2a4f95cf
from abc import ABCMeta, abstractmethod, abstractproperty from contextlib import contextmanager from functools import wraps import gzip from inspect import getargspec from itertools import ( combinations, count, product, ) import operator import os from os.path import abspath, dirname, join, realpath import...
Python
zipline/testing/core.py
bartosh/zipline
apache-2.0
47,174
1,576
codeparrot/github-code
09454a193140e2f04027c1eff3bb16c71ef58ea9af3e45a6a05780e3aeb3e394
<!-- Copyright (c) Microsoft. All rights reserved. Licensed under the MIT license. See LICENSE file in the project root for full license information. --> <!DOCTYPE html> <html xmlns:msxsl="urn:schemas-microsoft-com:xslt"> <head> <meta content="en-us" http-equiv="Content-Language" /> <meta content="tex...
HTML
Bjd.Startup/wwwroot/bjd5-ftp.html
darkcrash/bjd5
apache-2.0
20,196
579
codeparrot/github-code
5dc385a82f0b67777ccdd23e92107bdb94ef23fa194479b8d50f8910ae890c63
/* Copyright (C) 2013-2014 Computer Sciences Corporation * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by ap...
Java
ezmongo-java-driver/src/main/org/bson/util/ClassAncestry.java
ezbake/ezmongo
apache-2.0
3,530
103
codeparrot/github-code
f2ed21330a450a7cb6312ed7757cab8103391c3e631affe8e879afc0cc2be54a
/* * 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
commons/data-provenance-utils/src/main/java/org/apache/nifi/provenance/lineage/FlowFileNode.java
rdblue/incubator-nifi
apache-2.0
2,335
84
codeparrot/github-code
78c8e40991446125b5ae4082caf1b4a6a52ac96574eda3ad4b3d39f1b7583d96
var less, tree; if (typeof environment === "object" && ({}).toString.call(environment) === "[object Environment]") { // Rhino // Details on how to detect Rhino: https://github.com/ringo/ringojs/issues/88 if (typeof(window) === 'undefined') { less = {} } else { less = wind...
JavaScript
lib/less/parser.js
qvuilliot/less.js
apache-2.0
49,421
1,311
codeparrot/github-code
4b0385a5b3449094badee35b2a35c8aa3a90c0f895d1e07eab8873aa504ba154
package zoara.sfs2x.extension; import java.sql.Connection; import java.sql.PreparedStatement; import java.sql.ResultSet; import java.sql.SQLException; import java.util.Arrays; import zoara.sfs2x.extension.simulation.World; import zoara.sfs2x.extension.utils.RoomHelper; import com.smartfoxserver.bitswarm.sessions.ISe...
Java
src/zoara/sfs2x/extension/LoginEventHandler.java
xiehan/zoara-server
apache-2.0
4,312
126
codeparrot/github-code
4f178d473f7b77470c9c57551ee971c712f1089a4075e0c24224b30a488ee215
import socket import re from xii import error, util # sample validator # keys = Dict( # [ # RequiredKey("foo", String(), desc="A string to manipulate something"), # Key("bar", String(), desc="something usefull") # ], # desc="Implement this stuff as you want" # ) class Validator(): d...
Python
src/xii/validator.py
xii/xii
apache-2.0
6,612
236
codeparrot/github-code
d4228bdadb9ca540a1f10ed88048d2e07d72af37ad6547a3359f2e37b676f151
/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #include <aws/iotwireless/model/MulticastGroup.h> #include <aws/core/utils/json/JsonSerializer.h> #include <utility> using namespace Aws::Utils::Json; using namespace Aws::Utils; namespace Aws { na...
C++
aws-cpp-sdk-iotwireless/source/model/MulticastGroup.cpp
aws/aws-sdk-cpp
apache-2.0
1,432
90
codeparrot/github-code
f6fa5072d2ee0370015c59cee4543d75d80f2c1f3adfe6b3b72f2830157d720d
<?php slot('op_sidemenu'); ?> <?php $options = array( 'object' => $band, ); op_include_parts('memberImageBox', 'bandImageBox', $options); ?> <?php $options = array( 'title' => __('%band% Members', array('%band%' => $op_term['band']->titleize())), 'list' => $members, 'crownIds' => array($bandAdmin->getId()), ...
PHP
plugins/opBandPlugin/apps/pc_frontend/modules/band/templates/homeSuccess.php
sonicdna/sonicdna-dev
apache-2.0
4,421
140
codeparrot/github-code
829bbe413e3de37f123d098097cbf0d323c43454b5066312cb3eeb92570e41a5
/* eslint-disable no-underscore-dangle, no-param-reassign */ import d3 from 'd3'; require('./sequences.css'); // Modified from http://bl.ocks.org/kerryrodden/7090426 function sunburstVis(slice) { const container = d3.select(slice.selector); const render = function () { // vars with shared scope within this ...
JavaScript
caravel/assets/visualizations/sequences.js
jeromecn/caravel_viz_full
apache-2.0
11,085
341
codeparrot/github-code
e1e66ec44bd1cf312bc0d21e1ad26f81c0ac5700aacae6873428ca559c1d798a
// Copyright 2019 DeepMind Technologies 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 l...
C
reverb/cc/testing/time_testutil.h
deepmind/reverb
apache-2.0
1,189
39
codeparrot/github-code
902779fc9cd3140745fb5bd743f5bb2676f2ed6b9df8da34d4cd66a2ba176a81
/* * Copyright (C) 2012-2014 Open Source Robotics Foundation * * 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...
C++
plugins/SkidSteerDrivePlugin.cc
jonbinney/gazebo_ros_wrapper
apache-2.0
4,572
138
codeparrot/github-code
219cf7985357b853dcaf3932a499176b045a1364ed97ac1d740385cda0f90c28
package liquibase.sqlgenerator.core; import liquibase.change.ColumnConfig; import liquibase.database.ObjectQuotingStrategy; import liquibase.database.core.OracleDatabase; import liquibase.sql.Sql; import liquibase.statement.DatabaseFunction; import liquibase.statement.SequenceCurrentValueFunction; import liquibase.sta...
Java
liquibase-core/src/test/java/liquibase/sqlgenerator/core/InsertOrUpdateGeneratorOracleTest.java
liquibase/liquibase
apache-2.0
7,276
169
codeparrot/github-code
93e021d4d4f4398c7f20546df432179ad26080534a17f76d1bf13d00359fa73a
/* * Copyright 2005-2011 Sixth and Red River Software, Bas Leijdekkers * * 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 ...
Java
src/com/sixrr/metrics/ui/dialogs/ExplanationDialog.java
consulo/consulo-metrics
apache-2.0
4,055
147
codeparrot/github-code
f1b5ff91417d0d09efd4ea49383ea96bf1ee91aaba46ceeec812fc9781004f41
// Copyright 2010-2014, Google Inc. // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are // met: // // * Redistributions of source code must retain the above copyright // notice, this list of condit...
C
src/gui/dictionary_tool/find_dialog.h
kishikawakatsumi/Mozc-for-iOS
apache-2.0
2,515
76
codeparrot/github-code
02c32d616ada83eff83e080fbdef2886b8c834c579031a21ef74f0278865f4f2
package Init.Enum; import Generics.Generator; import java.util.EnumMap; import java.util.Iterator; import static Init.Enum.Input.*; import static Init.Print.print; /** * Created by Defias on 2020/07. * Description: 使用enum的状态机 * */ public class TestEnumStates { public static void main(String[] args) { ...
Java
InitJava/base/src/main/java/Init/Enum/TestEnumStates.java
gdefias/JavaDemo
apache-2.0
3,944
144
codeparrot/github-code
e49cfdf056e2b78c9bec7bae42bcfd64fd7b45c381bda10f19b5a75922ae4ac3
#include <QtWidgets> #include <math.h> #include "starrating.h" const int PaintingScaleFactor = 20; StarRating::StarRating(int starCount, int maxStarCount) { myStarCount = starCount; myMaxStarCount = maxStarCount; starPolygon << QPointF(1.0, 0.5); for (int i = 1; i < 5; ++i) { starPolygon ...
C++
starrating.cpp
luchenqun/StarDelegate
apache-2.0
1,586
65
codeparrot/github-code
a6f8a70aa728b629ab5fd91810ba45932f24a658b7081ce52adb19884f17badc
/** * <copyright> * </copyright> * * $Id$ */ package net.opengis.gml.provider; import java.util.Collection; import java.util.List; import net.opengis.gml.GmlFactory; import net.opengis.gml.GmlPackage; import net.opengis.gml.TopoVolumeType; import org.eclipse.emf.common.notify.AdapterFactory; import org.eclipse...
Java
de.hub.citygml.emf.ecore.edit/src/net/opengis/gml/provider/TopoVolumeTypeItemProvider.java
markus1978/citygml4emf
apache-2.0
6,438
201
codeparrot/github-code
d9caa83aa835e60ed8494ef6823d86c729697931c27c475dd036fc08baa1abfa
# # Copyright 2015-2019, Institute for Systems Biology # # 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 ...
Python
bq_data_access/v2/seqpeek/seqpeek_view.py
isb-cgc/ISB-CGC-Webapp
apache-2.0
7,709
269
codeparrot/github-code
c6f564107ca495b394b49d2992bcd35546dd4cf864a15acbd39d1f385a2610b9
/* * Copyright 2014 The Netty Project * * The Netty Project licenses this file to you under the Apache License, * version 2.0 (the "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at: * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless...
Java
transport-native-unix-common/src/main/java/io/netty/channel/unix/Unix.java
doom369/netty
apache-2.0
3,285
97
codeparrot/github-code
5294cef81c02f3ae7aedee7e5bf81e03eb87b59ca3edf7d75b66cdc1df1654ff
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html lang="en-GB" xml:lang="en-GB" xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="content-type" content="text/html; charset=utf-8"/> <title>Statistics of nummod in UD_Poli...
HTML
treebanks/pl_lfg/pl_lfg-dep-nummod.html
UniversalDependencies/universaldependencies.github.io
apache-2.0
10,197
209
codeparrot/github-code
a39782fee2c11dd9d95b182f4d75a19e7b31181e56d429fcdc393eb36ad54f03
package com.deleidos.framework.monitoring.response; public class InfoResponse { public static final String PATH = "/proxy/${APP_ID}/ws/v2/stram/info"; public static class Stats { public int allocatedContainers; public int plannedContainers; public int totalVCoresAllocated; public int vcoresRequired; pu...
Java
de-framework-monitoring/src/main/java/com/deleidos/framework/monitoring/response/InfoResponse.java
deleidos/de-pipeline-tool
apache-2.0
1,247
46
codeparrot/github-code
4f5dd55ae55b1ee55804a172c9a27331343a763fd725c7b1c2d4c583d275a3f0
using EnsureThat; using LibGit2Sharp; using System; using System.Collections.Generic; using System.Linq; namespace GitStats.Console { internal class CouplingAnalyser : GitAnalyser { //What files are always checked in with each other? public void Analyse(string gitPath) { va...
C#
GitStats.Console/CouplingAnalyser.cs
rbanks54/GitStats
apache-2.0
5,710
147
codeparrot/github-code
c22f32c72ced805b775ce5f5261b1cf8698c8884da057eb8feebff73f4e2a508
package uk.ac.manchester.cs.openphacts.queryexpander.queryLoader; import java.util.List; import java.util.Set; import org.bridgedb.uri.tools.GraphResolver; import org.bridgedb.utils.Reporter; import static org.junit.Assert.*; import org.junit.Test; import uk.ac.manchester.cs.openphacts.queryexpander.QueryUtils; import...
Java
query.expander.implementation/test/uk/ac/manchester/cs/openphacts/queryexpander/queryLoader/OpsReplacemeentTest.java
openphacts/queryExpander
apache-2.0
1,764
49
codeparrot/github-code
4dfdd5ca92be54713dd2d9fd6aabc82ea5a4950d0dbc5d10df54000e1aa3ea19
/* * Copyright 2000-2016 JetBrains s.r.o. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agre...
Java
java/java-impl/src/com/intellij/codeInspection/util/IteratorDeclaration.java
youdonghai/intellij-community
apache-2.0
7,121
173
codeparrot/github-code
e185bdc57eee38226dc0947ff43aff56f1fa7e5f88559868b231615a5bb08fb3
package com.xidian.yetwish.reading.ui; import android.content.Context; import android.content.Intent; import android.os.Bundle; import android.os.Handler; import android.os.Message; import com.xidian.yetwish.reading.R; import com.xidian.yetwish.reading.framework.utils.SharedPreferencesUtils; import com.xidian.yetwish...
Java
reading/src/main/java/com/xidian/yetwish/reading/ui/SplashActivity.java
yetwish/Reading
apache-2.0
1,907
65
codeparrot/github-code
caa1a7c4ac487dac71cf52c5fa88c121b8af64c6c92e072acec977fc9195ce93
/* Web Polygraph http://www.web-polygraph.org/ * Copyright 2003-2014 The Measurement Factory * Licensed under the Apache License, Version 2.0 */ #include "base/polygraph.h" #include "xstd/h/iostream.h" #include "xstd/h/string.h" #include "xstd/CpuAffinitySet.h" static std::ostream &operator <<(std::ostream &...
C++
src/xstd/CpuAffinitySet.cc
albertok/web-polygraph
apache-2.0
2,439
87
codeparrot/github-code
1ef258ab3e4f00da37f5c08afb24bc7c36a89e565dc098955812f1dcc30e2101
/* * Copyright 2011 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
platform-camel/core/src/main/java/org/openehealth/ipf/platform/camel/core/management/ProcessorManagementNamingStrategy.java
krasserm/ipf
apache-2.0
2,034
56
codeparrot/github-code
c28d6f1657e5fdf7633aaa0bbdf908478036e12b736dd3091434095d4ede2508
=head1 LICENSE Copyright [1999-2015] Wellcome Trust Sanger Institute and the EMBL-European Bioinformatics Institute Copyright [2016-2021] EMBL-European Bioinformatics Institute Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obta...
Perl
users/modules/EnsEMBL/Users/Command/Account/User/Consent.pm
Ensembl/public-plugins
apache-2.0
1,664
45
codeparrot/github-code
68dfb7a6295d00e56152bb337ef7ec52360b28103af0cc9184d3968a8f24de21
#!/bin/bash - ##################################################################### # # Linux on Hyper-V and Azure Test Code, ver. 1.0.0 # Copyright (c) Microsoft Corporation # # All rights reserved. # Licensed under the Apache License, Version 2.0 (the ""License""); # you may not use this file except in compliance wi...
Shell
WS2012R2/lisa/remote-scripts/ica/utils.sh
senugala/lis-test
apache-2.0
54,129
2,052
codeparrot/github-code
bef2e1b9b2adb8f200f2b3fe8e0a4e1855bfae50c4df3c29e1105d6e8e168c0a
/* * Copyright 2011 Simple Finance, 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 agree...
Scala
src/main/scala/com/banksimple/clipping/ManagementStrategies/SynchronousManagementStrategy.scala
KirinDave/Clipping
apache-2.0
2,786
89
codeparrot/github-code
0f290cf7d1468175b2f9be60ec8a1be2b4718c0bdc6d09b613c6d2a0897c4135
/** * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software distributed under ...
Java
src/main/java/org/assertj/core/util/introspection/PropertySupport.java
bric3/assertj-core
apache-2.0
8,632
206
codeparrot/github-code
70c318e56f87c5832d5a593079b95323719d6838e3a3d684322c7e8fcfaee4cd
/* * Copyright 2012-2013 inBloom, 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 appli...
Java
tools/data-tools/src/org/slc/sli/test/edfi/entities/meta/GradeBookEntryMeta.java
inbloom/secure-data-service
apache-2.0
2,017
80
codeparrot/github-code
dd9a2daca849090121aa533262f3ed18445f69371bbdc9020ab9d585c51c705d
#!/bin/bash source /opt/cpm/bin/common_lib.sh NAMESPACE=${HOSTNAME?} if [[ -v PGDATA_PATH_OVERRIDE ]] then NAMESPACE=${PGDATA_PATH_OVERRIDE?} fi # Set default pgbackrest env vars if not explicity provided set_pgbackrest_env_vars() { if [[ ! -v PGBACKREST_STANZA ]] then export PGBACKREST_STANZA="...
Shell
bin/postgres/pgbackrest.sh
the1forte/crunchy-containers
apache-2.0
4,046
126
codeparrot/github-code
626ea90b16b4299e3d0eacdf4021bf2e6f8b259e2d9cd094ca0a35c7a76ed6ab
using Motomatic.Source.Automating; using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text.RegularExpressions; namespace Motomatic.Source.Storage { class Script { const string AHK_EXPRESSION = "([A-z0-9]*)[:]{0,}=(.*)"; string _Code; publ...
C#
Projects/Windows Forms/Motomatic/Motomatic/Source/Storage/Script.cs
TheCharmingCthulhu/CSharp
apache-2.0
1,510
56
codeparrot/github-code
0aa9f957a5bff0e22e982515f1b6cc0501482890440fb02468830ba8b51985e8
var http=require('http'); var url = require('url') var httpget = function ( url ) { return new Promise(( resolve,reject)=>{ http.get( url ,function(req,res){ var html=''; req.on('data',function(data){ html+=data; }); req.on('end',functi...
JavaScript
httpclient.js
17golang/nodejsstudy
apache-2.0
2,282
120
codeparrot/github-code
3bca31ce393e9ac2ec7b337fa7ac8fcc6fba366ca82f63c00cbfed56bfadd210
import {rnaPlot} from './rnaplot.js'; export function rnaTreemapChart() { var width = 550; var height = 400; function rnaTreemapNode(selection) { // create a background rectangle for each RNA structure selection.each(function(d) { d3.select(this) .attr('transform', ...
JavaScript
app/scripts/rnatreemap.js
pkerpedjiev/fornac
apache-2.0
2,511
84
codeparrot/github-code
d01e96c12c87b1cad3899cf110d4ceed29016b3eb44481ea439b4aae905fc25a
package blended.jms.utils.internal import akka.actor.{Actor, ActorRef, Cancellable, Props} import blended.jms.utils._ import blended.util.logging.Logger import javax.jms.Connection import scala.concurrent.ExecutionContext import scala.concurrent.duration._ import scala.util.control.NonFatal object JmsConnectionContr...
Scala
blended.jms.utils/src/main/scala/blended/jms/utils/internal/JmsConnectionController.scala
woq-blended/blended
apache-2.0
2,504
81
codeparrot/github-code
1922135b85bd7532ebf2c7ebfcf9a1faab3b57565939ba4e626003928145b051
package rmi; import java.rmi.RemoteException; import java.rmi.registry.LocateRegistry; import java.rmi.registry.Registry; import java.rmi.server.UnicastRemoteObject; public class MyRemoteClass implements MyRemoteInterface { public String[] sayYourName(String name) throws RemoteException { System.err.pri...
Java
weibo/src/main/java/rmi/MyRemoteClass.java
myrosicky/projects
apache-2.0
932
33
codeparrot/github-code
ba5773f95b2c0122c0359a13b3e2f93573e8e6c0c199ef3386ea8a7b2cedd0f9
/* * Copyright (C) 2014 - 2019 Dennis Vriend <https://github.com/dnvriend> * Copyright (C) 2019 - 2021 Lightbend Inc. <https://www.lightbend.com> */ package akka.persistence.jdbc.serialization import akka.NotUsed import akka.persistence.jdbc.util.TrySeq import akka.persistence.journal.Tagged import akka.persistenc...
Scala
core/src/main/scala/akka/persistence/jdbc/serialization/PersistentReprSerializer.scala
dnvriend/akka-persistence-jdbc
apache-2.0
2,054
60
codeparrot/github-code
e3629d81b1f4a35423a66f6742818c3691c662dfb40e4739c8e2f13d43039838
package org.apereo.cas.impl.calcs; import org.apereo.cas.api.AuthenticationRiskEvaluator; import org.apereo.cas.api.AuthenticationRiskScore; import org.apereo.cas.authentication.Authentication; import org.apereo.cas.authentication.CoreAuthenticationTestUtils; import org.apereo.cas.config.CasCoreAuthenticationConfigura...
Java
support/cas-server-support-electrofence/src/test/java/org/apereo/cas/impl/calcs/DateTimeAuthenticationRequestRiskCalculatorTests.java
gabedwrds/cas
apache-2.0
5,383
112
codeparrot/github-code
24f974d86a789df0909917999819a40e26c0957d320a265c299ef920d1afb04b
/* * 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 ma...
Java
Source/Plugins/Core/com.equella.core/src/com/tle/web/copyright/AbstractCopyrightFilestoreFilter.java
equella/Equella
apache-2.0
4,308
120
codeparrot/github-code
cc2591a7b9a9f540b26c9e779b02cdb6de9dd8a1d0f246f38410629767248c9f
<!DOCTYPE html > <html> <head> <meta http-equiv="X-UA-Compatible" content="IE=edge" /> <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" /> <title>Spark NLP 3.4.2 ScalaDoc - com.johnsnowlabs.nlp.DocumentAssembler</title> ...
HTML
docs/api/com/johnsnowlabs/nlp/DocumentAssembler$.html
JohnSnowLabs/spark-nlp
apache-2.0
52,685
892
codeparrot/github-code
79829ca56551d700ef5595ea09a3a990ef067318a8f35f69099ac2927ee2f689
<?php namespace DCarbone\PHPFHIRGenerated\R4\FHIRResource\FHIRDomainResource; /*! * This class was generated with the PHPFHIR library (https://github.com/dcarbone/php-fhir) using * class definitions from HL7 FHIR (https://www.hl7.org/fhir/) * * Class creation date: December 26th, 2019 15:44+0000 * * PHPFHIR C...
PHP
src/DCarbone/PHPFHIRGenerated/R4/FHIRResource/FHIRDomainResource/FHIRSpecimenDefinition.php
dcarbone/php-fhir-generated
apache-2.0
40,612
989
codeparrot/github-code
1cfd39ce9ed665ce8a8d2540992090dc88b712c572e2a5a8aea5cd115383752c
# Copyright (C) 2014 Universidad Politecnica de Madrid # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable la...
Python
keystone/contrib/oauth2/validator.py
ging/keystone
apache-2.0
16,189
360
codeparrot/github-code
b78a6f4ab364f0f26154fa94e9c15d47de2918979e4284f8a16bc412b039950f
/* * Copyright 2006-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 app...
Java
core/citrus-api/src/main/java/com/consol/citrus/validation/DefaultEmptyMessageValidator.java
christophd/citrus
apache-2.0
2,319
59
codeparrot/github-code
a7f05032f6b4851e5583768aad6c55ba2dfceff9608580f3598a46891fe00835
/* * 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
core/src/main/java/org/apache/carbondata/core/datamap/DataMapStoreManager.java
jatin9896/incubator-carbondata
apache-2.0
23,372
621
codeparrot/github-code
d1d6ced93f4741ede41be93fc27d24438623abb27dc18f731195c3b4e09a5333
package com.getroadmap.r2rlib.models; import org.junit.Test; import static org.hamcrest.core.Is.is; import static org.junit.Assert.assertThat; /** * Created by jan on 28/08/2017. * test dayflag bitwise and operator */ public class DayFlagsTest { @Test public void isSunday() throws Exception { Day...
Java
library/src/test/java/com/getroadmap/r2rlib/models/DayFlagsTest.java
roadmaptravel/Rome2RioAndroid
apache-2.0
2,022
70
codeparrot/github-code
8f68b4e1c2516790347c0b41db7b09e0bc62a62eba908b0f583be57549697c17
# -*- coding: utf-8 -*- # # File: src/webframe/management/commands/pref.py # Date: 2020-04-22 21:35 # Author: Kenson Man <kenson@kenson.idv.hk> # Desc: Import / Create / Update / Delete preference # from django.conf import settings from django.contrib.auth import get_user_model from django.core.management.base import B...
Python
management/commands/pref.py
kensonman/webframe
apache-2.0
18,742
446
codeparrot/github-code
7990fb3a659f50785152e6e16bb2a3b2b9ca359fd635b458f181f3a6859cf793
// -------------------------------------------------------------------------------------------------------------------- // <copyright file="HtmlFeatureFormatter.cs" company="PicklesDoc"> // Copyright 2011 Jeffrey Cameron // Copyright 2012-present PicklesDoc team and community contributors // // // Licensed under ...
C#
src/Pickles/Pickles/DocumentationBuilders/HTML/HtmlFeatureFormatter.cs
ludwigjossieaux/pickles
apache-2.0
4,198
111
codeparrot/github-code
c9fd01d8e4e20ba203cf3b20099ef1461f33a93e151eef845d63ad23e675c913
'use strict'; /** * Configuration options for Ember CLI App used to manage broccoli build tree for DataHub web. * Returns a method to import build dependencies and an options * object with configuration attributes * * @param {string} env current build application environment * @returns { options: object } */ m...
JavaScript
datahub-web/configs/ember-cli-build-options.js
mars-lan/WhereHows
apache-2.0
2,560
103
codeparrot/github-code
eb01afd04e49152eb90a10db1c8bc03966557f68f70544a5b84e53ab1c9da8c7
/* * Copyright 2016 Crown Copyright * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed...
Java
stroom-core-client/src/main/java/stroom/util/client/JSONUtil.java
gchq/stroom
apache-2.0
2,742
97
codeparrot/github-code
3d20ded3ac8f14ed3d7c52b5700a5c167a965e1abc15710a7c9fffc1f71c0a8c
package com.nbsp.materialfilepicker.ui; import android.content.Context; import android.os.Bundle; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import androidx.annotation.NonNull; import androidx.annotation.Nullable; import androidx.fragment.app.Fragment; import androidx...
Java
library/src/main/java/com/nbsp/materialfilepicker/ui/DirectoryFragment.java
nbsp-team/MaterialFilePicker
apache-2.0
3,395
112
codeparrot/github-code
2c1edcdc32d3489139bfa18caed48ad21bad5943cac11875ec89e696cae5829e
/* * Copyright 2011 Vasily Shiyan * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to...
Java
src/main/java/see/evaluation/processors/AggregatingProcessor.java
xicmiah/see
apache-2.0
1,669
52
codeparrot/github-code
c9d3269828a9b7bf6cbf6f56b67fb6de359dd2bd4080a7bb46228eaea41b5384
var Canvas = require('canvas'); function generateCode() { return ('' + Math.random()).substr(3, 6); } function generateImage(req, res, params) { params.color = params.color || 'rgb(0, 0, 0)'; params.background = params.background || 'rgb(255, 255, 255)'; params.width = params.width || 250; params.height = p...
JavaScript
kaptcha.js
klesh/kaptcha
apache-2.0
1,961
67
codeparrot/github-code
54845c1c825a343e842d176019abf40f326f5c4a256b1090bc30fe8017cc29e4
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Diagnostics; using System.Drawing; using System.Linq; using System.Reflection; using System.Text; using System.Threading; using System.Threading.Tasks; using System.Windows.Forms; using Next.Accounts_Client.App...
C#
Next.Accounts Client/Form1.cs
maximgorbatyuk/Next.Accounts-Server
apache-2.0
13,001
365
codeparrot/github-code
0ff3d0802a1ad2929e343a86ca9bacd212613f17742fcd65790faec8b7e07d3b
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. using Microsoft.AspNetCore.Authentication.Cookies; using Microsoft.AspNetCore.Builder; using Microsoft.AspNetCore.Hosting; using Microsoft.AspNetCore.Mvc; using Microsoft.Extensions...
C#
src/Mvc/test/WebSites/RazorPagesWebSite/StartupWithBasePath.cs
aspnet/AspNetCore
apache-2.0
1,978
55
codeparrot/github-code
f01f9269027bc1249a08aca3bc2569e475e5b05cac60d3592ee3f7a00b94342e
package Armadillo.Communication.Impl.Distributed; import java.util.ArrayList; import java.util.List; import java.util.Map; import java.util.Map.Entry; import java.util.Set; import java.util.concurrent.ConcurrentHashMap; import org.joda.time.DateTime; import org.joda.time.Minutes; import org.joda.time.Seconds...
Java
Communication/src/main/java/Armadillo/Communication/Impl/Distributed/DistControllerToWorkerHeartBeat.java
camachohoracio/Armadillo.Core
apache-2.0
15,386
414
codeparrot/github-code
3a951a9db3a5e97738a192fe0d6c8fee304241e63d946ef4b164ced7323d655c
# -*- coding: UTF-8 -*- import hashlib import base64 import datetime import urllib2 import json class TemplateSMS: account_sid = '' account_token = '' app_id = '' server_ip = '' server_port = '' soft_version = '' timestamp = '' def set_account(self, account_sid, token): self.a...
Python
admin/sms/sdk.py
davidvon/pipa-pay-server
apache-2.0
2,956
82
codeparrot/github-code
d62a7ee3dc0ba26d171e64cb9af8944860871e2a4fbd9a03805d6c51e05923ba
package com.faravy.icare; import java.util.ArrayList; import android.app.ActionBar; import android.app.Activity; import android.content.ContentProviderOperation; import android.content.Intent; import android.content.OperationApplicationException; import android.graphics.Color; import android.graphics.drawable.ColorDr...
Java
iCareFaravy/src/com/faravy/icare/ViewDoctorActivity.java
FTFL02-ANDROID/Faravy
apache-2.0
5,472
177
codeparrot/github-code
7d9458b9d59c8800e7ae899a91727b8338a3ed85bf853f7c0db2e83e886d0cb2
(function($, utils, $HELPER){ var $app = window.vgrome; $app.controller('CalendarCtrl', ['$scope', '$compile', 'lang', 'apiProvider', '$controller', function ($scope, $compile, $lang, $apiProvider, $controller) { $.extend(this, $controller('EntityCtrl', {$scope: $scope})); $sco...
JavaScript
ui/app/controllers/calendar.js
vijay-developer/Chrome-Extension
apache-2.0
10,975
235
codeparrot/github-code
c5e740f711a34dea08456c4584d98f71de3266e1235bacbf09e06401908c4d1f
// Copyright 2012 Google Inc. All Rights Reserved. /** * @fileoverview A class representing operations on binary expressions. */ goog.provide('wgxpath.BinaryExpr'); goog.require('wgxpath.DataType'); goog.require('wgxpath.Expr'); goog.require('wgxpath.Node'); /** * Constructor for BinaryExpr. * * @param {!wg...
JavaScript
third_party/js/wgxpath/binaryExpr.js
vinay-qa/vinayit-android-server-apk
apache-2.0
10,027
335
codeparrot/github-code
a24306e0379c690bfe0823b6ca6378cf8c2c272d36e88c63db32fd1da9bcbfb9
/* * Copyright (C) 2007-2008 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy of * the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by app...
Java
app/src/main/java/jp/sblo/pandora/jota/text/EditableInputConnection.java
jiro-aqua/JotaTextEditor
apache-2.0
4,042
129
codeparrot/github-code
f42e533df537fefa95444f15229d051c05a6b6710a9cee0dd019363d3f5f0ef8
package cz.znj.kvr.sw.exp.java.netty.netty; /* * Copyright 2012 The Netty Project * * The Netty Project licenses this file to you under the Apache License, * version 2.0 (the "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at: * * http://www....
Java
netty-exp/netty5-exp/netty5-datagram-listener-exp/src/main/java/cz/znj/kvr/sw/exp/java/netty/netty/MyEmbeddedEventLoop.java
kvr000/zbynek-java-exp
apache-2.0
7,288
275
codeparrot/github-code
cd4f26f8f4cbfd8980d6df2ee0032c600d6f7f393baf66acd33ad173bf6bf391
// Copyright 2017 Pilosa Corp. // // 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...
GO
cmd/import.go
travisturner/pilosa
apache-2.0
3,454
70
codeparrot/github-code
d72d8251cc4213958fd3d1af5c7c367059ba5116f9305ef81bc1082a2e815790
# python 3 # tensorflow 2.0 from __future__ import print_function, division, absolute_import import os import argparse import random import numpy as np import datetime # from numpy import linalg import os.path as osp import sys cur_dir = osp.dirname(osp.abspath(__file__)) sys.path.insert(1, osp.join(cur_dir, '.')) fr...
Python
src/IRLS_tf_v2.py
wangg12/IRLS_tf_pytorch
apache-2.0
6,061
197
codeparrot/github-code
b6a40f6c5cb693f9b3aea592cc8f87b7e56420261e771122e9747e2ffcf40f2c
/** 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"...
JavaScript
xface-lib/src/cordova/config.js
polyvi/xface-lib
apache-2.0
3,136
99
codeparrot/github-code
ce1c085e9a19c260a975e71ae68e0d48634c1884ea242ca9413f26386f79cfe5
(function() { const MAX_LINE_CHARS = 4000; const RE_WS = /^\s*$/; this.search_panel = function(search, type, handler) { return ( [ ['div', this['advanced_' + type + '_search'](search), 'class', 'advanced-search-controls'], ['div', ['div', 'class', 'panel-search mono...
JavaScript
src/searches/templates.js
operasoftware/dragonfly
apache-2.0
9,438
289
codeparrot/github-code
b2fe7cde8d73fecff9712338a64d3a20ca9a3ee4681b9389d304be62aa931e3c
/* * Copyright 2015 Red Hat, Inc. and/or its affiliates * and other contributors as indicated by the @author tags. * * 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.ap...
Java
hawkular-wildfly-agent/src/main/java/org/hawkular/agent/monitor/extension/RemoteJMXAttributes.java
sekigor/hawkular-agent
apache-2.0
3,027
81
codeparrot/github-code
03639dbfa6792a0b8c2ef39a4defc191754a25cae5137e4047d302c616523975
package org.tll.canyon.service; import java.util.List; import java.util.ArrayList; import org.jmock.Mock; import org.springframework.orm.ObjectRetrievalFailureException; import org.tll.canyon.dao.AssetRoleDao; import org.tll.canyon.model.AssetRole; import org.tll.canyon.service.BaseManagerTestCase; import org.tll.c...
Java
test/service/org/tll/canyon/service/AssetRoleManagerTest.java
clafonta/canyon
apache-2.0
3,376
99
codeparrot/github-code
e17989c59077106a95d75c1725e30aa1b75f13b00652177b6b5c9f1f055d8069
// Copyright 2015, Cyrill @ Schumacher.fm and the CoreStore contributors // // 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 ...
GO
codegen/tableToStruct/tpl/generics.go
postfix/csfw
apache-2.0
6,999
214
codeparrot/github-code
bcbaf898bfae9af79a0b7c5b326985aa9e392f31a5dabc29024cb01cbb4c44e9
import sys import logging import hexdump import vstruct import vivisect import envi import envi.archs.i386 as x86 import envi.archs.amd64 as x64 import sdb from sdb import SDB_TAGS from sdb_dump_common import SdbIndex from sdb_dump_common import item_get_child from sdb_dump_common import item_get_children logging.b...
Python
scripts/sdb_dump_patch.py
williballenthin/python-sdb
apache-2.0
3,397
135
codeparrot/github-code
8543bab3a7ba564fce740c6b545ead25c18f0ec7beb21f395fd44d5e342c542b
package org.bds.lang.nativeMethods.string; import java.io.File; import java.util.ArrayList; import java.util.Collections; import org.bds.lang.Parameters; import org.bds.lang.Type; import org.bds.lang.TypeList; import org.bds.lang.nativeMethods.MethodNative; import org.bds.run.BdsThread; import org.bds.task.Task; impo...
Java
src/org/bds/lang/nativeMethods/string/MethodNative_string_isEmpty.java
leepc12/BigDataScript
apache-2.0
871
37
codeparrot/github-code
0bb32cba6ffcdc63984af723cc6e04766ff03389f7f33ba859fc2c71aea29fda
package com.suscipio_solutions.consecro_mud.Items.BasicTech; import com.suscipio_solutions.consecro_mud.Common.interfaces.CMMsg; import com.suscipio_solutions.consecro_mud.Common.interfaces.PhyStats; import com.suscipio_solutions.consecro_mud.Items.interfaces.Technical; import com.suscipio_solutions.consecro_mud.Items....
Java
com/suscipio_solutions/consecro_mud/Items/BasicTech/GenKineticField.java
ConsecroMUD/ConsecroMUD
apache-2.0
2,625
75
codeparrot/github-code
67ebb30ff52da96aecd4560b7f38312d67791a28d27fa08b16119f768827be59
#ifndef __DFG_SOCIALSERVICE__ #define __DFG_SOCIALSERVICE__ #include "service.h" /** @brief Social service. */ class SocialService : public Service, public gameplay::SocialSessionListener { friend class ServiceManager; public: static const char * getTypeName() { return "SocialService"; } gameplay::...
C
client/source/base/services/social_service.h
reven86/dfg-gameplay
apache-2.0
835
41
codeparrot/github-code
96fa0e41a0a03e7a77c9b2266664870bcdfde072dd23a3c3eb01cf2fd0ca0a35
/* * DBeaver - Universal Database Manager * Copyright (C) 2010-2021 DBeaver Corp and others * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licen...
Java
plugins/org.jkiss.dbeaver.model/src/org/jkiss/dbeaver/model/sql/SQLQueryResult.java
Sargul/dbeaver
apache-2.0
4,467
182
codeparrot/github-code
a0cc520911e82bbaa70d19ae6539c18d72608542d83a9773132adcc482a4f21c
// // Copyright 2013 Pixar // // Licensed under the Apache License, Version 2.0 (the "Apache License") // with the following modification; you may not use this file except in // compliance with the Apache License and the following modification to it: // Section 6. Trademarks. is deleted and replaced with: // ...
C++
python/osd/subdivider.cpp
takahito-tejima/OpenSubdiv-exp
apache-2.0
4,290
132
codeparrot/github-code
22993218ad86aad158c14a94f3b0476ac1ab826175a26e0955fdc39327438f2d
package handlers import ( "errors" "fmt" "net/http" "code.cloudfoundry.org/lager" "github.com/gorilla/mux" "github.com/pivotal-cf/brokerapi/v8/domain" "github.com/pivotal-cf/brokerapi/v8/domain/apiresponses" "github.com/pivotal-cf/brokerapi/v8/middlewares" "github.com/pivotal-cf/brokerapi/v8/utils" ) const ...
GO
handlers/last_binding_operation.go
pivotal-cf/brokerapi
apache-2.0
2,214
69
codeparrot/github-code
3f349395841a2aa9e27a92c8cd0b7bae829a7ca55c573d8a23f7e157d64fca3b
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. // SPDX-License-Identifier: Apache-2.0 // snippet-start:[kms.go-v2.EncryptData] package main import ( "context" b64 "encoding/base64" "flag" "fmt" "github.com/aws/aws-sdk-go-v2/config" "github.com/aws/aws-sdk-go-v2/service/kms" ) // KMSEncry...
GO
gov2/kms/EncryptData/EncryptDatav2.go
awsdocs/aws-doc-sdk-examples
apache-2.0
2,022
72
codeparrot/github-code
3c8f60b061cdd3c41f98e340f2f9d1b5d60fdc669925fd1e860e8addec6c4823
package nam.model.transactionScope; import java.io.Serializable; import org.aries.ui.AbstractListObject; import nam.model.TransactionScope; public class TransactionScopeListObject extends AbstractListObject<TransactionScope> implements Comparable<TransactionScopeListObject>, Serializable { private TransactionSc...
Java
nam/nam-view/src/main/java/nam/model/transactionScope/TransactionScopeListObject.java
tfisher1226/ARIES
apache-2.0
1,750
74
codeparrot/github-code
e3ca0cfba58497541e9ed400c35870cd6385968d7c90efb3db748c1f21aa8a83
# Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under t...
Python
keystone/hacking/checks.py
UTSA-ICS/keystone-kerberos
apache-2.0
15,958
423
codeparrot/github-code
67848abab848bd78f568226869b4d87a21ec1e072650f1938b8b2aaf54306c1f
package org.docksidestage.oracle.dbflute.bsentity; import java.util.List; import java.util.ArrayList; import org.dbflute.dbmeta.DBMeta; import org.dbflute.dbmeta.AbstractEntity; import org.dbflute.dbmeta.accessory.DomainEntity; import org.docksidestage.oracle.dbflute.allcommon.DBMetaInstanceHandler; import org.docksi...
Java
src/main/java/org/docksidestage/oracle/dbflute/bsentity/BsVendor$Dollar.java
dbflute-test/dbflute-test-dbms-oracle
apache-2.0
6,829
189
codeparrot/github-code
6ac1cd39e2d2d8d87cfa8c1f3f5d2e0bb651570f8231c44f9ea6e022366c8a7f
package com.didichuxing.doraemondemo.dokit; import android.content.Context; import android.util.DisplayMetrics; import android.view.Gravity; import android.view.LayoutInflater; import android.view.View; import android.view.WindowManager; import android.widget.CompoundButton; import android.widget.FrameLayout; import a...
Java
Android/app/src/main/java/com/didichuxing/doraemondemo/dokit/SimpleDokitView.java
didi/DoraemonKit
apache-2.0
3,590
118
codeparrot/github-code
f108a7d3d2bd5c4d97ffc1f872c80e8c60eb4cd8b3675721f6a11a93d4a59970
# -*- encoding: utf-8 -*- """ lunaport.dao.line ~~~~~~~~~~~~~~~~~ Storage interaction logic for line resource. """ import pprint pp = pprint.PrettyPrinter(indent=4).pprint from sqlalchemy import text, exc from ..wsgi import app, db from .. domain.line import LineBuilder, LineAdaptor from exceptions impo...
Python
lunaport_server/dao/path.py
greggyNapalm/lunaport_server
apache-2.0
4,535
165
codeparrot/github-code
f3602e74e5440998a7bdd6ef7755d8ef60f2c265e70fac9055d0d62e68108988
# Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the...
Python
pifpaf/drivers/ceph.py
sileht/pifpaf
apache-2.0
5,134
162
codeparrot/github-code
21884dcaf166b7a8120495ec2281987a186f8545a0e745d6ac34659769a58f24
package com.planet_ink.coffee_mud.Commands; import com.planet_ink.coffee_mud.core.interfaces.*; import com.planet_ink.coffee_mud.core.*; import com.planet_ink.coffee_mud.Abilities.interfaces.*; import com.planet_ink.coffee_mud.Areas.interfaces.*; import com.planet_ink.coffee_mud.Behaviors.interfaces.*; import com...
Java
com/planet_ink/coffee_mud/Commands/Value.java
robjcaskey/Unofficial-Coffee-Mud-Upstream
apache-2.0
3,508
95
codeparrot/github-code