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
fff034c11947e811f14b7e37cae3dfbea721f1ed57c018927f656aa02286d1fb
<?php /** * Classe SqlConnection * @role: Gestion de la connexion a une base de donnée * @creator: Balan David * @updated: 01/06/2013 **/ class SqlConnection{ private static $_connections; private $_con=null; private $_stm=null; public $name = ''; private function __construct($co...
PHP
Lib/Edely/Tool/SqlConnection.class.php
neoPix/Edely
apache-2.0
3,061
127
codeparrot/github-code
ec02ac60906f865b5d6704eb7695b94165d38f2eedf756e5f066ded068876a78
/* * Copyright 2016-present Open Networking 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 appli...
Java
incubator/api/src/main/java/org/onosproject/incubator/net/config/basics/McastConfig.java
sdnwiselab/onos
apache-2.0
2,779
102
codeparrot/github-code
ee5929e9eebe3ab37245b1c4339817c54b9aead043e375eb3fcc907a0000f34a
/** * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may...
Java
src/main/java/io/jafka/console/ChecksumMessageFormatter.java
adyliu/jafka
apache-2.0
1,417
46
codeparrot/github-code
4d51cfe14d064f46a2d16e4c6f6b56277e9a174af777cbbf22f67089254cfb4a
/* * Copyright © 2009 HotPads (admin@hotpads.com) * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable...
Java
datarouter-instrumentation/src/main/java/io/datarouter/instrumentation/maven/LibraryPublisher.java
hotpads/datarouter
apache-2.0
992
34
codeparrot/github-code
89b83bf5c74d5293164e474c8c8037ac5adfd6f7c01b60ac7826d1d73eda19ac
/* * Copyright (C) 2015 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/com/example/android/tvleanback2/data/VideoItemLoader.java
SeanPONeil/HyprMX-AndroidTV-Leanback
apache-2.0
1,807
67
codeparrot/github-code
330cfcd36e7d64a26993a10dce664804449faaec9b9b72c2db11f075baabf4a8
/* * Copyright 2012 Nodeable 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 l...
Java
core/src/main/java/com/streamreduce/core/model/SystemInfo.java
StreamReduce/streamreduce-core
apache-2.0
1,682
62
codeparrot/github-code
4dd85bc183b5887e7d3b9d3787e51de2c6a6a94eaf09a9a17c9e0eb0fb454693
/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2014 QuantConnect 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 ...
C#
Engine/Engine.cs
berkaybasoz/algo_trade
apache-2.0
20,718
376
codeparrot/github-code
4d8165b0c20ad0c1bf7832ff3e6076f9e180f47938ba6a5e8153010f289889f3
/* * 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 ma...
Java
lib/server-test/src/test/java/org/apache/olingo/server/core/deserializer/xml/ODataXMLDeserializerActionParametersTest.java
AperIati/olingo-odata4
apache-2.0
13,668
304
codeparrot/github-code
5ffd2a29dfea7a1b5f0f7636da7aec2652c5d43713bc15a59925ccbe0eb6ea12
namespace King.Route.Unit.Test { using King.Route; using NUnit.Framework; using System; [TestFixture] public class RouteAttributeTests { [Test] public void Constructor() { new RouteAliasAttribute(Guid.NewGuid().ToString()); } [Test] ...
C#
King.Route.Unit.Test/RouteAliasAttributeTests.cs
jefking/King.Route
apache-2.0
714
33
codeparrot/github-code
f71c566097bc3d91a3a7fe7ae05af66bb167d4b61567fce460b4bb96bfb775d5
/* * Copyright 2014 NAVER 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 i...
Java
agent/src/test/java/com/navercorp/pinpoint/plugin/jackson/ObjectReaderIT.java
sjmittal/pinpoint
apache-2.0
3,772
97
codeparrot/github-code
107e63a55307f92c3cbaefbd7b97cafee8658b5f10d6d02949cce4e71d9ecc59
#!/usr/bin/env python from ctypes import * from ctypes.util import find_library from os import path import sys __all__ = ['liblinear', 'feature_node', 'gen_feature_nodearray', 'problem', 'parameter', 'model', 'toPyModel', 'L2R_LR', 'L2R_L2LOSS_SVC_DUAL', 'L2R_L2LOSS_SVC', 'L2R_L1LOSS_SVC_DUAL', ...
Python
classifier/liblinear.py
WangWenjun559/Weiss
apache-2.0
9,368
305
codeparrot/github-code
8b61f30af7cafa843c9f6d4f85e4cd8bb8990a52170e68f9e1d8a93362863629
<?php require_once('../../../include/var_global.php'); require_once('../../../include/bdatos.php'); require_once('../../../include/log.php'); require_once('../../../include/fecha_hora.php'); require_once('../../../include/clasesLepra.php'); require_once('tcpdf_include.php'); $idEstudioBac = $_GET["idEstudioBac"...
PHP
content/pdf/imprimibles/respuestaBac.php
p4scu41/sail
apache-2.0
9,000
282
codeparrot/github-code
60137ad1b5cae7dce9bc2404ebfe063fa4da9a4f14f9407819e9aa0aa4d3ecc9
package io.sunflower.json; import com.fasterxml.jackson.databind.PropertyNamingStrategy; import com.fasterxml.jackson.databind.cfg.MapperConfig; import com.fasterxml.jackson.databind.introspect.AnnotatedField; import com.fasterxml.jackson.databind.introspect.AnnotatedMethod; import com.fasterxml.jackson.databind.intro...
Java
sf-json/src/main/java/io/sunflower/json/AnnotationSensitivePropertyNamingStrategy.java
hixuym/sf-framework
apache-2.0
2,746
66
codeparrot/github-code
b767dfc1fd3f8b86b2fcc53b491151db7d7348e7b815a73b80781c97c21809ee
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Microsoft.Office.Interop.Access.Dao; using System.Data.Common; using System.Data.OleDb; using System.Data; namespace LearningFieldMDB { class Program { static void Main(string[] ar...
C#
LearningFieldMDB/LearningFieldMDB/Program.cs
diegomarcello/LearningFieldMDB
apache-2.0
2,125
65
codeparrot/github-code
d27e1746ff666762a5f77c195e7849381c5ba5c5549231af2de586989a62ee65
# 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
ironic_inspector/plugins/local_link_connection.py
openstack/ironic-inspector
apache-2.0
6,493
166
codeparrot/github-code
6d48f10254f328f4da02393afd993f09605cb09bd9b1d60a437ba137e7294755
// (c) 2017 uchicom package com.uchicom.jl.action; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.io.IOException; /** * @author uchicom: Shigeki Uchiyama * */ public class ProcessActionListener implements ActionListener { private String[] command; public Proce...
Java
src/main/java/com/uchicom/jl/action/ProcessActionListener.java
uchicom/jl
apache-2.0
815
34
codeparrot/github-code
71dfd7ad86846fc22e82d4499c5e6bda13bdf93dfef375aa44fd0ed3fb23fd47
package com.kwala.app.filters; import android.app.Fragment; import android.content.DialogInterface; import android.content.Intent; import android.os.Bundle; import android.support.annotation.Nullable; import android.support.v7.widget.RecyclerView; import android.util.Log; import android.view.LayoutInflater; import and...
Java
Kwala/app/src/main/java/com/kwala/app/filters/FiltersFragment.java
KwalaGroup/Android-Client
apache-2.0
6,822
186
codeparrot/github-code
77f711daaafccbcc911f0363d5d726ee5572ad751d1075e338b99a49c4e24f44
package com.udacity.capstone.ui; import android.content.Context; import android.graphics.Rect; import android.support.annotation.DimenRes; import android.support.annotation.NonNull; import android.support.v7.widget.RecyclerView; import android.view.View; /** * Created by mangesh on 14/1/17. */ public class ItemOffs...
Java
app/src/main/java/com/udacity/capstone/ui/ItemOffsetDecoration.java
MangeshKadam/Capstone-Project
apache-2.0
953
32
codeparrot/github-code
034607a16d7958f435a7be2b1a09922e2055f4ca68bdf14ee47d78a64ba99628
"""The dhcp integration.""" from abc import abstractmethod from datetime import timedelta import fnmatch from ipaddress import ip_address as make_ip_address import logging import os import threading from aiodiscover import DiscoverHosts from aiodiscover.discovery import ( HOSTNAME as DISCOVERY_HOSTNAME, IP_AD...
Python
homeassistant/components/dhcp/__init__.py
Danielhiversen/home-assistant
apache-2.0
13,216
410
codeparrot/github-code
5efa7f0c7ab4d5ace898cd924fd0069f343c0ef100711eac6fab1a6dd9dc4c85
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace Console2.From_076_To_100 { public class _085_MinTriangle { /* * Given a triangle, find the minimum path sum from top to bottom. Each step you may move to adjacent numbers on the row below. ...
C#
Console/Console2/From_076_To_100/085_MinTriangle.cs
zduan001/BusAroundMe
apache-2.0
2,294
71
codeparrot/github-code
cfdd059a10e1cc3d8d9d76d1bbcac4e231d30f132e01b84ae25323f53d167cb1
#include "pch_script.h" #include "phrasedialog.h" #include "phrasedialogmanager.h" #include "gameobject.h" #include "ai_debug.h" #include "ai_space.h" #include "script_engine.h" #include "script_game_object.h" #include "actor.h" SPhraseDialogData::SPhraseDialogData() { m_PhraseGraph.clear(); m_iPriority = 0; }...
C++
code/engine/xrGame/PhraseDialog.cpp
Im-dex/xray-162
apache-2.0
11,427
317
codeparrot/github-code
b5d992e5dc993f5d1b90bef854d7e58b0c9e87771982746b1e4c9b3a5f8f7642
package vision.apollo; import java.io.Serializable; public class SimpleToken implements Serializable { /** * 用户名 */ private String userName; /** * 创建时间戳,毫秒 */ private long timeStamp; public SimpleToken() { } public SimpleToken(String userName, long timeStamp) { ...
Java
sourcecode/simpleToken/src/main/java/vision/apollo/SimpleToken.java
czlovewyw/mytest
apache-2.0
901
47
codeparrot/github-code
b86a9526625afd91e9c4552d53f6e6efefeabd1666f6d49e5c7a5cab4d41204f
/** * Copyright (C) 2012 White Source Ltd. * <p> * 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 * <p> * http://www.apache.org/licenses/LICENSE-2.0 * <p> * Unless required by applicabl...
Java
wss-agent-client/src/main/java/org/whitesource/agent/client/WhitesourceService.java
whitesource/agents
apache-2.0
48,161
902
codeparrot/github-code
16fa5a63d5a01c607d980ff0b50387fff6d4e9af1dcdb299fedea534f0d8b19f
package org.kuali.kpme.edo.group; import org.kuali.kpme.core.bo.HrKeyedBusinessObject; import org.kuali.kpme.core.groupkey.HrGroupKeyBo; import org.kuali.kpme.edo.api.group.EdoGroupTracking; import org.kuali.kpme.edo.api.group.EdoGroupTrackingContract; import org.kuali.rice.core.api.mo.ModelObjectUtils; import com.go...
Java
edo/impl/src/main/java/org/kuali/kpme/edo/group/EdoGroupTrackingBo.java
kuali/kpme
apache-2.0
4,849
157
codeparrot/github-code
1771e2f6811bcbc5ab75ae508cdfca8c2295857c41d7c6bc127c2318bc591a87
/** * Copyright (C) 2012 - present by OpenGamma Inc. and the OpenGamma group of companies * * Please see distribution for license. */ package com.opengamma.analytics.financial.model.volatility; import com.opengamma.analytics.math.MathException; import com.opengamma.analytics.math.function.Function1D; import com.op...
Java
projects/analytics/src/main/java/com/opengamma/analytics/financial/model/volatility/GenericImpliedVolatiltySolver.java
McLeodMoores/starling
apache-2.0
7,763
215
codeparrot/github-code
ab9ab66fcc3ae616e734979034714c3ababbc725859fafa7e151de8f0bc445bb
package finloader.loader import java.net.URL import finloader.entities.{ExchangeRate, ExchangeRates} import scala.slick.lifted.TableQuery import scala.slick.jdbc.JdbcBackend.Database import scala.slick.driver.JdbcDriver.simple._ import finloader.{FinloaderUtils, DbUtils} import com.github.tototoshi.csv.{CSVReader, CSV...
Scala
src/main/scala/finloader/loader/ExchangeRatesLoader.scala
paul-lysak/finloader
apache-2.0
2,237
77
codeparrot/github-code
c67bad5bf985f0e09ae7d66fbaebc726ddee5424a20b9711ff0d187bc3dd9d33
package com.github.juanlabrador.panellayout; import android.content.Context; import android.util.TypedValue; import android.view.LayoutInflater; import android.view.View; import android.widget.ImageView; import android.widget.LinearLayout; import android.widget.TextView; /** * Extend Layout is a view with label abov...
Java
panellayout/src/main/java/com/github/juanlabrador/panellayout/ExtendTextLayout.java
juanlabrador/PanelLayout
apache-2.0
2,524
99
codeparrot/github-code
ce65b71bdf6746f98281c27b3f3413063e485ec6281466abc439740c68059909
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <!-- Created by GNU Texinfo 5.2, http://www.gnu.org/software/texinfo/ --> <head> <title>The Red Hat newlib C Library: Introduction</title> <meta name="description" content="The Red Hat newlib C Library: Introd...
HTML
buildtools/gcc-arm-none-eabi-6-2017-q2/share/doc/gcc-arm-none-eabi/html/libc/Introduction.html
ATM-HSW/mbed_target
apache-2.0
3,595
81
codeparrot/github-code
96d41ef0741e30c249eb6fec2c27352fb59385fe33edb090747f143406bfc6fa
#!/bin/bash # Create a release branch for all git repositories initializeWorkingDirAndScriptDir() { # Set working directory and remove all symbolic links workingDir=`pwd -P` # Go the script directory cd `dirname $0` # If the file itself is a symbolic link (ignoring parent directory links), then f...
Shell
script/release/create-release-branches.sh
mswiderski/droolsjbpm-build-bootstrap
apache-2.0
4,146
102
codeparrot/github-code
0af876efb114cbc657a721ec9c9782d0db699cad936bf1a5b7209957b9773a3c
<?php class Donation { public $txn_id; public $payment_status; public $payer_email; public $mc_gross; public $mc_currency; public $dt; public function __construct($donnees = null) { if (is_array($donnees)) $this->constructArray($donnees); } /** * @param array $do...
PHP
class/class.donation.php
atouzard/ALWP-AltisLife-Web-Panel
apache-2.0
1,750
69
codeparrot/github-code
d6753050a219d68d31bcc1f82429617e9f73c873b114c1bbabeda7e6d6dd28d5
package com.stackmob.taskmob; import java.util.Date; import com.stackmob.sdk.model.StackMobModel; public class Task extends StackMobModel { private String name; private Date dueDate; private int priority = 0; private boolean done = false; public Task() { super(Task.class); } public Task(String name, ...
Java
src/com/stackmob/taskmob/Task.java
drapp/TaskMob
apache-2.0
834
55
codeparrot/github-code
e6bb0aff8ca331296de039c1aa81b9169adc13789cc70794b28c9ad729f4b5e6
/* * Copyright (c) 2011-13 Miles Sabin * * 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...
Scala
core/src/test/scala/shapeless/sybclass.scala
non/shapeless
apache-2.0
14,059
506
codeparrot/github-code
e65344d1a10a3b42133c982d1478af3ba1cf7a5e9af3c20d2e6cfae402afb171
import java.util.concurrent.Semaphore; import java.lang.InterruptedException; public class BinarySearchTree<T extends Comparable<T> > extends BinaryTree<T> { public BinarySearchTree(T value) { super(value); myParent = null; } public BinarySearchTree<T> getParent() { return myParent; } public void set...
Java
src/BinarySearchTree.java
jidol/Boggle
apache-2.0
3,037
164
codeparrot/github-code
52e8d21332180a6244af753a26092322505c36db6f2ced7e16812068f9fb0ea5
# VMware vCloud Python helper # Copyright (c) 2014 Huawei, 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 # # Unl...
Python
nova_jacket/virt/jacket/vcloud/vcloud.py
HybridF5/hybrid-jacket
apache-2.0
51,929
1,127
codeparrot/github-code
42106b004d80a73ec82631e65da1b0ddf78b13ea1e03cc6562d1637ecb2d62f3
/* * Copyright (c) 2008-2020, Hazelcast, Inc. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required ...
Java
hazelcast-jet-sql/src/main/java/com/hazelcast/jet/sql/impl/schema/MappingCatalog.java
gurbuzali/hazelcast-jet
apache-2.0
4,573
125
codeparrot/github-code
591f087075916609d484cc78c970cc2c41443a39dd7fad53e56996b6c9a23aad
<?php require_once 'includes/session.php' ?> <?php confirm_logged_in(); ?> <?php include 'includes/header.php'; ?> <header> <div class="container"> <h1 class="left">Simple DTR App</h1> <div class="welcome-message right"> <p>Welcome <?php echo ucfirst($_SESSION['username']); ?></p>...
PHP
query.php
mykhel/DTR
apache-2.0
3,168
92
codeparrot/github-code
f1846d89d502b90bc35ce80df154f23cc76e4b98da960c832a4989f0b800de6e
using System; using System.Drawing; using System.Drawing.Drawing2D; using System.ComponentModel; using System.Xml; namespace Dalssoft.DiagramNet { /// <summary> /// This is the base for all element the will be draw on the /// document. /// </summary> [Serializable] public abstract class BaseElement ...
C#
Control/element/BaseElement.cs
dalssoft/diagramnet
apache-2.0
3,254
174
codeparrot/github-code
907ecf2c21d2775fbe51160f3777abbaffcc5f4d8c3dabaef2244fa57d55405c
#include <bits/stdc++.h> #define EL cerr << endl; #define DB(x) cerr << "#" << (#x) << ": " << (x) << " "; #define DEB(x) cerr << "#" << (#x) << ": " << (x) << endl; #define PR(x) cout << (x) << endl #define X first #define Y second #define PB push_back #define MP make_pair using namespace std; typedef unsigned long ...
C++
Codeforces/Tablecity.cpp
MartinAparicioPons/Competitive-Programming
apache-2.0
884
34
codeparrot/github-code
15902bab98d119777a4fc398050f625608f77b5868962ac374a5dd0235781641
package com.mj.msort.bubblesort.impl; import java.util.Comparator; import java.util.List; import com.mj.msort.Sort; public class BubbleSort implements Sort { protected BubbleSort() { } public <T> void sort(List<T> l , Comparator<? super T> c) { if (l == null || c == null) throw new IllegalArgument...
Java
msort/src/main/java/com/mj/msort/bubblesort/impl/BubbleSort.java
mdkhanga/my-blog-code
apache-2.0
1,329
80
codeparrot/github-code
daaf005105b66d0fa024c6cf855069c51706dbb2963d1820955bc109f5bb3462
""" Validate the integrity of image files In data-release 7 and 8 we had issues with image files that were corrupt. This was causing problems when Omero tried to upload them. This script checks the filetypes specified and reports any that seem corrupt. It does this by attempting to load them usin...
Python
external_tools/src/main/python/omero56/scripts/validate_file_integrity.py
mpi2/PhenotypeData
apache-2.0
6,026
148
codeparrot/github-code
32abe969bae6cea12b6bb67c287e6f942268d87ec38f71ce8511d53e3a5a8767
/*-------------------------------------------------------------------------+ | | | Copyright 2005-2011 the ConQAT Project | | | | Licensed u...
Java
org.conqat.engine.core/src/org/conqat/engine/core/bundle/library/CheckLibraryDescriptorRunner.java
vimaier/conqat
apache-2.0
11,491
311
codeparrot/github-code
5c3e5d4f27451d63b594fce55992b8e99e641d61e907e2a9d37f51961ae18b6d
/* * jQuery Hotkeys Plugin * Copyright 2010, John Resig * Dual licensed under the MIT or GPL Version 2 licenses. * * Based upon the plugin by Tzury Bar Yochay: * http://github.com/tzuryby/hotkeys * * Original idea by: * Binny V A, http://www.openjs.com/scripts/events/keyboard_shortcuts/ */ /* * One small ch...
JavaScript
src/test/webapp/js/jquery.hotkeys.js
Ovea/testatoo
apache-2.0
3,721
111
codeparrot/github-code
f02e3ccf5b8f8daf77e746bfe8b7329c37f828fb6e8af212221ef90625d66b9a
=head1 LICENSE Copyright [1999-2015] Wellcome Trust Sanger Institute and the 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 obtain a copy of the License at http://www.apache.org/licen...
Perl
misc-scripts/xref_mapping/XrefParser/HGNCParser.pm
mjg17/ensembl
apache-2.0
9,217
314
codeparrot/github-code
350d2b904b1ee3967e7c64735dcf80f6f4c38b5330f3ca5e7fa87157d59050c4
/* * This file is part of the swblocks-decisiontree library. * * 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...
Java
core/src/main/java/org/swblocks/decisiontree/tree/GroupEvaluation.java
LogicRunner/swblocks-decisiontree
apache-2.0
3,911
124
codeparrot/github-code
83f61456a7578f50821db5d2e406ba728abdad611cb1a54e8823a52f9f4b6904
package cn.jsprun.domain; public class Subscriptions implements java.io.Serializable { private static final long serialVersionUID = -8584661456579847548L; private SubscriptionsId id; private Integer lastpost; private Integer lastnotify; public Subscriptions() { } public Subscriptions(Subscript...
Java
src/cn/jsprun/domain/Subscriptions.java
TinghuanWang/source
apache-2.0
941
32
codeparrot/github-code
af32f1e2d8a25baf2818a54b2ebca0127a1139b57121a7e272ef87f50fd0efbe
#!/usr/bin/env python3 # -*- coding: utf-8 -*- _author_ = 'Renzhw' import asyncio,logging import aiomysql def log(sql,args=()): logging.info('SQL:%s'%sql) async def create_pool(loop, **kw): logging.info('create database connection pool...') global __pool __pool = await aiomysql.create_pool( ...
Python
www/orm.py
Renzhw/python3
apache-2.0
7,949
230
codeparrot/github-code
719b914ca4d8061f2c2bf14b57d106c3492f3ac4dbb96ce9788a7e67e8db24d4
// Copyright (c) BruTile developers team. All rights reserved. See License.txt in the project root for license information. using System.Collections.Generic; using System.Runtime.Serialization; namespace BruTile.Web { internal class TmsRequestSurrogate : ISerializationSurrogate { #region Implementation...
C#
SharpMap.Layers.BruTile/Utilities/Web/TmsRequestSurrogate.cs
ShammyLevva/FTAnalyzer
apache-2.0
2,292
37
codeparrot/github-code
8d3b251512629c1560dbac524006d9eb34cc9fd168a83fd8b511b203fa966cf7
/** * @author qinding * 2015-6-25下午4:00:18 */ package com.qind.weather.adapter; import java.util.List; import com.qind.weather.R; import android.content.Context; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.BaseAdapter; import android.widget.Te...
Java
src/com/qind/weather/adapter/CityListAdapter.java
CodeReverse/SunshineWeather
apache-2.0
1,407
64
codeparrot/github-code
719c063274a5df80b89ae9394ad17f864953a2233ccec63ae934c544334d417d
/* * Copyright 1999-2011 Alibaba Group Holding Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applica...
Java
druid-1.0.9/src/test/java/com/alibaba/druid/bvt/sql/mysql/MySqlAlterTableTest3.java
xiaomozhang/druid
apache-2.0
1,705
41
codeparrot/github-code
94653bbc3816e3670c874e0bfaad582030fa17ab16ca2b186f344d642241b888
package org.jolokia.jvmagent.handler; /* * Copyright 2009-2013 Roland Huss * * 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 * * U...
Java
agent/jvm/src/main/java/org/jolokia/jvmagent/handler/JolokiaHttpHandler.java
nevenr/jolokia
apache-2.0
17,120
418
codeparrot/github-code
ac9080966d68ea05f0a7d50f2805288be8379a3fdb61829cf1ebf8292ba52bc5
package cn.xishan.oftenporter.demo.core.test1; import cn.xishan.oftenporter.porter.core.annotation.sth.Porter; import cn.xishan.oftenporter.porter.core.advanced.OnPorterAddListener; import cn.xishan.oftenporter.porter.core.bridge.*; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import cn.xishan.oftenporter...
Java
Demo/src/main/java/cn/xishan/oftenporter/demo/core/test1/Main1.java
gzxishan/OftenPorter
apache-2.0
4,460
121
codeparrot/github-code
746fa97c92763e27a1a241a37b5f33a8abd115cf471ae9fb4583fec1cf578a89
var total = 0; function createStringBlob() { var s = "a"; for (var i=0; i<16; i++) { s = s + s; } return s; } function saveSome(coll, start, n ) { for (var i=start; i < start + n; i++) { var o = { a : blob }; if ( i % 4 == 0 ) o.b = blob; if ( i %...
JavaScript
src/test/ed/db/stress/dbblobtest3.js
babble/babble
apache-2.0
1,437
73
codeparrot/github-code
c6c5024a8bc49d0c3609fbecc3a0c5593e3231f4e51f8939c7465b0f6aa884ad
using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations.Schema; namespace NeedDotNet.Server.Domain.Entities { public class Person { public long Id { get; set; } public string PhotoUrl { get; set; } public string FirstName { get; set; } public...
C#
Src/Server/Core/NeedDotNet.Server.Domain/Entities/Person.cs
hnidboubker/NeedDotNet
apache-2.0
1,199
41
codeparrot/github-code
602b0ccaabf3f1ecbce3465447e384b5fe40f75cb4bc4bc079812a2d4571bc93
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>28.7. tokenize — Tokenizer for Python source &mdash...
HTML
Documentation/library/tokenize.html
leesavide/editorial-docs
apache-2.0
18,313
258
codeparrot/github-code
e1b99f00357899be6c945e803ca7673f42451b437903a83f2eaef3df04381de6
#include <stdlib.h> #include <stdio.h> #include "include/clSPARSE-private.hpp" #include "internal/clsparse-internal.hpp" #include "clSPARSE-version.h" int clsparseInitialized = 0; clsparseStatus clsparseGetVersion( cl_uint *major, cl_uint *minor, cl_uint *patch, cl_uint *tweak ) { *major = clsparseVersionMajor; ...
C++
src/library/clsparse-init.cpp
pavanky/clSPARSE
apache-2.0
2,594
103
codeparrot/github-code
ce628e7128bf4a34276794fb9072c502b4c88eac0fed00fea4f2300195bcb103
/* * Copyright (C) 2012 United States Government as represented by the Administrator of the * National Aeronautics and Space Administration. * All Rights Reserved. */ package gov.nasa.worldwind.geom.coords; import gov.nasa.worldwind.avlist.AVKey; import gov.nasa.worldwind.geom.*; import gov.nasa.worldwind.globes.G...
Java
src/main/java/gov/nasa/worldwind/geom/coords/UTMCoordConverter.java
aleo72/ww-ceem-radar
apache-2.0
13,512
358
codeparrot/github-code
35ecf202a970f20fde02bf91d3636d205795ecdfa860cd4da57b761e88296464
using System.Linq; using Microsoft.VisualStudio.Modeling; using NuPattern.Diagnostics; using NuPattern.Runtime.Store.Properties; namespace NuPattern.Runtime.Store { /// <summary> /// Triggers this notification rule whether a <see cref="AbstractElement"/> is added. /// </summary> [RuleOn(typeof(Abstrac...
C#
Src/Runtime/Source/Runtime.Store/Rules/AbstractElementAddRule.cs
NuPattern/NuPattern
apache-2.0
2,147
65
codeparrot/github-code
94f1860152e460d69ffad4f6815cc6a013b50a4ca7d0497311db8cb548d5458d
#!/usr/bin/python import time import telnetlib import re line_pat = re.compile(r'\d+\. (?P<username>[^,]*), id=(?P<id>\d+), steamid=(?P<steamid>\d+), online=(?P<online>True|False), ip=[\d.]*, playtime=(?P<playtime>\d+).*') slot_pat = re.compile(r'Slot \d+: (\d{3}) * (.*)') ban_pat = re.compile(r'^ \d{2}/\d{2}/...
Python
dev/sdtd-eac.py
ratilicus/sdtd
apache-2.0
2,696
90
codeparrot/github-code
2fca41e4c4b897a58e2bb1dabb8bd81e9549ab0f51f4eb4f2a6a4e6cb60ac96c
package io.dropwizard.benchmarks.jersey; import io.dropwizard.jersey.validation.ConstraintMessage; import io.dropwizard.jersey.validation.Validators; import io.dropwizard.logging.BootstrapLogging; import org.glassfish.jersey.process.Inflector; import org.glassfish.jersey.server.model.Invocable; import org.hibernate.va...
Java
dropwizard-benchmarks/src/main/java/io/dropwizard/benchmarks/jersey/ConstraintViolationBenchmark.java
Randgalt/dropwizard
apache-2.0
3,650
106
codeparrot/github-code
d06def77b7ebc8f85a5706537837c05a0cd1bcbfa8c7aa2d32ac71bcfe8756cf
/*global QUnit, sinon */ sap.ui.define([ "sap/ui/unified/ColorPicker", "sap/ui/unified/ColorPickerDisplayMode", "sap/m/InputBase", "sap/m/Label", "sap/m/RadioButtonGroup", "sap/m/RadioButton", "sap/m/Slider", "sap/ui/core/InvisibleText", "sap/ui/qunit/QUnitUtils", "sap/ui/Device", "sap/ui/events/KeyCodes", ...
JavaScript
src/sap.ui.unified/test/sap/ui/unified/qunit/ColorPicker.qunit.js
SAP/openui5
apache-2.0
35,093
971
codeparrot/github-code
a0575c44ea2a8e84fc8c0fad1fcdd98e9ba913a8131b4129698b64eb9845a5b2
import javafx.application.Application; import javafx.event.ActionEvent; import javafx.scene.Scene; import javafx.scene.control.Button; import javafx.scene.control.ListView; import javafx.scene.control.cell.TextFieldListCell; import javafx.scene.layout.VBox; import javafx.stage.Stage; /** * Created by rizkir on 6/8/20...
Java
yt/src/main/java/Test.java
RizReynAl/New-One
apache-2.0
1,113
37
codeparrot/github-code
962d8ca94c30a6d225cf69321a0af03996baafd11dd9c7aa98cd21d88263b1ac
/* * File: notify.h * * Copyright 2013 Heinrich Schuchardt <xypron.glpk@gmx.de> * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * ...
C
src/notify/notify.h
xypron/skyldav
apache-2.0
1,927
61
codeparrot/github-code
35d08d5bd9eb2630c2ace82c61824250fd24ec36e45efc4262507cfabaaa4e93
/* * Copyright Siemens AG, 2014 * * Licensed under the Apache License, Version 2.0 the "License"; * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, sof...
Java
src/main/java/com/siemens/oss/omniproperties/builders/StringArrayFromFile.java
siemens/omniproperties
apache-2.0
1,568
65
codeparrot/github-code
bcbc321a2e1af43d427a0ed1ee32b9750e3549c64e5c10d7bca1408c4da2d2dc
package org.sinouplen.inc.mygesthand.domain; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; import com.fasterxml.jackson.databind.annotation.JsonSerialize; import org.hibernate.annotations.Cache; import org.hibernate.annotations.CacheConcurrencyStrategy; import org.hibernate.annotations.Type; import...
Java
src/main/java/org/sinouplen/inc/mygesthand/domain/Version.java
Sinouplen-Inc/MyGestHand
apache-2.0
2,251
90
codeparrot/github-code
2bf78af21a55f4635ac0b83371384e7d2d0c8e53e65cf64dcf69c9e30da554cb
/* Copyright 2016 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, ...
GO
cmd/kubeadm/app/images/images.go
ibm-contribs/kubernetes
apache-2.0
2,709
71
codeparrot/github-code
e137925cf20b467b5c01df0c22133b4d787cc66dee618c6297b5bab969860f46
/* * 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
src/java/org/apache/ivy/plugins/repository/url/ChainedRepository.java
pantsbuild/ivy
apache-2.0
4,151
116
codeparrot/github-code
cc5d519fbeb92680070b602bd66ab7bfba750a8e72cf5c7965b9c41e072e17bd
/* * Copyright 2010-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" fil...
C
aws-cpp-sdk-appstream/include/aws/appstream/model/ComputeCapacityStatus.h
cedral/aws-sdk-cpp
apache-2.0
4,321
153
codeparrot/github-code
3ba5b57efaa57c4244c205f49c396fa270c8b9faaf64d96b703a997f61b98fa5
package com.josonprog.common.expression.operator; import java.util.Collections; import java.util.HashSet; import java.util.Set; import com.josonprog.common.expression.Constant; import com.josonprog.common.expression.Operand; import com.josonprog.common.expression.Operator; /** * Operator Adapter. * ...
Java
src/java/main/com/josonprog/common/expression/operator/AbstractOperator.java
joson/JCondition
apache-2.0
2,576
105
codeparrot/github-code
7d911aaca91bee700339b561a89407bdc60a45eba304b46d7a50dceca3654329
#pragma once #include <Include/glHeaders.h> #include <GLUtils/GLUtilsDll.h> /*----------------------------------------------------------------------------------------------------------------------* * Instances of this class will be used to easily use texture mapping (2D textures) for OpenGL applications. ...
C
GLUtils/GLTexture.h
Banbury/cartwheel-3d
apache-2.0
1,004
35
codeparrot/github-code
85a2fd96b832caf0e00f98df0e7429a45746e534095a6abb3dbc7ec6d425ab6d
# # Copyright (c) 2008-2015 Citrix Systems, 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 l...
Python
nssrc/com/citrix/netscaler/nitro/resource/config/ns/nspbr6_args.py
mahabs/nitro
apache-2.0
1,047
42
codeparrot/github-code
2acfb0e2d013bf7a2e0c6f2b50801b5f990977ac383efcdf834d9ecbfca6c703
#include "str.h" #include <string.h> #include <algorithm> #include <stdexcept> #include "scope_guard.h" namespace evm { namespace str { string lower(const string& str) { return lower(string(str)); } string lower(string&& str) { transform(str.begin(), str.end(), str.begin(), ::tolower); return str; } ...
C++
common/str.cc
ridewindx/eaglet
apache-2.0
9,374
338
codeparrot/github-code
e1f738fae3e553d0a4bd086407a3dbd2cdbfae57851ce67b066451cdf004179e
/* 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 * di...
Java
src/main/java/org/activiti/engine/impl/cmd/StartProcessInstanceByMessageCmd.java
ahwxl/deep
apache-2.0
3,862
90
codeparrot/github-code
a2d78105ea3c26c152107f5dba4cd75334600aca6d5c6094f40bb197eca0c13b
/* * Copyright 2016 Woonsan Ko * * 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...
Java
src/test/java/com/github/woonsan/jdbc/jcr/impl/SQLQueryUtilsTest.java
woonsan/jdbc-jcr
apache-2.0
4,922
111
codeparrot/github-code
6806bd9cd35b709a5440495da186f065dec15ebbc30a9fb7e5d3696a8f25f8a9
'use strict'; /* global _,minicash */ import Hb from 'handlebars'; import Mn from 'backbone.marionette'; import * as models from 'minicash/models'; import {tr} from 'minicash/utils'; /* ------ UI HELPERS ----- */ /*--------------------------*/ export let UnwrappedView = Mn.View.extend({ onRender() { /...
JavaScript
src/minicash/frontend/src/minicash/views.js
BasicWolf/minicash
apache-2.0
1,823
79
codeparrot/github-code
ae1ed01a00aad8330b94c8d540889b181834902913ec8dd4b631a8987358a442
/* * Copyright (C) 2014-present The openSourcLibrary-2015 Authors * * https://github.com/sdcuike * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/license...
Java
src/main/java/com/doctor/ganymed_ssh2/SSHAgent2.java
sdcuike/openSourcLibrary-2015
apache-2.0
3,663
138
codeparrot/github-code
8f8867ea40eea759b261685a68305caeed349d7fe08755eb6e85a2a53a2771e7
/* * 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
lang/java/reef-examples/src/main/java/org/apache/reef/examples/group/bgd/data/parser/SVMLightParser.java
taegeonum/incubator-reef
apache-2.0
3,300
99
codeparrot/github-code
816ba88ed783b492c0c8cffbed4d775d824ff73bbc0dd191ac3715456410987d
package com.bn.util; import java.util.ArrayList; import java.util.List; import android.database.Cursor; import android.database.sqlite.SQLiteDatabase; public class SQLiteUtil { static String sql; static Cursor cur; static SQLiteDatabase sld; public static void createFirstTime() { try { sld = SQLi...
Java
src/com/bn/util/SQLiteUtil.java
roubofenyong/GridAndWeather
apache-2.0
10,773
476
codeparrot/github-code
d1bd651dbe65dbc207c5f89b0f6d6e87c6705dbc2ed66efadbc4f0a7fbab3648
/* * Copyright 2017-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "licen...
Java
aws-java-sdk-comprehendmedical/src/main/java/com/amazonaws/services/comprehendmedical/AbstractAWSComprehendMedical.java
aws/aws-sdk-java
apache-2.0
6,290
172
codeparrot/github-code
117396bd1c17fb7f6767fba7d5bab0ea27437c2d0ffa73d1dd7e6fdc2e7bffa7
/* * Copyright 2017-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "licen...
Java
aws-java-sdk-iotevents/src/main/java/com/amazonaws/services/iotevents/model/transform/IotEventsInputIdentifierMarshaller.java
aws/aws-sdk-java
apache-2.0
2,041
56
codeparrot/github-code
1ca507dd34ed623efbbf26ce0fc9774297c15dcfc390303010ef086d8ce305de
/* * Copyright 2017-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "licen...
Java
aws-java-sdk-backup/src/main/java/com/amazonaws/services/backup/model/transform/TagResourceResultJsonUnmarshaller.java
aws/aws-sdk-java
apache-2.0
1,577
45
codeparrot/github-code
e9028128302bf612f960ec02c3bdd1a0416960b32db3a99c66150c7e5d9b100b
// 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 // http://www.apache.org/licenses/LICENSE-2.0 // Unless required by applicable law or agreed to in writing, softw...
Java
code/core/src/test/java/com/google/cloud/broker/usermapping/KerberosUserMapperTest.java
GoogleCloudPlatform/gcp-token-broker
apache-2.0
7,153
203
codeparrot/github-code
4bd923e1c5ba8fcf3b417ee631e91152db01a1364015fa70f7e268ed519aa14a
/* * Copyright 2012-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "licen...
Java
aws-java-sdk-workspaces/src/main/java/com/amazonaws/services/workspaces/model/Compute.java
dagnir/aws-sdk-java
apache-2.0
1,629
59
codeparrot/github-code
1dacfdc1c2c8702c8f62c57f36395b5f22020b549692746a44b8457089344db0
/* * Licensed to Metamarkets Group Inc. (Metamarkets) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. Metamarkets licenses this file * to you under the Apache License, Version 2.0 (the * "License"); yo...
Java
extensions-core/kafka-indexing-service/src/main/java/io/druid/indexing/kafka/supervisor/KafkaSupervisorTuningConfig.java
taochaoqiang/druid
apache-2.0
5,458
151
codeparrot/github-code
c2d06abe564b51b5686cc7d3cde46b23745f55871814e6d928dee3fb9b571381
// Copyright (c) The Diem Core Contributors // SPDX-License-Identifier: Apache-2.0 #![forbid(unsafe_code)] use diem_config::network_id::NetworkContext; use diem_crypto::{test_utils::TEST_SEED, x25519, Uniform as _}; use diem_logger::prelude::*; use diem_types::network_address::NetworkAddress; use futures::{ futur...
Rust
network/socket-bench-server/src/lib.rs
libra/libra
apache-2.0
6,393
178
codeparrot/github-code
93751151bf093d46351bcd6cd18cfa0f67808a562ad3d0f00e67dd58b47e122c
/* * ModSecurity, http://www.modsecurity.org/ * Copyright (c) 2015 Trustwave Holdings, Inc. (http://www.trustwave.com/) * * You may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * If any of the files rela...
C++
src/operators/contains_word.cc
wafbuild/ModSecurity
apache-2.0
2,176
79
codeparrot/github-code
99492cfa47215dcf6f66714b05c0ab92bdcf82569414ccd638724aea78da5a77
package com.example.pleiades.studentmanager; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import android.widget.ImageView; import android.widget.TextView; import android.content.Intent; public class ticket extends AppCompatActivity { @Override protected void onCreate(Bundle sav...
Java
ticket.java
JaeHyun77/fools.github.io
apache-2.0
4,671
130
codeparrot/github-code
7708b89afd2644177eee095405ee3b004046c86422e385c9343cfd865cf68500
/* Copyright 2014 Celtoys Ltd Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software d...
C
src/remotery.h
gheshu/renderer
apache-2.0
25,012
645
codeparrot/github-code
95d2ea34a7e30299fb16154e59e94bbf6d8fc831af6ede7d6bf0677625d75dff
package conexaoHTTP; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStream; import java.io.InputStreamReader; import java.net.HttpURLConnection; import java.net.URL; import domain.Mensagem; import service.Sessao; public class EnviarMensagemHL7 { public boolean enviar(String login, S...
Java
Receber/src/conexaoHTTP/EnviarMensagemHL7.java
lukasteles/REIS
apache-2.0
1,680
66
codeparrot/github-code
0a8d3816e80d7bc56b932f2a0eda64f33a0a0e6fcd6c1f3c858cfd294868d1d6
using System; using System.Collections; using System.Collections.Concurrent; using System.Collections.Generic; using System.Linq; using StructureMap.Configuration.DSL; using StructureMap.Pipeline; using StructureMap.Pipeline.Lazy; using StructureMap.TypeRules; using StructureMap.Util; namespace StructureMap.Graph { ...
C#
src/StructureMap/Graph/PluginGraph.cs
khellang/structuremap
apache-2.0
13,045
422
codeparrot/github-code
6e8e660eda72b623d091b297cde0e2d05882332f35bd86c6a982faccede9f8ba
package fr.univrouen.telephonie.repository; import fr.univrouen.telephonie.config.audit.AuditEventConverter; import fr.univrouen.telephonie.domain.PersistentAuditEvent; import org.joda.time.LocalDateTime; import org.springframework.boot.actuate.audit.AuditEvent; import org.springframework.boot.actuate.audit.AuditEvent...
Java
src/main/java/fr/univrouen/telephonie/repository/CustomAuditEventRepository.java
vbonamy/telephonie
apache-2.0
2,335
59
codeparrot/github-code
ea1bcf448a5fe25218aefcaf6f2875f1b17af87f0107db65e78c6923cace4805
import mysql import pymysql from model.group import Group from model.contact import Contact class DbFixture: def __init__(self, host, name, user, password): self.host = host self.name = name self.user = user self.password = password self.connection = pymysql.connect(host=ho...
Python
fixture/db.py
aalekperov/Task1
apache-2.0
2,534
61
codeparrot/github-code
f18690eb1550f68391232da2a2f4cb4e795d5a9f2b9d77143c6e91cea1dd77fa
/* * Copyright 2015 Fabien Renaud. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed...
Java
src/test/java/com/lympid/core/behaviorstatemachines/simple/Test3.java
lympid/lympid-core
apache-2.0
3,128
106
codeparrot/github-code
25014f0c41310a2596e750cee2dbd2a801ae7c5b8740d0eb77efe124c6ba6490
/* * Copyright 2016 FabricMC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in ...
Java
src/main/java/net/fabricmc/loader/impl/transformer/FabricTransformer.java
FabricMC/fabric-base
apache-2.0
2,865
76
codeparrot/github-code
472f4c6f370c1149246964c78f803e14bc09719ec0c68f2ab2007967344ca31b
/* * Copyright 2007 Sun Microsystems, Inc. All Rights Reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundati...
Java
sherlockmidi/src/main/java/cn/sherlock/com/sun/media/sound/SF2Modulator.java
KyoSherlock/SherlockMidi
apache-2.0
3,520
98
codeparrot/github-code
c47f8af6eb3158d3df3eaed121f9e5ec308e90d332f8c05bb8dc9b78a5c6d66d
/* * Copyright 2017 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
src/main/scala/uk/gov/hmrc/ct/accounts/frs105/boxes/AC436.scala
liquidarmour/ct-calculations
apache-2.0
1,305
33
codeparrot/github-code
637871eec3b5b93c25f1e62ba0211ba463e3ee9d9b33de31128105c946305b8f
"""Parser for STIX Domain Name Object. see: https://docs.oasis-open.org/cti/stix/v2.1/csprd01/stix-v2.1-csprd01.html#_Toc16070687 """ # standard library from typing import Iterable, Union # third-party from stix2 import DomainName # first-party from tcex.stix.model import StixModel class StixDomainNameObject(StixM...
Python
tcex/stix/observables/domain_name.py
kstilwell/tcex
apache-2.0
1,634
53
codeparrot/github-code
5f4e4c16832c3a9947cc7a0d3c365df68952c2deed321b6fa2dbc11a25e64530
/* * Copyright (c) 2016-present, RxJava 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 required by applicable la...
Java
src/test/java/io/reactivex/rxjava3/internal/operators/observable/ObservableFromSupplierTest.java
ReactiveX/RxJava
apache-2.0
9,746
312
codeparrot/github-code
0cfffd72953daef01b642feb02c3f552e08381f484d3b61c5ff416dae2f71a33
/* * Copyright (C) 2021-2022 Jonatan Sunden * Copyright (C) 2021-2022 Philip Helger (www.helger.com) * philip[at]helger[dot]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 * * ...
Java
ph-ubl-eforms/src/main/java/com/helger/eforms/EFormsUBLDocumentType.java
phax/ph-ubl
apache-2.0
4,257
108
codeparrot/github-code
9fd450a1160f749f38d202e6229799ff5b1fdaeac768c9c2abc187905b42281c
<?php return [ /* |-------------------------------------------------------------------------- | Application Name |-------------------------------------------------------------------------- | | This value is the name of your application. This value is used when the | framework needs to plac...
PHP
config/app.php
sibin-rp/job_search
apache-2.0
9,331
240
codeparrot/github-code
0ffc75f20092c343a69edad61bb5f88c497a431815643bc21965e13525e11ced
'use strict'; angular.module('MLDS') .controller('IHTSDOReleasesController', ['$scope', '$log', 'Session', 'PackageUtilsService', '$location', 'MemberService', 'UserAffiliateService','releasePackagesQueryResult', 'MemberPackageService', function ($scope, $log, Session, PackageUtilsService, $locat...
JavaScript
src/main/webapp/scripts/controllers/IHTSDOReleasesController.js
IHTSDO/MLDS
apache-2.0
1,388
35
codeparrot/github-code