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 |
|---|---|---|---|---|---|---|---|---|
9c868f8119aa3121d5a2bec3177422f7d450b6b628dc00057ea3df2ac9001ca2 | package ssim.util;
import javax.vecmath.Tuple2f;
import com.jme3.math.Vector2f;
/**
*
* @author Ch. Nicolai
*/
public class FFT {
private int n = -1;
private int m;
private float[] tmpReRow;
private float[] tmpImRow;
private float[] tmpReCol;
private float[] tmpImCol;
pr... | Java | src/ssim/util/FFT.java | cmur2/ssim-ed | apache-2.0 | 16,364 | 500 | codeparrot/github-code |
41ec2f38e376bd73b729860d4f8b2ea2c5bbff5827f9cf1a4837bcd928c756a1 | /**
* @copyright Copyright (c) 2014 X.commerce, Inc. (http://www.magentocommerce.com)
*/
define([
'ko',
'./observable_source',
'../../renderer/renderer',
'mage/apply/main'
], function (ko, Source, Renderer, Mage) {
'use strict';
var sources = {};
/**
* Creates unique template identi... | JavaScript | app/code/Magento/Ui/view/base/web/js/lib/ko/template/engine.js | webadvancedservicescom/magento | apache-2.0 | 3,867 | 101 | codeparrot/github-code |
98486294bb46f39fff30e82ca5a07ea6509e67cec9edbbf77bf469caa32385cc | # vim: tabstop=4 shiftwidth=4 softtabstop=4
# Copyright 2013 Red Hat, 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
#
#... | Python | keystone/common/base64utils.py | dsiddharth/access-keys | apache-2.0 | 13,091 | 396 | codeparrot/github-code |
6b222711cfcee901108f71cbaed13dc5c68d2e1417507203b631ea729cc47e13 | /*
* 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-core/src/main/java/org/apache/geode/internal/tcp/MsgReader.java | PurelyApplied/geode | apache-2.0 | 5,795 | 170 | codeparrot/github-code |
b250c39b46f5424c2aced67dd724ddcdd20c332424d45055f25ab9fff936de16 | #include "inferencewrapper.h"
#include <fstream>
#include <iostream>
#include <memory>
#include <string>
#include "edgetpu_c.h"
#include "tensorflow/lite/builtin_op_data.h"
#include "tensorflow/lite/kernels/register.h"
#include "tensorflow/lite/model.h"
#define TFLITE_MINIMAL_CHECK(x) \
... | C++ | nativeapp/inferencewrapper.cc | google-coral/examples-camera | apache-2.0 | 3,311 | 101 | codeparrot/github-code |
84dd71f6293254660803928ac7a572d58eff243650c38fffb9dcf5c899728fa7 | #-------------------------------------------------------------------------------
# Copyright 2017 Cognizant Technology Solutions
#
# 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:... | Python | PlatformAgents/com/cognizant/devops/platformagents/agents/deployment/rundeck/RundeckAgent.py | CognizantOneDevOps/Insights | apache-2.0 | 2,690 | 58 | codeparrot/github-code |
4bb4be513c841ee02cad76ae1daa5086635f9adef19cab935d3bd7d280893f67 | /*
* Copyright 2014-2016 by Cloudsoft Corporation Limited
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applic... | Java | docker/src/main/java/brooklyn/entity/nosql/etcd/EtcdProxySshDriver.java | andreaturli/clocker | apache-2.0 | 2,980 | 87 | codeparrot/github-code |
91cf1026c234bc49679e737ac451d5be652bed8d0888f931705ba55dbd66c44f | /*
* 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 | profitbricks/src/main/java/org/jclouds/profitbricks/http/parser/ipblock/IpBlockListResponseHandler.java | hardfish/justTest | apache-2.0 | 2,202 | 63 | codeparrot/github-code |
0a06aacfcde2c1e5d278f1bd05b112c906e5a21e4f0a52d7ad8ab77b838336b3 | package lab.s2jh.auth.service;
import java.util.Collection;
import java.util.Date;
import java.util.List;
import lab.s2jh.auth.dao.PrivilegeDao;
import lab.s2jh.auth.dao.RoleDao;
import lab.s2jh.auth.dao.UserDao;
import lab.s2jh.auth.dao.UserLogonLogDao;
import lab.s2jh.auth.dao.UserR2RoleDao;
import lab.s2jh.auth.en... | Java | common-service/src/main/java/lab/s2jh/auth/service/UserService.java | smilesman/s2jh | apache-2.0 | 5,242 | 177 | codeparrot/github-code |
144a239bf22f551f9b7f4df52eac09fff5008de4a8bd766636e2ab407530d299 | <!DOCTYPE html>
<html lang="en-us">
<head>
<meta charset="UTF-8">
<title>Optimization by luzhijun</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" type="text/css" href="stylesheets/normalize.css" media="screen">
<link href='https://fonts.googleapi... | HTML | index.html | luzhijun/Optimization | apache-2.0 | 5,530 | 146 | codeparrot/github-code |
c2471d7f63f352cfd206c3dab64b63cf055e1334b58a3562f4ffb9bb5ac6c0e4 | #import "MWMBottomMenuViewController.h"
#import "MWMNavigationDashboardManager.h"
#import "MWMRoutingProtocol.h"
#include "map/user_mark.hpp"
#include "platform/location.hpp"
@class MapViewController;
@interface MWMMapViewControlsManager : NSObject <MWMRoutingProtocol>
@property (nonatomic) BOOL hidden;
@property (... | C | iphone/Maps/Classes/CustomViews/MapViewControls/MWMMapViewControlsManager.h | programming086/omim | apache-2.0 | 1,530 | 50 | codeparrot/github-code |
f76bd71ca4a6c0045b1b65043a453f24d5169fb3dae9a2baa67e5a4f3a9ee904 | #!/usr/bin/python
#
# Copyright 2018-2021 Polyaxon, 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 ... | Python | hypertune/hypertune/search_managers/random_search/manager.py | polyaxon/polyaxon | apache-2.0 | 2,436 | 65 | codeparrot/github-code |
fb53b533facb629035379d63a446dc2a6df8ff4b16fb1dcb0416686a898abb07 | package com.peertopark.java.dates;
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;
import o... | Java | dates/src/test/java/com/peertopark/java/dates/BirthdayUtilsTest.java | peertopark/java-commons | apache-2.0 | 1,059 | 48 | codeparrot/github-code |
d6d1dfbdcbb27bf5faa4549653985752d15c442036db738b13b1e381dc351bbb | #!/usr/bin/env bash
set -e
# Because `hub` is used, this script expects the following environment variables defined in travis job settings:
# GITHUB_TOKEN - github api token with repo permissions (display value in build log setting: OFF)
# GITHUB_USER - github username that GITHUB_TOKEN is associated with (display val... | Shell | Scripts/run_prep.sh | optimizely/objective-c-sdk | apache-2.0 | 2,285 | 76 | codeparrot/github-code |
2fd8d9f37b2c0cdd4bd69ba7a33c188bd64a112bb53ef43f8a3a4358fa018b4f | /**
*/
package edu.kit.ipd.sdq.kamp4aps.model.aPS.InterfaceRepository.provider;
import edu.kit.ipd.sdq.kamp4aps.model.aPS.InterfaceRepository.ScrewingPotentiometer;
import java.util.Collection;
import java.util.List;
import org.eclipse.emf.common.notify.AdapterFactory;
import org.eclipse.emf.common.noti... | Java | edu.kit.ipd.sdq.kamp4aps.aps.edit/src/edu/kit/ipd/sdq/kamp4aps/model/aPS/InterfaceRepository/provider/ScrewingPotentiometerItemProvider.java | KAMP-Research/KAMP4APS | apache-2.0 | 2,588 | 89 | codeparrot/github-code |
643a68f5f349b95bcbd35786a220e10eb00923422bdc0acd9ebc0d3af735c2f1 | #include "stdafx.h"
#include "..\igame_persistent.h"
#include "..\environment.h"
void CRenderTarget::accum_direct (u32 sub_phase)
{
// Choose normal code-path or filtered
phase_accumulator ();
if (RImplementation.o.sunfilter) {
accum_direct_f (sub_phase);
return ;
}
// *** assume accumulator setted up... | C++ | XRay/xr_3da/xrRender_R2/r2_rendertarget_accum_direct.cpp | OLR-xray/XRay-NEW | apache-2.0 | 17,035 | 444 | codeparrot/github-code |
ea926f70636714182c740a7e4e4c5152c84431585729196b577fdaa70002c36f | /**
* <ul>
* <li>ClipPath</li>
* <li>com.android2ee.java.tool.animatedvector.morphing.model</li>
* <li>25/11/2015</li>
* <p/>
* <li>======================================================</li>
* <p/>
* <li>Projet : Mathias Seguy Project</li>
* <li>Produit par MSE.</li>
* <p/>
* /**
* <ul>
* Android Tutorial... | Java | animatedvectortool/src/main/java/com/android2ee/java/tool/animatedvector/morphing/model/ClipPath.java | MathiasSeguy-Android2EE/AnimatedVectorMorphingTool | apache-2.0 | 2,941 | 81 | codeparrot/github-code |
d2e152e140740554b6e6a660fdff22acfdc54111d9fb89a896a5ec91ed5bc2fd | package com.sync.changsha.gson.bean;
import java.util.Map;
/**
* Created by Administrator on 2017/12/7.
*/
public class MapBean {
private int momeyTotal;
private int volunteerTotal;
private int gainTotal;
private int activityTotal;
private int publishTotal;
private Map<String, Object> volunteerMap;
... | Java | sample-RxJava/src/main/java/com/sync/changsha/gson/bean/MapBean.java | MariShunxiang/JavaWebSample | apache-2.0 | 1,608 | 76 | codeparrot/github-code |
fa72be4a7fccabad8cc902cee3f05cd8cfc262964fe976a8a0a20e2ad0a91e2e | package org.adligo.xml_io_generator;
import java.io.IOException;
import java.math.BigDecimal;
import java.util.Collections;
import java.util.HashMap;
import java.util.HashSet;
import java.util.List;
import java.util.Map;
import java.util.Set;
import java.util.TreeSet;
import org.adligo.i.log.shared.Log;
import org.ad... | Java | src/org/adligo/xml_io_generator/NonMutantConverterGenerator.java | adligo/xml_io_generator.adligo.org | apache-2.0 | 6,728 | 188 | codeparrot/github-code |
60a74a5d9c1d6fbf8f5943f68c421717b28a80ffb59b188ca9c39f1453bcd7ac | package me.storm.ninegag.data;
import android.graphics.Bitmap;
import android.os.Build;
import android.util.LruCache;
import com.android.volley.toolbox.ImageLoader;
import android.os.Build.VERSION;
/**
* Created by storm on 14-3-25.
*/
public class BitmapLruCache extends LruCache<String, Bitmap> implements ImageL... | Java | 9GAG-master/9GAG-master/app/src/main/java/me/storm/ninegag/data/BitmapLruCache.java | LionelOrange/androidstudioprojects | apache-2.0 | 878 | 39 | codeparrot/github-code |
e9500e66f9e91910c039f55b6e4829901d366fd92637de43307bab0e7d5e98b9 | using System;
using System.Collections.Generic;
using System.Data.Services;
using System.Data.Services.Common;
using System.Data.Services.Providers;
using System.IO;
using System.Linq;
using System.ServiceModel.Web;
using System.Web;
using Ninject;
using NuGet.Server.Infrastructure;
namespace NuGet.Server.... | C# | src/Server/DataServices/Packages.svc.cs | themotleyfool/NuGet | apache-2.0 | 6,731 | 168 | codeparrot/github-code |
4251e071a3660cb6cbf4f567fe58315f76746faf89c86359ad7b3ab496534ccb | //===============================================================================
// © 2015 eWorkplace Apps. ALL rights reserved.
// Main Author: Shrey Sharma
// Original DATE: 5/19/2015
//===============================================================================
package com.eworkplaceapps.platform.utils.enums;
... | Java | platform/src/main/java/com/eworkplaceapps/platform/utils/enums/CommunicationType.java | rishabh05/ED | apache-2.0 | 1,009 | 42 | codeparrot/github-code |
48300220d62ba2476fe1b9c1a7f567403f33ece261114e84b908e652fd32b9be | package io.ebean.datasource.pool;
import org.testng.annotations.Test;
import static org.testng.Assert.assertEquals;
public class BusyConnectionBufferTest {
@Test
public void test() {
BusyConnectionBuffer b = new BusyConnectionBuffer(2, 4);
PooledConnection p0 = new PooledConnection("0");
PooledCo... | Java | src/test/java/io/ebean/datasource/pool/BusyConnectionBufferTest.java | ebean-orm/avaje-datasource | apache-2.0 | 2,286 | 101 | codeparrot/github-code |
928b6937272e61e350dfd351dafa383df3a29f3c09f10c65616b4d48e1681495 | # $LICENSE
# Copyright 2013-2014 Spotify AB. All rights reserved.
#
# The contents of this file are 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-... | Ruby | lib/ffwd/core/reporter.rb | signalfx/ffwd | apache-2.0 | 906 | 33 | codeparrot/github-code |
8bad82a6ee0dfd4a2ed05c5801aec09b881b82644dc6f69507aab371be705676 | /*
* Copyright (c) 2005-2009 Grameen Foundation USA
* All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unl... | Java | application/src/main/java/org/mifos/framework/struts/plugin/InitializerPlugin.java | mifos/1.4.x | apache-2.0 | 4,582 | 123 | codeparrot/github-code |
066c83f0bbd8ff3be2932c80a69a6fe8187fafce11b9c103b484e705e9634909 | package com.uniquepassive.mystery.util;
import com.google.common.base.Throwables;
import org.objectweb.asm.ClassReader;
import org.objectweb.asm.ClassWriter;
import org.objectweb.asm.tree.ClassNode;
import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
import ja... | Java | src/main/java/com/uniquepassive/mystery/util/JarUtil.java | UniquePassive/mystery | apache-2.0 | 2,430 | 72 | codeparrot/github-code |
59b6c1f57e5fee7aec9025ccffd6015b1dd508a91c24fd0c16066d26080a7af8 | package com.morgan.server.backend.fake;
import java.util.HashMap;
import java.util.Map;
import java.util.Set;
import com.google.common.base.Optional;
import com.google.common.base.Preconditions;
import com.google.common.base.Strings;
import com.google.common.collect.ImmutableMap;
import com.google.inject.Inject;
impo... | Java | src/com/morgan/server/backend/fake/FakeUserBackend.java | mmm2a/game-center | apache-2.0 | 3,193 | 97 | codeparrot/github-code |
0620001e2adc1ef4f682472605e280819baa80bd418817844bc12f85bfe0865c | /**
*
*/
package parsers;
import java.util.List;
import java.util.Map;
import models.Item;
import org.markdown4j.Plugin;
/**
* @author stefan.illgen
*/
public class ItemMetaDataPlugin extends Plugin {
private ItemParser itemParser;
public ItemMetaDataPlugin() {
super("markdown_metadata_plugin");
itemP... | Java | app/parsers/ItemMetaDataPlugin.java | stefanil/org.devel.skills.play2 | apache-2.0 | 553 | 36 | codeparrot/github-code |
e5062fc2e72fbca34578f2141dac1d9223caeaded6da524af2691317c2b06e84 | package de.maxikg.osuapi.model;
import com.fasterxml.jackson.core.type.TypeReference;
import com.fasterxml.jackson.databind.ObjectMapper;
import de.maxikg.osuapi.utils.DateUtils;
import org.junit.Test;
import java.util.List;
import java.util.Locale;
import static org.hamcrest.MatcherAssert.assertThat;
import static ... | Java | Common/src/test/java/de/maxikg/osuapi/model/UserTest.java | osuWorks/osu-api-Java-Client | apache-2.0 | 2,252 | 56 | codeparrot/github-code |
e2ce2cafd600ca19c8a7efb6dc4f506ca2dd89f3943dd1079929bc720ad6e290 | /*
* 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-gluedatabrew/src/main/java/com/amazonaws/services/gluedatabrew/model/transform/ColumnSelectorJsonUnmarshaller.java | aws/aws-sdk-java | apache-2.0 | 2,957 | 79 | codeparrot/github-code |
a296b95bead2647c5d3ab978dbd953a51f11f7223d20c5f785549bbcad37f9f2 | package com.gentics.mesh.etc.config;
import java.io.File;
import java.util.Objects;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonPropertyDescription;
import com.gentics.mesh.annotation.Getter;
import com.gentics.m... | Java | api/src/main/java/com/gentics/mesh/etc/config/MeshOptions.java | gentics/mesh | apache-2.0 | 15,974 | 548 | codeparrot/github-code |
b1c63997a0b838c1abd26c689c3554f5cc27cd6dc9a783b712714aa5a5f7d379 | /*
* Copyright 2013 Gunnar Kappei.
*
* 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... | Java | src/net/opengis/gml/impl/UnitOfMeasureDocumentImpl.java | moosbusch/xbLIDO | apache-2.0 | 2,494 | 75 | codeparrot/github-code |
147e1802ff5a752b0cc67beb23590dbae30d1d8c6f5594e0babc9f2b0395a616 | #include "stdafx.h"
#pragma hdrstop
#include "WeaponMounted.h"
#include "xrServer_Objects_ALife.h"
#include "camerafirsteye.h"
#include "actor.h"
#include "weaponammo.h"
#include "actoreffector.h"
#include "effectorshot.h"
#include "ai_sounds.h"
#include "level.h"
#include "xr_level_controller.h"
#include "../skelet... | C++ | XRay/xr_3da/xrGame/WeaponMounted.cpp | OLR-xray/XRay-NEW | apache-2.0 | 9,418 | 373 | codeparrot/github-code |
4334d9c1f7efe0cda9b7838d2d89e706ce94b088f2a1f6071d1457f6f09ce348 | /*
* 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 | core/src/main/java/org/apache/carbondata/core/datastore/TableSpec.java | jackylk/incubator-carbondata | apache-2.0 | 12,297 | 362 | codeparrot/github-code |
4cb9516f3f60fa66266e84b9c68e2c70dc1fa4074c0ef13b93d5940a07e644a7 | package fr.blogre.goupil;
import java.io.File;
import java.util.HashMap;
import java.util.Map;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import fr.blogre.goupil.action.ModelAndView;
/**
* Abstract implementation of renderer, with layout organisation
* @author jean-baptiste
*
*... | Java | src/fr/blogre/goupil/AbstractRenderer.java | balmeyer/GoupilMvc | apache-2.0 | 1,299 | 59 | codeparrot/github-code |
ff4d47ba74b508a700f9a7d4ed6b690dc04691c4abf7a4237cc1864996afd54d | use crate::https::{HttpsConnector, TlsClientConfigExt};
use crate::request::{Form, RequestBuilder};
use crate::service::{AppNode, AppNodes, Service, ServiceDesc, ServiceEndpoint};
use crate::service_keeper::ServiceKeeper;
use crate::watcher::{WatchStream, WatchTask};
use crate::{config::Config, service::ServiceDescEven... | Rust | src/client.rs | infrmods/xbus-rs | apache-2.0 | 15,418 | 531 | codeparrot/github-code |
67896ff83b6c621ca9f7422fbf000d9e56a9b2a9d94e101c8efb360af0cc35d8 | /*
* Copyright 2017 Gurupad Mamadapur
*
* 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 | app/src/main/java/io/github/protino/codewatch/remote/interfaces/ApiInterface.java | Protino/CodeWatch | apache-2.0 | 3,827 | 110 | codeparrot/github-code |
c688361c124716f87a8088785a623945c6ac82d262654ff86f12958848251f53 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html lang="en-GB" xml:lang="en-GB" xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8"/>
<title>Statistics of csubj:pass in UD_... | HTML | treebanks/ro_rrt/ro_rrt-dep-csubj-pass.html | UniversalDependencies/universaldependencies.github.io | apache-2.0 | 11,971 | 239 | codeparrot/github-code |
bd8e690eb41a1823163290329d97f5df20e7d9b36c837825cb98d4cb1bdc9508 | /*
* Copyright 2017 Code Above Lab 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 agr... | Java | cluster-manager/src/main/java/com/codeabovelab/dm/cluman/ui/VolumeApi.java | codeabovelab/haven-platform | apache-2.0 | 4,752 | 106 | codeparrot/github-code |
3e2c006bc55737192fceeabd06324fee5e91a02e555bf40ae68f51caa2f1a7bd | /*
* Licensed to Elasticsearch under one or more contributor
* license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright
* ownership. Elasticsearch licenses this file to you under
* the Apache License, Version 2.0 (the "License"); you may
* not use this fi... | Java | src/main/java/org/elasticsearch/indices/IndicesService.java | combinatorist/elasticsearch | apache-2.0 | 21,457 | 500 | codeparrot/github-code |
afefa3784e80b7f5c4220f86fca2e9d4858bda5ffaa54cd50c6e2c3f44b63e76 | """Support for functionality to interact with Android TV / Fire TV devices."""
from datetime import datetime
import functools
import logging
import os
from adb_shell.auth.keygen import keygen
from adb_shell.exceptions import (
AdbTimeoutError,
InvalidChecksumError,
InvalidCommandError,
InvalidResponseE... | Python | homeassistant/components/androidtv/media_player.py | tchellomello/home-assistant | apache-2.0 | 24,075 | 771 | codeparrot/github-code |
0f15c5d046c71a189b5946414ecedb46a4d20c162ff740ff5e870ee6259ee49e | /*
Copyright 2016 James Craig
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, so... | C# | src/BigBook/Reflection/TypeCacheFor.cs | JaCraig/BigBookOfDataTypes | apache-2.0 | 1,822 | 58 | codeparrot/github-code |
f54827d7a9418211fd472ada795242c5aaa54b7766c6ee5d532c723df648a7a9 | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package com.nms.go.backingbean;
import com.nms.go.model.Category;
import com.nms.go.model.Document;
import com.nms.go.service.Category... | Java | src/main/java/com/nms/go/backingbean/DocumentBean.java | nms-htc/go-web | apache-2.0 | 1,830 | 69 | codeparrot/github-code |
a59506eddee2491f73617e42b3b7191e8d0b0c2f99a777dfb058121aea367b1b | // Copyright (C) 2002-2012 Nikolaus Gebhardt
// This file is part of the "Irrlicht Engine".
// For conditions of distribution and use, see copyright notice in irrlicht.h
#ifndef __C_MESH_SCENE_NODE_H_INCLUDED__
#define __C_MESH_SCENE_NODE_H_INCLUDED__
#include "IMeshSceneNode.h"
#include "irr/asset/IMesh.h"
... | C | source/Irrlicht/CMeshSceneNode.h | buildaworldnet/IrrlichtBAW | apache-2.0 | 1,749 | 65 | codeparrot/github-code |
8c77fe9ee97a867ae02590f1c7b983b42744f33534cd78a00a883d184ffe0671 | /*
Copyright 2012-2022 Marco De Salvo
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or a... | C# | RDFSharp.Test/Model/Validation/Abstractions/Constraints/RDFXOneConstraintTest.cs | mdesalvo/RDFSharp | apache-2.0 | 53,371 | 773 | codeparrot/github-code |
9a163113985122b8675c2a2a64d29cd3342ec73d982901bda39059846520873b | package br.com.mirabilis.util.callback;
import java.lang.reflect.Method;
import java.util.ArrayList;
import br.com.mirabilis.util.callback.exception.CallbackException;
/**
* Classe callback.
* @author Rodrigo Simões Rosa
*/
public class Callback {
private Object classReflection;
private String callback;
/*... | Java | br.com.mirabilis/src/br/com/mirabilis/util/callback/Callback.java | rodrigosimoesrosa/br.com.mirabilis | apache-2.0 | 4,495 | 141 | codeparrot/github-code |
bb307b4cfd6990196f4247e49cc1d88572773a82fcdccfde59b2d68dd8ac4a9b | /**
* Module for shared data
*/
(function() {
var sharedmodule = angular.module("shared-module",[]);
sharedmodule.factory('sharedService',['$location',function($location) {
var attr = {};
attr.getToken = function() {
var token=localStorage.getItem("token");
//console... | JavaScript | src/WebApp/app/environnement/shared_module.js | DLTAStudio/xwebic | apache-2.0 | 771 | 34 | codeparrot/github-code |
f2b21cb6e8b85e9d20b6b45679332e65628a728e96c13d03fdbf820cf603280f | /**
* Copyright (c) 2005-2012 springside.org.cn
*
* Licensed under the Apache License, Version 2.0 (the "License");
*/
package com.gohuinuo.common.utils;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Collections;
import java.util.HashMap;
import java.util.Iterator;
import java.util.List... | Java | ec_pdm/src/main/java/com/gohuinuo/common/utils/Collections3.java | gto5516172/test | apache-2.0 | 6,067 | 252 | codeparrot/github-code |
906a3a0f99bfa4d5cb018720e276511f5f875b921996400e14e96af5a46922f5 | <!DOCTYPE html>
<!-- saved from url=(0050)http://getbootstrap.com/examples/jumbotron-narrow/ -->
<html lang="en"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-... | HTML | SeuDotoWebsite/sobre.html | luucasAlbuq/doto | apache-2.0 | 3,036 | 67 | codeparrot/github-code |
69463ad611fabcbc936229b5ade199c12b866cbf6c9b1710dfbb5d30862501e4 | /* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* di... | Java | modules/flowable-engine/src/main/java/org/flowable/engine/impl/delegate/invocation/ExpressionSetInvocation.java | motorina0/flowable-engine | apache-2.0 | 1,301 | 41 | codeparrot/github-code |
ea6fade702bdce47f7352083b31df1b9d9380e36d20fbf551154c4e6f372f090 | // Copyright (C) 2012-2018 Leap Motion, Inc. All rights reserved.
#include "stdafx.h"
#include "ContextSearchBm.h"
#include "Benchmark.h"
#include <algorithm>
#include <unordered_map>
Benchmark ContextSearchBm::Search(void) {
static const size_t n = 10000;
// Prime object insertion, a few tests require this
Aut... | C++ | src/benchmark/ContextSearchBm.cpp | leapmotion/autowiring | apache-2.0 | 5,407 | 222 | codeparrot/github-code |
c3fc05e7e6723b8d55a50c6b7a8ffee784bd7145df7ce4936807fa6b7df12e14 | /* ###
* IP: GHIDRA
*
* 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 writin... | Java | Ghidra/Features/Base/src/test/java/ghidra/app/plugin/core/function/editor/StorageEditorModelTest.java | NationalSecurityAgency/ghidra | apache-2.0 | 9,345 | 304 | codeparrot/github-code |
0c355fdbba0aeb093ed19faac6ba163f69f480fbdab626cac2aaee44e49d3d87 | CategoriesSchema = new SimpleSchema({
name: {
type: String,
label: 'Naam',
max: 255
},
description: {
type: String,
label: 'Omschrijving',
max: 511
},
parent: {
type: String,
max: 511,
optional: true
},
createdBy: {
... | JavaScript | models/Categories.js | jaztec/meteor-blog | apache-2.0 | 1,674 | 76 | codeparrot/github-code |
363b4739db2042d094c440ef0af50e347170fe1b2bc91e81837510a5cab37842 | var express = require('express');
var path = require('path');
var favicon = require('serve-favicon');
var logger = require('morgan');
var cookieParser = require('cookie-parser');
var bodyParser = require('body-parser');
var routes = require('./app/routes/index');
var http = require('http');
var mongoose = require('mong... | JavaScript | showobj/app.js | gregoire78/IOT | apache-2.0 | 1,676 | 70 | codeparrot/github-code |
3032ae18c2065df5a64fcddd2f19d600d964ed15a67a36e0af4f46880ee48213 | /*
* 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")... | Java | trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/share/config/UIXCookie.java | adamrduffy/trinidad-1.0.x | apache-2.0 | 11,423 | 408 | codeparrot/github-code |
29d254448e475086b3ede55db58609f128aa425ac8537a3d87b046fec8ffc934 | package org.jgroups.demo.tankwar.jgroups.demo;
import java.io.BufferedReader;
import java.io.InputStreamReader;
import org.jgroups.JChannel;
import org.jgroups.Message;
import org.jgroups.ReceiverAdapter;
import org.jgroups.View;
public class SimpleChat extends ReceiverAdapter{
JChannel channel;
private void s... | Java | jgroups/tankwar/src/test/java/org/jgroups/demo/tankwar/jgroups/demo/SimpleChat.java | jbosschina/cluster | apache-2.0 | 1,256 | 64 | codeparrot/github-code |
f6de92e1bbcb691155933f213c20bd086367a35a151f702100543ae46ff1a34a | /* Yet Another Forum.NET
* Copyright (C) 2003-2005 Bjørnar Henden
* Copyright (C) 2006-2013 Jaben Cargman
* Copyright (C) 2014-2022 Ingo Herbote
* https://www.yetanotherforum.net/
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* dis... | C# | yafsrc/YAF.Core/Services/Reputation.cs | YAFNET/YAFNET | apache-2.0 | 7,406 | 216 | codeparrot/github-code |
75c7938a73321f1089dfabb521914e7b3209ebfd8a6fe4aa5f45a5d65437ad0a | using System;
using Windows.UI.Xaml;
using Windows.UI.Xaml.Media;
namespace Telerik.Core
{
/// <summary>
/// This animation animates an element only on its Y axis.
/// </summary>
public class RadScaleYAnimation : RadAnimation
{
/// <summary>
/// Initializes a new instance of the <s... | C# | Controls/Core.UWP/Animation/Animations/ScaleYAnimation.cs | geotinc/UI-For-UWP | apache-2.0 | 4,313 | 138 | codeparrot/github-code |
50788c356b3509b6d55eb2d4ac4be0acd9dd640cbabb868c36eb2199217b2095 | package com.june.controller.weixin.imgmsg;
import java.io.PrintWriter;
import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Date;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import javax.annotation.Resource;
import org.springframework... | Java | src/main/java/com/june/controller/weixin/imgmsg/ImgmsgController.java | junehappylove/framework | apache-2.0 | 9,653 | 303 | codeparrot/github-code |
04d2261e331981e60c36e40229b066ddf5d7bea364e15509f1426fad15d3abc2 | // Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package cmd
import (
"encoding/json"
"log"
"net/http"
"os"
"path/filepath"
"runtime"
"sort"
"strings"
"time"
"github.com/fatih/color"
"github.com/spf13/cobra"
"github.com/vespa-engine/vespa/client/go/b... | GO | client/go/cmd/version.go | vespa-engine/vespa | apache-2.0 | 3,434 | 127 | codeparrot/github-code |
90c64c292db4cf0902a147b36cd8934066cfff85e948abcbe93d8854734f11c6 | # -*- coding: utf-8 -*-
# Copyright 2022 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... | Python | google/cloud/monitoring_v3/services/service_monitoring_service/transports/grpc.py | googleapis/python-monitoring | apache-2.0 | 22,884 | 525 | codeparrot/github-code |
d6ef3211e577e8ef04705293bd050843c954eac455f6a3ed8c106c8c403bfcdb | <?php
/*
UserCake (Via CupCake) Version: 2.0.2
http://usercake.com
*/
//Functions that do not interact with DB
//------------------------------------------------------------------------------
function ignore_base($entry){
global $baseURL;
return str_replace("$baseURL/application/third_party/user_cake/m... | PHP | application/third_party/user_cake/models/funcs.php | AdwayLele/CupCake | apache-2.0 | 21,214 | 814 | codeparrot/github-code |
c36da3f196bd9d6916e7c8c0c89e88ff5de56b05523484ba81390839ce49c65e | # Copyright [1999-2015] Wellcome Trust Sanger Institute and the EMBL-European Bioinformatics Institute
# Copyright [2016-2017] EMBL-European Bioinformatics Institute
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a... | Perl | modules/Bio/EnsEMBL/Analysis/Runnable/Funcgen/TileMap.pm | james-monkeyshines/ensembl-analysis | apache-2.0 | 8,348 | 316 | codeparrot/github-code |
3047bff20f4572fd9257ad6755c4b708fa53bb15924758919afce6ffce31d910 | public class Student extends Person {
@Override
public void calPrice() {
System.out.println("ค่าเช่า: " + (getbAmount()*5)+" บาท" );
}
@Override
public void doBookReturn(Book[] bR) {
super.doBookReturn(bR); //To change body of generated methods, choose Tools | Templates.
}
... | Java | Object/MyBookStoreTest/src/Student.java | frank29259/java | apache-2.0 | 907 | 31 | codeparrot/github-code |
0a3ebc9f4d5c97a3e2d5c0506bae345f0314a58b42173280c3f95fab699d6670 | #region License Dibuixos - mathematical-drawings for C# .NET/Mono OpenTK Copyright 1995-2015-2016-2017 Oscar Hernández Bañó
/*
Dibuixos - mathematical-drawings for C# .NET/Mono OpenTK
Copyright 1995-2015-2016-2017 Oscar Hernández Bañó
Apache License
Version ... | C# | OpenTK/Dibuixos/Dibuixos/Dibuixos/Common/RandomRNG.cs | bugbit/mathematical-drawings | apache-2.0 | 12,223 | 234 | codeparrot/github-code |
639d549274d4cd6fe9e019016db3fa0cae9162cc74f43e99da34f7dd748c0207 | <?php
namespace App\Models\transporte;
use Illuminate\Database\Eloquent\Model;
use Carbon\Carbon;
class Vehiculo extends Model
{
protected $table = 'vehiculos';
protected $fillable = [
'id',
'placa',
'tipo_vehiculo',
'fecha_adquisicion',
'capacidad_tanque',
'... | PHP | app/Models/transporte/Vehiculo.php | gjae/proyecto_minera | apache-2.0 | 1,101 | 52 | codeparrot/github-code |
f890473476e479887e0f1786e2719243fa4254cd275c54700dc281fba2b686fc | package com.blogspot.sontx.bottle.model.service;
import android.util.Log;
import com.blogspot.sontx.bottle.App;
import com.blogspot.sontx.bottle.model.bean.BottleUser;
import com.blogspot.sontx.bottle.model.bean.Room;
import com.blogspot.sontx.bottle.model.bean.RoomMessage;
import com.blogspot.sontx.bottle.model.serv... | Java | app/src/main/java/com/blogspot/sontx/bottle/model/service/BottleServerRoomServiceImpl.java | sontx/bottle-app | apache-2.0 | 7,024 | 185 | codeparrot/github-code |
7bfaf2b4e463565bdffa98c505f473e3306e9a56a77f1fb44c0ff3705d06ff12 | import {App, IonicApp, Events, Platform} from 'ionic-angular';
import {StatusBar} from 'ionic-native';
import {ConferenceData} from './providers/conference-data';
import {NewsletterData} from './providers/newsletter-data';
import {UserData} from './providers/user-data';
import {FacebookPage} from './pages/facebook/face... | JavaScript | app/app.js | patrioticcow/weekly | apache-2.0 | 2,821 | 96 | codeparrot/github-code |
bb6b4b69afa669c68bb6565ceeb60e625cc43822b2f6aef706e644cae26eb480 | function New-Column
{
<#
.SYNOPSIS
Creates a column object of an explicit datatype which can be used with the `Add-Table` or `Update-Table` migrations.
.DESCRIPTION
Use this function in the `Column` script block for `Add-Table`:
Add-Table 'Members' {
New-Column 'Birth... | PowerShell | Rivet/Functions/Columns/New-Column.ps1 | RivetDB/Rivet | apache-2.0 | 7,662 | 246 | codeparrot/github-code |
e2e6b5a388089753562b45d35cafa3dade22e2d29354c527f47eade870921e0a | #!/usr/bin/env python
"""
This script is mainly for running autotests on the build server, however, it
can also be used by engineers to run the tests locally on their machines.
It takes as optional parameters the path to the folder containing the test
executables (which must have names ending in _tests), and a list... | Python | tools/run_desktop_tests.py | stangls/omim | apache-2.0 | 9,109 | 241 | codeparrot/github-code |
880740551dc49d4abaa6c0835deaae31faeda42ef3f8e8936ff24a747b85d830 | /*
* Copyright 2000-2017 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/ref/DebugReflectionUtil.java | mglukhikh/intellij-community | apache-2.0 | 9,473 | 249 | codeparrot/github-code |
7aa24108eaed04225654e2aacddb20947edb08af1297a9f5a023c6a325b53e5b | #!/usr/bin/env python
#
# Copyright 2015 Airbus
# Copyright 2017 Fraunhofer Institute for Manufacturing Engineering and Automation (IPA)
#
# 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
#
# ... | Python | airbus_ssm_core/src/airbus_ssm_core/ssm_on.py | ipa-led/airbus_coop | apache-2.0 | 2,669 | 74 | codeparrot/github-code |
070ad7e810b3cb47bd07ee9f9340af5646ca4ce38e631a0f646a199efdf934cc | //
// LCIMMessageCacheSQL.h
// LeanCloud
//
// Created by Tang Tianyong on 5/12/15.
// Copyright (c) 2015 LeanCloud Inc. All rights reserved.
//
#ifndef LeanCloud_LCIMMessageCacheSQL_h
#define LeanCloud_LCIMMessageCacheSQL_h
#define LCIM_TABLE_MESSAGE @"message"
#define LCIM_FIELD_MESSAGE_ID ... | C | AVOS/Sources/Realtime/IM/MessageCache/CacheStore/LCIMMessageCacheStoreSQL.h | leancloud/objc-sdk | apache-2.0 | 6,995 | 122 | codeparrot/github-code |
b818371a8d68392561d7528efa91530fd3ac183bb1fd818317ddc0566f35351c | /*
Copyright 2017 Gravitational, Inc.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, soft... | GO | lib/client/keyagent.go | gravitational/teleport | apache-2.0 | 19,346 | 626 | codeparrot/github-code |
896e587f3522695bc2316b9fd9633af7fa5e0756b9a22be9eaf63033c79f0f11 | # DSL bits
module HttpdCookbook
module Helpers
module ModuleInfoDSL
# create big crash hash with other hashes as keys
# {:platform=>"amazon", :httpd_version=>"2.4", :module=>"rev"}=>"mod_revocator",
# {:platform=>"amazon", :httpd_version=>"2.4", :module=>"auth_form"}=>"mod_session",
# {:pl... | Ruby | libraries/info_module_packages.rb | SucalaTimotei/Apache-Wrapper-Cookbook | apache-2.0 | 22,583 | 449 | codeparrot/github-code |
50dbe3a9d6e34ec078211259c03339db2285367045fb7c5d066b4a27d6e2ce39 | /*
* 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-efs/src/main/java/com/amazonaws/services/elasticfilesystem/model/transform/DescribeTagsResultJsonUnmarshaller.java | aws/aws-sdk-java | apache-2.0 | 3,325 | 85 | codeparrot/github-code |
d4a8ff84b8e7f930a8c58e41d97c8680710e5ae442f087700e4e672aa72315e2 | //
// GameMacro.h
// pingpong
//
// Created by Thinh Tran on 1/10/16.
//
//
#include <stdio.h>
#include <iostream>
#include <memory>
/** Settings
* Define configuration for game settings
*/
#define BOX2D_PTM_RATIO 32
/** Namespace
* Define game namespace and using game namespace
*
*/
#define START_GAME... | C | Classes/GameMacro.h | nshermione/pingpongcocos2dx | apache-2.0 | 3,488 | 167 | codeparrot/github-code |
68a06f46a02fa1d0d47152d3f319a675b47e61de58dfba106237ae8077b949e3 | #!/usr/bin/env python
"""
"""
# Python 2.6 and newer support
from __future__ import (absolute_import, division,
print_function, unicode_literals)
from future.builtins import (
bytes, dict, int, list, object, range, str,
ascii, chr, hex, input, next, oct, open,
... | Python | deviceutils/action/query.py | sfinucane/deviceutils | apache-2.0 | 2,510 | 75 | codeparrot/github-code |
206367d7ca3a1efd8e2847e26a7afafda1655f7f736595246db17dc2535ac5d8 | using System;
using System.Collections;
using System.Collections.Generic;
using System.Drawing;
using Android.App;
using Android.Content.PM;
using Android.Views;
using Android.OS;
using Android.Hardware;
using Android.Graphics;
using Android.Content;
using Android.Runtime;
using Android.Widget;
using ZXing;
using An... | C# | Source/ZXing.Net.Mobile.Android/ZxingActivity.cs | syphe/ZXing.Net.Mobile | apache-2.0 | 6,740 | 216 | codeparrot/github-code |
073a025c3adad60372d96e6e61d3061359543be8bd26f1eaf843369fb40d0b23 | package com.jeeplus.weixin.fastweixin.api.entity;
import com.alibaba.fastjson.annotation.JSONField;
/**
* 用户增减数据
*
* @author peiyu
*/
public class UserSummary extends BaseDataCube {
/**
* 用户的渠道,数值代表的含义如下:
* 0代表其他 30代表扫二维码 17代表名片分享 35代表搜号码(即微信添加朋友页的搜索) 39代表查询微信公众帐号 43代表图文页右上角菜单
*/
@JSONFiel... | Java | jeeplus-weixin/src/main/java/com/jeeplus/weixin/fastweixin/api/entity/UserSummary.java | yuzhiping/jeeplus | apache-2.0 | 1,090 | 53 | codeparrot/github-code |
9dd80583cbc6a0b29210b05cf664f3b92026c27c954f19cfdefb1a62e1c408c5 | /*
* 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-clouddirectory/src/main/java/com/amazonaws/services/clouddirectory/model/transform/ObjectIdentifierAndLinkNameTupleJsonUnmarshaller.java | jentfoo/aws-sdk-java | apache-2.0 | 3,225 | 79 | codeparrot/github-code |
d627d76e878c4180d06d811dbedd906a37d07d94d5b7e86577937389e9400fd7 | /*
* 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-elasticache/src/main/java/com/amazonaws/services/elasticache/model/transform/ResetCacheParameterGroupRequestMarshaller.java | jentfoo/aws-sdk-java | apache-2.0 | 3,737 | 77 | codeparrot/github-code |
c8d4e43fbfb238d9c0420c35952f5c03eab7d2641f7110c4035600a0f94321a5 | /*
* Copyright 2017 Red Hat, Inc. and/or 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 a... | Java | jbpm-wb-kie-server/jbpm-wb-kie-server-backend/src/main/java/org/jbpm/workbench/ks/integration/KieServerIntegration.java | etirelli/jbpm-console-ng | apache-2.0 | 21,091 | 422 | codeparrot/github-code |
907f279f2cfaae6dceab9be38d34d46e2289c752cfd4b8e986af924ec8c1d366 | /**
* Copyright 2012 John Ericksen
*
* 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 | src/main/java/org/example/androiddraw/Selection.java | johncarl81/androiddraw | apache-2.0 | 2,582 | 71 | codeparrot/github-code |
5e924e0f39911d82b8d46b3713e3a58dc81a43278bba391dc7e3cf68ee7e3478 | /*************************************************************************
jquery.fancytree.filter.js
Table extension for jquery.fancytree.js.
Copyright (c) 2012, Martin Wendt (http://wwWendt.de)
Dual licensed under the MIT or GPL Version 2 licenses.
http://code.google.com/p/fancytree/wiki/LicenseInfo
A current... | JavaScript | modules/ead/public/fancytree/jquery.fancytree.filter.js | delving/culture-hub | apache-2.0 | 3,804 | 160 | codeparrot/github-code |
99abd1e45eeefe5d193817da5d3099fc6f03eea18ace0d228cd1b450c084c457 | /*
* Copyright (C) 2009 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | Java | app/src/main/java/se/tmeit/app/ui/cropPhoto/RotateBitmap.java | wsv-accidis/tmeit-android | apache-2.0 | 2,290 | 98 | codeparrot/github-code |
201cce69e2bf20059401674dfefa319623e189e3fa0604f2ec4de0217dcbfea7 | import path from 'path';
import webpack from 'webpack';
import merge from 'lodash.merge';
import AssetsPlugin from 'assets-webpack-plugin';
const DEBUG = !process.argv.includes('--release');
const VERBOSE = process.argv.includes('--verbose');
const WATCH = global.WATCH === undefined ? false : global.WATCH;
const AUTOP... | JavaScript | tools/webpack.config.js | luigiplr/udormio-react | apache-2.0 | 5,127 | 203 | codeparrot/github-code |
782c5176908e94aaed3ff01397e27b611164f52712ed76948ee10702f90c55b4 | # Copyright 2014 Rackspace 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 ... | Python | magnum/conductor/template_definition.py | eshijia/magnum | apache-2.0 | 21,199 | 572 | codeparrot/github-code |
b30c4ca97aef260f88e324883b32931403a7cec13991596c9c27900c0383b269 | /*******************************************ÉêÃ÷***************************************
±¾Ç¶Èëʽ²Ù×÷ϵͳδ¾ÊÚȨ£¬½ûÖ¹Ó¦ÓÃÓÚÈκÎÉÌÒµÓÃ;
°æÈ¨ËùÓУ¬ÇÖȨ±Ø¾¿
**************************************************************************************/
/*----------------------------------------------------------------------... | C | FS/FATFS/ff.h | tongjinlv/trtos | apache-2.0 | 30,243 | 603 | codeparrot/github-code |
bc1c3d8f606f4985f38d4a17a25c6c8753866483676bf85a5c14ef491a8bbe2d | /*
* @(#)Transmitter.java 1.12 98/06/25 SMI
*
* Author: Tom Corson
*
* Copyright (c) 1998 Sun Microsystems, Inc. All Rights Reserved.
*
* Sun grants you ("Licensee") a non-exclusive, royalty free, license
* to use, modify and redistribute this software in source and binary
* code form, provided that i) this c... | Java | javacomm20-win32/commapi/samples/BlackBox/Transmitter.java | aiyouweiya/HTDaYaoFang | apache-2.0 | 5,989 | 292 | codeparrot/github-code |
60b6eb4ec642e52d2a13deb815ab135497ff86c6dc58560d41d63d8b3862275d | using System;
using System.Drawing;
namespace MO.Core.Content.Picture.Quantizers.HSB
{
/// <summary>
/// Stores all the informations about single color only once, to be used later.
/// </summary>
internal struct SColorInfo
{
/// <summary>
/// The original color.
/// </summa... | C# | Tools/1 - Common/MoCore/Content/Picture/Quantizers/HSB/SColorInfo.cs | favedit/MoCross | apache-2.0 | 2,180 | 79 | codeparrot/github-code |
591a6edfbcce6b6e82d22ef02946b7687c1125b7f590161ad6864594a27ad78d | /* ioapi.c -- IO base function header for compress/uncompress .zip
files using zlib + zip or unzip API
Version 1.01e, February 12th, 2005
Copyright (C) 1998-2005 Gilles Vollant
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "zlib.h"
#include "ioapi.h"
/* I've fou... | C | src/core/unzip/ioapi.c | OlehKulykov/re-sdk | apache-2.0 | 4,079 | 192 | codeparrot/github-code |
d31574001350efec58ca6172f0b4ae6fd363255da32bfe7f9d9bfa527b0a5548 | /*
ChibiOS/RT - Copyright (C) 2006-2014 Giovanni Di Sirio
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 req... | C | os/hal/boards/MCHCK_K20/board.h | roboknight/chibios-lpc43xx | apache-2.0 | 1,078 | 43 | codeparrot/github-code |
db4eff48d073b60f1060af06e05a44e168099ed57c333378e524c9e3ad52a763 | /*
* Copyright 2010 JBoss Inc
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to i... | Java | guvnor-asset-mgmt/guvnor-asset-mgmt-client/src/main/java/org/guvnor/asset/management/client/i18n/Constants.java | yurloc/guvnor | apache-2.0 | 5,842 | 220 | codeparrot/github-code |
f8e1288c59a0a2acd2f2872de85b25405ffb1588120f73ecee7a32d84363ffb8 | var mongoose = require('./dbHelper.js').mongoose,
util = require('util'),
Q = require('q'),
Schema = mongoose.Schema;
/**
* Schema
*/
function BaseSchema() {
Schema.apply(this, arguments);
this.add({
createTime: {
type: Date,
default: Date.now
},
... | JavaScript | modules/modules.js | musishui/WorkHoursManage | apache-2.0 | 3,638 | 174 | codeparrot/github-code |
3a8c7c6da54aabe32ef17d15051bf612f7fd1e4a838955d1beaa55e4083ca51b | /*
* Copyright (C) 2015 Stratio (http://stratio.com)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | Scala | core/src/main/scala/org/apache/spark/sql/crossdata/catalyst/parser/XDDdlParser.scala | pmadrigal/Crossdata | apache-2.0 | 11,349 | 327 | codeparrot/github-code |
395424ec7b98111a2f23c675397b1151b30b71e849ef5229af0275682760205a | /*
* 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-frauddetector/src/main/java/com/amazonaws/services/frauddetector/model/GetDetectorVersionRequest.java | aws/aws-sdk-java | apache-2.0 | 4,984 | 178 | codeparrot/github-code |
bac6da53fb2c4b1486a94d0e035810359745db746c8a90be8e6c5e22cc118ec0 | /*
* Copyright 2017-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
* the License. A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "licen... | Java | aws-java-sdk-cognitoidp/src/main/java/com/amazonaws/services/cognitoidp/model/GetIdentityProviderByIdentifierRequest.java | aws/aws-sdk-java | apache-2.0 | 5,018 | 178 | codeparrot/github-code |
2516259e3bc120a2cc0b901d3dd9b37845cdc075cd629fbeb0bba6371403c7d0 | # -*- coding:utf-8-*-
from PyQt4.QtGui import *
from PyQt4.QtCore import *
from time import *
import sys
class Windows(QDialog):
def __init__(self, parent=None):
super(Windows, self).__init__(parent)
self.startButton = QPushButton("Start")
self.stopButton = QPushButton("Stop")
... | Python | src/dev/case/timethread.py | ptphp/PyLib | apache-2.0 | 2,356 | 89 | codeparrot/github-code |
bc18f631130d0c520824e201279d33f244adab931204cb0bce9c40be6363b84b | package com.fu.group10.capstone.apps.teachermobileapp.dialog;
import android.app.Activity;
import android.app.AlertDialog;
import android.app.Dialog;
import android.content.DialogInterface;
import android.content.Intent;
import android.os.Bundle;
import android.support.v4.app.DialogFragment;
import android.vi... | Java | App/TeacherMobileApp/app/src/main/java/com/fu/group10/capstone/apps/teachermobileapp/dialog/RemoveReportDialog.java | tranquang9a1/ECRM | apache-2.0 | 2,881 | 87 | codeparrot/github-code |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.