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 |
|---|---|---|---|---|---|---|---|---|
f342cc23b220d3f2543362612df9e52465462e49347e3ba9875b18929b8480ea | <?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK IT ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006-2013 http://thinkphp.cn All rights reserved.
// +-----------------------------------------... | PHP | ThinkPHP/Library/Think/Cache/Driver/Redis.class.php | kmarkcn/gogoda | apache-2.0 | 3,801 | 109 | codeparrot/github-code |
5ffe76f0ed3408f33efd07923ae3a0d90f84ecb9a15632b252a7aadc40b23561 | package main
import (
"fmt"
"os"
"strings"
"github.com/otsimo/distribution/db"
_ "github.com/otsimo/distribution/db/mongodb"
"github.com/otsimo/distribution/registry"
"github.com/otsimo/distribution/storage"
"github.com/otsimo/distribution/storage/s3"
log "github.com/Sirupsen/logrus"
"github.com/codegangst... | GO | cmd/registry/main.go | Otsimo/distribution | apache-2.0 | 4,478 | 124 | codeparrot/github-code |
34281d22f0842eabed8f0c60bbf6163258020337b2b153ca79fc8732d733f2bc | /**
*
*/
function validate_1() {
var val = parseFloat(document.getElementById("var1").value);
if((val<= 1.75 && val> 1.7)|| (val<= 1.7 && val> 1.65)|| (val<= 1.65 && val> 1.6)||(val<= 1.6 && val> 1.45)
|| (val<= 1.45 && val> 1.3) || (val<= 1.3 && val> 1.2) ||(val<= 1.2 && val>= 1.0))
document.getElementByI... | JavaScript | web/js/validation.js | Shreeprabha/DSS | apache-2.0 | 5,258 | 174 | codeparrot/github-code |
c7e7a8ca70cec1571b602793762b4f5c6e632bfd7c4deaeef440eed117eb7d2d | ---
layout: post
title: "Business Models"
date: 2011-12-13 12:11:00
author: "Daniel Vela"
header-img: "img/post-bg-03.jpg"
---
## PatientsLikeMe.com
1. Patients expose on the web their medical experiences.
2. The business is sold to pharmaceutical companies and other ones interested in patients opi... | Markdown | _posts/2011-12-13-business-models.markdown | madcato/madcato.github.io | apache-2.0 | 1,382 | 63 | codeparrot/github-code |
365e2ea684929118051a0b7e32726cd5cfd4a54bcf83dd262c6a4d6c49a4da7d | /*
* 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
* distr... | Java | src/main/java/com/scavi/brainsqueeze/maze/MazeRun.java | Scavi/BrainSqueeze | apache-2.0 | 4,915 | 144 | codeparrot/github-code |
829bd32556bace29df3e300280cc5b22487a334bc9f82f59ee6bf3c4d6d5614f | using ManagerShop.Domain.IRepository.Sys_Factory;
using ManagerShop.Domain.Sys_Factory;
using ManagerShop.DTOModel;
using ManagerShop.DTOModel.Sys_Factory;
using ManagerShop.Infrastructure.Core;
using ManagerShop.Infrastructure.Core.Ioc;
using System;
using System.Collections.Generic;
using System.Linq;
namespace Man... | C# | ManagerShop.UI/ManagerShop.wcfService/Sys_Factory/Fac_Master_ProductNameAppService.cs | dawutao/ManagerShop | apache-2.0 | 3,774 | 100 | codeparrot/github-code |
c8465a8b7044132c57ad66468c46ba7329df64f9176452fc0775375fd00d76e9 | /*
* GStreamer
* Copyright (C) 2015 Matthew Waters <matthew@centricular.com>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (at your optio... | C | third_party/gst-plugins-base/gst-libs/gst/gl/gstglmemory.h | google/aistreams | apache-2.0 | 14,432 | 307 | codeparrot/github-code |
7ee79b84224e15809c534037895561667f72417c2d9398174a24f6c2688adea3 | import React from 'react';
import { Mutation } from 'react-apollo';
import gql from 'graphql-tag';
import ReactSelect from 'react-select';
import Button from 'components/Button';
import { bp, color, fontSize } from 'lib/variables';
const taskDrushUserLogin = gql`
mutation taskDrushUserLogin($environment: Int!) {
... | JavaScript | services/ui/src/components/AddTask/components/DrushUserLogin.js | amazeeio/lagoon | apache-2.0 | 1,685 | 68 | codeparrot/github-code |
aefeb6583d439e652b94aa1c6afbdf0d40ed94e0fe16f60537cb7fbb0f225338 | package ua.goit.offline4.algs;
/**
* Created by andreymi on 1/31/2017.
*/
public class Queue<T> {
private static class Node<T> {
T value;
Node<T> prev;
Node<T> next;
}
private Node<T> head;
private Node<T> tail;
public void offer(T value) {
Node<T> newNode = new ... | Java | src/test/java/ua/goit/offline4/algs/Queue.java | djandrewd/goit-4-offline | apache-2.0 | 1,138 | 55 | codeparrot/github-code |
c534fca23008b5ed342df949fbb4d70aa43dbd0cc7e583cc3ffac5f89614c92a | /*
* Copyright (c) 2010-2017 Evolveum
*
* 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 | infra/prism/src/main/java/com/evolveum/midpoint/prism/lex/json/YamlLexicalProcessor.java | arnost-starosta/midpoint | apache-2.0 | 6,839 | 177 | codeparrot/github-code |
0971905ad5ed72c233462a680fe96c623216ef5bc20b2c55607db086039a4e19 | /*
* Copyright 2015 Realm 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 wr... | Java | realm/realm-library/src/main/java/io/realm/internal/async/QueryUpdateTask.java | horie1024/realm-java | apache-2.0 | 14,650 | 342 | codeparrot/github-code |
7a34d795543d81ae18894a03a5918026d4791eb30244212c71750accbf72ae35 | from datetime import datetime
from ... search import get_results, phone_hits, both_hits
from ... run_cli import Arguments
from multiprocessing.dummy import Pool as ThreadPool
pool = ThreadPool(16)
def unique_features(feature, data):
features = set()
for v in data.values():
try:
if isins... | Python | linkalytics/factor_validator/coincidence/coincidence.py | qadium-memex/linkalytics | apache-2.0 | 1,870 | 76 | codeparrot/github-code |
0c2196873412a75df648f41536e9def5549024648dad132aa1479e373b7c99e5 | #pragma once
#include <RPConMQ/Client.hpp>
#include <RPConMQ/exception.hpp>
#include "AbstractEndpoint.hpp"
namespace RPConMQ {
class ClientImpl
: public virtual IClient
, public AbstractEndpoint
{
private:
CorrelationCallBack _create_correlation_id;
qpid::messaging::Session _session;
qpid::messaging::Sender _... | C++ | lib/cpp/lib/ClientImpl.hpp | beardedN5rd/RPConMQ | apache-2.0 | 1,301 | 53 | codeparrot/github-code |
d02abc79c454762c90adcb6dff98dbd6b6d1f6a2e10e960f3f2b534c66e5af26 | #region Apache License Version 2.0
/*----------------------------------------------------------------
Copyright 2021 Jeffrey Su & Suzhou Senparc Network Technology Co.,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 ... | C# | src/Senparc.Weixin.TenPay/Senparc.Weixin.TenPayV3/Apis/Marketing/MarketingApis.Image.cs | mc7246/WeiXinMPSDK | apache-2.0 | 2,500 | 71 | codeparrot/github-code |
3b1f5484e7dc1cf24bbf308bb2326867bbbc7855d0eff2099eb7a2cdf58cb7f3 | package org.drools.benchmark.benchmarks;
import org.drools.KnowledgeBase;
import org.drools.benchmark.BenchmarkDefinition;
import org.drools.benchmark.model.A;
import org.drools.benchmark.model.B;
import org.drools.runtime.StatefulKnowledgeSession;
import java.util.Random;
public class CompareIndexRightModifyNoMatch... | Java | drools-benchmark/src/main/java/org/drools/benchmark/benchmarks/CompareIndexRightModifyNoMatchManyLeft.java | mswiderski/droolsjbpm-integration | apache-2.0 | 1,768 | 63 | codeparrot/github-code |
9ae80fb9e090ecfa426c869006a63060e7cd201a184dd498272afb247747d86c | /**
* Copyright IBM Corp. 2016, 2018
*
* This source code is licensed under the Apache-2.0 license found in the
* LICENSE file in the root directory of this source tree.
*/
import React from 'react';
import OverflowMenuItem from '../OverflowMenuItem';
import { shallow } from 'enzyme';
import { settings } from 'ca... | JavaScript | packages/react/src/components/OverflowMenuItem/OverflowMenuItem-test.js | carbon-design-system/carbon-components | apache-2.0 | 1,733 | 66 | codeparrot/github-code |
78cb0efe2e30b080a346fe10685136d6ad2d232ccec7c83546e6d3cb16a8de06 | /**
* microplugin.js
* Copyright (c) 2013 Brian Reavis & contributors
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this
* file except in compliance with the License. You may obtain a copy of the License at:
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required ... | JavaScript | src/js/thirdParty/microplugin.js | joshbedo/StreamusChromeExtension | apache-2.0 | 4,048 | 135 | codeparrot/github-code |
902e204e5839fc2bce8b10861b37c56f8046d7e1b1eb3034d845f51f564638a5 | /*
* Copyright 2010 Phil Burk, Mobileer 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 o... | Java | examples/src/main/java/com/jsyn/examples/SeeGoogleWave.java | philburk/jsyn | apache-2.0 | 3,478 | 111 | codeparrot/github-code |
dd03aa4dc08131fca40a724ff7cef3ae12e2c324ec34cdbd8f38ebedc27cbeee | package com.huyeye.mobilesafe.activities;
import java.util.ArrayList;
import java.util.List;
import android.app.Activity;
import android.app.ActivityManager;
import android.content.Context;
import android.graphics.Color;
import android.os.Bundle;
import android.text.format.Formatter;
import android.view.View;
import ... | Java | src/com/huyeye/mobilesafe/activities/ProcessManagerActivity.java | butcherzn/mobilesafe | apache-2.0 | 9,796 | 388 | codeparrot/github-code |
2624279919d90f0183c03fae94d6f2c7b45274513bb7355cdfaad274e47c4c76 | package com.coolweather.android.db;
import org.litepal.crud.DataSupport;
/**
* Created by ASUS on 2017/7/26.
*/
public class Province extends DataSupport{
private int id;
private String provinceName;
private int provinceCode;
public int getId(){
return id;
}
public void setId(int id... | Java | app/src/main/java/com/coolweather/android/db/Province.java | Dauntlesse/coolweather | apache-2.0 | 689 | 31 | codeparrot/github-code |
18e189064f8baf9dd2cc7b30498ad37ce1e47d2b5720a3345229d63cf5dab8ee | /*
Copyright 2015 Novartis Institutes for Biomedical Research
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 ... | Java | src/main/java/com/novartis/pcs/ontology/service/notify/PendingItemNotiferJob.java | Novartis/ontobrowser | apache-2.0 | 1,046 | 40 | codeparrot/github-code |
da2f716963273746ccf4107a1d00561f54fd6af6e0def6c213eea532da0e724b | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<!--[if !mso]><!-->
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<!--<![endif]... | HTML | mvideo/mvideo-2017_03_22_samsung_s8/mvideo-2017_03_22_samsung_s8.html | wim-agency/wim-agency.github.io | apache-2.0 | 66,875 | 710 | codeparrot/github-code |
5de2b56cfd0b847a6e882ede521d795dc2fce8a926de7a9567d94fd4c3b5a86d | package controllers
import play.api._
import play.api.mvc._
import models._
object Application extends Controller {
def log(a: Any){
Logger.debug(a.toString)
}
def home = Action{
implicit request =>
Redirect(routes.IncidentBrowser.getIncidents())
}
def debug = Action{
implicit request ... | Scala | app/controllers/Application.scala | larryoatmeal/Incident-Response-Manager | apache-2.0 | 1,979 | 71 | codeparrot/github-code |
57d6b50ccd1dbe155a42b59c8eb9d768cbdd6bb294baf5bb81f23c00e997a7c7 | package com.easyapp.ble.connect.options;
import android.os.Parcel;
import android.os.Parcelable;
/**
* Created by dingjikerbo on 16/9/28.
*/
public class BleConnectOptions implements Parcelable {
private int connectRetry;
private int serviceDiscoverRetry;
private int connectTimeout;
private int ... | Java | ble/src/main/java/com/easyapp/ble/connect/options/BleConnectOptions.java | JimRoid/BaseSupportAndroidModel | apache-2.0 | 3,945 | 141 | codeparrot/github-code |
f054ee1829dba6a2304f93b8bee211c922a74941f81056a9995ff02af2069d33 | // Copyright 2015 The Project Buendia 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 | app/src/main/java/org/projectbuendia/client/sync/LocalizedChartHelper.java | G1DR4/client | apache-2.0 | 9,188 | 211 | codeparrot/github-code |
a483c1188c0b82afb7ef100d073c5785b7a63c833ca08ac01c466d1ff60f4b1d | package com.java110.core.factory;
import sun.misc.BASE64Encoder;
import java.awt.Color;
import java.awt.Font;
import java.awt.Graphics;
import java.awt.Graphics2D;
import java.awt.RenderingHints;
import java.awt.geom.AffineTransform;
import java.awt.image.BufferedImage;
import java.io.*;
import java.util.Arrays;
impo... | Java | java110-core/src/main/java/com/java110/core/factory/ValidateCodeFactory.java | java110/MicroCommunity | apache-2.0 | 8,482 | 272 | codeparrot/github-code |
cafe7e1ebceb51f44a4ef15ed792982a35421487ecd61c8faff717a2880de0fb | <?php
/**
* simplepage.class.php
*
* Este archivo permite armar interfaces.
* @author Carlos A. Rojas <carlkant@gmail.com>
* @version 1.0
* @package package_name
* @creacion: 16/05/2007
* @license: GNU/GPL
*
* CAMBIOS LOG.
* 06/09/2007: Se agrego soporte a varios javascript files y varios C... | PHP | includes/simplepage.class.php | carlosrojaso/websms | apache-2.0 | 3,610 | 176 | codeparrot/github-code |
db2d554739ff61a49eeffe441fcd3caade3d1457449e03b3bdf3183d2a72537f | /*
* 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 | geode-lucene/src/distributedTest/java/org/apache/geode/cache/lucene/internal/cli/DestroyLuceneIndexCommandsDUnitTest.java | deepakddixit/incubator-geode | apache-2.0 | 17,272 | 407 | codeparrot/github-code |
7d23f2b739bdb64f80fc017a04f5af6fecbe811b84f3607714cd8cd599edc79e | using System;
using Microsoft.SPOT;
using Microsoft.Xna.Framework.Audio;
namespace Microsoft.Xna.Framework.Microsoft.Xna.Framework.Media
{
public enum MediaState { Paused, Playing, Stopped }
public static class MediaPlayer
{
#region Fields
private static MediaState state = MediaState.Stop... | C# | Android/XNA/Microsoft/Xna_40/Framework/Media/MediaPlayer.cs | Dot42Xna/master | apache-2.0 | 2,537 | 119 | codeparrot/github-code |
75d7a3c7f910a043c3094bfbee60dee59b47cf580cdc35d2edddd7eb0710cf28 | package com.example.chinamobile.chinamobile.video;
import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.content.pm.ActivityInfo;
import android.content.res.Configuration;
import android.content.res.Resources;
import android.graphics.Color;
import android.graphics.d... | Java | ChinaMobile/app/src/main/java/com/example/chinamobile/chinamobile/video/GiraffePlayer.java | gengGjy/ChinaMobile | apache-2.0 | 45,016 | 1,262 | codeparrot/github-code |
367cb698deb4f6897341aa7dc2cd46024b270e849d3d0d42a4bac7403b737276 | 'use strict';
var path = require('path');
var fs = require('fs');
//var request = require('request');
var plugins_name = "plugins";
var package_json = "../package.json";
var plugin_version;
var github_version;
var npm_version;
module.exports = {
Utils: Utils
}
function Utils() {
}
Utils.loadConfig = function(sto... | JavaScript | lib/utils.js | cflurin/homebridge-mqtt | apache-2.0 | 6,052 | 224 | codeparrot/github-code |
c7b7ff8606ebdfa036fcb3addf420092a9a042caecea35efbf504ff6c8f9fe31 | <?php
namespace Dwoo\Plugins\Functions;
use Dwoo\Compiler;
use Dwoo\Exception;
/**
* Returns a link to the gravatar of someone based on his email address, see {@link http://en.gravatar.com/}.
* <pre>
* * email : email address of the user for whom you want the gravatar
* * size : the size in pixels of the served ... | PHP | assets/modules/Mailer/Dwoo/Plugins/Functions/functionGravatar.php | ngokchau/cockamamei | apache-2.0 | 2,649 | 81 | codeparrot/github-code |
f79b1b1ce074a977dc0687c914e047af073ddce508433d9c02a6cf0f087a8454 | # Copyright 2015-2017 Capital One Services, 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 ... | Python | c7n/output.py | taohungyang/cloud-custodian | apache-2.0 | 9,658 | 303 | codeparrot/github-code |
b66000939ef82a62fbbaf1a98f5790f5a9a5a1cab75462fc24a6a4e175b12c6a | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Client.MessageClasses
{
public class MsgUpload
{
public string indicator { get; set; }
public string filePathInSynFolder { get; set; }
public string... | C# | DBLike/Client/MessageClasses/MsgUpload.cs | ravjotsingh9/DBLike | apache-2.0 | 1,007 | 39 | codeparrot/github-code |
9eaff4a87d76e635abb43d39f7abe52adfed9cd01eab43c1ee9fd4c4aef790b7 |
Products = [
{
"sku" : "illudium-q36",
"name" : "Illudium Q-36 Explosive Space Modulator",
"image" : "illudium-q36.jpg",
"summary" : "Need to destroy a planet? The new and improved Illudium Q36 will leave no stone un-vaporized!",
"description": "At last, after two thousand years of research, the illudium Q... | JavaScript | lib/collections/products.js | danwild/aurora-australis-forecaster | apache-2.0 | 6,844 | 174 | codeparrot/github-code |
3b0bc0e3ba9bc7049d115439f10c0aa3726630c252c67b1fa52bed91e78d1e8f | package com.mpw.constant;
import android.app.Application;
import android.util.Log;
import com.iflytek.cloud.SpeechConstant;
import com.iflytek.cloud.SpeechUtility;
import com.umeng.message.IUmengRegisterCallback;
import com.umeng.message.PushAgent;
import com.wifi.utils.City;
import com.wifi.utils.CrashHandler;
impor... | Java | wiFiWeather/src/main/java/com/mpw/constant/MyApplication.java | VickerChen/mao-company-wifi-code | apache-2.0 | 8,643 | 225 | codeparrot/github-code |
4e85e596209b52b28a160628c1d6e6b14fbaf3eac5757a8d1ddc8dd35865e105 | /*
* logic_unit.h
*
* Created on: 2014年12月2日
* Author: kerry
*/
#ifndef _BABY_LOGIC_UNIT_H__
#define _BABY_LOGIC_UNIT_H__
#include <string>
#include "lbs/lbs_connector.h"
#include "logic/logic_comm.h"
#include "net/comm_head.h"
#include "basic/native_library.h"
#include <string>
namespace base_logic {
cla... | C | src/pub/logic/logic_unit.h | smartdata-x/strade | apache-2.0 | 1,399 | 67 | codeparrot/github-code |
d1f2fb63d571226e899b9e73616116ddbed43cbfd570ff97e4d7174b16b933f6 | // Python Tools for Visual Studio
// Copyright(c) Microsoft Corporation
// All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the License); you may not use
// this file except in compliance with the License. You may obtain a copy of the
// License at http://www.apache.org/licenses/LICENSE-2.0
//... | C# | Python/Product/Debugger.Concord/Proxies/Structs/PyDictObject36.cs | int19h/PTVS | apache-2.0 | 5,114 | 138 | codeparrot/github-code |
5d3a43062ca014ad23a6070895f6512cde05db2522cc464cdcc985830694f19e | /*
* Copyright (c) 2014 Spotify AB.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed t... | Java | helios-testing/src/test/java/com/spotify/helios/testing/UdpProberTest.java | gtonic/helios | apache-2.0 | 2,363 | 82 | codeparrot/github-code |
2fb0233b8cc29885f9d0f2fc1fd7112d8dfa3c8d91f3433f3df6000909b949bd | /*
* Copyright (C) 2017 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 agree... | Java | gapic/src/main/com/google/gapid/glviewer/Geometry.java | google/agi | apache-2.0 | 6,146 | 197 | codeparrot/github-code |
3ca841f3754afa6d7db31f3c291faf7703ff4801afa3fda6706afae7bdeeda57 | /**
* Created by ptang on 8/4/15.
*/
import org.junit.Before;
import org.junit.Test;
import java.io.PrintStream;
import java.util.ArrayList;
import static org.hamcrest.CoreMatchers.is;
import static org.junit.Assert.*;
import static org.mockito.Mockito.*;
public class BookTest {
private Book book;
privat... | Java | src/test/java/BookTest.java | Cramsden/twu-biblioteca-cramsden-patrickDale | apache-2.0 | 1,700 | 63 | codeparrot/github-code |
9755c7df283c66dee7c35bc777e28592fe3f79cd259c75f0a35efa343a26fe25 | /*
* 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-cognitoidentity/src/main/java/com/amazonaws/services/cognitoidentity/model/transform/GetCredentialsForIdentityRequestMarshaller.java | nterry/aws-sdk-java | apache-2.0 | 4,333 | 116 | codeparrot/github-code |
df6ab732dc16888992edc31c4a4b8cdcda1a5f3c9bbf51a06f2c16c4af0cbfad | /*
* Copyright 2013 Barzan Mozafari
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed... | Java | dbseer_front_end/src/dbseer/gui/panel/DBSeerPathChoosePanel.java | barzan/dbseer | apache-2.0 | 2,511 | 84 | codeparrot/github-code |
225b8d2fe7e11467774e226e0c58542e6872a0b4d454d43be56e041ff89202d4 | /*
* Copyright 2010-2012 Luca Garulli (l.garulli--at--orientechnologies.com)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Un... | Java | server/src/main/java/com/orientechnologies/orient/server/network/protocol/http/command/get/OServerCommandGetDocumentByClass.java | delebash/orientdb-parent | apache-2.0 | 2,880 | 74 | codeparrot/github-code |
0d74fd50b3fc3c37450aaf27dcd8b3f1a6ae51887fecaf8d169f409a531d9e29 | // Type definitions for lime-js 0.0.3
// Project: https://github.com/takenet/lime-js
// Definitions by: Arthur Xavier <https://github.com/arthur-xavier>
// Definitions: https://github.com/borisyankov/DefinitelyTyped
declare module "lime-js" {
// Lime.Envelope
interface Envelope {
id?: string;
from?: strin... | TypeScript | lime-js.d.ts | takenet/lime-js | apache-2.0 | 6,851 | 255 | codeparrot/github-code |
a187d74286da3863759c784eeba9924a65fb90401e2e1510cbcb6efe78b8d1e9 | package com.pilotojsf.managedbean.dia2.validator;
import java.io.Serializable;
import javax.annotation.PostConstruct;
import javax.faces.bean.ManagedBean;
import javax.faces.bean.ViewScoped;
import com.pilotojsf.managedbean.dia2.model.AlunoModel;
@ManagedBean(name="customValidatorManagedBean")
@ViewScoped
public cl... | Java | jsflab/src/main/java/com/pilotojsf/managedbean/dia2/validator/CustomValidatorManagedBean.java | antoniolazaro/jsflabs | apache-2.0 | 672 | 35 | codeparrot/github-code |
f84613bda5e9f128e540401f8faa035f275c4b0c8462d2f9fff8083e219fdff5 | # Copyright 2012 United States Government as represented by the
# Administrator of the National Aeronautics and Space Administration.
# All Rights Reserved.
#
# Copyright 2012 Cisco Systems, Inc.
# Copyright 2012 NEC Corporation
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use... | Python | openstack_dashboard/api/neutron.py | sandvine/horizon | apache-2.0 | 50,711 | 1,339 | codeparrot/github-code |
24aeea8e086c6ce273b9e4b0a3582995d31e9d1394955f68ea34eeee6a7de9fb | /*
* Copyright 2013 Tomasz Konopka.
*
* 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 | src/bamfo/gui/permissions/BamfoPermissions.java | tkonopka/Bamformatics | apache-2.0 | 3,171 | 128 | codeparrot/github-code |
0a46b198822f89e0e5c8c62b1289f6bfc311b144f3c1dc0a815746cbede0240d | # Copyright 2018 DeepMind Technologies Limited. 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 ... | Python | acme/jax/losses/impala.py | deepmind/acme | apache-2.0 | 3,849 | 105 | codeparrot/github-code |
2a91d1c9f6233a3d1899fea695a88f20fee19875866f4221768b504f14b4eee5 | #include "Quaternion.h"
Quaternion::Quaternion(double x,double y,double z,double w) :
x(x),y(y),z(z),w(w){
}
Quaternion::Quaternion(Double3 offset) :
x(offset.X),
y(offset.Y),
z(offset.Z),
w(1) {
Normalize();
}
Quaternion::Quaternion(){
}
Quaternion::Quaternion(Double3 axis,double angle){... | C++ | src/Quaternion.cpp | 00steve/Lapster | apache-2.0 | 3,783 | 160 | codeparrot/github-code |
75d0935f4ff0e2fbac174dd8da326598f3bd22a37bdc857aee868ff80f0b1f16 | #pragma once
#include <unordered_set>
#include "envoy/http/filter.h"
#include "envoy/upstream/cluster_manager.h"
#include "common/buffer/buffer_impl.h"
#include "common/common/non_copyable.h"
#include "common/grpc/codec.h"
namespace Envoy {
namespace Grpc {
/**
* See docs/configuration/http_filters/grpc_web_filte... | C | source/common/grpc/grpc_web_filter.h | craffert0/envoy | apache-2.0 | 2,391 | 74 | codeparrot/github-code |
e20a086418e7226a62d4399cc21f4e446228f5648ce67f9689350987ae212753 | /**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/ec2/model/InstanceMetadataOptionsRequest.h>
#include <aws/core/utils/xml/XmlSerializer.h>
#include <aws/core/utils/StringUtils.h>
#include <aws/core/utils/memory/stl/AWSStringStream.h>
... | C++ | aws-cpp-sdk-ec2/source/model/InstanceMetadataOptionsRequest.cpp | awslabs/aws-sdk-cpp | apache-2.0 | 4,794 | 130 | codeparrot/github-code |
d4bfd9841042ae995961d10d46b410e52c19d4c80e6f412daf4f5d96102685c8 | // Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#include "prepare_restart_handler.h"
#include <vespa/searchcore/proton/flushengine/flushengine.h>
#include <vespa/searchcore/proton/flushengine/prepare_restart_flush_strategy.h>
#include <vespa/log/log.h>
LOG_SETU... | C++ | searchcore/src/vespa/searchcore/proton/server/prepare_restart_handler.cpp | vespa-engine/vespa | apache-2.0 | 1,742 | 60 | codeparrot/github-code |
58d7d0afa97def18e1990c1c89660526cddd49ed91cf2de252b1dedecc68299e | #pragma once
#include <iostream>
#include <vector>
#include "SilentTokenizer.hpp"
#include "SilentStructures.hpp"
namespace Silent
{
class Parser
{
public:
Parser(); ~Parser();
bool Parse(std::vector<Silent::Token> tokens);
Structures::Namespace *GetGlobalNamespace();
vo... | C++ | SilentCompiler/src/SilentParser.hpp | EdwinRy/Silent | apache-2.0 | 1,853 | 58 | codeparrot/github-code |
fec060d6e216d9c094b00a9cdc997ddc0097bdec844f69e2b947297ddb3b5f02 | // Generated from /Library/Java/JavaVirtualMachines/jdk1.8.0_144.jdk/Contents/Home/jre/lib/rt.jar
#pragma once
#include <fwd-POI.hpp>
#include <java/lang/fwd-POI.hpp>
#include <java/util/fwd-POI.hpp>
#include <java/util/Collections_UnmodifiableList.hpp>
#include <java/util/RandomAccess.hpp>
struct default_init_tag;
... | C++ | ext/src/java/util/Collections_UnmodifiableRandomAccessList.hpp | pebble2015/cpoi | apache-2.0 | 1,071 | 45 | codeparrot/github-code |
a08173daab5a3554a2fc2ec4c249958ebf5991755d59c89487436c43c0c7071c | package io.quarkus.smallrye.reactivemessaging.wiring;
import static org.junit.jupiter.api.Assertions.fail;
import javax.enterprise.context.ApplicationScoped;
import javax.enterprise.inject.spi.DeploymentException;
import org.eclipse.microprofile.reactive.messaging.Incoming;
import org.jboss.shrinkwrap.api.ShrinkWrap... | Java | extensions/smallrye-reactive-messaging/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/wiring/MissingIncomingConnectorDetectionTest.java | quarkusio/quarkus | apache-2.0 | 1,148 | 39 | codeparrot/github-code |
86912255a6faa0493a6326f6059771d5710bb00472f78fac65cffb80e091b76d | /*
* DBeaver - Universal Database Manager
* Copyright (C) 2013-2015 Denis Forveille (titou10.titou10@gmail.com)
* Copyright (C) 2010-2017 Serge Rider (serge@jkiss.org)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may ... | Java | plugins/org.jkiss.dbeaver.ext.db2/src/org/jkiss/dbeaver/ext/db2/model/DB2TablePartition.java | ruspl-afed/dbeaver | apache-2.0 | 7,203 | 230 | codeparrot/github-code |
aa5b8f00eda79d3f0735059b5e1c9a6dca84fd3c64801cca0a98986a62746c66 | /*
* Copyright (c) 2015 Miles Sabin
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed... | Scala | src/test/scala/cats/derived/defns.scala | ceedubs/kittens | apache-2.0 | 1,147 | 38 | codeparrot/github-code |
355e471cc61c5f7600ba136f1e346cb526eaad297230242f3d67fb76beab3191 | /*
* 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.or... | Java | components/org.wso2.carbon.streaming.integrator.core/src/main/java/org/wso2/carbon/streaming/integrator/core/persistence/FileSystemPersistenceStore.java | wso2/carbon-analytics | apache-2.0 | 7,839 | 194 | codeparrot/github-code |
ef544b66a877b75be4adde78ccb7ee5ebe4b58651668962b7bee4b2513983451 | // Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. See License.txt in the project root for license information.
using System;
using System.Threading.Tasks;
namespace Aminjam.Owin.Security.Instagram
{
/// <summary>
/// Default <see cref="IInstagramAuthenticationProvider"/> implementation.
... | C# | Aminjam.Owin.Security/Aminjam.Owin.Security.Instagram/Provider/InstagramAuthenticationProvider.cs | aminjam/Aminjam.Owin.Security | apache-2.0 | 2,251 | 53 | codeparrot/github-code |
574f66f16361036bc1fdcd36ae8de22e07234b5ca1ea673b52a9ca441ef67e83 | // Define resources in the MUL files.
#ifndef _INC_GRAYMUL_H
#define _INC_GRAYMUL_H
#pragma once
//---------------------------MUL FILE DEFS---------------------------
// All these structures must be BYTE packed.
#if defined _WIN32 && (!__MINGW32__)
// Microsoft dependant pragma
#pragma pack(1)
#define PACK... | C | src/common/graymul.h | Sphereserver/Source | apache-2.0 | 51,853 | 1,710 | codeparrot/github-code |
ecf24676b70b5e43941fae7a30705a10787252370f481693e939c65302a7a929 | #!/bin/bash
# Copyright 2018 Evgeny Golyshev. 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 app... | Shell | qemu/docker-qemu.sh | tolstoyevsky/cusdeb-services | apache-2.0 | 1,395 | 60 | codeparrot/github-code |
be5705fe1c6734a2c1618227d8f998bd1f0ccc6f74ff5a090a0c704357d85b95 | /*
* Copyright (C) 2015 The Minium 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 agr... | Java | minium-elements/src/main/java/minium/internal/BaseElements.java | viltgroup/minium | apache-2.0 | 1,382 | 40 | codeparrot/github-code |
a15b8aa45464cb52b55dfcf4d1f829bb913eefaf5b1f17245617444c6c67a45b | <!DOCTYPE html>
<?php
//error_reporting(0);
session_start();
if (!isset($_SESSION['admin_id'])) {
echo "<script language=\"javascript\">";
echo "window.location.replace('http://admin.altisfrance.Fr/');";
echo "</script>";
exit();
}
require_once('class/config.php');
$admin = Admin::byId($_SESSION['ad... | PHP | includes/head.php | atouzard/ALWP-AltisLife-Web-Panel | apache-2.0 | 3,713 | 104 | codeparrot/github-code |
e410654e05aa0c760db0daf64954d3ab15031eb10f7064c0a66d721fa2e37dab | # Copyright (c) 2011-2012 OpenStack Foundation
# Copyright (c) 2012 Canonical Ltd
# Copyright (c) 2012 SUSE LINUX Products GmbH
# 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 o... | Python | paxes_nova/scheduler/filters/image_props_filter.py | windskyer/k_nova | apache-2.0 | 5,086 | 115 | codeparrot/github-code |
7c9eb1d20f63cd848d46b404b120bf699bfd2ee2478be67625491d331f4c5ed8 | const _ = require('lodash');
const Immutable = require('immutable');
const flexContainer = require('./flex-container.js');
const _L = require('./grid-helpers.js');
const _M = require('./../../manager/manager-index.js');
const _H = require('./../../helpers/helper-index.js... | JavaScript | lib/ctr-nodes/grid/module/center.js | ctr-lang/ctr | apache-2.0 | 2,214 | 75 | codeparrot/github-code |
407c8ef4bd636eaeb7bba4dd67e4222fa4414320a3c6e3e6aae26d44af78b174 | /**
*
*/
package io.shaoshuai.framework.utils;
import java.beans.IntrospectionException;
import java.beans.PropertyDescriptor;
import java.lang.reflect.Constructor;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
import java.lang.reflect.Modifier;
import java.util.Enu... | Java | src/main/java/io/shaoshuai/framework/utils/BeanUtils.java | steveguoshao/framework | apache-2.0 | 7,084 | 258 | codeparrot/github-code |
fe81e3cc5c476d415fb1d6bd23464eb691772495660a73b66bb9f80217b2f20f | /*
* 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 | modules/app/gui/ui/src/main/java/org/rapidpm/jumpstart/vaadin/ui/menubar/RapidMenuBar.java | JavaMicroService/rapidpm-binarycache | apache-2.0 | 2,714 | 63 | codeparrot/github-code |
5218611a640fe8fa7da8cf03d5c5dc9408b3673994b5c1b72865bfe854674416 | /**
* 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 | hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/ipc/TestIPC.java | gigaroby/hops | apache-2.0 | 51,009 | 1,456 | codeparrot/github-code |
a795fea612d525e7f82b9650bd8963762ab410321f6e407a4a7e7554665f5746 | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... | Java | src/java/org/apache/cassandra/concurrent/DebuggableScheduledThreadPoolExecutor.java | sluk3r/cassandra | apache-2.0 | 4,865 | 130 | codeparrot/github-code |
1905682d6f3b0983f8d9de81320a58b7383bb8cb2426df950a479ace4200d5c3 | package no.stelar7.api.r4j.pojo.val.match;
import no.stelar7.api.r4j.basic.constants.api.regions.ValorantShard;
import no.stelar7.api.r4j.basic.constants.types.val.*;
import no.stelar7.api.r4j.basic.utils.sql.SQLForeignMap;
import no.stelar7.api.r4j.impl.val.VALContentAPI;
import no.stelar7.api.r4j.pojo.val.cont... | Java | src/main/java/no/stelar7/api/r4j/pojo/val/match/FinishingDamage.java | stelar7/L4J8 | apache-2.0 | 2,768 | 95 | codeparrot/github-code |
8783c2625307b719f987ae8e49733fb1ec07573e71df2ca0a5e49750572ffc36 | /*
* 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 | jgreen-core/src/test/java/cz/wicketstuff/jgreen/core/webdriver/HtmlServiceTest.java | martinstrejc/jgreen | apache-2.0 | 9,048 | 304 | codeparrot/github-code |
ecc5f61f4a5fb7a30486c2a5d2778013738d0659959a35d63662e546bac7c7fc | /*
* Copyright 2011 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | Java | subprojects/tooling-api/src/main/java/org/gradle/tooling/internal/adapter/ProtocolToModelAdapter.java | robinverduijn/gradle | apache-2.0 | 39,618 | 1,012 | codeparrot/github-code |
3c0110aee5f40662f8bd8e002d44e4414c38ce0c4392d2484a80a28d23bd70b3 | package io.quarkus.resteasy.common.spi;
import java.util.HashSet;
import java.util.List;
import java.util.Set;
import java.util.function.Predicate;
import javax.inject.Inject;
import org.eclipse.microprofile.config.inject.ConfigProperty;
import org.jboss.jandex.DotName;
import org.jboss.jandex.FieldInfo;
import org.... | Java | extensions/resteasy-classic/resteasy-common/spi/src/main/java/io/quarkus/resteasy/common/spi/ResteasyDotNames.java | quarkusio/quarkus | apache-2.0 | 6,273 | 124 | codeparrot/github-code |
58a4d2a778bf2fba3525c536901cf4118db5fdaa4444429dcc2f310848c61e86 | /*
* 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-kinesis/src/main/java/com/amazonaws/services/kinesisfirehose/model/transform/DeliveryStreamEncryptionConfigurationJsonUnmarshaller.java | jentfoo/aws-sdk-java | apache-2.0 | 3,012 | 75 | codeparrot/github-code |
065b783d57dec9658cfd48a93017bc7a9e598513dd47e06ab001e1f7a87eaca5 | package com.alexvasilkov.android.commons.widgets;
import android.content.Context;
import android.content.res.TypedArray;
import android.util.AttributeSet;
import android.view.View;
/**
* Helper class to allow setting max width and max height to any views using
* 'android:maxWidth' and 'android:maxHeight' xml attrib... | Java | library/src/main/java/com/alexvasilkov/android/commons/widgets/BoundedViewHelper.java | alexvasilkov/AndroidCommons | apache-2.0 | 1,754 | 53 | codeparrot/github-code |
5e38e8efc9b9c4aec7880e05a796dd17a849a6874724725e4f22591c7594bcd1 | /*
* Copyright 2015 Delft 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 License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by appli... | Java | src/test/java/science/atlarge/graphalytics/neo4j/metrics/embedded/cdlp/CommunityDetectionLPComputationTest.java | tudelft-atlarge/graphalytics-platforms-neo4j | apache-2.0 | 2,644 | 68 | codeparrot/github-code |
4faa188ddaed3426f5c98c40fa9f60ff18e85076a09d55407842cacd8457f19c | /*
* Copyright (C) 2014 - present by OpenGamma Inc. and the OpenGamma group of companies
*
* Please see distribution for license.
*/
package com.opengamma.strata.math.impl.function;
import java.util.ArrayList;
import java.util.List;
import org.junit.jupiter.api.Test;
import com.opengamma.strata.collect.array.Dou... | Java | modules/math/src/test/java/com/opengamma/strata/math/impl/function/DoublesVectorFunctionProviderTest.java | OpenGamma/Strata | apache-2.0 | 1,911 | 64 | codeparrot/github-code |
0d226d004d53cf2f06005ffa19ac5b0a9e5810c26aefd908f56643a96de4ebe0 | // Package queue provides an interface to the work queue for the autograder instance.
package queue
import (
"github.com/golang/glog"
"github.com/streadway/amqp"
)
// Channel represents a connection to the queue service.
// It is not thread-safe.
type Channel struct {
*amqp.Connection
*amqp.Channel
queues ... | GO | go/queue/queue.go | google/prog-edu-assistant | apache-2.0 | 2,598 | 113 | codeparrot/github-code |
de1f48d34ccb323be0085edba6e7a17bd3eba505a1698e56bb02d4de9b8ade2c | /*
* Copyright (c) 2008-2017, 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-client/src/main/java/com/hazelcast/client/spi/impl/listener/ClientNonSmartListenerService.java | tombujok/hazelcast | apache-2.0 | 8,913 | 207 | codeparrot/github-code |
b2c78ac5bb76d00e7ecbcdde24633b5d7671779e1f71a6fdd038629ddfcbd0f1 | /*
* Copyright 2013-2014 Urs Wolfer
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... | Java | src/main/java/com/urswolfer/gerrit/client/rest/http/changes/ChangeApiRestClient.java | sstafford/gerrit-rest-java-client | apache-2.0 | 10,797 | 283 | codeparrot/github-code |
b998a64ec97fe2b61e624adbeb0264ffd75606bc83356f330c5a6ec3086c384c | /**
* Copyright 2005-2014 The Kuali Foundation
*
* Licensed under the Educational Community 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.opensource.org/licenses/ecl2.php
*
* Unless requ... | Java | sampleapp/src/main/java/edu/sampleu/demo/kitchensink/UifComponentsTestController.java | ua-eas/ua-rice-2.1.9 | apache-2.0 | 6,784 | 135 | codeparrot/github-code |
f2ac98af7c35b62d13eb44fbe2bb07df521cde9fd56aea88632291884da6986d | // Copyright 2000-2017 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
/**
* @author Alexey
*/
package com.intellij.lang.properties.editor;
import com.intellij.icons.AllIcons;
import com.intellij.ide.structureView.StructureViewTreeElement;
import... | Java | plugins/properties/properties-psi-impl/src/com/intellij/lang/properties/editor/ResourceBundleFileStructureViewElement.java | da1z/intellij-community | apache-2.0 | 5,759 | 170 | codeparrot/github-code |
dda3ec7bd8a5ca67b57199d73186048dd23599764da0e5ef905a144a86ffec5e | package com.rackspace.com.papi.components.checker.util
import com.codahale.metrics.{Gauge, Metric, MetricFilter, MetricRegistry, JmxReporter}
import com.typesafe.scalalogging.LazyLogging
import scala.language.existentials
object Instrumented {
val metricRegistry = new MetricRegistry()
val metricDomain = "com.rac... | Scala | util/src/main/scala/com/rackspace/com/papi/compenents/checker/util/Instrumented.scala | rackerlabs/api-checker | apache-2.0 | 1,964 | 69 | codeparrot/github-code |
a95e3e123a40270ae134f03c9b0de62e4df82ce47a5773d9af2f2a15be7009c0 | package com.rssaggregator.desktop.view;
import java.util.Optional;
import com.jfoenix.controls.JFXComboBox;
import com.jfoenix.controls.JFXTextField;
import com.rssaggregator.desktop.AddFeedScene;
import com.rssaggregator.desktop.model.Category;
import com.rssaggregator.desktop.model.CategoryAddedWrapper;
import com.... | Java | src/com/rssaggregator/desktop/view/AddFeedController.java | RSSAggregatorProject/DesktopApp | apache-2.0 | 5,310 | 199 | codeparrot/github-code |
d58461eea7563be8382edb56092f6e556b3ea0e013a2f65e0899b1e884b55896 | #include <babylon/gizmos/position_gizmo.h>
#include <babylon/behaviors/meshes/pointer_drag_behavior.h>
#include <babylon/core/logging.h>
#include <babylon/engines/scene.h>
#include <babylon/gizmos/axis_drag_gizmo.h>
#include <babylon/gizmos/bounding_box_gizmo.h>
#include <babylon/gizmos/gizmo_manager.h>
#include <baby... | C++ | src/BabylonCpp/src/gizmos/position_gizmo.cpp | samdauwe/BabylonCpp | apache-2.0 | 8,052 | 260 | codeparrot/github-code |
e0901eb60277ab542555dd415fd45d25c8f287bd8973577ce83c989f6fb8edf1 | /*
* Copyright 2016 ELOTECH GESTAO PUBLICA LTDA
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable l... | Java | src/main/java/br/com/elotech/tributacao/oxm/nfse/IdentificacaoTomador.java | elotech/SITS | apache-2.0 | 1,381 | 53 | codeparrot/github-code |
b4479175cea9bb4f4712224648240de1fea55fe3e7324c4b2b3aeac4f23af386 | import * as path from "path";
import * as util from "util";
import * as _ from "lodash";
import { annotate, getValueFromNestedObject } from "../helpers";
import { AnalyticsEventLabelDelimiter } from "../../constants";
import { IOptions, IPerformanceService } from "../../declarations";
import {
IHook,
IHooksService,
... | TypeScript | lib/common/services/hooks-service.ts | NativeScript/nativescript-cli | apache-2.0 | 12,555 | 478 | codeparrot/github-code |
548367b08c7b74f6dedd47ab56d2bd765669c852205da088a7a296fb31007e91 | package fr.openwide.core.wicket.more.console.maintenance.upgrade.component;
import static fr.openwide.core.jpa.more.property.JpaMorePropertyIds.dataUpgrade;
import java.util.List;
import org.apache.wicket.AttributeModifier;
import org.apache.wicket.markup.html.basic.Label;
import org.apache.wicket.markup.html.link.A... | Java | owsi-core/owsi-core-components/owsi-core-component-wicket-more/src/main/java/fr/openwide/core/wicket/more/console/maintenance/upgrade/component/DataUpgradePanel.java | openwide-java/owsi-core-parent | apache-2.0 | 3,546 | 97 | codeparrot/github-code |
b108617bd8a404c555207b27bfa426904e56aced4005bf9fe63cf5f2719b06d6 | <?php
/** @license
* Copyright 2019-2011 Rafael Gutierrez Martinez
* Copyright 2012-2013 Welma WEB MKT LABS, S.L.
* Copyright 2014-2016 Where Ideas Simply Come True, S.L.
* Copyright 2017 nabu-3 Group
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in... | PHP | nabu/http/managers/CNabuHTTPRenderDescriptor.php | nabu-3/core | apache-2.0 | 3,421 | 110 | codeparrot/github-code |
0f60f099a5fa72f37826993ea0c9d5e47ebeb9e60252fe4773d6479e47762b5a | /**
* Copyright © 2016 Thomas Mayer (thomas.mayer@unibw.de)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by ... | Java | vrpsim-core/src/main/java/vrpsim/core/model/util/uncertainty/UncertainParamters.java | MayerTh/RVRPSimulator | apache-2.0 | 1,638 | 53 | codeparrot/github-code |
2ee6af5fcf62f256baf9f06d82c77786e674bafd080b03c4d51241af6e49d5cc | package com.tuplejump.calliope.native
import org.apache.spark.SparkContext
import org.apache.spark.rdd.RDD
import com.datastax.driver.core.Row
import com.tuplejump.calliope.{NativeCasBuilder, CasBuilder}
import scala.annotation.implicitNotFound
class NativeCassandraSparkContext(self: SparkContext) {
/**
*
* ... | Scala | src/main/scala/com/tuplejump/calliope/native/NativeCassandraSparkContext.scala | brenttheisen/calliope-public | apache-2.0 | 1,994 | 67 | codeparrot/github-code |
7b50d8f375719525507b6a1cadd1e1b02b155c8deff5480a6c0a7e232a650b68 | import { Component, OnInit } from '@angular/core';
import { AuthService } from '../common/auth.service';
import { FormControl } from '@angular/forms';
import { UiNotificationsService } from '../common/ui-notifications.service';
import { MessageSeverity } from '../common/message-severity.enum';
import { InternalRoutingS... | TypeScript | local-lingua-front/src/app/account/account.component.ts | kamilslusarczyk/local-lingua | apache-2.0 | 2,541 | 69 | codeparrot/github-code |
504d5d689ddd9995e002de06cfff4ea61cb388d7f7fff68550a7e959775cf523 | // Copyright 2013 Google Inc. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law... | C | enc/command.h | minhlongdo/brotli | apache-2.0 | 5,094 | 142 | codeparrot/github-code |
8b6508ecc0e1df068c1fcd71b3cd297f589fdef9cdbd0f79b93a4be2c3af40b1 | import React from 'react';
import {Link} from 'react-router-dom';
import './CreateTeam.css';
export default class CreateTeam extends React.Component {
constructor(props){
super(props);
this.handleFormSubmit = this.handleFormSubmit.bind(this);
this.handleNameChange = this.handleNameChange.bi... | JavaScript | src/screens/team/components/CreateTeam/CreateTeam.js | vio-lets/Larkyo-Client | apache-2.0 | 2,745 | 77 | codeparrot/github-code |
3af4f641902a544326afc584b38a60577f890e00326ec3b9d5b817bb5abc7b92 | /*
* GWTPHP is a port to PHP of the GWT RPC package.
* This framework is based on GWT.
* Design, strategies and part of the methods documentation are developed by Google Inc.
* PHP port, extensions and modifications by Rafal M.Malinowski. All rights reserved.
* Additional modifications, GWT generators and linkers ... | Java | gwt/com/tyf/gwtphp/linker/types/ServiceArtifact.java | tengyifei/gwtphp | apache-2.0 | 1,725 | 49 | codeparrot/github-code |
f7aac827e7336f27fef9334b5523e696f61fb3147c5b769de866f02b9bc90e57 | package elasticsearch
import (
"bytes"
"crypto/tls"
"encoding/json"
"fmt"
"io"
"io/ioutil"
"net/http"
"time"
"github.com/elastic/libbeat/common"
"github.com/elastic/libbeat/logp"
"github.com/elastic/libbeat/outputs/mode"
)
type Client struct {
Connection
index string
}
type Connection struct {
URL ... | GO | Godeps/_workspace/src/github.com/elastic/libbeat/outputs/elasticsearch/client.go | andrewkroh/topbeat | apache-2.0 | 7,036 | 320 | codeparrot/github-code |
7652f29d7981d7b86d5f9c50c8134ddb7cb6474f60db085f0a68646cc4111ca6 | // Copyright 2012 the V8 project authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef V8_HEAP_MARK_COMPACT_INL_H_
#define V8_HEAP_MARK_COMPACT_INL_H_
#include "src/heap/mark-compact.h"
#include "src/heap/slots-buffer.h"
#include ... | C | deps/v8/src/heap/mark-compact-inl.h | dreamllq/node | apache-2.0 | 5,653 | 175 | codeparrot/github-code |
a11cda689041934e51b3ceb78930595048f253662177185ea907ebf44a1efa3a | package concurrency;
//: concurrency/SyncObject.java
// Synchronizing on another object.
import static net.mindview.util.Print.*;
class DualSynch {
private Object syncObject = new Object();
public synchronized void f() {
for(int i = 0; i < 5; i++) {
print("f()");
Thread.yield();
}
... | Java | thinkinj/src/main/java/concurrency/SyncObject.java | vowovrz/thinkinj | apache-2.0 | 789 | 46 | codeparrot/github-code |
72a5389d8f9186c94c80c2bc4f67a451bb1170c31c8f2aea85435f6c75eb5ec9 | package com.hufeiya.SignIn.net;
import android.content.Context;
import android.util.Log;
import android.view.View;
import com.google.gson.Gson;
import com.hufeiya.SignIn.activity.CategorySelectionActivity;
import com.hufeiya.SignIn.activity.QuizActivity;
import com.hufeiya.SignIn.application.MyApplication;
import com... | Java | AndroidClient/app/src/main/java/com/hufeiya/SignIn/net/AsyncHttpHelper.java | hufeiya/CoolSignIn | apache-2.0 | 9,118 | 229 | codeparrot/github-code |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.