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 |
|---|---|---|---|---|---|---|---|---|
2bf0bc33a4d5a058b18238ff1a21aaf63e5e6e604ba1d61bf825824953f129c4 | package com.blstream.myhoard.biz.model;
public class Location {
private float lat;
private float lng;
public Location() {
lat = lng = 0;
}
public Location(float lat, float lng) {
this.lat = lat;
this.lng = lng;
}
public float getLat() {
return lat;
}
... | Java | src/main/java/com/blstream/myhoard/biz/model/Location.java | blstream/myHoard_Java2 | apache-2.0 | 511 | 33 | codeparrot/github-code |
76286d6e4c6fa09d49ee7077e40ac47cae004308c817f95510678b67dda5e245 | <?php
/**
* Změna hesla uživatele
* @author Vítězslav Dvořák <vitex@hippy.cz>
* @copyright Vitex Software © 2011
* @package LinkQuick
* @subpackage WEBUI
*/
namespace LQ;
$oPage->onlyForLogged(); //Pouze pro přihlášené
$formOK = true;
if (!isset($_POST['password']) || !strlen($_POST['password'])) {
$oUs... | PHP | src/changepassword.php | VitexSoftware/LinkQuick | apache-2.0 | 2,812 | 86 | codeparrot/github-code |
01b818c856ba2e65ab8e68d427d7708df6e316d8745bb14f211e756499234e2f | /*
* Copyright (c) 2013 David Boissier
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agr... | Java | src/main/java/org/codinjutsu/tools/mongo/utils/MongoUtils.java | MasterAM/mongo4idea | apache-2.0 | 2,079 | 53 | codeparrot/github-code |
8cf3f273f3b03ef357414871a32b42db9ecf4008652a56762bf009541c973575 | package com.github.sunnysuperman.commons.config;
import java.util.Date;
import java.util.Map;
import com.github.sunnysuperman.commons.utils.FormatUtil;
import com.github.sunnysuperman.commons.utils.JSONUtil;
public class TypeAndValue {
protected String type;
protected Object value;
public TypeAndValue(S... | Java | src/main/java/com/github/sunnysuperman/commons/config/TypeAndValue.java | sunnysuperman/commons | apache-2.0 | 1,667 | 74 | codeparrot/github-code |
8841441b6d12cb40d3642f5aff7f299d734630cbbe4e5205d6bf067f5f9488ef | /**
* Copyright 2010-2015 The PlayN 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 agree... | Java | scene/src/playn/scene/Interaction.java | ruslansennov/playn2 | apache-2.0 | 4,169 | 121 | codeparrot/github-code |
978c0ef0172353a384986a5b9083d9d9af466af8b7aadad844a62995d1eeb6f9 | 'use strict';
angular.module('Home')
.controller('HomeController',
['$scope', '$rootScope', '$location', 'HomeService', '$modal',
function ($scope, $rootScope, $location, HomeService, $modal) {
$scope.id = $location.search().id ? $location.search().id... | JavaScript | modules/home/controllers.js | fixxit/MoknJ-WebUI | apache-2.0 | 35,009 | 632 | codeparrot/github-code |
5a2dc0dbabed8ebbb4a0c59283d2bac59e4d0c98ae784727b6cda2a4b715cc60 | package org.keycloak.protocol.oidc;
import org.jboss.logging.Logger;
import org.keycloak.ClientConnection;
import org.keycloak.OAuthErrorException;
import org.keycloak.events.Details;
import org.keycloak.events.Errors;
import org.keycloak.events.EventBuilder;
import org.keycloak.jose.jws.JWSBuilder;
import org.keycloa... | Java | services/src/main/java/org/keycloak/protocol/oidc/TokenManager.java | grange74/keycloak | apache-2.0 | 25,533 | 554 | codeparrot/github-code |
f0af4d1d1ca78ac6a269c5f18f7f801deb29f7c93548681e9a8bf41d92bfc937 | var metrics = require('../lib')();
var resources = require('../lib/resources');
var assert = require('assert');
// var debug = require('debug')('mongodb-js-metrics:test:feature');
var DEBUG = true;
describe('Feature Resource', function() {
var feature;
var PlasmaCannon;
beforeEach(function() {
// create me... | JavaScript | test/feature.test.js | mongodb-js/metrics | apache-2.0 | 1,930 | 69 | codeparrot/github-code |
d1e501e4bc7d54c61b38ec736179c718749e668c2b636b495c96a93c7555cdc2 | // json.cpp : ¶¨Òå¿ØÖÆÌ¨Ó¦ÓóÌÐòµÄÈë¿Úµã¡£
//
#include "stdafx.h"
#include <list>
#include <vector>
#include "acl_cpp/stdlib/string.hpp"
#include "acl_cpp/stdlib/json.hpp"
using namespace std;
#if 1
static const char* default_data = \
"{ 'menu name': {\r\n"
" 'id:file': 'file',\r\n"
" ... | C++ | library/acl/lib_acl_cpp/samples/json/json4/json.cpp | hankwing/Squirrel | apache-2.0 | 7,123 | 186 | codeparrot/github-code |
c9ba7593a0b455b3ff6a64a301b482bfa21aba420a8a20c2c9895f49f5070e5d | import java.io.File;
import java.io.PrintWriter;
import java.util.ArrayList;
import java.util.Collections;
import com.redhat.ceylon.cmr.api.RepositoryManager;
import com.redhat.ceylon.cmr.ceylon.CeylonUtils;
import com.redhat.ceylon.compiler.js.JsCompiler;
import com.redhat.ceylon.compiler.js.loader.JsModuleManagerFac... | Java | compiler-js/src/test/java/MainForJsTest.java | gijsleussink/ceylon | apache-2.0 | 4,277 | 109 | codeparrot/github-code |
d9f2a9ff2ec7b5bbc78d9defdafdc673bd3d6aa783cfd3aca07d72d1975b5c9e | /** Copyright 2015 TappingStone, 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 ... | Scala | e2/src/main/scala/io/prediction/e2/engine/CategoricalNaiveBayes.scala | nvoron23/PredictionIO | apache-2.0 | 5,235 | 167 | codeparrot/github-code |
b2d5d96fdff9f1427a4567c61fdaa399613717acbaecdabbc37c63d8695145ed | // Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System.Collections.Immutable;
using System.Linq;
using Analyzer.Utilities;
using Analyzer.Utilities.Extensions;
using Microsoft.CodeAnalysis;
using Micr... | C# | src/NetAnalyzers/Core/Microsoft.CodeQuality.Analyzers/ApiDesignGuidelines/CancellationTokenParametersMustComeLast.cs | mavasani/roslyn-analyzers | apache-2.0 | 7,895 | 158 | codeparrot/github-code |
2e7d193806431b6ee11faf025d9545c3dcc4b3127183f66a031b1abaff716c85 | # Copyright 2018 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | Python | tensorflow/contrib/distribute/python/step_fn.py | manipopopo/tensorflow | apache-2.0 | 4,263 | 114 | codeparrot/github-code |
3c2b27ba6727164b6c0e814cefd988005088c78990be55d1b26569e02b1029ba | module MysqlCookbook
class MysqlServerInstallationPackage < MysqlBase
# Resource properties
resource_name :mysql_server_installation_package
provides :mysql_server_installation, os: 'linux'
property :package_name, String, default: lazy { default_server_package_name }, desired_state: false
propert... | Ruby | libraries/mysql_server_installation_package.rb | acoulton/mysql | apache-2.0 | 1,366 | 43 | codeparrot/github-code |
281f60f664d29d88e7da40673628a3f3be5b222972a3969dc6cc988327c7feec | /*
* Copyright 2004-2009 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by ap... | Java | compass-core/src/main/java/org/apache/lucene/store/jdbc/JdbcDirectory.java | unkascrack/compass-fork | apache-2.0 | 19,666 | 461 | codeparrot/github-code |
65e215afc78cf018a29574baeba8626f7a09644235dbebb605fe772653681609 | /*
* 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 | hyracks-fullstack/hyracks/hyracks-storage-am-lsm-invertedindex/src/main/java/org/apache/hyracks/storage/am/lsm/invertedindex/search/AbstractTOccurrenceSearcher.java | apache/incubator-asterixdb | apache-2.0 | 14,206 | 299 | codeparrot/github-code |
ee03619787ccfab6867a24e009d598b004b8785e4800d4719a555f1653d95c85 | package org.rabix.bindings.cwl;
import java.io.File;
import java.util.ArrayList;
import java.util.Collections;
import java.util.HashMap;
import java.util.LinkedList;
import java.util.List;
import java.util.Map;
import java.util.Map.Entry;
import org.apache.commons.lang3.StringUtils;
import org.rabix.bindings.BindingE... | Java | rabix-bindings-cwl/src/main/java/org/rabix/bindings/cwl/CWLCommandLineBuilder.java | markosbg/debug | apache-2.0 | 14,986 | 382 | codeparrot/github-code |
6c801b23c1f4e28da82cd95f775fd28c1ca59e85b6ceacaef671c22c96c80a70 | using System;
using System.ComponentModel;
using System.Data.OleDb;
using System.Drawing;
using System.IO;
using System.Windows.Forms;
using FlyingPig.Core;
namespace FlyingPig
{
public partial class FormUserSetting : Form
{
///使用自定义头像
private bool bUseCustomPic = false;
private strin... | C# | FlyingPig/FormUserSetting.cs | weishaoying/Financial | apache-2.0 | 7,661 | 234 | codeparrot/github-code |
e674a84fc1f43cefd8d4e02bd6a7278c2b64b017d5dae3412121f29c5acd150e | /*
* (C) 2016
* Booz Allen Hamilton, All rights reserved
* Powered by InnoVision, created by the GIAT
*
* Endpoint.js was developed at the
* National Geospatial-Intelligence Agency (NGA) in collaboration with
* Booz Allen Hamilton [http://www.boozallen.com]. The government has
* "unlimited rights" and is... | JavaScript | js/app/api/facade-manager.js | ngageoint/endpoint.js | apache-2.0 | 4,228 | 150 | codeparrot/github-code |
893efc2882d0ba4b0e9d6c1baf517c8f192a7d2f8b4a399268cd3775895d4e20 | /*
* Copyright (c) 2017 Jean-Paul Etienne <fractalclone@gmail.com>
*
* SPDX-License-Identifier: Apache-2.0
*/
/**
* @file
* @brief interrupt management code for riscv SOCs supporting the riscv
privileged architecture specification
*/
#include <irq.h>
void _arch_irq_enable(unsigned int irq)
{
uint32_t mie;
... | C | arch/riscv32/soc/riscv-privilege/common/soc_common_irq.c | runchip/zephyr-cc3200 | apache-2.0 | 1,523 | 78 | codeparrot/github-code |
003e1d53535fe82b06160b0bba8f12f2927fa48c45a58b2f0fe2e163e21a59c6 | var args = arguments[0] || {};
var e_id = args.e_id || "";
var from = args.from || "homepage";
var educationModel = Alloy.createCollection('education');
var galleryModel = Alloy.createCollection('gallery');
var details;
var contacts = Ti.Contacts.getAllPeople();
var isAddedToContact = "0";
var phoneArr = [];
set... | JavaScript | app/controllers/educationDetails.js | geonn/gosco | apache-2.0 | 7,060 | 280 | codeparrot/github-code |
9f37a48050e036ee7c0d5aff0996c3547403aada9ce27516659abc9679f40356 | /**
* 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 | components/camel-jaxb/src/test/java/org/apache/camel/example/JAXBConvertTest.java | kingargyle/turmeric-bot | apache-2.0 | 4,171 | 104 | codeparrot/github-code |
9b0ec7c4f449e7b6a6f95e0ff925960fd88a9526c820d0e70137df33181accc9 | <?php
/*
[UCenter] (C)2001-2099 Comsenz Inc.
This is NOT a freeware, use is subject to license terms
$Id: cache.php 1059 2011-03-01 07:25:09Z monkey $
*/
!defined('IN_UC') && exit('Access Denied');
if (!function_exists('file_put_contents'))
{
function file_put_contents($filename, $s)
{
$fp = ... | PHP | extend/fast/ucenter/client/uc_client/model/cache.php | yangqihua/holsem | apache-2.0 | 2,785 | 120 | codeparrot/github-code |
c37b33accd5a7baaefdf50e3110e362d2c83c9922f66b8b96181540dfa73e1dc | /**
* 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 | sharelib/spark/src/test/java/org/apache/oozie/action/hadoop/TestSparkActionExecutor.java | cbaenziger/oozie | apache-2.0 | 10,424 | 238 | codeparrot/github-code |
5f3395c578fa9a45fa149ac60c749fba059364b7db6deed8480886d6a222d100 | package com.thinkgem.jeesite.test;
import java.util.Random;
/**
* Created by zhongyi on 2018/1/11 0011.
*/
public class ThreadLocalTest2 {
private static ThreadLocal<Integer> x = new ThreadLocal<Integer>();
private static ThreadLocal<MyThreadScopeData> myThreadScopeDataThreadLocal = new ThreadLocal<MyThre... | Java | src/test/java/com/thinkgem/jeesite/test/ThreadLocalTest2.java | zhongyiares/stockPolicy | apache-2.0 | 2,671 | 92 | codeparrot/github-code |
71f2217392d738f064aa00bdfc3e17be0b5f82a82d1247e9c831492b1510f449 | package model;
import java.util.Date;
public class Produto {
private int codigo;
private String nome;
private double valorCusto;
private double valorVenda;
private String descricao;
private Date dataFabricacao;
private String marca;
private String fornecedor;
private int quantidade;
private... | Java | WorkSpaceFarmacia/Farmacia/src/model/Produto.java | adriano003/Turma-2016023-Sistema-de-Farmacia | apache-2.0 | 2,305 | 117 | codeparrot/github-code |
27f8af9ea9699d64c8b78fd5a6befc11bfd207fd3207b4f1ec95fe1aab7eb719 | /*
* Project 'WS-Aggregation':
* http://www.infosys.tuwien.ac.at/prototype/WS-Aggregation/
*
* Copyright 2010-2012 Vienna University of Technology
*
* 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... | Java | code/wsaggr-events-core/src/main/java/at/ac/tuwien/infosys/events/ws/EventSubscriptionEndRequest.java | whummer/WS-Aggregation | apache-2.0 | 1,700 | 65 | codeparrot/github-code |
154a2255270ddaff5615a1caa1e13123063fb74293987607dcc8fea28db29fd0 | <?php
//sécurisation du module
if (file_exists('uploads/'.$_SESSION['login'].'/key')) {
if (file_get_contents('uploads/'.$_SESSION['login'].'/key', NULL, NULL, 0, 100)==$_SESSION['key']) {
if (!isset($gallery) and $gallery!=true)
header('location:index.php');
}
else
header('location:index.php');
}
e... | PHP | modules/gallery.php | valentinoeval/giltin | apache-2.0 | 2,051 | 59 | codeparrot/github-code |
44536efbe4775e558febcba5a211224c12adf42c1a769c725f4e0a0ccaa3523f | /*
* Copyright 2011-2012 Gregory P. Moyer
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicabl... | Java | protocol/src/main/java/org/syphr/mythtv/protocol/impl/Command63QueryFileHash.java | syphr42/libmythtv-java | apache-2.0 | 2,275 | 73 | codeparrot/github-code |
52dd6060d0d3768b267b5efbbd2bd9b82b9da710f4ebac1fa314199a3f0a93b1 | package org.radargun.config;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.OutputStream;
import java.io.PrintStream;
import java.lang.annotation.Annotation;
import java.net.URL;
import java.util.ArrayList;
import java.util.List;
import java.util.zip.Zi... | Java | core/src/main/java/org/radargun/config/AnnotatedHelper.java | Danny-Hazelcast/radargun | apache-2.0 | 2,960 | 74 | codeparrot/github-code |
87fb77c64f7cc151ea33980bd6a0e0d5a608c5dab54d6596870d670f0980580d | package cz.jenda.pidifrky.ui.dialogs
import android.os.Bundle
import android.support.v7.app.AppCompatActivity
import com.afollestad.materialdialogs.MaterialDialog
import com.afollestad.materialdialogs.MaterialDialog.Builder
/**
* @author Jenda Kolena, jendakolena@gmail.com
*/
trait ProgressDialog extends BaseDialog... | Scala | client/src/main/scala/cz/jenda/pidifrky/ui/dialogs/NormalProgressDialog.scala | jendakol/pidifrky | apache-2.0 | 2,202 | 78 | codeparrot/github-code |
e5c8edc921701c88b93818618096392e64b8c5aa415252755885fd02502bc4df | package com.java.demo.classcreate;
/**
* <p>
* 参考:http://ifeve.com/java-memory-model-1/
*
* </p>
* User: <a href="mailto:yanmingming1989@163.com">严明明</a>
* Date: 15/5/21
* Time: 下午5:40
*/
import java.util.concurrent.*;
public class ReorderTest1 {
private int a = 0;
private int b = 0;
public ... | Java | src/main/java/com/java/demo/classcreate/ReorderTest1.java | heartaway/android-study-demo | apache-2.0 | 1,992 | 76 | codeparrot/github-code |
7174a73cb1a14bd6f02ac8489655eb816d9e67383a1ba2004ab887a4bda994d5 | /*
* TlosFaz2
* com.likya.tlos.utils : ConfigLoader.java
* @author Serkan Ta�
* Tarih : 10.Kas.2008 13:45:56
*/
package com.likya.tlosswagent.utils;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileReader;
import com.likya.tlos.model.xmlbeans.agentconfig.AgentConfigInfo... | Java | TlosSW_V1.0_Agent/src/com/likya/tlosswagent/utils/ConfigLoader.java | likyateknoloji/TlosSWGroup | apache-2.0 | 1,659 | 55 | codeparrot/github-code |
1ca59c0896adb5c71a87466a30abee5eccbb5d7c3a26b810a31e85ed1610e8eb | package guizmo.tiles2layout.graphs;
import java.awt.Rectangle;
import java.util.ArrayList;
import java.util.List;
import guizmo.tiles2layout.LayoutType;
import guizmo.tiles2layout.impl.LayoutAnalyzer;
import guizmo.tiles.HAlignmentType;
import guizmo.tiles.Tile;
import guizmo.tiles.VAlignmentType;
import guizmo.struc... | Java | src/guizmo/tiles2layout/graphs/LNode.java | osanchezUM/guizmo | apache-2.0 | 5,838 | 275 | codeparrot/github-code |
19add4fe889445cc75a84f0da0f4bb3ad4420075621cd380027b89db23286498 | (function() {
'use strict';
angular
.module('manateeApp')
.factory('Auth', Auth);
Auth.$inject = ['$rootScope', '$state', '$sessionStorage', '$q', 'Principal', 'AuthServerProvider', 'Account', 'LoginService', 'Register', 'Activate', 'Password', 'PasswordResetInit', 'PasswordResetFinish'];
... | JavaScript | src/main/webapp/app/services/auth/auth.service.js | magnumresearch/manatee | apache-2.0 | 6,279 | 177 | codeparrot/github-code |
c17e95c8825442538a7e17a38ce22c9e3686a168489dcec999b6e43c34601416 | package com.metaui.core.parser.book;
import com.metaui.core.util.UFile;
import org.apache.log4j.Logger;
import java.io.File;
import java.io.FileOutputStream;
import java.io.InputStream;
import java.net.URLConnection;
import java.util.Date;
import java.util.List;
import java.util.concurrent.CountDownLatch;
/**
* 下载图... | Java | core/src/main/java/com/metaui/core/parser/book/DownloadPicture.java | weijiancai/metaui | apache-2.0 | 2,513 | 96 | codeparrot/github-code |
8bbc16876c94c310578f5708158436062fe0547d02718bcb593985e5ba9f6c05 | /*******************************************************************************
* Copyright 2014 United States Government as represented by the
* Administrator of the National Aeronautics and Space Administration.
* All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you m... | Java | gov.nasa.arc.spife.ui/src/gov/nasa/arc/spife/ui/lifecycle/SpifePlanPersister.java | nasa/OpenSPIFe | apache-2.0 | 2,228 | 69 | codeparrot/github-code |
ec88c4f509ec14112c884db35191c4d6d560ee01f94ba94543d43f2ea8ae9145 | using System.Diagnostics;
namespace MadMilkman.Ini
{
/// <summary>
/// Represents a comment object used by <see cref="IniItem"/> objects, <see cref="IniSection"/> and <see cref="IniKey"/>.
/// </summary>
[DebuggerDisplay("Text = {Text}")]
public sealed class IniComment
{
[DebuggerBrows... | C# | MadMilkman.Ini/IniItems/IniComment.cs | MarioZ/MadMilkman.Ini | apache-2.0 | 2,096 | 59 | codeparrot/github-code |
267df8352d463b78cf72e4e386cce5fe329c7e39db268974b2c9c6a179453b15 | package com.tqmars.cardrecycle.webapi.controller.usersale;
import com.google.gson.reflect.TypeToken;
import com.tqmars.cardrecycle.application.sale.ISaleAppService;
import com.tqmars.cardrecycle.application.sale.dto.Sale1CardInput;
import com.tqmars.cardrecycle.infrastructure.serialization.Code;
import com.tqmars.card... | Java | src/main/java/com/tqmars/cardrecycle/webapi/controller/usersale/UserSaleController.java | huahuajjh/card_recycle | apache-2.0 | 1,928 | 51 | codeparrot/github-code |
116eef146f9d47f54ada56a494e5d82abb7d3e6678e5636e81852a2596e3d8a0 | /**
*
*/
package cn.yoho.im.bean;
import java.util.HashMap;
/**
* @author Hbomb <h1>参数设置</h1>
*/
public class Config extends HashMap<String, Object> {
/**
*
*/
private static final long serialVersionUID = 1L;
private String save = "save";
private String face = "face";
... | Java | intruder/benchs/cometd/src/main/java/cn/yoho/im/bean/Config.java | Groostav/CMPT880-term-project | apache-2.0 | 1,201 | 64 | codeparrot/github-code |
672e5f578a542f5f743464f3bd0c9c14593be7f674134f9b0fcae54ca29c54c0 | /*! dsa-modified-1.0.1.js (c) Recurity Labs GmbH, Kenji Urushimma | github.com/openpgpjs/openpgpjs/blob/master/LICENSE
*/
/*
* dsa-modified.js - modified DSA class of OpenPGP-JS
*
* Copyright (c) 2011-2013 Recurity Labs GmbH (github.com/openpgpjs)
* Kenji Urushima (kenji.urushima@gmail.com... | JavaScript | src/external/jsrsasign/dsa-modified-1.0.js | rwth-acis/Anatomy2.0 | apache-2.0 | 11,274 | 382 | codeparrot/github-code |
cff821a69ab2667607c85936c0a78b771fe970bbced58043f5a0eac447a5f8c8 | <?php
# Program: mysar, File: www/functions.inc.php
# Copyright 2004-2006, Stoilis Giannis <giannis@stoilis.gr>
#
# This file is part of mysar.
#
# mysar is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2 as published by
# the Free Software Foundatio... | PHP | mysar/inc/functions.inc.php | coffnix/mysar-ng | apache-2.0 | 10,355 | 439 | codeparrot/github-code |
eee14b5dcda0538cb8e30c3168a325a9905fe8b0aafb8e754873122dead2b354 | package v3action
import (
"time"
noaaErrors "github.com/cloudfoundry/noaa/errors"
"github.com/cloudfoundry/sonde-go/events"
)
const StagingLog = "STG"
type NOAATimeoutError struct{}
func (_ NOAATimeoutError) Error() string {
return "Timeout trying to connect to NOAA"
}
type LogMessage struct {
message ... | GO | actor/v3action/logging.go | fujitsu-cf/cli | apache-2.0 | 2,646 | 118 | codeparrot/github-code |
218b9e2acaf9fa3a273724df528784cf5e50cdd7af2d1e220f8d342714beecd4 | using System;
using Microsoft.Owin.Extensions;
using Owin;
namespace Microsoft.Owin.Security.ApiKey
{
/// <summary>
/// Extension methods to add API key authentication capabilities to an OWIN pipeline.
/// </summary>
public static class IAppBuilderExtensions
{
/// <summary>
/// Con... | C# | src/Microsoft.Owin.Security.ApiKey/Extensions/IAppBuilderExtensions.cs | jamesharling/Microsoft.Owin.Security.ApiKey | apache-2.0 | 1,288 | 38 | codeparrot/github-code |
00544515290a71ea9505f2f14b669569880c5fc8fa566897d059b17379058280 | /*
* Copyright 2014-2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
* the License. A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "licen... | Java | aws-java-sdk-devicefarm/src/main/java/com/amazonaws/services/devicefarm/model/transform/ListProjectsResultJsonUnmarshaller.java | jentfoo/aws-sdk-java | apache-2.0 | 3,066 | 79 | codeparrot/github-code |
9230f950dd40d2f24120870b1d2584ad8e1e007935a00f4dd9588e737c8acb53 | // This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it wi... | Java | project/jMetal/jmetal-exec/src/main/java/org/uma/jmetal/runner/singleobjective/SteadyStateGeneticAlgorithmRunner.java | tarunchhabra26/fss16dst | apache-2.0 | 3,547 | 81 | codeparrot/github-code |
543c64428f787c0c92fc0c63f80f6cb5c509cee14a545ae24821958fbdcb14a2 | <?php
/**
* Copyright 2014 SURFnet bv
*
* 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... | PHP | src/Surfnet/StepupMiddleware/ApiBundle/Identity/Repository/SraaRepository.php | SURFnet/Stepup-Middleware | apache-2.0 | 2,753 | 99 | codeparrot/github-code |
45bc8cbd158c75ce139d3df95406dd5031139881e6bdc06f556bbc815c9423d5 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
###############################################################################
# Copyright 2013 Kitware 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 cop... | Python | girder/api/v1/file.py | salamb/girder | apache-2.0 | 17,532 | 387 | codeparrot/github-code |
7120de9e4a53c826413d4da53979b552819607bb22d9f443ce1c98dcc3584869 | // 结果显示器
var view = document.getElementById('result-view');
var leftNum, // 第一个操作数
rightNum, //第二个操作数
currentOp, //操作符
result; //结果
var isNew = true; //是否是新数据的开始
// 事件绑定监听
function addEvent(obj, eventtype, fn) {
try { // Chrome、FireFox、Opera、Safari、IE9.0及其以上版本
obj.addEventListener(eventtype, f... | JavaScript | task6/sci_calculator/sci_calculator.js | lnluckybamboo/fd_homework | apache-2.0 | 4,351 | 177 | codeparrot/github-code |
b4cfa2f402dcccb223f6a49b9772a58b525804119284a7c1811fdcf7196d5ce3 | import styled, { css } from 'styled-components';
import { centerIcon } from '~/renderer/mixins';
import {
TOOLBAR_BUTTON_WIDTH,
TOOLBAR_BUTTON_HEIGHT,
} from '~/constants/design';
import { ITheme } from '~/interfaces';
export const Icon = styled.div`
width: 100%;
height: 100%;
will-change: background-image;... | TypeScript | src/renderer/views/app/components/ToolbarButton/style.ts | Nersent/Wexond | apache-2.0 | 2,740 | 128 | codeparrot/github-code |
fc94611eadb9ab1143b1c2d29377d333092ace1c2d8f08d11264a230fe92719f | /*
* Copyright 2009-2013 by The Regents of the University of California
* 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 from
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless... | Java | algebricks/algebricks-core/src/main/java/org/apache/hyracks/algebricks/core/algebra/typing/PropagatingTypeEnvironment.java | tectronics/hyracks | apache-2.0 | 3,745 | 88 | codeparrot/github-code |
3eff091f5d49b54df225487bd5c7f8d97e3074eba61feb1e2bff8111c0bf015a | /*
* report_client.h
*
* Created on: 2016Äê1ÔÂ19ÈÕ
* Author: weiteng
*/
#ifndef INCLUDE_REPORT_CLIENT_H_
#define INCLUDE_REPORT_CLIENT_H_
namespace cc
{
namespace report
{
class ReportMsgq;
class Reporter
{
public:
Reporter();
~Reporter();
int Init();
int ReportPerformance(... | C | component/configcenter/config_center6/include/report_client.h | kuroroyoung/c2c_proj | apache-2.0 | 953 | 47 | codeparrot/github-code |
20418cbec9f67e781f51c5503bf27cb31382423921651c3f78c43bfbd99a33af | /*
* Copyright (c) 1994-2020 Leonid Yuriev <leo@yuriev.ru>.
* https://github.com/erthink/erthink
*
* 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/li... | C | fast_positive/erthink/erthink_clz.h | leo-yuriev/libfptu | apache-2.0 | 3,544 | 121 | codeparrot/github-code |
ebbacf9bbb2e40e4768a583e8c50cf21a9e53c0682d961e03af51cf9fe3faed4 | /*
* The directive for creating the generic question layout (stub, surrounding etc.).
*/
define(function (require) {
var PREFIX = 'quest';
var template = require('text!./wrapper.html');
var _ = require('underscore');
function capitaliseFirstLetter(string){
return string.charAt(0).toUpperCase... | JavaScript | src/js/quest/directives/wrapper/wrapper-directive.js | minnojs/minno-quest | apache-2.0 | 1,457 | 46 | codeparrot/github-code |
a8f8db2462be0390cfa4fe7526946944d5a8bd5860863e50d33711b16be01ad4 | """
Backend for fetching OEmbed data.
This module can also be used by other external apps.
"""
import threading
from django.core.exceptions import ImproperlyConfigured
from micawber import Provider, ProviderRegistry, bootstrap_basic, bootstrap_embedly
from micawber.providers import bootstrap_noembed # Export was mis... | Python | fluent_contents/plugins/oembeditem/backend.py | django-fluent/django-fluent-contents | apache-2.0 | 2,959 | 94 | codeparrot/github-code |
7aff90be307784d7f1bbcd71b289377e0e4ac6411039a66e2b92f269f1cf1ca0 | <?php
namespace MES\APP\FrontendBundle\Service\Upload;
class UploadType
{
protected $name;
protected $parameters = [];
protected $mapping;
protected $fileType;
protected $adapter;
public function getName()
{
return $this->name;
}
public function getParameters()
{
... | PHP | src/MES/APP/FrontendBundle/Service/Upload/UploadType.php | arstherapia/dobrapsychoterapia | apache-2.0 | 1,404 | 81 | codeparrot/github-code |
84606a20d67ba51daa356afe0844e5704b0ab91e97193b280c93b88968497ee7 | /*
* Copyright 2019 Patrik Karlström.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or ag... | Java | io/src/main/java/se/trixon/toolbox/io/file/CoordinateFile.java | trixon/netbeans-toolbox | apache-2.0 | 2,526 | 101 | codeparrot/github-code |
3667cc9fd0a33ed1d03323e189ab2b71642ea82c093efcda66eee193095601f0 | # coding: utf-8
from django.shortcuts import render
from django.db.models.query import Prefetch
from django.db.models import Q
from django.db.models.aggregates import Count
from ref.models.instances import Environment, ComponentInstance, \
ComponentInstanceField
from ref.models.description import ImplementationFi... | Python | ref/views/display.py | digitalfox/MAGE | apache-2.0 | 3,914 | 67 | codeparrot/github-code |
8771561c436156e7eda68956cc44e284332922ff2b0386239ca659c442084057 | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>ADMINISTRATOR - HUTECH DEVELOPERS CLUB</title>
<meta name="description" content="User login page" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<!--basic styles-->
<link href="<?php echo base_url();?>te... | PHP | application/views/admin/login.php | EZWebvietnam/vieclam24h | apache-2.0 | 3,674 | 117 | codeparrot/github-code |
37eed6a06826f9145ca696d7fc29c4443834f20f60e3546ee312cba60df5b2c0 | package org.fluentjdbc;
import static org.assertj.core.api.Assertions.assertThat;
import org.fluentjdbc.h2.H2TestDatabase;
import org.junit.Before;
import org.junit.Test;
import java.sql.Connection;
import java.sql.SQLException;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
public class B... | Java | src/test/java/org/fluentjdbc/BulkInsertTest.java | jhannes/fluent-jdbc | apache-2.0 | 1,731 | 58 | codeparrot/github-code |
3e1f25bd8f11ba778501fa20d475c1f5968dc1a7cb5895a9405d5ab5a7e52a8c | package com.cloudTop.starshare.ui.main.adapter;
import android.content.Context;
import android.widget.TextView;
import com.cloudTop.starshare.base.ListBaseAdapter;
import com.cloudTop.starshare.base.SuperViewHolder;
import com.cloudTop.starshare.been.MoneyDetailListBean;
import com.cloudTop.starshare.greendao.GreenDa... | Java | app/src/main/java/com/cloudTop/starshare/ui/main/adapter/MoneyBagDetailAdapter.java | AFinalStone/adstar | apache-2.0 | 2,751 | 69 | codeparrot/github-code |
8920390fffbef05a26def335cfec0d67175c37baf34cc48220e965718c7c8522 | package main
import (
"flag"
"os"
"os/signal"
"syscall"
"go-common/app/job/openplatform/article/conf"
"go-common/app/job/openplatform/article/http"
"go-common/app/job/openplatform/article/service"
"go-common/library/log"
"go-common/library/net/trace"
)
func main() {
flag.Parse()
initConf()
initLog()
def... | GO | 126-go-common-master/app/job/openplatform/article/cmd/main.go | LQJJ/demo | apache-2.0 | 1,090 | 58 | codeparrot/github-code |
68862ab6b4b180471876080c9a22d913fd0f6a9d9fd202170f1cda1ade0bdfda | package org.emerjoin.hi.web;
import org.emerjoin.hi.web.internal.JSCommandSchedule;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import javax.annotation.PostConstruct;
import javax.enterprise.context.RequestScoped;
import javax.enterprise.event.Event;
import javax.inject.Inject;
import javax.servlet.Servl... | Java | Web/src/main/java/org/emerjoin/hi/web/RequestContext.java | Emerjoin/Hi-Framework | apache-2.0 | 3,620 | 182 | codeparrot/github-code |
c0657afb6e988b1486a9800b861a9dcbe20a4fcdc154390ff006b9e281122973 | # vim: tabstop=4 shiftwidth=4 softtabstop=4
# Copyright 2010 United States Government as represented by the
# Administrator of the National Aeronautics and Space Administration.
# Copyright 2011 Justin Santa Barbara
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
#... | Python | ironic/openstack/common/service.py | citrix-openstack-build/ironic | apache-2.0 | 10,246 | 334 | codeparrot/github-code |
00e633180d7ef02f26ac60fc7aa895243643408d5da1d0d98554b9c75cbc42ee | /*
* Copyright 2010-2016 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... | Java | aws-java-sdk-ec2/src/main/java/com/amazonaws/services/ec2/model/transform/PriceScheduleSpecificationStaxUnmarshaller.java | dump247/aws-sdk-java | apache-2.0 | 3,143 | 86 | codeparrot/github-code |
572def89b6ce4ea219f5b47a73a8a1be98220cd3a1484f4e8cdf703b7f8efb95 | // Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System;
using System.Collections.Concurrent;
using System.Collections.Generic;
using System.IO;
using System.IO.Compression;
using System.Security.Cryp... | C# | src/EditorFeatures/Core.Wpf/SymbolSearch/SymbolSearchUpdateEngine.Update.cs | nguerrera/roslyn | apache-2.0 | 34,692 | 673 | codeparrot/github-code |
a2562307edabe0728c270d57d3dc3d718c756d3e05f45ae9f158b02a3a718749 | /*
Copyright 2013, The Sporting Exchange Limited
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in wr... | Java | src/test/java/com/betfair/platform/plugin/testprocess/TestTestProcess.java | betfair/maven-test-process-plugin | apache-2.0 | 2,141 | 61 | codeparrot/github-code |
969a68d1f40a31c46410404f51982ea1e03f5dfe03f88a42693e247d42183638 | package com.aayaffe.sailingracecoursemanager.db;
import android.content.Context;
import android.preference.PreferenceManager;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import android.util.Log;
import com.aayaffe.sailingracecoursemanager.R;
import com.aayaffe.sailingracecoursemanager.Use... | Java | app/src/main/java/com/aayaffe/sailingracecoursemanager/db/FirebaseDB.java | aayaffe/SailingRaceCourseManager | apache-2.0 | 19,532 | 595 | codeparrot/github-code |
5039533889c75b321dafe8bcc9c93f9419f80cf06f954fed344c80b33d101643 | #ifndef VISUALDL_UTILS_FILESYSTEM_H
#define VISUALDL_UTILS_FILESYSTEM_H
#include <google/protobuf/text_format.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <unistd.h>
#include <fstream>
namespace visualdl {
namespace fs {
template <typename T>
std::string Serialize(const T& proto, bool human_readable = f... | C | visualdl/utils/filesystem.h | VisualDL/VisualDL | apache-2.0 | 2,531 | 95 | codeparrot/github-code |
fc99a880084913b3e884960562cf0191e5c0c2dabbe30b018517a1edccc9ca53 | package oncecenter.action.host;
import oncecenter.util.ImageRegistry;
import oncecenter.views.xenconnectiontreeview.elements.VMTreeObjectHost;
import org.eclipse.jface.action.Action;
import com.once.xenapi.Connection;
public class ShutHostAction extends Action{
VMTreeObjectHost selection;
Connection connection;
... | Java | src/oncecenter/action/host/ShutHostAction.java | guzy/OnceCenter | apache-2.0 | 729 | 32 | codeparrot/github-code |
8a5469af7599196b202a65982f7f974e83117c08e39bc34708a90212140b3748 | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="google-site-verification" content="xBT4GhYoi5qRD5tr338pgPM5OWHHIDR6mNg1a3euekI" />
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="descri... | HTML | _site/tags/index.html | leslie-gu/leslie-gu.github.io | apache-2.0 | 10,688 | 339 | codeparrot/github-code |
4e5adc272ca2487cd9118faa11d2f3345b87cc243471c52af1b810f8f62f64f1 | package org.light4j.net.tcp.bio.senior;
import java.io.IOException;
import java.io.PrintStream;
import java.net.ServerSocket;
import java.net.Socket;
public class Server {
private static final int SERVER_PORT = 30000;
// 使用CrazyitMap对象来保存每个客户名字和对应输出流之间的对应关系。
public static CrazyitMap<String, PrintStream> ... | Java | j2se-project/java-net/src/main/java/org/light4j/net/tcp/bio/senior/Server.java | longjiazuo/java-project | apache-2.0 | 809 | 34 | codeparrot/github-code |
b72641bbb4909a00bd79ffbb23184e62a53256a7acad029e1d2c0a5dee9cc5e8 | /*****************************************************************************
* Copyright 2016 Aurora Solutions
*
* http://www.aurorasolutions.io
*
* Aurora Solutions is an innovative services and product company at
* the forefront of the software industry, with processes and practices
* involving Domain Dri... | C# | Backend/Common/TradeHub.Common.Core/DomainModels/OrderDomain/Fill.cs | trade-nexus/tradesharp-core | apache-2.0 | 8,647 | 320 | codeparrot/github-code |
a7f9c5e9909f420e57e8211ba7c84c5ef33f195b25c8180ec04a782741b6805d | /*
* Copyright (C) 2015-present, Ant Financial Services Group
*
* 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 a... | Java | src/app/src/main/java/com/alipay/hulu/scheme/PerformanceSchemeResolver.java | alipay/SoloPi | apache-2.0 | 8,342 | 197 | codeparrot/github-code |
e33e4f1671f5d21f575c02ec6d833674fa9cb19e5119d46ccb95b04502ee6eca | /*
* 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-cognitoidp/src/main/java/com/amazonaws/services/cognitoidp/model/transform/AdminUpdateAuthEventFeedbackResultJsonUnmarshaller.java | aws/aws-sdk-java | apache-2.0 | 1,772 | 45 | codeparrot/github-code |
2e1400d3266863990ba2f4d63cbae50243ffb637986e0a310209d9e44452c7b5 | ---
layout: page
description: "Let's howl at the moon."
---
{% for post in paginator.posts %}
<div class="post-preview">
<a href="{{ post.url | prepend: site.baseurl }}">
<h2 class="post-title">
{{ post.title }}
</h2>
{% if post.subtitle %}
<h3 class="post-subtitle">
... | HTML | index.html | huamulou/huamulou.github.io | apache-2.0 | 1,198 | 43 | codeparrot/github-code |
8f1054a7ce833e94242d81e79e78ac465e717d4d6674060966adc65ccc950cdd | package com.waimai.da.shockwave.bean.druid.parser;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.waimai.da.shockwave.bean.druid.DimensionsSpec;
import com.waimai.da.shockwave.bean.druid.TimestampSpec;
/**
* Created by jsong on 2017/6/7.
*/
public class JSONParseSpec {
private String format = ... | Java | src/main/java/com/waimai/da/shockwave/bean/druid/parser/JSONParseSpec.java | BaiduWaimaiBigData/Shockwave | apache-2.0 | 1,918 | 74 | codeparrot/github-code |
819822bd6cb9b13acb13365e99b4ef38f23bbfa746b6ed63811f6480d364f768 | // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
#nullable disable
using System.Threading.Tasks;
using Microsoft.CodeAnalysis.Completion.Providers;
using Microsoft... | C# | src/EditorFeatures/CSharpTest2/Recommendations/LongKeywordRecommenderTests.cs | eriawan/roslyn | apache-2.0 | 22,788 | 775 | codeparrot/github-code |
c035f45a32cf7f7a83bd25dcc86b58328b30f877fa86f6702fe16a731d8ca643 | package de.paluch.midi.relay.relay;
/**
* @author <a href="mailto:mpaluch@paluch.biz">Mark Paluch</a>
* @since 30.11.13 19:25
*/
public class RemoteRelayReceiverWrapper implements RemoteRelayReceiver, RoutingRelayReceiver {
private RemoteRelayReceiver delegate;
public RemoteRelayReceiver getDelegate() {
... | Java | src/main/java/de/paluch/midi/relay/relay/RemoteRelayReceiverWrapper.java | mp911de/midi-relay | apache-2.0 | 1,231 | 58 | codeparrot/github-code |
9a2bf2488ef387dfc7c623b0d4f3de649884cd0e817fcebf391c4d2bbb30f80e | /*
* Copyright 2009-2011 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by ap... | Java | swing/src/test/java/model/Book.java | chelu/jdal | apache-2.0 | 1,237 | 58 | codeparrot/github-code |
1d84f54f6a9a529287ba73970699d926b1572d44be0a4f43cb96ee5d70166c7d | import { Component, Pipe, PipeTransform } from '@angular/core';
@Component({
selector: 'e2e-reorderable-table',
templateUrl: './reorderable-table.testpage.component.html'
})
export class ReorderableTableTestPageComponent {
data: ReorderableTableData[] = [
{
document: 'Document 1',
... | TypeScript | e2e/pages/app/reorderable-table/reorderable-table.testpage.component.ts | UXAspects/UXAspects | apache-2.0 | 1,199 | 51 | codeparrot/github-code |
e9530eeac9589be78fc38179d19591b9551e388f008f0b41feeb519ea4d1049a | /*
* Copyright (c) 2017 WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
*
* WSO2 Inc. 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.o... | Java | modules/siddhi-extensions/output-transports/jms-output-transport/src/main/java/org/wso2/siddhi/extension/output/transport/jms/util/JMSOptionsMapper.java | lgobinath/siddhi | apache-2.0 | 2,583 | 63 | codeparrot/github-code |
ede995a686016488bbcffdd2b90a16824e04372bb0fbdd6725a38989bd9610d4 | // Copyright 2019 PingCAP, Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to i... | GO | store/helper/helper.go | qiuyesuifeng/tidb | apache-2.0 | 21,648 | 703 | codeparrot/github-code |
d5470ea67950c7184c9d9a5f8bc3b9a49f8bca4becd7cf73b92ac11c1d70d483 | /*
* Copyright (c) 2002-2018 "Neo Technology,"
* Network Engine for Objects in Lund AB [http://neotechnology.com]
*
* This file is part of Neo4j.
*
* Neo4j is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundatio... | Scala | community/cypher/cypher-compiler-2.3/src/main/scala/org/neo4j/cypher/internal/compiler/v2_3/planner/logical/ExpressionRewriterFactory.scala | HuangLS/neo4j | apache-2.0 | 1,569 | 39 | codeparrot/github-code |
becade7a8fc5b806ba00ce3c19ef2144674538f9559004ba8cf6b821708caf30 | var UI = require('ui');
var ajax = require('ajax');
var assets = require('assets');
var navigation = require('navigation');
var placesSearchCaching = Array();
this.exports.searchPlaces = function(places, page){
var loadingCard = new UI.Card(assets.elementSettingsByPlatform({
title: "Loading",
body: "Fetching dat... | JavaScript | src/places.js | thibautrey/Directions | apache-2.0 | 5,504 | 214 | codeparrot/github-code |
3c6d8ecb19869c8a653fbabb1989015ee866ae2ac2764734f709750a4b474c55 | // Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System;
using System.Collections.Generic;
using System.Collections.Immutable;
using System.Diagnostics;
using System.IO;
using System.Linq;
using Syste... | C# | src/Features/Core/Portable/CodeRefactorings/MoveType/AbstractMoveTypeService.cs | swaroop-sridhar/roslyn | apache-2.0 | 11,838 | 257 | codeparrot/github-code |
c87680001047ee6d14444eb9897c598418f74b1d913bfa6165ab94bdfb50b04e | #!/usr/bin/env python3
# Copyright lowRISC contributors.
# Licensed under the Apache License, Version 2.0, see LICENSE for details.
# SPDX-License-Identifier: Apache-2.0
r"""Calculate Round Constant
"""
import argparse
import bitarray as ba
import logging as log
def main():
parser = argparse.ArgumentParser(
... | Python | util/design/keccak_rc.py | lowRISC/opentitan | apache-2.0 | 1,923 | 75 | codeparrot/github-code |
af73e865e8a62029f4c899d7aba5a65ade8a6ef9966ddcea184b0d4c55d2e6f3 | // Copyright (c) 2021 PaddlePaddle Authors. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required... | C++ | paddle/infrt/kernel/tensor_kernels.cc | PaddlePaddle/Paddle | apache-2.0 | 5,017 | 140 | codeparrot/github-code |
9d545702bf40912164ca77236cff6b8a7249b019cd2728f11d7d7279421f6b72 | package com.example.coolweather.model;
/**
* Created by fountian on 2016/10/30.
*/
public class Province {
private int id;
private String provinceName;
private String provinceCode;
public int getId() {
return id;
}
public void setId(int id) {
this.id = id;
}
public ... | Java | src/main/java/com/example/coolweather/model/Province.java | fountain2/coolweather | apache-2.0 | 666 | 35 | codeparrot/github-code |
7be70688884024bc9a8ec38f9c8730957424f84a118ff28fefd9e14e992ae7ba | // SPDX-License-Identifier: Apache-2.0
// Copyright Authors of Cilium
package helpers
import (
"bytes"
"context"
"fmt"
"io"
"net"
"os"
"strconv"
"time"
"github.com/kevinburke/ssh_config"
"golang.org/x/crypto/ssh"
"golang.org/x/crypto/ssh/agent"
)
// SSHCommand stores the data associated with executing a ... | GO | test/helpers/ssh_command.go | cilium/cilium | apache-2.0 | 9,716 | 342 | codeparrot/github-code |
8495301861f7506d6b535137c391fa83dc36ddeddc8cda7e45472ac0bb106f14 | /**
* Copyright 2016 52°North Initiative for Geospatial Open Source
* Software GmbH
*
* 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 | point-aggregation/src/main/java/org/envirocar/analyse/entities/InMemoryPoint.java | enviroCar/enviroCar-aggregation | apache-2.0 | 8,405 | 263 | codeparrot/github-code |
28f034dabcffa47b13d4e9ea47027c7fcec33791db0f785a7b91dbcac69e6a11 | package br.com.ufop.exemplo;
import java.awt.BorderLayout;
import java.awt.FlowLayout;
import javax.swing.JButton;
import javax.swing.JDialog;
import javax.swing.JPanel;
import javax.swing.border.EmptyBorder;
import javax.swing.JLabel;
import java.awt.Font;
import javax.swing.ImageIcon;
import javax.swing... | Java | JCL_Samples/JCL_Dijkstra/Dijkstra__June_2017_source/src/br/com/ufop/exemplo/About.java | AndreJCL/JCL | apache-2.0 | 2,625 | 85 | codeparrot/github-code |
0a0c45c0f68415618db0b86627902f706ce3417e3f5e10d66a7bc8577f45af42 | /*
* 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/src/main/java/com/hazelcast/internal/jmx/suppliers/LocalSetStatsSupplier.java | mdogan/hazelcast | apache-2.0 | 1,294 | 44 | codeparrot/github-code |
b66b24b632939b2101312457d9a54b5f91005d4ada8cd0642b26ecc341b21926 | package net.lecousin.framework.application.libraries.artifacts;
import java.io.File;
import java.net.URI;
import java.util.ArrayList;
import java.util.List;
import net.lecousin.framework.application.Version;
import net.lecousin.framework.application.VersionSpecification;
import net.lecousin.framework.concurr... | Java | net.lecousin.core/src/main/java/net/lecousin/framework/application/libraries/artifacts/LibraryDescriptor.java | lecousin/java-framework-core | apache-2.0 | 3,088 | 108 | codeparrot/github-code |
a01168ec6c02a10599bb73652eec917aacf2d7ef7edd19021c0d235f244ae792 | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="google-site-verification" content="xBT4GhYoi5qRD5tr338pgPM5OWHHIDR6mNg1a3euekI" />
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="descri... | HTML | _site/index.html | yueyataihen/yueyataihen.github.io | apache-2.0 | 19,615 | 610 | codeparrot/github-code |
b2ed98aa09a884ae47309c6ee6bf9662b1f91ff52e3438419d60dafe01a76b0a | <!DOCTYPE html>
<html lang="es">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
... | HTML | firebase/28079016.html | isorna/Aire-Madrid | apache-2.0 | 5,831 | 174 | codeparrot/github-code |
b61800728dc2acbaeae3bc63c6920baf1bcdc64905fd3ed6103c5070ecdc9d80 | from django.apps import apps
from django.conf.urls import url
from c3nav.editor.views.account import change_password_view, login_view, logout_view, register_view
from c3nav.editor.views.changes import changeset_detail, changeset_edit, changeset_redirect
from c3nav.editor.views.edit import edit, graph_edit, level_detai... | Python | src/c3nav/editor/urls.py | c3nav/c3nav | apache-2.0 | 4,247 | 77 | codeparrot/github-code |
867d6556986b491c57ebb6247975d96cedc6fecc4c7d5222fa360ed459d6c0a7 | package org.javarosa.shellformtest.shell;
import java.util.Vector;
import javax.microedition.midlet.MIDlet;
import org.javarosa.core.model.CoreModelModule;
import org.javarosa.core.model.FormDef;
import org.javarosa.core.model.utils.IPreloadHandler;
import org.javarosa.core.services.PropertyManager;
import org.javar... | Java | util/validator/org.javarosa.shellformtest/src/org/javarosa/shellformtest/shell/JRFormTestUtil.java | wpride/javarosa | apache-2.0 | 2,084 | 69 | codeparrot/github-code |
05bbe003ae7b8b709e0981e69f35f1943d1b15142910f354502145727831734d | /*
Copyright 2011 Google Inc.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
di... | GO | pkg/index/indextest/tests.go | raff/camlistore | apache-2.0 | 40,657 | 1,441 | codeparrot/github-code |
af5e156eaf0c50a986a3332272fc52df92bb7b8dd38c663dc233491b2be977eb | package com.example.mq.coolweather.db;
import org.litepal.crud.DataSupport;
/**
* Created by Administrator on 2017/3/14.
*/
public class County extends DataSupport {
private int id;
private String county_name;
private String weather_id;
private int city_id;
public int getId() {
return ... | Java | cooleweather/src/main/java/com/example/mq/coolweather/db/County.java | IsMaQian/coolweather | apache-2.0 | 873 | 47 | codeparrot/github-code |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.