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 |
|---|---|---|---|---|---|---|---|---|
1adee230f90c84e686a6a4220627e9edca67c90001505dde1a4d6d6f6974b394 | <!--#
layout("/layout/default.html",{"menu":["struts","dept_admin"],"breadcrumbs":[{"name":"部门列表",url:" dept/list"},{"name":(obj.data.dept==null?"添加部门":"编辑部门")}]}){
#-->
<link rel="stylesheet" href="${base!}/assets/kindeditor/themes/default/default.css" />
<script charset="utf-8" src="${base!}/assets/kindeditor/... | HTML | boot-nutz-beetl/src/main/resources/templates/pages/admin/struts/dept/add_edit.html | Kerbores/Falsework | apache-2.0 | 4,452 | 102 | codeparrot/github-code |
2ba79bb0430794136eb42dc62ac6fd6f2d6f9fc4432ec727dec23af4db0c2ff5 | /*
* 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 us.vicentini.hackerrank.algorithms.strings;
import java.util.Scanner;
/**
* https://www.hackerrank.com/challenges/pangrams
... | Java | src/main/java/us/vicentini/hackerrank/algorithms/strings/Pangrams.java | Shulander/hackerrank | apache-2.0 | 1,720 | 63 | codeparrot/github-code |
e22da033983390e55c6dc51d5a0831cef6cab862489a09e6e92286b7880b6b1f | #include "common.h"
#include "jvmtiutil.h"
#include "connection.h"
#include "network.h"
#include "msgchannel.h"
#include "bytecode.h"
#include "classparser.h"
#include "codeflags.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <jni.h>
#include <jvmti.h>
// **********************************... | C | src-disl-agent/dislagent.c | mur47x111/pDiSL | apache-2.0 | 21,215 | 784 | codeparrot/github-code |
d665c89edddefe5e1a8a8a4e349a8bbf792915fa7428932aa6cdd870057d5fd6 | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
# @Author: mcxiaoke
# @Date: 2018-01-26
from __future__ import print_function, unicode_literals, absolute_import
import json
import sys
import os
import re
import time
import shutil
import random
import mimetypes
import imghdr
import traceback
import json
import redis
im... | Python | scripts/wechat_upload.py | mcxiaoke/python-labs | apache-2.0 | 8,692 | 239 | codeparrot/github-code |
caae251a38f11bc5a04cccb4e8e5aacf6b94d407261af350914f29fea3f8121f | /*
* 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.openhris.employee;
import com.hrms.classes.GlobalVariables;
import com.hrms.utilities.ConvertionUtilities;
impo... | Java | src/java/com/openhris/employee/EmployeePersonalInformation.java | jetdario/hrms | apache-2.0 | 28,498 | 604 | codeparrot/github-code |
0ede96eddc77996167b68ce8a70245af36d2a3c2473afaba4b6dca95680c28b0 | package ec2rolecreds
import (
"bufio"
"encoding/json"
"fmt"
"path"
"strings"
"time"
"github.com/coreos/mantle/Godeps/_workspace/src/github.com/aws/aws-sdk-go/aws/awserr"
"github.com/coreos/mantle/Godeps/_workspace/src/github.com/aws/aws-sdk-go/aws/credentials"
"github.com/coreos/mantle/Godeps/_workspace/src/... | GO | Godeps/_workspace/src/github.com/aws/aws-sdk-go/aws/credentials/ec2rolecreds/ec2_role_provider.go | mischief/mantle | apache-2.0 | 5,452 | 169 | codeparrot/github-code |
e1c571d81ae8a29903e14f95c1c76c87248a6f516960afb9526b0c9a2696bd61 | using System;
using System.Collections.Generic;
using System.Linq;
using MOE.Common.Business.WCFServiceLibrary;
using MOE.Common.Models;
namespace MOE.Common.Business.DataAggregation
{
public class EventCountAggregationBySignal : AggregationBySignal
{
public EventCountAggregationBySignal(ApproachEvent... | C# | MOE.Common/Business/DataAggregation/EventCountAggregationBySignal .cs | udotdevelopment/ATSPM | apache-2.0 | 6,157 | 128 | codeparrot/github-code |
3ca0978c1ea6adafad144271af14538a02a5621d50cd9c583d1116faf9d51c1f | """The auto-tuning module of tvm
This module includes:
* Tuning space definition API
* Efficient auto-tuners
* Tuning result and database support
* Distributed measurement to scale up tuning
"""
from . import database
from . import feature
from . import measure
from . import record
from . import task
from . impor... | Python | Fujitsu/benchmarks/resnet/implementations/mxnet/3rdparty/tvm/python/tvm/autotvm/__init__.py | mlperf/training_results_v0.6 | apache-2.0 | 794 | 32 | codeparrot/github-code |
d8e04ada6eef761d6e9a6b791ec0e5a5d064ad9e74d413de42911cf073c085fe | package com.jcodes.ganymed;
import ch.ethz.ssh2.KnownHosts;
import ch.ethz.ssh2.ServerHostKeyVerifier;
class SimpleVerifier implements ServerHostKeyVerifier
{
KnownHosts database;
/*
* This class is being used by the UsingKnownHosts.java example.
*/
public SimpleVerifier(KnownHosts database)
{
... | Java | jCodes-ganymed-ssh2/src/main/java/com/jcodes/ganymed/SimpleVerifier.java | dreajay/jCodes | apache-2.0 | 1,428 | 53 | codeparrot/github-code |
81d8813dd2e7552b5d2db3bcb57c44eae0d9f7fe88b31b6115f97bfc995e9dcb | // @flow
import Spinner from '@atlaskit/spinner';
import React from 'react';
import { translate } from '../../base/i18n';
import { AbstractPage } from '../../base/react';
import { connect } from '../../base/redux';
import { openSettingsDialog, SETTINGS_TABS } from '../../settings';
import {
createCalendarClickedE... | JavaScript | react/features/calendar-sync/components/CalendarList.web.js | bgrozev/jitsi-meet | apache-2.0 | 7,243 | 260 | codeparrot/github-code |
d4770ead2034d39efa5b09ac07e51952028e744e7b479c0941c536cd516d058a | 'use strict';
const _ = require('lodash');
const serviceUtils = require('../serviceUtils');
/**
* @summary Retrieve a Coding System object.
* @param {String} source Abbreviation of the source coding system under test.
* @param {Function} callback Function called on process completion, with standard (err, resu... | JavaScript | services/lexiconService/lookupCodingSystem.js | vistadataproject/metaPureJS | apache-2.0 | 1,445 | 45 | codeparrot/github-code |
bd639928097714afcc9031f118ff768d920165ef63b4749b877a539a8a64ed64 | /* Copyright (C) 2013 Interactive Brokers LLC. All rights reserved. This code is subject to the terms
* and conditions of the IB API Non-Commercial License or the IB API Commercial License, as applicable. */
package com.ib.client;
public class ScannerSubscription {
public final static int NO_ROW_NUMBER_SPECIFIED =... | Java | src/main/java/com/ib/client/ScannerSubscription.java | klon/jtrade | apache-2.0 | 4,097 | 201 | codeparrot/github-code |
aebd579c84dccd84d967169acef104621dba19f73bc8bde29ff551126eb6f26d | /*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by appl... | C | thrift/compiler/ast/t_sink.h | facebook/fbthrift | apache-2.0 | 4,540 | 135 | codeparrot/github-code |
9a7c0971c19856ded0977110ffb04f432f3eda511514ff021409f373991677b8 | /*
* Copyright 2013 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | Java | spring-social-facebook/src/main/java/org/springframework/social/facebook/api/impl/json/EducationEntryMixin.java | wilkinsona/spring-social-facebook | apache-2.0 | 1,370 | 41 | codeparrot/github-code |
a6b023dd78efff7b3285230f003ebc60c3567f887f7a7efc797647da1065e400 | /*
* Copyright (C) 2019 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | Java | library/ui/src/main/java/com/google/android/exoplayer2/ui/TrackSelectionDialogBuilder.java | stari4ek/ExoPlayer | apache-2.0 | 9,338 | 235 | codeparrot/github-code |
55a84b3759295ace00d563e12e7d2b9627287826d7a62d9d4fde28efde9a81ff | package cn.xdean.jex.reflect;
import xdean.jex.log.Log;
import xdean.jex.log.LogFactory;
import java.lang.invoke.MethodHandles;
import java.lang.reflect.*;
import java.util.Arrays;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.function.Function;
import java.util.stream.Stream... | Java | src/main/java/cn/xdean/jex/reflect/FunctionInterfaceUtil.java | XDean/Java-EX | apache-2.0 | 11,124 | 269 | codeparrot/github-code |
d214c22935d3379d83077d3c39c0fbb1b4aba118831c3a152fd38046e40714e1 | /*
* forms.js: highlight form-related elements
*/
function initForms () {
addPolyfills();
let targetList = [
{selector: "button", color: "purple", label: "button"},
{selector: "input", color: "navy", label: "input"},
{selector: "keygen", color: "gray", label: "keygen"},
{selector: "m... | JavaScript | extension/library.js | oaa-tools/bookmarklets-library | apache-2.0 | 50,228 | 1,850 | codeparrot/github-code |
616e122a668d6b019061347dfa54b984ac489946d59b848c6de7364a321b69d7 | package com.atlassian.plugins.codegen.modules.common.servlet;
import java.io.IOException;
import com.atlassian.plugins.codegen.AbstractCodegenTestCase;
import com.atlassian.plugins.codegen.modules.PluginModuleLocation;
import org.apache.commons.io.FileUtils;
import org.junit.Before;
import org.junit.Test;
import st... | Java | plugin-module-codegen-engine/src/test/java/com/atlassian/plugins/codegen/modules/common/servlet/ServletContextParameterTest.java | mrdon/AMPS | apache-2.0 | 1,286 | 45 | codeparrot/github-code |
c6c70922f15850fe302330b9d63765e5fe4c8374c8a81bf1bfff3c85569db10f | /**************************************************************************//**
* @file em_usbdep.c
* @brief USB protocol stack library, USB device endpoint handlers.
* @version 5.0.0
******************************************************************************
* @section License
* <b>(C) Copyright 2014 Silicon ... | C | usb/em_usbdep.c | iTeleTram/dongle_fw | apache-2.0 | 10,781 | 375 | codeparrot/github-code |
e6c4f5ddf6bfd63cb5c5d0d0ae65a3e9fcedd7a010637b4ccebe305088a011ee | <?php
namespace SBData\Model\Field;
/**
* Represents the structure of an individual data element that may be located
* inside a form or a table.
*/
abstract class Field
{
/** Title of the field */
public string $title;
/** Indicates whether a given value is mandatory */
public bool $mandatory;
/** Indicate... | PHP | src/SBData/Model/Field/Field.php | svanderburg/php-sbdata | apache-2.0 | 1,096 | 47 | codeparrot/github-code |
175490976ac154e8e4bff2a6e59b4a31e1f3e839310af5ff67a3aeec801014f4 | package shadow.test.typecheck;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import shadow.Main;
import shadow.typecheck.TypeCheckException;
import shadow.typecheck.TypeCheckException.Error;
import java.util.ArrayList;
public class WarningTests {
private final ArrayList<String> args ... | Java | src/test/java/shadow/test/typecheck/WarningTests.java | bwittman/shadow | apache-2.0 | 2,314 | 82 | codeparrot/github-code |
e3eb307ea00678e1686c3a435cae5c7349b5fed3d5ffeda3be09efb1766487e0 | package cgeo.geocaching.files;
import cgeo.geocaching.R;
import cgeo.geocaching.SearchResult;
import cgeo.geocaching.StaticMapsProvider;
import cgeo.geocaching.enumerations.LoadFlags;
import cgeo.geocaching.models.Geocache;
import cgeo.geocaching.settings.Settings;
import cgeo.geocaching.storage.DataStore;
import cgeo... | Java | main/src/cgeo/geocaching/files/AbstractImportThread.java | SammysHP/cgeo | apache-2.0 | 4,402 | 92 | codeparrot/github-code |
fb14dc08b75e5f8fa7aaa704af9b58ec1197227d9f2ea3aa309f8793ad2f6944 | package io.github.hebury.bioscoopcasus.domain;
import java.io.Serializable;
import static android.R.attr.id;
public class Movie implements Serializable {
private double rating;
private String duration;
private String title;
private String genre;
private String description;
private String rel... | Java | app/src/main/java/io/github/hebury/bioscoopcasus/domain/Movie.java | Hebury/BioscoopCasus | apache-2.0 | 2,454 | 114 | codeparrot/github-code |
83f4859ae8d3af5b29e46a3f4aac65360b477d9da618e35c79ba0080dada7ce7 | package ru.job4j.list;
import org.junit.Test;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertTrue;
/**
* The class created for testing CheckCycle class.
*
* @author abondarev.
* @since 04.09.2017
*/
public class CheckCycleTest {
/**
* Test method hasCycle() when cycle... | Java | jun/chapter_005pro/src/test/java/ru/job4j/list/CheckCycleTest.java | BonDyka/abondarev | apache-2.0 | 1,376 | 56 | codeparrot/github-code |
ca3c34fdf12d33c4ff72534e494f883cf266195e35b35309485ec4e8e04dd2a0 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html><head><title></title>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<link rel="stylesheet" type="text/css" href="search.css"/>
<script type="text/javascript" src="search... | HTML | docs/html/search/all_72.html | Cray/graphbuilder | apache-2.0 | 11,272 | 120 | codeparrot/github-code |
ed3a43f1c654b8af43f7aebbe905df789edf884357478fde0af8f5d97fe40770 | package il.co.topq.difido.model.execution;
import java.util.ArrayList;
import java.util.List;
import org.codehaus.jackson.annotate.JsonIgnore;
public class MachineNode extends NodeWithChildren<ScenarioNode> {
@JsonIgnore
private List<ScenarioNode> allScenarios;
public MachineNode() {
}
public MachineNode(Str... | Java | difido-reports-common/src/main/java/il/co/topq/difido/model/execution/MachineNode.java | abodabi/difido-reports | apache-2.0 | 756 | 42 | codeparrot/github-code |
6f0949856cfe9b856e3114d569cc20bcb828f08e2e0fac6b0e65238dc7e77a2c | import PluginSDK from "PluginSDK";
import { RequestUtil } from "mesosphere-shared-reactjs";
const SDK = PluginSDK.__getSDK("licensing", { enabled: true });
require("../../SDK").setSDK(SDK);
const LicensingStore = require("../LicensingStore").default;
const LicensingSummary = require("../../structs/LicensingSummary").d... | TypeScript | plugins/licensing/stores/__tests__/LicensingStore-test.ts | dcos/dcos-ui | apache-2.0 | 3,012 | 92 | codeparrot/github-code |
d2d1aadc2789b95c291e485e12ea6313d066b87d52a4cbddcd45430c97658a4d | package net.chibidevteam.apiversioning.test.unit;
import org.junit.Assert;
import org.junit.Before;
import org.junit.Test;
import net.chibidevteam.apiversioning.exceptions.NoSupportedVersionException;
import net.chibidevteam.apiversioning.util.ApiVersionCondition;
import net.chibidevteam.apiversioning.util.Utils;
imp... | Java | src/test/java/net/chibidevteam/apiversioning/test/unit/HelperTest.java | ChibiTomo/ApiVersioning | apache-2.0 | 1,368 | 43 | codeparrot/github-code |
ac518a8af2f41d64d9cc9a5fe7be6618a684b0b92247a5674c909c140eff956c | /*
Copyright (c) 2013, Washington University in St.Louis.
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 require... | Java | src/edu/wustl/xipApplication/recist/RECISTManager.java | OpenXIP/xip-app | apache-2.0 | 1,457 | 39 | codeparrot/github-code |
24b2f90abef341451fd57f6263cdefaefc55d53bcb3fe9de2ab0b16b1246f6b6 | // 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 in writin... | TypeScript | angularSTEP/src/app/current-profile-page/current-profile-page.component.ts | googleinterns/step79-2020 | apache-2.0 | 4,196 | 147 | codeparrot/github-code |
429276096068c2366dff14046a85627e91d116f7a7b7e76de4161ec848689c51 | /*
*********************************************************************************************************
* uC/GUI
* Universal graphic software for embedded applications
*
* (c) Copyright 2002, Micrium Inc., Weston, FL
... | C | gui/Core/LCDColor.c | byxob/calendar | apache-2.0 | 4,498 | 140 | codeparrot/github-code |
1ca4407d3b2fc32e2f4b39f58371a977324faa86716ddce57f1ffb2c501d0983 | # vim: tabstop=4 shiftwidth=4 softtabstop=4
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable... | Python | dragon/db/sqlalchemy/migration.py | os-cloud-storage/openstack-workload-disaster-recovery | apache-2.0 | 3,810 | 116 | codeparrot/github-code |
5fdcefc9d73a5b1df6dc6c1767645d6edd7569fa33e8c8a3358a93908aa000c9 | import * as utils from '../src/utils.js';
import {config} from '../src/config.js';
import {registerBidder} from '../src/adapters/bidderFactory.js';
import {BANNER, VIDEO} from '../src/mediaTypes.js';
const BIDDER_CODE = 'vdoai';
const ENDPOINT_URL = 'https://prebid.vdo.ai/auction';
export const spec = {
code: BIDDE... | JavaScript | modules/vdoaiBidAdapter.js | tchibirev/Prebid.js | apache-2.0 | 3,931 | 132 | codeparrot/github-code |
864eda170846c08c7ba9576cf366cadbd675bff702a22954c1c3b690d219d48b | <div class="sign-title"><h2>找回密码</h2></div>
<!-- 步骤图 -->
<div id="forgot_steps" class="steps forgot-steps">
<table width="100%">
<tbody>
<tr>
<td class="step-item step-1 active"><span><q class="icon">P</q><i>1</i>填写账户名</span></td>
<td class="icon step-arrow">(</td>
<td clas... | HTML | app/b2c/view/site/passport/forgot.html | liuguogen/Ecstore | apache-2.0 | 3,937 | 107 | codeparrot/github-code |
ad2f9b17ec850b3d8473ee02ddb4e35a8e6b3e57968971f4ff1f986ad7b8da52 | //===--- SILMem2Reg.cpp - Promotes AllocStacks to registers ---------------===//
//
// 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/SILOptimizer/Transforms/SILMem2Reg.cpp | therealbnut/swift | apache-2.0 | 30,234 | 904 | codeparrot/github-code |
34503a95aef0cd99a82e053b7793b00abf448f53a286b3e6fc13529bc6e9b8ab | /*
ChibiOS - Copyright (C) 2006..2016 Giovanni Di Sirio
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by ap... | C | sw/firmware/ChibiOS/os/hal/ports/STM32/STM32L1xx/hal_lld.c | netik/dc26_spqr_badge | apache-2.0 | 7,211 | 226 | codeparrot/github-code |
01a24e8da362c4402907f583fa398109cd0ed86698add1ae6c5247515d10351d | /*
* Copyright (c) 2013 Spotify AB
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing... | C | src/bench.c | spotify/sparkey | apache-2.0 | 8,360 | 298 | codeparrot/github-code |
535f4e279644982bfd940769a0c0194dafbf6c371078e376e06ef5dd08045418 | var auth = require( './auth' ),
surveyTemplate = require( '../lib/survey_template' ),
SurveyResponse = require( '../models/survey_response' );
var ExportController = function() {
this.csv = function( req, res ) {
var now = new Date(),
cleanTitle = req.survey.title.replace( /[^a-z0-9]/ig... | JavaScript | controllers/export.js | UCSoftware/responsive-pulse | apache-2.0 | 1,943 | 53 | codeparrot/github-code |
fc590da210837ad9a2ec2817ae1dc4f9bfe69cb9a5f6e86f146d47fc3aea2acb | package org.gradle.test.performance.mediummonolithicjavaproject.p215;
import org.gradle.test.performance.mediummonolithicjavaproject.p214.Production4298;
import org.gradle.test.performance.mediummonolithicjavaproject.p214.Production4299;
import org.junit.Test;
import static org.junit.Assert.*;
public class Test4301 ... | Java | my-app/src/test/java/org/gradle/test/performance/mediummonolithicjavaproject/p215/Test4301.java | oehme/analysing-gradle-performance | apache-2.0 | 2,343 | 82 | codeparrot/github-code |
5d84ccede28ddf306d72216fc8cb93432cd76513ec76432daad30c62115aa566 | /******************************************************************************
* $URL: https://source.sakaiproject.org/svn/user/tags/sakai-10.1/user-tool/tool/src/webapp/js/userCreateValidation.js $
* $Id: userCreateValidation.js 308075 2014-04-11 12:34:16Z azeckoski@unicon.net $
***********************************... | JavaScript | user/user-tool/tool/src/webapp/js/userCreateValidation.js | harfalm/Sakai-10.1 | apache-2.0 | 4,100 | 117 | codeparrot/github-code |
8281d756265868c13bc4bc96b798f933fda126b93e1ec5e9937bc0b0c3b3afc1 | /*
* Copyright 2002-2014 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | Java | config/src/main/java/org/springframework/security/config/annotation/web/socket/AbstractSecurityWebSocketMessageBrokerConfigurer.java | jmnarloch/spring-security | apache-2.0 | 9,662 | 251 | codeparrot/github-code |
2712ebfcc5743336ac4fbd5dcfb7c60f4b9499dfc4170f78f5f572e43c24741b | /**
* Copyright 2015-2018 The OpenZipkin 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 ... | Java | zipkin-autoconfigure/storage-elasticsearch-aws/src/main/java/zipkin/autoconfigure/storage/elasticsearch/aws/ZipkinElasticsearchAwsStorageProperties.java | soundcloud/zipkin | apache-2.0 | 1,555 | 48 | codeparrot/github-code |
c6a3d1e49bc79a42ed4d11b4b3301da40b7846c294c1156935f5db9f5e56d589 | # python3
# pylint: disable=g-bad-file-header
# Copyright 2019 DeepMind Technologies Limited. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org... | Python | bsuite/experiments/discounting_chain/analysis.py | deepmind/bsuite | apache-2.0 | 4,042 | 115 | codeparrot/github-code |
64d459fc6ba62bd059ab24b894b5d2c3581a1073944bf10a41b2a2bb0e56fb46 | /*
* Copyright 2019 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicab... | Java | catalog/java/io/material/catalog/tabs/TabsAutoDemoFragment.java | material-components/material-components-android | apache-2.0 | 3,579 | 105 | codeparrot/github-code |
b696322822109da92325487e250d95d428d3ce57bac3a426b675a44ab2960e6e | using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Opinnaytetyo
{
class Player : Entity
{
private float speed;
priv... | C# | Opinnaytetyo/Player.cs | opinnaytepaahto/Opinnaytetyo | apache-2.0 | 8,878 | 290 | codeparrot/github-code |
e8c58be27c3b846e0a758af137addb00131af8f727d3cd183072e91b48af2093 | package org.twak.viewTrace;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Map;
import java.util.Set;
import org.twak.utils.collections.MultiMapSet;
public class Closer<E> {
Map <E, Integer> map = new HashMap<>();
MultiMapSet <Integer, E> rev = new MultiMapSet<>(); // could be a single map... | Java | src/org/twak/viewTrace/Closer.java | twak/chordatlas | apache-2.0 | 2,271 | 123 | codeparrot/github-code |
e17f9859a8405f7a504f05892661904375cba961ffd11330a2c8366dd5c14fda | <?php
namespace Mayflower\PopularRadarBundle\Model\APIVoter;
use Mayflower\PopularRadarBundle\Form\Data\BuzzwordFormData;
use Mayflower\PopularRadarBundle\Model\Comparison\Strategy\StrategyInterface;
use Mayflower\PopularRadarBundle\Model\ResultMapping\Buzzword;
/**
* PackagistFaversVoter
*
* Voter that compares ... | PHP | src/Mayflower/PopularRadarBundle/Model/APIVoter/PackagistFaversVoter.php | mayflower/popular-radar | apache-2.0 | 1,346 | 50 | codeparrot/github-code |
ef5fa2fef19583c0efa507b5cd72c3e3d95cce4569a07deb53941568da772ed8 | /*
* 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/transform/BatchStopResultJsonUnmarshaller.java | aws/aws-sdk-java | apache-2.0 | 3,163 | 83 | codeparrot/github-code |
fc7fbdef9d1268047be3e6a86aaa0b62fb45ad5d591420e235211416a983b4fe | /*
* Copyright (c) 2016 Muhammad Faiz <mfcc64@gmail.com>
*
* This file is part of FFmpeg.
*
* FFmpeg is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at y... | C | NDKFFmpeg/jni/ffmpeg/libavfilter/af_firequalizer.c | darlyhellen/oto | apache-2.0 | 19,956 | 593 | codeparrot/github-code |
e66e57de9d163b625795b7d63f2ef72afca2b0b2cc4829fa539ad343ab40be2e | /*******************************************************************************
* Copyright 2016 Antoine Nicolas SAMAHA
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy
* of the License at
*
* ... | Java | foc/src/com/foc/db/migration/MigrationSourceGuiDetailsPanel.java | FOC-framework/framework | apache-2.0 | 4,357 | 118 | codeparrot/github-code |
44c93fe53e372d217f8ed6982f30c168c2e338f27b577dc49ce1b60667c0a52a | /*
* 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/lperilla/jmeter/plugin/gui/component/JLabeledTextField.java | lperilla/jmeter-utilities | apache-2.0 | 6,851 | 268 | codeparrot/github-code |
1fdefe4a1ed4d4e226f391510b2d44d7cfa4ce99d8319d651bf2ef7784153482 | package org.docksidestage.app.web.withdrawal;
import javax.annotation.Resource;
import org.docksidestage.app.web.base.FortressBaseAction;
import org.docksidestage.app.web.signout.SignoutAction;
import org.docksidestage.dbflute.exbhv.MemberBhv;
import org.docksidestage.dbflute.exbhv.MemberWithdrawalBhv;
import org.doc... | Java | src/main/java/org/docksidestage/app/web/withdrawal/WithdrawalAction.java | lastaflute/lastaflute-test-fortress | apache-2.0 | 3,853 | 96 | codeparrot/github-code |
eb6822be853e6803ea6a09c1957cb0cd3982b06ab5be5c9c1926d75f6b2ea185 | # Source https://wiki.archlinux.org/index.php/proxy_settings
function proxy_on() {
export no_proxy="localhost,127.0.0.1,localaddress,.localdomain.com"
if (( $# > 0 )); then
valid=$(echo $@ | sed -n 's/\([0-9]\{1,3\}.\)\{4\}:\([0-9]\+\)/&/p')
if [[ $valid != $@ ]]; then
>&2 echo "In... | Shell | proxy_switch.sh | Abdennebi/ProTips | apache-2.0 | 1,293 | 47 | codeparrot/github-code |
388d9b15b2a8f166c5a7328ae9912ce5bcdd32302f7eaed768ce0c32f9e593be | /*
* Licensed to the Apache Software Foundation (ASF) under one or more contributor license
* agreements. See the NOTICE file distributed with this work for additional information regarding
* copyright ownership. The ASF licenses this file to You under the Apache License, Version 2.0 (the
* "License"); you may not ... | Java | geode-apis-compatible-with-redis/src/acceptanceTest/java/org/apache/geode/redis/internal/executor/string/IncrByNativeRedisAcceptanceTest.java | masaki-yamakawa/geode | apache-2.0 | 1,273 | 36 | codeparrot/github-code |
822de5e2823b30bfe076872b026af3d041f9c5b9d71449b1d2654e68562f5abf | /*=========================================================================
*
* Copyright NumFOCUS
*
* 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.or... | C | Modules/Core/Common/include/itkEventObject.h | richardbeare/ITK | apache-2.0 | 13,047 | 219 | codeparrot/github-code |
7c53558a1e6d0f13565b21d7d2a34b96a6593a7341a3ffcf9c51a5fec04bd1e8 | <!DOCTYPE html>
<!--[if lt IE 7 ]><html class="ie ie6" lang="en"> <![endif]-->
<!--[if IE 7 ]><html class="ie ie7" lang="en"> <![endif]-->
<!--[if IE 8 ]><html class="ie ie8" lang="en"> <![endif]-->
<!--[if (gte IE 9)|!(IE)]><!--><html lang="en"> <!--<![endif]-->
<head>
<!-- Basic Page Needs
======================... | HTML | _site/2013/10/18/creating-a-jekyll-powered-site.html | ramijames/Blueverve_public | apache-2.0 | 10,092 | 220 | codeparrot/github-code |
6475582d6c415557c808241c95a85aafae11f9326e69ca3fc21e2a719e2cf1ba | /*
* Copyright (c) 2010-2017, b3log.org & hacpai.com
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | Java | src/main/java/org/b3log/solo/plugin/broadcast/ChanceProcessor.java | fengjx/solo | apache-2.0 | 11,148 | 336 | codeparrot/github-code |
4cc42277169ea2cc4db9ea02b554a19dbe5036da5906bfaca0bc8d0605bff24e | /*
* Copyright 2015 Tomi Virtanen
*
* 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... | Java | gantt-addon/src/main/java/org/tltv/gantt/client/shared/SubStep.java | tltv/gantt | apache-2.0 | 1,043 | 42 | codeparrot/github-code |
67fa14246887996e83efb0589ab62a5ec3d2a2e9301d84284b70187256caf4c7 | package com.huaxiafinance.lc.pickerview;
import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.widget.TextView;
import com.huaxiafinance.lc.pickerview.view.BasePickerView;
import com.huaxiafinance.lc.pickerview.view.WheelTime;
import java.text.ParseException;
im... | Java | android-huaxing-cust1.0/pickerview/src/main/java/com/huaxiafinance/lc/pickerview/TimePickerView.java | LaiHouWen/ProjectAll | apache-2.0 | 4,751 | 155 | codeparrot/github-code |
7fb5d177a469341db7a157ca5e79c0754870eae3c279f3a55ac3b3790a709e14 | <?php /* @var $this \mpf\modules\forum\controllers\Home */ ?>
<?php /* @var $subcategory \mpf\modules\forum\models\ForumSubcategory */ ?>
<?php /* @var $threads \mpf\modules\forum\models\ForumThread[] */ ?>
<?php /* @var $currentPage int */ ?>
<?php $menu = []; ?>
<?php if (\mpf\modules\forum\components\UserAccess::get... | PHP | forum/views/pages/subcategory/index.php | mpf-soft/social-modules | apache-2.0 | 9,412 | 158 | codeparrot/github-code |
64b7076f11d5299a8c59c2c4b282132e1a2af76089894bd796e4e7b47d30e4f8 | /**
* Copyright 2018 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 ... | JavaScript | scripts/get-local-package-ecma-version-benchmark.js | GoogleChromeLabs/detect-es-version | apache-2.0 | 3,413 | 108 | codeparrot/github-code |
c5007fe9eb62370cbcd3dac7e3d30d23a8a9dfe6c9fca2b43de41136be7ffc00 | package com.twitter.finagle.liveness
import java.util.concurrent.TimeUnit
import com.twitter.finagle.benchmark.StdBenchAnnotations
import org.openjdk.jmh.annotations._
import scala.util.Random
// ./sbt 'project finagle-benchmark' 'jmh:run WindowedMaxBenchmark'
@State(Scope.Benchmark)
@Threads(16)
@Warmup(iterations ... | Scala | finagle-benchmark/src/main/scala/com/twitter/finagle/liveness/WindowedMaxBenchmark.scala | mkhq/finagle | apache-2.0 | 1,207 | 52 | codeparrot/github-code |
5f3cba76c90a50028a6d799aeb30d685cd19830487d80f1747a6fb82a36be275 | /* Copyright libuv project contributors. All rights reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to
* deal in the Software without restriction, including without limitation the
* rights to use, cop... | C | core/deps/libuv/src/unix/posix-poll.c | czanyou/node.lua | apache-2.0 | 9,180 | 337 | codeparrot/github-code |
324005b7221b3a9ab956e06d56acb24367c2da9ede27f86b7caedcd5d0b41bee | /*
* Copyright 2012 The Netty Project
* The Netty Project licenses this file to you under the Apache License,
* version 2.0 (the "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at:
* http://www.apache.org/licenses/LICENSE-2.0
* Unless required by... | Java | testsuite/src/main/java/io/netty/testsuite/transport/socket/TrafficShapingHandlerTest.java | gerdriesselmann/netty | apache-2.0 | 22,509 | 543 | codeparrot/github-code |
5529f1cb6e9d7d57c5c8a1646a5edc71490dd1c3293096359fb5e2feb9bb4a69 | package AST;
import java.util.HashSet;
import java.util.LinkedHashSet;
import java.io.File;
import java.util.*;
import beaver.*;
import java.util.ArrayList;
import java.util.zip.*;
import java.io.*;
import java.util.Stack;
import java.util.regex.Pattern;
import java.io.FileOutputStream;
import java.io.IOException;
im... | Java | GOP/GranuleJIDE/src/AST/CONSTANT_Float_Info.java | xjtu3c/GranuleJ | apache-2.0 | 1,401 | 62 | codeparrot/github-code |
f632b1a31632742fa0e2f770a18611c6d2f33dce3de11f57847c71e388c217a4 | /*
* 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 | parquet-column/src/main/java/org/apache/parquet/io/MessageColumnIO.java | rdblue/parquet-mr | apache-2.0 | 19,368 | 526 | codeparrot/github-code |
51193241e9b7615ea1711474496b15f7217550f3893e2c895614839f8da62628 | package com.taobao.api.request;
import com.taobao.api.internal.util.RequestCheckUtils;
import java.util.Map;
import com.taobao.api.TaobaoRequest;
import com.taobao.api.internal.util.TaobaoHashMap;
import com.taobao.api.response.ProductsGetResponse;
import com.taobao.api.ApiRuleException;
/**
* TOP API: tao... | Java | src/main/java/com/taobao/api/request/ProductsGetRequest.java | lianying/asdf | apache-2.0 | 2,561 | 115 | codeparrot/github-code |
c33f2fa2cea72726b41c098d2a1cf6b78d547ae25c676c475714d6316d57f5b6 | package fr.polytech.ihm.model.produits;
import fr.polytech.ihm.controller.produits.ListProduitsController;
import fr.polytech.ihm.controller.produits.UnProduitController;
import javafx.fxml.FXMLLoader;
import javafx.scene.Parent;
import javafx.scene.control.ListCell;
import java.io.IOException;
/**
* Created by thi... | Java | JavaFX/src/main/java/fr/polytech/ihm/model/produits/ListProduits.java | tlarzabal/IHM | apache-2.0 | 1,187 | 37 | codeparrot/github-code |
2922f129ba427f2ad0b0ede5b01c5b13c40366295c7fb91d44995da4557f1ba5 | /*
* Copyright 2010-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 "license" fil... | C | aws-cpp-sdk-mediapackage/include/aws/mediapackage/model/DescribeOriginEndpointResult.h | cedral/aws-sdk-cpp | apache-2.0 | 19,544 | 583 | codeparrot/github-code |
afdcf262ed51c189d7cec5c551302510fb8599a25fe6a195fba75530e6a5704e | /*
* The Alluxio Open Foundation licenses this work under the Apache License, version 2.0
* (the "License"). You may not use this work except in compliance with the License, which is
* available at www.apache.org/licenses/LICENSE-2.0
*
* This software is distributed on an "AS IS" basis, WITHOUT WARRANTIES OR CONDI... | Java | core/server/master/src/test/java/alluxio/master/file/meta/InodeTreeTest.java | ChangerYoung/alluxio | apache-2.0 | 29,711 | 783 | codeparrot/github-code |
9305e159650c026ee888982f9dfc407e19b3abb08d7bcea7ed5a8e5f91a06be8 | /*
* 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 | android/app/src/main/java/com/coact/kochzap/book/SearchBookContentsResult.java | DavidLDawes/zxing | apache-2.0 | 1,667 | 67 | codeparrot/github-code |
ca9c8002c282dcc0a5d1a1e0f1c5d25ad6f6873b0ae3d7ab8c9e701ef7aed953 | /******************************************************************************
Copyright 2015 Matthew The <matthew.the@scilifelab.se>
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++ | src/PvalueTriplet.cpp | statisticalbiotechnology/maracluster | apache-2.0 | 1,188 | 34 | codeparrot/github-code |
4f153b8d3afa16d44d00822b3e0c9a884a37a75baf38461437ade2c7facae57e | //
// Copyright (C) 2014 Haruki Hasegawa
//
// 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... | C++ | include/cxxdasp/filter/cascaded_tsvf/general_cascaded_tsvf_core_operator.hpp | h6ah4i/cxxdasp | apache-2.0 | 5,337 | 165 | codeparrot/github-code |
a33133959c448446572da7ca94a8203a2c42d00b28186febb5fb91147a7961bb | /*
* Copyright 2017 Google, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License")
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in... | Java | halyard-deploy/src/main/java/com/netflix/spinnaker/halyard/deploy/spinnaker/v1/profile/SecurityConfig.java | spinnaker/halyard | apache-2.0 | 1,508 | 53 | codeparrot/github-code |
d80f85f6f986b01d2707aeb8e976715a52d42f25c819f54dfdc613e0e6fca6a6 | package com.liuyf.demos.cache.ehcache2.test;
import org.junit.Assert;
import org.junit.Test;
import com.liuyf.demos.cache.ehcache2.pojo.Person;
import net.sf.ehcache.CacheManager;
import net.sf.ehcache.Ehcache;
import net.sf.ehcache.Element;
public class VerifyEhcacheIsDeepCopy {
private static final String PERSO... | Java | cache-demos/ehcache2-demos/src/test/java/com/liuyf/demos/cache/ehcache2/test/VerifyEhcacheIsDeepCopy.java | liuyf8688/demos | apache-2.0 | 1,209 | 53 | codeparrot/github-code |
ad608c8cc1adcf507894e16fa3963abaf4a8b818d1934ad856987e5434f2a0ba | /*
* Copyright 2010-2020 Alfresco Software, Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable ... | Java | activiti-core/activiti-engine/src/test/java/org/activiti/engine/test/api/tenant/TenancyTest.java | Activiti/Activiti | apache-2.0 | 57,014 | 930 | codeparrot/github-code |
dc3a17799a1663aa35862c44a1e67968aedb220e2a6e600e828aabd163aba315 | package uk.ac.ebi.atlas.home;
import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.stereotype.Component;
import uk.ac.ebi.atlas.model.experiment.ExperimentType;
import java.util.List;
import java.util.Set;
import java.util.stream.Collectors;
@Component
public class LatestExperimentsDao {
... | Java | gxa/src/main/java/uk/ac/ebi/atlas/home/LatestExperimentsDao.java | gxa/atlas | apache-2.0 | 1,893 | 54 | codeparrot/github-code |
2fd0dd2913c370f2b35b5b787b4f59d9c7af56c2444f93566de50f99be8caa77 | /*
* Copyright (C) 2011 University of Washington.
*
* 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 | src/org/opendatakit/briefcase/model/DocumentDescription.java | dsysme/briefcase | apache-2.0 | 1,827 | 56 | codeparrot/github-code |
a74f99f1e41136c84e7d25779500b5e54667410bcd4b5966ebe6a42dc0abdc81 | /**
* Copyright 2011-2017 Asakusa Framework Team.
*
* 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 | yaess-project/asakusa-yaess-core/src/main/java/com/asakusafw/yaess/basic/BlobUtil.java | cocoatomo/asakusafw | apache-2.0 | 2,084 | 64 | codeparrot/github-code |
fa781244390adc9edc089ec4e39f0988babd9dbe041f21bfd75089fa6528656c | package fi.iki.murgo.pingserver;
import java.io.IOException;
import java.net.*;
public class UdpPinger implements Runnable {
private static final int PORT = 56666;
private DatagramSocket mSocket;
private final Object mSocketLock = new Object();
private volatile boolean mRunning = false;
private D... | Java | PingServer/src/fi/iki/murgo/pingserver/UdpPinger.java | murgo/MultiplayerLatencyTester | apache-2.0 | 2,023 | 73 | codeparrot/github-code |
dd280171d30754b7d3105f6df8ec4d139cba62dd55eaa3070a9e01701bc391b9 | // 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 in ... | GO | internal/pkg/metadb/checksums/digest.go | googleforgames/open-saves | apache-2.0 | 1,807 | 71 | codeparrot/github-code |
56e1ced6fbd3c5b4b9373f366cb91520791b03e3bd248f0d82584526e0838b00 | /*
* Copyright (c) 2014 Haixing Hu
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed ... | Java | src/main/java/com/github/haixing_hu/collection/ArrayLinkedList.java | Haixing-Hu/commons | apache-2.0 | 27,096 | 1,031 | codeparrot/github-code |
bd44f3121480a6333106186665b94a4044fe2161f2d6c615462080768498c6de | /*
* Copyright 2014–2017 SlamData 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... | Scala | yggdrasil/src/main/scala/quasar/yggdrasil/util/CPathComparator.scala | drostron/quasar | apache-2.0 | 12,999 | 314 | codeparrot/github-code |
0263c7b39de6b8265e7959888f26743b92bbf24907a3cbb711b6f374685eeb9e | package com.mma.trion.marketlink.application.config;
import java.io.IOException;
import javax.servlet.Filter;
import javax.servlet.FilterChain;
import javax.servlet.ServletException;
import javax.servlet.http.Cookie;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import ... | Java | src/main/java/com/mma/trion/marketlink/application/config/SecurityConfiguration.java | sunvar/pwd-gnt-app | apache-2.0 | 6,515 | 146 | codeparrot/github-code |
9a1d634cf869eae21de35e838afde16e1a215cfb89c3c35663412337a132b022 | package com.jimmy.common.impl;
import org.jfree.chart.ChartFrame;
import org.jfree.chart.JFreeChart;
import org.jfree.chart.axis.*;
import org.jfree.chart.plot.CombinedDomainXYPlot;
import org.jfree.chart.plot.XYPlot;
import org.jfree.chart.renderer.xy.CandlestickRenderer;
import org.jfree.chart.renderer.xy.XYBarRende... | Java | src/main/java/com/jimmy/common/impl/KLineCombineChartImpl.java | jimmyLian001/SpringLearn | apache-2.0 | 8,627 | 177 | codeparrot/github-code |
51487f6aaa7e55081796863ddcfe439327c83b077c3e107c5954236728fa3d15 | package com.hsdc.dp.intf.dto.builder;
import java.io.Serializable;
import java.util.Date;
public class Leave implements Serializable {
/**
*
*/
private static final long serialVersionUID = -380920585101902853L;
private String leaveID;
private String applier;
private String leaveType;
private in... | Java | design-pattern-intf/src/main/java/com/hsdc/dp/intf/dto/builder/Leave.java | ringlelai/HSDcDesignPattern-Java | apache-2.0 | 1,036 | 51 | codeparrot/github-code |
c0bb74a6af1e658789a344fc1fd61b1ac38fa9306e1ed751d5378063f4083c27 | from __future__ import unicode_literals
from django import template
from django.conf import settings
from django.utils import timezone
from ads.models import Ad
register = template.Library()
@register.inclusion_tag('ads/tags/render_ads_zone.html', takes_context=True)
def render_ads_zone(context, zone):
"""
... | Python | ads/templatetags/ads_tags.py | razisayyed/django-ads | apache-2.0 | 956 | 39 | codeparrot/github-code |
a69ab46fb6d3e1d78cdc64435636c52ef21203a6998848f2eabb96f836699a0a | package quickget;
import java.io.IOException;
import java.io.InputStream;
import java.io.RandomAccessFile;
/**
* 多线程下载工具类,多线程写入单个文件
* @author book
*@tempSize表示已经下载的部分,@start表示输入流开始位置
*/
class DownThread extends Thread{
final int BUFF_LEN =1024;
private InputStream fin;
private RandomAccessFile fout;
private l... | Java | src/quickget/DownThread.java | finiteV/quickget | apache-2.0 | 1,903 | 88 | codeparrot/github-code |
6858aa8172cba866d313f66e67d1a79e1a6d36500f672636e4a4e2120a36b926 | package com.usc.util;
import java.sql.Connection;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
import java.util.ArrayList;
import com.usc.bean.Order;
/**
* 数据库的工具类 主要是数据库的增改操作 单例实现
*
* @author lilin
* @time 2016年1月11日 下午5:12:10
* @email gaosi0812@gmail.com
* @blog gaosil... | Java | com/usc/util/SQlUtil.java | GeowindOfAgriculture/MutualAgriculture | apache-2.0 | 2,675 | 123 | codeparrot/github-code |
bc8908de47bb88d5cc7ff583bb47ecad34b46664a9d3f22a2d9c94b71c3eea0e | package nest.sparkle.metrics
import java.io.Closeable
import java.net.InetSocketAddress
import java.util.concurrent.TimeUnit
import com.typesafe.config.Config
import com.codahale.metrics.graphite.{Graphite => CHGraphite, GraphiteReporter => CHGraphiteReporter}
import nest.sparkle.util.MetricsInstrumentation
/**
*... | Scala | util/src/main/scala/nest/sparkle/metrics/GraphiteReporter.scala | mighdoll/sparkle | apache-2.0 | 1,313 | 42 | codeparrot/github-code |
929ddf94dc14802c43af6bf4aefb8f30545e50da5970fc7455f93f62aa30ecdb | package AlgoBinarysearchSort;
/*
SORT is well studied, classic algorithms
trade off is memory vs speed
Other factors are stable, adaptive, worse case O(?)
O(NlogN) is practically used
MergeSort and QuickSort are efficient and good for general cases
O(n^2)
other sorts like selection/inserti... | Java | leetcode/java/AlgoBinarysearchSort/AlgoBasicSortingComparison.java | BeyondSkyCoder/BeyondCoder | apache-2.0 | 13,104 | 434 | codeparrot/github-code |
a90bee883f7e2abc3f950bcf503c411027b1479345714d61e3e0dcc464313699 | package com.hellofyc.base.security;
import android.support.annotation.NonNull;
import android.util.Base64;
import com.hellofyc.base.utils.FLog;
import java.io.UnsupportedEncodingException;
/**
* Created on 2015/9/7.
*
* @author Yucun Fang
*/
public class Base64Utils {
private static final boolean DEBUG = fa... | Java | base-utils/src/main/java/com/hellofyc/base/security/Base64Utils.java | fangyucun/android-library | apache-2.0 | 1,887 | 73 | codeparrot/github-code |
2afb78aa2b517755a361a55449ae8fe1f154354e84170f8a07bf17d827321336 | /*
* Copyright (c) 2021, Peter Abeles. All Rights Reserved.
*
* This file is part of BoofCV (http://boofcv.org).
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apac... | Java | main/boofcv-ip/src/benchmark/java/boofcv/alg/filter/convolve/BenchmarkConvolveImageStandard_SB.java | lessthanoptimal/BoofCV | apache-2.0 | 5,348 | 90 | codeparrot/github-code |
79b311cb378865179809c7d26c64cd1d9fd084374a08053e0008757e80c5563a | '''
Created on Sep 15, 2012
Agent classes. Contains references to instances of classes containing observer
handlers and code
Agent Instances are created automatically. Create a named Handler instance under the Agent,
as an instance of the desired handler class,
by create (POST) of a JSON object containing a dicti... | Python | iottoolkit/core/Agent.py | connectIOT/iottoolkit | apache-2.0 | 6,297 | 138 | codeparrot/github-code |
fb325ce9c9b2f769a23a924291fbf2391e644a61a1c1ffd45b17d55b571810da | # 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 agreed to in writing, ... | Python | tutorials/tensorflow/mlflow_gcp/trainer/model_deployment.py | GoogleCloudPlatform/ml-on-gcp | apache-2.0 | 6,618 | 183 | codeparrot/github-code |
39a3fcd59b8d4d6ed5a1d6ffa86c6a9e0fcb39dc71f7a09fcd7dafa72898fb8f | /**
* @copyright
* ====================================================================
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. ... | Java | subversion/bindings/javahl/src/org/apache/subversion/javahl/SVNClient.java | jmckaskill/subversion | apache-2.0 | 21,182 | 536 | codeparrot/github-code |
5e0b5a1290033b9c6dff5c1ba611c6de7dc5689e1277c9b603b01193abb37c9b | package com.charlie.wheather;
import android.content.Intent;
import android.content.res.Configuration;
import android.os.Bundle;
import android.support.design.widget.AppBarLayout;
import android.support.design.widget.TabLayout;
import android.support.v4.app.FragmentPagerAdapter;
import android.support.v4.view.... | Java | app/src/main/java/com/charlie/wheather/MainActivity.java | xu0xyc/amusing-wheather | apache-2.0 | 5,834 | 163 | codeparrot/github-code |
ddbc887958c7f3c54875ed35f81643296c82436b59f4f3c02e62a993861df836 | package xicom.com.baselibrary.retrofit2;
import android.content.Context;
import android.os.AsyncTask;
import android.os.Environment;
import android.util.Log;
import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.util.Arra... | Java | baselibrary/src/main/java/xicom/com/baselibrary/retrofit2/RetroFitSingleton.java | sanidhya09/androidprojectbase | apache-2.0 | 7,876 | 219 | codeparrot/github-code |
e6c370d7d1dd13fb55b52a8ad53fca9486320812539b673f312f8ef73edb3d60 | /*
* Licensed to Laurent Broudoux (the "Author") under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. Author licenses this
* file to you under the Apache License, Version 2.0 (the
* "License"); you may not... | Java | webapp/src/main/java/io/github/microcks/util/ParameterConstraintUtil.java | microcks/microcks | apache-2.0 | 2,354 | 61 | codeparrot/github-code |
bedc951eb7ac5a75e8cfc13df8ee32a9595a252668cdae4190d7bb51e192365c | #include "IdealInductor.hh"
#include <cmath>
IdealInductor::IdealInductor( NodeKeeper *nk, const char *name,
const char *n1,
const char *n2) : InstanceModel(nk, name)
{
node_ptr_vtop= this->AddCircuitNode(n1);
node_ptr_vbot= this->AddCircuitNode(n2);
node_ptr_I= this->AddInterna... | C++ | src/Circuit/models/ideal/IdealInductor.cc | devsim/devsim | apache-2.0 | 3,401 | 113 | codeparrot/github-code |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.