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 |
|---|---|---|---|---|---|---|---|---|
ee81d2554b14441f786348d7f9717390a5827b05f3d3a6bfbd370e1e7e5cf58e | /*
* 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-medialive/src/main/java/com/amazonaws/services/medialive/model/InputSource.java | aws/aws-sdk-java | apache-2.0 | 6,848 | 213 | codeparrot/github-code |
8d6332d44e9fc9611afff3637a3f61ff9a7f76c5203de85e02f3b41cd4912944 | 'use strict';
var common = require('../common');
var assert = require('assert');
var Transform = require('stream').Transform;
var _transformCalled = false;
function _transform(d, e, n) {
_transformCalled = true;
n();
}
var _flushCalled = false;
function _flush(n) {
_flushCalled = true;
n();
}
var t = new Tr... | JavaScript | test/parallel/test-stream-transform-constructor-set-methods.js | dreamllq/node | apache-2.0 | 581 | 33 | codeparrot/github-code |
877b6008e40b800d6402c39c66593d39ec329f75f3689eb0bef9abe17119368f | /*
* Copyright 2019 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/server/dao/AccessTokenSqlMapDaoIntegrationTest.java | jyotisingh/gocd | apache-2.0 | 3,919 | 111 | codeparrot/github-code |
e9dc688621319e35ae50fed47f30c357ba84497b7abfd7aa1bce1787131081fa | /* Copyright 2020 The TensorFlow 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, s... | C++ | tensorflow_graphics/rendering/opengl/rasterizer.cc | tensorflow/graphics | apache-2.0 | 4,114 | 103 | codeparrot/github-code |
f8541dc10d0db9570d1d35e53cc09e5ee690d8b7bd3c904cc604d7a9b3f0b84a | package org.togglz.core.repository.jdbc;
import org.h2.jdbcx.JdbcConnectionPool;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import org.mockito.Mockito;
import org.togglz.core.Feature;
import org.togglz.core.repository.FeatureState;
import org.togglz.core.repository.util.DefaultMapSeria... | Java | core/src/test/java/org/togglz/core/repository/jdbc/JDBCStateRepositoryTest.java | togglz/togglz | apache-2.0 | 9,068 | 254 | codeparrot/github-code |
06cf7d58b4b2e71ce78988f8815e2a23bfa7974f294d5cd2a2398b5e1b92ad16 | /*
* Copyright Terracotta, 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 ... | Java | offheap-resource/src/test/java/org/terracotta/offheapresource/OffHeapResourceTest.java | mathieucarbou/terracotta-platform | apache-2.0 | 2,468 | 90 | codeparrot/github-code |
864fbf01d24f95dbb9836a765aa5626cb7c005984c6c7dae9afa45abc14f7404 | package sri.web
import sri.core._
import scala.reflect.ClassTag
import scala.scalajs.js
import scala.scalajs.js.JSConverters.genTravConvertible2JSRichGenTrav
import scala.scalajs.js.`|`
import scala.scalajs.js.Dynamic.{literal => json}
package object vdom {
@inline
def addJsObjects(in: js.Object, extra: js.Obje... | Scala | web/src/main/scala/sri/web/vdom/package.scala | hamazy/sri | apache-2.0 | 2,694 | 92 | codeparrot/github-code |
3ce68c4dc47d70655b9880f2614c1004028e414a9401eff253a3d6637a8b1d15 | from os.path import dirname
import numpy as np
from ..os import open_file, exists_isdir, makedirs
from ..log import get_logger
logger = get_logger()
def read_or_write(data_f, fallback=None):
"""Loads the data file if it exists. Otherwise, if fallback is provided,
call fallback and save its return to disk.
... | Python | third_party/xiuminglib/xiuminglib/io/np.py | google/nerfactor | apache-2.0 | 1,973 | 68 | codeparrot/github-code |
59b7dc51d788e645fb005861d6691a797b81e084718e6fe1d6fdca635f020785 | /**
* 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 | lang/java/avro/src/main/java/org/apache/avro/generic/GenericData.java | cloudera/avro | apache-2.0 | 21,455 | 606 | codeparrot/github-code |
93fc261ba01db0c49441dab3644172ca4883faa5ec310de858616a8b19874566 | package com.easycodebox.common.enums.entity;
import com.easycodebox.common.enums.DetailEnum;
public enum ProjectEnv implements DetailEnum<String> {
DEFAULT("DEFAULT", "私有环境"), //私人本地开发环境
DEV("DEV", "开发环境"),
TEST("TEST", "测试环境"),
PRE("PRE", "预发环境"),
PROD("PROD", "生产环境");
private final String valu... | Java | easycode-common/src/main/java/com/easycodebox/common/enums/entity/ProjectEnv.java | easycodebox/easycode | apache-2.0 | 637 | 34 | codeparrot/github-code |
54f45bf2e9d31591f48cdcc90279427ef59d214966151384c1e195b816b20d98 | <!doctype html>
<html class="default no-js">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>"services/LocationService" | Qminder</title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="styles... | HTML | docs/modules/_services_locationservice_.html | Qminder/qminder-api | apache-2.0 | 10,945 | 230 | codeparrot/github-code |
a8cede4cd348472803aaadb5352b6d85bf5012310ae3c4c1f68611648afdc388 | package com.example.locationget.service;
import android.app.Service;
import android.content.Intent;
import android.content.SharedPreferences;
import android.os.Handler;
import android.os.IBinder;
import android.preference.PreferenceManager;
import android.support.annotation.IntDef;
import com.baidu.location.BDLocatio... | Java | app/src/main/java/com/example/locationget/service/LocateService.java | changyuan95/LocationGet | apache-2.0 | 3,598 | 99 | codeparrot/github-code |
3c6822af2229f9e716ceb9e1049b32963f10dea02e0d3040d3800bdd8d297a23 | package com.fishercoder;
import com.fishercoder.solutions._174;
import org.junit.BeforeClass;
import org.junit.Test;
import static org.junit.Assert.assertEquals;
public class _174Test {
private static _174.Solution1 solution1;
private int[][] dungeon;
@BeforeClass
public static void setup() {
solution1 ... | Java | src/test/java/com/fishercoder/_174Test.java | fishercoder1534/Leetcode | apache-2.0 | 643 | 34 | codeparrot/github-code |
cda5b04591feb0b22a7f01aee30a22fc38de991b93763ee50c31228a02a83238 | /* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*-
*
* ***** BEGIN LICENSE BLOCK *****
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
*
* The contents of this file are subject to the Mozilla Public License Version
* 1.1 (the "License"); you may not use this file except in compliance with
* the Licen... | C | pender/pender/spidermonkey/jsxml.h | lorinbeer/Pender-iOS-POC | apache-2.0 | 9,351 | 297 | codeparrot/github-code |
3b3510a38224c77b3a03cb284e9b1fb8b3e16f132a295797af5234d86b8bbc6b | package decorator_assignment;
import java.util.ArrayList;
import java.util.Scanner;
import interfaces.Receipt;
public class Client {
@SuppressWarnings({ "unchecked", "null", "resource" })
public static void main(String[] args){
Scanner in=new Scanner(System.in);
PurchasedItems items = null;
Rec... | Java | src/decorator_assignment/Client.java | mleroy26/Cosc436_DecoratorAssignment | apache-2.0 | 1,602 | 63 | codeparrot/github-code |
7502af4ac9b77aab45a4ca29099d53dbaddc603d33a594c602fea56eeb5eeff7 | #region Copyright © 2001-2003 Jean-Claude Manoli [jc@manoli.net]
/*
* This software is provided 'as-is', without any express or implied warranty.
* In no event will the author(s) be held liable for any damages arising from
* the use of this software.
*
* Permission is granted to anyone to use this s... | C# | BlogEngine.NET/App_Code/Extensions/CodeFormatter/JavaScriptFormat.cs | infanprodigy/blog-iz | apache-2.0 | 2,482 | 64 | codeparrot/github-code |
3759b70f78b600f79a299492a0c1c6bfe24e9e70577b1cba5843e43771efeab3 | ace.define("ace/keyboard/vscode",[], function(require, exports, module) {
"use strict";
var HashHandler = require("../keyboard/hash_handler").HashHandler;
var config = require("../config");
exports.handler = new HashHandler();
exports.handler.$id = "ace/keyboard/vscode";
exports.handler.addCommands([{
name: "tog... | JavaScript | src/sap.ui.codeeditor/src/sap/ui/codeeditor/js/ace/keybinding-vscode.js | SAP/openui5 | apache-2.0 | 8,190 | 262 | codeparrot/github-code |
e11b1e8271a42dd1b519c5ba641cfe70e4f07b5a736ccdc3267bbb216b450f30 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href="http://allfont.net/allfont.css?fonts=arial-narrow" rel="stylesheet" type="tex... | HTML | WarGames/WOT_welcome_v3/index.html | wim-agency/wim-agency.github.io | apache-2.0 | 40,467 | 550 | codeparrot/github-code |
e1f2cd1582dfd1d7f95f210056524f60dbc614aa9bff6b6ff8dcda4108c80a5d | using System;
using System.Security.Cryptography;
using UnityEngine;
public static class Util {
private static readonly RNGCryptoServiceProvider _generator = new RNGCryptoServiceProvider();
// Array extenson.
public static T[] Copy<T>(this T[] array) {
T[] ret = new T[array.Length];
for (int i = 0; i < array... | C# | ProjectMinotaur/Assets/Script/Core/Util.cs | TrickWaterArts/ProjectMinotaur | apache-2.0 | 1,147 | 41 | codeparrot/github-code |
44d357fddc53b180a5ff9335164a7ddb113a4c2fe5aa56d428ce5e474610099b | var getColor = function (value, p, record) {
return "<span style='color:blue;'>" + value + "</span>";
}
var getDayNumber = function (value, p, record) {
if (value == "" || value == 0) {
return "<span style='float:right;'>0</span>";
}
return "<b style='float:right;color:blue;'>" + value... | JavaScript | Austfeed/Modules/ChamCongDoanhNghiep/Resource/JsQuanLyNgayPhep.js | blackapple2017/qAustfeed | apache-2.0 | 3,982 | 128 | codeparrot/github-code |
461ef303c0982b6e96179cf9cdb21d6d6404b3b6173fad5b5e8070f89d87d3f8 | /*
* Copyright 2015 Clinical Personalized Pragmatic Predictions of Outcomes.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Un... | Java | dev/c3po-angularjs-visualization/rule/src/main/java/org/clinical3po/backendservices/rule/dependency/AddDependencyRule.java | Clinical3PO/Platform | apache-2.0 | 4,898 | 106 | codeparrot/github-code |
a47f7dc486c9c49dfdcbaed42a1ddc4a3d84e83cd8269ffcc1a6916765457c11 | package org.easyarch.slardar.session.impl;
import org.easyarch.slardar.cache.ProxyCache;
import org.easyarch.slardar.cache.factory.ProxyCacheFactory;
import org.easyarch.slardar.jdbc.exec.AbstractExecutor;
import org.easyarch.slardar.jdbc.handler.BaseTypeResultSetHandler;
import org.easyarch.slardar.jdbc.handler.BeanL... | Java | src/main/java/org/easyarch/slardar/session/impl/MapperDBSession.java | rpgmakervx/slardar | apache-2.0 | 2,965 | 100 | codeparrot/github-code |
3d0576e508c83c3a13cf1dd5d10cc31ca3bdd114dc96ff88e275d1ddb0897159 | /*
* Copyright (c) 2015 Aysenur Bilgin
*/
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package fcc;
import fuzzylogic.generic.Resource;
import fuzzylogic.generic.Tuple;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.Iterator;
import j... | Java | src/fcc/FCCResource.java | aysenurbilgin/cww_framework | apache-2.0 | 13,282 | 363 | codeparrot/github-code |
ecd75d0f08471ceacb259dd61ed406556aeb860297ab5395ff119086fd06d6ef | package com.communote.server.core.user;
import java.io.Serializable;
import java.util.HashMap;
import java.util.Locale;
import com.communote.server.model.user.UserName;
import com.communote.server.model.user.UserStatus;
/**
* Details of a user
*
* @author Communote GmbH - <a href="http://www.communote... | Java | communote/persistence/src/main/java/com/communote/server/core/user/UserProfileDetails.java | Communote/communote-server | apache-2.0 | 5,701 | 224 | codeparrot/github-code |
451d11e6b9c0bec50795a2a538e279ac3ed8b9342d7333f40865549106c73f3a | package com.terradue.warhol.client.cli;
/*
* Copyright 2011-2012 Terradue srl
*
* 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/LICE... | Java | client/cli/src/main/java/com/terradue/warhol/client/cli/Warhol.java | Terradue/warhol | apache-2.0 | 10,028 | 317 | codeparrot/github-code |
1ae9a79218fe8c9e80951b303cafaab0dd06780de1e0cd9013d795e36c0b6c37 | /*!
* ${copyright}
*/
sap.ui.define([
"jquery.sap.global", "./_AnnotationHelperBasics"
], function (jQuery, _AnnotationHelperBasics) {
"use strict";
/*global Promise */
var oBoolFalse = { "Bool" : "false" },
oBoolTrue = { "Bool" : "true" },
// maps V2 sap:semantics value for a date part to corresponding V4... | JavaScript | src/sap.ui.core/src/sap/ui/model/odata/_ODataMetaModelUtils.js | nzamani/openui5 | apache-2.0 | 38,791 | 1,139 | codeparrot/github-code |
fb7727ce8f46d8f9a84c48040ed07a6bf52e371b46d5c4f640e400f38b09ee88 | #! /usr/bin/ruby1.9.3 -sWKu
# -*- coding: utf-8 -*-
#
# Copyright 2011 Yusuke KAWAKAMI, Akihiro ARISAWA
#
# 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... | Ruby | ruby/bin/enclient.rb | jeffkowalski/evernote-mode | apache-2.0 | 52,362 | 1,954 | codeparrot/github-code |
055c794d500b552102692362b8c949a65b59ac71112693d9633a5e41c0e5594a | /*
* 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 | java/compiler/impl/src/com/intellij/compiler/impl/CompileContextImpl.java | jexp/idea2 | apache-2.0 | 14,668 | 436 | codeparrot/github-code |
ad55ef569b12c4dd407e78773d72053b7cc6b0339b50e217e7c297f996ab4778 | /*
* Copyright 2006-2016 Edward Smith
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... | Java | src/root/lang/reflect/StaticPrimitiveField.java | macvelli/RootFramework | apache-2.0 | 3,554 | 128 | codeparrot/github-code |
14bcd724108ae502bac8fd1e623ac06b60b4469d042929ce38695b28dea1cd73 | /*global QUnit, sinon */
sap.ui.define([
'sap/ui/test/Opa',
'sap/ui/test/Opa5',
"sap/m/Button",
"sap/m/Input",
"sap/ui/test/matchers/PropertyStrictEquals",
"sap/ui/test/matchers/Ancestor",
"sap/ui/test/matchers/Descendant",
"sap/ui/test/matchers/MatcherFactory",
"sap/ui/layout/HorizontalLayout"
], function (Op... | JavaScript | src/sap.ui.core/test/sap/ui/core/qunit/opa/opa5/matchers.qunit.js | SAP/openui5 | apache-2.0 | 18,298 | 672 | codeparrot/github-code |
a5c6dfaf05f5fa5f1972658cafe155684868544eaba40da54b95941773117f0c | package com.example.darsh.model;
import com.google.gson.annotations.Expose;
import com.google.gson.annotations.SerializedName;
import java.util.ArrayList;
/**
* Created by darshan on 9/6/16.
*/
public class MovieReviews {
@Expose
@SerializedName("page")
private int page;
@Expose
@SerializedNam... | Java | app/src/main/java/com/example/darsh/model/MovieReviews.java | darsh2/PopularMovies | apache-2.0 | 1,226 | 60 | codeparrot/github-code |
130f510baa52ba70c38eb9c15e48bdc5e00fe339abe2946e5437ef9918c59151 | /*
* Copyright 2015 Entwine AG, Switzerland
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law o... | Java | src/main/java/com/entwinemedia/fn/data/AbstractImmutableSetBuilder.java | entwinemedia/functional | apache-2.0 | 983 | 32 | codeparrot/github-code |
b2bea2fdd002a7fad17398c6fd548f0ee82b21fddd0b8834317e6ce232a32174 | use crate::*;
use std::alloc::Layout;
pub static mut APPS2: Vec<Application> = Vec::new();
static LOGGER: WebConsoleLogger = WebConsoleLogger {};
struct WebConsoleLogger {}
impl log::Log for WebConsoleLogger {
fn enabled(&self, metadata: &log::Metadata) -> bool {
metadata.level() <= log::max_level()
... | Rust | sources/rust/relm/runtime/src/wasm.rs | xunilrj/sandbox | apache-2.0 | 8,112 | 280 | codeparrot/github-code |
3c62efc8988764319e5099deee2a254ab75ed36b7336f1a6801f2b879ae89576 | /* BLINK.C - Implements the blink stuff
*
* Copyright 1993-2015 CIX Online 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/... | C | Ameol232/blink.c | cixonline/ameol | apache-2.0 | 62,212 | 1,981 | codeparrot/github-code |
191fb9ff245a2806febda7e9d99bdad21f483c1774ef0188feedfad2a4cddcc6 | package com.shanlin.sltableview.fragment.bean;
/**
* Created by Shanlin on 2017/3/15.
*/
public class DateSelectorBean extends CellBaseBean {
private int icon;
private String content;
private String date;
public DateSelectorBean() {
super(CellType.CELL_TYPE_DATE_SELECTOR);
}
public... | Java | app/src/main/java/com/shanlin/sltableview/fragment/bean/DateSelectorBean.java | xiaoshanlin000/SLTableView | apache-2.0 | 812 | 43 | codeparrot/github-code |
af9b93d91a0f1fa3332f585c607abb394dc8654f4efad868f55336f950f4b98d | /* Copyright 2017 The TensorFlow Authors. 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... | C++ | tensorflow/contrib/tpu/ops/infeed_ops.cc | Bulochkin/tensorflow_pack | apache-2.0 | 3,698 | 108 | codeparrot/github-code |
dab80c9a3b131930310a75b597b7297f4e3f26e255f2e8296d9f0b87ce89e7c5 | # 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 agreed to in writing, ... | Ruby | generated/google-apis-managedidentities_v1/lib/google/apis/managedidentities_v1/representations.rb | googleapis/google-api-ruby-client | apache-2.0 | 34,056 | 880 | codeparrot/github-code |
94a1e6a80edbf259397657ea4e3e5da03d43fb6eaae9a4417365a2c0b89f9d10 | // Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System;
using System.Collections.Generic;
using System.Collections.Immutable;
using System.Linq;
using System.Threading;
using Microsoft.CodeAnalysis.C... | C# | src/Workspaces/CSharp/Portable/LanguageServices/CSharpTypeInferenceService.TypeInferrer.cs | paladique/roslyn | apache-2.0 | 87,383 | 1,666 | codeparrot/github-code |
18d48e970f2c06bd698fa7844c0cc83fbc0184fddfae6166ecdf6f2acc402285 | # old single process tictactoe game to be rewritten....
import numpy
import os
class TicTacToePlayer:
def __init__(self, playerType, playerName, ttt_game_settings):
if playerType not in ['AI', 'Terminal']:
raise(ValueError())
self.type=playerType
self.name=playerName
self.board_size = ttt_game_settings['... | Python | ThreadedTicTacToe/_old/ttt.py | dirrelito/animated-invention | apache-2.0 | 5,563 | 178 | codeparrot/github-code |
160d2950446f0c8c77acd348de4b6bfcac6febf73a975f849c924b13feaa7c06 | namespace MT5LiquidityIndicator.Net.View
{
partial class ChartSettingsDialog
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
/// <param name="disposing">true... | C# | Source/MT5LiquidityIndicator/MT5LiquidityIndicator.Net/View/ChartSettingsDialog.Designer.cs | marmysh/MT5-Liquidity-Indicator | apache-2.0 | 3,895 | 115 | codeparrot/github-code |
84123747dcf6913accca01c36ba868740bd7c187d4b79949a216404911d3636d | /*
* 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
* distri... | Java | ngrinder-controller/src/main/java/org/ngrinder/region/service/RegionService.java | naver/ngrinder | apache-2.0 | 6,162 | 183 | codeparrot/github-code |
77d6c6db2d5fe76caf89a00ab898883374a53f916092fc2d8966cb87f6b26192 | /**
* Copyright 2015 Peter Nerg
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... | Java | src/main/java/simplepool/PoolImpl.java | pnerg/simple-pool | apache-2.0 | 5,386 | 176 | codeparrot/github-code |
1573b0ea8c3a702695c194492d10417a4fd3b20e3ea1c156775dd6b6378e0b77 | /*
* Copyright 2015-2016 Eurocommercial Properties 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 ... | Java | backend/app/src/main/java/org/incode/eurocommercial/contactapp/app/fixture/scenarios/DemoFixture.java | incodehq/contactapp | apache-2.0 | 3,058 | 86 | codeparrot/github-code |
4f8bb699ea556764542f63220a15681eb45b6c65dda2a52afe64d2c3526699ce | /*
* 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 | platform/src/main/java/net/firejack/platform/core/store/version/UIDStore.java | firejack-open/Firejack-Platform | apache-2.0 | 5,531 | 171 | codeparrot/github-code |
cb417a57b1c533896f745cc48b9f9246cf7646840578c28e2baf92569b7531e9 | var net = require('net');
Stomp = require('./stomp');
wrapTCP = function(port, host) {
var socket, ws;
socket = null;
ws = {
url: 'tcp:// ' + host + ':' + port,
send: function(d) {
return socket.write(d);
},
close: function() {
return socket.end();
}
};
socket = net.connect(po... | JavaScript | websocket/testSocketIO.js | starksm64/RaspberryPiBeaconParser | apache-2.0 | 753 | 34 | codeparrot/github-code |
1e8575b6c54025d4fb5c8a0b87787d18b48b24043dd9233d5bb4d1cf27f1505b | import os
import numpy as np
from sklearn.datasets import load_iris
from sklearn.ensemble import RandomForestClassifier
import shap
import mlflow
# prepare training data
X, y = load_iris(return_X_y=True, as_frame=True)
# train a model
model = RandomForestClassifier()
model.fit(X, y)
# log an explanation
with mlf... | Python | examples/shap/multiclass_classification.py | mlflow/mlflow | apache-2.0 | 964 | 37 | codeparrot/github-code |
4d450ce94fed93c9688edcfa25481f2db988d44dfd66c4b6cc1859c4e6c6dc7d | =head1 LICENSE
Copyright [1999-2015] Wellcome Trust Sanger Institute and the EMBL-European Bioinformatics Institute
Copyright [2016-2020] EMBL-European Bioinformatics Institute
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obta... | Perl | modules/Bio/EnsEMBL/Operon.pm | james-monkeyshines/ensembl | apache-2.0 | 10,752 | 407 | codeparrot/github-code |
f5824cecfffed20d7cb14d956fd4f37cf77c5b6830086421f2c80762aece9e35 | /*
[多线程]生产者消费者模型的BOOST实现
http://blog.csdn.net/bendanban/article/details/50681114
http://www.it165.net/pro/html/201602/61109.html
libuv生产者,消费者模型
http://www.it165.net/pro/html/201504/39247.html#
*/
#include <iostream>
#include <queue>
#include "boost/thread.hpp"
#include "boost/thread/condition.hpp"
#include "boost/thr... | C++ | boost/thread/producer_consumer.cpp | zhoulipeng/cppwork | apache-2.0 | 3,346 | 135 | codeparrot/github-code |
15dbc3faa3880396f49fae77c0b3dc11a3225737e084e18b5a74395f557dc905 | /*
* Copyright (C) 2018 Satomichi Nishihara
*
* 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/burai/atoms/viewer/operation/mouse/MouseEventEditorMenu.java | BURAI-team/burai | apache-2.0 | 1,564 | 52 | codeparrot/github-code |
38844e753f62bfb95e2165fc01345bba317ad2379ca70f88a591f50b4cd13296 | //-----------------------------------------------------------------------
// <copyright file="GetProductPrices.cs" company="Sitecore Corporation">
// Copyright (c) Sitecore Corporation 1999-2015
// </copyright>
// <summary>Pipeline is used to get product prices</summary>
//-----------------------------------------... | C# | CS/CSF/Connect/Pipelines/Prices/GetProductPrices.cs | Sitecore/sccs-demo | apache-2.0 | 5,649 | 109 | codeparrot/github-code |
1ce1a5a13d36f83cde7fd11dbe64a32ee4fa74d8aadfd7e687442582a80fe372 | const path = require('path');
const fs = require('fs');
const { flattenDeep, memoize } = require('lodash');
function locateSourceFile(modulesPath, moduleName, importPath = '') {
const srcPrefixes = ['src', ''];
const indexFiles = ['', 'index'];
const extensions = ['.ts', '.tsx', '.js', '.jsx'];
const paths = ... | JavaScript | packages/eslint-plugin/utils/import-aliases.js | duftler/deck | apache-2.0 | 3,812 | 108 | codeparrot/github-code |
4480a42b899361dddcb9dfc557d79e6d71aaee094e309c63173c97652e5ef827 | /*
* Copyright 2016-2017 Testify 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 law or... | Java | modules/junit4/junit4-core/src/test/java/org/testifyproject/junit4/VerifyInteractionTest.java | testify-project/testify | apache-2.0 | 1,938 | 68 | codeparrot/github-code |
05842de10c5f4551d10a663f3cf648dbf758f7a0d3e0ee87f34d4680be654de9 | package io.quarkus.panache.common.deployment.visitors;
import static io.quarkus.deployment.util.AsmUtil.getDescriptor;
import static io.quarkus.deployment.util.AsmUtil.getLoadOpcode;
import static io.quarkus.deployment.util.AsmUtil.getSignature;
import static io.quarkus.deployment.util.AsmUtil.unboxIfRequired;
import ... | Java | extensions/panache/panache-common/deployment/src/main/java/io/quarkus/panache/common/deployment/visitors/KotlinPanacheClassOperationGenerationVisitor.java | quarkusio/quarkus | apache-2.0 | 25,618 | 579 | codeparrot/github-code |
cf618c84a2d601471601e1f7a8137f467bedf924df087669cbd71df81ac7d14c | /**
* 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 | lens-client/src/main/java/org/apache/lens/client/jdbc/LensJdbcStatement.java | RaghavendraSingh/lens | apache-2.0 | 9,775 | 413 | codeparrot/github-code |
29c32f6aad3f3133650bd1ce80e50210a0fa09641c00c49373e82792ec76996f | package org.daisy.dotify.hyphenator.impl;
import java.io.IOException;
import java.net.URL;
import java.util.HashMap;
import java.util.Map;
import java.util.Properties;
import java.util.logging.Logger;
import org.daisy.dotify.api.hyphenator.HyphenatorConfigurationException;
class CWHyphenatorCore {
private static CW... | Java | libs/dotify/dotify.hyphenator.impl/src/org/daisy/dotify/hyphenator/impl/CWHyphenatorCore.java | daisy/pipeline-issues | apache-2.0 | 1,820 | 65 | codeparrot/github-code |
9f6174a41a2c42ddb1485ad8693d1dc2db673859652e9566dfe7d3cb046a3e88 | package org.hyperimage.client.image;
import java.awt.Dimension;
import java.awt.image.BufferedImage;
import java.io.IOException;
import java.net.HttpURLConnection;
import java.net.MalformedURLException;
import java.net.URL;
import java.util.logging.Level;
import java.util.logging.Logger;
import org.imgscalr.Scalr;
im... | Java | HIImage/src/main/java/org/hyperimage/client/image/HiImageImplDigilib.java | DAASI/HyperImage3 | apache-2.0 | 2,276 | 69 | codeparrot/github-code |
0a9fe14ee2b58effb832be4f37f3420a654ade656caa72b5f582590955842c19 | #!/usr/bin/env perl
# Copyright [1999-2015] Wellcome Trust Sanger Institute and the EMBL-European Bioinformatics Institute
# Copyright [2016-2021] EMBL-European Bioinformatics Institute
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License... | Perl | scripts/import/parallel_read_coverage.pl | Ensembl/ensembl-variation | apache-2.0 | 5,728 | 172 | codeparrot/github-code |
f63280b260ce01e7ef8ee0b755f7cf2d45fe0f04df49daf034d2bd567cdd4b1b | /*
* Copyright DataStax, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in wri... | Java | core/src/main/java/com/datastax/dse/driver/internal/core/insights/schema/Insight.java | datastax/java-driver | apache-2.0 | 1,557 | 51 | codeparrot/github-code |
50660045e868b58d4d2f481b53dfb5eeff668a69cb5accd5823841b26ce6663b | #ifndef PointTreeModel_H
#define PointTreeModel_H
#include <QAbstractItemModel>
#include <QModelIndex>
#include <QVariant>
class PointTreeItem;
class PointTreeModel : public QAbstractItemModel
{
Q_OBJECT
public:
PointTreeModel(const QStringList &headers, const QString &data, QObject *parent = 0);
~PointTreeMo... | C | base_placement_plugin/include/base_placement_plugin/point_tree_model.h | ros-industrial-consortium/reuleaux | apache-2.0 | 1,559 | 43 | codeparrot/github-code |
648262eaa66357d52be60c795748daddcee92322c98e7867e2dd802d3575f48b | /**
* 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/com/pinterest/pinlater/example/PinLaterExampleWorker.java | pinterest/pinlater | apache-2.0 | 8,243 | 198 | codeparrot/github-code |
8b1f263ca35df2d55bd5fee43cef14d67bf7849d78a34825552478c618f9cb55 | /**
* 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"); yo... | Java | core/src/java/redpoll/clusterer/canopy/Canopy.java | coderplay/redpoll | apache-2.0 | 6,785 | 209 | codeparrot/github-code |
70ffe5416f66eab94b4ebd92c29b5f8ef04bda9287ae6f48a8003437149c9aab | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html lang="en">
<head>
<title>Source code</title>
<link rel="stylesheet" type="text/css" href="../../../../../../stylesheet.css" title="Style">
</head>
<body>
<div class="sourceContainer">
<pre><span class="sourceLin... | HTML | docs/apidocs/src-html/com/garygregory/jcommander/converters/time/ZoneOffsetConverter.html | garydgregory/jcommander-addons | apache-2.0 | 6,165 | 138 | codeparrot/github-code |
7135630cb6486855cb0d16a45c1226e39e08cdfbc9d6eb0df229483f5485fa86 | /*
* Copyright 2012-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 | initializr-generator/src/test/java/io/spring/initializr/generator/ProjectGeneratorTests.java | bclozel/initializr | apache-2.0 | 35,659 | 932 | codeparrot/github-code |
8912bb14f8313f3f119aee587258193a108f87fedeece238c76a5fc12be63504 | package com.vagabondlab.costanalyzer;
import java.sql.SQLException;
import java.util.List;
import org.joda.time.DateTime;
import org.joda.time.format.DateTimeFormat;
import org.joda.time.format.DateTimeFormatter;
import android.annotation.SuppressLint;
import android.app.ProgressDialog;
import android.content.Intent... | Java | src/com/vagabondlab/costanalyzer/MonthlyReportActivity.java | kuvic16/CostAnalyzer | apache-2.0 | 11,524 | 339 | codeparrot/github-code |
36d8dbfabd9a4a7f8c7d7a406b7f9c66e3614986e022c0a0a3767d62b05034c5 | /*
* Copyright 2013 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 i... | Java | core/src/main/java/com/rimbit/rimbit/crypto/TransactionSignature.java | Rimbit/rimbitj | apache-2.0 | 7,938 | 172 | codeparrot/github-code |
c31da7dff56bce52ba9193db00f86bbe9847c7b99577890eb4fdcfa701f12217 | "use strict";
//
// Bot Player
// assignmentClientPlayer.js
// Created by Milad Nazeri on 2019-06-06
// Copyright 2019 High Fidelity, Inc.
//
// Distributed under the Apache License, Version 2.0.
// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
//
(function() {
// **... | JavaScript | usefulUtilities/botPlayer/assignmentClientPlayer.js | RebeccaStankus/hifi-content | apache-2.0 | 6,999 | 259 | codeparrot/github-code |
87c76832fef35b2e47d5c0e82c4e904bc41bf93f76b0ac0559869e8f7b740813 | #!/usr/bin/env python3
#
# Copyright (c) 2015, Roberto Riggio
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
# * Redistributions of source code must retain the above copyright
# notice, t... | Python | empower/apps/zephyr/zephyr.py | LokiNetworks/empower-runtime | apache-2.0 | 17,023 | 387 | codeparrot/github-code |
86c547185b1f69bd71dd0deaf7e4da5255960dab0ded301f01af96dbdcb23da0 |
package com.clockwork.light;
import com.clockwork.export.*;
import com.clockwork.scene.Spatial;
import com.clockwork.util.SortUtil;
import java.io.IOException;
import java.util.*;
/**
* LightList is used internally by Spatial}s to manage
* lights that are attached to them.
*
*/
public final class LightList impl... | Java | branches/3.0/engine/src/core/com/clockwork/light/LightList.java | PlanetWaves/clockworkengine | apache-2.0 | 8,354 | 305 | codeparrot/github-code |
c020cd7404f2adfd378bd7e853f2411572c71617ac7170ec1cf06f851dd628d9 | // (c) 2104 Don Coleman
//
// 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 | src/android/heytzBle/HeytzUUIDHelper.java | chendong0120/com.heytz.ble | apache-2.0 | 1,708 | 52 | codeparrot/github-code |
3502db2c766a380c8f2254a48b0d055a03874bdda22588ac37b64a928a47d5f6 | /*
* Copyright (C) 2017-2019 Dremio Corporation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable l... | Java | sabot/kernel/src/main/java/com/dremio/sabot/op/join/hash/HashJoinProbe.java | dremio/dremio-oss | apache-2.0 | 2,680 | 72 | codeparrot/github-code |
da15089d0066525eb4263d821ae4431555317e500272cc903b28cb6a29482b6b | package io.swagger.codegen.swaggeryaml;
import io.swagger.codegen.AbstractOptionsTest;
import io.swagger.codegen.CodegenConfig;
import io.swagger.codegen.languages.SwaggerYamlGenerator;
import io.swagger.codegen.options.SwaggerYamlOptionsProvider;
import mockit.Expectations;
import mockit.Tested;
public class Swagge... | Java | RIP_API/Swagger_REST_API/modules/swagger-codegen/src/test/java/io/swagger/codegen/swaggeryaml/SwaggerYamlOptionsTest.java | hasithalakmal/RIP | apache-2.0 | 912 | 34 | codeparrot/github-code |
cd82468fe80b6448702dc201259f49381a9d2946fa89dd4e8dbf09628fd1d85c | /** @file
ATS plugin to do (simple) regular expression remap rules
@section license License
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 ownersh... | C++ | plugins/regex_remap/regex_remap.cc | chenglongwei/trafficserver | apache-2.0 | 31,727 | 1,119 | codeparrot/github-code |
7316339ca988bf071dd853f920c440d2a4ca486400aa8c7e477b75bdf7610f70 | using System;
using System.Collections.Generic;
using System.Drawing;
using System.Linq;
using System.Windows.Forms;
using AllAuth.Desktop.Common.Models;
namespace AllAuth.Desktop.Forms
{
internal partial class DatabaseView : Templates.BaseControl
{
private readonly Controller _controller;
... | C# | src/AllAuth.Desktop/Forms/DatabaseView.cs | bowmark/allauth.desktop | apache-2.0 | 9,997 | 267 | codeparrot/github-code |
9e4a5cd4134142bfd4d1de5f70f44f11057b6ab2a3b17a74afcd04c4a0dbad08 | //===--- SILGenFunction.h - Function Specific AST lower context -*- 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 | lib/SILGen/SILGenFunction.h | xedin/swift | apache-2.0 | 87,584 | 1,999 | codeparrot/github-code |
05f0310547d47b5b21615edb9009b354df3cd77d11d6151fce8854c9403bd7de | module CMUX
module Commands
# List hosts
class ListHosts
extend Commands
# Command properties
CMD = 'list-hosts'.freeze
ALIAS = 'lh'.freeze
DESC = 'List hosts'.freeze
# Regist command
reg_cmd(cmd: CMD, alias: ALIAS, desc: DESC)
# Initialize
def initi... | Ruby | lib/cmux/commands/list_hosts.rb | kakao/cmux | apache-2.0 | 4,063 | 139 | codeparrot/github-code |
a101b39568f74bdf31cf42633de7081094d7d713118c7c4f6a8bd0de225f235f | ---
title: "Hackathon 2020"
date: 2020-09-28T00:43:00+10:00
draft: false
---
<div class="section columns is-centered">
<section class="column is-6">
<div class="block">
<a href="https://www.facebook.com/events/2858423371101933/">
<img src="{{< relURL "/img/media/competi... | HTML | content/competitions/hackathon-2020.html | UQComputingSociety/website | apache-2.0 | 6,553 | 132 | codeparrot/github-code |
956dd15bed91d607dcd6291bd7b72019ed9afb0961a52c40ce906fc42a86d779 | // ========================================================================
// Copyright (c) 2006-2009 Mort Bay Consulting Pty. Ltd.
// ------------------------------------------------------------------------
// All rights reserved. This program and the accompanying materials
// are made available under the terms of th... | Java | jetty-plus/src/main/java/org/eclipse/jetty/plus/webapp/PlusDecorator.java | mabrek/jetty | apache-2.0 | 5,551 | 163 | codeparrot/github-code |
aeb46658862d5d1e9dc54e77d999ecb9c462e43febdc3d28415db585fdee3a08 | import {TextFileLoader} from './painter/TextFileLoader'
import {InstancedGrid} from './painter/InstancedGrid'
import {QCurve} from './painter/QCurve'
import {QCurveObj} from './painter/QCurve'
import {StrokePath} from './painter/StrokePath'
import {Particle} from './painter/Particle'
import {VectorField} from './painte... | JavaScript | src/js/index3.js | davidhoe/noisepainter | apache-2.0 | 20,410 | 790 | codeparrot/github-code |
087f6e92243548991b92791a16bfe9868117a5b84fd367e355bc1a8465ae2fef | <?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html>
<head>
<title>PartialFunctionValues - ScalaTest 2.2.0 - org.scalatest.PartialFunctionValues</title>
<meta name="description" content="PartialFunctio... | HTML | public/scaladoc/2.2.0/org/scalatest/PartialFunctionValues$.html | scalatest/scalatest-website | apache-2.0 | 27,397 | 493 | codeparrot/github-code |
73a1896ce0e51f504777336be02ac6152977e51260c930fb174586d5e42c7ca7 | /*
* 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-robomaker/src/main/java/com/amazonaws/services/robomaker/model/transform/DescribeSimulationApplicationRequestProtocolMarshaller.java | jentfoo/aws-sdk-java | apache-2.0 | 2,864 | 65 | codeparrot/github-code |
e53a3ed154eef7d24878b40ddc635b511de2b69d2134c0cf7c152adc1004d08b | /*
* Copyright (C) 2008 ZXing authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agr... | Java | qrcard_android/src/com/zxing/LocaleManager.java | czmao/QRCard | apache-2.0 | 7,109 | 182 | codeparrot/github-code |
908b702ee57da97e9dbeebc6d81e4566edf8e111b3e621a068c72721a7ad227c | package net.jp2p.builder.context;
import java.io.IOException;
import java.lang.reflect.Constructor;
import java.lang.reflect.InvocationTargetException;
import java.net.URL;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Enumeration;
import java.util.logging.Level;
import java.util.... | Java | Workspace/net.jp2p.builder/src/net/jp2p/builder/context/Jp2pServiceManager.java | chaupal/jp2p | apache-2.0 | 9,091 | 292 | codeparrot/github-code |
78cbe6014a1a59a269896e43dcad2d198acc8ae0f6241efe8f3099475fb55927 | import React from 'react';
import { graphql } from 'react-relay';
import { makeFilter } from '@ncigdc/utils/filters';
import { compose, withPropsOnChange } from 'recompose';
import { BaseQuery } from '@ncigdc/modern_components/Query';
export default (Component: ReactClass<*>) =>
compose(
withPropsOnChange(['proj... | JavaScript | src/packages/@ncigdc/modern_components/HasCases/HasCases.relay.js | NCI-GDC/portal-ui | apache-2.0 | 1,239 | 47 | codeparrot/github-code |
860e66c67642f467ab75ce6126130984fedb7516ad0acc7970ff5e0d92e9410e | package controllers;
import java.io.*;
import java.util.LinkedList;
import java.util.List;
import javax.servlet.*;
import javax.servlet.http.*;
import models.User;
public class UserEditController extends HttpServlet {
private static String newTitle = "New user";
private static String editTitle = "Edit user";... | Java | Web Hibernate Simple Usersystem/src/main/java/controllers/UserEditController.java | motivecodex/Java | apache-2.0 | 4,380 | 121 | codeparrot/github-code |
837a22d64c8a948db7a7c80ca9d7424ba73686bd8fc8ea8c6dc9bf657b3abf1f | /**
* 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/core/org/apache/hadoop/fs/FsShell.java | iVCE/RDFS | apache-2.0 | 80,667 | 2,233 | codeparrot/github-code |
dbceb21c24edf309abed3368073e0ae4db185abed41141675edc315445645ac5 | // Copyright 2015 Light Code Labs, 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 agre... | GO | caddytls/handshake.go | mholt/caddy | apache-2.0 | 6,098 | 177 | codeparrot/github-code |
5a06b028abebe6559cbd4b408ab9e93ada5937e488f518d4c28802e97641c417 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta name="generator" content="AsciiDoc 8.5.2" />
<title>allocation growing API</t... | HTML | full-guide/technical/api-allocation-growing.html | SevenworksInc/viiworks-tutorials | apache-2.0 | 12,756 | 609 | codeparrot/github-code |
e100cb4d72f61dfdce0ab4882b370c1cfe892a4ee8f1cf36e55b6896bce4ef14 | /*
* 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 | timeseries-streaming/timeseries-java-applications/Adapters/src/main/java/com/google/dataflow/sample/timeseriesflow/adaptors/domain/BlendedIndex.java | GoogleCloudPlatform/dataflow-sample-applications | apache-2.0 | 6,622 | 192 | codeparrot/github-code |
c84d5a53a27ebf49860fed9480bb5ea9ad43044a831ba3c214bd7fe2eccdccda | package dao
import (
"context"
xsql "database/sql"
"encoding/json"
"fmt"
"strings"
"time"
"go-common/app/admin/main/videoup-task/model"
"go-common/library/database/sql"
"go-common/library/log"
"go-common/library/xstr"
)
const (
_reviewCfg = 3
_countSQL = "SELECT COUNT(*) FROM task_json_config"
_l... | GO | 126-go-common-master/app/admin/main/videoup-task/dao/task_review.go | LQJJ/demo | apache-2.0 | 7,027 | 241 | codeparrot/github-code |
b2a7b8b3827c8a77b98d053ad30f7f06bdf42037679e209fc63c5be1c18d5ee9 | # Copyright 2018 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 | loaner/web_app/backend/lib/bootstrap.py | google/loaner | apache-2.0 | 13,356 | 386 | codeparrot/github-code |
9f595a840590e5fc82a23ce3fa3be93e7aed636c8f24f5c46211a112b0b0e491 | // Copyright 2011 Software Freedom Conservancy
// 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... | C++ | cpp/IEDriver/WebDriver.cpp | bwp/SeleniumWebDriver | apache-2.0 | 1,602 | 60 | codeparrot/github-code |
268d7004d076a990d2011a68ad7bbe8d52d50b2cc3e96ba423c7159b080b6908 | /* ###
* 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/Framework-Debugging/src/main/java/ghidra/dbg/util/PathPredicates.java | NationalSecurityAgency/ghidra | apache-2.0 | 9,949 | 312 | codeparrot/github-code |
792b2799ed231790ba2a08066273809eed65b6f33c2af258339741b45192b67d | package jforgame.server.cross.core.client;
import jforgame.common.thread.NamedThreadFactory;
import jforgame.server.cross.core.callback.CallBackService;
import jforgame.server.cross.core.callback.CallTimeoutException;
import jforgame.server.cross.core.callback.G2FCallBack;
import jforgame.server.cross.core.callback.Re... | Java | jforgame-server/src/main/java/jforgame/server/cross/core/client/CrossTransportManager.java | kingston-csj/jforgame | apache-2.0 | 4,520 | 137 | codeparrot/github-code |
024e06aa7e851713566f3591bfdddbf5b6af804b3424f06906f076721454cc87 | package sandglass
import (
"fmt"
"github.com/hashicorp/serf/serf"
"github.com/sandglass/sandglass-grpc/go/sgproto"
"google.golang.org/grpc"
)
type Node struct {
ID string
Name string
IP string
GRPCAddr string
RAFTAddr string
HTTPAddr string
Status serf.MemberStatus
conn *grpc.Client... | GO | sandglass.go | celrenheit/sandglass | apache-2.0 | 957 | 53 | codeparrot/github-code |
9e65e5f21974091d2e7bfe3f7a9bd8bbe5086e1b0c47aadcdfa4018a6d67217b | package com.example.easeweather.gson;
import com.google.gson.annotations.SerializedName;
/**
* Created by ZS_PC on 2017/10/12.
*/
public class Suggestion {
@SerializedName("comf")
public Comfort comfort;
@SerializedName("cw")
public CarWash carWash;
public Sport sport;
public class Comfort... | Java | app/src/main/java/com/example/easeweather/gson/Suggestion.java | StartFlow/easeweather | apache-2.0 | 571 | 31 | codeparrot/github-code |
fb39aac073f9d6323c6af27e2b618e2a043355af803d075d9f4a266212d2d4f8 | package com.gps.sweeprobot;
import android.app.Activity;
import android.os.Bundle;
import android.service.carrier.CarrierIdentifier;
import android.support.annotation.IdRes;
import android.support.annotation.Nullable;
import android.view.View;
import android.widget.Button;
import android.widget.RadioButton;
import and... | Java | app/src/main/java/com/gps/sweeprobot/TestActivity.java | ZhouKanZ/SweepRobot | apache-2.0 | 5,012 | 151 | codeparrot/github-code |
2fc3feb892f3ba69309d0888ed56dcda690078cfd8a8c27e2673c319d6211dc1 | /**
* 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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to... | TypeScript | web/src/components/common/MerchantSideBar.tsx | googleinterns/gpay-group-buy | apache-2.0 | 2,311 | 79 | codeparrot/github-code |
cc5ed79c6666ded463e26e0c890c423c043a9e06fa6b127b0dcaf64363e217a6 | /**
* Copyright (c) 2015 Intel Corporation
*
* 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 | test/javascript/ui/manageusers/orgUserServiceTest.js | rkoster/console | apache-2.0 | 2,643 | 81 | codeparrot/github-code |
b54d727e8bada678bc7104abe05356f11e98280f1f8c558f0cc55d8f2e7c31ff | package au.gov.amsa.util;
public class Pair<T, S> {
private final T a;
private final S b;
public Pair(T a, S b) {
this.a = a;
this.b = b;
}
public static <T, S> Pair<T, S> create(T t, S s) {
return new Pair<T, S>(t, s);
}
public T a() {
return a;
}
... | Java | risky-util/src/main/java/au/gov/amsa/util/Pair.java | amsa-code/risky | apache-2.0 | 757 | 44 | codeparrot/github-code |
677f805f00a94e4dcd5d16c5c535552e887fdff92b3b91e9a2c1033ab4828a90 | /*
* Copyright 2012-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
* the License. A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "licen... | Java | aws-java-sdk-lexmodelbuilding/src/main/java/com/amazonaws/services/lexmodelbuilding/model/transform/GetIntentResultJsonUnmarshaller.java | dagnir/aws-sdk-java | apache-2.0 | 6,351 | 131 | codeparrot/github-code |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.