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
135d29cdc94ee509d6875943e7d4e5497017c4b0e1543d5a1acc2e2032fde772
/* * Copyright 2011 CodeGist.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.apache.org/licenses/LICENSE-2.0 * * Unless required b...
Java
core/src/main/java/org/codegist/crest/io/http/HttpRequest.java
kuFEAR/crest
apache-2.0
3,505
94
codeparrot/github-code
ea725fa3be33bd41a40e18ba47e0252adaa8d3a9822d1d0d9e2311f7ce45017a
/* 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 * distributed...
Java
modules/activiti-engine/src/main/java/org/activiti/engine/impl/bpmn/behavior/IntermediateCatchMessageEventActivityBehavior.java
stefan-ziel/Activiti
apache-2.0
4,335
89
codeparrot/github-code
4a58c49782756a8dcd5ae25e3c7fc2486f83c23b031d27b03db29ca5bf6240de
#!/usr/bin/env python # flake8: noqa # yapf: disable # __tutorial_imports_begin__ import argparse import os import numpy as np import torch import torch.optim as optim from torchvision import datasets from ray.tune.examples.mnist_pytorch import train, test, ConvNet,\ get_data_loaders import ray from ray import t...
Python
python/ray/tune/examples/pbt_convnet_example.py
richardliaw/ray
apache-2.0
4,748
143
codeparrot/github-code
dc6f8e0b06b67ea1825049b2f9fbefbd1daefb439d0a0cd1ea24c5ad2089d57e
<!DOCTYPE html> <html><head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title>幸运机设定</title> <script type="text/javascript">var yyuc_jspath = "";</script> <script type="text/javascript" src="js/jquery.js"></script> <script type="text/javascript" src="js/yyucadapter.js"></script> <link rel="sty...
HTML
back/activity_luckyma_add.html
dspjlj/dsp
apache-2.0
11,822
274
codeparrot/github-code
a83a1b8e7906e3ad38ce4aa199222b8dcf14bb588a9b3033b5f96cdb11abf7a6
package org.apache.solr.search.facet; /* * 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, V...
Java
solr/core/src/java/org/apache/solr/search/facet/HLLAgg.java
q474818917/solr-5.2.0
apache-2.0
5,682
192
codeparrot/github-code
f9d67620c4876ae7249786fc28f274023633de8cf50292d1a3c000bff9a743ab
# # Author:: Thom May (<thom@clearairturbulence.org>) # Copyright:: Copyright (c) 2009-2016 Chef Software, Inc. # License:: Apache License, Version 2.0 # # 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 Li...
Ruby
lib/ohai/plugins/linux/virtualization.rb
juliandunn/ohai
apache-2.0
7,212
199
codeparrot/github-code
482340ea93851eac76df8d207331e4ee64c4d8c322f50183bf6dcd9d289ca8b8
import time import sys import csv import re import argparse import urllib import os.path import fileinput import subprocess import socket import os import itertools from collections import defaultdict from pprint import pprint from termcolor import colored from subprocess import call sid = "" metasploitPath = "" #meta...
Python
scanners/oracle_pillage/ora_priv.py
morgoroth/pentest-scripts
apache-2.0
9,996
288
codeparrot/github-code
43620f8371b65429d5e4dffebbddd0486b42c903df711319823bc903d2e20fa5
package com.jfixby.scarabei.red.color; import java.util.Comparator; import java.util.Iterator; import java.util.List; import com.jfixby.scarabei.api.collections.Collection; import com.jfixby.scarabei.api.collections.CollectionFilter; import com.jfixby.scarabei.api.collections.Collections; import com.jfixby...
Java
scarabei-red/src/com/jfixby/scarabei/red/color/RedColorsSet.java
Scarabei/Scarabei
apache-2.0
4,645
195
codeparrot/github-code
93a8da1bc58f8417201fc3fe46ef421a3c3927d3789d06f624309495e38c6d1e
/** * Copyright (C) 1998-2012 enStratus Networks 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://...
Java
src/main/java/org/dasein/net/jsp/date/TimeZoneTag.java
greese/dasein-util
apache-2.0
2,302
76
codeparrot/github-code
57bdf61125d135a6b28bd6fb85b2766fd1ffebf591a7900126f0ae0b05bd47c7
define(['app/module'], function (module) { /** * @ngdoc state * @name exploreResults * * @description * TBD * */ module.controller('exploreResultsCtlr', [ '$scope', 'appRouting', function ( $scope, appRouting ) { // de-convert dashes to spaces and dencode da...
JavaScript
browser/src/app/states/exploreResults.js
ryanjdew/discovery-app-w-samplestack
apache-2.0
829
40
codeparrot/github-code
027529e60a465d471e63c87bec600f1eb07e3489aee60f6274ffbd04f3082083
# CatalogBundleInitialization.rb # # Author: Kevin Morey <kmorey@redhat.com> # License: GPL v3 # # Notes: This method Performs the following functions: # 1. Look for all Service Dialog Options in the $evm.root['service_template_provision_task'].dialog_options # 2. Set the name of the service # 3. Set tags on the servic...
Ruby
Automate/CloudFormsPOC/Service/Provisioning/StateMachines/Methods.class/__methods__/catalogbundleinitialization.rb
mbiang/cloudformstest
apache-2.0
10,123
251
codeparrot/github-code
1c33f012c73aaea238d813254ae07e61593270eca5a3fe40da8beca86e0c47a3
var resize = (function () { var exports = {}; var narrow_window = false; function confine_to_range(lo, val, hi) { if (val < lo) { return lo; } if (val > hi) { return hi; } return val; } function size_blocks(blocks, usable_height) { var sum_height = 0; _.each(blocks, funct...
JavaScript
static/js/resize.js
vaidap/zulip
apache-2.0
9,867
291
codeparrot/github-code
dd84dfb7248e48e99a72ce654787f695a9d34b1780da27e370edebf8547bc6c4
"""Config flow for TP-Link.""" from __future__ import annotations from typing import Any from kasa import SmartDevice, SmartDeviceException from kasa.discover import Discover import voluptuous as vol from homeassistant import config_entries from homeassistant.components import dhcp from homeassistant.const import CO...
Python
homeassistant/components/tplink/config_flow.py
home-assistant/home-assistant
apache-2.0
5,772
151
codeparrot/github-code
5ee4ae4ef9967b581f22d420bb23bcd31fdde6809cbf3b67a36641d04b4d8000
// PathVisio, // a tool for data visualization and analysis using Biological Pathways // Copyright 2006-2011 BiGCaT Bioinformatics // // 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
tools/superpathways/src/org/pathvisio/cytoscape/superpathways/SuperpathwaysClient.java
egonw/pathvisio
apache-2.0
8,991
283
codeparrot/github-code
e0353e30191fc0307210d5538827e088fda806dce2c373b2a000704045f910a9
package evaluateReversePolishNotation; import org.junit.Test; import java.util.Stack; import static org.junit.Assert.assertEquals; /** * Evaluate the value of an arithmetic expression in Reverse Polish Notation. * <p/> * Valid operators are +, -, *, /. Each operand may be an integer or another expression. * <p/...
Java
leetcode/src/evaluateReversePolishNotation/Solution.java
mccxj/leetcode
apache-2.0
1,527
51
codeparrot/github-code
744bea87f1d40f7a5a2f36f3d67cf961fd820c68f713a88fdb055445de7de00b
import { isPresent, isBlank, Type, BaseException, stringify, CONST_EXPR, StringWrapper } from 'angular2/src/core/facade/lang'; import {EventEmitter, ObservableWrapper} from 'angular2/src/core/facade/async'; import {ListWrapper, MapWrapper, StringMapWrapper} from 'angular2/src/core/facade/collection'; impo...
TypeScript
modules/angular2/src/core/compiler/element_injector.ts
emanziano/angular
apache-2.0
41,926
1,179
codeparrot/github-code
c5057422c3a9cf737f50d9bfe6dc5ec218d49320e36aadf9985e7a37343ccaae
/*! * UI development toolkit for HTML5 (OpenUI5) * (c) Copyright 2009-2016 SAP SE or an SAP affiliate company. * Licensed under the Apache License, Version 2.0 - see LICENSE.txt. */ // Provides control sap.ui.layout.form.ResponsiveLayout. sap.ui.define(['jquery.sap.global', 'sap/ui/layout/ResponsiveFlowLayout', 's...
JavaScript
resources/sap/ui/layout/form/ResponsiveLayout-dbg.js
icgretethe/BeAware
apache-2.0
29,945
910
codeparrot/github-code
54c7321a93cfff1716600fd8414f6082578f25960574df63e7367462a8cd7b80
/* © 2017 Altavant Technologies Inc. Web: http://www.altavant.com */ namespace Altavant.Fusion.Shape { internal class Delegates : IDelegates { private GetFontDelegate _getFont; private GetImageDelegate _getImage; private GetAliasDelegate _getAlias; public GetFontDelegate GetFont { get ...
C#
iOS/Source/Shape/Delegates.cs
altavant/Fusion
apache-2.0
676
50
codeparrot/github-code
4daf21a3e845913ddd7b26f08962c7ea34d45566785f59c4cfe9dd446302b3fd
/* * 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/main/java/org/apache/sysds/runtime/instructions/spark/functions/CopyFrameBlockFunction.java
apache/incubator-systemml
apache-2.0
1,639
52
codeparrot/github-code
4bdfa6792b00ebc4fa7cd97ce2566389b9503d1c8d2cabb69e2be2e1f109796d
package action import ( "flag" "fmt" ) type aclInfo struct { *config } func AclInfoAction() Action { return &aclInfo{ config: &gConfig, } } func (a *aclInfo) CommandFlags() *flag.FlagSet { return a.newFlagSet(FLAG_OUTPUT, FLAG_CONSISTENCY, FLAG_BLOCKING) } func (a aclInfo) Run(args []string) error { if le...
GO
action/acl_info.go
mantl/consul-cli
apache-2.0
598
41
codeparrot/github-code
9517362f5d81da4f8d3401b02d8901616fcc4cf0693b53ffcd88978582ba1884
/* * 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 m...
Java
JGDMS/jgdms-jeri/src/main/java/net/jini/jeri/http/HttpEndpoint.java
pfirmstone/JGDMS
apache-2.0
37,435
1,162
codeparrot/github-code
985cfc760633c7f936ef40df609b7e6f8531f381d1e6b0b57f085fc752afea33
/* * Copyright 2013 University of Glasgow. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law o...
Java
src/main/java/broadwick/xml/XmlParser.java
EPICScotland/Broadwick
apache-2.0
2,565
63
codeparrot/github-code
733324ff0af5bcfdcb91a1c72824fea78c053031c9676a21efb1bcf9e634af54
/* Copyright 2021 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/compiler/mlir/tfrt/translate/convert_xla_gpu.cc
frreiss/tensorflow-fred
apache-2.0
3,436
83
codeparrot/github-code
2b111e1846f3b9a90f7b8be765afd85bb3bc47a16282bdc26f6295e034a950de
/* * Copyright 2016 Paul Horn * * 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...
Scala
project/Build.scala
knutwalker/akka-stream-json
apache-2.0
2,076
53
codeparrot/github-code
d038bf1b0486d3427b1abbb0ae1f37d1579fdda15f75a24b82d003b02c99db7c
/* * 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
indexing-service/src/test/java/org/apache/druid/indexing/seekablestream/supervisor/SeekableStreamSupervisorStateTest.java
himanshug/druid
apache-2.0
48,460
1,203
codeparrot/github-code
6278d067b91f988597ca22e3e53e410d1b3b69004661d34cfb1d5c250d528ce5
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="zh-CN"> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> <title>Grid Move Column</title> <link rel...
HTML
examples/grid/move-column-custom.html
spheee/jquery.bsgrid
apache-2.0
5,336
123
codeparrot/github-code
4b5d1d2ce9a478ecc5d3feb4c28b5bcc5f4c42878ca46347adad16769285f711
package com.studio.bookings.service; import java.util.ArrayList; import java.util.List; import javax.inject.Named; import com.google.api.server.spi.config.Api; import com.google.api.server.spi.config.ApiMethod; import com.google.api.server.spi.response.NotFoundException; import com.google.appengine.api.users.User; i...
Java
src/main/java/com/studio/bookings/service/AccessControlListService.java
emrose1/scheduler
apache-2.0
7,942
225
codeparrot/github-code
ed3b7486f489337ff0b4bedb4fbe0ec9532706ac0beb353bc76c8836fbf23b2d
/* * Copyright 2012 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 ...
Java
java/src/com/google/template/soy/jssrc/internal/GenJsCodeVisitorAssistantForMsgs.java
rgpower/closure-templates
apache-2.0
28,163
706
codeparrot/github-code
79925612b0f2a99308e4b52ad3f80c1366c78870854a9241efa7bb36b595409f
/* * Copyright 2017 ThoughtWorks, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agr...
Java
agent/test/unit/com/thoughtworks/go/agent/JobRunnerTest.java
MFAnderson/gocd
apache-2.0
6,724
153
codeparrot/github-code
37feb23d14082b45d0496960dafe6340a2d3a90b34c08641e09750a0111b05e3
/* * 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
core/camel-management-impl/src/test/java/org/apache/camel/management/LoadTimerTest.java
Fabryprog/camel
apache-2.0
2,294
71
codeparrot/github-code
62c7a5c1bfc9b06f60bc0a5348073a976e94b8d7ff83c8b0bfd9c9772b99edf6
exports = module.exports = function ($http, $q, $timeout, api, storage) { var status = this.status = {}; function parseLogin (response) { var page = response.data; if (page.querySelector('.login textarea[name="recaptcha_challenge_field"]')) { // A wild recaptcha appears return $q.reject({ logge...
JavaScript
old/user/service/user.js
mrgamer/alldebrid-chrome
apache-2.0
2,235
74
codeparrot/github-code
e18858ce58bb8381b168db58cb97fce6ca740d77f150db38978b22a7bc51919d
/* Derby - Class org.apache.derby.client.am.EncryptionManager 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 un...
Java
java/client/org/apache/derby/client/am/EncryptionManager.java
lpxz/grail-derby104
apache-2.0
31,774
692
codeparrot/github-code
6c1899c21d427bd61e22f058767b510dbebb8f54ef3a41cfdc0f7da3d9b1d140
#include "cbase.h" #include "c_mod_build_mission_map_for_next_mission.h" #include "../shared/swarm/asw_gamerules.h" #include "asw_campaign_info.h" #include "c_asw_campaign_save.h" #include "missionchooser/iasw_mission_chooser_source.h" #include "missionchooser/iasw_random_missions.h" #include "missionchooser/iasw_map_...
C++
trunk/src/game/client/mod/c_mod_build_mission_map_for_next_mission.cpp
ppittle/AlienSwarmDirectorMod
apache-2.0
3,465
111
codeparrot/github-code
830ae78a2ec64bd563f376f69e3b6a53938dc47ea3379d021f217b9f4294f92d
<?php class Users extends AbstractTable { public $id = NULL; public $username = NULL; public $fio = NULL; public $password = NULL; public $status = NULL; public function save($new = false) { if (parent::save($new)) { $_SESSION['usr']['upd'] = 1; ...
PHP
files/application/components/users_class.php
olijen/mvc
apache-2.0
794
38
codeparrot/github-code
f557dd46dbca597f84923b8777d4b17907fd8d43474565b4a1a8eafa47b97842
# # Copyright 2016 Centreon (http://www.centreon.com/) # # Centreon is a full-fledged industry-strength solution that meets # the needs in IT infrastructure and application monitoring for # service performance. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in com...
Perl
hardware/server/ibm/bladecenter/snmp/mode/components/chassisstatus.pm
bcournaud/centreon-plugins
apache-2.0
4,895
101
codeparrot/github-code
9ef898a163383138e34e0f867692a68c91e0bc964a4f12c0a36f23772ee8d613
/* * 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
gemfire-core/src/main/java/com/gemstone/gemfire/internal/datasource/FacetsJCAConnectionManagerImpl.java
sshcherbakov/incubator-geode
apache-2.0
9,513
270
codeparrot/github-code
12da39e7518938d9e24ccb2e0dee113643bbd718cb185b4d325167dcb1fcde61
/* * 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
core/src/main/java/org/apache/commons/vfs2/provider/LayeredFileNameParser.java
kichenko/apache-vfs2-fix
apache-2.0
3,889
125
codeparrot/github-code
87adb91d43560ab9c30c5f7b3fd11694bfb3d97eb5b86beb603cac953e10266b
/* Copyright 2014 Immutables Authors and Contributors 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
value-processor/src/org/immutables/value/processor/meta/AccessorAttributesCollector.java
asereda-gs/immutables
apache-2.0
19,364
468
codeparrot/github-code
918a2df3997c040d2333ff3a8020436b07cb6f6dade617b0bfd7aef18655f8a7
/* * Copyright 2010 Red Hat, Inc. * * Red Hat 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
src/main/java/org/jboss/netty/handler/codec/http/websocket/WebSocketFrameEncoder.java
whg333/netty-3.2.5.Final
apache-2.0
4,027
101
codeparrot/github-code
190eeee8043de933f443ee88f2784e6bfbafb13d1dc3d20549cffa9e1685594c
#!/usr/bin/env python3 """ Analyze a evergreen task log page """ import argparse import json import os import sys if __name__ == "__main__" and __package__ is None: sys.path.append(os.path.dirname(os.path.abspath(os.path.realpath(__file__)))) print(sys.path) import faultinfo else: from . import faultin...
Python
analyzer/evg_log_file_analyzer.py
markbenvenuto/buildbaron
apache-2.0
3,551
118
codeparrot/github-code
4059435682bde1a1686dec6fac16793aa50844cf7561bf95b64a5822f3761d2f
/** * <copyright> * </copyright> * * */ package de.darwinspl.preferences.resource.dwprofile.mopp; public class DwprofileTaskItem { private String keyword; private String message; private int line; private int charStart; private int charEnd; public DwprofileTaskItem(String keyword, String messa...
Java
plugins/de.darwinspl.preferences.resource.dwprofile/src-gen/de/darwinspl/preferences/resource/dwprofile/mopp/DwprofileTaskItem.java
HyVar/DarwinSPL
apache-2.0
764
52
codeparrot/github-code
416d7a8a78a2920e2780e30383a691ec4ac7f09f60b2647752a4f1bc8377c5f1
/* * Licensed to Metamarkets Group Inc. (Metamarkets) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. Metamarkets licenses this file * to you under the Apache License, Version 2.0 (the * "License"); yo...
Java
server/src/main/java/io/druid/client/indexing/QueryStatus.java
taochaoqiang/druid
apache-2.0
2,241
90
codeparrot/github-code
3633dda5afb45163d6c559d5448bbfb8ec77f94fb64f719bbdfdd31db7db56f4
package cn.nowdo.cloud.base.action; import java.io.IOException; import java.io.InputStream; import java.util.Map; import javax.servlet.ServletContext; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import javax.servlet.http.HttpSession; import net.sf.json.JSON; import ne...
Java
src/main/java/cn/nowdo/cloud/base/action/BaseAction.java
isxinchen/SimpleCMS
apache-2.0
6,446
193
codeparrot/github-code
1a644fdab42cce782065052438b4b5359c49be22701f6fcfb09b51468784cfc5
# Chained [![Build Status](https://travis-ci.org/tuupola/jquery_chained.png?branch=master)](https://travis-ci.org/tuupola/jquery_chained) Chained is simple plugin for chained selects. It works with both jQuery and Zepto. You can choose from two different versions. Use jquery.chained.js if you do not want to make exter...
Markdown
supporting-layer/descriptive-analytics/src/assets/lib/jquery_chained/README.markdown
ubiquitous-computing-lab/Mining-Minds
apache-2.0
3,693
90
codeparrot/github-code
cd1ce2e576afa026480a3ae1921ef45bc8a094b025a7ace50721f59ad0caeec6
/** * Copyright 2017 The AMP HTML 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 require...
JavaScript
extensions/amp-timeago/0.1/test/test-amp-timeago.js
yandex-pcode/amphtml
apache-2.0
3,054
88
codeparrot/github-code
ef57eb7b0e16e7208959e8edb99b2eb7ba2dd02024fae000e770a584bf4ac193
/* * 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
web/src/main/java/org/apache/shiro/web/session/mgt/DefaultWebSessionManager.java
apache/shiro
apache-2.0
13,538
336
codeparrot/github-code
7901f4b423625b29281f5f9f331fc8a3a20cea07f644a49eec33801d08aa79a7
/* * Copyright 2011 The Poderosa Project. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * * $Id: PipeTerminalParameter.cs,v 1.3 2011/11/01 15:35:44 kzmi Exp $ */ using System; using Poderosa.Protocols; using Poderosa.Macr...
C#
Pipe/PipeTerminalParameter.cs
ArsenShnurkov/poderosa
apache-2.0
6,166
208
codeparrot/github-code
38fd638cfb603374f14eb87d7e71606df740a3114f09b4197378cc897c8ffaf8
# # Author:: Daniel DeLeo (<dan@opscode.com>) # Copyright:: Copyright (c) 2011 Opscode, Inc. # License:: Apache License, Version 2.0 # # 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 # # ht...
Ruby
lib/chef/knife/core/node_presenter.rb
BackSlasher/chef
apache-2.0
5,119
161
codeparrot/github-code
6a0d8ae5f4989f6cbdaf753d80eda3725074dc6f998e95e8e499a10f1612ab1a
/* * Copyright 2014 NAVER 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 to ...
Java
profiler/src/test/java/com/navercorp/pinpoint/profiler/context/storage/BufferedStorageTest.java
eBaoTech/pinpoint
apache-2.0
4,760
123
codeparrot/github-code
b29d90de3385bbc7f5a757673dccfa779bdc8ab22ac94e842250d12b7c5e5651
package mil.nga.giat.geowave.analytics.distance; import com.vividsolutions.jts.geom.Coordinate; import com.vividsolutions.jts.geom.Geometry; /** * Calculate distance between two geometries. * * @see com.vividsolutions.jts.geom.Geometry * */ public class GeometryCentroidDistanceFn implements DistanceFn<Geomet...
Java
geowave-analytics/src/main/java/mil/nga/giat/geowave/analytics/distance/GeometryCentroidDistanceFn.java
viggyprabhu/geowave
apache-2.0
1,217
50
codeparrot/github-code
4fcaef10d5857fed0e592366692696d3a39ccace70ba310543f666cb20810550
/* ** Copyright 2011-2013 Merethis ** ** This file is part of Centreon Engine. ** ** Centreon Engine is free software: you can redistribute it and/or ** modify it under the terms of the GNU General Public License version 2 ** as published by the Free Software Foundation. ** ** Centreon Engine is distributed in the hope...
C++
neb/inc/com/centreon/engine/broker/compatibility.hh
centreon/centreon-broker
apache-2.0
1,779
61
codeparrot/github-code
44ea80ff40b48e5231d6b5fb5bd23375bc254a6cf3a653d1cbb95d15752196b7
package com.artemis.managers; import com.artemis.*; import com.artemis.annotations.Wire; import com.artemis.component.*; import com.artemis.components.SerializationTag; import com.artemis.io.JsonArtemisSerializer; import com.artemis.io.SaveFileFormat; import com.artemis.utils.IntBag; import org.junit.Before; import or...
Java
artemis-serialization/artemis-json/src/test/java/com/artemis/managers/JsonWorldSerializationManagerTest.java
DaanVanYperen/artemis-odb
apache-2.0
13,886
493
codeparrot/github-code
04d9b68accc6f33b523f668cc181149f316a69b094ae7b2e5a452dd6cb26c818
<?php require('require/class.Connection.php'); require('require/class.Spotter.php'); $title = "Latest Activity"; require('header.php'); //calculuation for the pagination if(!isset($_GET['limit'])) { $limit_start = 0; $limit_end = 25; $absolute_difference = 25; } else { $limit_explode = explode(",", $_GET['lim...
PHP
latest.php
Ysurac/Web_App
apache-2.0
1,736
66
codeparrot/github-code
fc8f5aedc9475883c41d03193244ff0535829a0eff81d39b3c2d8d2e04cf5935
/* * Copyright 2011 JBoss Inc * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to i...
Java
optaplanner-examples/src/main/java/org/optaplanner/examples/tsp/persistence/TspSolutionImporter.java
kiereleaseuser/optaplanner
apache-2.0
5,403
139
codeparrot/github-code
2c106697667d350448c8f7bf16ada297bae1f6905a2c465f33aaf201a2f0fdb9
/* * 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
asterixdb/asterix-runtime/src/main/java/org/apache/asterix/runtime/evaluators/common/NumberUtils.java
ecarm002/incubator-asterixdb
apache-2.0
5,742
165
codeparrot/github-code
433e7b2b07d86434da7ecf6b859f5a1461711f69f478a771db1f01a87091fbe6
/* * Copyright (C) 2015 Archie L. Cobbs. All rights reserved. */ package io.permazen.core.type; import com.google.common.base.Converter; import java.io.Serializable; import java.time.ZoneId; /** * Non-null {@link ZoneId} type. Null values are not supported by this class. */ public class ZoneIdType extends Stri...
Java
permazen-coreapi/src/main/java/io/permazen/core/type/ZoneIdType.java
permazen/permazen
apache-2.0
1,083
45
codeparrot/github-code
3c30581188e6414a5b5421decf24b47953d500cd1e7cd21b3fd9dda552be4f15
/* * Copyright 2000-2014 JetBrains s.r.o. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agre...
Java
xml/xml-psi-impl/src/com/intellij/psi/impl/source/resolve/reference/impl/providers/SchemaReferencesProvider.java
mglukhikh/intellij-community
apache-2.0
7,653
204
codeparrot/github-code
5c4654724557daeb00978a3cb937f8296d54dca72c600da5f232cdfb439a81fb
/** * Copyright 2016 The AMP HTML 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 require...
JavaScript
extensions/amp-soundcloud/0.1/test/test-amp-soundcloud.js
BenDz/amphtml-atinternet
apache-2.0
2,740
88
codeparrot/github-code
c7b102249ce95c93c4f2aed6e5283bd821f84169b46080a590c99944cbb4e71e
/* * 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 ma...
Java
modules/jaxws/src/org/apache/axis2/jaxws/message/util/impl/SAAJConverterImpl.java
apache/axis2-java
apache-2.0
31,185
719
codeparrot/github-code
452376f733947357d0f3204e4c173cb860ccedd33a9a86aea43a310e8be583f1
package org.apereo.cas.services; import org.apereo.cas.cosmosdb.CosmosDbDocument; import org.apereo.cas.services.util.RegisteredServiceJsonSerializer; import org.apereo.cas.util.LoggingUtils; import org.apereo.cas.util.serialization.StringSerializer; import com.azure.cosmos.CosmosContainer; import com.azure.cosmos.Co...
Java
support/cas-server-support-cosmosdb-service-registry/src/main/java/org/apereo/cas/services/CosmosDbServiceRegistry.java
apereo/cas
apache-2.0
6,616
154
codeparrot/github-code
bf1d538d8abd5ce28c3129b35a401ff521e9eb28d441312f00707a22e5fca629
//===----------------------------------------------------------------------===// // // Peloton // // optimizer.cpp // // Identification: src/optimizer/optimizer.cpp // // Copyright (c) 2015-16, Carnegie Mellon University Database Group // //===----------------------------------------------------...
C++
src/optimizer/optimizer.cpp
ranxian/peloton
apache-2.0
11,856
325
codeparrot/github-code
e0101075fc7f9ebd42fe75acfcc462852e9ee0c78fb23d75661106cf3d4b4819
extern crate discotech; #[macro_use] extern crate log; extern crate log4rs; use discotech::{Serverset, DiscoConfig, read_config}; use std::env; fn initialize_logging() { let root = log4rs::config::Root::builder(log::LogLevelFilter::Debug) .appender("stderr".to_string()); let console = Box::new(log4rs::append...
Rust
test/mod.rs
disasters/discotech
apache-2.0
1,189
40
codeparrot/github-code
16324f0f27cd302305c02b0481d1549783ed2f8e66abc5d8ca3b058b94e980c9
/* * ARX: Powerful Data Anonymization * Copyright 2014-2015 Karol Babioch, Fabian Prasser * * 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/...
Java
src/gui/org/deidentifier/arx/gui/view/impl/wizard/ImportWizard.java
kentoa/arx
apache-2.0
10,701
311
codeparrot/github-code
70a40c31d6557c23126cfd4531e4f2ee6b194f84e02247d9cec525f8d4f32aed
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you ...
Java
flink-table/flink-table-api-java-bridge/src/test/java/org/apache/flink/table/api/java/internal/StreamTableEnvironmentImplTest.java
fhueske/flink
apache-2.0
4,974
146
codeparrot/github-code
36a6b759e5b6fce542f4537cb9a53797cc6d8821eeb67edea0b0202597c56cb2
using System; using PusherServer; using Utilities.Configuration.Azure; using Utilities.Interfaces; namespace Utilities { public class PusherNotifier : IPusherNotifier { private Pusher _pusher { get; set; } public PusherNotifier() { var pusherAppId = CloudConfigurationManager....
C#
Utilities/PusherNotifier.cs
Fr8org/Fr8Core.NET
apache-2.0
1,942
58
codeparrot/github-code
c97c8a6a01cfb447198362c854511dcc0e9a93f67e149bccf8c6bc05799a632b
/* Copyright 2014 The Kubernetes 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 ag...
GO
pkg/api/v1beta3/defaults.go
guoshimin/kubernetes
apache-2.0
6,284
202
codeparrot/github-code
394b5bca5b1acba55de99351581673d0b576fcca8edadf20d76e09a855f2bce5
/* * 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"); y...
C#
src/contrib/Spatial/Geometry/Shape/Vector2D.cs
Mpdreamz/lucene.net
apache-2.0
3,125
127
codeparrot/github-code
2ce879c5f69276b295b9e9c6905bcaeee6b00bafdf815bf899fe6494a9cb2fb7
/* * Copyright (c) 2014 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 t...
Java
helios-services/src/main/java/com/spotify/helios/servicescommon/coordination/PathFactory.java
gtonic/helios
apache-2.0
1,529
52
codeparrot/github-code
0c58bcc8b2296fbef72463c966378272c4d97e8006ab8bd6fb3d1f26ca4f74a8
/* * Copyright 2009 David Johnson, School of Biological Sciences, * University of Reading, UK. * * 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 ownershi...
Java
portal/src/main/java/uk/ac/rdg/pbsclient/PBSNoPassClient.java
djcomlab/EvoPortal
apache-2.0
6,517
182
codeparrot/github-code
19a0bcd72a101aeacf7efda68fede18502f5eeacf5aef36d6109b7a1d3fa929d
/* * Copyright (C) 2019 Peng fei Pan <panpfpanpf@outlook.me> * * 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 a...
Java
sketch/src/main/java/me/panpf/sketch/decode/ResizeCalculator.java
xiaopansky/Sketch
apache-2.0
7,873
178
codeparrot/github-code
cb600f283f4748107b046deff985b72418ff0ed6e1cbaddb308cdcb3414bdadc
/* Copyright (c) 2016 PaddlePaddle 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...
C
paddle/optimizer/adagrad_optimizer.h
pkuyym/Paddle
apache-2.0
1,360
47
codeparrot/github-code
3adf764c946639156b657a35f648132779c688d48d188f03700ae930d7436221
// -*- mode: java; c-basic-offset: 2; -*- // Copyright 2009-2011 Google, All Rights reserved // Copyright 2011-2019 MIT, All rights reserved // Released under the Apache License, Version 2.0 // http://www.apache.org/licenses/LICENSE-2.0 package com.google.appinventor.client; import java.util.Random; import java.util...
Java
appinventor/appengine/src/com/google/appinventor/client/Ode.java
kkashi01/appinventor-sources
apache-2.0
99,174
2,752
codeparrot/github-code
175045d156728a34b6741c8970e5e80f8b5687ad4c8ec00b48d9a4f04a509efd
package com.tpb.timetable.Utils; import android.app.Activity; import android.app.ActivityManager; import android.content.Context; import android.content.Intent; import android.content.SharedPreferences; import android.content.res.ColorStateList; import android.graphics.Bitmap; import android.graphics.BitmapFactory; im...
Java
app/src/main/java/com/tpb/timetable/Utils/UIHelper.java
tpb1908/Replacement
apache-2.0
25,216
549
codeparrot/github-code
de05e6cefcad5525305995db2befdcfaa13655f2ef4a8727c66e313e59e55872
/** */ package de.darwinspl.feature.evolution.evolutionoperation.impl; import de.darwinspl.feature.evolution.evolutionoperation.DwEvolutionOperation; import de.darwinspl.feature.evolution.evolutionoperation.EvolutionoperationPackage; import java.util.Date; import org.eclipse.emf.common.notify.Notification; import ...
Java
plugins/de.darwinspl.feature.evolution.editoroperation/src-gen/de/darwinspl/feature/evolution/evolutionoperation/impl/DwEvolutionOperationImpl.java
DarwinSPL/DarwinSPL
apache-2.0
3,924
166
codeparrot/github-code
8616c536306f3f08324535375abfd4c26261bd857da112980947f294c3ee4790
/* * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distribut...
Java
lib/trino-plugin-toolkit/src/main/java/io/trino/plugin/base/security/ImpersonationRule.java
11xor6/presto
apache-2.0
2,007
55
codeparrot/github-code
5bb211dfe0b6ad47aefb1c1c4b321fc3fc1ad81f781a1a21b6bce5e7da3e9bea
# # Author:: Bryan McLellan (btm@loftninjas.org) # Copyright:: Copyright (c) 2009 Bryan McLellan # License:: Apache License, Version 2.0 # # 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 # # ...
Ruby
lib/chef/provider/service/freebsd.rb
BackSlasher/chef
apache-2.0
6,957
196
codeparrot/github-code
08af10a3ccb345ad7563660b04cbb8c77b233cf794abcec170002df70d63757c
package scalacss import utest._ import scalacss.TestUtil._ import Defaults._ import ScalatagsCss._ object ScalatagsTest extends TestSuite { object MyStyles extends StyleSheet.Inline { import dsl._ val input = style( fontWeight.bold, padding(0.3 ex, 2 ex) ) val bootstrappy = style(addC...
Scala
ext-scalatags/src/test/scala/scalacss/ScalatagsTest.scala
LMnet/scalacss
apache-2.0
1,202
50
codeparrot/github-code
c5b8e294b3bc1908548df432034c5dcfc06bcc3c9b95fe7d5f4db4fa3aab154e
/* * Copyright 2000-2015 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
platform/platform-impl/src/com/intellij/ide/impl/ProjectUtil.java
blademainer/intellij-community
apache-2.0
12,510
298
codeparrot/github-code
7d0ca9ad666a5d85c5eea6e241e5b345c0c1fce953f6f81ff6fffc5a8c59e4e7
{% extends "base.html" %} {% block bread_crumb %} <ol class="breadcrumb"> <li><a href="/indicators/home/{{ getPrograms.all.0.id|default:0 }}/0/0/">Indicators</a></li> <li class="active">TvA Report</li> </ol> {% endblock %} {% block page_title %}Indicator Targets vs Actuals Report{% endblock %} {% block content %...
HTML
templates/indicators/tva_report.html
toladata/TolaActivity
apache-2.0
5,338
127
codeparrot/github-code
778a8b79754fa6b17714d00f8702eaf93b8cebe2c739710dbc5f072624ab279f
/* ***** BEGIN LICENSE BLOCK ***** * Version: MPL 1.1/GPL 2.0/LGPL 2.1 * * The contents of this file are subject to the Mozilla Public License Version * 1.1 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * http://www.mozilla.org/MPL/ * ...
Java
dcm4chee-web/tags/DCM4CHEE_WEB_3_0_3/dcm4chee-web-war/src/main/java/org/dcm4chee/web/war/tc/keywords/TCKeywordCatalogue.java
medicayun/medicayundicom
apache-2.0
3,119
97
codeparrot/github-code
3b11c1b6202657965840382ec768bebf2c658e630f58c346a599dc1cd34ce578
/* * Copyright 2015-2016 Red Hat, Inc. and/or its affiliates * and other contributors as indicated by the @author tags. * * 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://w...
Java
hawkular-wildfly-agent/src/main/java/org/hawkular/agent/monitor/extension/RemoteJMXDefinition.java
jpkrohling/hawkular-agent
apache-2.0
6,142
131
codeparrot/github-code
6b12ebc459feaa9568627a66c7e1ee62674fad1e5bc38322cf4240cb65600249
package akka.contrib.persistence.mongodb import akka.actor.Actor import akka.persistence.snapshot.SnapshotStore import akka.persistence.{SelectedSnapshot, SnapshotMetadata, SnapshotSelectionCriteria} import com.typesafe.config.Config import scala.concurrent.Future class MongoSnapshots(config: Config) extends Snapsho...
Scala
common/src/main/scala/akka/contrib/persistence/mongodb/MongoSnapshots.scala
scullxbones/akka-persistence-mongo
apache-2.0
2,650
80
codeparrot/github-code
bca54ca144f7a4f070c33a905dd2581494e10fc7a6577cc8ab97dfc8e572f27a
/* * 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
sdks/java/nexmark/src/main/java/org/apache/beam/sdk/nexmark/queries/NexmarkQueryModel.java
tgroh/incubator-beam
apache-2.0
4,399
119
codeparrot/github-code
79695a0941b37fb12c81197000ec0b85ebc134c98f32eb282a9f82c1abaf5544
/* * 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/core/src/main/scala/org/apache/spark/sql/execution/datasources/DataSourceStrategy.scala
yanboliang/spark
apache-2.0
25,249
583
codeparrot/github-code
1de861f032f9f8d02fd350306d297d4cc8eab53596a10ba7c8b8d8200f12de7e
' Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. Imports Microsoft.CodeAnalysis.Editor.UnitTests.Extensions Imports Microsoft.VisualStudio.Text.Projection Namespace Microsoft.CodeAnalysis.Editor.UnitTests.In...
Visual Basic
src/EditorFeatures/Test2/IntelliSense/CSharpCompletionCommandHandlerTests_Projections.vb
danielcweber/roslyn
apache-2.0
5,824
150
codeparrot/github-code
861a264e2b5aba52ae7292bc694cffb1e0246c9b701079e823f4cab1843e625a
package formatter import ( "bytes" "fmt" "io" "strings" "text/tabwriter" "text/template" "github.com/hyperhq/hyper-api/types" "github.com/hyperhq/hypercli/reference" ) const ( tableFormatKey = "table" rawFormatKey = "raw" defaultContainerTableFormat = "table {{.ID}}\t{{.Image}}\t{{.Command}}\t{{....
GO
api/client/formatter/formatter.go
hyperhq/hypercli
apache-2.0
7,095
303
codeparrot/github-code
4ca6e80f8c8844497fdd5f10950c61df36cbfa1b2fd00d0483ea1bdfc9fd6c41
/** * @license * Copyright 2015 Google Inc. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless requir...
JavaScript
js/foam/util/Timer.js
jlhughes/foam
apache-2.0
3,379
149
codeparrot/github-code
6b4dd9750359cba9bbfe59b32abdb1d6c408f565791ec90706a6de433030bc2b
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="google-site-verification" content="xBT4GhYoi5qRD5tr338pgPM5OWHHIDR6mNg1a3euekI" /> <meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="descri...
HTML
_site/2014/10/01/why-alibaba-ux-sucks副本-38/index.html
Saberzun/saberzun.github.com
apache-2.0
17,788
577
codeparrot/github-code
f103bfbe44839fb838850edabeb48018353dab63731345ded54b9e148c3de911
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you ...
C
kernel/os/src/arch/sim-armv7/os_arch.c
andrzej-kaczmarek/incubator-mynewt-core
apache-2.0
1,974
96
codeparrot/github-code
806ae4e7d3ed33ba4a863cad39f8cedbf5ed20773cb4bd6f6bb36510123d47f6
<?php /* * Copyright 2015 RhubarbPHP * * 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 ...
PHP
src/Context.php
robertfalconer/Rhubarb
apache-2.0
4,573
147
codeparrot/github-code
3f610233c84faa8fe1ce400a34631c901345c6d49782020d150a9e692e58f168
package pt.lighthouselabs.obd.reader.activity; import android.app.Activity; import android.bluetooth.BluetoothAdapter; import android.bluetooth.BluetoothDevice; import android.content.SharedPreferences; import android.os.Bundle; import android.preference.CheckBoxPreference; import android.preference.EditTextPreference...
Java
src/main/java/pt/lighthouselabs/obd/reader/activity/ConfigActivity.java
mateenc/pitstop_Android
apache-2.0
8,177
248
codeparrot/github-code
b8dcea114db234a5742130312036fd4d7bd64e27870bb8e32a1d5debec89c55f
package org.literacyapp.content.task; import android.os.Bundle; import android.support.v7.app.AppCompatActivity; import android.util.Log; import android.view.View; import android.widget.ImageView; import org.literacyapp.R; public class TagItemsActivity extends AppCompatActivity { private ImageView mTagItemsImag...
Java
app/src/main/java/org/literacyapp/content/task/TagItemsActivity.java
schaemik/literacyapp-android
apache-2.0
1,400
51
codeparrot/github-code
35c22d1ba689a1eb3a89ec15f4c33a13fe3f7e1796c5e46f89e169ffc9b7740d
package blockset import ( "encoding/binary" "hash/crc32" "sync" "golang.org/x/net/context" "github.com/RoaringBitmap/roaring" "github.com/alternative-storage/torus" "github.com/coreos/pkg/capnslog" ) type crcBlockset struct { sub blockset crcs []uint32 mut sync.RWMutex emptyCrc uint32 } va...
GO
blockset/crc.go
nak3/torus-1
apache-2.0
4,123
192
codeparrot/github-code
49d2a654d37aba2e9f506cb967e12086084ad26fe0561f99d37d6ca27bcfe1ec
/* * Copyright 2000-2015 JetBrains s.r.o. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agre...
Java
java/compiler/impl/src/com/intellij/compiler/impl/GenericCompilerRunner.java
hurricup/intellij-community
apache-2.0
13,073
325
codeparrot/github-code
0faa82dc78e8927a54eaa18987471bd150ac34a71e60efff19e2c0bc458e91a4
/*! ****************************************************************************** * * Pentaho Data Integration * * Copyright (C) 2002-2015 by Pentaho : http://www.pentaho.com * ******************************************************************************* * * Licensed under the Apache License, Version 2.0 (th...
Java
engine/src/org/pentaho/di/job/entries/ftpput/JobEntryFTPPUT.java
yshakhau/pentaho-kettle
apache-2.0
32,872
912
codeparrot/github-code
3b15678e902223a2854fa3cb17b6e6545d23cbd60856f44d862603feea2b1e9f
/* * Copyright 2006 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 requir...
Java
src/main/java/org/mybatis/generator/api/dom/java/InnerClass.java
caixu23/mybatis-generator
apache-2.0
6,996
287
codeparrot/github-code
1407ef899180ab42c7045dcc6e482e2331b80ff570d25741d11510ccb2f25dbf
/* * 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
shell/core/src/main/java/org/apache/karaf/shell/impl/console/CommandWrapper.java
grgrzybek/karaf
apache-2.0
2,080
57
codeparrot/github-code
fbdede26a5ce487b59b53312a99fcfed055a1b01f818286a20dd6ba920ed17f6
/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ /* * Double hashing implementatio...
C++
B2G/gecko/js/src/jsdhash.cpp
sergecodd/FireFox-OS
apache-2.0
30,335
914
codeparrot/github-code
6cdd2ab44bcf3a47bdf8a0bf9276ae5ebbfafaa974cd854e02ddd185408c94ce
package org.hl7.fhir.instance.model; /* Copyright (c) 2011+, HL7, 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 co...
Java
hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Group.java
shvoidlee/hapi-fhir
apache-2.0
49,399
1,133
codeparrot/github-code
043ebfb9ea3357dc77325c774a4f6fed5a6b138bbdb179bf6246ea049473be7f
package com.lambdaworks.redis.reliability; import static org.assertj.core.api.Assertions.assertThat; import java.lang.reflect.InvocationHandler; import java.lang.reflect.Proxy; import java.util.Queue; import java.util.concurrent.CountDownLatch; import java.util.concurrent.TimeUnit; import com.lambdaworks.redis.Redis...
Java
src/test/java/com/lambdaworks/redis/reliability/AtLeastOnceTest.java
Hocdoc/lettuce
apache-2.0
14,405
388
codeparrot/github-code