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 |
|---|---|---|---|---|---|---|---|---|
b6cd5748f5de55600dd029a81ecab480d89b3988c2fb19c00682b9f2339c215c | package org.jbpm.test.performance.jbpm;
import java.util.Properties;
public class JBPMTestConfig {
protected String runtimeManagerStrategy;
protected static JBPMTestConfig tc;
protected boolean persistence;
protected Properties properties;
protected boolean pessimisticLocking;
protected boole... | Java | jbpm-benchmarks/jbpm-performance-tests-jmh/src/main/java/org/jbpm/test/performance/jbpm/JBPMTestConfig.java | droolsjbpm/kie-benchmarks | apache-2.0 | 2,330 | 78 | codeparrot/github-code |
1ce3ab42dc41ed16a873e1d1357e05e5fd5c1c469f5af3ebf5e78a7d73b9a067 | package mvm.rya.accumulo.mr;
/*
* 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, Versio... | Java | mapreduce/src/main/java/mvm/rya/accumulo/mr/RdfFileInputFormat.java | isper3at/incubator-rya | apache-2.0 | 19,653 | 444 | codeparrot/github-code |
40459b10b4480aae89c57734c3a115653c4528e605869477eddbc742a98bf6ed | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreemnets. 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 | src/main/java/opennlp/tools/util/model/DictionarySerializer.java | mccraigmccraig/opennlp | apache-2.0 | 1,579 | 46 | codeparrot/github-code |
d7c771d86340ea4e50ef99b920aea667b627bc4038c175a1a895703767602b17 | // 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... | Java | client/src/main/java/collide/client/treeview/TreeNodeLabelRenamer.java | WeTheInternet/collide | apache-2.0 | 4,031 | 137 | codeparrot/github-code |
80ef1fa743af91c948a8add3682b9ea05e68702bc2006ec4cec948bec707edec | #!/usr/bin/env python
# -*- coding: utf-8 -*-
__author__ = 'Jonas Wacker, Benjamin Milde'
from elasticsearch import Elasticsearch
import nltk
import traceback
import nltk.data
wiki_index = 'simple_en_wiki'
default_type = 'page'
sent_detector = nltk.data.load('tokenizers/punkt/english.pickle')
# Currently using a pu... | Python | python/wiki_search_es.py | bmilde/ambientsearch | apache-2.0 | 6,033 | 187 | codeparrot/github-code |
ed3f71c800a1ee3f7e23aa89be5d3e87554605161568a05ee9b7333086eed97b | /*
* Copyright (C) 2013 Alexander Osmanov (http://perfectear.educkapps.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
... | Java | ServiceFramework/src/ru/evilduck/framework/SFBaseActivity.java | TheHiddenDuck/android-service-arch | apache-2.0 | 1,988 | 70 | codeparrot/github-code |
fc31efd0feb4b64c3a2dd8e11cc286b9d4515e8f8ef5d2d0dfbc6eb411da188d | /// <reference path="../vendor/node.d.ts" />
import {Socket} from "net";
import {Compression} from "./compression";
import {Http2ErrorType, Http2Error} from "./error"
import {FrameType, Frame, SettingsFlags, SettingsParam, SettingsFrame,
PingFlags, PingFrame, GoAwayFrame} from "./frame";
import {Server} from "./s... | TypeScript | lib/connection.ts | ShivanKaul/node-http2-typescript | apache-2.0 | 14,063 | 385 | codeparrot/github-code |
b05f82c67c1b5f5c39269e78418b80a5a77a4a6393b94c2bc9d140b6b26f26fe | /*
* Copyright 2021 Ben Manes. 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 applicab... | Java | caffeine/src/test/java/com/github/benmanes/caffeine/testing/Int.java | ben-manes/caffeine | apache-2.0 | 5,157 | 167 | codeparrot/github-code |
88fbcfba6ca47f5cbfa92aacc0679727d0dc328a60b18a2b0557eacc0e8ba6bb | /**
* 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 | src/test/ly/stealth/mesos/kafka/MesosTestCase.scala | tnachen/mesos-kafka | apache-2.0 | 10,856 | 359 | codeparrot/github-code |
2283b0b9d6d86c58c2626ac969e7bda69ac6fd3aacedb8f902e0e96467f60d43 | /**
* @license
* Copyright 2020 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 requir... | JavaScript | example_cpp_smart_card_client_app/src/built_in_pin_dialog/built-in-pin-dialog-main.js | GoogleChromeLabs/chromeos_smart_card_connector | apache-2.0 | 1,758 | 53 | codeparrot/github-code |
4b2fc1be7f43fb92ca68000de48ac6c11cc1ec3e43dbbb9262a1d655c9a741ec | /*
* Copyright © 2015-2021 I.N.F.N.
* Copyright © 2015-2020 Santer Reply S.p.A.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
... | Java | src/main/java/it/reply/orchestrator/service/commands/GetProvidersRank.java | indigo-dc/orchestrator | apache-2.0 | 4,827 | 127 | codeparrot/github-code |
62d1c50590f741e2afe4042ddfe7e839909e492c9b2ec0ce2e08765f9ab2f8a4 | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may ... | Java | modules/core/src/main/java/org/apache/ignite/internal/processors/cache/GridCacheDeploymentManager.java | SomeFire/ignite | apache-2.0 | 35,285 | 1,052 | codeparrot/github-code |
de1944be66f9fbf586085c72ad29fe39b4b775e168f6fa7c92e6ae4d2ba2ee94 | /*
* 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 | eagle-flink/src/main/java/org/apache/eagle/flink/PolicyHandlerContext.java | yonzhang/incubator-eagle | apache-2.0 | 2,098 | 68 | codeparrot/github-code |
ca47b14857c732b6f836a48e56eaf6e307c309edd848aeca62489882c5040357 | /**************************************************************************
ChatMessage.java is part of Titanium4j Mobile 3.0. Copyright 2012 Emitrom 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 o... | Java | src/com/emitrom/ti4j/mobile/client/cloud/chats/ChatMessage.java | CraigAndrew/titanium4j | apache-2.0 | 2,526 | 76 | codeparrot/github-code |
5f25f28a695a1e1c9de731983c64dc54892fc7abed54575183d5a7ecdaf931da | /*
Copyright IBM Corp. All Rights Reserved.
SPDX-License-Identifier: Apache-2.0
*/
package ledgerstorage
import (
"sync"
"sync/atomic"
"github.com/hyperledger/fabric-protos-go/common"
"github.com/hyperledger/fabric/common/flogging"
"github.com/hyperledger/fabric/common/ledger/blkstorage"
"github.com/hyperledg... | GO | core/ledger/ledgerstorage/store.go | muralisrini/fabric | apache-2.0 | 11,047 | 308 | codeparrot/github-code |
a33b805d10218738c595b78a0ca76765bd663da84b56615c919b046e92c052c6 | using System;
using System.Collections;
public partial class BindingArrayList : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
DayPilotCalendar1.DataSource = getData();
DataBind();
}
}
ArrayList getData()
... | C# | Demo/Calendar/BindingArrayList.aspx.cs | TheEyeOfBrows/DayPilot-Lite | apache-2.0 | 1,223 | 63 | codeparrot/github-code |
f93d60ff8ed3874af63a09a20130450315b894bec669ed729ee43c02ff78e256 | # Lint as: python3
# Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agr... | Python | tf_quant_finance/models/legacy/brownian_motion.py | google/tf-quant-finance | apache-2.0 | 19,227 | 430 | codeparrot/github-code |
682c82bfecb53785d235eed00dd0245e1ba7cd537547dda60688a583e0f831d9 | // ydb_sched.cpp
// Author: Allen Porter <allen@thebends.org>
#include <iostream>
#include <unistd.h>
#include <ythread/mutex.h>
#include <ythread/condvar.h>
#include "ydb_lock.h"
#include "ydb_trans.h"
#include "ydb_op.h"
#include "ydb_sched.h"
Ydb_Scheduler::Ydb_Scheduler(Ydb_Map* map)
: map_(map), lock_table_(ne... | C++ | ydb/ydb_sched.cpp | allenporter/thebends | apache-2.0 | 4,853 | 175 | codeparrot/github-code |
196ceb9382006e58697b7b56d8c6c5cca78839dfd0fa8bd86577d36a023dfaef | import { LocalStorageKeys } from './../models/constants';
import { Injectable } from '@angular/core';
import { StorageItem, StoredSubscriptions } from '../models/localStorage/local-storage';
import { AiService } from "app/shared/services/ai.service";
@Injectable()
export class LocalStorageService {
private _apiVer... | TypeScript | AzureFunctions.AngularClient/src/app/shared/services/local-storage.service.ts | chunye/azure-functions-ux | apache-2.0 | 2,868 | 90 | codeparrot/github-code |
eff75bf3b57dfeb792b3ab8b9f22a46eabebf07ebd2f6c40255643983cbd2323 | <?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<!-- template designed by Marco Von Ballmoos -->
<title>@property</title>
<link rel="style... | HTML | phpdoc/default/phpDocumentor/tutorial_tags.property.pkg.html | haizhilin2013/php-tools | apache-2.0 | 10,338 | 114 | codeparrot/github-code |
bc7519219cfa0cb1b7359784ed4dd6f5e775c7cabf2895a3b6f8821479e60543 | // Copyright 2014 the V8 project authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "src/code-stubs.h"
#include "src/compiler/js-graph.h"
#include "src/compiler/node-properties.h"
#include "src/compiler/typer.h"
namespace v8 {... | C++ | deps/v8/src/compiler/js-graph.cc | dreamllq/node | apache-2.0 | 5,619 | 211 | codeparrot/github-code |
75a94d08186f8b9395b7214ae64a6ce3b4946e669a3dd691d9f9ba6a8602c8af | package com.bandaoti.employee.service.impl;
import java.util.Arrays;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.alibaba.druid.util.StringUtils;
import com.bandaoti.employee.ControllerException;
import com.b... | Java | src/main/java/com/bandaoti/employee/service/impl/EmployeeServiceImpl.java | xiruiqiang/employee | apache-2.0 | 4,973 | 150 | codeparrot/github-code |
327e69e72c8db2b09a5e39ab2f76565c70916134185d92eba39be829341d8422 | package com.opennote.model.operation;
import java.util.ArrayList;
import java.util.List;
import org.apache.http.message.BasicNameValuePair;
import org.json.JSONException;
import org.json.JSONObject;
import android.content.Context;
import android.os.Bundle;
import android.provider.ContactsContract.CommonDataKinds.Not... | Java | ClientAndroid/src/com/opennote/model/operation/DeleteNotesOperation.java | riaval/open-note | apache-2.0 | 2,570 | 78 | codeparrot/github-code |
f7172f157fb851e2e349334dd6eec240e1e303d18b507b91e8ba674449eb144f | package org.jetbrains.plugins.scala
package lang
package psi
package impl
package expr
import com.intellij.lang.ASTNode
import com.intellij.psi._
import org.jetbrains.plugins.scala.extensions.PsiElementExt
import org.jetbrains.plugins.scala.lang.lexer.{ScalaTokenType, ScalaTokenTypes}
import org.jetbrains.plugins.scal... | Scala | scala/scala-impl/src/org/jetbrains/plugins/scala/lang/psi/impl/expr/ScArgumentExprListImpl.scala | JetBrains/intellij-scala | apache-2.0 | 4,805 | 151 | codeparrot/github-code |
f70e9c90e7776d6219a5d250010a6822d146034a7c91bc5f68a0a39f18b69322 | /*-
* Copyright 2015 Square Inc.
* Copyright 2014 CoreOS
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by ap... | GO | cmd/request_cert.go | riyazdf/certstrap | apache-2.0 | 4,889 | 149 | codeparrot/github-code |
abae754a71dc7068ae1e45d3c0801ff938348437cb00f5d99fba9e0145a5b4c6 | /* ###
* 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/Debug/Debugger-agent-gdb/src/main/java/agent/gdb/manager/impl/cmd/GdbFileExecAndSymbolsCommand.java | NationalSecurityAgency/ghidra | apache-2.0 | 1,331 | 46 | codeparrot/github-code |
ea5f5edf000df8ff769b92d7ec4d3f94762683de3598b627de6dfce38ddca2d8 | /**
* Copyright 2021 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to... | TypeScript | functions/src/config.ts | google/devlibrary | apache-2.0 | 1,567 | 56 | codeparrot/github-code |
d2f470368789064037e26ecbbe813b2acc917b501d9de6bc97c12363eeed2cec | package com.micmiu.hadoop.mr.demo;
import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONObject;
import org.apache.hadoop.conf.Configuration;
import org.apache.hadoop.conf.Configured;
import org.apache.hadoop.fs.Path;
import org.apache.hadoop.io.IntWritable;
import org.apache.hadoop.io.LongWritable;
import... | Java | hadoop2-demo/src/main/java/com/micmiu/hadoop/mr/demo/MRUseLibjarsDemo.java | micmiu/bigdata-tutorial | apache-2.0 | 3,515 | 111 | codeparrot/github-code |
cabbd5d9a7318d2ab390ed779ead6744196e379d18b9584d62c1f75290492204 | <?php
/**
* Contains all client objects for the SuggestedAdUnitService
* service.
*
* PHP version 5
*
* Copyright 2014, 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 cop... | PHP | src/Google/Api/Ads/Dfp/v201311/SuggestedAdUnitService.php | cornernote/googleads-php-lib | apache-2.0 | 84,083 | 3,378 | codeparrot/github-code |
49f7bb5413d10afb8e186e28b062c200b4af117465be6b410ce47fa624d467cf | require 'graphviz'
require 'ostruct'
class RecommendationSnapshot < Snapshot
@@amazon_db = "amazon-1"
@@comment_key = "comment"
@@recommended_key = "recommended"
field :recommended
field :comment
field :is_wishlist_recommendation
has_context :product_snapshot
def self.remove_ellipsis(to_rm)
begi... | Ruby | app/models/amazon/recommendation_snapshot.rb | matlecu/xray | apache-2.0 | 8,043 | 289 | codeparrot/github-code |
797601b7d9ce356e89f4ba2a940f58765ed59ff536424fb8e411e8b7b14179ef | /*
* twemproxy - A fast and lightweight proxy for memcached protocol.
* Copyright (C) 2011 Twitter, 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/lice... | C | src/proto/nc_memcache.c | andyqzb/twemproxy | apache-2.0 | 42,033 | 1,598 | codeparrot/github-code |
14e42515374b3bf75680f468dec86aae1880ced482e6afb2c381bc5575674b2a | /*
* =====================================================================================
*
* Filename: Branch.cpp
*
* Description: Implementation file of class Branch.
*
* Version: 1.0
* Created: 05/ 4/2012 9:07:08 PM
* Revision: none
* Compiler: msvc
*
* ... | C++ | GAG/src/GAGPL/GLYCAN/Branch.cpp | hh1985/multi_hs_seq | apache-2.0 | 5,638 | 193 | codeparrot/github-code |
3168d080058eaf244731fee13a570a522703732781b4f7e955685138872f07ec | /*
* 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-eks/src/main/java/com/amazonaws/services/eks/model/DescribeUpdateResult.java | aws/aws-sdk-java | apache-2.0 | 3,717 | 127 | codeparrot/github-code |
11f572efc9128c6f00aec9e08020a1e72e92e438a8a614b14ce2b04987586413 | package alicloud
type PrimaryKeyTypeString string
const (
IntegerType = PrimaryKeyTypeString("Integer")
StringType = PrimaryKeyTypeString("String")
BinaryType = PrimaryKeyTypeString("Binary")
)
type InstanceAccessedByType string
const (
AnyNetwork = InstanceAccessedByType("Any")
VpcOnly = InstanceAcce... | GO | alicloud/extension_ots.go | xiaozhu36/terraform-provider | apache-2.0 | 1,537 | 79 | codeparrot/github-code |
e4c02ec7c8dd0b1ada11e1cca9d39838cc41f1b2efad39f8eac264a86fcff135 | /**
* Copyright © Microsoft Open 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
*
* THIS ... | Java | sdk/office365-mail-calendar-contact-sdk/odata/engine/src/main/java/com/msopentech/odatajclient/engine/data/ODataV3Deserializer.java | 0359xiaodong/Office-365-SDK-for-Android | apache-2.0 | 3,043 | 82 | codeparrot/github-code |
68fc9147543f0971bf10829ec1aca08d381f30b12347a3c4e06598fd3717c18a | $(document).ready(function(){ //DOM的onload事件处理函数
$("#comment-submit").click(function(){ //当按钮button被点击时的处理函数
if(check_content()){
postdata();
//button被点击时执行postdata函数
$("#post_content").val('').focus();//提交清空内容
}
});
//@回复
$(".clickable").click(function(){
var append_s... | JavaScript | public/js/topic.js | baofan/startbbs-laravel | apache-2.0 | 3,066 | 79 | codeparrot/github-code |
30a5ed98b53ce1e620e2798464b02f2c39d8f4d9e5b054f7f67459437b49a54e | package org.littleshoot.proxy.impl;
import io.netty.buffer.ByteBuf;
import io.netty.buffer.Unpooled;
import io.netty.channel.*;
import io.netty.handler.codec.http.*;
import io.netty.handler.ssl.SslHandler;
import io.netty.handler.timeout.IdleStateEvent;
import io.netty.util.ReferenceCounted;
import io.netty.util.concu... | Java | src/main/java/org/littleshoot/proxy/impl/ProxyConnection.java | rwtemple/LittleProxy | apache-2.0 | 27,378 | 841 | codeparrot/github-code |
14f67ddbc8b4ef77bd3251627e45048139ed76fc3188955bb6110839263a7b08 | /*
* 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 | xml-psi-impl/src/main/java/com/intellij/psi/impl/source/parsing/xml/HtmlBuilderDriver.java | consulo/consulo-xml | apache-2.0 | 1,684 | 48 | codeparrot/github-code |
36018e8e2f065d4635a90974eed1271cc70bdd92ea1bfbef9aaf2dc56e2bf391 | // Copyright 2022 Google LLC. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applica... | GO | unstructured/google/firebaserules/alpha/ruleset.go | GoogleCloudPlatform/declarative-resource-client-library | apache-2.0 | 9,929 | 311 | codeparrot/github-code |
53c1e5b493558b6b325324964b0e9747b015da7c06fe2b50ad21d4fb07f09ef5 | ##
# Copyright (c) 2012-2015 Apple 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 l... | Python | contrib/performance/sqlusage/requests/httpTests.py | red-hood/calendarserver | apache-2.0 | 3,288 | 119 | codeparrot/github-code |
bc9fca70dcd49884b330e16c57096ac32654b4e2831198765e9e4d8b2b1b93a6 | /*
* Copyright (C) 2013-2014 GermainZ@xda-developers.com
* Portions Copyright (C) 2013 The ChameleonOS 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
*
* htt... | Java | identiconizer/src/main/java/com/germainz/identiconizer/xposed/XposedMod.java | GermainZ/Identiconizer | apache-2.0 | 7,180 | 133 | codeparrot/github-code |
c728d4262619c8438552358cd47ac9de684a723e506d2741d41e3b2c03730a72 | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import Colors from '../styles/Colors';
import permissionDeniedLock from '../../common/static/permission-denied-lock.svg';
export class PermissionDeniedView extends Component {
static propTypes = {
errorMessage: PropTypes.string.isRequi... | JavaScript | mlflow/server/js/src/experiment-tracking/components/PermissionDeniedView.js | mlflow/mlflow | apache-2.0 | 900 | 31 | codeparrot/github-code |
574ff7de1ae63946750c0910b9548a5dc956e2d15ca59edc1874498af046e53b | using log4net;
using Soldier.Framework.Bean;
using Soldier.Framework.Core;
using Soldier.Framework.Utils;
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Management;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
namespace Soldier.Exten... | C# | Soldier.Extension.AutoLogin/Service/LoginService.cs | Lotusun/SoldierSystem | apache-2.0 | 9,378 | 205 | codeparrot/github-code |
4c4fb25608bc2c55e5508c2307e6e5de71c1a50e9e77200c5d17d86046f1cf72 | """
This script combines training_OnlineContrastiveLoss.py with training_MultipleNegativesRankingLoss.py
Online constrative loss works well for classification (are question1 and question2 duplicates?), but it
performs less well for duplicate questions mining. MultipleNegativesRankingLoss works well for duplicate
quest... | Python | examples/training/quora_duplicate_questions/training_multi-task-learning.py | UKPLab/sentence-transformers | apache-2.0 | 9,356 | 209 | codeparrot/github-code |
f4e7d7b870f864a9ab5cbe46289b405e8ea8cc515aebff8ee20b66c7d18a3080 | ---
layout: page
description: "一生只做一个自由的极客"
---
{% for post in paginator.posts %}
<div class="post-preview">
<a href="{{ post.url | prepend: site.baseurl }}">
<h2 class="post-title">
{{ post.title }}
</h2>
{% if post.subtitle %}
<h3 class="post-subtitle">
{{ ... | HTML | index.html | fengxueyijiu/fengxueyijiu.github.io | apache-2.0 | 1,186 | 43 | codeparrot/github-code |
9002aa811d273cf3586ac015488c3d48854069d661c692d63ecfa61f66655f2d | /* -*- mode: c; indent-tabs-mode: nil -*- */
/*
* Copyright 2009 by the Massachusetts Institute of Technology.
* All Rights Reserved.
*
* Export of this software from the United States of America may
* require a specific license from the United States Government.
* It is the responsibility of any person or or... | C | kerberos/kdc/src/krb5-1.16/src/lib/gssapi/mechglue/g_inq_name.c | gerritjvv/cryptoplayground | apache-2.0 | 3,219 | 98 | codeparrot/github-code |
98022bb3f5dbfd0ff708292f17d47847f974636f5c33de70f0dbf04655199cfc | # coding=utf-8
# Copyright 2018 Pants project contributors (see CONTRIBUTORS.md).
# Licensed under the Apache License, Version 2.0 (see LICENSE).
from __future__ import (absolute_import, division, generators, nested_scopes, print_function,
unicode_literals, with_statement)
class PantsDaemonSt... | Python | src/python/pants/goal/pantsd_stats.py | baroquebobcat/pants | apache-2.0 | 1,009 | 34 | codeparrot/github-code |
cd27b787022229f49a622a30c1b134dea569a92c7d7b422c7c1b707d29c6aa79 | // Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
// See LICENSE.txt for license information.
import {v4 as uuidv4} from 'uuid';
import testConfig from '@support/test_config';
export * from './email';
/**
* Explicit `wait` should not normally used but made available for special cases.
* @param {... | JavaScript | detox/e2e/support/utils/index.js | mattermost/mattermost-mobile | apache-2.0 | 1,840 | 80 | codeparrot/github-code |
03b0e2a65730a902f5bc703c4c5b77ce89c17f0389c25164d32dd01a9a63353e | using System;
using System.Collections.Generic;
using System.Text;
namespace Tesseract
{
/// <summary>
/// Represents an object that can iterate over tesseract's page structure.
/// </summary>
/// <remarks>
/// The iterator points to tesseract's internal page structure and is only valid while the ... | C# | Tesseract.Net20/PageIterator.cs | skaeff/miranda-tester | apache-2.0 | 6,003 | 159 | codeparrot/github-code |
cef976ff1b0e38652f0d915e3d13b92a91cb1fba3295f6122c9e29a91181a780 | <?php
class Help_model extends CI_Model{
public $_table='help';
public $_topics='help_topics';
function __construct() {
parent::__construct();
}
public function get_all_admin(){
return $this->db->select('h.*,ht.helpTopics')->from($this->_table.' h')->join($this->_topics.' ht','h.helpTopicsId=ht.h... | PHP | models/help_model.php | kousik/tidiit | apache-2.0 | 3,539 | 108 | codeparrot/github-code |
fe62d001dc334d689153e55d1b10e447fd089e4fb74da99d104e93c5bc7cd40b | package com.gaoo.coolweather.db;
import android.content.ContentValues;
import android.content.Context;
import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;
import com.gaoo.coolweather.model.City;
import com.gaoo.coolweather.model.County;
import com.gaoo.coolweather.model.Province;
import ja... | Java | app/src/main/java/com/gaoo/coolweather/db/CoolWeatherDB.java | gaoo9798/koolweather | apache-2.0 | 4,870 | 152 | codeparrot/github-code |
428a3aed78701d547c684973e85677992742fc7c015aade43012f1aa915024f6 | using System;
using System.Collections.Generic;
using System.Globalization;
using System.Linq;
using System.Web.Mvc;
using EPiServer.Commerce.Catalog.ContentTypes;
using EPiServer.Commerce.Catalog.Linking;
using EPiServer.Core;
using EPiServer.Filters;
using EPiServer.Reference.Commerce.Site.Features.Product.... | C# | Sources/EPiServer.Reference.Commerce.Site/Features/Product/Controllers/ProductController.cs | iandroutledge/Quicksilver | apache-2.0 | 7,758 | 184 | codeparrot/github-code |
b527caff7cf4d997c42fa7899b0530106c4aba0ee352270040327b17de9dfc77 | /*
Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.lang['mk'] = {
"editor": "Rich Text Editor",
"editorPanel": "Rich Text Editor panel",
"common": {
"editorHelp": "Press ALT 0 for help",
... | JavaScript | public/js/plugin/ckeditor/lang/mk.js | DavidCai1993/awesomeOaSystem | apache-2.0 | 24,005 | 606 | codeparrot/github-code |
8882cde602e5468ac2c1562dcfbdaf95985f50ff7dd8e56c35c3c7a9c97fc002 | /*
* Copyright (C) 2015 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... | C | braille/service/jni/liblouiswrapper/LibLouisWrapper.c | google/brailleback | apache-2.0 | 9,958 | 281 | codeparrot/github-code |
e3122f87531efb302c4423c411dba80fbfdf2c64cb9f145fcbd7c1f252b1727a | =pod
=head1 NAME
MD2, MD4, MD5, MD2_Init, MD2_Update, MD2_Final, MD4_Init, MD4_Update,
MD4_Final, MD5_Init, MD5_Update, MD5_Final - MD2, MD4, and MD5 hash functions
=head1 SYNOPSIS
#include <openssl/md2.h>
The following functions have been deprecated since OpenSSL 3.0, and can be
hidden entirely by defining B<OPE... | Perl | doc/man3/MD5.pod | openssl/openssl | apache-2.0 | 3,618 | 116 | codeparrot/github-code |
b53557299e3c31e90060320496c27e042a401e854040e9088f3a40e173b8db70 | const interfaceColModel = require('../models/interfaceCol.js');
const interfaceCaseModel = require('../models/interfaceCase.js');
const interfaceModel = require('../models/interface.js');
const projectModel = require('../models/project.js');
const baseController = require('./base.js');
const yapi = require('../yap... | JavaScript | server/controllers/interfaceCol.js | YMFE/yapi | apache-2.0 | 27,445 | 877 | codeparrot/github-code |
954361a5270e74c1fbc1f2881b012ed24459a91cbd4ee28e3c3fbf93faf8455a | package net.sweet.test.submit;
import net.sweet.test.base.ApplicationContextTest;
import com.gtm.cpims.business.datacollection.submit.OfficialDataExecutor;
public class OfficialDataExecutorTestCase extends
// AbstractDependencyInjectionSpringContextTests
ApplicationContextTest {
private OfficialDat... | Java | test/net/sweet/test/submit/OfficialDataExecutorTestCase.java | YangYongZhi/cpims | apache-2.0 | 3,912 | 77 | codeparrot/github-code |
ab1391c6f4f631bf61344f930ee9acda733307c63976cc0aa494731fbaa20a90 | /*******************************************************************************
* Copyright 2011 See AUTHORS file.
*
* 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.a... | Java | backends/gdx-backend-robovm/src/com/badlogic/gdx/backends/iosrobovm/IOSApplication.java | lordjone/libgdx | apache-2.0 | 12,727 | 440 | codeparrot/github-code |
2dfe703f43733cc8acba9fd58fae1f2703d7adb4ca26e127bb703de68ccae075 | package com.example;
import org.eclipse.jetty.server.Server;
import org.eclipse.jetty.webapp.WebAppContext;
/**
*
* This class launches the web application in an embedded Jetty container.
* This is the entry point to your application. The Java command that is used for
* launching should fire this main method.
*... | Java | src/main/java/com/example/Main.java | jwalter/linkpark | apache-2.0 | 1,641 | 49 | codeparrot/github-code |
0526a63186c9f8c290b489a287b84bf64ba7a51d2324a57bf234e76fd633f52e | /// <reference path="../../includes.ts"/>
/// <reference path="dockerRegistryHelpers.ts"/>
/// <reference path="dockerRegistryPlugin.ts"/>
module DockerRegistry {
export var TagController = controller("TagController", ["$scope", ($scope) => {
$scope.selectImage = (imageID:string) => {
$scope.$emit("Docker... | TypeScript | plugins/docker-registry/ts/list.ts | hawtio/hawtio-wiki | apache-2.0 | 2,710 | 73 | codeparrot/github-code |
476131cf475c461c57b8f296f4a7b24e4caa1c9b8871e96abc732779b9c35242 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace FeatureToggle.Core.ToggleTypes
{
public class DateFromToggle : IToggle
{
public bool IsOn()
{
if (_featureName == default(string)) throw new ArgumentExcepti... | C# | FeatureToggle/Core/ToggleTypes/DateFromToggle.cs | balarvs2002/FeatureToggle | apache-2.0 | 1,021 | 32 | codeparrot/github-code |
18c31d32fdca22fee4c030a8822a8529b2a5b49da14a9a663768dfd5241ee5f4 | // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
using System;
using System.Composition;
using Microsoft.CodeAnalysis;
using Microsoft.CodeAnalysis.Host;
using Micr... | C# | src/VisualStudio/Core/Def/Implementation/Remote/RemoteHostClientServiceFactory.WorkspaceEventListener.cs | reaction1989/roslyn | apache-2.0 | 1,199 | 33 | codeparrot/github-code |
da35288000df56cd6181b01a4d3c72c446896d1bc51e0bfa19d7fafe0a57e48c | /*
* Copyright 2017 ThoughtWorks, 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 agr... | Java | server/src/test-integration/java/com/thoughtworks/go/domain/activity/StageResultCacheTest.java | jyotisingh/gocd | apache-2.0 | 5,597 | 139 | codeparrot/github-code |
4e215b69f46dd381675e50d3789238922ce374b07e37ac673fd4d106178b3f53 | package io.vertx.ext.auth.oauth2.providers;
import io.vertx.codegen.annotations.VertxGen;
import io.vertx.core.Vertx;
import io.vertx.core.http.HttpClientOptions;
import io.vertx.ext.auth.oauth2.OAuth2Auth;
import io.vertx.ext.auth.oauth2.OAuth2ClientOptions;
import io.vertx.ext.auth.oauth2.OAuth2FlowType;
/**
* Sim... | Java | vertx-auth-oauth2/src/main/java/io/vertx/ext/auth/oauth2/providers/HerokuAuth.java | nevenr/vertx-auth | apache-2.0 | 1,565 | 46 | codeparrot/github-code |
3d565c66c27e66082bc97551a3b5370424357600c3b1d204a5711862c897fd93 | package de.fhg.iais.asc.xslt.timeparser.transformation;
/** An element in a rule's input or output specification. Created by {@link PatternParser}. */
public class Token {
enum Type {
GENERIC_VARIABLE, MONTH_REPLACEMENT_VARIABLE, WEEKDAY_REPLACEMENT_VARIABLE, TEXT
}
protected final String pattern... | Java | ASC_XMLTransformer/src/main/java/de/fhg/iais/asc/xslt/timeparser/transformation/Token.java | Deutsche-Digitale-Bibliothek/ddb-backend | apache-2.0 | 1,708 | 66 | codeparrot/github-code |
296996a37ca79936e81142b0c163f8612138577dc4b8dc691764c357aaeea6d5 | import json
import networkx as nx
from pybbn.graph.edge import Edge, EdgeType
from pybbn.graph.graph import Graph
from pybbn.graph.node import BbnNode
from pybbn.graph.variable import Variable
class Dag(Graph):
"""
Directed acyclic graph.
"""
def __init__(self):
"""
Ctor.
""... | Python | pybbn/graph/dag.py | vangj/py-bbn | apache-2.0 | 11,592 | 410 | codeparrot/github-code |
fd72337d2ad707c1f5e0bd15d4c0aa6579fc221489fb5199c14cba068eb40e8a | // pssr.cpp - originally written and placed in the public domain by Wei Dai
#include "pch.h"
#include "pssr.h"
#include "misc.h"
#include <functional>
NAMESPACE_BEGIN(CryptoPP)
// more in dll.cpp
template<> const byte EMSA2HashId<RIPEMD160>::id = 0x31;
template<> const byte EMSA2HashId<RIPEMD128>::id = ... | C++ | src/cryptopp/pssr.cpp | OpenNetworking/gcoin-community | apache-2.0 | 6,246 | 162 | codeparrot/github-code |
4eb81b6746df8329774ff16d1e7ac586db076ff45d680223cf95474deb81de8d | """
tflite backend (https://github.com/tensorflow/tensorflow/lite)
"""
# pylint: disable=unused-argument,missing-docstring,useless-super-delegation
from threading import Lock
try:
# try dedicated tflite package first
import tflite_runtime
import tflite_runtime.interpreter as tflite
_version = tflite_... | Python | mlperf/backend_tflite.py | plaidml/plaidml | apache-2.0 | 1,874 | 63 | codeparrot/github-code |
e5070d25a4be3df0af387af7953e41bcfb5407b044e8e9f519290d765e99b0eb | package io.quarkus.websockets.deployment;
import java.lang.reflect.Modifier;
import java.util.Collection;
import java.util.Optional;
import javax.websocket.server.ServerEndpoint;
import org.jboss.jandex.AnnotationInstance;
import org.jboss.jandex.ClassInfo;
import org.jboss.jandex.DotName;
import org.jboss.jandex.In... | Java | extensions/websockets/server/deployment/src/main/java/io/quarkus/websockets/deployment/ServerWebSocketProcessor.java | quarkusio/quarkus | apache-2.0 | 3,812 | 89 | codeparrot/github-code |
a8ad42e152210ee46ec15b6c8a85955531d87440aae05286d6892f91ee8fe52f | const crypto = require('crypto');
const R = require('ramda');
const KeycloakConfig = require('keycloak-connect/middleware/auth-utils/config');
const KeycloakGrantManager = require('../lib/keycloak-grant-manager');
const ConnectionConfig = {
baseUrl: 'http://keycloak:8080/auth',
realmName: 'lagoon',
};
const Crede... | JavaScript | services/api/src/clients/keycloakClient.js | amazeeio/lagoon | apache-2.0 | 3,405 | 108 | codeparrot/github-code |
b22132d332abdae17c8607c19ad2ab0931aaf9e23ad2fa89d7faaf0c53ea6704 | /**
* 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 | src/main/java/io/jafka/utils/Pool.java | adyliu/jafka | apache-2.0 | 2,308 | 92 | codeparrot/github-code |
8b99dfeb8b11b85b9aac0e871a1044feaa3e179c5ae827d660be106f00bc7613 | /**
* 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 | curator-x-async/src/test/java/org/apache/curator/x/async/TestBasicOperations.java | serranom/curator | apache-2.0 | 8,119 | 217 | codeparrot/github-code |
e7c3648ce10b6bd11edcd4aca50f7fe00f481d397620d3a07e3e3d51ce6c93d1 | /*
* 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-events/src/main/java/com/amazonaws/services/cloudwatchevents/model/transform/DeleteRuleRequestProtocolMarshaller.java | aws/aws-sdk-java | apache-2.0 | 2,646 | 64 | codeparrot/github-code |
d99f91af563e68ce97cc94c6808ecb81de6611097c0dde2e651b8a8e2c0d97a4 | __author__ = 'Jason Grundstad'
from django.conf import settings
from pyvirtualdisplay import Display
from selenium import webdriver
from bs4 import BeautifulSoup
import json
MD_ANDERSON_URL = 'https://pct.mdanderson.org/#/home'
MD_ANDERSON_OUTFILE = settings.LINKS_OUT + 'mdanderson.json'
def scrape_mdanderson():
... | Python | util/link_out_scraper.py | djf604/viewer | apache-2.0 | 1,060 | 41 | codeparrot/github-code |
294782ce5177cc8d7a577980d4707cd14d805993144c163de64f7eb83093d9c6 | /*
Copyright 2018 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 | staging/src/k8s.io/code-generator/_examples/apiserver/clientset/versioned/fake/register.go | hyperhq/kubernetes | apache-2.0 | 1,888 | 56 | codeparrot/github-code |
f4dad66d41b29ad788b56a835dd4f0eeab90d58ae9846b4fff243f926a390ffd | /*
* 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 | apm-collector/apm-collector-ui/collector-ui-jetty-provider/src/main/java/org/apache/skywalking/apm/collector/ui/service/ApplicationTopologyService.java | hanahmily/sky-walking | apache-2.0 | 5,079 | 88 | codeparrot/github-code |
a3f69741edd63ef0bcc27ea2ee1a170f477a95aa013b57eaeb1dbfcc40fe0cc8 | # 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 u... | Python | python/mxnet/gluon/parameter.py | fullfanta/mxnet | apache-2.0 | 31,399 | 788 | codeparrot/github-code |
c0a77f516202668dbfc6e25d765e94015421701a1af0796b6bbb353f4df3cfe3 | //===-- AsmWriter.cpp - Printing LLVM as an assembly file -----------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... | C++ | android/external/llvm/lib/IR/AsmWriter.cpp | indashnet/InDashNet.Open.UN2000 | apache-2.0 | 72,994 | 2,219 | codeparrot/github-code |
f6da769e1a06adc9fd62b6d760a311ea1a57ebe8912080f0ea35f6a99fd52653 | // Licensed to the Apache Software Foundation (ASF) under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. The ASF licenses this file
// to you under the Apache License, Version 2.0 (the
// "License"); you may... | C++ | src/parquet/util/input.cc | flode/parquet-cpp | apache-2.0 | 8,204 | 283 | codeparrot/github-code |
0abec3504fe592040cac7dc34d6d06a4c3a2f7b924bb0916150aa4ce3f9325fe | import { takeLatest, takeEvery } from 'redux-saga'
import api from 'store/api'
import { setToast, forwardTo, invokeCallback } from 'store/actions/common'
import { replaceTest, replaceTests } from 'store/actions/test'
import {
createRequestSaga
} from 'store/sagas/common'
const requestGetTestAsync = createRe... | JavaScript | client/store/sagas/test.js | tubackkhoa/tkframework | apache-2.0 | 1,814 | 69 | codeparrot/github-code |
fd028bc1d5bc1cdfe239adf62da16d44530c705963aa19388c12e7a29bf1500a | /*
* Copyright 2014, 2015 Dominick Baier, Brock Allen
*
* 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... | C# | source/Core/Endpoints/AuthenticationController.cs | remunda/IdentityServer3 | apache-2.0 | 31,972 | 739 | codeparrot/github-code |
e0d7ec94568b16d01acc812b1f14c569352399accf3a8f1c600750d53c0b9690 | # Copyright 2020 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 a... | Python | api_client/python/timesketch_api_client/credentials.py | google/timesketch | apache-2.0 | 5,272 | 167 | codeparrot/github-code |
22df97f163c852ca7e80cb0d0f45a94c30fbd4561bfd9157c7048f97286ba17b | package com.fishercoder;
import com.fishercoder.solutions._393;
import org.junit.BeforeClass;
import org.junit.Ignore;
import org.junit.Test;
import static junit.framework.Assert.assertEquals;
public class _393Test {
private static _393.Solution1 solution1;
private static boolean expected;
private static boole... | Java | src/test/java/com/fishercoder/_393Test.java | fishercoder1534/Leetcode | apache-2.0 | 791 | 38 | codeparrot/github-code |
aa99c3d92995a6cb48bba604c38ec6d8ba7d0200184eccffa494ff9bd56a1d10 | package com.example.lee.suesnews.utils;
import android.content.Context;
import android.net.ConnectivityManager;
import android.net.NetworkInfo;
import java.io.BufferedReader;
import java.io.ByteArrayOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.... | Java | app/src/main/java/com/example/lee/suesnews/utils/HttpUtils.java | Leu-Z/SuesNews | apache-2.0 | 5,430 | 193 | codeparrot/github-code |
68454b3e215465fad860b6b330aec5ac4115fdb390368c6afcaf0abf37cb2c81 | package org.opengis.cite.osxeo.util;
import java.io.File;
import java.io.IOException;
import java.net.URI;
import java.net.URL;
import java.util.logging.Level;
import javax.xml.XMLConstants;
import javax.xml.namespace.QName;
import javax.xml.stream.XMLEventReader;
import javax.xml.stream.XMLInputFactory;
im... | Java | src/main/java/org/opengis/cite/osxeo/util/ValidationUtils.java | opengeospatial/ets-osxeo10 | apache-2.0 | 5,815 | 134 | codeparrot/github-code |
aa0238e8a3392877387c42e9a81c952e91985592d41b0bbc8465dca7ba02e55a | window.addEventListener('load', function(){
//change username in form field on load based on session. For time being, hardcoded
console.log(document.getElementById("usernameField"));
}, false);
//now not needed
function submitItem(){
console.log("Sent form");
var name = document.getElementById("ite... | JavaScript | static/lend.js | GMNetto/Blend | apache-2.0 | 1,763 | 39 | codeparrot/github-code |
7fdb57172ee8568b7c331208234cbadb04565edb7a67d51e594d939c6139d803 | /*
* Copyright (c) 2008-2013 EMC Corporation
* All Rights Reserved
*/
package com.emc.storageos.model.vpool;
import java.util.LinkedHashSet;
import java.util.Set;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlElementWrapper;
import javax.xml.bind.annotation.XmlRootElement;
@Xml... | Java | models/src/main/java/com/emc/storageos/model/vpool/BlockVirtualPoolRestRep.java | emcvipr/controller-client-java | apache-2.0 | 9,397 | 320 | codeparrot/github-code |
04ebd71a15286fcaf6e200b25a2e1ec6c1947cc233efa3919769dc859f4936e6 | /*
* Copyright 2017-2018 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by ap... | Java | digitalascent-core-aws-lambda/src/main/java/com/digitalascent/core/aws/lamdba/framework/exception/BadRequestException.java | cslee00/digitalascent-core | apache-2.0 | 1,017 | 33 | codeparrot/github-code |
e3a9ef0af581ddd14edc5fcab00c02100722b267b0934d4ce626c4d80003eb7d | /**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you... | Java | src/mapred/org/apache/hadoop/mapred/JobClient.java | shot/hadoop-source-reading | apache-2.0 | 59,363 | 2,008 | codeparrot/github-code |
b53d180f9fc7ce64fa2db6fc783a950b9ff4d5caa9420775de3e36c5509b5922 | /*
* Copyright (C) 2011 René Jeschke <rene_jeschke@yahoo.de>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless re... | C | src/main/native/jpa.c | rjeschke/jpa | apache-2.0 | 17,142 | 466 | codeparrot/github-code |
5b8ad78c785e18d8a1a3c49f3c7639d6ce4245bda029d387432396dc3993f03e | /* -------------------------------------------------------------------- */
/* ACCORDS PLATFORM */
/* (C) 2011 by Iain James Marshall (Prologue) <ijm667@hotmail.com> */
/* -------------------------------------------------------------------- */
/* Licensed under th... | C | cosacs/cosacs.c | compatibleone/accords-platform | apache-2.0 | 31,641 | 1,090 | codeparrot/github-code |
3a88f5d6d5b5a17605d81ac244f39691f07020718b2230a941f4d86c4936961f | /*
Copyright IBM Corp 2016 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 writ... | GO | chaincode/src/chaincode_finished.go | jrigassio/bach-chain | apache-2.0 | 3,399 | 124 | codeparrot/github-code |
ac5eda6fd6be6b6615b29b32f8bf74e5a4bd3371bfdb31a288baca2bf1adbadc | /*=========================================================================
*
* Copyright Insight Software Consortium
*
* 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
*
* h... | C | Modules/Filtering/FFT/include/itkFFTWHalfHermitianToRealInverseFFTImageFilter.h | eile/ITK | apache-2.0 | 5,180 | 139 | codeparrot/github-code |
07346e45284b7561cc5f777b80539bad7140629cfea16c42288f8691ff7b45d4 | /*
* 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.dinglicom.order.domain;
import com.fasterxml.jackson.annotation.JsonFormat;
import java.util.Date;
import org.springframe... | Java | src/main/java/com/dinglicom/order/domain/PayItem.java | pzjack/webframe | apache-2.0 | 4,720 | 221 | codeparrot/github-code |
6b8f1d8ad192ec4e11869bdff77eb5e4c82d6e010847e0efbeab79c1ea9706d8 | /*
* Copyright 2013 Guidewire Software, Inc.
*/
package gw.plugin.ij.lang.parser;
import com.intellij.psi.PsiExpression;
import com.intellij.psi.PsiExpressionStatement;
import com.intellij.psi.PsiType;
import gw.lang.parser.statements.IBeanMethodCallStatement;
import gw.plugin.ij.lang.psi.api.statements.IGosuStatem... | Java | idea-gosu-plugin/src/main/java/gw/plugin/ij/lang/parser/GosuBeanMethodCallStatementImpl.java | gosu-lang/old-gosu-repo | apache-2.0 | 937 | 32 | codeparrot/github-code |
4f822a5e2e787e50efab4ad31b17804fd7b0c3a9a8ef8c7d1895d0c13af695fe | /*
* Copyright (C) 2014 FIZ Karlsruhe
*
* 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... | JavaScript | web-app/js/search/filterWidgetController.js | Deutsche-Digitale-Bibliothek/apd | apache-2.0 | 6,612 | 213 | codeparrot/github-code |
fd5dd1cf6aa84eef6ba4f5602ea1da71ab010bb2abf232410620dc17b32190a8 | require('libraries/playertables')
require('libraries/containers')
local unit = PlayerResource:GetSelectedHeroEntity(0)
GameRules:SetUseUniversalShopMode(true)
if cc then
cc:Delete()
end
cc = Containers:CreateContainer({
layout = {3,4,4},
skins = {},
headerText = "Equipment",
pids = {0},
... | Lua | game/dota_addons/containersplayground/scripts/vscripts/test.lua | bmddota/ContainersPlayground | apache-2.0 | 23,868 | 767 | codeparrot/github-code |
2b27751449a48d6b3cae01e22c0e3479ed7eb176f0ede547a53d605f1614912c | package com.ricardo.casarez.flighsearch.data.entities.search.response.tripoption.pricing;
import com.google.gson.annotations.SerializedName;
/**
* Class that models response object trips.tripOption.pricing.fare.
* The fare used to price one or more segments.
* @Link https://developers.google.com/qpx-express/v1/tri... | Java | data/src/main/java/com/ricardo/casarez/flighsearch/data/entities/search/response/tripoption/pricing/Fare.java | ricasares/FlightSearch | apache-2.0 | 1,684 | 78 | codeparrot/github-code |
ede6964c4cf7baa476a92c8812c001c7b06b2920b192b775a7a92554f0dac249 | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may ... | Java | components/camel-azure-storage-blob/src/test/java/org/apache/camel/component/azure/storage/blob/integration/BlobProducerITTest.java | pmoerenhout/camel | apache-2.0 | 8,125 | 219 | codeparrot/github-code |
654a7920b2507a5e5196a281556247a25abceea20f647f399826c92a790ddb8e | /*
* Licensed to CRATE Technology GmbH ("Crate") under one or more contributor
* license agreements. See the NOTICE file distributed with this work for
* additional information regarding copyright ownership. Crate licenses
* this file to you under the Apache License, Version 2.0 (the "License");
* you may not us... | Java | sql/src/main/java/io/crate/operation/reference/sys/shard/ShardPartitionIdentExpression.java | aslanbekirov/crate | apache-2.0 | 1,952 | 49 | codeparrot/github-code |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.