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 |
|---|---|---|---|---|---|---|---|---|
7c477ebd93fc363878f2168a6593b1771ff567bec8b1c37b18d9a20a1071663a | package graphics;
import graphics.actionListeners.OpenMenuItemListener;
import graphics.actionListeners.SaveMenuItemListener;
import processing.NotesProvider;
import processing.RecognitionMachine;
import javax.swing.*;
import java.awt.*;
import java.util.concurrent.locks.ReentrantLock;
public class MainFrame extends... | Java | src/graphics/MainFrame.java | artemik/notes-recognizer | apache-2.0 | 4,200 | 91 | codeparrot/github-code |
277422db47c7946f2f26622545acb40f00ef60c0c4ab706b6cc637ac69137a64 | package com.snatsuo.couchserver;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.context.web.SpringBootServletInitializer;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.co... | Java | CouchServer/couchserver/src/main/java/com/snatsuo/couchserver/Application.java | shirashiki/spring | apache-2.0 | 1,310 | 36 | codeparrot/github-code |
7fe8f56693297a1ac5c0b781f05f842949fbd89376f9245f40317b996d14c7a8 | #!/bin/bash
# Get and build latest OpenVZ legacy rhel6 kernel.
# Pre-requisites:
# - imported OpenVZ gpg public key (https://wiki.openvz.org/Package_signatures)
# - a config-2.6.32-* file (start with one from OpenVZ)
# - linux-2.6.32.tar.bz2 archive (https://www.kernel.org/pub/linux/kernel/v2.6/)
cd "$(dirname "${BASH... | Shell | kernel/openvz/build-legacy.sh | StalkR/misc | apache-2.0 | 2,137 | 64 | codeparrot/github-code |
65bfd0f0856fb503c38d73ea61e65a19f5cb34b317004f233a950aaf3aae01ea | <?php
namespace nstdio\svg\shape;
use nstdio\svg\ElementInterface;
/**
* Class Rect
* The 'rect' element defines a rectangle which is axis-aligned with the current user coordinate system. Rounded
* rectangles can be achieved by setting appropriate values for attributes 'rx' and 'ry'.
*
* @link https://www.w3.... | PHP | src/svg/shape/Rect.php | nstdio/SVGMagick | apache-2.0 | 5,857 | 200 | codeparrot/github-code |
92e5df9b3a414d268d7c5b5c30843b0eb8c7b7143f0dc0c934a994915c8000f4 | /*
* TextAreaRenderer.java
*
* This file is part of SQL Workbench/J, http://www.sql-workbench.net
*
* Copyright 2002-2015, Thomas Kellerer
*
* 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 Licens... | Java | src/workbench/gui/renderer/TextAreaRenderer.java | Taller/sqlworkbench-plus | apache-2.0 | 3,485 | 138 | codeparrot/github-code |
905030d052c25ceb999d049a492d755f87cd4b0e1b471cf7a2c4c2016454acf5 | /*
* Copyright 1999-2011 Alibaba 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 applicable la... | Java | dubbo-rpc/dubbo-rpc-api/src/main/java/com/alibaba/dubbo/rpc/filter/AccessLogFilter.java | ledotcom/le-dubbo | apache-2.0 | 9,993 | 229 | codeparrot/github-code |
b1b7043fc903124dc36452ba0a1ce3afd93d62837bb421d95dc5f067d72a7a84 | package nl.esciencecenter.neon.math;
import java.util.Arrays;
/* Copyright [2013] [Netherlands eScience Center]
*
* 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... | Java | src/nl/esciencecenter/neon/math/Float3Matrix.java | NLeSC/Neon | apache-2.0 | 8,414 | 277 | codeparrot/github-code |
43d459eb65338c17db37a8b85c257c7e6c5d3b2d2a0c55e7aeed9c5ff55aabf6 | /*
* Copyright 2017 Obsidian 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 ... | Java | src/com/obsidian/compiler/ControlFlowGraph/IsCfgNode.java | ObsidianLang/obsidian-grammar | apache-2.0 | 3,071 | 101 | codeparrot/github-code |
d9b2dca82e3dae31d73327057bd391a8aa439e5bed2d00954151e3bb51ff3903 | /*
* Copyright 2015 Texas A&M Engineering Experiment Station
*
* 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 | bundles/edu.tamu.tcat.hathitrust.basic/src/edu/tamu/tcat/hathitrust/plugin/PluginRegistrationException.java | tcat-tamu/HathiTrust-SDK | apache-2.0 | 1,272 | 46 | codeparrot/github-code |
15140ff8d5a333e5447abca36c98e55fd59be8ca3e15d558d7b0042d52f59fe6 | package com.plattysoft.movieapp;
import com.plattysoft.movieapp.model.Movie;
import android.content.Intent;
import android.os.Bundle;
import android.support.v4.app.FragmentActivity;
/**
* An activity representing a list of Movies. This activity
* has different presentations for handset and tablet-size devices. On
... | Java | app/src/main/java/com/plattysoft/movieapp/MovieListActivity.java | plattysoft/movieExample | apache-2.0 | 3,080 | 81 | codeparrot/github-code |
58119f9c6b0e88adcbc4cfe8afbcc0091a9f470ad44bb915a132fe86ce3a152d | package water.fvec;
import org.junit.Assert;
import org.junit.BeforeClass;
import org.junit.Ignore;
import org.junit.Test;
import water.Futures;
import water.MRTask;
import water.Scope;
import water.TestUtil;
import java.io.IOException;
import java.util.Arrays;
import static org.junit.Assert.assertTrue;
public clas... | Java | h2o-core/src/test/java/water/fvec/C1SChunkTest.java | spennihana/h2o-3 | apache-2.0 | 10,350 | 291 | codeparrot/github-code |
177834d3c72d465f6cdd9d42ad53c4492598e8e834f377d2fa9a52e58afb96b1 | package org.ics.user.web.action;
import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;
import org.apache.commons.beanutils.BeanUtils;
import org.apache.commons.lang.StringUtils;
import org.apache.log4j.Logger;
import org.apache.struts2.ServletActionContext;
import org.ics.user.basic.Abstract... | Java | ics-user/ics-user-web/src/main/java/org/ics/user/web/action/UserManagerAction.java | joezhjiang/ics-user | apache-2.0 | 1,966 | 86 | codeparrot/github-code |
6a705da6031676372885403a91d1c33e5b0e3460fb67514cb49890064d07a58e | package be.nokorbis.spigot.commandsigns.controller;
import be.nokorbis.spigot.commandsigns.CommandSignsPlugin;
import be.nokorbis.spigot.commandsigns.api.DisplayMessages;
import be.nokorbis.spigot.commandsigns.api.addons.Addon;
import be.nokorbis.spigot.commandsigns.api.addons.AddonConfigurationData;
import be.nokorbi... | Java | plugin/src/main/java/be/nokorbis/spigot/commandsigns/controller/NCommandBlockExecutor.java | Nokorbis/ar-command-signs | apache-2.0 | 7,401 | 197 | codeparrot/github-code |
444c4527add3bd1cd7edef5c9669653c3e9987177e69d12e8c0f7fe66111835f | #ifndef _MONONET_METADATA_IMAGE_H_
#define _MONONET_METADATA_IMAGE_H_
#include <stdio.h>
#include <mono/utils/mono-publib.h>
MONO_BEGIN_DECLS
typedef struct _MonoImage MonoImage;
typedef struct _MonoAssembly MonoAssembly;
typedef struct _MonoAssemblyName MonoAssemblyName;
typedef struct _MonoTableInfo Mo... | C | Engine/libs/mono/metadata/image.h | mhidaka/playgroundthon | apache-2.0 | 3,844 | 84 | codeparrot/github-code |
b3f38531e0ce5e79ba1b7b196d8e15881346fb4db6881b7bd3f0b53fd43fcc44 | package org.globsframework.metamodel.links.impl;
import org.globsframework.metamodel.Annotations;
import org.globsframework.metamodel.Field;
import org.globsframework.metamodel.GlobType;
import org.globsframework.metamodel.MutableGlobLinkModel;
import org.globsframework.metamodel.impl.DefaultAnnotations;
import org.gl... | Java | src/main/java/org/globsframework/metamodel/links/impl/DefaultLinkBuilder.java | MarcGuiot/globsframework | apache-2.0 | 3,134 | 84 | codeparrot/github-code |
1226adb2e42898d01a421217af661c106b7a06a95c0a4d4cfc6ee179a9e830d1 | /**
* 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 | rdma-based-storm/storm-core/test/jvm/org/apache/storm/utils/UtilsTest.java | dke-knu/i2am | apache-2.0 | 9,031 | 220 | codeparrot/github-code |
85bc5384f1f0772bc603cf03d3ba394b92a0a541ac5f2a0955c4f7db02f4b23a | ////////////////////////////////////////////////////////////////////////////////
/// DISCLAIMER
///
/// Copyright 2016 by EMC Corporation, 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... | C++ | 3rdParty/iresearch/core/search/granular_range_filter.cpp | fceller/arangodb | apache-2.0 | 27,494 | 694 | codeparrot/github-code |
d60db8d827cbb65fd252452942258ac7528c75c2029b04c6fa81390c7506daad | package com.planet_ink.coffee_mud.Abilities.Thief;
import com.planet_ink.coffee_mud.core.interfaces.*;
import com.planet_ink.coffee_mud.core.*;
import com.planet_ink.coffee_mud.core.collections.*;
import com.planet_ink.coffee_mud.Abilities.interfaces.*;
import com.planet_ink.coffee_mud.Areas.interfaces.*;
import ... | Java | com/planet_ink/coffee_mud/Abilities/Thief/Thief_Peek.java | bozimmerman/CoffeeMud | apache-2.0 | 5,190 | 178 | codeparrot/github-code |
85fe8fcc80202d6ba44ad93bdf2cbec5189f487e47867171b1fab235896528f9 | // Copyright 2016 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in ... | TypeScript | test/instance.ts | googleapis/nodejs-bigtable | apache-2.0 | 63,387 | 1,923 | codeparrot/github-code |
f5fb4b988e0adc4fdd38bc8f3559ab440236b75747cfdc24f0ec910767fa11cb | /* Copyright 2002-2014 CS Systèmes d'Information
* Licensed to CS Systèmes d'Information (CS) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* CS licenses this file to You under the Apache License, Versi... | Java | src/test/java/org/orekit/orbits/EquinoctialParametersTest.java | wardev/orekit | apache-2.0 | 45,255 | 873 | codeparrot/github-code |
d5cb29b108f769372abd5c9cf266adb3bf91d9be9fad290c3bb235863f3cf30e | package com.github.shynixn.astraledit.bukkit.logic.business.command;
import com.github.shynixn.astraledit.api.bukkit.business.command.PlayerCommand;
import com.github.shynixn.astraledit.bukkit.AstralEditPlugin;
import com.github.shynixn.astraledit.bukkit.Permission;
import com.github.shynixn.astraledit.bukkit.logic.bu... | Java | astraledit-bukkit-plugin/src/main/java/com/github/shynixn/astraledit/bukkit/logic/business/command/AnglesCommand.java | Shynixn/AstralEdit | apache-2.0 | 3,655 | 83 | codeparrot/github-code |
a7ce5df9df134cd585b4348b159eb438295dd17eb4774d5f2a0390d21040b689 | /*
* Copyright 2014 - 2016 Henning Dodenhof
*
* 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 o... | Java | imagetransitionlibrary/src/main/java/com/appeaser/imagetransitionlibrary/TransitionImageView.java | vikramkakkar/ImageTransition | apache-2.0 | 12,711 | 426 | codeparrot/github-code |
1bd467f08272070dd68cfcbc7f65318962feaa2205825df7d5954a7421550ced | /*
** Copyright 2014-2020 The Earlham Institute
**
** Licensed under the Apache License, Version 2.0 (the "License");
** you may not use this file except in compliance with the License.
** You may obtain a copy of the License at
**
** http://www.apache.org/licenses/LICENSE-2.0
**
** Unless required by applicable... | C | shared/parameters/include/char_parameter.h | TGAC/grassroots-core | apache-2.0 | 5,282 | 131 | codeparrot/github-code |
14d152b9ec7a9cd4dda5cde3a5e7cc3c4f08d92acfc77c67e830dded5b93c7f4 | from flask import session
from appconfig import *
class UserModel:
def __init__(self):
from models import Tag
from models import Post
from models import User
self.Tag = Tag.Tag
self.Post = Post.Post
self.User = User.User
def login(self, email, password):
... | Python | UserModel.py | goors/flask-microblog | apache-2.0 | 2,758 | 95 | codeparrot/github-code |
a6e26919aa03ff996bbba9b16e1099466eac889fbbdd58af1f11a1ac66fbeaa7 | package com.hazelcast.osgi;
import com.hazelcast.config.Config;
import com.hazelcast.config.GroupConfig;
import com.hazelcast.core.Hazelcast;
import com.hazelcast.core.HazelcastInstance;
import com.hazelcast.osgi.impl.HazelcastInternalOSGiService;
import com.hazelcast.test.HazelcastSerialClassRunner;
import com.hazelc... | Java | hazelcast/src/test/java/com/hazelcast/osgi/HazelcastOSGiServiceTest.java | lmjacksoniii/hazelcast | apache-2.0 | 22,788 | 598 | codeparrot/github-code |
b24b453ba87e89c615b427e79650f5a957dd1e371d7143c7111840137dc0ecce | /*
* Copyright 2010-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" fil... | C++ | aws-cpp-sdk-wafv2/source/model/HTTPHeader.cpp | cedral/aws-sdk-cpp | apache-2.0 | 1,625 | 85 | codeparrot/github-code |
16d3a8a87fdedd1db6f28f1e37b8104f3b8d2859cc2e358c46c3ab5b9e4d9ebc | import React from 'react';
import { css } from '@emotion/css';
import { RTCell } from '../../types';
import { ProblemDTO } from '../../../datasource-zabbix/types';
import { FAIcon } from '../../../components';
import { useTheme, stylesFactory } from '@grafana/ui';
import { GrafanaTheme } from '@grafana/data';
const ge... | TypeScript | src/panel-triggers/components/Problems/AckCell.tsx | alexanderzobnin/grafana-zabbix | apache-2.0 | 913 | 35 | codeparrot/github-code |
77eee57c43d0b1923e691e7b28d0a7e6970d1d496f1ac310495960949b66b3cb | package com.sequenceiq.cloudbreak.cloud.model;
import static java.lang.Character.isDigit;
import static java.lang.Character.isSpaceChar;
import java.io.Serializable;
import java.util.Comparator;
import com.sequenceiq.cloudbreak.cloud.model.generic.StringType;
public class StringTypesCompare implements Comparator<St... | Java | cloud-api/src/main/java/com/sequenceiq/cloudbreak/cloud/model/StringTypesCompare.java | hortonworks/cloudbreak | apache-2.0 | 2,567 | 99 | codeparrot/github-code |
5d7ba14e6e7f7e4797c30fd7d7bf348708daac79c56a4e696740802a8b2d93b3 | /*!
* ${copyright}
*/
// Provides control sap.ui.ux3.FeedChunk.
sap.ui.define([
'sap/ui/thirdparty/jquery',
'sap/ui/commons/MenuButton',
'sap/ui/core/Control',
'sap/ui/core/theming/Parameters',
'./Feeder',
'./library',
'./FeedChunkRenderer',
'sap/ui/commons/Menu',
'sap/ui/commons/... | JavaScript | src/sap.ui.ux3/src/sap/ui/ux3/FeedChunk.js | SAP/openui5 | apache-2.0 | 19,410 | 722 | codeparrot/github-code |
81a2c25f48dff5f3a2a7c8e227f0286eec39078a933e51e4df4e148e3693e020 | /**
* 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 | tajo-core/src/test/java/org/apache/tajo/engine/function/TestBuiltinFunctions.java | yeeunshim/tajo_test | apache-2.0 | 3,098 | 122 | codeparrot/github-code |
a4567e1469fb7e32212b1d2e766f46834e3df378d702f3999df28b9c2805088a | /**
* wallopSlider.js
*
* @fileoverview Simple Slider Class
*
* @author Pedro Duarte
* @author http://pedroduarte.me
*/
//------------------------------------------------------------------------------------------------------------
var WallopSlider = WallopSlider || {};
WallopSlider = (function() {
function Wallop(... | JavaScript | public/components/wallopslider/scripts/WallopSlider.js | Herapi/herapi.com | apache-2.0 | 6,395 | 179 | codeparrot/github-code |
770ce146cb8d2b9e3a0978cde09946d352eb1e4958d2ad4274a70727681cfc6b | //
// ReadExceptionStatusRequestSerializer.h
//
// Package: Generated
// Module: TypeSerializer
//
// This file has been generated.
// Warning: All changes to this will be lost when the file is re-generated.
//
// Copyright (c) 2015-2020, Applied Informatics Software Engineering GmbH.
// All rights reserved.
//
// SP... | C | protocols/Modbus/include/IoT/Modbus/ReadExceptionStatusRequestSerializer.h | macchina-io/macchina.io | apache-2.0 | 1,786 | 65 | codeparrot/github-code |
2e651e0253552791888469e587bed70dddd130f571058c572351fe56ba2ea5a5 | package org.apache.lucene.search;
/**
* 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, Vers... | Java | lucene-2.9.4/src/java/org/apache/lucene/search/FieldCacheTermsFilter.java | Overruler/retired-apache-sources | apache-2.0 | 6,046 | 183 | codeparrot/github-code |
bbca4faeb4caef8f47f2d5dde3e3f026d0ff2afc1925aabf07c362c605be8052 | <!DOCTYPE HTML>
<html>
<head>
<title>Veterans TSA | E-waste Local Solutions</title>
<link href="css/bootstrap.css" rel="stylesheet" type="text/css" media="all">
<!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
<script src="js/jquery.min.js"></script>
<!-- Custom Theme files -->
<link href="css/style.css" ... | HTML | tsa15/e-waste/local.html | aleidaolvera/aleidaolvera.github.io | apache-2.0 | 7,677 | 160 | codeparrot/github-code |
d9d3adfc16bce9292a9f50c4b0c89db363686d9795053f9486b2fc3b2a50a055 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
'''
cc_plugin_ncei/ncei_trajectory.py
'''
from compliance_checker.base import BaseCheck
from cc_plugin_ncei.ncei_base import TestCtx, NCEI1_1Check, NCEI2_0Check
from cc_plugin_ncei import util
from isodate import parse_duration
class NCEITrajectoryBase(BaseCheck):
_c... | Python | cc_plugin_ncei/ncei_trajectory.py | ioos/cc-plugin-ncei | apache-2.0 | 7,794 | 178 | codeparrot/github-code |
e3ee027073a7e5866b4b7153c24bfdf709c220e2928a57b0a5304b14767c9f3f | package com.java110.job.dao.impl;
import com.alibaba.fastjson.JSONObject;
import com.java110.utils.constant.ResponseConstant;
import com.java110.utils.exception.DAOException;
import com.java110.utils.util.DateUtil;
import com.java110.core.base.dao.BaseServiceDao;
import com.java110.job.dao.ITaskServiceDao;
import org.... | Java | service-job/src/main/java/com/java110/job/dao/impl/TaskServiceDaoImpl.java | java110/MicroCommunity | apache-2.0 | 5,634 | 196 | codeparrot/github-code |
edf81152175cc2c314f8d1637f6e30017d5637aa569ceb89d5dd9f5cdcffb6ed | package main
// #cgo CFLAGS: -Wall -O2 -fPIC
// #cgo linux CFLAGS: -DLINUX=1
// #cgo LDFLAGS: -Lnewplus -lnewplus -Wl,-rpath='$ORIGIN'/newplus
// #include "newplus/plus.h"
import "C"
import "fmt"
import "os"
import "strconv"
func run(count C.int) {
start := C.current_timestamp()
var x C.int = 0
for ... | GO | hello.go | dyu/ffi-overhead | apache-2.0 | 848 | 41 | codeparrot/github-code |
60149c599e176138d007d1093589f2f629011ab14dd6404ad5b0dbc0fa7edf60 | /**
* Copyright (c) 2013-2019 Contributors to the Eclipse Foundation
*
* <p> See the NOTICE file distributed with this work for additional information regarding copyright
* ownership. All rights reserved. This program and the accompanying materials are made available
* under the terms of the Apache License, Versio... | Java | extensions/cli/landsat8/src/main/java/org/locationtech/geowave/format/landsat8/Landsat8BasicCommandLineOptions.java | spohnan/geowave | apache-2.0 | 4,375 | 122 | codeparrot/github-code |
edee1ea9fe3c596d34465024c45a7ac0ebd9167b19ed62e63eda00bb276cc6a8 | /*
* Copyright 2014 Treode, 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... | Scala | store/src/com/treode/store/paxos/RecoveryKit.scala | Treode/store | apache-2.0 | 2,590 | 95 | codeparrot/github-code |
9eeb4f12d80d7bf849f003167efff86028862eca9f9e45f903a2262d44c20dbc | var app = angular.module('mobile');
app.factory('UserCouponSvc', function ($http, ShareSvc) {
return {
listPaged: function (userID, status, page) {
return ShareSvc.promise(function (defer) {
$http.get('/userCouponsPaged?userID=' + userID + '&status=' + status + '&page=' + page).... | JavaScript | mobile/user_coupon.svc.js | wade-yifeng/soofruit | apache-2.0 | 1,582 | 41 | codeparrot/github-code |
d8e033ef67cb2f2f73658f4705284a9bc3d8cfe878184afcadf67163cce3191c | <?php
defined('BASEPATH') OR exit('No direct script access allowed');
class User extends CI_Controller {
public function __construct() {
parent::__construct();
$this->load->model('global_m');
$this->load->library('form_validation');
}
public function account()
{
$this->job->v... | PHP | application/controllers/user.php | manish236/jobdesk | apache-2.0 | 4,046 | 103 | codeparrot/github-code |
6ca73ba136e7861156b82d56c089c18df2d59e13f0e317b5249c332cd5d56727 | using System;
using System.Collections.Generic;
using System.Configuration;
using System.Linq;
using Newtonsoft.Json;
namespace Nest
{
[JsonObject(MemberSerialization = MemberSerialization.OptIn)]
[JsonConverter(typeof(ReadAsTypeJsonConverter<OrQuery>))]
[Obsolete("Use the bool query instead.")]
public interface ... | C# | src/Nest/QueryDsl/Compound/Or/OrQuery.cs | jonyadamit/elasticsearch-net | apache-2.0 | 1,880 | 49 | codeparrot/github-code |
ecf739f5fb195b1de6bbf8e7eef3e4df3903070817adb8f7d3cf453a49bc1438 | package io.fintrospect.formats
import com.twitter.io.{Buf, Bufs}
import io.fintrospect.parameters.BodySpec
import scala.xml.{Elem, XML}
class XmlAutoTest extends AutoSpec(Xml.Auto) {
override def toBuf(l: Letter): Buf = Bufs.utf8Buf(transform()(l).toString())
override def transform(): (Letter => Elem) = (letter... | Scala | core/src/test/scala/io/fintrospect/formats/XmlTest.scala | daviddenton/fintrospect | apache-2.0 | 1,152 | 37 | codeparrot/github-code |
4b5cf4b2951fbed4cdac816062b6334647c905f18763c2540c4479335fb70d50 | /*
* 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 "license" fil... | C++ | aws-cpp-sdk-opsworks/source/model/RegisterRdsDbInstanceRequest.cpp | ambasta/aws-sdk-cpp | apache-2.0 | 1,768 | 73 | codeparrot/github-code |
d8ed416e5f885f5ccc0277d3943bd836ed29ac295c6b27c99cc9e1c0ae157b3c | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import os, sys
import traceback
from argparse import ArgumentParser
class SRDKRunError(Exception):
def __init__(self, message):
self.msg = message
def run_commands(cmds):
for cmd in cmds:
cmd = u" ".join(cmd)
print("Rhedeg %s" ... | Python | srdk/htk/SRDK_Train.py | techiaith/seilwaith | apache-2.0 | 1,957 | 70 | codeparrot/github-code |
b467139159fbdcdbb15b8be120feca1e84cf050af14497d1e3f9dafb3ef04f35 | package io.github.froger.instamaterial.ui.activity;
import android.annotation.TargetApi;
import android.app.Activity;
import android.content.Intent;
import android.net.Uri;
import android.os.Build;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuItem;
import android.view.ViewTreeObserver;
i... | Java | app/src/main/java/io/github/froger/instamaterial/ui/activity/PublishActivity.java | AnkitAggarwalPEC/plumApp | apache-2.0 | 4,829 | 148 | codeparrot/github-code |
cb68a00128a0d62ee594e192f4d96d783788bda9a31b78582df01355ab7bb566 | # Copyright 2014 Pants project contributors (see CONTRIBUTORS.md).
# Licensed under the Apache License, Version 2.0 (see LICENSE).
from __future__ import absolute_import, print_function
import json
import os
import warnings
from collections import namedtuple
from .common import open_zip
from .compatibility import st... | Python | pex/pex_info.py | sixninetynine/pex | apache-2.0 | 9,898 | 295 | codeparrot/github-code |
4f715ff8b7c8487911b9852d2b3a6ddda51d97a59bc78955b887aca6207b1b92 | # Copyright 2018 Capital One Services, LLC
# Copyright The Cloud Custodian Authors.
# SPDX-License-Identifier: Apache-2.0
"""
Azure Queue Message Processing
==============================
"""
import base64
import json
import zlib
from c7n_mailer.azure_mailer.sendgrid_delivery import SendGridDelivery
from c7n_mailer.s... | Python | tools/c7n_mailer/c7n_mailer/azure_mailer/azure_queue_processor.py | capitalone/cloud-custodian | apache-2.0 | 5,506 | 129 | codeparrot/github-code |
d8e0390f2d6cc62cdf3b5bc215efd191de25d27eae1a62a0c2b17dd7b9293f51 | /*
* 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... | Java | community/kernel/src/main/java/org/neo4j/kernel/impl/transaction/log/PhysicalTransactionCursor.java | HuangLS/neo4j | apache-2.0 | 4,387 | 124 | codeparrot/github-code |
0eff005b3b693e6c971b4660c1a90547e24ee9a90b3f4c9749437193b4ab631f | /*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* See the NOTICE file distributed with this work for additional
* information regarding copyright ownership.
* You may obtain a copy of the License at
*
* http://www.apache.... | Java | src/main/java/io/appium/java_client/ws/StringWebSocketClient.java | TikhomirovSergey/java-client | apache-2.0 | 3,981 | 137 | codeparrot/github-code |
094a617e5fc0d652da2fdf09e221bf8febaa275ecd3c4fe11e2529bb9ce72b8d | package collins.controllers.actions.asset
import java.util.Date
import play.api.Logger
import play.api.data.Form
import play.api.data.Forms.date
import play.api.data.Forms.list
import play.api.data.Forms.of
import play.api.data.Forms.optional
import play.api.data.Forms.text
import play.api.data.Forms.tuple
import pla... | Scala | app/collins/controllers/actions/asset/AssetFinderDataHolder.scala | funzoneq/collins | apache-2.0 | 5,588 | 146 | codeparrot/github-code |
5efdb6c8d6f4d132a9d777b5a258e8ca68cff542647a1dc3de5a58d3bd67d8ab | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>CustomActionReturn - FAKE - F# Make</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="">
<meta name="author" content="Steffen Forkmann, Mauricio Scheffer, Col... | HTML | packages/FAKE/docs/apidocs/fake-wixhelper-customactionreturn.html | kirill-gerasimenko/fseye | apache-2.0 | 9,840 | 194 | codeparrot/github-code |
0fdbd1288e586769b60c4c8ef1daaad3fd3151761556f00dfaca1ebff5a0fb51 | /*
* Copyright 2016-present Open Networking Foundation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by appli... | Java | core/store/primitives/src/test/java/org/onosproject/store/primitives/impl/EventuallyConsistentMapImplTest.java | sdnwiselab/onos | apache-2.0 | 36,179 | 929 | codeparrot/github-code |
d1316db02ba8b286baa528fda11969637abb0c1f72c3c02680a45359365b089f | package cassandra;
import com.datastax.driver.core.ResultSet;
import com.datastax.driver.core.Row;
import common.CassandraResult;
import common.CassandraRow;
import java.util.List;
import java.util.stream.Collectors;
public class CassandraResult21 implements CassandraResult {
private ResultSet resultSet;
pr... | Java | driver21/src/test/java/cassandra/CassandraResult21.java | polyglotpiglet/scassandra-it-java-driver-2 | apache-2.0 | 845 | 36 | codeparrot/github-code |
d2bedcb3de5a6508fbe3d1842e5f8d0694d87324df5f2608c9a873b12d6deb7e | /*
* 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 | modules/ml/src/main/java/org/apache/ignite/ml/selection/cv/AbstractCrossValidation.java | SomeFire/ignite | apache-2.0 | 17,411 | 472 | codeparrot/github-code |
ff91b7290f8595b6d1985cf39e99c9f975b9c5c26fdad0d79f6d2fda754144fd |
namespace VZF.Utilities
{
#region Using
using YAF.Classes;
using YAF.Types;
using VZF.Utils;
#endregion
/// <summary>
/// Contains the Java Script Blocks
/// </summary>
public static partial class JavaScriptBlocks
{
/// <summary>
/// Generated the load Scrip... | C# | vzfsrc/VZF.NET/Classes/Utilities/JavaScriptBlocks/LoadSpinnerWidget.cs | vzrus/VZF | apache-2.0 | 819 | 33 | codeparrot/github-code |
8e548c5015f286b8ef6b96b65f66335190709204c18388dfb3d6ed23b32cab7f | package com.annimon.stream.function;
import com.annimon.stream.Objects;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
/**
* Represents an operation that accepts a single {@code int}-valued argument and
* returns no result. This is the primitive type specialization of
* {@lin... | Java | stream/src/main/java/com/annimon/stream/function/IntConsumer.java | aNNiMON/Lightweight-Stream-API | apache-2.0 | 3,432 | 98 | codeparrot/github-code |
e6cf1798db587282003c7f1603c625a7d92d7e93f4d9b05f0de659d783166c3a | <?php
/**
* @author nimiq
* @copyright 2007
*/
require_once 'funzioni_fns.php';
require_once 'HTML/Page2.php';
require_once 'HTML/Table.php';
//TODO: nota sulla tabella
$commFinale = "NOTA: La tabella contiene tutti gli articoli del secondo tipo (titoli)
La 'chiave univoca' e' il campo arart (codice articolo)";
... | PHP | T03.php | nimiq/comparetables | apache-2.0 | 9,393 | 224 | codeparrot/github-code |
91ced23fd7d12b087e2a9e0dbb70e5675ba1640c2927fa2749e2525dad2010cd | package org.ovirt.engine.core.bll;
import java.util.ArrayList;
import java.util.List;
import org.ovirt.engine.core.bll.context.CommandContext;
import org.ovirt.engine.core.bll.utils.PermissionSubject;
import org.ovirt.engine.core.common.AuditLogType;
import org.ovirt.engine.core.common.VdcObjectType;
import org.ovirt... | Java | backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/AddPermissionCommand.java | OpenUniversity/ovirt-engine | apache-2.0 | 10,005 | 257 | codeparrot/github-code |
f633ea8756a500d7e1b2f574edab02c2053617ad3add4b7e110b8bd02e2091f8 | package org.ovirt.engine.core.dao.gluster;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.Collection;
import java.util.HashSet;
import java.util.List;
import javax.inject.Inject;
import javax.inject.Named;
import javax.inject.Singleton;
import org.apache.commons.lang.StringUtils;
import or... | Java | backend/manager/modules/dal/src/main/java/org/ovirt/engine/core/dao/gluster/GlusterVolumeDaoImpl.java | OpenUniversity/ovirt-engine | apache-2.0 | 23,869 | 531 | codeparrot/github-code |
770b5722a0a07a0133da4414740f398ef71dfe01529589e6057b5fd68e8898ab | /*
****************************************************************
*
* Cross Assembler for Block I Apollo Guidance Computer (AGC4)
* THIS VERSION IS MODIFIED TO OUTPUT IN S-RECORD FORMAT SUITABLE FOR
* LOADING IN EPROM (s2f format).
* Author: John Pultorak
* 6/1/2002
*
****************************************... | C | AGCCompiler/agc_compiler.c | youngd24/ArduinoApollo11 | apache-2.0 | 26,009 | 886 | codeparrot/github-code |
aef62381269406cc5a221ef3986f12f58f515d8544aadabcd76e77138218d7c3 | package sttp.client3.internal
object WwwAuthHeaderParser {
def parse(text: String): WwwAuthHeaderValue = {
WwwAuthHeaderValue(
text
.foldLeft(KeyParser(Map.empty): Parser) { (parser, char) => parser.parseNext(char) }
.close()
)
}
}
case class WwwAuthHeaderValue(values: Map[String, St... | Scala | core/src/main/scala/sttp/client3/internal/WwwAuthHeaderParser.scala | softwaremill/sttp | apache-2.0 | 3,147 | 111 | codeparrot/github-code |
2b9dfcda675df08ac0e7bb5fad3e3f32d5797c35938cae2a902c8258411d61e4 | /*
* 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 | shardingsphere-kernel/shardingsphere-transaction/shardingsphere-transaction-type/shardingsphere-transaction-xa/shardingsphere-transaction-xa-provider/shardingsphere-transaction-xa-narayana/src/main/java/org/apache/shardingsphere/transaction/xa/narayana/config/NarayanaConfigurationFileGenerator.java | apache/incubator-shardingsphere | apache-2.0 | 12,419 | 200 | codeparrot/github-code |
3d22e5dac0cc74c0c6cafb1c534215c375faeb427b22b685421c8baeaf069476 | // Copyright 2019 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in ... | C++ | tempcoding/tempcoder.cc | google/ihmehimmeli | apache-2.0 | 52,570 | 1,315 | codeparrot/github-code |
312476535966ef0b8534a75b14f97ef9ef474b8082db9486f034331b87b3dc23 | <!DOCTYPE html>
<html>
<!-- Mirrored from cube.adbee.technology/angularjs/login.html by HTTrack Website Copier/3.x [XR&CO'2014], Fri, 23 Jan 2015 05:29:06 GMT -->
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta http-equiv="X-UA-Compatible" content="IE=e... | HTML | sinapsys/admin/angularjs/login.html | inEdgar/In | apache-2.0 | 9,196 | 251 | codeparrot/github-code |
2fe3128833f0d1e2e7ceeeefb193432bf35051b39c6fb2b3cc3aa64b9416090f | #!/bin/bash -x
# Copyright 2015 Rackspace Australia
#
# 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 ... | Shell | jenkins/scripts/check-git-commit-message.sh | hedvig/project-config | apache-2.0 | 1,918 | 66 | codeparrot/github-code |
4ce29c8d89d1c9a789cd113bd4bdece47fa8a8d07150261d5b295d0f9ed98b56 | package main
import (
"log"
"net/http"
"os"
"time"
"github.com/zerobotlabs/nestor-cli/Godeps/_workspace/src/github.com/jpillora/archive"
)
const LARGE_FILE = "/Users/jpillora/file.mp4"
func main() {
if _, err := os.Stat(LARGE_FILE); err != nil {
log.Fatal(err)
}
http.HandleFunc("/", handle)
log.Fatal(htt... | GO | Godeps/_workspace/src/github.com/jpillora/archive/example/serve/serve.go | zerobotlabs/nestor-cli | apache-2.0 | 715 | 35 | codeparrot/github-code |
7d08bfa17cc283d5ec1f32658096aa0770d444b0f1c73439057ddff39b6af4d5 | // Copyright 2017 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
package org.chromium.chrome.browser;
import android.content.Context;
import android.content.Intent;
import android.content.pm.ApplicationInfo;
import and... | Java | app/src/main/java/org/chromium/chrome/browser/DefaultBrowserInfo.java | mogoweb/365browser | apache-2.0 | 10,889 | 254 | codeparrot/github-code |
026dd27418f1df6cd85e7d43ca9bd1e6488b83cf843794964db0bcd66cd3bdc0 | /*
* Copyright 2011 iiNet
*
* 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 wri... | Java | src/main/java/faux/mvc/Provider.java | shadowmint/bamboo-leaderboard | apache-2.0 | 1,022 | 37 | codeparrot/github-code |
227d0952d72347fe539e0ccb948cc2a4dfc2ec17c2139d7cb7021f4e24bfea21 | /*
* Copyright (C) 2014-2022 Philip Helger (www.helger.com)
* philip[at]helger[dot]com
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICEN... | Java | ph-commons/src/main/java/com/helger/commons/text/codepoint/InvalidCharacterException.java | phax/ph-commons | apache-2.0 | 1,188 | 44 | codeparrot/github-code |
a5ceab57a359b1643af8f336b2729988dfe1ee0e3d4ebc4c53583b1eb6832867 | package de.reffle.jfsdict.levenshtein;
import org.junit.Test;
import de.reffle.jfsdict.dictionary.Trie;
import de.reffle.jfsdict.dictionary.TrieBuilder;
import de.reffle.jfsdict.util.test.Tests;
public class FuzzyDictSearchTest {
@Test
public void test() throws Exception {
Trie trie = getTrie();
FuzzyDi... | Java | src/test/java/de/reffle/jfsdict/levenshtein/FuzzyDictSearchTest.java | ulir/jFSDict | apache-2.0 | 1,694 | 54 | codeparrot/github-code |
82ae4eac98bee7674936ef14eb2e7b76e8ba67046b87261d5e015f474cf14d3f | /*
* Licensed to GraphHopper GmbH under one or more contributor
* license agreements. See the NOTICE file distributed with this work for
* additional information regarding copyright ownership.
*
* GraphHopper GmbH licenses this file to you under the Apache License,
* Version 2.0 (the "License"); you may not ... | Java | core/src/test/java/com/graphhopper/util/CHEdgeIteratorTest.java | don-philipe/graphhopper | apache-2.0 | 3,634 | 81 | codeparrot/github-code |
d5517246755654e5fb65869b76a598430b42d45d6524b3bc9f36659fac36c53e | /*
* 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-lexmodelbuilding/src/main/java/com/amazonaws/services/lexmodelbuilding/model/GetIntentsResult.java | aws/aws-sdk-java | apache-2.0 | 7,397 | 217 | codeparrot/github-code |
882dd049d857eb651e5350d3f40101d05b730c7089df2aef033c16bd81b6cce2 | #!/bin/bash
# -*- mode:shell-script; coding:utf-8; -*-
#
# example usage:
# loadPemIntoKvm.sh -m https://api.e2e.apigee.net -n -o radical-new -e prod -M secrets -F sampledata/privatekey.pem -N privatekey
#
# Created: <Thu Aug 3 14:05:20 2017>
# Last Updated: <2017-December-13 16:30:26>
#
scriptname=${0##*/}
orgname... | Shell | loadPemIntoKvm/loadPemIntoKvm.sh | DinoChiesa/EdgeTools | apache-2.0 | 6,869 | 266 | codeparrot/github-code |
892655f772bb087bfd41227d259940769f177f00b2a588ec1485eeacf755b155 | function Controller() {
function back() {
openView("news");
}
require("alloy/controllers/BaseController").apply(this, Array.prototype.slice.call(arguments));
this.__controllerPath = "detail_news";
arguments[0] ? arguments[0]["__parentSymbol"] : null;
arguments[0] ? arguments[0]["$model"]... | JavaScript | Resources/alloy/controllers/detail_news.js | hoangnn-lev/TTravel | apache-2.0 | 2,841 | 88 | codeparrot/github-code |
373c6caf695c864c8d17a55a317a710e8906134c376037cfd991f4d8c3244faa | /*
* Copyright 2014 Intelix Pty Ltd
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed... | Scala | modules/core/src/main/scala/agent/flavors/files/ResourcePullingProxy.scala | mglukh/ehub | apache-2.0 | 921 | 32 | codeparrot/github-code |
43ebeab0c3dc933e1e55434a73b6c28b1ca2f1086a0d74bfacb9e67e32ccf557 | package org.dsa.iot.rx.core
import org.dsa.iot.rx.RxTransformer
import org.dsa.iot.scala.Having
/**
* Transforms each item of the source sequence into a new one, using the functional operator.
*
* <img width="640" height="305" src="https://raw.githubusercontent.com/wiki/ReactiveX/RxJava/images/rx-operators/map.png... | Scala | src/main/scala/org/dsa/iot/rx/core/Transform.scala | IOT-DSA/dslink-scala-ignition | apache-2.0 | 987 | 38 | codeparrot/github-code |
afad6618cf738637671c2aefb39e50af1037f99651328bee449032ae9f6b0402 | /****************************************************************
* Licensed to the AOS Community (AOS) under one or more *
* contributor license agreements. See the NOTICE file *
* distributed with this work for additional information *
* regarding copyright ownership. The AOS licenses this... | Java | structure/yaml/src/test/java/io/datalayer/data/yaml/CustomMapExampleTest.java | echalkpad/t4f-data | apache-2.0 | 2,148 | 50 | codeparrot/github-code |
5e6e71e12b91705a6d87342ee9701f7b75c54ad9c8bf5a1084a6d37c1d1f898e | <!DOCTYPE html>
<html lang="zh-Hans">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta http-equiv="X-UA-Compatible" content="ie=edge" />
<title>Vue学习系列(一):模板语法 | 悉达多的异次元空间</title>
<link href="/favicon.ico" rel="shortcut icon" type="im... | HTML | posts/vue-templategrammar/index.html | cconecode/cconecode.github.io | apache-2.0 | 24,318 | 686 | codeparrot/github-code |
9836f1b57785aeed3177cd7ba6fcfb0030338e0073ab34bac7fb9cb87b0b5847 | package se.l4.silo.engine.internal.tx.operations;
/**
* Operation within a transaction.
*/
public interface TransactionOperation
{
/**
* Estimate the amount of memory used.
*
* @return
*/
int estimateMemory();
/**
* Estimate the memory used for an identifier.
*
* @param id
* @return
*/
static ... | Java | silo-engine/src/main/java/se/l4/silo/engine/internal/tx/operations/TransactionOperation.java | LevelFourAB/silo | apache-2.0 | 573 | 41 | codeparrot/github-code |
5ce4c12a35d0b4f0e15d662a29ea6fcecbc9e2e6882fb4b4647729604c0c56a7 | /*
* Copyright 2015 MongoDB, 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 ... | Scala | driver/src/main/scala/org/mongodb/scala/internal/IterableObservable.scala | anand-singh/mongo-scala-driver | apache-2.0 | 1,670 | 55 | codeparrot/github-code |
5761c444b26f5f519caf15f59964a28102fb9543fd3a1f3654b8bec277055317 | package fr.openwide.core.web.security.access.expression.method;
import org.springframework.security.access.expression.SecurityExpressionOperations;
import org.springframework.security.authentication.AuthenticationTrustResolver;
import org.springframework.security.authentication.AuthenticationTrustResolverImpl;
import ... | Java | owsi-core/owsi-core-components/owsi-core-component-web-security/src/main/java/fr/openwide/core/web/security/access/expression/method/CoreWebSecurityExpressionHandler.java | openwide-java/owsi-core-parent | apache-2.0 | 1,654 | 39 | codeparrot/github-code |
3a78185d7a75036c9014581e906bf6c463dc9d4f92fae6c62f3c270c2f65f883 | /*
* Copyright 2012-2013 inBloom, Inc. and its affiliates.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by appli... | Java | sli/SDK/client/src/main/java/org/slc/sli/api/client/impl/transform/GenericEntityDeserializer.java | inbloom/secure-data-service | apache-2.0 | 5,025 | 153 | codeparrot/github-code |
0c98f10a0837c8e1c971c649bf01486048e479a79b35f92eac449152ee10f9fa | /*
pybind11/detail/type_caster_base.h (originally first part of pybind11/cast.h)
Copyright (c) 2016 Wenzel Jakob <wenzel.jakob@epfl.ch>
All rights reserved. Use of this source code is governed by a
BSD-style license that can be found in the LICENSE file.
*/
#pragma once
#include "../pytypes.h"
#incl... | C | dependencies/pybind11/include/pybind11/detail/type_caster_base.h | DIPlib/diplib | apache-2.0 | 42,206 | 986 | codeparrot/github-code |
29eba7d564865d896c7b668a0295ff0089c8951a6e3de39282589828f50880fb | package org.jrivets.connector.saltedge.v2;
public class ClientSettings {
// email of the client
public String email;
// success callback URL
public String success_url;
// fail callback URL
public String fail_url;
// notify callback URL
public String notify_url;
// destro... | Java | src/main/java/org/jrivets/connector/saltedge/v2/ClientSettings.java | jrivets/saltedge-connector | apache-2.0 | 836 | 32 | codeparrot/github-code |
64fd6ff2a6f5ad589520d2e60f7d76faee768d0f5924a12ea753b46c5651c14c | // 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... | C++ | src/slave/containerizer/mesos/isolators/volume/image.cpp | andschwa/mesos | apache-2.0 | 8,211 | 269 | codeparrot/github-code |
183def64dd4836bfa13d636816857c394d05e3c6b2df222c1613384f363c413d | /*
* Copyright 2021 Odnoklassniki Ltd, Mail.Ru 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 applica... | Java | test/one/nio/os/perf/PerfStat.java | odnoklassniki/one-nio | apache-2.0 | 11,061 | 290 | codeparrot/github-code |
39ea13e4176686d398c912782622458708d00aecab578d034ed3592beecdb2dc | package org.opentosca.broker.mqtt;
import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.Path;
import java.util.Properties;
import com.google.common.hash.Hashing;
import io.moquette.server.Server;
import org.opentosca.container.core.common.Settings;
import org.opentosca.container.core.impl.serv... | Java | org.opentosca.broker.mqtt/src/main/java/org/opentosca/broker/mqtt/BrokerSupport.java | OpenTOSCA/container | apache-2.0 | 3,713 | 91 | codeparrot/github-code |
0c823e6758066a841acb484932380b5b3f6438120c6293ccf0c002b57e329e93 | <?php
class dbHandler {
private $con;
function __construct() {
require_once dirname(__FILE__) . '/dbConnect.php';
$db = new dbConnect();
$this->con = $db->connect();
}
/** ===== SCHEDULE REGION ===== */
/**
* GET All schedule
*/
public function getAllSchedule() {
$col = new MongoColle... | PHP | include/dbHandler.php | ikmp/roadshow-backend | apache-2.0 | 1,935 | 89 | codeparrot/github-code |
625863e55e3b5302d5fe9bae69268b5567a043641211911ba9afdc373ced76c7 | package io.joynr.messaging.service;
/*
* #%L
* joynr::java::messaging::bounceproxy-controller-service
* %%
* Copyright (C) 2011 - 2017 BMW Car IT 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 cop... | Java | java/messaging/bounceproxy-controller-service/src/test/java/io/joynr/messaging/service/BounceProxyMigrationTest.java | clive-jevons/joynr | apache-2.0 | 2,853 | 105 | codeparrot/github-code |
15757431cf77a19e59ced909f36bfeac844567ab98843e611897fe20758ac438 | package com.kudos.off;
import java.util.Collections;
import java.util.List;
import com.kudos.off.R;
import com.kudos.off.GooglePlaces;
import com.kudos.off.Place;
import android.os.Bundle;
import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.view.LayoutInflater;... | Java | src/com/kudos/off/MainActivity.java | raouldc/OpenFoodFinder | apache-2.0 | 5,419 | 176 | codeparrot/github-code |
28000c570b96c755a8b3664b189d2a634a67199accd912b2b69d723cb6576091 | /**
* 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... | Java | jdbc/src/test/java/org/apache/zeppelin/jdbc/JDBCInterpreterTest.java | datalayer/zeppelin-R | apache-2.0 | 5,202 | 126 | codeparrot/github-code |
91dc0eca453fb3449ac17b331e75daa3e28aa887d68c4e1162ddd815d655466e | /*
* Copyright 2000-2016 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... | Java | src/main/java/org/jetbrains/idea/svn/dialogs/SimpleCredentialsDialog.java | consulo/consulo-apache-subversion | apache-2.0 | 6,141 | 220 | codeparrot/github-code |
6c80aba4e0a2b926885a11a520ffd47cb86cfdb1d9b9c7aaaf50e8519dbfce72 | /*
* Copyright Strimzi authors.
* License: Apache License 2.0 (see the file LICENSE or http://apache.org/licenses/LICENSE-2.0.html).
*/
package io.strimzi.operator.cluster.operator.assembly;
import io.fabric8.kubernetes.api.model.ConfigMap;
import io.fabric8.kubernetes.client.KubernetesClient;
import io.strimzi.api... | Java | cluster-operator/src/test/java/io/strimzi/operator/cluster/operator/assembly/KafkaRebalanceStateMachineTest.java | scholzj/barnabas | apache-2.0 | 27,642 | 577 | codeparrot/github-code |
89aaac8636ec9af5b89a1e0c87d332e5456b0d6ddb8c752e611121271e751fc6 | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package com.projectsontracks.utils;
import org.apache.commons.lang3.StringUtils;
/**
*
* @author f7gupa
*/
public class DatabaseUtils {
/*
* From an input like SCHEMA.TABLENAME returns the s... | Java | src/com/projectsontracks/utils/DatabaseUtils.java | lico/BroadSQL-3.6.0 | apache-2.0 | 2,985 | 88 | codeparrot/github-code |
790e664bf9f45df97fe79d07272e314ffca943ce1234a2b12733710e2bb453e8 | /*
* Copyright 2010-present Facebook.
*
* 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... | C | src/FacebookSDK.h | ArtLapitski/facebook-ios-sdk | apache-2.0 | 5,869 | 144 | codeparrot/github-code |
767e86cd03b2b1f9408341bb17a56312ea753d83e2668e0088d96c5054b46fe2 | /*
* Copyright 2015-2016 DevCon5 GmbH, info@devcon5.ch
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by appli... | Java | tourniquet-jcr/src/test/java/io/tourniquet/junit/jcr/rules/util/XMLContentLoaderTest.java | tourniquet-io/tourniquet-junit | apache-2.0 | 8,102 | 182 | codeparrot/github-code |
89b5ce1545212b692005bfd01c365ce48db3a0ec03e0f554bedbc942fb428b97 | /*
* Copyright 2000-2009 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... | Java | platform/util/src/com/intellij/util/io/storage/AbstractStorage.java | joewalnes/idea-community | apache-2.0 | 11,817 | 368 | codeparrot/github-code |
99de34063e20e9b76da297e8966c8699d6480f0fdaca57c78974837dc3837aa4 | using UnicornHack.Generation;
using UnicornHack.Primitives;
namespace UnicornHack.Systems.Beings
{
[Component(Id = (int)EntityComponent.Physical)]
public class PhysicalComponent : GameComponent
{
private Material _material;
private int _weight;
private int _size;
private in... | C# | src/UnicornHack.Core/Systems/Beings/PhysicalComponent.cs | AndriySvyryd/UnicornHack | apache-2.0 | 1,695 | 69 | codeparrot/github-code |
293ced407ae1da83347b7b60af0a76dd29b5d2b18de5c06d6aae593ca1efa167 | package com.system_process.hellostudio;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import android.widget.TableLayout;
import android.widget.TableRow;
import com.asus.amax.hellostudio.R;
... | Java | app/src/main/java/com/system_process/hellostudio/DynamicActivity.java | SystemProcess/HelloStudio | apache-2.0 | 2,611 | 81 | codeparrot/github-code |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.