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 |
|---|---|---|---|---|---|---|---|---|
89c571bb7cfb0c11d2632651df5789400db41f9aec4fba516fc3fe6ab3947b93 | /*
Copyright 2019 The Kubernetes 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 agreed to in writing, ... | GO | kinder/ci/tools/verify-workflow.go | kubernetes/kubeadm | apache-2.0 | 1,195 | 44 | codeparrot/github-code |
afbc57d17d7e091af325c446286f926f459a982ad62ed90b77384981591c3bf2 | use crate::backend::{Backend, SupportsOnConflictClause, SupportsOnConflictTargetDecorations};
use crate::expression::Expression;
use crate::query_builder::upsert::on_conflict_target::{ConflictTarget, NoConflictTarget};
use crate::query_builder::where_clause::{NoWhereClause, WhereAnd, WhereClause};
use crate::query_buil... | Rust | diesel/src/query_builder/upsert/on_conflict_target_decorations.rs | sgrif/diesel | apache-2.0 | 2,286 | 72 | codeparrot/github-code |
6dc61b8951360bddbc8e5451db4e1df6e014d20b1489b3f0b4d30226cea761e8 | package com.mrprona.dota2assitant.hero.fragment;
import android.annotation.TargetApi;
import android.app.Activity;
import android.content.Context;
import android.media.MediaPlayer;
import android.os.Build;
import android.os.Bundle;
import android.os.Environment;
import android.support.annotation.Nullable;
import andro... | Java | app/src/main/java/com/mrprona/dota2assitant/hero/fragment/HeroResponses.java | mrprona92/SecretBrand | apache-2.0 | 9,089 | 253 | codeparrot/github-code |
7625d4a154baa2cba160292ee60f8986d3b0111b2be3c0797ab4d64974d699e1 | /*
* 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
* distribut... | Java | sql/src/main/java/edu/stanford/futuredata/macrobase/sql/tree/NodeLocation.java | stanford-futuredata/macrobase | apache-2.0 | 1,011 | 34 | codeparrot/github-code |
d3c27b82e695bb5713067cc7afa28787a9b8b9dc06d5c24f4b57e1c0b73fb8cd | /*
Copyright 2015 Brajesh Kumar
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
d... | Java | app/src/main/java/com/kumar/brajesh/couriertracker/network/VolleyFactory.java | bristy/CourierTracking | apache-2.0 | 2,057 | 66 | codeparrot/github-code |
a364f6a0e2f94dc2c0ac42f373a148fc5b2dc68a579234a92255d814aef03356 | /*
* Copyright (c) 2017 Xavier Defago (Tokyo Institute 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 re... | Scala | src/main/scala/ocelot/topology/ArbitraryTopology.scala | xdefago/ocelot | apache-2.0 | 1,402 | 43 | codeparrot/github-code |
09dc8cc14d116320253b0832c1354aeef96c8b267e62d7af51826268c891bc0d | package com.mparticle.sdk.model.eventprocessing;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.mparticle.sdk.model.Message;
import com.mparticle.sdk.model.eventprocessing.consent.ConsentState;
import com.mparticle.sdk.model.eventprocessing.notification.SystemNotification;
import com.mparticle.sdk.mo... | Java | sdk/src/main/java/com/mparticle/sdk/model/eventprocessing/EventProcessingRequest.java | mParticle/mparticle-sdk-java | apache-2.0 | 7,253 | 285 | codeparrot/github-code |
de724fc8339f9408b15f3db1b347ff358183ce84758f95566f4aefe1157caf5d | /**
* 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... | C++ | weex_core/Source/core/render/manager/render_manager.cpp | cxfeng1/incubator-weex | apache-2.0 | 7,002 | 215 | codeparrot/github-code |
48151befe10c089bc80f1e36f7ec2f71fddb1bb1e1e8f57038a27cfd3a0174b9 | /**
* This file is part of the Iritgo/Aktario Framework.
*
* Copyright (C) 2005-2011 Iritgo Technologies.
* Copyright (C) 2003-2005 BueroByte GbR.
*
* Iritgo 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 ... | Java | aktario-framework/src/main/java/de/iritgo/aktario/framework/base/command/EditIObject.java | iritgo/iritgo-aktario | apache-2.0 | 2,433 | 90 | codeparrot/github-code |
8c5230dec7f65bd4cc8be11b957662da385e468a2002c92d894a2df8d7ad9f02 | package tcking.github.com.giraffeplayer.example;
import android.content.res.Configuration;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.text.format.Formatter;
import android.view.View;
import android.widget.EditText;
import android.widget.TextView;
import android.widget.Toa... | Java | app/src/main/java/tcking/github/com/giraffeplayer/example/MainActivity.java | tcking/GiraffePlayer | apache-2.0 | 7,420 | 158 | codeparrot/github-code |
831a68e4ddbd5e8e00df203deeb714eb571c35a585609fb1bffe9603c8578527 | /*
* Copyright 2000-2009 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... | Java | plugins/groovy/src/org/jetbrains/plugins/groovy/refactoring/GroovyNamesUtil.java | jexp/idea2 | apache-2.0 | 3,316 | 99 | codeparrot/github-code |
5ecdd96bd32ba3ec3e6f0dbfb55253aa60d54caa183b59c1fcb98324ab27e103 | <?php
/**
* Print account settings page.
* @path /engine/core/account/print_settings.php
*
* @name Nodes Studio @version 2.0.1.9
* @author Aleksandr Vorkunov <developing@nodes-tech.ru>
* @license http://www.apache.org/licenses/LICENSE-2.0
*
* @var $site->title - Page title.
* @var $site->content - Page HTML da... | PHP | engine/core/account/print_settings.php | restinpc/Nodes-Studio | apache-2.0 | 8,984 | 156 | codeparrot/github-code |
69d99ba0d65ae28b20e0ce1123ca9aa5ed2d9a692f46afe24c6b1d45ff60f36a | /*
* realpath() Win32 implementation
* By Nach M. S.
* Copyright (C) September 8, 2005
* I am placing this in the public domain for anyone to use or modify
*/
// include header
#include <serverX.h>
char *realpath(const char *path, char resolved_path[MAX_PATH])
{
char *return_path = 0;
if (path) //Else EINV... | C | src/lib/realpath.c | BytesClub/serverX | apache-2.0 | 3,130 | 132 | codeparrot/github-code |
1a5e49262ecaab798c6e0b360e50e99cca7b61a4701aa8758945f5450286e7a7 | /* 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
* distribut... | Java | modules/flowable-engine/src/main/java/org/flowable/engine/impl/cmd/SubmitStartFormCmd.java | paulstapleton/flowable-engine | apache-2.0 | 3,999 | 87 | codeparrot/github-code |
34a0019a6e8d857b42d1c882de6a45ea695fb2e959d0e5c09b83e32e5bad6e70 | //===--- TypeSubstCloner.h - Clones code and substitutes types --*- C++ -*-===//
//
// This source file is part of the Swift.org open source project
//
// Copyright (c) 2014 - 2017 Apple Inc. and the Swift project authors
// Licensed under Apache License v2.0 with Runtime Library Exception
//
// See https://swift.org/L... | C | include/swift/SIL/TypeSubstCloner.h | zisko/swift | apache-2.0 | 11,669 | 306 | codeparrot/github-code |
e4f8fb72b932714ee19bac8b315f0cc8695f80e2ecb226fbc426f1fbace35110 | /*
* Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" fil... | C | aws-cpp-sdk-support/include/aws/support/model/DescribeServicesResult.h | ambasta/aws-sdk-cpp | apache-2.0 | 2,644 | 89 | codeparrot/github-code |
a0b2eb1c270a8d35913bb6391968871a4287a0355650a2bc6fc2484a1921656b | /*
* 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 mx.edu.uam.practica3.aparatos;
/**
*
* @author invited
*/
public class Television {
private String marca;
pr... | Java | Practica3/ferston/javaApp/src/mx/edu/uam/practica3/aparatos/Television.java | JavaUAM2016/PracticasOCA | apache-2.0 | 1,423 | 76 | codeparrot/github-code |
bcfffc5242fb05bc497689789db4445242fffb15e2cd02db1010a4bd810d796e | using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Text;
using JetBrains.Annotations;
using Archichect.Markers;
using Archichect.Matching;
using Archichect.PathMatching;
using Archichect.Rendering.TextWriting;
using Archichect.Transforming.Violatio... | C# | src/Archichect/Program.cs | hmmueller/Archichect | apache-2.0 | 96,077 | 1,449 | codeparrot/github-code |
b149a20921ae7c422d991bea58c66b470576d79c5d26c90149c75bc1127670b8 | // char_traits.hpp
// Copyright (c) 2007 Ben Hanson (http://www.benhanson.net/)
//
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file licence_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
#ifndef BOOST_LEXER_CHAR_TRAITS_H
#define BOOST_LEXER_CHAR_TRAITS_H
// Make... | C++ | windows/include/boost/spirit/home/support/detail/lexer/char_traits.hpp | jaredhoberock/gotham | apache-2.0 | 1,025 | 55 | codeparrot/github-code |
302c3d55317e01275ce079cc656f26ae2fc5682a6d537808d294ced1beab9fae | package org.docksidestage.compatible10x.dbflute.whitebox.runtime;
import java.util.ArrayList;
import java.util.List;
import org.dbflute.bhv.core.BehaviorCommandMeta;
import org.dbflute.hook.CallbackContext;
import org.dbflute.hook.SqlLogHandler;
import org.dbflute.hook.SqlLogInfo;
import org.dbflute.hook.SqlStringFil... | Java | src/test/java/org/docksidestage/compatible10x/dbflute/whitebox/runtime/WxInvokePathBasicTest.java | dbflute-test/dbflute-test-option-compatible10x | apache-2.0 | 8,028 | 224 | codeparrot/github-code |
c9221fa20c6ac7d0097eadfa913337296e56dd1e2613cadb49ffc89a1db2f3b6 | package org.genericsystem.remote;
import org.genericsystem.api.core.exceptions.AliveConstraintViolationException;
import org.genericsystem.api.core.exceptions.ReferentialIntegrityConstraintViolationException;
import org.genericsystem.common.AbstractCache;
import org.genericsystem.common.Generic;
import org.genericsyst... | Java | gs-kernel/src/test/java/org/genericsystem/remote/RemoveOneCacheTest.java | genericsystem/genericsystem2015 | apache-2.0 | 6,094 | 183 | codeparrot/github-code |
d0a8e55dbe5bcaa7df2aaeb488b84f2ad8681d16aa7e20d1ef3269d27c912e34 | package ca.intelliware.ihtsdo.mlds.security.ihtsdo;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
/**
* Bean to wrap json response
* {"perms":[{"app":"Release","role":"Manager","member":"UK"}]}
*/
@JsonIgnoreProperties(ignoreUnknown=true)
public class CentralAuthUserPermission {
String app;
Strin... | Java | src/main/java/ca/intelliware/ihtsdo/mlds/security/ihtsdo/CentralAuthUserPermission.java | IHTSDO/MLDS | apache-2.0 | 859 | 43 | codeparrot/github-code |
0fee3148e6a0b6a1d9439de8740cd276c363e6bafc63445b08f9870b08c45fb7 | #ifndef MERGCBUSTHROTTLE_H
#define MERGCBUSTHROTTLE_H
#include "MergCBUS.h"
#include "Message.h"
#include "ThrottleInfo.h"
#define NUM_SESSIONS 4
class MergCBUSThrottle
{
public:
MergCBUSThrottle(MergCBUS *cbus);
virtual ~MergCBUSThrottle();
bool getSession(uint16_t loco);
bool ... | C | MergCBUSThrottle.h | amaurial/mergCanBus | apache-2.0 | 1,200 | 47 | codeparrot/github-code |
8e3f8d424ab67a395675dd656d6278cb67a45770f252769837145d1ef35a5f1e | package pl.zankowski.iextrading4j.client.socket.manager;
import com.fasterxml.jackson.core.type.TypeReference;
public class SocketRequestBuilder<R> implements ISocketParamRequestBuilder<R>, ISocketPathRequestBuilder<R>,
ISocketResponseTypeRequestBuilder<R> {
private TypeReference<R> responseType;
pri... | Java | iextrading4j-client/src/main/java/pl/zankowski/iextrading4j/client/socket/manager/SocketRequestBuilder.java | WojciechZankowski/iextrading4j | apache-2.0 | 1,069 | 41 | codeparrot/github-code |
18f9920a6530a7a1de80aa7809fa2526fa051d9bff0091183b24297a1e0141e2 | package com.in28minutes.example.layering.business.impl.client;
import java.math.BigDecimal;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.in28minutes.example.layering.busi... | Java | multi-module-maven-project-2/business/impl/src/main/java/com/in28minutes/example/layering/business/impl/client/ClientBOImpl.java | jamalgithub/workdev | apache-2.0 | 3,507 | 111 | codeparrot/github-code |
193b116d6f6cf0efe77ed9cf8390556dde05ec1a40764f2d1881bca79a19d729 | // Copyright 2015 Google Inc. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable... | GO | src/app/backend/resource/event/common.go | vin/dashboard | apache-2.0 | 6,556 | 215 | codeparrot/github-code |
ded46c6a3055a07d89ddd24b20df5654fb2d2aea6ee0c18176f0967c6d1ede60 | // Copyright 2019 Daniel Akiva
// 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, ... | GO | schema_support.go | dakiva/dbx | apache-2.0 | 10,887 | 326 | codeparrot/github-code |
a8051f724fe29649dac2660001103adcc96bc4a85f86a1f3224b1506f2292b89 | /**
* 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... | JavaScript | ambari-web/app/models/service_config.js | telefonicaid/fiware-cosmos-ambari | apache-2.0 | 23,209 | 637 | codeparrot/github-code |
975d33395918e9bbed80fabed0691f6d96797d33ba2085b1adc4400777b5e2a0 | // Copyright 2014 CloudFounders NV
//
// 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... | JavaScript | webapps/frontend/app/viewmodels/shell.js | sql-analytics/openvstorage | apache-2.0 | 7,497 | 149 | codeparrot/github-code |
7a03173503093751166eee4b809cdcd67b497230b6f1f7e52a1eb25c95683376 | #include "c4d_basetag.h"
#include "c4d_general.h"
#include "c4d_objectdata.h"
#include "c4d_thread.h"
#include "c4d_tools.h"
// Includes from cinema4dsdk
#include "c4d_symbols.h"
#include "main.h"
// Local resources
#include "oloftedmesh.h"
/**A unique plugin ID. You must obtain this from http://www.plugincafe.com. ... | C++ | source/object/objectdata_loftedmesh.cpp | PluginCafe/cinema4d_cpp_sdk | apache-2.0 | 20,984 | 544 | codeparrot/github-code |
c0d2ce1a04a15faea6030db3aa1bc05d8077d808ea17173a850267cb8fb1c2c4 | $(window).scroll(function() {
var scrollTop = $(window).scrollTop();
if (scrollTop < 6)
scrollTop = 6;
if (scrollTop <= 200) {
$('.herotext1, .herotext2, h4').css({
'opacity': 1 - scrollTop / 200,
});
}
});
$(function() {
if (screen.width > 900) {
$('.aboutmelink, .ghost-button-fu... | JavaScript | src/js/main.js | squaredatta/squaredatta.github.io | apache-2.0 | 2,227 | 75 | codeparrot/github-code |
692ace116a40c4c3c23bc605e2eb0527edf51051d81ee5ebd13239e87f73345f | MODx.grid.SettingsGrid = function(config) {
config = config || {};
this.exp = new Ext.grid.RowExpander({
tpl : new Ext.Template(
'<p class="desc">{description_trans}</p>'
)
});
if (!config.tbar) {
config.tbar = [{
text: _('setting_create')
,sc... | JavaScript | manager/assets/modext/widgets/core/modx.grid.settings.js | rustyhutchison/rustyhutchison.github.io | apache-2.0 | 22,100 | 645 | codeparrot/github-code |
4b53071cc369d2260626e721c5a677d823881125741e085a631f43ad0314427f | <!DOCTYPE html >
<html>
<head>
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
<title>ScalaTest 3.0.7 - org.scalatest.matchers.MatcherFactory3.OrStartWithWord</tit... | HTML | public/scaladoc/3.0.7/org/scalatest/matchers/MatcherFactory3$OrStartWithWord.html | scalatest/scalatest-website | apache-2.0 | 46,464 | 776 | codeparrot/github-code |
67578dee6f7f125d67517cbaf84ede1173c351e9fa22559ba4c9fd0cade65f02 | // @@@ START COPYRIGHT @@@
//
// 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... | Java | core/sqf/src/seatrans/tm/hbasetmlib2/src/main/java/org/trafodion/dtm/TrafInfo.java | rlugojr/incubator-trafodion | apache-2.0 | 7,744 | 192 | codeparrot/github-code |
d8935b2351246782eb4878a4cab691f41311a0ce764a21a00dfdb937004054aa | import time
from luma.core import cmdline, error
from luma.core.interface.serial import i2c, spi
from luma.core.render import canvas
from luma.oled.device import ssd1306, ssd1322, ssd1325, ssd1331, sh1106
from PIL import ImageFont
import timers
class ProgressBar(object):
__progress_padding = 2
__progress_heigh... | Python | mopidy_raspiradio/gui.py | bdutro/mopidy-raspiradio | apache-2.0 | 6,429 | 192 | codeparrot/github-code |
c990669f8ec1fbc3750770d7c6c5dfc333cf0a85d7e4d47ca23c14ebc3b04d2b | /*
* Copyright (c) 2021-2022 VMware, 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.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
... | Java | reactor-netty-http/src/main/java/reactor/netty/http/client/Http2Pool.java | reactor/reactor-netty | apache-2.0 | 22,377 | 761 | codeparrot/github-code |
5014f983ec615126596688e9495b881025896f61f41358f6aca23a17bfa61841 | # -*- coding: utf-8 -*-
import asyncio
import logging
from alamo_scheduler.conf import settings
from pip import get_installed_distributions
from aiohttp.client import ClientSession
from aiohttp.web import Application, Response, json_response
logger = logging.getLogger(__name__)
__all__ = ['ClientSession', 'json_res... | Python | alamo_scheduler/aioweb.py | RulersOfAsgard/ALAMO-scheduler | apache-2.0 | 3,647 | 108 | codeparrot/github-code |
8d252adeaef144831a105ad6a8a0523e03c2439c8d8553dd50329f24d6b89003 | #
# Copyright 2018 Analytics Zoo 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 agreed to... | Python | pyzoo/zoo/examples/qaranker/qa_ranker.py | intel-analytics/analytics-zoo | apache-2.0 | 3,792 | 83 | codeparrot/github-code |
c20503f70d07a85019b17cf0eadbc58c35ca94878e27aedb60742a7e64948ebc | /*
* Copyright 2011 Hui Wen Han, 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 agre... | Scala | src/test/scala/me/huiwen/prefz/ConfigValidationSpec.scala | huiwenhan/PrefStore | apache-2.0 | 1,288 | 43 | codeparrot/github-code |
30b1dfcfe2337d2c240056724e4d9d4a92e2b9b44cab56a6a68bc45e3b97b1ba | /*
* Copyright 1999-2015 dangdang.com.
* <p>
* 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 | elastic-jobx-core/src/test/java/com/dangdang/ddframe/job/plugin/job/type/dataflow/sequence/streaming/AbstractStreamingSequenceDataFlowElasticJobTest.java | artoderk/elastic-jobx | apache-2.0 | 3,607 | 76 | codeparrot/github-code |
619391b9e70ddf03a099678084d6ba39e22453221baad9bd2047880679ce9bc3 | <!DOCTYPE html>
<html>
<head>
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<meta http-equiv=Content-Type content="text/html;charset=utf-8">
<meta property="wb:webmaster" content="e635a420782119b7" />
<meta name="keywords" content="可穿戴,可穿戴设备,百度可穿戴设备,百度可穿戴,智能设备,智能可穿戴设备,超智能设备,百度智能设备,便携设备,便携智能设备,百度便携设备,... | HTML | store.baidu.com/cache/html/2345.html | jiangerji/my-utils | apache-2.0 | 16,902 | 393 | codeparrot/github-code |
ed3aba678d62903aa5202011d9f48f0a415a62b6d7f92491e0916437bceb7af4 | package org.marketcetera.core.position.impl;
import org.apache.commons.lang.builder.CompareToBuilder;
import org.marketcetera.trade.ConvertibleBond;
import org.marketcetera.util.misc.ClassVersion;
/* $License$ */
/**
* Compares positions of <code>ConvertibleBond</code> instruments.
*
* @version $Id$
* @since $Re... | Java | trunk/core/src/main/java/org/marketcetera/core/position/impl/ConvertibleBondPositionKeyComparator.java | nagyist/marketcetera | apache-2.0 | 1,221 | 45 | codeparrot/github-code |
f77359a2a475e22e92312df6cc3541a000caf7e499e5497bba2d5ddf49208821 | package com.sap.csr.odata;
import java.io.InputStream;
import java.util.ArrayList;
import java.util.List;
import org.apache.olingo.odata2.api.edm.EdmSimpleTypeKind;
import org.apache.olingo.odata2.api.edm.provider.ComplexType;
import org.apache.olingo.odata2.api.edm.provider.EntityType;
import org.apache.oli... | Java | src/main/java/com/sap/csr/odata/CSRProcessingExtension.java | luckyliwen/projectMng | apache-2.0 | 2,260 | 70 | codeparrot/github-code |
3d54c07de1e945e84bf6593c794df0a8b160a9963bc9247f1f7d905e24983cac | /*
* 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-backup/src/main/java/com/amazonaws/services/backup/model/transform/BackupSelectionJsonUnmarshaller.java | jentfoo/aws-sdk-java | apache-2.0 | 3,533 | 87 | codeparrot/github-code |
a4fdb0279420d786adee9ad97631f03764a5f6da1223ca0a77edeef5670e6bdf | /*
* 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-kms/src/main/java/com/amazonaws/services/kms/model/transform/DeleteAliasRequestMarshaller.java | mhurne/aws-sdk-java | apache-2.0 | 2,903 | 86 | codeparrot/github-code |
1e8d273a7f42d21881856339aebb2c3d4a02f37b84f988cbad07de21524737b5 | #![feature(test)]
#![allow(unused_imports)]
extern crate test;
#[macro_use(s)]
extern crate ndarray;
use ndarray::{
Array,
Axis,
Ix,
Array1,
Array2,
};
use ndarray::{arr0, arr1, arr2};
use test::black_box;
#[bench]
fn iter_sum_1d_regular(bench: &mut test::Bencher)
{
let a = Array::<i32, _>::... | Rust | benches/bench1.rs | SuperFluffy/rust-ndarray | apache-2.0 | 15,850 | 750 | codeparrot/github-code |
f8236c7133c964b06f17a0cd82f4a063d8ba3820b3615fcc9642a3280adba490 | package se.magnulund.dev.android.silencetimer.services;
import android.app.IntentService;
import android.content.Context;
import android.content.Intent;
import android.media.AudioManager;
import android.os.Handler;
import android.widget.Toast;
import se.magnulund.dev.android.silencetimer.R;
import se.magnulund.dev.an... | Java | SilenceTimer/silencetimer/src/main/java/se/magnulund/dev/android/silencetimer/services/RingerTimerIntentService.java | guzno/SilenceTimer | apache-2.0 | 5,805 | 147 | codeparrot/github-code |
f01943db0c2c951ead7f8f8722b9f222309799f189d8cb6dc6a9068734de4857 | /*
* 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 | flink-runtime/src/test/java/org/apache/flink/runtime/executiongraph/FinalizeOnMasterTest.java | ueshin/apache-flink | apache-2.0 | 3,516 | 98 | codeparrot/github-code |
0216dc00821696b6ae1bdb69ecdbd66d50aff4c0148c204238f3f28baa9f3361 | <html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<title>Role Space</title>
<style type="text/css">
@import "/dojo/resources/dojo.css";
</style>
</head>
<body class="soria">
<script type="text/javascript" src="/dojo/dojo.js.uncompressed.js"
djConfig="isDebug: true, d... | HTML | ple/role/state.html | rwth-acis/ROLE-SDK | apache-2.0 | 2,531 | 74 | codeparrot/github-code |
e28a63a217673523caa34ef0f7af3378912a19240b3b0d57a9d26ef56bc844d2 | import { async, TestBed } from '@angular/core/testing';
import { IonicModule, Platform } from 'ionic-angular';
import { StatusBar } from '@ionic-native/status-bar';
import { SplashScreen } from '@ionic-native/splash-screen';
import { MyApp } from './app.component';
import {
PlatformMock,
StatusBarMock,
SplashSc... | TypeScript | pubsub/src/app/app.component.spec.ts | masayang/pubnub_ionic | apache-2.0 | 1,020 | 40 | codeparrot/github-code |
32d873543a781ba46b6119bedc0690c531017d974b391b0481f9ec62864639c0 | import sys
import os
import socket
from optparse import make_option
from urlparse import urlparse
from django.conf import settings
from django.core.management.base import BaseCommand
from django_nose.management.commands.test import Command
from django_webdriver.message import Message
SETTINGS = getattr(settings, "... | Python | django_webdriver/management/commands/test.py | aphentik/django-webdriver | apache-2.0 | 3,072 | 81 | codeparrot/github-code |
3c3bcd0d0118d19b901264775c4fce35a06496ce503e5b94e17465296bb43016 | /*
* Copyright (c) 2015,robinjim(robinjim@126.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 applicab... | Java | core/src/main/java/com/robin/core/convert/util/TimestampConverter.java | robinhood-jim/JavaFrame | apache-2.0 | 2,254 | 70 | codeparrot/github-code |
12fd501fb3b3c06dbfa19f318fc3454a8137c1cc27f3ca7aa8c91694016326d4 | // 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.
package com.jetbrains.python.inspections;
import com.intellij.codeInspection.LocalInspectionToolSession;
import com.intellij.codeInspection.ProblemsHolder;
import com.intellij.op... | Java | python/src/com/jetbrains/python/inspections/PyNoneFunctionAssignmentInspection.java | leafclick/intellij-community | apache-2.0 | 3,211 | 81 | codeparrot/github-code |
fb0dd120ae40cf35ccf18f0cccd00a02f03e2da6c4a6e1d44a7f33cfa4cd268f | /*
* (c) Copyright 2018 Palantir Technologies 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 ... | Java | lock-api/src/main/java/com/palantir/lock/ForwardingRemoteLockService.java | EvilMcJerkface/atlasdb | apache-2.0 | 2,139 | 70 | codeparrot/github-code |
f0532707b82fba78b6b6917665ce3d753385b9be2086456c686e3cecc73050a3 | """Support for the Torque OBD application."""
import logging
import re
import voluptuous as vol
from homeassistant.core import callback
from homeassistant.components.http import HomeAssistantView
from homeassistant.components.sensor import PLATFORM_SCHEMA
from homeassistant.const import CONF_EMAIL, CONF_NAME
from hom... | Python | homeassistant/components/torque/sensor.py | fbradyirl/home-assistant | apache-2.0 | 3,807 | 142 | codeparrot/github-code |
16212642eeeccebe664bcec2f329689f1061c933ddab3bd0a974e11f4596d6e8 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
namespace shiny_batman.OrmBatman.Postgres
{
public class ModelQuery : IModelQuery
{
public long ModelCount(BaseModel model)
{
Npgsql.NpgsqlConnection conexao = new Npgsql.NpgsqlConnection("Server=1... | C# | shiny_batman/OrmBatman/Postgres/ModelQuery.cs | danimaribeiro/shiny-batman | apache-2.0 | 5,736 | 161 | codeparrot/github-code |
0d2ac034beed7d167448b2acc77e9512a50b5f916ec93717f74110cc0a56488e | // --------------------------------------------------------------------------------------------------------------------
// <summary>
// The widgets tag cloud edit.
// </summary>
// --------------------------------------------------------------------------------------------------------------------
namespace Wi... | C# | BlogEngine.NET/widgets/Tag cloud/edit.ascx.cs | infanprodigy/blog-iz | apache-2.0 | 2,000 | 65 | codeparrot/github-code |
1195f2d6ee72022f215163c06bf3675e82b478345ab554b88b85ec56c47a549f | /**
* Copyright 2012 Emmanuel Bourg
*
* 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 | core/src/main/java/org/pushingpixels/flamingo/api/svg/transcoders/PathIteratorTranscoder.java | ebourg/flamingo-svg-transcoder | apache-2.0 | 2,438 | 60 | codeparrot/github-code |
b58a12f768ccb85b88747016c65c20b7ea6676d9292a7b8448daf372ac8d0909 | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="google-site-verification" content="xBT4GhYoi5qRD5tr338pgPM5OWHHIDR6mNg1a3euekI" />
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="descri... | HTML | _site/2014/10/01/why-alibaba-ux-sucks/index.html | leslie-gu/leslie-gu.github.io | apache-2.0 | 22,487 | 705 | codeparrot/github-code |
9eb623b2d4d3bc48593817ee1d928d9853082ae5627cf4718b58827427443b1b | /*
* Copyright (c) 2010-2015 Pivotal Software, 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 req... | Java | gemfire-core/src/main/java/com/gemstone/gemfire/internal/PureLogWriter.java | SnappyDataInc/snappy-store | apache-2.0 | 8,845 | 282 | codeparrot/github-code |
e6851708c63e6e23981ca6e954b40658b3dd76bdb18707fe43b88fb15fa0f2a2 | /*
* Copyright 2004-2013 the Seasar Foundation and the Others.
*
* 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 ... | Java | src/main/java/org/docksidestage/mysql/dbflute/bsentity/dbmeta/WhiteEscapedDfpropDbm.java | dbflute-test/dbflute-test-dbms-mysql | apache-2.0 | 10,111 | 167 | codeparrot/github-code |
229a7f2981e19c86b7639bf3343fc45c00098487a0ab776e66280a3f75949a2e | package org.lnu.is.dao.builder.course.type;
import org.lnu.is.dao.annotations.QBuilder;
import org.lnu.is.dao.builder.AbstractQueryBuilder;
import org.lnu.is.dao.builder.BaseQueryBuilder;
import org.lnu.is.domain.course.type.CourseType;
/**
* Query builder for Course Type.
*
* @author ivanursul
*
*/
@QBuilder(... | Java | is-lnu-persistence/src/main/java/org/lnu/is/dao/builder/course/type/CourseTypeQueryBuilder.java | ifnul/ums-backend | apache-2.0 | 1,003 | 36 | codeparrot/github-code |
cf637f9935a7932fe526faf8b44d333c90fd822e81ef2080b95a0e3f4fe6034e | ( function() {
exports.extendsMe = function($, attrs) {
attrs = attrs || {};
// a window is by default a saveableContainer
attrs.saveableContainer = "true";
attrs.parentController = $;
attrs.currentWindow = $;
Alloy.Globals.extendsBaseViewController($, attrs);
$.lightWindows = {};
if (OS_A... | JavaScript | app/lib/BaseWindowController.js | hoyoji/HoYoJi | apache-2.0 | 6,791 | 220 | codeparrot/github-code |
9ba3142a3bd2c7a0cd4569eda74c932dcdaeba46089ae1b9275814bb11db6968 | /*
*
* (c) Copyright Ascensio System Limited 2010-2021
*
* 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... | JavaScript | web/studio/ASC.Web.Studio/UserControls/Management/AccessRights/js/accessrights.js | ONLYOFFICE/CommunityServer | apache-2.0 | 18,905 | 500 | codeparrot/github-code |
54326fc7d3bc1bbfbdddd7e0a32a13348d89c74bdd1ce96286dfebbee1ee67ea | package de.devmil.parrotzik2supercharge.api;
/**
* Created by michaellamers on 19/01/15.
*/
public enum NoiseControlMode
{
NoiseCancelling2(-2),
NoiseCancelling1(-1),
Disabled(0),
Street1(1),
Street2(2);
private int mVal;
NoiseControlMode(int val)
{
mVal = val;
}
pu... | Java | 03_project/api/src/main/java/de/devmil/parrotzik2supercharge/api/NoiseControlMode.java | devmil/parrot-zik-2-supercharge | apache-2.0 | 839 | 42 | codeparrot/github-code |
3595d9b9580b1d4a127996340ebf36b92536262a97a1d18e9641a0b49581d60b | # -*- coding: utf-8 -*-
# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or... | Python | google/cloud/aiplatform_v1beta1/services/specialist_pool_service/client.py | sasha-gitg/python-aiplatform | apache-2.0 | 37,342 | 833 | codeparrot/github-code |
14349132b01040bb40ba8204343e07707ccc5070763a2fb01d1f2845e75da3c0 | /*
* Copyright (C) Igor Sysoev
* Copyright (C) NGINX, Inc.
*/
#ifndef _NXT_CREDENTIAL_H_INCLUDED_
#define _NXT_CREDENTIAL_H_INCLUDED_
typedef uid_t nxt_uid_t;
typedef gid_t nxt_gid_t;
typedef struct {
const char *user;
nxt_uid_t uid;
nxt_gid_t base_gid;
nxt_uint_t ngroups;
nxt_gid_t... | C | src/nxt_credential.h | nginx/unit | apache-2.0 | 690 | 31 | codeparrot/github-code |
5dcf8a39ea4e9c22acdaebedf42cdd82bdb78e1764bfee2a1e647a4b6c9f9381 | // Copyright 2020 The Evcxr 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
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agree... | Rust | evcxr_jupyter/src/jupyter_message.rs | google/evcxr | apache-2.0 | 7,590 | 228 | codeparrot/github-code |
16e34752f0ea7bfc4d2b50a58ec389298f26accd4357b091347d83ac2f72abcb | package ch.theband.benno.probeplaner.service;
import ch.theband.benno.probeplaner.model.Play;
import ch.theband.benno.probeplaner.model.ProbePlanerData;
import com.thoughtworks.xstream.XStream;
import com.thoughtworks.xstream.io.xml.StaxDriver;
import javafx.beans.property.Property;
import javafx.beans.property... | Java | src/main/java/ch/theband/benno/probeplaner/service/OpenService.java | saxmaster79/probeplaner | apache-2.0 | 1,692 | 49 | codeparrot/github-code |
48202a80c59956d212b3ffbab88026644e9b4c649aba43228886277bf71c0b5d | /*******************************************************************************
* Copyright 2017 Capital One Services, LLC and Bitwise, 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... | Java | hydrograph.engine/hydrograph.engine.plugin/src/main/java/hydrograph/engine/plugin/debug/ComponentBuilder.java | capitalone/Hydrograph | apache-2.0 | 9,361 | 263 | codeparrot/github-code |
bf1257ee8d3737d90ea90a847030aa6f680c2fe0bc4a9ca1e15592eee0088e07 | /****************************************************************************
*
* Copyright 2019 Samsung Electronics 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... | C | os/arch/arm/src/armv8-m/up_assert.c | davidfather/TizenRT | apache-2.0 | 13,647 | 459 | codeparrot/github-code |
a6aea080e06f03cb44e0c061b1003723038681a3a255748e4b88358ef61b2d3b | /*
* 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 ... | Scala | spark-core_2.10-1.0.0-cdh5.1.0/src/main/scala/org/apache/spark/storage/BlockManagerMasterActor.scala | yelshater/hadoop-2.3.0 | apache-2.0 | 18,918 | 526 | codeparrot/github-code |
dc96f80a06edec0aa1ca259c46e8441b9a9b8f31f4306f8725daad2a623dad4a | /*
* Copyright 2005 Paul Hinds
*
* 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 w... | Java | extras/AntInstaller/AntInstaller-beta0.8/src/org/tp23/antinstaller/runtime/exe/PropertyPrinterFilter.java | neoautus/lucidj | apache-2.0 | 2,910 | 84 | codeparrot/github-code |
c6c12fd256ec0f4fa868caaa96e96fbfa888066a6ef85fe9740a080e254fa362 | /****************************************************************************\
* *
* ISE (Iris Server Engine) Project *
* http://github.com/haoxingeng/ise *
* ... | C | ise/ext/dbi/mysql/ise_dbi_mysql.h | haoxingeng/ise | apache-2.0 | 4,958 | 156 | codeparrot/github-code |
f714e81c62185a72f05a1f910112851dc26a4aec6be0ceb533aa29a2759d9b07 | /*
Copyright 2012 Google Inc. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in ... | C | kernels/latency_noarch/walker_noprint.c | David-Levinthal/gooda | apache-2.0 | 12,706 | 397 | codeparrot/github-code |
bcaf64a8a17a49538547f08b5b52cb407e585c013e95d9aee48f293f92e2f6e1 | import { Component } from '@angular/core';
import { FormBuilder, FormGroup, Validators } from '@angular/forms';
import { ActivatedRoute, Router } from '@angular/router';
import { Observable } from 'rxjs/Observable';
import { Subscription } from 'rxjs/Subscription';
import { Role } from '../role';
import { RoleService ... | TypeScript | src/HardwareSensorSystem/wwwsrc/app/user/role-detail/role-detail.component.ts | eKiosk/HardwareSensorSystem | apache-2.0 | 1,543 | 59 | codeparrot/github-code |
c83a48f487e0d2ef29a0bcb6403d9eb855dbc151c82a2b550e9004392de098f2 | /*
* Copyright 2019 The Data Transfer Project 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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicab... | Java | extensions/data-transfer/portability-data-transfer-deezer/src/main/java/org/datatransferproject/transfer/deezer/DeezerTransferExtension.java | google/data-transfer-project | apache-2.0 | 3,234 | 79 | codeparrot/github-code |
4af8961f83579bdf553b8d1f42e1bba0e4e89220674dd29d64d78d8f1524e005 | #!/usr/bin/env python3
# ID: umap_vis.py [73a44e5] jchealy@gmail.com $
"""
Manually generate figures for the UMAP documentation.
"""
##########################################################################
## Imports
##########################################################################
import matplotlib.pyplot... | Python | docs/api/text/umap_vis.py | DistrictDataLabs/yellowbrick | apache-2.0 | 1,667 | 59 | codeparrot/github-code |
da5affa8865dc865a1921367a1bbff9f6e5ad3b369f54f3094649b30d16cca18 | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
<title>soycasino Sig... | HTML | src/main/java/com/soycasino/res/signup.html | jcao219/soycasino | apache-2.0 | 4,137 | 114 | codeparrot/github-code |
7c1c1a8a4026da63bdeb77a49873fd1172242c80e0daac4498889e6237ea22fa | package org.jenkinsci.plugins.maveninvoker.results;
/*
* Copyright (c) Olivier Lamy
* 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... | Java | src/main/java/org/jenkinsci/plugins/maveninvoker/results/MavenInvokerResults.java | jenkinsci/maven-invoker-plugin | apache-2.0 | 1,565 | 52 | codeparrot/github-code |
110901611d7ec9a081a893ac659c8c635fa28508748d4e89dbefed81e1f96eaf | /*
* Copyright (c) 2015 David Boissier
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agr... | Java | src/main/java/org/codinjutsu/tools/nosql/mongo/view/action/AddMongoDocumentAction.java | dboissier/nosql4idea | apache-2.0 | 1,462 | 42 | codeparrot/github-code |
023aecb1ba0c5ca091601fd341a464351fb35da9e05e959271a933540f1d8100 | /*
* PaLNote
* http://palnote.org
*
* Copyright (c) 2014 Ayana Tokikaze. All rights reserved.
* Released under the Apache v2 License.
*
* Created by Ayana Tokikaze on 14/10/14.
*/
package net.snvx.palnote.core.io;
import java.io.File;
import java.io.IOException;
public class Files {
public void NewFile(Str... | Java | PaLNote-Core/src/net/snvx/palnote/core/io/Files.java | ayatk/PaLNote | apache-2.0 | 640 | 37 | codeparrot/github-code |
750db67b58d07e0cd88eb756c9676e730752c8e25ac6755a97fda7e88e6e09ab | /*
* Copyright 2013 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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... | Java | src/main/java/com/google/jenkins/plugins/util/MetadataReader.java | jenkinsci/google-oauth-plugin | apache-2.0 | 4,025 | 119 | codeparrot/github-code |
6755a5d31966e2f9ba4b2d7717d27d5030193a0d0782a305529f6e7a318f136b | <!DOCTYPE html >
<html>
<head>
<title>DiscardedEvaluationException - ScalaTest 3.0.4 - org.scalatest.exceptions.DiscardedEvaluationException</title>
<meta name="description" content="DiscardedEvaluationException - ScalaTest 3.0.4 - org.scalatest.exceptions.DiscardedEvaluationException" />
... | HTML | public/scaladoc/3.0.4/org/scalatest/exceptions/DiscardedEvaluationException.html | scalatest/scalatest-website | apache-2.0 | 41,720 | 739 | codeparrot/github-code |
1e52763ac8ad4c25b989e8ebac096518eaa6b627d6f7b3a3e3b06504ae8790be | //Copyright 2014 Spin Services Limited
//Licensed under the Apache License, Version 2.0 (the "License");
//you may not use this file except in compliance with the License.
//You may obtain a copy of the License at
// http://www.apache.org/licenses/LICENSE-2.0
//Unless required by applicable law or agreed to in w... | C# | SS.Integration.Adapter.Diagnostics.RestService/Controllers/SearchController.cs | sportingsolutions/SS.Integration.Adapter | apache-2.0 | 1,765 | 49 | codeparrot/github-code |
99153b2f334b66b2c4fd4d9fd7c3ae9fb1b3e175bbb495b1119f802e375b858a | package org.pac4j.play.store;
import javax.inject.Inject;
import com.google.inject.Provider;
import org.pac4j.core.exception.TechnicalException;
import org.pac4j.core.store.AbstractStore;
import org.pac4j.core.util.CommonHelper;
import org.pac4j.core.util.serializer.JavaSerializer;
import play.cache.SyncCacheApi;
imp... | Java | shared/src/main/java/org/pac4j/play/store/PlayCacheStore.java | pac4j/play-pac4j | apache-2.0 | 2,340 | 86 | codeparrot/github-code |
a65cfb3481aa0a3489bf70d045edce4bbc127bceee561689bde90912c534b0fc | /*
* Copyright (c) 2014-2015 Samsung Electronics Co., Ltd 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++ | src/helpers/creds-commons/creds-commons.cpp | pohly/cynara | apache-2.0 | 2,855 | 74 | codeparrot/github-code |
dd5ebba1643e30264c76b38e66ea71f749c294f0320ba61fb21c57b22ad3e700 | /*
* Copyright 2012 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 | src/test/java/com/athena/chameleon/engine/threadpool/task/FileEncodingConvertTaskTest.java | OpenSourceConsulting/athena-chameleon | apache-2.0 | 7,880 | 267 | codeparrot/github-code |
371be2696ec12f9dfb3e672d29593f021fd8adbf04ad2868744afd0776fef114 | import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { Callback } from './callback';
import { ReadFileOrUrl } from './readFileOrUrl';
class MockFileReader{
callError: boolean;
constructor(callError: boolean = false) {
this.callError = callError;
// console.log('mock file reader... | TypeScript | src/app/lib/readFileOrUrl.spec.ts | hamzakilic/wjimg | apache-2.0 | 1,464 | 69 | codeparrot/github-code |
6bd7803ead3c4b453bd481bd22fc4620dba57e302e3cd9337a352b3391dce206 | /*
http://www.JSON.org/json2.js
2010-11-17
Public Domain.
NO WARRANTY EXPRESSED OR IMPLIED. USE AT YOUR OWN RISK.
See http://www.JSON.org/js.html
This code should be minified before deployment.
See http://javascript.crockford.com/jsmin.html
USE YOUR OWN COPY. IT IS EX... | JavaScript | CRM/jlui3.2/lib/json2.js | SpiderLoveFish/ZJCRM | apache-2.0 | 13,549 | 353 | codeparrot/github-code |
e18fc4e5f306028a279df8efc5d114483250b48e54d6c2f590bb8aa2be6ddb84 | /*
* Copyright 2012-2020 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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applic... | Java | src/test/java/org/springframework/data/solr/core/DefaultQueryParserTests.java | spring-projects/spring-data-solr | apache-2.0 | 75,598 | 1,897 | codeparrot/github-code |
929b960160208b1e186a38cf57fead8bab5ca6fd4917ce6b9a816bb607446966 | package org.commcare.network;
import org.commcare.interfaces.CommcareRequestEndpoints;
import org.commcare.tasks.DataPullTask;
import java.io.IOException;
/**
* Delegates data pulling requests to allow for modularity in data sources
*
* @author Phillip Mates (pmates@dimagi.com).
*/
public interface DataPullReque... | Java | app/src/org/commcare/network/DataPullRequester.java | dimagi/commcare-android | apache-2.0 | 1,166 | 31 | codeparrot/github-code |
cc6a3c59b95c05d3765fc73418594de0f3cc1df9b80abe1499425703d7eed3a9 | /*
* Zed Attack Proxy (ZAP) and its related class files.
*
* ZAP is an HTTP/HTTPS proxy for assessing web application security.
*
* Copyright 2018 The ZAP Development Team
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* Yo... | Java | addOns/ascanrules/src/test/java/org/zaproxy/zap/extension/ascanrules/RemoteFileIncludeScanRuleUnitTest.java | secdec/zap-extensions | apache-2.0 | 2,676 | 68 | codeparrot/github-code |
d41a4e8e6718f497789c888e47420cfaf9d49118cbefe6ddd2ba698f80c67ecf | package me.tomassetti.jvm;
import org.objectweb.asm.Opcodes;
public enum JvmTypeCategory {
INT,
LONG,
FLOAT,
DOUBLE,
REFERENCE,
ARRAY;
public int storeOpcode(){
switch (this){
case INT:
return Opcodes.ISTORE;
case LONG:
retur... | Java | bytecode-generation/src/main/java/me/tomassetti/jvm/JvmTypeCategory.java | ftomassetti/turin-programming-language | apache-2.0 | 1,165 | 50 | codeparrot/github-code |
2e44ed747c7ae13c9a432de2118a9c0e5b5d2cd04c4195b8f025845434d0ce0f | // Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "webkit/media/crypto/ppapi/ffmpeg_cdm_video_decoder.h"
#include "base/logging.h"
#include "base/memory/scoped_ptr.h"
#include "media/base/bu... | C++ | src/webkit/media/crypto/ppapi/ffmpeg_cdm_video_decoder.cc | plxaye/chromium | apache-2.0 | 11,675 | 346 | codeparrot/github-code |
980166d998e001096c7f97efa7723d2822c326d258a37b400ef53e971e96f302 | package org.testng.remote.strprotocol;
import com.google.gson.annotations.SerializedName;
/**
* A generic message to be used with remote listeners.
* It is described by a {@link #m_messageType} and can contain a <code>Map</code>
* or values.
*
* @author <a href='mailto:the_mindstorm[at]evolva[dot]ro'>Alexandru P... | Java | remote/src/main/java/org/testng/remote/strprotocol/GenericMessage.java | testng-team/testng-remote | apache-2.0 | 1,769 | 69 | codeparrot/github-code |
6bb5a5dcf6652f91cae3da7aaf28fb058dde9e485ee7d590b32d12700d6a80d5 | using System.Threading.Tasks;
using WK.Orion.Platform.Examples.Components.Tasks.Core.Converters.Interfaces;
using WK.Orion.Platform.Examples.Components.Tasks.Core.Models.Entities;
using WK.Orion.Platform.Examples.Components.Tasks.DataAccessLayer.Interfaces.Repositories;
namespace WK.Orion.Platform.Examples.Components... | C# | tasks/src/WK.Orion.Platform.Tasks.DataAccessLayer/Repositories/TaskRepository.cs | jwillj2k4/ArchitectureExample | apache-2.0 | 2,348 | 48 | codeparrot/github-code |
98df9c92c2208401149bb84e9f4cec832c4a7a961de613107efeb33b4903031b | // Copyright (C) 2013 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 applicable ... | Java | java/com/google/gerrit/server/account/SetPreferences.java | gerrit-review/gerrit | apache-2.0 | 7,163 | 190 | codeparrot/github-code |
955c5a64b141c6b5c7fff27cf7635335b7c60e9ea171439f3d963773e947075f | package me.xiaoy.core.base;
import java.io.Serializable;
import java.util.List;
import me.xiaoy.core.common.page.PageList;
public class BaseService<T extends Object> implements IBaseService<T> {
protected IBaseDao<T> dao;
public IBaseDao<T> getDao() {
return dao;
}
public void setDao(IBas... | Java | src/me/xiaoy/core/base/BaseService.java | qujianlin/oshop | apache-2.0 | 1,686 | 118 | codeparrot/github-code |
2ac8c246f59160e37db341142c24629a304cb5a0b3d8880d3d5d30e5ab4f2244 | using System;
using System.Diagnostics;
using System.Collections.Generic;
#if OPENGL
#if MONOMAC
using MonoMac.OpenGL;
using GLStencilFunction = MonoMac.OpenGL.StencilFunction;
#elif WINDOWS || LINUX
using OpenTK.Graphics.OpenGL;
using GLStencilFunction = OpenTK.Graphics.OpenGL.StencilFunction;
#elif GLES
... | C# | MonoGame/MonoGame.Framework/Graphics/States/DepthStencilState.cs | jonathanpeppers/MonoGameOrientation | apache-2.0 | 18,375 | 445 | codeparrot/github-code |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.