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 |
|---|---|---|---|---|---|---|---|---|
af8f86e607257667a567f374226c90e0b3f591bfab98b55e1d5e906de72cc8d9 | package org.gradle.test.performance.mediummonolithicjavaproject.p277;
import org.gradle.test.performance.mediummonolithicjavaproject.p276.Production5535;
import org.gradle.test.performance.mediummonolithicjavaproject.p276.Production5539;
import org.junit.Test;
import static org.junit.Assert.*;
public class Test5544 ... | Java | my-app/src/test/java/org/gradle/test/performance/mediummonolithicjavaproject/p277/Test5544.java | oehme/analysing-gradle-performance | apache-2.0 | 2,343 | 82 | codeparrot/github-code |
f363236e484594c1b2adcf1445ebfdd2636bf6e53f68e68721a534d195288eda | package com.furryfishapps.transitwear.app.time;
import android.os.Parcel;
import android.os.Parcelable;
import com.furryfishapps.transitwear.app.station.Station;
import java.text.DateFormat;
import java.util.Date;
import java.util.Locale;
public class Time implements Parcelable {
private Station station;
p... | Java | app/src/main/java/com/furryfishapps/transitwear/app/time/Time.java | dlinsin/TransitWear | apache-2.0 | 3,720 | 137 | codeparrot/github-code |
c7a4a8d8a3fc10803ae1851cbf775c5d5dd395a7bf3b25978b802f23a5a66508 | #codeing=utf-8
# @Time : 2017-11-08
# @Author : J.sky
# @Mail : bosichong@qq.com
# @Site : www.17python.com
# @Title : 实战:利用Django开发部署自己的个人博客(2)视图/路由
# @Url : http://www.17python.com/blog/53
# @Details : 实战:利用Django开发部署自己的个人博客(2)视图/路由
# @Other : OS X 10.11.6
# Python 3.6.1
# VSC... | Python | Django/Django02.py | bosichong/17python.com | apache-2.0 | 1,858 | 78 | codeparrot/github-code |
471925b1c7bb3cb2bca616b27508ca6272206c47bce1c4566e263dd5fdf9444f | package privacyfriendlyshoppinglist.secuso.org.privacyfriendlyshoppinglist.ui.preferences;
import android.content.res.Configuration;
import android.os.Bundle;
import android.preference.PreferenceActivity;
import android.support.annotation.LayoutRes;
import android.support.annotation.Nullable;
import android.support.v7... | Java | app/src/main/java/privacyfriendlyshoppinglist/secuso/org/privacyfriendlyshoppinglist/ui/preferences/AppCompatPreferenceActivity.java | SecUSo/privacy-friendly-shopping-list | apache-2.0 | 3,110 | 128 | codeparrot/github-code |
2552c6b889ab99f658dbaa165eda1e645e2429eb29b6b3649e01a1d084363141 | package com.nexusy.glp.parser.impl;
import com.nexusy.glp.data.basic.GCData;
import com.nexusy.glp.parser.GCLogLineParser;
import com.nexusy.glp.util.StringUtil;
import java.time.LocalDateTime;
import java.time.format.DateTimeFormatter;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
/**
* @author l... | Java | src/main/java/com/nexusy/glp/parser/impl/AbstractGCLogLineParser.java | lanhuidong/gc-log-profiler | apache-2.0 | 2,418 | 71 | codeparrot/github-code |
1d3e45d6623d4051ca965011a8db50cc8ac40d3657de174e8c99acf297451174 | /*
* Copyright (C) 2017 Square, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... | Java | okhttp/src/main/java/okhttp3/EventListener.java | mjbenedict/okhttp | apache-2.0 | 2,169 | 88 | codeparrot/github-code |
890fcfef1c9ac430689ab3410a9f801bdd6d4122b099c6836fbb7f19d32c5af9 | /*
Copyright 2015 The Kubernetes Authors.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, ... | GO | pkg/kubelet/kubelet.go | mscherer/kubernetes | apache-2.0 | 83,820 | 2,187 | codeparrot/github-code |
1d14ae6eaf191303d191d022325a8d96468527c6da37c65572cbbd1f6127b1e1 | /**
* For conditions of distribution and use, see copyright notice in LICENSE
*
* @file MaterialWizard.cpp
* @brief Utitility tool for choosing right material script from the material script template library.
*/
#include "StableHeaders.h"
#include "DebugOperatorNew.h"
#include "MaterialWizard.h"
#include "... | C++ | src/Application/OgreAssetEditorModule/MaterialWizard.cpp | jesterKing/naali | apache-2.0 | 18,170 | 553 | codeparrot/github-code |
8f508e1322b443c52713791a68c06435f1c956d33ff96d3e5dc4be01eeb3f5c1 | /*
* Copyright (C) 2013 Google Inc. 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, this list of conditio... | C++ | android/external/chromium_org/third_party/WebKit/Source/core/fileapi/FileError.cpp | indashnet/InDashNet.Open.UN2000 | apache-2.0 | 5,395 | 116 | codeparrot/github-code |
8506cc6407a82c48576ffa04815b2dcb438e6057c60140e6981eeb5fc92fc6f6 | extern alias fhir_dstu2;
using System;
using System.Collections.Generic;
using Trifolia.DB;
using Trifolia.Shared.Validation;
using Trifolia.Shared;
namespace Trifolia.Plugins.FHIR
{
[ImplementationGuideTypePlugin(Constants.IGTypeNames.FHIR_DSTU2)]
public class DSTU2Plugin : DefaultPlugin, IIGTypePlugin
{... | C# | Trifolia.Plugins/FHIR/DSTU2Plugin.cs | lantanagroup/trifolia | apache-2.0 | 864 | 34 | codeparrot/github-code |
df0c801fc9b525123a510552b3825678ea09809a6c1b63d9536cee46c988124f | /**
* 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 | hbase-server/src/test/java/org/apache/hadoop/hbase/filter/TestMultiRowRangeFilter.java | ChinmaySKulkarni/hbase | apache-2.0 | 31,044 | 741 | codeparrot/github-code |
b60a072b78bdfc32b47999646aea445601a06228dcbe9590714ec7563c8a5199 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html lang="en-GB" xml:lang="en-GB" xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8"/>
<title>Statistics of Abbr in UD_Moksha... | HTML | treebanks/mdf_jr/mdf_jr-feat-Abbr.html | UniversalDependencies/universaldependencies.github.io | apache-2.0 | 8,316 | 177 | codeparrot/github-code |
abdbc202508ff523e4123e95f46bb5a09f1149ae9038ed862025b54bb4a34e61 | /*
This question is from https://leetcode.com/problems/robot-room-cleaner/
Difficulty: hard
Given a robot cleaner in a room modeled as a grid.
Each cell in the grid can be empty or blocked.
The robot cleaner with 4 given APIs can move forward, turn left or turn right. Each turn it made is 90 degrees.
When it tries ... | Java | Hard/489 Robot Room Cleaner.java | yehchilai/IQ | apache-2.0 | 3,736 | 118 | codeparrot/github-code |
ec0ab6356da28ed46d09eaf3528154677c89ef845ef82df7690cf7624bf9bc7f | /*
* 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 | asterix-common/src/main/java/org/apache/asterix/common/annotations/RecordDataGenAnnotation.java | amoudi87/asterixdb | apache-2.0 | 1,686 | 48 | codeparrot/github-code |
861399b6bdd2b6c4cf1d398b5f02b8ca2722b00814a86853c4e3d5ebbadc8428 | /*
* Copyright 2020 StreamSets 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... | Java | orchestrator-lib/src/test/java/com/streamsets/pipeline/stage/processor/controlHub/TestControlHubApiDProcessorUpgrader.java | streamsets/datacollector | apache-2.0 | 4,652 | 115 | codeparrot/github-code |
7e36802db72beba171c33c2a7e13d0976ccb8f8589c07897085f2a17cb77e772 | package com.delmar.sysSettings.model;
import com.delmar.core.model.CoreModel;
// default package
/**
* SysSettingsItemTrl entity. @author MyEclipse Persistence Tools
*/
public class SysSettingsItemTrl extends CoreModel {
// Fields
private SysSettingsItem sysSettingsItem;
private String language;
private Stri... | Java | cargo/src/main/java/com/delmar/sysSettings/model/SysSettingsItemTrl.java | ldlqdsdcn/wms | apache-2.0 | 1,539 | 83 | codeparrot/github-code |
709a9c9b06b9adc74135c618c1c5b20b779de6775ed23a3a01101ee6b914842c | package com.cloudray.scalapress.util.mvc.interceptor
import org.springframework.web.servlet.handler.HandlerInterceptorAdapter
import javax.servlet.http.{HttpServletResponse, HttpServletRequest}
import com.cloudray.scalapress.settings.{InstallationDao, GeneralSettingsDao}
import com.cloudray.scalapress.util.Scalate
/*... | Scala | src/main/scala/com/cloudray/scalapress/util/mvc/interceptor/OfflineInterceptor.scala | vidyacraghav/scalapress | apache-2.0 | 1,183 | 37 | codeparrot/github-code |
a2b56de3ca3c6290d7dc2bab54e8edb5a9b50cf2c56352df388c59b18215707d | /*
* 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-alexaforbusiness/src/main/java/com/amazonaws/services/alexaforbusiness/model/transform/GetInvitationConfigurationResultJsonUnmarshaller.java | aws/aws-sdk-java | apache-2.0 | 3,586 | 85 | codeparrot/github-code |
827904d44c58461ae92831d2023829022fe71ddc87e9bc7af43f2156f646789f | /*
* 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-xray/src/main/java/com/amazonaws/services/xray/model/transform/SamplingTargetDocumentMarshaller.java | aws/aws-sdk-java | apache-2.0 | 3,360 | 68 | codeparrot/github-code |
e4fc7ba59c5245b7093c9b8c4d164e465e95de89e8615accbbd6021854f6ba23 | /*
* Copyright 2006-2012 Bas Leijdekkers
*
* 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 agree... | Java | java-impl/src/main/java/com/siyeh/ipp/interfacetoclass/ConvertInterfaceToClassIntention.java | consulo/consulo-java | apache-2.0 | 8,898 | 212 | codeparrot/github-code |
4215837105bb2693a322a6868a610602fd05ffb1a073c66fb1fbada54146af4c | package com.pinhuba.core.pojo;
/**
* 数据库表名:OA_WARETYPE_RANGE
*/
public class OaWaretypeRange extends BaseBean implements java.io.Serializable {
/**
* 知识类型表
*/
private static final long serialVersionUID = -1344353964979311417L;
private Integer oaWareTypeId; // 知识类型ID
private OaWareType wareType; // 知识类型
p... | Java | src/core/com/pinhuba/core/pojo/OaWaretypeRange.java | cgs1999/mybams | apache-2.0 | 1,435 | 78 | codeparrot/github-code |
9842e6edb0694c559228f730d54115d9a26d84c9e15943cedf86e2dac45da5bc | // LightProjector.cpp: implementation of the CLightProjector class.
//
//////////////////////////////////////////////////////////////////////
#include "stdafx.h"
#include "LightProjector.h"
#include "..\xr_object.h"
#include "..\xrRender\lighttrack.h"
// tir2.xrdemo -> 45.2
// tir2.xrdemo -> 61.8
const float P_di... | C++ | src/xray/xr_3da/xrRender_R1/LightProjector.cpp | OLR-xray/OLR-3.0 | apache-2.0 | 10,829 | 357 | codeparrot/github-code |
f17f11cb13d706039b09e18ef6e7e1661aed6c1f496311a76cb029055178c863 | #include<iostream>
#include<vector>
#include<string>
#include<algorithm>
using namespace std;
int TheValue(char sa) {
int a;
if(sa == '0')
a = 0;
else if(sa == '1')
a = 1;
else if(sa == '2')
a = 2;
else if(sa == '3')
a = 3;
else if(sa == '4')
a = 4;
else if(sa == '5')
a = 5;
else if(sa == '6')
a =... | C++ | c/base/火星加法(20进制).cpp | WeAreChampion/notes | apache-2.0 | 1,760 | 136 | codeparrot/github-code |
a7ea9b4efb203809aab6ea7de7ddad1330bc3a21949bfd5fd8e961c944b848fb | #-------------------------------------------------------------------------------
# Copyright 2014 Indra
#
# 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/li... | JavaScript | es.itecban.deployment.executionmanager.gui.swf.war/themes/bbva/js/utils.js | iLabrys/iLabrysOSGi | apache-2.0 | 2,039 | 70 | codeparrot/github-code |
48f67a74d84d145239d2ebfc40dede9d6d0ebfd3e818370e424984169999af24 | /*
*
*/
package net.community.chest.swing.event;
import java.util.Arrays;
import java.util.Collections;
import java.util.List;
import javax.swing.event.ChangeEvent;
import javax.swing.event.ChangeListener;
import net.community.chest.awt.event.ListenerEventEnum;
import net.community.chest.util.collection.Collection... | Java | chest/gui/swing/src/main/java/net/community/chest/swing/event/ChangeListenerEnum.java | lgoldstein/communitychest | apache-2.0 | 1,693 | 66 | codeparrot/github-code |
260220654980ef6fc4ebe95f115c353126bd881ddc22b14ae2a1b58b53724523 | package com.github.runly.riforum_android.ui.view;
import android.app.Dialog;
import android.content.Context;
import android.os.Bundle;
import android.support.annotation.NonNull;
import android.support.annotation.StyleRes;
import android.view.View;
import android.view.Window;
import android.view.WindowManager;
import a... | Java | app/src/main/java/com/github/runly/riforum_android/ui/view/DeleteDialog.java | Runly/RiForum-Android | apache-2.0 | 1,923 | 69 | codeparrot/github-code |
6a951d4871a50c67e0666e59e612839835ab760b8581143da766531c6fd7401b | package leetcode.medium;
import jianzhioffer.TreeNode;
import java.util.LinkedList;
import java.util.List;
/**
* Created by wangxiaoyi on 15/12/6.
*/
public class PathSumII {
public List<List<Integer>> pathSum(TreeNode root, int sum) {
List<List<Integer>> ret = new LinkedList<>();
List<Integer... | Java | src/main/java/leetcode/medium/PathSumII.java | grokcoder/leetcode | apache-2.0 | 1,535 | 62 | codeparrot/github-code |
db66ddfc36e8d13d6a9fa9fd05bcec0c2e24aaac32d8df78b7603236500126d5 | /*
* SqlRowDataConverterTest.java
*
* This file is part of SQL Workbench/J, http://www.sql-workbench.net
*
* Copyright 2002-2015, Thomas Kellerer
*
* 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... | Java | test/junit/workbench/db/exporter/SqlRowDataConverterTest.java | Taller/sqlworkbench-plus | apache-2.0 | 12,985 | 400 | codeparrot/github-code |
32feb9f601e62d67b9a678b4e929cfcbe60f152780a16b208d35f569f68354f8 | /*
* 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 ... | Scala | flink-libraries/flink-table/src/test/scala/org/apache/flink/table/catalog/InMemoryExternalCatalogTest.scala | zimmermatt/flink | apache-2.0 | 5,272 | 153 | codeparrot/github-code |
d7bd868224ba4c65d813705362e528463977f745583ed12aee823fa70ba81038 | /*
* Copyright 2015 Red Hat, Inc. and/or its affiliates.
*
* Licensed under the Apache License version 2.0, available at http://www.apache.org/licenses/LICENSE-2.0
*/
package org.wildfly.swarm.webservices;
import org.wildfly.swarm.config.Webservices;
import org.wildfly.swarm.config.webservices.ClientConfig;
impor... | Java | webservices/api/src/main/java/org/wildfly/swarm/webservices/WebServicesFraction.java | twilking/wildfly-swarm | apache-2.0 | 2,159 | 51 | codeparrot/github-code |
517f582d40cc5518a75e1ca2ef035a23f65c38fd2a8693edeb7cdaa8f4ca778d | //===--- swift-reflection-test.c - Reflection testing application ---------===//
//
// 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 | tools/swift-reflection-test/swift-reflection-test.c | tinysun212/swift-windows | apache-2.0 | 15,080 | 485 | codeparrot/github-code |
0207d60e4e1afb5345712a513e17312713efa59365d9f72ad8d295f806a3d603 | <!DOCTYPE HTML>
<html>
<head>
<!-- Meta Tags -->
<meta charset="UTF-8">
<meta name="description" content="Luxurious Watches">
<meta name="keywords" content="watch, luxury, alpha, wrist watch">
<meta name="author" content="Mallari, Villanueva">
<meta name="viewport" content="width=devic... | HTML | lange.html | nischkar/webdes | apache-2.0 | 44,338 | 1,119 | codeparrot/github-code |
bbb4d021e0aa356dec9f376fe72df3a161352dea1e22da30c16823eb41a80fe7 | // SPDX-License-Identifier: Apache-2.0
// Copyright 2017-2021 Authors of Cilium
package k8sTest
import (
"fmt"
. "github.com/onsi/gomega"
. "github.com/cilium/cilium/test/ginkgo-ext"
"github.com/cilium/cilium/test/helpers"
)
// The 5.4 CI job is intended to catch BPF complexity regressions and as such
// doesn... | GO | test/k8sT/bookinfo.go | michi-covalent/cilium | apache-2.0 | 7,683 | 212 | codeparrot/github-code |
ffdfa03872d646c1598e95957b83738b45981a426472111f07c668007545eb38 | /**
*
* Copyright 2017 Florian Erhard
*
* 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 | GediCore/src/gedi/core/region/ReferenceGenomicRegion.java | florianerhard/gedi | apache-2.0 | 9,405 | 277 | codeparrot/github-code |
fd8fe204b50aa9112f966f5a83faee7281469eefe9efaec040f305e5aa5624f7 | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may ... | Scala | sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/Cast.scala | pronix/spark | apache-2.0 | 33,782 | 918 | codeparrot/github-code |
0e3612efd7625b9077c0dcfd9978184a80b606f6d4662f49cff2494641f81f27 | =head1 LICENSE
Copyright [1999-2013] Wellcome Trust Sanger Institute and the EMBL-European Bioinformatics Institute
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licen... | Perl | modules/Bio/EnsEMBL/GlyphSet/_lrg.pm | Ensembl/ensembl-draw | apache-2.0 | 13,337 | 394 | codeparrot/github-code |
a06bb94e33ac2eea6c212435ca1d5c4ae5f1f089f4adb597496008c8d64b540d | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
import java.lang.reflect.Method;
import org.junit.After;
import org.junit.AfterClass;
import org.junit.Before;
import org.juni... | Java | src/test/java/SumAvgReflectionPatientT.java | metavin007/Homework | apache-2.0 | 2,444 | 104 | codeparrot/github-code |
1045b46605e61aa7f5b2dfc15a9df919bd172449d3aed0a86d2497597a301d05 | # Links to a YouTube video
class Video < ActiveRecord::Base
include Seeded
def self.check_i18n_names
video_keys = Video.all.collect(&:key)
i18n_keys = I18n.t('data.video.name').keys.collect(&:to_s)
missing_keys = video_keys - i18n_keys
unless missing_keys.empty?
raise "Missing strings for vi... | Ruby | dashboard/app/models/video.rb | ty-po/code-dot-org | apache-2.0 | 1,725 | 68 | codeparrot/github-code |
a0e60be08b8125d4baa3cca8adfa8b0adc72ce6936722d0b36c6f54bcb5ae76f | /*
Copyright 2017 Ilia Gubarev
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 wr... | Java | source/src/main/java/com/soulwarelabs/ecmabox/utility/Discoverables.java | soulwarelabs/ecmabox-core | apache-2.0 | 2,612 | 86 | codeparrot/github-code |
6fd4a72f38ed8e0b8476ed6a118d6141ff2a2e9d49cde46acb8b7250bba01409 | package madcrawler.url;
import java.net.URL;
import static com.google.common.net.UrlEscapers.urlFragmentEscaper;
import static madcrawler.url.UrlChecker.*;
public class UrlFixer {
public String fixForStoring(URL base, String toFix) {
String candidate = toFix.trim();
if (isWihoutBody(toFix)) ret... | Java | src/main/java/madcrawler/url/UrlFixer.java | tireks/mad-crawler | apache-2.0 | 1,949 | 57 | codeparrot/github-code |
eb2f6b347c7664aa1d22f58c542c6b4225954c84a0c9d11643a1d6e735b3dbf6 | /*
* The Gemma project
*
* Copyright (c) 2009 University of British Columbia
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
... | Java | gemma-core/src/main/java/ubic/gemma/core/analysis/report/DatabaseViewGeneratorImpl.java | ppavlidis/Gemma | apache-2.0 | 15,573 | 372 | codeparrot/github-code |
96deb89734ed75c5400a93ec4e3cf59860911e1e27fdcbd6d3bf741e9a0c6cfb | /*
* Copyright (c) 2005-2010 Grameen Foundation USA
* All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unl... | Java | application/src/test/java/org/mifos/framework/util/CollectionUtilsTest.java | mifos/1.5.x | apache-2.0 | 3,524 | 86 | codeparrot/github-code |
b10a03890d778012a9164d4ca7c9fe73060204ca61e461519cd8e1b847399182 | <!doctype html>
<html class="default no-js">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>Verifier | @korsimoro/indy-sdk</title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="../a... | HTML | wrappers/node/docs/interfaces/_spi_api_.verifier.html | korsimoro/indy-sdk | apache-2.0 | 19,723 | 393 | codeparrot/github-code |
eec7cee446a36e2be22e6edde6bf8d4cf4e455de55ce199c22f231b80ec72084 | # Copyright 2020 Nokia.
#
# 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 wr... | Python | nuage_horizon/dashboards/project/networks/workflows.py | nuagenetworks/nuage-openstack-horizon | apache-2.0 | 19,029 | 433 | codeparrot/github-code |
90068e274c2f7454bfd50397163f84b19769a77c6ca2239e0537a03fbbfc49ce | /*
* Copyright (C) 2007 The Guava 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 ... | Java | guava/src/com/google/common/base/Preconditions.java | jakubmalek/guava | apache-2.0 | 51,675 | 1,384 | codeparrot/github-code |
23c49e9a03e37a588d5b82f22e2f3a6fdaa46b0c43f0788307d84ebc64b3b5ba | package WordGraph::EdgeModel::ReferenceTargetModel;
use Moose;
use namespace::autoclean;
extends('ReferenceTargetPairwiseModel');
with('WordGraph::EdgeModel');
has 'rtm' => ( is => 'ro' , isa => 'ReferenceTargetModel' , init_arg => undef , lazy => 1 , builder => '_rtm_builder' );
sub _rtm_builder {
my $this = sh... | Perl | summarizers/graph-summarizer-4/src/WordGraph/EdgeModel/ReferenceTargetModel.pm | ypetinot/web-summarization | apache-2.0 | 4,343 | 159 | codeparrot/github-code |
44a1cb6ec1f05697d80626862ab469a62b3c0509adba8fa218fd88eb861fb734 | /*
* Copyright (c) 2018, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
*
* WSO2 Inc. 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/l... | Java | components/org.wso2.carbon.identity.sso.saml/src/main/java/org/wso2/carbon/identity/sso/saml/extension/eidas/EidasExtensionProcessor.java | wso2-extensions/identity-inbound-auth-saml | apache-2.0 | 17,921 | 388 | codeparrot/github-code |
56e605e08133b4eb601a35c1adc654bff0617898b2723f2f57246bee147e0b67 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html lang="en-GB" xml:lang="en-GB" xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8"/>
<title>Statistics of Number in UD_Yaku... | HTML | treebanks/sah_yktdt/sah_yktdt-feat-Number.html | UniversalDependencies/universaldependencies.github.io | apache-2.0 | 15,824 | 250 | codeparrot/github-code |
ee22fca1c7a0accc2b2f9fd505bf88d2fe8189b50c2144ef0e203174c64f4f7d | package br.uff.labtempo.osiris.configuration;
import lombok.*;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;
/**
* SensorNet module configuration data
* values are retrieved from the applicati... | Java | impl/src/main/java/br/uff/labtempo/osiris/configuration/SensorNetModuleConfig.java | aghigo/osiris-web-backend | apache-2.0 | 2,133 | 60 | codeparrot/github-code |
66a7d4e9b46043edc8a8b8482961762cd83cca1a08fb6c91b718e474b1356fb1 | /*
* Copyright 2016 LinkedIn Corp.
*
* 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 | pygradle-plugin/src/main/groovy/com/linkedin/gradle/python/plugin/PythonPlugin.java | sixninetynine/pygradle | apache-2.0 | 10,847 | 195 | codeparrot/github-code |
e8f36bca97b5275da3c5b9cf38aeafdc080871ae56a5964e95932e45abeb8506 | /*
* Copyright 2004 The Closure Compiler 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... | Java | src/com/google/javascript/jscomp/Scope.java | knutwalker/google-closure-compiler | apache-2.0 | 16,962 | 659 | codeparrot/github-code |
6bc6ee47535f0c90a4c4f8a5c7e046af15eca815db99cc27bede53c9d828d1ca | /*******************************************************************************
* Copyright 2007-2013 See AUTHORS file.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.ap... | Java | xworker_web_extjs/src/main/java/xworker/html/extjs/Ext/PanelFloatingCreator.java | x-meta/xworker | apache-2.0 | 1,226 | 33 | codeparrot/github-code |
27eb2dfcab47e526e590716c655ff5e3a87bd9f3b3f4a77ba616d59df8b9047f | <?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>NormalResult - ScalaTest 2.2.6 - org.scalatest.Assertions.NormalResult</title>
<meta name="description" content="NormalResult - ScalaT... | HTML | public/scaladoc/2.2.6/org/scalatest/Assertions$$NormalResult.html | scalatest/scalatest-website | apache-2.0 | 31,386 | 575 | codeparrot/github-code |
bb021940e6d0188d138fc38afe4f7b6a1e7c83787172337e7035b3307f825975 | ---
layout: post
title: "接上一篇文章,写个js加载器。"
subtitle: " \"js加载器\""
date: 2016-08-05 15:55:00
author: "ZWW"
header-img: "img/home-bg.jpg"
tags:
- 加载器
---
> **让加载变得更有趣,不妨封装写个通用的加载器,可以加载样式,图片,脚本等文件。**
开发移动端的时候。通常打开一个h5页面都会出现正在加载,这个类似于pc端发送ajax请求的过程。但是有很多不同。
对于图片的处理通常有懒加载。脚本也可以按需加载,现在很多框架都可以实现。原理就是... | Markdown | _posts/2016-08-05-preload.markdown | tianzi77/tianzi77.github.io | apache-2.0 | 4,504 | 135 | codeparrot/github-code |
5430a439c64f217f355db67e40bb9cb640f3938ad9ce8cfdcc8b8c82229be3ac | package ch.ethz.dalab.dissolve.examples.binaryclassification
import org.apache.log4j.PropertyConfigurator
import org.apache.spark.SparkConf
import org.apache.spark.SparkContext
import org.apache.spark.mllib.classification.SVMWithSGD
import org.apache.spark.mllib.regression.LabeledPoint
import org.apache.spark.mllib.ut... | Scala | dissolve-struct-examples/src/main/scala/ch/ethz/dalab/dissolve/examples/binaryclassification/COVBinary.scala | dalab/dissolve-struct | apache-2.0 | 4,363 | 133 | codeparrot/github-code |
c679d344052dab6b97b1010faed1d5a3a93cdac881b9e4c504537fbb81637c6f | function addMarkersToMap(datapoints, map){
for ( var i=0; i < datapoints.length; ++i )
{
L.marker( [datapoints[i].Lattitude, datapoints[i].Longitude] )
.bindPopup(datapoints[i].Description)
.addTo(map);
}
}
function addMarkerToMap(lat, lon, desc, map){
L.marker( [lat,lon])
.bindPopup(desc)... | JavaScript | application/js/app/helper.js | drdwitte/drdwitte.github.io | apache-2.0 | 6,432 | 285 | codeparrot/github-code |
ed7b0abf868c420f517e5f9f31c5f66b60292160d20a6414f0a10a679646c8c7 | //
// HDSectionData.h
// CBTableViewDataSourceDemo
//
// Created by 洪东 on 7/15/16.
// Copyright © 2016 Cocbin. All rights reserved.
//
#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
#import "HDCellMaker.h"
typedef NSArray * (^GetDataBlock)();
typedef NSInteger (^NumberOfRowsBlock)(NSInteger section)... | C | HDTableViewMaker/HDSectionData.h | hongdong/HDTableViewMaker | apache-2.0 | 1,380 | 56 | codeparrot/github-code |
840b2b38e5cbf2c84a3af5683b3345486239941d14160c659d16f78fe02f4dc9 | /**
* Copyright Flexpay AB
*/
package com.rest.resources;
import javax.ws.rs.Consumes;
import javax.ws.rs.DELETE;
import javax.ws.rs.GET;
import javax.ws.rs.POST;
import javax.ws.rs.Path;
import javax.ws.rs.PathParam;
import javax.ws.rs.Produces;
import javax.ws.rs.WebApplicationException;
import javax.ws.rs.core.Me... | Java | src/main/java/com/rest/resources/PostResource.java | Mumuksia/Web-Starter | apache-2.0 | 1,726 | 82 | codeparrot/github-code |
484e25945b74a0bce392566f86cc2b68aa84f9badedf2a75ecf8d7e0f8970a6e | package ch06;
public class ShortestPath_FLOYD {
private boolean[][][] P;// 顶点v和w之间的最短路径P[v][w],若P[v][w][u]为true,则u是从v到w当前求得最短路径上的顶点
private int[][] D;// 顶点v和w之间最短路径的带权长度D[v][w]
public final static int INFINITY = Integer.MAX_VALUE;
// 用Dijkstra算法求有向网G的v0顶点到其余顶点v的最短路径P[v]及其权值D[v]
public void FLOYD(MGraph G) {
... | Java | src/ch06/ShortestPath_FLOYD.java | greatpie/datastructure | apache-2.0 | 1,148 | 45 | codeparrot/github-code |
00ed2ec5543be8f31a54f8a66cba7aed9a7fb74f3239c362b59602aa3fdd1278 | define([
'../Core/Cartesian2',
'../Core/clone',
'../Core/Color',
'../Core/combine',
'../Core/createGuid',
'../Core/defaultValue',
'../Core/defined',
'../Core/defineProperties',
'../Core/destroyObject',
'../Core/DeveloperError',
'../... | JavaScript | Source/Scene/Material.js | NaderCHASER/cesium | apache-2.0 | 59,903 | 1,554 | codeparrot/github-code |
c6cb8e515edbbbb69314798b408b67e3c9d0b6c734778e88f99d610cc079aa21 | /*
* Copyright (c) 2008-2018, Hazelcast, 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 ... | Java | hazelcast/src/main/java/com/hazelcast/map/impl/query/QueryResult.java | tufangorel/hazelcast | apache-2.0 | 9,859 | 293 | codeparrot/github-code |
858b8b62dd25061632effada624c391282f84fd9c5f062e7a7e2ee2451796844 | /*
* This file is part of the KubeVirt 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 la... | GO | pkg/virt-handler/virtwrap/api/schema.go | admiyo/kubevirt | apache-2.0 | 15,629 | 548 | codeparrot/github-code |
f6fa84f54efb4ad77ce379cb2bd050aa3233446d306c9e14591ccb58f3de3a08 | /*
* 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/org/apache/catalina/core/StandardWrapper.java | SourceStudyNotes/Tomcat8 | apache-2.0 | 59,439 | 1,944 | codeparrot/github-code |
18884832608ba5ab0e21b5c50d96550988fb8fcaa6d6c24a1a4aa15283174934 | /**
* 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/test/org/apache/hadoop/fs/TestLocalDirAllocator.java | shot/hadoop-source-reading | apache-2.0 | 7,073 | 233 | codeparrot/github-code |
23904ae62d7d3d335e5c422bc988d3aabaace14d3270affbe5917839c66887c1 | // This is a part of the Microsoft Foundation Classes C++ library.
// Copyright (C) Microsoft Corporation
// All rights reserved.
//
// This source code is only intended as a supplement to the
// Microsoft Foundation Classes Reference and related
// electronic documentation provided with the library.
// See thes... | C++ | third_party/atlmfc/src/mfc/olelink.cpp | pinkpegasus/omaha_vs2010 | apache-2.0 | 21,520 | 826 | codeparrot/github-code |
778d8d1b077d51183bb841e36f6d0d8e1ae98a77069e890844b8ee7211e25b96 | package com.njlabs.showjava.utils;
import android.app.NotificationManager;
import android.app.PendingIntent;
import android.support.v4.app.NotificationCompat;
/**
* Created by Niranjan on 24-05-2015.
*/
@SuppressWarnings("unused")
public class Notify {
NotificationManager mNotifyManager;
NotificationCompat... | Java | app/src/main/java/com/njlabs/showjava/utils/Notify.java | ajrulez/show-java | apache-2.0 | 1,687 | 56 | codeparrot/github-code |
dc9ade6a67481c221a218903e532e711119558ab74ebb6f3ebcc2709948aaffb | <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>Carousel Component Example - Ajax Search</title>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<script type="text/javascript" src="http://yui.yahooapis.com/combo?2.6.0/build/utiliti... | HTML | graphical-user-interface-scripting-central/javascript/yui_carousel-1.0/carousel/carousel_ajax_search.html | drlouie/public-views | apache-2.0 | 9,482 | 357 | codeparrot/github-code |
f40a3cd8aecb299b4d417cf26edcd7e5d2784bec703ca43ee326ee53b78b7180 | /*
* Copyright 2007 the project originators.
*
* 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... | Java | src/java/com/teletalk/jserver/rmi/remote/RemoteLoggingEvent.java | tolo/JServer | apache-2.0 | 1,729 | 61 | codeparrot/github-code |
d43f4bdd3c641fb5322e67ce9c98e32b0fea2e64add62468807bddce79708170 | package com.github.linsolas.casperjsrunner;
import static com.github.linsolas.casperjsrunner.LogUtils.getLogger;
import static java.util.Arrays.asList;
import org.codehaus.plexus.util.DirectoryScanner;
import java.io.File;
import java.util.ArrayList;
import java.util.Collection;
import java.util.List;
public class ... | Java | src/main/java/com/github/linsolas/casperjsrunner/DefaultScriptsFinder.java | linsolas/casperjs-runner-maven-plugin | apache-2.0 | 2,194 | 66 | codeparrot/github-code |
205b1777600d49ceec6257b8260d1e1c6a543b59d90a96c75132997c47195ba4 | function Controller() {
function getaNode() {
var resourceName = "node/2";
var root = "http://drupal2-testdrupal.rhcloud.com/";
drupal.getNode(resourceName, function(response) {
Ti.API.info(response);
var imageurl = root + "sites/default/files/field/image/" + response... | JavaScript | Resources/iphone/alloy/controllers/get_node.js | max1020/drupal_client_alloy_app | apache-2.0 | 4,148 | 121 | codeparrot/github-code |
ea1bb80a0d7ca4f486c0d1472e662ed43f04033c2fef52741dfc797f02b15b8a | /*
* Copyright 2012-present Facebook, 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... | Java | src/com/facebook/buck/cli/AuditClasspathCommand.java | rhencke/buck | apache-2.0 | 8,113 | 244 | codeparrot/github-code |
f5f07810091280b4cf386849131b1915a3d108c2d9c185c61f4510d35701e281 | /*
* Copyright 2000-2012 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 | src/test/java/org/jetbrains/idea/svn16/SvnConcurrentChangeListManagerTest.java | consulo/consulo-apache-subversion | apache-2.0 | 17,551 | 392 | codeparrot/github-code |
af5d62313869c385f4b737937f19cff36b78b0d9b5ce8b1f605bfa6612722491 | /*
Copyright 2001-2002 The Apache Software Foundation
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 | test-sources/org/apache/batik/svggen/NegativeLengths.java | Uni-Sol/batik | apache-2.0 | 7,903 | 278 | codeparrot/github-code |
754aa599745da907d2d069d79e6ba4422f766b179556b55595fc34a1898aee32 | /*
* Copyright 2014–2018 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 | connector/src/main/scala/quasar/qscript/qsu/References.scala | jedesah/Quasar | apache-2.0 | 4,332 | 120 | codeparrot/github-code |
54c060fa491f45e2ffce056d8e2321e3ba12e4321736971f2073f46afe7ddd6f | #pragma once
#include "il2cpp-config.h"
#ifndef _MSC_VER
# include <alloca.h>
#else
# include <malloc.h>
#endif
#include <stdint.h>
#include "mscorlib_System_Object4170816371.h"
#include "mscorlib_System_IntPtr4010401971.h"
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvali... | C | iOS_app/Classes/Native/UnityEngine_UnityEngine_TouchScreenKeyboard1858258760.h | Bersaelor/D2 | apache-2.0 | 977 | 43 | codeparrot/github-code |
64b6ace77f25cbf5e77e2548f8054d46ee40d59682414e5ab20b6a9850309a00 | // Copyright 2022 Google LLC. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applica... | GO | services/google/osconfig/alpha/patch_deployment.go | GoogleCloudPlatform/declarative-resource-client-library | apache-2.0 | 74,157 | 2,152 | codeparrot/github-code |
5675d7e671515226aaf84829ed89a1f9f96c34200733c28ffaa4107cfc9ac3ac | package com.twitter.inject.app.internal
import com.google.inject.Key
import com.twitter.finatra.annotations.FlagImpl
import com.twitter.inject.{TwitterModule, Logging}
object FlagsModule {
def create(flags: Seq[com.twitter.app.Flag[_]]) = {
val flagsMap = (for (flag <- flags) yield {
flag.name -> flag()
... | Scala | inject/inject-app/src/main/scala/com/twitter/inject/app/internal/FlagsModule.scala | kaushik94/finatra | apache-2.0 | 796 | 31 | codeparrot/github-code |
1c5640a775a6f083e8d214e9574ee785e0f4e6ec992e5e7019cdda5cc209dcbb | #!/bin/bash
set -e
# unzip featuring an enhanced version of tar's --strip-components=1
# Usage: unzip-strip ARCHIVE [DESTDIR] [EXTRA_cp_OPTIONS]
# Derive DESTDIR to current dir and archive filename or toplevel dir
unzip-strip() (
set -eu
local archive=$1
local destdir=${2:-}
shift; shift || :
local... | Shell | scripts/update-codemirror.sh | jens-maus/RaspberryMatic | apache-2.0 | 8,182 | 168 | codeparrot/github-code |
1c5b64564abf61de3be74da3b80db604f1d95909d730ac0955a412dc21e078cd | # ===============================================================================
# Copyright 2011 Jake Ross
#
# 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... | Python | pychron/canvas/canvas2D/extraction_line_canvas2D.py | UManPychron/pychron | apache-2.0 | 10,949 | 339 | codeparrot/github-code |
5fef95b882e26ca5f1c4aedaf9c3479eeff30f38e8172afe739c2dc60422de65 | /*
* #%L
* Game Database
* %%
* Copyright (C) 2016 - 2016 LCManager Group
* %%
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
* ... | Java | gdb-service/src/main/java/org/lcmanager/gdb/service/requirement/GraphicsComparator.java | lcmanager/gdb | apache-2.0 | 4,390 | 107 | codeparrot/github-code |
d4faed3f7467624fbbcae0eb83747cf8c0b1ef270deff4110dee195011419f5a | /*
* Copyright 2015 Brent Douglas and other contributors
* as indicated by the @author tags. 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.or... | Java | core/src/main/java/io/machinecode/chainlink/core/factory/partition/CollectorFactory.java | BrentDouglas/chainlink | apache-2.0 | 2,302 | 50 | codeparrot/github-code |
9f2d825b677737176651aeb7c71db5e94a75148a857025ca48c549628aa4b79f | /* Copyright 2014-2016 Maurice Laveaux
*
* 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... | C | lib/include/renderer/Material.h | mlaveaux/OpenGLRenderer | apache-2.0 | 5,118 | 155 | codeparrot/github-code |
ff0d5d0b5561decc907f06caec1007f41dca58a7ef37b29a7cb9c152769d42e8 | /*
* Copyright 2016-2019 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 | agent/plugins/logger-plugin/src/test/java/org/glowroot/agent/plugin/logger/Log4j2xIT.java | trask/glowroot | apache-2.0 | 15,595 | 405 | codeparrot/github-code |
5425d33aafcdea6c25606afc15c7edb58a0cd5ea9657f9155ec5e7a9db77d263 | package org.wso2.andes.mqtt;
import org.wso2.andes.kernel.AndesException;
import org.wso2.andes.kernel.AndesMessageMetadata;
import org.wso2.andes.kernel.AndesMessagePart;
import org.wso2.andes.kernel.MessagingEngine;
import java.nio.ByteBuffer;
public class MQTTUtils {
/*Will convert an MQTT Message complien... | Java | modules/andes-core/broker/src/main/java/org/wso2/andes/mqtt/MQTTUtils.java | akalankapagoda/andes | apache-2.0 | 3,227 | 76 | codeparrot/github-code |
c42a23ee1f697650d2114739780c47b3c6bc4a38ac72a93d0d5ed8305ac78a9f | /*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
*
* Copyright 1997-2010 Oracle and/or its affiliates. All rights reserved.
*
* Oracle and Java are registered trademarks of Oracle and/or its affiliates.
* Other names may be trademarks of their respective owners.
*
* The contents of this file are su... | Java | hprof-heap/src/main/java/org/netbeans/lib/profiler/heap/AbstractLongMap.java | sskorol/jvm-tools | apache-2.0 | 15,049 | 443 | codeparrot/github-code |
d273e52fc008a8b753d3713ef1f5963dc44164ddb8a0b62bb217a263bcd7e425 | package mr.wordcount.writables;
import org.apache.hadoop.io.*;
import org.apache.hadoop.mapreduce.Mapper;
import org.apache.hadoop.mrunit.mapreduce.MapReduceDriver;
import org.apache.hadoop.mrunit.types.Pair;
import org.junit.Test;
import java.io.IOException;
import java.util.Collections;
import java.util.List;
impo... | Java | JHU605.788/HadoopSamples/src/test/java/mr/wordcount/writables/StartsWithCountJob_GenericWritableTest.java | gliptak/hadoop-course | apache-2.0 | 2,578 | 62 | codeparrot/github-code |
6e88f43873da97b6c3b4c813188b1280cdcbeccff182de28e1eb8a9ac1f8fbe9 | <?php
if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/**
* AutoCodeIgniter.com
*
* 基于CodeIgniter核心模块自动生成程序
*
* 源项目 AutoCodeIgniter
* 作者: AutoCodeIgniter.com Dev Team EMAIL:hubinjie@outlook.com QQ:5516448
* 版权: Copyright (c) 2015 , AutoCodeIgniter com.
* 项目名称:订单管理
* 版本号:1
* 最后生成时间:2... | PHP | application/controllers/adminpanel/Order.php | mawei/dudu | apache-2.0 | 19,263 | 367 | codeparrot/github-code |
4691739dafe068a72447bcb4d7ffeeb2784428270ae84f689284cb143431b2f5 | /*
* Copyright 2011-2017 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 | cartier-redis/src/main/java/com/lambdaworks/redis/cluster/ClusterNodeCommandHandler.java | CiNC0/Cartier | apache-2.0 | 5,037 | 143 | codeparrot/github-code |
220d3dba598926695ea5c27c802eb6847a779eeb430754ca0ffb9ab50c482bdc | // +build linux
package cgroups
type ThrottlingData struct {
// Number of periods with throttling active
Periods uint64 `json:"periods,omitempty"`
// Number of periods when the container hit its throttling limit.
ThrottledPeriods uint64 `json:"throttled_periods,omitempty"`
// Aggregate time the container was thr... | GO | cgroups/stats.go | keloyang/libcontainer | apache-2.0 | 2,904 | 81 | codeparrot/github-code |
cf6bf1e494c0303d9fe6352ad5df18a939e0df8725d64a1311ec001c2ed93300 | /* Copyright 2015 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/core/framework/graph_def_util.cc | chemelnucfin/tensorflow | apache-2.0 | 8,680 | 230 | codeparrot/github-code |
dba26cc3a14c3085e7e2e71e64fc2551230d8dcec3b44187fb247254755d150d | /*
* Copyright (c) 2013 ITOCHU Techno-Solutions 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 ... | Java | web/jfw-web-core/src/main/java/jp/co/ctc_g/jse/core/framework/AbstractJseExceptionHandler.java | ctc-g/sinavi-jfw | apache-2.0 | 3,402 | 112 | codeparrot/github-code |
9284136a40af332e869beb3da4c34e3ffe4a85a9859a6a1a2baed96cf5ae94ea | /*
* Zed Attack Proxy (ZAP) and its related class files.
*
* ZAP is an HTTP/HTTPS proxy for assessing web application security.
*
* Copyright 2018 The ZAP Development Team
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* Yo... | Java | test/org/zaproxy/zap/authentication/AuthenticationMethodUnitTest.java | zapbot/zaproxy | apache-2.0 | 8,375 | 214 | codeparrot/github-code |
13f4c4a388b91d3cce1cd449c40851c93e0130af06a9484b14a27bd13f8cabe4 | /*
Copyright 2021 The Kubernetes Authors.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, softwar... | Java | kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CSINodeSpec.java | kubernetes-client/java | apache-2.0 | 3,114 | 100 | codeparrot/github-code |
d2221738f729ab7967da1db6c3927e9feb5eb63c8cf6821e7718dee4011a6e97 | /*
Copyright 2010 Joseph Reisinger
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... | C++ | sample-gem-ncrp.cc | josephreisinger/lvm-toolkit | apache-2.0 | 13,521 | 359 | codeparrot/github-code |
e4fa47485de40cbabddb90845d0d1871b922ea255629c7fe4756a9d2493476ad | (function(){
'use strict';
angular
.module('bankApplication')
.factory('ServicoNotificacao', ServicoNotificacao);
ServicoNotificacao.$inject = ['ngToast'];
function ServicoNotificacao(ngToast){
function gerarToast(mensagem, classe, dismissTimeout, detalhe){
ngToast.create({
content: mens... | JavaScript | src/main/webapp/assets/factory/servicoNotificacao.js | rcassola/DigiCard | apache-2.0 | 1,814 | 63 | codeparrot/github-code |
e7f86726a157f5f1723709c8b9913f98caebcf6ac972fb7616a304fa6c67ebda | // Copyright 2018 Esri.
//
// 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 ... | C# | src/WPF/ArcGISRuntime.WPF.Viewer/Samples/Geometry/SpatialOperations/SpatialOperations.xaml.cs | Esri/arcgis-runtime-samples-dotnet | apache-2.0 | 8,365 | 175 | codeparrot/github-code |
0c3b1b629afcc0239abdd08c80f087ffd8b9696504c999416525dacc1a0ec2d5 | package co.uniandes.KM.logicPuzzles.UI;
import java.awt.BorderLayout;
import java.awt.ComponentOrientation;
import java.awt.Dimension;
import java.awt.GridBagConstraints;
import java.awt.GridBagLayout;
import java.awt.GridLayout;
import java.awt.Toolkit;
import java.awt.event.ActionEvent;
import java.awt.event.ActionL... | Java | src/main/java/co/uniandes/KM/logicPuzzles/UI/Tablero.java | dsalamancad/KM_RBS_2014 | apache-2.0 | 15,291 | 353 | codeparrot/github-code |
61923dfbefc0bb41c13f63997bf9497c2c8455ee86bf55a61947988b28b7362f | package com.whatdoyouwanttodo.utils;
import java.text.DecimalFormat;
import com.whatdoyouwanttodo.ChessboardActivity;
import com.whatdoyouwanttodo.application.ChessboardApplication;
import android.annotation.TargetApi;
import android.app.Activity;
import android.app.KeyguardManager;
import android.app.KeyguardManage... | Java | app/src/main/java/com/whatdoyouwanttodo/utils/ActivityUtils.java | famiglieperaccoglienzaapp/cosavuoifare | apache-2.0 | 6,265 | 176 | codeparrot/github-code |
e24685557884c021ee68c42715e30dea265c846370cf7a9d58cd56a18465f756 | /*
* Copyright 2014, The Sporting Exchange Limited
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicabl... | Java | disco-framework/jms-transport/src/test/java/uk/co/exemel/disco/transport/jms/JMSEventUnMarshallerTest.java | eswdd/disco | apache-2.0 | 3,149 | 86 | codeparrot/github-code |
3731e4af26924c5ee25dba112ab2e6e83a6071a2753ccc295e8f068410a7e5dc |
public class arrayrota {
public static void main(String arg[]){
int[] a={1,2,3,4,5,6,7,8};
// rotaten(a,3);
baoli(a,2);
for(int i=0;i<a.length;i++)
System.out.println(a[i]);
}
private static void baoli(int[] a, int j) {
while(j--!=0){
int s=a[0];
for(int k=0;k<a.length-1;k++){
a[k]... | Java | src/arrayrota.java | ahusexl/lianxilianxilianxilianxi | apache-2.0 | 619 | 43 | codeparrot/github-code |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.