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 |
|---|---|---|---|---|---|---|---|---|
9447352bb4dfd5ed339f788e8c65d7689be4e169e01e1d4a51910fc81ab4cc1d | namespace Account
{
using BlogEngine.Core;
using System;
using Page = System.Web.UI.Page;
public partial class CreateBlog : Page
{
protected void Page_Load(object sender, EventArgs e) { }
protected void CreateUserButton_Click(object sender, EventArgs e)
{
... | C# | BlogEngine.NET/Account/create-blog.aspx.cs | infanprodigy/blog-iz | apache-2.0 | 1,440 | 48 | codeparrot/github-code |
560fdfcfe2b480512f74d94e31e6da7b70d414d8f522aec30f6cbc3233aa0592 | # 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 not u... | Python | python/tvm/relay/op/contrib/ethosu.py | Laurawly/tvm-1 | apache-2.0 | 42,334 | 1,272 | codeparrot/github-code |
9e8a408bf55df9f1000835257d15f8fa676f30214867ec178061840bdaf47159 | /*
* Copyright (C) 2015 Alex Neeky
*
* 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 | app/src/main/java/com/slx/funstream/rest/model/AuthResponse.java | slx-apps/Funstream_Chat | apache-2.0 | 832 | 33 | codeparrot/github-code |
e3d9c7c8465508dac229b9a0cdde132573dd835fbc53a6ecd2df6718d97ed2f1 | /*
* Copyright 2014 The Apache Software Foundation
*
* 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 ... | Java | phoenix-core/src/main/java/org/apache/phoenix/map/reduce/MapReduceJob.java | ramkrish86/incubator-phoenix | apache-2.0 | 7,280 | 205 | codeparrot/github-code |
246b8596af775c238b78f1ce5da29ad43bd95f8d46978fed6105d574fac668d7 | /**
* 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 n... | Java | hadoop-0.23.10/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-common/src/main/java/org/apache/hadoop/yarn/service/FilterService.java | moreus/hadoop | apache-2.0 | 1,854 | 77 | codeparrot/github-code |
9b1a97eaecc92c57f1672bc6288fbbb8f167427d9bef6e349e15c642d4dad80c | // Copyright 2009 Konrad Twardowski
//
// 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/org/makagiga/editors/notepad/spi/CodePreviewProvider.java | stuffer2325/Makagiga | apache-2.0 | 8,099 | 307 | codeparrot/github-code |
40ccab49cd24092d86efabfddef9f858ac569c6839ab0873f927a1e6b6768136 | /*
* Copyright (c) 2008-2016 Haulmont.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agr... | Java | modules/web/src/com/haulmont/cuba/web/gui/components/WebButtonsPanel.java | cuba-platform/cuba | apache-2.0 | 2,381 | 77 | codeparrot/github-code |
223872b017e3ddba352cba83d9bcc9d04339abd8cdc929d20bd387ac3a732332 | /*
* Copyright 2010-2014 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 "l... | C# | sdk/src/Services/EC2/Generated/Model/Internal/MarshallTransformations/DescribeNetworkAclsRequestMarshaller.cs | mwilliamson-firefly/aws-sdk-net | apache-2.0 | 3,983 | 95 | codeparrot/github-code |
df56fbc9310356dbcf9791273971a0ff592b6326cd9f287ef662d79e6b87ea54 | package org.synthuse.controllers;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.JOptionPane;
import org.synthuse.Config;
import org.synthuse.views.SynthuseConfigPanel;
public class SynthuseConfigDialogControllers {
public static void initializeUI(SynthuseC... | Java | src/org/synthuse/controllers/SynthuseConfigDialogControllers.java | alexkogon/synthuse-src | apache-2.0 | 5,883 | 122 | codeparrot/github-code |
7ad276d0466a497606a53424e90913b1a8e5e52790464910d5840fe30071e21e | using System;
using System.Collections.Generic;
using System.Collections.Specialized;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;
using System.Threading.Tasks;
using System.Net;
using System.Net.Http;
using System.Web;
using System.IO;
using System.Reflection;
using System.Threading;
usi... | C# | AppModule.cs | nikkilocke/AccountServer | apache-2.0 | 19,772 | 532 | codeparrot/github-code |
fb331ab56cef91d859fd2951bf75b328ed23addabf7bbd5705f0e01fffa1c6bb | package com.mossle.org.web;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import com.mossle.api.tenant.TenantHolder;
import com.mossle.... | Java | src/main/java/com/mossle/org/web/JobTitleController.java | AWendy/lemon | apache-2.0 | 4,875 | 148 | codeparrot/github-code |
f687195631778fd092fe733cff7a8d11e5ff3da23f928acad3fd04d15984ac2d | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you m... | Java | qa/src/com/sun/jini/qa/harness/HeartOfTheMachine.java | trasukg/river-qa-2.2 | apache-2.0 | 2,072 | 83 | codeparrot/github-code |
daaac765ec9446df54f8af1d4c2f5dfd6f23a9baf2a40aa3b379a6ba3e394ead | <!DOCTYPE HTML>
<!-- NewPage -->
<html lang="en">
<head><!-- start favicons snippet, use https://realfavicongenerator.net/ --><link rel="apple-touch-icon" sizes="180x180" href="/assets/apple-touch-icon.png"><link rel="icon" type="image/png" sizes="32x32" href="/assets/favicon-32x32.png"><link rel="icon" type="image/png... | HTML | docs/doc/reference/com/google/android/exoplayer2/util/FileTypes.Type.html | google/ExoPlayer | apache-2.0 | 8,257 | 189 | codeparrot/github-code |
79ee1fb6f77d220253b346449b9873c6b0b11f1d99f6840b1c22de5905be9fea | /**
* Copyright 2014 Mozilla 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 applicable law or agr... | TypeScript | src/flash/sampler/NewObjectSample.ts | mbebenita/shumway | apache-2.0 | 1,554 | 52 | codeparrot/github-code |
ddd1474ca3142d878990d747dbabac9d1a0c3df497a3e26071e75a709966b9d5 | /*
* Copyright 2013 Zakhar Prykhoda
*
* midao.org
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* ... | Java | midao-jdbc-core/src/test/java/org/midao/jdbc/core/processor/BasicQueryInputProcessorTest.java | pryzach/midao | apache-2.0 | 7,565 | 159 | codeparrot/github-code |
4cb84589d6d611337d2241ded5e04f05da7cc1b4ccdbebb9538226e6d1133e5a | #!/usr/bin/python
#
# 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 ag... | Python | google-datacatalog-tableau-connector/src/google/datacatalog_connectors/tableau/scrape/metadata_api_helper.py | GoogleCloudPlatform/datacatalog-connectors-bi | apache-2.0 | 5,757 | 175 | codeparrot/github-code |
1aea0a3bc24bb2bf7c09c4ebaf4b722b5c9f27ced47d8289c71b64f3db449238 | // Copyright 2000-2019 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package com.intellij.codeInsight.hint;
import com.intellij.ide.IdeTooltip;
import com.intellij.openapi.actionSystem.*;
import com.intellij.openapi.actionSystem.ex.ActionManagerEx... | Java | platform/platform-impl/src/com/intellij/codeInsight/hint/HintManagerImpl.java | paplorinc/intellij-community | apache-2.0 | 38,955 | 1,007 | codeparrot/github-code |
b0edacb367fd728e0a3fc97dfd482a5be9e5108b943316d7250eabcdd8b3d0c1 | mod utils;
use wasm_bindgen::prelude::*;
// When the `wee_alloc` feature is enabled, use `wee_alloc` as the global
// allocator.
#[cfg(feature = "wee_alloc")]
#[global_allocator]
static ALLOC: wee_alloc::WeeAlloc = wee_alloc::WeeAlloc::INIT;
use vt::VT;
#[wasm_bindgen]
pub struct VtWrapper {
vt: VT,
}
#[wasm_bi... | Rust | src/vt/src/lib.rs | asciinema/asciinema-player | apache-2.0 | 940 | 43 | codeparrot/github-code |
967e61f757d8802efefd2e5b51a9e7bdefc7fd819e8ead51d24c7e100238862f | /*
* Copyright © 2017-2018 Cask Data, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agr... | Java | mmds-model/src/main/java/io/cdap/mmds/data/ColumnStats.java | cdap-solutions/mmds | apache-2.0 | 3,992 | 125 | codeparrot/github-code |
ad7587cc68a5f0613bdb34f515ecaf8168bfbc87e0ad4580501edd8627905169 | // 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... | Rust | src/record/triplet.rs | sunchao/parquet-rs | apache-2.0 | 18,096 | 553 | codeparrot/github-code |
40768d417c8668868a811e2ec5994704421db3b972c89684a4f2f5409ac800a9 | //*********************************************************//
// Copyright (c) Microsoft. All rights reserved.
//
// Apache 2.0 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,... | C# | Nodejs/Product/Nodejs/Project/NodejsTypeScriptFileNodeProperties.cs | munyirik/nodejstools | apache-2.0 | 2,514 | 71 | codeparrot/github-code |
8c6b6bb6d397e6a3de1d84b8f06aad5bd2cb135a7d3adf9c50b786759c04e169 | <?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK IT ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006-2012 http://thinkphp.cn All rights reserved.
// +----------------------------------------------... | PHP | ThinkPHP/Extend/Engine/Sae/Common/runtime.php | longqzh/bb_dev | apache-2.0 | 6,320 | 164 | codeparrot/github-code |
6b2dd18866fccf2172fa124b863f774ed3bcf852525ff306006aab514c9356ad | /*
* Copyright 2009 Red Hat, Inc.
*
* Red Hat licenses this file to you under the Apache License, version 2.0
* (the "License"); you may not use this file except in compliance with the
* License. You may obtain a copy of the License at:
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by ... | Java | src/test/java/com/yammer/httptunnel/FakeSocketChannel.java | reines/httptunnel | apache-2.0 | 2,793 | 110 | codeparrot/github-code |
ef012caf5c6436dc218427cf9b8511b29598b028e54fb14516098a499574eede | package xyz.cjr.wiki_index;
/**
* Created by cjr on 12/11/16.
*/
import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
import java.util.StringTokenizer;
import org.apache.commons.io.IOUtils;
import org.apache.hadoop.conf.Configuration;
import org.apache.hadoop.fs.Path;
import org.apache.... | Java | src/main/java/xyz/cjr/wiki_index/WikiWordCount.java | crazyboycjr/hadoop-wiki-index | apache-2.0 | 4,886 | 142 | codeparrot/github-code |
3a8596ab488c05bc2634eb6ce21be5f8c2a7e79bbffe6d8402e00e315b948661 | package hwo.kurjatturskat.ai.engine;
import hwo.kurjatturskat.ai.drivers.Driver;
import hwo.kurjatturskat.ai.drivers.MarkusBot;
import hwo.kurjatturskat.core.message.CarIdentifier;
import hwo.kurjatturskat.core.message.CrashMsg;
import hwo.kurjatturskat.core.message.JoinMsg;
import hwo.kurjatturskat.core.message.Launc... | Java | java/src/main/java/hwo/kurjatturskat/ai/engine/BotRunner.java | Arch-vile/hwo2014-team-129 | apache-2.0 | 10,567 | 299 | codeparrot/github-code |
34039862d7796c95363e30c36df6cd2098e06dfdc3a8693f27ca3412ce271617 | /*
* Copyright 2000-2015 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 | platform/diff-impl/src/com/intellij/diff/comparison/iterables/DiffIterableUtil.java | vladmm/intellij-community | apache-2.0 | 12,274 | 399 | codeparrot/github-code |
779e4e68f98b1970d7927b3413354c6e5aac0945db22363908f5735314d686e3 | package io.hydrosphere.mist.master.execution.workers
import akka.actor.{Actor, ActorLogging, ActorRef, ActorRefFactory, Props, ReceiveTimeout, Terminated, Timers}
import io.hydrosphere.mist.core.CommonData._
import io.hydrosphere.mist.master.execution.WorkerLink
import scala.concurrent.{Future, Promise}
import scala.... | Scala | mist/master/src/main/scala/io/hydrosphere/mist/master/execution/workers/WorkerBridge.scala | Hydrospheredata/mist | apache-2.0 | 5,404 | 183 | codeparrot/github-code |
960af8c20cffc77ef2df7c13b5a98d5764f39232dd8f51dcabc7125ff950374f | // Copyright 2013 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... | Java | examples/dfp_axis/src/main/java/dfp/axis/v201405/labelservice/CreateLabels.java | nafae/developer | apache-2.0 | 3,262 | 88 | codeparrot/github-code |
3ea64005cb4edbd2cf64445c4d0e12810932de67eee2126ccf8268ba565038c5 | package com.swifts.frame.modules.wx.fastweixin.util;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.io.Closeable;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
/**
* 套接字工具类
*
* @author peiyu
*/
public final class StreamUtil {
private static final ... | Java | src/main/java/com/swifts/frame/modules/wx/fastweixin/util/StreamUtil.java | hanyahui88/swifts | apache-2.0 | 1,405 | 59 | codeparrot/github-code |
5552dc0013ef3f886ddddf663adc1dc2634e52f5d960289aae1fabd31e7787ca | # 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... | Python | cairis/controllers/ConceptReferenceController.py | nathanbjenx/cairis | apache-2.0 | 3,396 | 101 | codeparrot/github-code |
6d31c60324f40d856b28989672c312393e27242a36834651466dd1f731c04abf | package htmlparse;
public class PbccrcQueryRecord {
private String queryDate;
private String type;
private String queryNo;
private String operator;
private String queryReason;
public String getQueryDate() {
return queryDate;
}
public void setQueryDate(String queryDate) {
this.queryDate = queryD... | Java | src/main/java/htmlparse/PbccrcQueryRecord.java | angilin/JavaTest | apache-2.0 | 840 | 56 | codeparrot/github-code |
d7583e7d1acb7e5d4a8c25242e324c5898db59e9fd50aa0d435a9113b1b9946b | package KuramotoUnit;
public class rungekutta {
/*
* QNb^@
* dÆi/dt = Öi + K/N°N,j=1(sin(Æj - Æi)
*/
double dt;
double phi, o, K;
double[] phj;
int length = 4;
protected double[] k0;
protected double[] k1;
protected double[] k2;
protected double[] k3;
public rungekutta(double dt, dou... | Java | KuramotoModel01/src/KuramotoUnit/rungekutta.java | EisakuHiguchi/Kuramoto_Model | apache-2.0 | 1,789 | 103 | codeparrot/github-code |
bff8fbdaa98ae7cadbb3a073db9433deb839076d19d5676c88491a2dbf06c1de | /**
Copied from: https://github.com/sampumon/SVG.toDataURL
The missing SVG.toDataURL library for your SVG elements.
Licensed with the permissive MIT license, as follows.
Copyright (c) 2010,2012 Sampu-mon & Mat-san
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and... | TypeScript | ui/client/common/SVGUtils.ts | TouK/nussknacker | apache-2.0 | 1,628 | 47 | codeparrot/github-code |
d60709a19f867ad4e920259ed61d029d3b72b7a724e6c4bbd8ff4c5a32eeee94 | package ca.uhn.fhir.cql.common.evaluation;
/*-
* #%L
* HAPI FHIR JPA Server - Clinical Quality Language
* %%
* Copyright (C) 2014 - 2021 Smile CDR, 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 c... | Java | hapi-fhir-jpaserver-cql/src/main/java/ca/uhn/fhir/cql/common/evaluation/MeasureScoring.java | SingingTree/hapi-fhir | apache-2.0 | 2,427 | 85 | codeparrot/github-code |
f40b6686be8bd33608eb355048ca93043720a24c35b9996faf1850be67dcb1bb | /**
*
*/
package com.cheer.petstore;
import java.sql.Date;
import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.ManyToOn... | Java | 201711/20171103/Team1/ShenXingSheng/works/PetStore2/src/main/java/com/cheer/petstore/Pet.java | JAVA201708/Homework | apache-2.0 | 3,516 | 228 | codeparrot/github-code |
89a759c9eed6f1300e0aa507a401cda5607b40534f03445314fd17b647c378c1 | # Copyright (c) 2016 Jiocloud.com, Inc. or its affiliates. All Rights Reserved
#
# Permission is hereby granted, free of charge, to any person obtaining a
# copy of this software and associated documentation files (the
# "Software"), to deal in the Software without restriction, including
# without limitation the right... | Python | src/jcsclient/compute_api/instance.py | jiocloudservices/jcsclient | apache-2.0 | 7,005 | 158 | codeparrot/github-code |
bdd33cfd516f3db153cba76d73a822c7d66825ed5d230681a91566aef42d2126 | package com.peta2kuba.pa165_haunted_houses.service_layer.service;
import com.peta2kuba.pa165_haunted_houses.dao.HaunterDao;
import com.peta2kuba.pa165_haunted_houses.entity.Ability;
import com.peta2kuba.pa165_haunted_houses.entity.Haunter;
import com.peta2kuba.pa165_haunted_houses.entity.HauntingHours;
import com.peta... | Java | service_layer/src/test/java/com/peta2kuba/pa165_haunted_houses/service_layer/service/HaunterServiceTest.java | DrakMelisek/pa165_haunted_houses | apache-2.0 | 4,819 | 161 | codeparrot/github-code |
c7fb9e7abaf5a4a1dfb7e278828793c07a4b7543771a0c7e43074585d4644735 | package com.mygdx.game.Dungeon.DungeonTiles;
import com.badlogic.gdx.graphics.g2d.TextureRegion;
import com.badlogic.gdx.math.GridPoint2;
import com.mygdx.game.Dungeon.Dungeon;
import com.mygdx.game.Dungeon.DungeonTile;
import com.mygdx.game.ResourceLoader;
public class DoorDungeonTile extends DungeonTile {
priva... | Java | core/src/com/mygdx/game/Dungeon/DungeonTiles/DoorDungeonTile.java | Tatskaari/DungeonCrawler | apache-2.0 | 937 | 38 | codeparrot/github-code |
42faf361f81b1fcba457c0772d0fdef9b56dba1611c68149a902f309d2019134 | (function () {
'use strict';
angular.module('components.tabs')
.controller('TabsController', Controller);
/** @ngInject */
function Controller($timeout) {
var ctrl = this;
ctrl.$onInit = onInit;
ctrl.$postLink = postLink;
ctrl.addTab = addTab;
ctrl.selectTab = selectTab;
function... | JavaScript | app/assets/javascripts/app/components/tabs/tabs.controller.js | boozallen/projectjellyfish | apache-2.0 | 809 | 43 | codeparrot/github-code |
b9b55ec5429eda4a9c7dd88541e33a926e3bb42fa1d6cdcd2801903826a3f7d2 | // Copyright 2012 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... | GO | fractal/fractal.go | wathiede/go-fracserv | apache-2.0 | 3,200 | 149 | codeparrot/github-code |
98f29909b4e89a15d236eecd77a1d7caca4621723399d71fa4ee0109d31ff820 | package com.task.dao;
import org.springframework.stereotype.Repository;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;
import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;
import java.io.Serializable;
impo... | Java | I2SEComplete/src/main/java/com/task/dao/BaseDao.java | sicacho/Spring-MVC-Structure | apache-2.0 | 1,601 | 59 | codeparrot/github-code |
4f9ac8c9271fbc34e6874d8ec88cfeff7b7fb2bb749fad97b87be3e90d77d961 | module Bosh::AzureCloud
class LightStemcellManager
include Bosh::Exec
include Helpers
def initialize(blob_manager, storage_account_manager, azure_client2)
@blob_manager = blob_manager
@storage_account_manager = storage_account_manager
@azure_client2 = azure_client2
@logger = Bosh... | Ruby | src/bosh_azure_cpi/lib/cloud/azure/light_stemcell_manager.rb | AbelHu/bosh-azure-cpi-release | apache-2.0 | 2,950 | 69 | codeparrot/github-code |
48ee81f06572ab003c2ee4742f0e551c27c68c0ae9d254670d5d924bb33f55ca | /*
* La Trobe University - Distributed Deep Learning System
* Copyright 2016 Matthias Langer (t3l@threelights.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.apa... | Scala | base/src/main/scala/edu/latrobe/IndependentTensorLayout.scala | bashimao/ltudl | apache-2.0 | 4,504 | 176 | codeparrot/github-code |
89c8e2a92806a01d7114c69f078105d9de302959f2f4f53311eaa9e34810878c | var size = 128;
var sizeSquared = size * size;
//take care of canvas size - make it take up the entire page,
//prevent the scrollbar from appearing and set the background colour
c.width = size;
c.height = size;
c.innerHTML= '<style>*{width:100%;height:100%;margin:0;overflow:hidden;background:#311}</style>';
//handle ... | JavaScript | test-resources/src/1k2012love/1140.js | cs-au-dk/TAJS | apache-2.0 | 3,121 | 109 | codeparrot/github-code |
ee0bdfaef00f2122c0dc93a6916a1e017fa34761d17be6657c289e7f037897d4 | define([
'jquery',
'esri/config',
'esri/IdentityManager',
'esri/urlUtils',
'esri/domUtils',
'esri/arcgis/OAuthInfo',
'esri/arcgis/Portal',
'dojo/on',
'app/components/vtstyleeditor',
'app/components/itemlist',
'app/components/notice',
'dojo/domReady!'
], function ($, esriConfig, esriId, urlUtils,... | JavaScript | app/main.js | Esri/arcgis-vectortile-style-editor | apache-2.0 | 3,127 | 118 | codeparrot/github-code |
9e0a2c5ab50a61edd599f5b33bb0b65a61e7ca5d46da2287554f813eff858ffe | use lib '../../blib';
$|++;
use Alien::FLTK;
use ExtUtils::CBuilder;
my $AF = Alien::FLTK->new();
my $CC = ExtUtils::CBuilder->new();
my $SRC = 'hello_world.cxx';
open(my $FH, '>', $SRC) || die '...';
syswrite($FH, <<'END') || die '...'; close $FH;
//
// OpenGL example showing text on a rotating 3D object.
// erco 03... | Perl | examples/synopsis.pl | gitpan/Alien-FLTK | artistic-2.0 | 3,920 | 110 | codeparrot/github-code |
4b0667f48f8cef0756a8a3ec2f1dc2f0f755529a6042de49837b1dfee88c57d1 | #!/usr/bin/perl -an
# test -DH hash collisions
# Usage:
# apply -DH patch at https://github.com/rurban/perl/commit/b975d736cfe40a9cf51ec0a44aaba0322fd04347
# define PERL_HASH_FUNC_ONE_AT_A_TIME in config.h
# make test 2> log.hash.ONE_AT_A_TIME
# kill perl hanging at cpan/Test-Simple/t/utf8.t and ext/PerlIO-encod... | Perl | hash-result.pl | rurban/perl-hash-stats | artistic-2.0 | 1,600 | 59 | codeparrot/github-code |
cf09f89cf2074a2d1e9a48af2a13ab6c08d1723936f1e01333bfbc96872d2de9 | #!/usr/bin/perl -w
use strict;
use warnings;
use FindBin;
use Storable qw( lock_nstore lock_retrieve );
eval {
require Time::Duration;
*duration = \&Time::Duration::duration;
};
if ($@) {
require Time::Seconds;
*duration = sub { my $t = Time::Seconds->new($_[0]); return $t->pretty; };
}
my $CAFFEINA... | Perl | coffee.pl | venkytv/alfred-caffeinate | artistic-2.0 | 7,572 | 306 | codeparrot/github-code |
490ea8dc82172d497b817ce3e69406dfc759fab8bd1278db258947e6f9be8c05 | Grailbird.data.tweets_2010_03 =
[ {
"source" : "\u003Ca href=\"http:\/\/twitter.com\" rel=\"nofollow\"\u003ETwitter Web Client\u003C\/a\u003E",
"entities" : {
"user_mentions" : [ {
"name" : "iFixit",
"screen_name" : "iFixit",
"indices" : [ 3, 10 ],
"id_str" : "15339201",
"id" : 1... | JavaScript | data/js/tweets/2010_03.js | icco/tweets | artistic-2.0 | 70,044 | 2,211 | codeparrot/github-code |
8aaade2804b9267cb21e32ac7d1dfe8da795f83e898c9ad38c6659e18acecced | # -*- python -*-
import electionfraud.countmethod.abc as efcmabc
import electionfraud.countmethod.exception as efcmx
import electionfraud.countmethod.fptp as fptp
class MultiRoundExhaustible(efcmabc.AbstractCountMethod):
"""
A base class for implementing counting methods that could possibly
span multiple ... | Python | python/electionfraud/countmethod/mrx.py | tnalpgge/electionfraud | artistic-2.0 | 2,363 | 66 | codeparrot/github-code |
560659b44c928b04fe7ace7f3e159b786383cf223b8eb20b58b340f58db869b2 | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package net.colar.netbeans.fan.project;
import java.awt.Image;
import java.util.Vector;
import java.util.regex.Pattern;
import javax.swing.Action;
import net.colar.netbeans.fan.actions.BuildAndRunFanFileAction;
import n... | Java | src/net/colar/netbeans/fan/project/FanNode.java | tcolar/fantomidemodule | artistic-2.0 | 10,924 | 274 | codeparrot/github-code |
f5c2efdfcc776c020521f70a3580cce7d9e1554ac52355c5649c736403d3e3e6 | package Ansible::Module::Utils;
use 5.020;
use utf8;
use Carp qw( croak );
use Exporter qw( import );
use JSON::PP;
use Ansible::Module::Booleans;
our @EXPORT = qw( BOOLEANS True False );
our $json = JSON::PP->new();
our $errstr;
sub BOOLEANS ();
sub True ();
sub False ();
sub BOOLEANS () {
return Ansible::M... | Perl | lib/Ansible/Module/Utils.pm | shlomif/perl-Ansible-Module | artistic-2.0 | 3,448 | 119 | codeparrot/github-code |
ce9ed1ae160e795caa5df87f7f2645b483f409cdbab1db531d0f8e7d00762d89 | #!/usr/bin/env python
from __future__ import absolute_import
from __future__ import print_function
import redhawk
import hashlib
import operator
import os
import sys
import traceback
from functools import reduce
def AssertWithError(condition, error):
""" If condition is false, exit with error."""
if callable(cond... | Python | redhawk/utils/util.py | spranesh/Redhawk | bsd-2-clause | 5,087 | 185 | codeparrot/github-code |
74fc68add5fa321c49f15717e927f3372f47f30ddc1bffb407373fd61098b12b |
/*
+------------------------------------------------------------------------+
| Phalcon Framework |
+------------------------------------------------------------------------+
| Copyright (c) 2011-2014 Phalcon Team (http://www.phalconphp.com) |
+-----... | C++ | ext/db/dialect/sqlite.cpp | unisys12/phalcon-hhvm | bsd-2-clause | 20,644 | 674 | codeparrot/github-code |
d4d08ced833e3c90f00f1788657c1c9570244aa9b32bb2c7cf37fd484b089932 | /* test.c
Rémi Attab (remi.attab@gmail.com), 03 Mar 2016
FreeBSD-style copyright and disclaimer apply
*/
#include "test.h"
// -----------------------------------------------------------------------------
// impl
// -----------------------------------------------------------------------------
#include "test_ht... | C | test/test.c | RAttab/optics | bsd-2-clause | 3,133 | 116 | codeparrot/github-code |
7919d47a04c94e299fa61e837c6e18b3428b8ada44febc318d72a6bdd7bcf167 | using UnityEngine;
using System.Collections;
public class PlayLevelButton : MonoBehaviour
{
// Public vars
public float TimeDelay = 0.5f;
// Private vars
private Vector3 originalScale;
private bool pressed = false;
private float timer = 0.0f;
// Use this for initialization
void Start()
{
originalScale =... | C# | Assets/Scripts/Title/PlayLevelButton.cs | Pillowdrift/StellarSwingClassic | bsd-2-clause | 1,459 | 60 | codeparrot/github-code |
77297c7d84e431845c0655a0003e06c45768518ee8b68cbcbc6c5fe38d9f4bad |
import cPickle
import nz_houses_dao as dao
from nltk.corpus import stopwords
import re
import gzip
class Residential:
distionary
def
def __init__():
pass
def generate_word_lists(descriptions):
descriptions_features = {}
i = 0
for listingId in descriptions.keys():
a = descriptions[listingId... | Python | analysis/listing_text.py | statX/nz-houses | bsd-2-clause | 1,824 | 87 | codeparrot/github-code |
54e3ca16884ba1439f431841920a44e788a371a33f143de6063d0358a2d5fec4 | require "cxxstdlib"
require "exceptions"
require "formula"
require "keg"
require "tab"
require "bottles"
require "caveats"
require "cleaner"
require "formula_cellar_checks"
require "install_renamed"
require "cmd/postinstall"
require "hooks/bottles"
require "debrew"
require "sandbox"
require "requirements/cctools_requir... | Ruby | Library/Homebrew/formula_installer.rb | DoomHammer/linuxbrew | bsd-2-clause | 24,432 | 845 | codeparrot/github-code |
57c8281df697b54af89617dfa490df832ff7257ae07e39309bd25b5ce39a70c9 | import signal
import weakref
from airy.utils.unittest.compatibility import wraps
__unittest = True
class _InterruptHandler(object):
def __init__(self, default_handler):
self.called = False
self.default_handler = default_handler
def __call__(self, signum, frame):
installed_handler = ... | Python | airy/utils/unittest/signals.py | letolab/airy | bsd-2-clause | 1,682 | 58 | codeparrot/github-code |
60380921a2c17bc152d514e628297f6e191b7a1e3f3c720fe20730f1b8cb350e | /*
* Copyright (c) 2018, Jordan Atwood <jordan.atwood423@gmail.com>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright not... | Java | runelite-client/src/main/java/net/runelite/client/util/ColorUtil.java | runelite/runelite | bsd-2-clause | 7,203 | 254 | codeparrot/github-code |
f4169d2de698135145039bae04ff28e953d09a63f8fd19c48b413ee94f4cb25d | """
Locks used to synchronize mutations on queues.
"""
import time
from redset.exceptions import LockTimeout
__all__ = (
'Lock',
)
# redis or redis-py truncates timestamps to the hundredth
REDIS_TIME_PRECISION = 0.01
class Lock(object):
"""
Context manager that implements a distributed lock with red... | Python | redset/locks.py | percolate/redset | bsd-2-clause | 2,908 | 94 | codeparrot/github-code |
0fa4332935d1414dce47c945c316289fbdb2c80eea785ea50731b2b7c30cb1dc | #ifndef EVAS_ENGINE_H
#define EVAS_ENGINE_H
#include "evas_common.h"
/* this thing is for eina_log */
extern int _evas_engine_buffer_log_dom ;
#ifdef ERR
# undef ERR
#endif
#define ERR(...) EINA_LOG_DOM_ERR(_evas_engine_buffer_log_dom, __VA_ARGS__)
#ifdef DBG
# undef DBG
#endif
#define DBG(...) EINA_LOG_DOM_DBG(_eva... | C | src/modules/engines/buffer/evas_engine.h | nashidau/Evas-Next | bsd-2-clause | 2,529 | 86 | codeparrot/github-code |
93e7df9aa561d97f770a0574d39d8c3d0ef7a113db869e389141d80052762564 | from validation.validationresult.resultenum import ResultType
from validation.validationresult.result import Result
class BaseMixin:
def __init__(self, result_type: ResultType = ResultType.Base) -> None:
self._validators = []
self._result_type = result_type
@property
def validators(self)... | Python | base/base.py | iraklikhitarishvili/data2class | bsd-2-clause | 2,011 | 59 | codeparrot/github-code |
79f9494524a8be99ba9f6c0abfc680981a6c95a473c20676e059db53f67c8609 | // Copyright (C) 2019, Cloudflare, 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... | Rust | tools/http3_test/src/runner.rs | cloudflare/quiche | bsd-2-clause | 15,248 | 449 | codeparrot/github-code |
f675f57dfc2b6ba9c1378753fc9678cdf013b40a7ee4ef9a2c6c7a4dfd935df8 | /*********************************************************************
* Software License Agreement (BSD License)
*
* Copyright (c) 2013, Institute for Artificial Intelligence,
* Universität Bremen.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification... | C | include/semrec/plugins/ros/PluginROS.h | code-iai/semrec | bsd-2-clause | 4,141 | 124 | codeparrot/github-code |
b640894eef6e6faf611079a4a7b1a07e75b207716ed13ee9cf3a7e83a9df9e6b | /* Copyright (c) Citrix Systems 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 li... | C# | XenCenterLib/TimeUtil.cs | aftabahmedsajid/XenCenter-Complete-dependencies- | bsd-2-clause | 2,648 | 69 | codeparrot/github-code |
a72891391dc2dff48628e36fb10514a2ced6ffbe717a9e5cad186c3385480a77 |
/*
* Copyright (C) Igor Sysoev
* Copyright (C) Nginx, Inc.
* Copyright (C) Manlio Perillo (manlio.perillo@gmail.com)
*/
#include <ngx_config.h>
#include <ngx_core.h>
#include <ngx_http.h>
typedef struct {
ngx_http_upstream_conf_t upstream;
ngx_array_t *flushes;
ngx_array_t ... | C | src/http/modules/ngx_http_scgi_module.c | igor47/nginx-config | bsd-2-clause | 53,226 | 1,811 | codeparrot/github-code |
08279d3daba72dad5aee1c5c5d908e16a53e137643f569f07c9efd388f5d892a | module Rubyvis
class Layout
# Alias for Rubyvis::Layout::Network
def self.Network
Rubyvis::Layout::Network
end
# Represents an abstract layout for network diagrams. This class
# provides the basic structure for both node-link diagrams (such as
# force-directed graph layout) and space-f... | Ruby | lib/rubyvis/layout/network.rb | clbustos/rubyvis | bsd-2-clause | 13,435 | 338 | codeparrot/github-code |
9d9db4309e1454a3c48aaef06b04130e9b3587aa35f805991c21e9f0de2197a9 | /*
Copyright (c) 2018, Lars Brubaker, John Lewin
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice, this
list of conditions and... | C# | MatterControlLib/DesignTools/Operations/CurveObject3D_2.cs | jlewin/MatterControl | bsd-2-clause | 8,264 | 231 | codeparrot/github-code |
6067fc3762f0f1367b3b76e948241b687675530a96570fd1094e731cf818a64a | import numpy as np
from pySDC.core.Sweeper import sweeper
from pySDC.implementations.collocation_classes.gauss_lobatto import CollGaussLobatto
class verlet(sweeper):
"""
Custom sweeper class, implements Sweeper.py
Second-order sweeper using velocity-Verlet as base integrator
Attributes:
QQ:... | Python | pySDC/implementations/sweeper_classes/verlet.py | Parallel-in-Time/pySDC | bsd-2-clause | 7,323 | 211 | codeparrot/github-code |
b1671efe854cb7bf306308f9cfed8950e06828718ac0dba1ce90485fd69208cd |
#-*- coding: utf-8 -*-
# Author : Jeonghoonkang, github.com/jeonghoonkang
import platform
import sys
import os
import time
import traceback
import requests
import RPi.GPIO as GPIO
from socket import gethostname
hostname = gethostname()
SERVER_ADDR = '211.184.76.80'
GPIO.setwarnings(False)
GPIO.cleanup()
GPIO.setm... | Python | apps/check/monitor.py | jeonghoonkang/BerePi | bsd-2-clause | 1,308 | 59 | codeparrot/github-code |
bf4b9bf6e83f6fae05313761abcb37bb668aae506f31e694d4a97342baf578db | #include <algorithm>
#include <cassert>
#include <cstdio>
#include <iostream>
#include <sstream>
#include <string>
#include <vector>
#include <cstring>
using namespace std;
class MostProfitable {
public:
string bestItem(vector <int> costs, vector <int> prices, vector <int> sales, vector <string> items)... | C++ | tc 160+/MostProfitable.cpp | ibudiselic/contest-problem-solutions | bsd-2-clause | 3,492 | 55 | codeparrot/github-code |
543e4ec4a3d6bfaf8e4e6d02a3c0b370e6b5a19a88875f240100dc36117b631f | // Copyright 1998-2015 Epic Games, Inc. All Rights Reserved.
#include "XmppPrivatePCH.h"
#include "XmppTests.h"
FXmppTest::FXmppTest()
: bRunBasicPresenceTest(true)
, bRunPubSubTest(false)
, bRunChatTest(false)
{}
void FXmppTest::Test(const FString& UserId, const FString& Password, const FXmppServer& XmppServer)
... | C++ | Engine/Source/Runtime/Online/XMPP/Private/XmppTests.cpp | PopCap/GameIdea | bsd-2-clause | 2,356 | 96 | codeparrot/github-code |
527b71be8c00bd412539a490c89020e145b95cdeca6c22193c9b6bb3ff1f2339 | package org.dstadler.commoncrawl;
import static org.dstadler.commoncrawl.Utils.COMMON_CRAWL_URL;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertTrue;
import java.io.File;
import java.io.IOException;
import java.nio.charset.StandardCharsets;
import org.apache.commons.io.FileUtils;
i... | Java | src/test/java/org/dstadler/commoncrawl/DocumentLocationTest.java | centic9/CommonCrawlDocumentDownload | bsd-2-clause | 3,628 | 94 | codeparrot/github-code |
7af20fdbd75aba2d7079c5e86ac3db8ecb05cf23454d22fcb7a5fb8b027986cf | require "fileutils"
require "tmpdir"
require "etc"
# Homebrew extends Ruby's `FileUtils` to make our code more readable.
# @see http://ruby-doc.org/stdlib-1.8.7/libdoc/fileutils/rdoc/FileUtils.html Ruby's FileUtils API
module FileUtils
# Create a temporary directory then yield. When the block returns,
# recursivel... | Ruby | Library/Homebrew/extend/fileutils.rb | toonetown/homebrew | bsd-2-clause | 3,826 | 140 | codeparrot/github-code |
82aeb8b606b14bef5ccd20d97b9af2a86a6e746d0f63d59d1510d68da33078d6 | from rctk.layouts.layouts import Layout, LayoutException
import types
import math
class Cell(object):
def __init__(self, o, row, column, rowspan=1, colspan=1, **options):
self.o = o
self.row = row
self.column = column
self.rowspan = rowspan
self.colspan = colspan
sel... | Python | rctk/layouts/grid.py | rctk/rctk | bsd-2-clause | 10,125 | 276 | codeparrot/github-code |
67d5d463b176e52acca4fa5b6d6a2dbd3c6b9b90837bdc078812147a5aa9e183 | # typed: false
# frozen_string_literal: true
require "dependency_collector"
describe DependencyCollector do
alias_matcher :be_a_build_requirement, :be_build
def find_dependency(name)
subject.deps.find { |dep| dep.name == name }
end
def find_requirement(klass)
subject.requirements.find { |req| req.is... | Ruby | Library/Homebrew/test/dependency_collector_spec.rb | reitermarkus/brew | bsd-2-clause | 3,766 | 120 | codeparrot/github-code |
2eb029c69baf02de235e5500ce586f5a57356c4788b87892eed2a3691c5c7798 | /*
* Copyright (c) 2016, quget
* 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 conditions and ... | Java | src/main/java/nl/hvanderheijden/prutengine/core/data/Sound.java | valvy/ggj2016 | bsd-2-clause | 3,742 | 112 | codeparrot/github-code |
f0f73dfb43a34f45ad048653797ba1c539036351ae8a9ef74fe6c4f42d6b1bf2 | <?php
$bgcolor1 = "#FFFFFF";
$bgcolor2 = "#101070";
$bgcolor3 = "#e6e6e6";
$bgcolor4 = "#e6e6e6";
$textcolor1 = "#FFFFFF";
$textcolor2 = "#000000";
function OpenTable() {
global $bgcolor1, $bgcolor2;
echo "<table width=\"100%\" border=\"0\" cellspacing=\"1\" cellpadding=\"0\" bgcolor=\"$bgcolor2\">... | PHP | terravista_original/news/themes/tvista/theme.php | krattai/Terra-Vista | bsd-2-clause | 16,127 | 284 | codeparrot/github-code |
e67796e2a16c50bee70de593c560cf6932f2df39a75ad5ac45bf353b7609c6da | import os
from collections import defaultdict
import dill
import numpy as np
import pySDC.helpers.plot_helper as plt_helper
from pySDC.helpers.stats_helper import filter_stats, sort_stats
from pySDC.implementations.collocation_classes.gauss_lobatto import CollGaussLobatto
from pySDC.implementations.controller_classes... | Python | pySDC/projects/Hamiltonian/fput.py | Parallel-in-Time/pySDC | bsd-2-clause | 8,363 | 247 | codeparrot/github-code |
a6eb7542bd464497f259df0484ee4a83fd7ef8b2f0adec1586dd2674404b2b48 | /*! \file solveeom.h
\brief 単振り子に対して運動方程式を解くクラスの宣言
Copyright © 2016-2018 @dc1394 All Rights Reserved.
This software is released under the BSD 2-Clause License.
*/
#ifndef _SOLVEEOM_H_
#define _SOLVEEOM_H_
#include "utility/property.h"
#include <array> // for std::array
#... | C | solveeom/solveeom/solveeom.h | dc1394/simplependulum | bsd-2-clause | 7,248 | 322 | codeparrot/github-code |
8504362b5e069b4611da59a57ee1af09a7a6021433758fa52e76ee838295536a | <?php
namespace DeltaCli\Script\Step;
use DeltaCli\ApiClient;
use DeltaCli\Environment\ApiEnvironment;
use DeltaCli\Environment\Provider\ProviderInterface;
use DeltaCli\Project;
class CreateEnvironment extends DeltaApiAbstract
{
/**
* @var ProviderInterface
*/
private $provider;
/**
* @va... | PHP | library/DeltaCli/Script/Step/CreateEnvironment.php | DeltaSystems/delta-cli-tools | bsd-2-clause | 3,064 | 121 | codeparrot/github-code |
f85d21e67f8dd46644afa50b537a13d2d953756346da3ef9b8bc64f39bb795fe | class Cxxtest < Formula
desc "xUnit-style unit testing framework for C++"
homepage "http://cxxtest.com"
url "https://github.com/CxxTest/cxxtest/releases/download/4.4/cxxtest-4.4.tar.gz"
mirror "https://mirrors.kernel.org/debian/pool/main/c/cxxtest/cxxtest_4.4.orig.tar.gz"
sha256 "1c154fef91c65dbf1cd4519af7ade... | Ruby | Formula/cxxtest.rb | bfontaine/homebrew-core | bsd-2-clause | 1,931 | 53 | codeparrot/github-code |
cd492cde21a6d89e9c189421c36430b0023458e35a6fc6fa82b1b87242eb3249 | package org.jvnet.hyperjaxb3.ejb.strategy.model.base;
import java.util.Collection;
import java.util.Collections;
import javax.xml.bind.annotation.adapters.XmlAdapter;
import org.jvnet.hyperjaxb3.ejb.schemas.customizations.Customizations;
import org.jvnet.hyperjaxb3.ejb.strategy.model.ProcessModel;
import com.sun.to... | Java | ejb/plugin/src/main/java/org/jvnet/hyperjaxb3/ejb/strategy/model/base/AbstractAdaptBuiltinPropertyInfo.java | highsource/hyperjaxb3 | bsd-2-clause | 2,278 | 74 | codeparrot/github-code |
00fd1b663509c325658b044b649755366f08113258a939aaf6a3f4d80ebb2295 | import numpy as np
import theano
import theano.tensor as T
import theano.typed_list
import operator
class BIRNN(object):
def __init__(self, word_dim, hidden_dim=10, sequence_length=3):
# Assign instance variables
self.word_dim = word_dim
self.hidden_dim = hidden_dim
self.seq_length = ... | Python | birnn_theano.py | ranarag/theano_works | bsd-2-clause | 4,947 | 115 | codeparrot/github-code |
18b84f6b1d754c38caa860f62d43c72fe084c419d2aaf8344af2d9dad6e58a2c | # -*- coding: utf8 -*-
import logging
import logging.handlers
import traceback
from argparse import ArgumentParser
from config import Config
from telegram import Telegram
TRACE = 5
def main():
parser = ArgumentParser()
parser.add_argument("-c", "--config", help="yaml config file name", defau... | Python | src/main.py | Fly33/telegram-ingress-bot | bsd-2-clause | 1,204 | 46 | codeparrot/github-code |
9b8b93662a8ef8b48bcb029134c0a6e79ad569ca12de6966d3680a07312c237f | package edu.ucsf.lava.core.calendar.controller;
import java.util.Map;
import javax.servlet.http.HttpServletRequest;
import org.springframework.validation.BindingResult;
import org.springframework.validation.ObjectError;
import org.springframework.webflow.context.servlet.ServletExternalContext;
import org.springframe... | Java | lava-core/src/edu/ucsf/lava/core/calendar/controller/ResourceCalendarHandler.java | UCSFMemoryAndAging/lava | bsd-2-clause | 3,056 | 79 | codeparrot/github-code |
d74138c7bdd6af40c76465f966b3780b0436c49d799f5ea925c05b0768147c70 | using ModernRoute.NomadData.Logging;
using ModernRoute.NomadData.Resources;
using System;
using System.Configuration;
using System.Globalization;
namespace ModernRoute.NomadData.App
{
public class ConsoleApp
{
public const int SuccessExitCode = 0x0;
public const int InvalidArgumentsExitCode = ... | C# | NomadData/App/ConsoleApp.cs | ModernRoute/MigSharpSQL | bsd-2-clause | 7,532 | 225 | codeparrot/github-code |
2adb91ab0bc9ea91b1feabeafe48a6ff6225f3be66379edc0784cb8024f6cf20 | #include "Draw.h"
NAMESPACE_UPP
#define LTIMING(x)
struct sPalCv {
PaletteCv& cv_pal;
const RGBA *palette;
int ncolors;
bool done[RASTER_MAP_G];
struct Ginfo {
int dist;
byte g;
byte ii;
};
enum _n { BINS = 16, BINSHIFT = 11 };
Ginfo line[BINS][256];
Gin... | C++ | uppsrc/Draw/Palette.cpp | dreamsxin/ultimatepp | bsd-2-clause | 6,514 | 282 | codeparrot/github-code |
d95fd09245ab94fb5dae4ccdf3e46b3ca3524e0d89d0df6901770917a47d2ae7 | using System;
namespace ICCC.SystemMessages
{
/// <summary>
/// An ICCC message to delete an listener.
/// </summary>
public sealed class ICCCDeleteListener : IICCCMessage
{
private IICCCMessage answer = new ICCCDefaultAnswer();
private string channel = string.Empty;
private string command = string.Empty;
... | C# | OceanNET/SystemMessages/ICCCDeleteListener.cs | SommerEngineering/OceanNET | bsd-2-clause | 1,705 | 111 | codeparrot/github-code |
9fd2476c33e8b8528845076f573172e6c99a445cd513aa7ee7a12459306a89bc | /*
* Copyright (c) 2016, Kevin Phoenix
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice, this
* list of condi... | Java | src/main/java/in/twizmwaz/cardinal/module/objective/wool/Wool.java | CardinalDevelopment/Cardinal | bsd-2-clause | 5,919 | 145 | codeparrot/github-code |
6d8448158353e2c70f717ec8b4eac446955bc0ee309a4ba0d719477e62ddfc32 | // #Sireum
/*
Copyright (c) 2017-2021, Robby, Kansas State University
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice, this
... | Scala | library/shared/src/main/scala/org/sireum/Map.scala | sireum/v3-logika-runtime | bsd-2-clause | 4,747 | 197 | codeparrot/github-code |
7d4f3f87e77bb51e2e020a457ed459f51e5a775613ec60f9f17361a043d1b369 | /* Copyright (c) Citrix Systems 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 li... | C# | XenAdmin/ServerDBs/XenAdminSimulatorWebStream.cs | aftabahmedsajid/XenCenter-Complete-dependencies- | bsd-2-clause | 4,172 | 98 | codeparrot/github-code |
b0a963737d491e96c60d97aa242b975b1453df01e781893e9d50297877c5e8ed | module Hbc
module Artifact
class Base
def self.artifact_name
@artifact_name ||= name.sub(%r{^.*:}, "").gsub(%r{(.)([A-Z])}, '\1_\2').downcase
end
def self.artifact_english_name
@artifact_english_name ||= name.sub(%r{^.*:}, "").gsub(%r{(.)([A-Z])}, '\1 \2')
end
def s... | Ruby | Library/Homebrew/cask/lib/hbc/artifact/base.rb | toonetown/homebrew | bsd-2-clause | 2,750 | 84 | codeparrot/github-code |
22136707891dfecb3e96320af0c771175416b6750ee1c3b8bcca35c74dc4113b | /*
* == BSD2 LICENSE ==
* Copyright (c) 2014, Tidepool Project
*
* This program is free software; you can redistribute it and/or modify it under
* the terms of the associated License, which is identical to the BSD 2-Clause
* License as published by the Open Source Initiative at opensource.org.
*
* This program ... | JavaScript | lib/cli/Formatter.js | tidepool-org/shio | bsd-2-clause | 2,140 | 82 | codeparrot/github-code |
9cb209c7e56bd32252376e3b1bb77ba2703a7105793637ad2deb518597250536 | //*****************************************//
// midiclient.cpp
// by John Fu, 2015.
//
// Simple program to echo MIDI input to
// MIDI output.
//
// compile with:
// g++ -g -std=c++11 -Wall -D__LINUX_ALSA__ -o
// midiclient midiclient.cpp rtmidi/RtMidi.cpp -lasound -pthread
//
//*****************************... | C++ | client/midiclient.cpp | Pikafu/midi-streamer | bsd-2-clause | 5,856 | 218 | codeparrot/github-code |
b910fba1964c0510f59b4617cbcd54cee6acdd630f5ff3dda9efda71e9be311f | /*
* Copyright 2019 LinkedIn Corporation
* All Rights Reserved.
*
* Licensed under the BSD 2-Clause License (the "License"). See License in the project root for
* license information.
*/
package com.linkedin.android.litr.filter.video.gl;
import androidx.annotation.Nullable;
import com.linkedin.android.litr.fil... | Java | litr-filters/src/main/java/com/linkedin/android/litr/filter/video/gl/GrayscaleFilter.java | linkedin/LiTr | bsd-2-clause | 1,433 | 42 | codeparrot/github-code |
32219254893183bb11868b3f164cd5fd23f32598f3f44d234f35e92374b2d231 | using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Reflection;
using NuDoq;
using Scriban.Functions;
using Scriban.Parsing;
using Scriban.Runtime;
namespace Scriban.DocGen
{
/// <summary>
/// Program generating the documentation for all builtin functions by extract... | C# | src/Scriban.DocGen/Program.cs | lunet-io/scriban | bsd-2-clause | 10,479 | 298 | codeparrot/github-code |
a6d39ef457e8b2f465709c9113ac10fe3ddb78336cf912402689c7e57aa8039c | package de.pfabulist.lindwurm.zero;
import java.io.IOException;
import java.net.URI;
import java.nio.channels.SeekableByteChannel;
import java.nio.file.*;
import java.nio.file.attribute.BasicFileAttributes;
import java.nio.file.attribute.FileAttribute;
import java.nio.file.attribute.FileAttributeView;
import ... | Java | src/main/java/de/pfabulist/lindwurm/zero/NullFSProvider.java | marschall/niotest | bsd-2-clause | 5,967 | 155 | codeparrot/github-code |
266ad45dd7964d133adce3e4db3d523d31d8e39779aa12d0149e7e4d733185d9 | /*
* Copyright (C) Roman Arutyunyan
*/
#include <ngx_config.h>
#include <ngx_core.h>
#include "ngx_rtmp_relay_module.h"
#include "ngx_rtmp_cmd_module.h"
static ngx_rtmp_publish_pt next_publish;
static ngx_rtmp_play_pt next_play;
static ngx_rtmp_delete_stream_pt next_delete_stream;
static n... | C | ngx_rtmp_relay_module.c | JIEgOKOJI/nginx-rtmp | bsd-2-clause | 49,998 | 1,790 | codeparrot/github-code |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.