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
bf5ce4ec665241292812e2ee7675ac9e7aa8672b65d9e1da6ee6ab9645180b65
<?php final class DrydockSSHCommandInterface extends DrydockCommandInterface { private $passphraseSSHKey; private $connectTimeout; private function openCredentialsIfNotOpen() { if ($this->passphraseSSHKey !== null) { return; } $credential = id(new PassphraseCredentialQuery()) ->setView...
PHP
src/applications/drydock/interface/command/DrydockSSHCommandInterface.php
UNCC-OpenProjects/Phabricator
apache-2.0
2,981
108
codeparrot/github-code
6c1003902c37680d9a1bfc303f877e8424026fd2e839ba256d1b6a5cfc83ce58
/** @namespace Fix 组件命名空间*/ Fix = window['Fix'] || {}; Fix = { Util:{ GetQueryString:function(name){ var reg = new RegExp("(^|&)"+ name +"=([^&]*)(&|$)"); var r = window.location.search.substr(1).match(reg); if (r!=null) return unescape(r[2]); return null; }, CheckBtnStatus:function($table...
JavaScript
modules/fixflow-webapp-common/src/main/webapp/fixflow/js/common.js
summer0581/sumflow
apache-2.0
3,807
138
codeparrot/github-code
62a782d310498ddc5961a7195f392652d06fa574e30e4c20867360c3f931ba60
package org.myrobotlab.service.meta; import org.myrobotlab.framework.Platform; import org.myrobotlab.logging.LoggerFactory; import org.myrobotlab.service.meta.abstracts.MetaData; import org.slf4j.Logger; public class WebcamMeta extends MetaData { private static final long serialVersionUID = 1L; public final stati...
Java
src/main/java/org/myrobotlab/service/meta/WebcamMeta.java
MyRobotLab/myrobotlab
apache-2.0
1,088
39
codeparrot/github-code
ca39df27c207d4e19a8d47c64d9581c5b108ec5739335851b71a01757aec4b63
/* * Copyright 2015 Adaptris Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed t...
Java
interlok-core/src/main/java/com/adaptris/core/services/metadata/xpath/MultiItemConfiguredXpathQuery.java
adaptris/interlok
apache-2.0
3,146
98
codeparrot/github-code
5b732e0b5c5dd3f879d6aa7c46dfe3b19b9e0319bf2472d49c43b3a0c0ad8b39
<?php SQL::$types['sqlite2'] = 'SQLType_sqlite2'; class SQLType_sqlite2 implements SQLType { public static function openConnection($prefix,$params) { if(!isset($params['file'])) return(false); if(!isset($params['mode'])) $params['mode'] = 0666; $connection = new SQLConnection_sqlite2(); if($con...
PHP
app/lib/sql/sqlite2.type.php
jankuca/escms
apache-2.0
4,175
185
codeparrot/github-code
b71f6756e5deb74b0b74eec9329c651309fef696dc8e9a7d329d5a06251cc460
/* * Copyright 2011 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 applicable la...
Java
src/main/java/org/opencredo/couchdb/inbound/CouchDbChangesPollingMessageSource.java
redais/opencredo-couchdb
apache-2.0
3,593
96
codeparrot/github-code
1face7e65304ed9b7108d7397dfcf920ce560073e19e47e6fd4d95353e1c0ce9
/* * 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 u...
Java
pax-web-itest/pax-web-itest-container/pax-web-itest-container-jetty/src/test/java/org/ops4j/pax/web/itest/jetty/WebConsoleIntegrationTest.java
stsiano/org.ops4j.pax.web
apache-2.0
2,563
75
codeparrot/github-code
ba6353f533c962a26113d331d151e2a5ec09c6c1d35cf616bc7fb5c130677bd6
/* * Copyright 2018 Srikavin Ramkumar * * 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
server/src/main/java/me/infuzion/chat/server/plugin/loader/PluginManager.java
Infuzion/Chat
apache-2.0
2,561
81
codeparrot/github-code
b4520576435b28bf608d5df136145703d5376f5321409c24307a33ff676136a4
package com.clever.utils; import com.cleverlib.utils.StringUtils; /** * 数据校验工具类 * * @author liuhea * @date 2016-12-29</p> */ public class ValidatorUtils { private ValidatorUtils() { throw new UnsupportedOperationException("you can't instantiate me."); } /** * 校验姓名 ...
Java
app/src/main/java/com/clever/utils/ValidatorUtils.java
liuhea/Clever
apache-2.0
872
45
codeparrot/github-code
c3f92973e38b52c45cf5292908df2fec52b029878b32226e515bfb2d49dd818a
# Copyright (c) 2010-2016 OpenStack 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 applicable law or agree...
Python
swift/proxy/controllers/base.py
prashanthpai/swift
apache-2.0
79,133
1,918
codeparrot/github-code
f2a3d26c0be20a1778ff8ca5170112698e20d9d243063a21afd68321d71571a8
/****************************************************************************** * Copyright 2017 The Apollo 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 ...
C++
modules/prediction/container/obstacles/obstacle.cc
startcode/apollo
apache-2.0
40,377
1,139
codeparrot/github-code
3a1da560edbcb7451866e76eb8aa71319eeadf8ee14aa06d56893ee20eebd1e3
/* * Copyright 2014-2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "licen...
Java
aws-java-sdk-ram/src/main/java/com/amazonaws/services/ram/AWSRAMAsyncClient.java
jentfoo/aws-sdk-java
apache-2.0
25,290
633
codeparrot/github-code
53b9c071522cfaae52f12284e7140764c48bb6a26022f9c0cb8da028c40f4240
package com.cn.hnust.service.imp; import java.util.List; import javax.annotation.Resource; import org.springframework.stereotype.Service; import com.cn.hnust.dao.ArticleMapper; import com.cn.hnust.service.IArticleService; @Service("articleService") public class ArticleServiceImp<T> implements IArticleSer...
Java
storm/src/main/java/com/cn/hnust/service/imp/ArticleServiceImp.java
xengfe/storm
apache-2.0
1,103
58
codeparrot/github-code
e5f8d870be8eacbf36ddad57a20b118ae755933e1b295afde7e2c2371b5913ba
<!DOCTYPE html> <!--[if IE 8]> <html lang="en" class="ie8"> <![endif]--> <!--[if IE 9]> <html lang="en" class="ie9"> <![endif]--> <!--[if !IE]><!--> <html lang="en"> <!--<![endif]--> <head> <title>Profile Me | Unify - Responsive Website Template</title> <!-- Meta --> <meta charset="utf-8"> <meta name="...
HTML
resources/views/user/pages/page_profile_me.html
Alan-xucheng/osfun
apache-2.0
88,886
1,363
codeparrot/github-code
c303f63277245045681d15eadacb4caed380c2ac6b1a157585c9d4e4b387f52f
package com.example.eric.popularmovies.Utils.data; import android.content.Context; import android.net.ConnectivityManager; import android.net.NetworkInfo; import android.support.v4.content.AsyncTaskLoader; import com.example.eric.popularmovies.Models.Review; import com.example.eric.popularmovies.Models.Video; import ...
Java
PopularMovies/app/src/main/java/com/example/eric/popularmovies/Utils/data/ObjectDataLoader.java
ericafenyo/Udacity-Popular-Movies-Stage2
apache-2.0
4,155
125
codeparrot/github-code
f59fb035d886a5c5639e053ad0dfbdbf1a95107af43708e116372b9d405a6108
package com.twitter.scalding.spark_backend import org.scalatest.{BeforeAndAfter, FunSuite, PropSpec} import org.apache.hadoop.io.IntWritable import org.apache.spark.SparkConf import org.apache.spark.sql.SparkSession import com.twitter.algebird.Monoid import com.twitter.scalding.{Config, Execution, TextLine, WritableSe...
Scala
scalding-spark/src/test/scala/com/twitter/scalding/spark_backend/SparkBackendTests.scala
twitter/scalding
apache-2.0
7,449
269
codeparrot/github-code
ff58534276e6c931a3eb1051c0fbd0bc73c34a48dd1fd8c224d6cd5246d63d55
Clazz.declarePackage ("J.adapter.readers.quantum"); Clazz.load (["J.adapter.readers.quantum.BasisFunctionReader"], "J.adapter.readers.quantum.MOReader", ["java.lang.Float", "java.util.Hashtable", "J.api.JmolAdapter", "J.util.ArrayUtil", "$.JmolList", "$.Logger", "$.Parser", "$.TextFormat"], function () { c$ = Clazz.d...
JavaScript
root/static/js/jsmol/j2s/J/adapter/readers/quantum/MOReader.js
DeepLit/WHG
apache-2.0
12,450
313
codeparrot/github-code
693890a452093e7be77a58050036e018cd3158f96915e59441b8b786a9a80925
/* * #%L * dropwizard-wotif * %% * Copyright (C) 2015 Wotif 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 * * Unle...
Java
dropwizard-wotif/dropwizard-wotif/src/test/java/com/wotifgroup/server/filter/FixEtagFilterTest.java
wotifgroup/base
apache-2.0
3,331
100
codeparrot/github-code
efb00dcd80aee25fd67391e0d657156b38e583e9215f5163c76609418a47df7d
/** * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may...
Java
components/camel-hazelcast/src/main/java/org/apache/camel/component/hazelcast/seda/HazelcastSedaComponent.java
kevinearls/camel
apache-2.0
1,795
46
codeparrot/github-code
d6202e05b529913b798461a30c496a3522c9254650dab6cfd81ce5b64cf90a7f
package de.st_ddt.crazyutil; import java.util.ArrayList; import java.util.Collection; import java.util.HashMap; import java.util.HashSet; import java.util.Iterator; import java.util.List; import java.util.Map; import java.util.Set; import de.st_ddt.crazyplugin.exceptions.CrazyException; public abstract class Filter<...
Java
src/main/java/de/st_ddt/crazyutil/Filter.java
ST-DDT/CrazyCore
apache-2.0
3,354
151
codeparrot/github-code
68a0b75581aca50277f37810eb0df355401d90e7d2a43bfb65cfe54b72516903
package org.juitar.util.time import java.util.concurrent.TimeUnit import scala.compat.Platform import scala.concurrent.duration.Duration case class TimeSample private (series: String, timeStamp: Long, elapsed: Long) { def this(series: String, elapsed: Long) = this(series, System.currentTimeMillis(), elapsed) de...
Scala
src/main/scala/org/juitar/util/time/TimeSample.scala
sha1n/scala-time
apache-2.0
1,325
31
codeparrot/github-code
c39a566f60702990d3a02833c31dd8186961d02de375b7559a1e3f301d7eec92
package dao import ( "image" "image/draw" "io/ioutil" "math" "unicode/utf8" "go-common/library/log" "github.com/golang/freetype" "golang.org/x/image/font" "golang.org/x/image/math/fixed" ) // TextImgConf text img conf. type TextImgConf struct { Fontsize int Length int Ansfontsize int Spacing ...
GO
126-go-common-master/app/job/main/answer/dao/draw.go
LQJJ/demo
apache-2.0
3,188
131
codeparrot/github-code
216dd0fd20cfab1ec07094e1212b05f8e27c54d1aeed99bb7df78bf84a155a93
#include <stdio.h> #include <unistd.h> #include <sys/wait.h> #include <sys/types.h> #include <sys/stat.h> #include <fcntl.h> #include <unistd.h> #define TTY "/dev/ttyNES0" #define SHELL "/bin/bash" int main (int argc, char* argv[]) { int ret; pid_t pid; printf("%s started....\n", argv[0]); printf("p...
C
duper_linux/nes_shell/nes_shell.c
astoria-d/super-duper-nes
apache-2.0
1,214
58
codeparrot/github-code
268bde82d38d5701f1a4eea19a4ede8885a9c96990ee87303f2d053a339fe850
/* * www.yiji.com Inc. * Copyright (c) 2016 All Rights Reserved */ package com.yiji.falcon.agent.plugins.plugin.logstash; /* * 修订记录: * guqiu@yiji.com 2016-06-27 16:33 创建 */ import com.yiji.falcon.agent.falcon.FalconReportObject; import com.yiji.falcon.agent.jmx.vo.JMXMetricsValueInfo; import com.yiji.falcon.agen...
Java
src/main/java/com/yiji/falcon/agent/plugins/plugin/logstash/LogstashPlugin.java
cqyijifu/OpenFalcon-SuitAgent
apache-2.0
3,616
152
codeparrot/github-code
3d09cc5ed27dac9638589b87554fa183bee370304601dc0b64262f79da2471e7
<?php defined('IN_ADMIN') or exit('No permission resources.'); include $this->admin_tpl('header','admin'); ?> <link rel="stylesheet" type="text/css" href="<?php echo CSS_PATH;?>jqplot/jquery.jqplot.css" /> <link rel="stylesheet" type="text/css" href="<?php echo CSS_PATH;?>jqplot/examples.css" /> <!-- BEGIN: loa...
PHP
phpcms/modules/video/templates/show_video_stat.tpl.php
johnshen/phpcms
apache-2.0
1,607
39
codeparrot/github-code
1325f00065842ce79b822d26e2dc0232b6befdac8c7c6349362f1eac247814cf
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. package com.yahoo.searchlib.expression; import com.yahoo.vespa.objects.Deserializer; import com.yahoo.vespa.objects.ObjectVisitor; import com.yahoo.vespa.objects.Serializer; /** * This is an integer bucket value ...
Java
searchlib/src/main/java/com/yahoo/searchlib/expression/StringBucketResultNode.java
vespa-engine/vespa
apache-2.0
2,888
115
codeparrot/github-code
d410a5011f7ed8b8450c8b6aa94ef3d110d9ebcb67b312162df567b4beec04fb
/* * Licensed to GraphHopper GmbH under one or more contributor * license agreements. See the NOTICE file distributed with this work for * additional information regarding copyright ownership. * * GraphHopper GmbH licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not ...
Java
core/src/main/java/com/graphhopper/util/details/PathDetailsBuilderFactory.java
prembasumatary/graphhopper
apache-2.0
2,089
57
codeparrot/github-code
b457247c3bd2fc19428c083e81b9b914039cb87005832bcd9e2743f528c3e161
package com.flowlikeariver.hanjie; import java.util.List; public class Row extends Line { public Row(int id, List<Integer> clue) { super(id, clue); } @Override public void checkEmpty(int i) { throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Tem...
Java
src/main/java/com/flowlikeariver/hanjie/Row.java
gavilancomun/hanjie-java
apache-2.0
858
32
codeparrot/github-code
8093c8144d08427cca897bfcdc4e36986b6e467c52ecf6cea63af27618b9c925
/* * Copyright (C) 2016 - present by OpenGamma Inc. and the OpenGamma group of companies * * Please see distribution for license. */ package com.opengamma.strata.market.param; import static com.opengamma.strata.basics.currency.MultiCurrencyAmount.toMultiCurrencyAmount; import java.io.Serializable; import java.uti...
Java
modules/market/src/main/java/com/opengamma/strata/market/param/CrossGammaParameterSensitivities.java
OpenGamma/Strata
apache-2.0
23,278
626
codeparrot/github-code
fb4b9cfb73b66ca9af43fc76abc90c511dab7d69ae6e3c59d0eede2fe46de7eb
package eu.fbk.knowledgestore.populator.naf; import eu.fbk.knowledgestore.Session; import eu.fbk.knowledgestore.data.Data; import eu.fbk.knowledgestore.data.Record; import java.io.IOException; import java.lang.reflect.InvocationTargetException; import java.lang.reflect.Method; import java.util.Hashtable; import java....
Java
ks-populator-naf/src/main/java/eu/fbk/knowledgestore/populator/naf/Consumer.java
dkmfbk/knowledgestore
apache-2.0
7,467
182
codeparrot/github-code
79fb19eb80bbae9ad34b109be224171b0822e16699506a83116c9ef5f435cf69
/******************************************************************************* * Copyright (c) 2000, 2004 IBM Corporation and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, an...
Java
plugin/osgi/eclipse/src/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet147.java
XClouded/t4f-core
apache-2.0
2,017
65
codeparrot/github-code
f1040a37c993be7a2f9b46610876ee4b7cb4e6b37a56ef7eb32f329e137e326b
/* * Copyright (C) 2013 salesforce.com, 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 ...
Java
aura-impl/src/main/java/org/auraframework/impl/adapter/JsonSerializerAdapterImpl.java
igor-sfdc/aura
apache-2.0
4,169
109
codeparrot/github-code
4f4d2ea1c1fb0e56613475a8f1a8d0963aa3b3d09e0fac86d6609f745c95ec99
/** * RdTk: Remote Desktop Toolkit * * Copyright 2014 Marc-Andre Moreau <marcandre.moreau@gmail.com> * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/lic...
C
rdtk/librdtk/rdtk_surface.c
hyacinthes/FreeRDP
apache-2.0
1,830
83
codeparrot/github-code
5b1288d130c1aabe4589ce3ef6f5c07d12286f8053c6ad5d204829cb5071437c
/* * Copyright 2015 Pierre C * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in ...
Java
src/test/java/com/gmail/woodyc40/minimark/BenchmarkTest.java
AgentTroll/Fastest-Fing-Data-Structure-Java
apache-2.0
4,185
119
codeparrot/github-code
f34d86c18299ebd1d650cbdbb993dccfee21e7c4dca593d582afc79e8a3d7b0b
import os import sys import json import rospy import base64 import urllib.request, urllib.parse, urllib.error import hashlib import urllib.parse import random import string from lg_common import ManagedWindow from interactivespaces_msgs.msg import GenericMessage from lg_msg_defs.msg import ApplicationState, WindowGeom...
Python
lg_common/src/lg_common/helpers.py
EndPointCorp/lg_ros_nodes
apache-2.0
35,903
1,108
codeparrot/github-code
517cf79f12a60958f9423d97368621d692b9dcfc3aa2446b8a8fa521844cfee2
package com.inappropirates.lightwalker.ui; import android.content.Context; import android.view.View; import android.view.ViewGroup; import android.widget.BaseAdapter; import com.inappropirates.lightwalker.config.ColorButton; import java.util.ArrayList; import java.util.List; public class ColorGridAdapter extends Ba...
Java
app/src/main/java/com/inappropirates/lightwalker/ui/ColorGridAdapter.java
gerstle/LightWalkerRemote
apache-2.0
2,453
84
codeparrot/github-code
65c165951cdada68e807545837601476151fced05875d05a873aaaa717fb97fc
/* * ==================================================================== 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 u...
Java
src/main/java/net/xby1993/common/util/concurrent/BasicFuture.java
xbynet/proj-base-ssh
apache-2.0
3,675
140
codeparrot/github-code
3b37dfb992f78fa42a0ce3085e8507df5a97392bbf96eb835ef67eeaf21c6025
/** * Copyright (c) 2013-2019 Contributors to the Eclipse Foundation * * <p> See the NOTICE file distributed with this work for additional information regarding copyright * ownership. All rights reserved. This program and the accompanying materials are made available * under the terms of the Apache License, Versio...
Java
core/geotime/src/main/java/org/locationtech/geowave/core/geotime/store/field/DateSerializationProvider.java
spohnan/geowave
apache-2.0
2,267
66
codeparrot/github-code
4765f4363f3185b8e63bb97e92ae1f3f2488ec6e5f16e3d1cda40e5ba4ceac18
# Copyright [2013] [M. David Allen] # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agr...
Python
nsrl/OS.py
plus-provenance/dataidentity
apache-2.0
1,450
47
codeparrot/github-code
00071bc7605e57bcaf4647f241513dab17cba004190820d2f23be394a703d463
package hrv.lib.hrv; import hrv.lib.units.TimeUnit; /** * Holds RR-Data and the corresponding X-Axis Values * * @author Julian * */ public class RRData { private final TimeUnit rrValueAxisUnit; private final /*@ spec_public */ TimeUnit rrTimeAxisUnit; private final double[] rrValuesAxis; private final dou...
Java
lib/src/main/java/hrv/lib/hrv/RRData.java
HRVBand/hrv-lib
apache-2.0
1,374
61
codeparrot/github-code
b64a23ea47c4dcfc74eee02db73194609ba3680506c9fe0340c95bce6feb0032
/*global define, require, dojo,dijit,esri,buildProject*/ define([ "dojo/_base/declare", "dojo/_base/kernel", "dojo/_base/lang", "dojo/_base/xhr", "dojo/dom", "dojo/on", "dojo/parser", "esri/map", "esri/geometry/Extent", "esri/layers/ArcGISD...
JavaScript
web/js/buildProject/SiteManager.js
geoyogesh/enterprise-build-sample-js
apache-2.0
8,075
242
codeparrot/github-code
6249510281375ecdba7c59df04e622c6c83b66c8fa68d161a6b624e5578da1f1
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ package softwareconstruction.operators; import java.util.Map; import softwareconstruction.literals.Expression; import softwareconstru...
Java
sinan/Software Construction/src/softwareconstruction/operators/Plus.java
software-engineering-amsterdam/poly-ql
apache-2.0
1,587
59
codeparrot/github-code
0feb1cc79c1f2e594afbd0bb98c582f00df008368de0b6fa2bfabcacc2d14f72
/** * @license * Visual Blocks Editor * * Copyright 2012 Google Inc. * https://developers.google.com/blockly/ * * 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.apach...
JavaScript
core/field_dropdown.js
sclements/scratch-blocks
apache-2.0
15,772
483
codeparrot/github-code
ab92e6c39dcb7b464e346d092b9c8d73619b479e2ac91d62ade8165bc0fdfd6d
<?php class users { private $db; public $page = 1; public $start = 0; public $rowLimit = 10; public function __construct() { global $db; $this->db = $db; // For pagination $this->page = (isset($_REQUEST['page']) ? $_REQUEST['page'] : 1); if($this->page > 1) { $this->start = ($this->page - 1) * $t...
PHP
admin/functions/users_report.php
rampkt/roophka_ads
apache-2.0
2,200
83
codeparrot/github-code
ea83e0488cd4f370e883ebb305674d83d09d4ff315b20fd535939d1ee650a79d
/** * */ package net.i2geo.comped.dao.hibernate; import java.util.ArrayList; import java.util.List; import org.appfuse.dao.hibernate.GenericDaoHibernate; import org.appfuse.model.User; import net.i2geo.comped.model.Thing; import net.i2geo.comped.dao.ThingDao; /** * @author Martin Homik * */ ...
Java
comped/src/main/java/net/i2geo/comped/dao/hibernate/ThingDaoHibernate.java
i2geo/CompEd
apache-2.0
1,023
43
codeparrot/github-code
6e7e9793527ddd164245ea619094f285ad5f25fd6562dd54dab1a97c496503f9
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ package checkivebeenpwned; import checkivebeenpwned.OLD_TODEL.PwnedEvent; import java.io.BufferedReader; import java.io.IOExc...
Java
src/checkivebeenpwned/CheckPwnedWorker.java
Aequinoxio/CheckIveBeenPwned
apache-2.0
5,805
169
codeparrot/github-code
fc9d3e1c081321960a51ad4f2a2887694daa5db2fca68f35df4552202c76f7e0
package com.forsrc.utils; import org.stathissideris.ascii2image.core.FileUtils; import javax.script.Invocable; import javax.script.ScriptEngine; import javax.script.ScriptEngineManager; import javax.script.ScriptException; import java.io.File; import java.io.IOException; /** * The type Scrip utils. */ public class...
Java
src/main/java/com/forsrc/utils/ScripUtils.java
forsrc/MyStudy
apache-2.0
5,325
205
codeparrot/github-code
f1fb8ed3a0071eaf8089c8052161c527dd8a6108fe45921ab4d0dd9955630212
/* * Copyright (C) 2014-2022 Philip Helger (www.helger.com) * philip[at]helger[dot]com * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICEN...
Java
ph-oton-datatables/src/main/java/com/helger/photon/uictrls/datatables/plugins/DTPButtonsButtonKey.java
phax/ph-oton
apache-2.0
3,942
142
codeparrot/github-code
03383fb0a311d3a40e7473282531f02b9b7c2e63ce911c19205fe40db4c44caf
/** * Copyright &copy; 2012-2016 <a href="https://github.com/tlkzzz/jeesite">JeeSite</a> All rights reserved. */ package com.tlkzzz.jeesite.modules.cw.web; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import com.tlkzzz.jeesite.modules.cw.entity.FAccount; import com.tl...
Java
src/main/java/com/tlkzzz/jeesite/modules/cw/web/FTransferAccountController.java
tlkzzz/xpjfx
apache-2.0
15,098
388
codeparrot/github-code
a854be1280670d1d9ba47c244cfb465d1524d76c403bb0db1a51ca4a4c7cc2ff
/* * (c) Copyright 2015-2016 Hewlett Packard Enterprise Development LP * * 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
worker-queue-rabbit/src/main/java/com/hpe/caf/worker/queue/rabbit/RabbitWorkerQueueProvider.java
tonymcveigh/worker-fw
apache-2.0
1,425
39
codeparrot/github-code
9410742a6cc05a912e3b5b53925ddf0cac0f5ca3d93bc8907df1a8fac9b7c83d
#!/usr/bin/env python import urllib import json import os import smtplib from flask import Flask from flask import request from flask import make_response # Flask app should start in global layout app = Flask(__name__) @app.route('/webhook', methods=['POST']) def webhook(): req = request.get_json(silent=...
Python
app.py
Zuiev/shipping-cost
apache-2.0
2,545
106
codeparrot/github-code
c9117dfeaa6005fca0549d52c500fe083f8033e676239cf081abb2da8090f8e0
/* * Copyright 2016 The OpenDCT 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...
Java
src/main/java/opendct/tuning/discovery/DiscoveryException.java
enternoescape/opendct
apache-2.0
1,231
40
codeparrot/github-code
29b671b310346630b998014201f44526a7868e0ae512cb7e729a19cf94d328e5
/** * * Copyright 2011 (C) Rainer Schneider,Roggenburg <schnurlei@googlemail.com> * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENS...
Java
jdy/jdy.view.swing/src/main/java/de/jdynameta/metainfoview/filter/FilterEditorComponent.java
schnurlei/jdynameta
apache-2.0
1,315
45
codeparrot/github-code
3b44e0aadd8e2da986e5bb42525db06a2ee62536eb146345950e2e73931e9b67
''' aima-ui project ============= This is just a graphic user interface to test agents for an AI college course. ''' from kivy.uix.button import Button from kivy.uix.togglebutton import ToggleButton from kivy.uix.widget import Widget from kivy.core.window import Window from kivy.uix.label import Label from kivy.uix.b...
Python
aima-ui-2a.py
valefranz/AI-Project-VacuumEnvironment
apache-2.0
17,529
462
codeparrot/github-code
5e5a4998c368632a2d1d0e86cc373ba2d8043f25d8aa3512d81e6194cbdee5f0
/* ***** 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
src/org/mozilla/universalchardet/prober/UTF8Prober.java
Taller/sqlworkbench-plus
apache-2.0
4,587
141
codeparrot/github-code
723de22fcbd39a3dd905b83fd507a5c5c78d3979efa27c6ecaba99f195de02e1
/* KRY CHANTO * for checking check box have label all * if check all *sub element of checkbox all will check auto *if user check all return value -1 * */ //only number ric function checkAll(len) { var chk=document.getElementById("division_0").checked; for(var i=0;i<=len;i++) document.getElementB...
JavaScript
public/js/convertion.js
samlanh/aseansm
apache-2.0
27,147
1,001
codeparrot/github-code
b23a2918c73ed3d88a2b6bc08225312b8b5de196e65d4d58b5119b78b7240309
<!DOCTYPE html> <html lang="en"> <head> <title> 深圳 · zgshen's notes </title> <meta charset="UTF-8"/> <meta http-equiv="X-UA-Compatible" content="IE=edge, chrome=1" /> <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"/> <meta name="browsermode" content="application"> <meta name...
HTML
2017/05/28/深圳/index.html
shen28/shen28.github.io
apache-2.0
7,181
301
codeparrot/github-code
9b04e8fd2fd440e513901a5f6762c892d3576aed223cf3d73bef7fbbc9929fa9
package stsc.database.service.schemas.optimizer.trading.strategies; import java.io.IOException; import java.net.URISyntaxException; import java.sql.SQLException; import org.junit.Assert; import org.junit.Test; import com.j256.ormlite.jdbc.JdbcConnectionSource; import com.j256.ormlite.support.ConnectionSource; impor...
Java
storage/src/test/java/stsc/database/service/schemas/optimizer/trading/strategies/OrmliteOptimizerExecutionInstanceTest.java
sidorovis/stsc.database
apache-2.0
2,947
56
codeparrot/github-code
ad786797409beeeb31135272f75b866633a6f78139bce290f0ea59a4887b23d9
<html> <head> <title>${finalName}</title> <style type="text/css"> pre { font-weight: bold; font-family: monospace; color: blue; } h3 { text-decoration: underline; } code { font-weight: bold; font-family: monospace; color: blue; } </style> </head> <body> <h3>Table of Contents:</h3> <ul> <li><a href="#About...
HTML
docs/index.html
PurePerfect/purview
apache-2.0
9,244
259
codeparrot/github-code
b0ec5e7dbd10f5fdb49267a81945ec90d2f2e27d0180047c173ea562d3721fa1
using indevio.Domain.Data; using indevio.Domain.EventStore; using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; namespace indevio.Domain.EventProcessing { /// <summary> /// Handles processing of events in the event store. /// </summary> public class EventPr...
C#
src/indevio.Domain/EventProcessing/EventProcessor.cs
raisr/Indevio
apache-2.0
3,795
120
codeparrot/github-code
6a5f0f5cb2eb3a0e735b3f2c9bb5bd29307485ce1dc7aa5ef16fa705d32219ce
/** * @description Warning SVG Icon. * @property {string} a11yTitle - Accessibility Title. If not set uses the default title of the status icon. * @property {string} className * @example * <svg width="24" height="24" ><path d="M1,0 L1,6" fill="none""/></svg> */ // (C) Copyright 2014-2016 Hewlett Packard Ent...
JavaScript
src/js/components/icons/status/Warning.js
odedre/grommet-final
apache-2.0
1,880
61
codeparrot/github-code
564e05de37a0f9b0e401ec19f3a1a5b355eb1572bb49cc3802ae56f77ee67b4e
package cn.addapp.pickers.picker; import android.app.Activity; import android.support.annotation.FloatRange; import android.support.annotation.NonNull; import android.text.TextUtils; import android.view.Gravity; import android.view.View; import android.view.ViewGroup; import android.widget.LinearLayout; import android...
Java
Dialog/android-pickers-master/android-pickers/src/main/java/cn/addapp/pickers/picker/SinglePicker.java
weiwenqiang/GitHub
apache-2.0
9,653
296
codeparrot/github-code
1024a970bcc37772b1afc07ba9829d07b575e5214e52392395555ce167af4e7e
using System; using Bridge; using Bridge.Html5; namespace Avior.Components { public class TopBar : Component<TopBar> { public String Title { get; set; } public TopBar() : base(new HTMLNavElement()) { AddClass("navbar"); } public override HTMLElement Render...
C#
Avior/Components/TopBar.cs
alan-azvd/Avior
apache-2.0
1,318
51
codeparrot/github-code
ad311804495d32a0e8a3ef07fe8018a5810bf12916acc30a1fe7c65194b7efd5
package behaviordroid.listener; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; import java.util.TreeMap; import java.util.regex.Matcher; import java.util.regex.Pattern; impo...
Java
app/src/main/java/behaviordroid/listener/Inspector.java
alexissilva/behaviordroid
apache-2.0
9,605
257
codeparrot/github-code
53c05546a9fdb3d99d692c28db1aa16560cb6eeb3057b41a10e5df4d479970d8
// Copyright (c) .NET Foundation and contributors. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. #include "pal.h" #include "trace.h" #include "pal_utils.h" #include <cassert> #include <locale> #include <codecvt> #include <ShlObj.h> pal::str...
C++
src/CoreCLREmbedding/pal/pal.windows.cpp
agracio/edge-js
apache-2.0
9,819
346
codeparrot/github-code
55a9e620a59fa82fa6468b0f24b8ff79a451d04e2be295e9c78cf7f0d5b6e8d1
package com.github.vlsidlyarevich.unity.web.controller; import com.github.vlsidlyarevich.unity.domain.model.UserSocial; import com.github.vlsidlyarevich.unity.domain.service.UserSocialService; import com.github.vlsidlyarevich.unity.web.dto.user.UserSocialRequest; import lombok.AllArgsConstructor; import org.springfram...
Java
server/src/main/java/com/github/vlsidlyarevich/unity/web/controller/UserSocialController.java
vlsidlyarevich/unity
apache-2.0
1,938
45
codeparrot/github-code
cc049d968f1bc7a8b6f46a373e16541ae2523fa9b71b4ffc66c07e2a520a8fc8
use std::f64; use std::mem; use std::sync::atomic::{AtomicU64, Ordering}; #[derive(Debug)] pub struct Gauge { value: AtomicU64, } impl Gauge { pub fn new() -> Gauge { let bits = unsafe { mem::transmute(f64::NAN) }; Gauge { value: AtomicU64::new(bits) } } pub fn clear(&mut self) { ...
Rust
src/metric/gauge.rs
udoprog/sysmon-rs
apache-2.0
1,013
51
codeparrot/github-code
1c171fbfd4529d40517942cd42cd765feb69582ed332e31f8a208333123cc188
/* 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 required by applicable law or agreed to in ...
C++
tensorflow/core/kernels/strided_slice_op_gpu.cu.cc
naturali/tensorflow
apache-2.0
2,373
57
codeparrot/github-code
5618b24aa1a60454fa0ac96ae5af7de8b22dd8c65b08bdb09a4c3fd4440cba01
/* * Copyright 2014 Fulup Ar Foll. * * 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...
JavaScript
smsg/lib/GG-AjaxBackend.js
fulup-bzh/GeoGate
apache-2.0
3,291
95
codeparrot/github-code
b418f4ce4946e71903ba96926605bb7557e617177e4bbc142c1e563774bff1f8
package org.zstack.sdk; import java.util.HashMap; import java.util.Map; public class CreateLoadBalancerAction extends AbstractAction { private static final HashMap<String, Parameter> parameterMap = new HashMap<>(); public static class Result { public ErrorCode error; public CreateLoadBalance...
Java
sdk/src/main/java/org/zstack/sdk/CreateLoadBalancerAction.java
hhjuliet/zstack
apache-2.0
2,904
97
codeparrot/github-code
22f3efa82921d8a26c170eb640c591cdb8058847dc54aa28f74ee27b30c1a142
(function() { 'use strict'; jQuery.sap.require('sap.ui.qunit.qunit-css'); jQuery.sap.require('sap.ui.qunit.QUnitUtils'); jQuery.sap.require('sap.ui.thirdparty.qunit'); jQuery.sap.require('sap.ui.thirdparty.sinon'); jQuery.sap.require('sap.ui.thirdparty.sinon-qunit'); sinon.config.useFakeTim...
JavaScript
test-resources/sap/m/qunit/NotificationListGroup.qunit.js
openui5/packaged-sap.m
apache-2.0
29,946
747
codeparrot/github-code
78e778cdcde9d1362c682f893181911b01c42093d22b051b252853b41a518041
/* * Copyright 2015 Torridity. * * 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
Core/src/main/java/de/tor/tribes/ui/wiz/dep/DefensePlanerWizard.java
Torridity/dsworkbench
apache-2.0
6,561
163
codeparrot/github-code
932a1e23d55f119cba3991c9c7b0b9f69316dacb4199fd4b6ec6bc5c281235b5
package org.appenders.log4j2.elasticsearch.hc; /*- * #%L * log4j2-elasticsearch * %% * Copyright (C) 2021 Rafal Foltynski * %% * 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
log4j2-elasticsearch-hc/src/main/java/org/appenders/log4j2/elasticsearch/hc/BatchingClientObjectFactory.java
rfoltyns/log4j2-elasticsearch
apache-2.0
8,199
234
codeparrot/github-code
cd6f80046f6a270ebf226e1db83f9770de96df7005c8f20477985f0896878611
// // "$Id: glut.h 6521 2008-11-12 20:49:58Z spitzak $" // // GLUT emulation header file for the Fast Light Tool Kit (FLTK). // // Copyright 1998-2006 by Bill Spitzak and others. // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Library General Public // License...
C
uclibc/include/fltk/glut.h
easion/os_sdk
apache-2.0
16,857
491
codeparrot/github-code
77d4d58a2fa4c6af09a53672e4bdd31a96474ce1563f3d509e1a4c95753e9f56
/* * Copyright 2017 Mirko Sertic * * 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
core/src/main/java/de/mirkosertic/bytecoder/ssa/FloatValue.java
mirkosertic/Bytecoder
apache-2.0
997
35
codeparrot/github-code
bdfb6f296e06a19b2a5adc16b7a39e2be05a1e71b880bc20cb91dd10dca9ad3e
/* * Copyright 2012 GitHub Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in ...
Java
app/src/main/java/com/github/zion/ui/commit/CommitListFragment.java
DeLaSalleUniversity-Manila/ForkHub-macexcel
apache-2.0
9,011
283
codeparrot/github-code
60096d313017af92e31b0d9bfb9d04320958591dcd68414528de68d6998760b3
/* * Copyright 2011-2016 B2i Healthcare Pte Ltd, http://b2i.sg * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless require...
Java
commons/com.b2international.index/src/com/b2international/index/lucene/TextIndexField.java
IHTSDO/snow-owl
apache-2.0
1,133
40
codeparrot/github-code
7a92e973218aa38e37efcc6839ed065d19b9b886e9a10bc8c58c70e6b36603be
package matchers import ( "github.com/nttlabs/cli/cf/errors" testcmd "github.com/nttlabs/cli/testhelpers/commands" "github.com/onsi/gomega" ) type havePassedRequirementsMatcher struct{} func HavePassedRequirements() gomega.OmegaMatcher { return havePassedRequirementsMatcher{} } func (matcher havePassedRequireme...
GO
testhelpers/matchers/passed_requirements.go
nttlabs/cli
apache-2.0
1,033
35
codeparrot/github-code
dd78a58b2e4e91c1588f90e242a2ca6d31f0cc31559207e5aca8a18caf666a39
/* * 官网地站:http://www.mob.com * 技术支持QQ: 4006852216 * 官方微信:ShareSDK (如果发布新版本的话,我们将会第一时间通过微信将版本更新内容推送给您。如果使用过程中有任何问题,也可以通过微信与我们取得联系,我们将会在24小时内给予回复) * * Copyright (c) 2013年 mob.com. All rights reserved. */ package cn.sharesdk.onekeyshare.theme.classic; import android.app.Activity; import android.content.Context; ...
Java
app/src/main/java/cn/sharesdk/onekeyshare/theme/classic/FollowListPage.java
stupidlittleboy/CollectionAndroidDemo
apache-2.0
16,513
461
codeparrot/github-code
33fe011f16d3fab72e791313489ca8c48edc498934f98dc0a5e47aa58dce5ecc
/** * 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-core/src/test/java/org/apache/camel/impl/DefaultCamelContextResolverTest.java
punkhorn/camel-upstream
apache-2.0
8,506
227
codeparrot/github-code
baaa7140dd4db7b9e63538e0b3227b6ee86b10bdc192169b3a0201423380527e
/*- * -\-\- * Spotify styx * -- * Copyright (C) 2017 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...
Java
styx-api-service/src/test/java/com/spotify/styx/api/workflow/WorkflowInitializerTest.java
spotify/styx
apache-2.0
6,508
167
codeparrot/github-code
9ef64b7a02cf81f7265935056172414ffce2d9090e34eaa32c217aecebaf87bb
package com.twitter.finagle.channel /** * Dispatches channel events to a {{com.twitter.concurrent.Broker}}. */ import org.jboss.netty.channel._ import com.twitter.concurrent.{Broker, Offer} class BrokerChannelHandler extends SimpleChannelHandler { sealed trait Event { type E <: ChannelEvent val e: E ...
Scala
finagle-core/src/main/scala/com/twitter/finagle/channel/BrokerChannelHandler.scala
enachb/finagle_2.9_durgh
apache-2.0
6,548
193
codeparrot/github-code
ea67643e55cb6b581563e42fca7cabf372202637462baae36bd5b4d8c856a646
package com.twitter.elephantbird.pig.store; import java.io.IOException; import java.util.Map; import java.util.Set; import org.apache.pig.data.Tuple; import org.json.simple.JSONObject; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import com.google.common.base.Joiner; import com.google.common.collect.Sets...
Java
src/java/com/twitter/elephantbird/pig/store/LzoJsonStorage.java
11xor6/elephant-bird
apache-2.0
1,743
62
codeparrot/github-code
d223250c65998013201ad906dae87ceb748091d968e599d0aad7be27408ab040
/* * Copyright 2012-2016 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
spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/liquibase/LiquibaseAutoConfigurationTests.java
lenicliu/spring-boot
apache-2.0
7,373
196
codeparrot/github-code
ef111b92be7651098f3833396c4fd755c89adec5c82c8be9e8b6fdce071f7b70
<?php return [ /* |-------------------------------------------------------------------------- | Default Session Driver |-------------------------------------------------------------------------- | | This option controls the default session "driver" that will be used on | requests. By defau...
PHP
config/session.php
vamsirajendra/dreamfactory
apache-2.0
6,884
198
codeparrot/github-code
8711f4fc395beda2b26e7d53abe377df0d4d95044cf9461139a516569b4e3051
<?php require '../tablas/menu.php'; require '../clases/tablas/tipo_personal.class.php'; $tipo_personal = tipo_personal::singleton(); //Declaring variables $action=isset($_POST['action']) ? $_POST['action'] : ''; $nr=isset($_POST['nr']) ? $_POST['nr'] : ''; $id_tipo_personal=is...
PHP
tablas/tipo_personal.php
jfleytas/jesmari
apache-2.0
10,055
260
codeparrot/github-code
f886b86d5d305d2d6cd867cf70eb3b0dccf82289ed3ea9f9854bbaf01d9389ce
#!/usr/bin/env python ''' Description: Runs a combat simulator -- Cowboys vs Aliens Usage: run [options] [--memory | --compute] Options: -c --cowboys NUMBER Number of cowboys [default: 10] -a --aliens NUMBER Number of aliens [default: 10] -q --quiet Reduces verbosity -m --memory...
Python
examples/combat_sim/run.py
LearnPythonAndMakeGames/ecs
apache-2.0
3,303
111
codeparrot/github-code
b459862a49173bf23580a284fe3f8e5611a795933f7732ead8253c222417fade
package dfpAPI.project; import java.lang.reflect.Array; import java.rmi.RemoteException; import java.util.ArrayList; import java.util.Arrays; import java.util.HashMap; import java.util.HashSet; import java.util.List; import java.util.Map; import com.google.api.ads.dfp.axis.v201702.ApiException; import com.google.api....
Java
src/main/java/dfpAPI/project/DFPMethods.java
aspic2/DFP-CreativeShare
apache-2.0
22,398
608
codeparrot/github-code
0e56d455a8aaf3f44a0e5520f6639bffc6cd0ce3ef3a86167b5a88db7c299989
from moto.core.exceptions import JsonRESTError class RepositoryNameExistsException(JsonRESTError): code = 400 def __init__(self, repository_name): super().__init__( "RepositoryNameExistsException", "Repository named {0} already exists".format(repository_name), ) clas...
Python
moto/codecommit/exceptions.py
spulec/moto
apache-2.0
1,088
36
codeparrot/github-code
b2e9b1997b3e8e8b4ad4e9aa41bd2495f5f01581cafcd311524832b5d5858f03
package org.keycloak.examples.federation.properties; import org.keycloak.models.KeycloakSession; import org.keycloak.models.RealmModel; import org.keycloak.models.UserFederationProviderModel; import org.keycloak.models.UserModel; import java.util.Properties; /** * @author <a href="mailto:bill@burkecentral.com">Bill...
Java
examples/providers/federation-provider/src/main/java/org/keycloak/examples/federation/properties/ClasspathPropertiesFederationProvider.java
gregjones60/keycloak
apache-2.0
1,834
69
codeparrot/github-code
e36c60db6814de1b915417475e8047ef33b0b2afbd0cfc0424c3a672b657682c
package org.ovirt.engine.ui.webadmin.widget.host; import java.util.List; import org.ovirt.engine.ui.common.widget.TogglePanel; import org.ovirt.engine.ui.common.widget.renderer.RxTxRateRenderer; import org.ovirt.engine.ui.common.widget.renderer.SumUpRenderer; import org.ovirt.engine.ui.uicommonweb.models.hosts.HostIn...
Java
frontend/webadmin/modules/webadmin/src/main/java/org/ovirt/engine/ui/webadmin/widget/host/InterfacePanel.java
derekhiggins/ovirt-engine
apache-2.0
4,074
119
codeparrot/github-code
6c287ca6c07fe8ac5cbffb359dc02627c6e9f8695af25e435130fce48af453c6
/*global define THREE $ TweenMax*/ define([], function (require) { var Backbone = require('backbone'), Vars = require('app/models/vars'), UserEvent = require('app/events/user-event'), AppEvent = require('app/events/app-event'), View; require('tweenmax'); View = Backbone.View.extend({ initialize: func...
JavaScript
src/js/app/views/sections/section-american.js
adobe-webplatform/Demo-for-Food-Network-Cupcakes
apache-2.0
1,000
52
codeparrot/github-code
1f772eada6d2bc72f0eff1650d5d6298e7e0c34fb4268db6662df1368d494930
// m-to-p.cpp : Defines the entry point for the console application. // #include "stdafx.h" BOOL DoConvert(LPKEYBOARD kbd, PWSTR kbid); BOOL SaveKeyboard(LPKEYBOARD kbd, PWSTR filename); bool ImportRules(WCHAR *kbid, LPKEYBOARD kp); int wmain(int argc, wchar_t * argv[]) { if(argc < 5) { /* LogError(L"Usage...
C++
windows/src/test/mnemonic-to-positional/m-to-p/m-to-p/m-to-p.cpp
tavultesoft/keymanweb
apache-2.0
12,198
391
codeparrot/github-code
b714a095663b8259833443b30b06c3700c81b8a564534c0f45101e397f6bb6d0
/** * Copyright 2009-2021 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 requi...
Java
maven-plugins/ae-dita-maven-plugin/src/main/java/org/metaeffekt/dita/maven/mojo/GenerateGlossaryMapMojo.java
org-metaeffekt/metaeffekt-dita
apache-2.0
2,456
68
codeparrot/github-code
dc208cb51ac7f96f2f11980fc12b361f444b6320a89a088cf6399e1607749b2b
// Copyright © 2008-2013 Esko Luontola <www.orfjackal.net> // This software is released under the Apache License 2.0. // The license text is at http://dimdwarf.sourceforge.net/LICENSE package net.orfjackal.dimdwarf.db.common; import net.orfjackal.dimdwarf.db.*; import net.orfjackal.dimdwarf.tx.Transaction; import ja...
Java
dimdwarf-core/src/main/java/net/orfjackal/dimdwarf/db/common/TransientDatabaseTable.java
orfjackal/dimdwarf
apache-2.0
2,882
108
codeparrot/github-code
b50a92cb8787e806669fdd2f83a3aa770c8ad85d3e44b62b9565bbd65d9d1f83
# Copyright 2013 Radware LTD. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agree...
Python
neutron/services/loadbalancer/drivers/radware/driver.py
shakamunyi/neutron-vrrp
apache-2.0
45,498
1,117
codeparrot/github-code
aae3470448c7bc4cf5e56b3880b34da8d6b9f90ed80ff9c9c45dc228002310e8
/* ### # # ######### _______ _ _ ______ _ _ ## ######## @ ## |______ | | | ____ | | ################## | |_____| |_____| |_____| ## ############# f r a m e w o r k # # ######### ### (c) 2015 - 2017 FUGU framework project Licensed under the Apache L...
C#
src/Fugu.Http/Rest/FuguRestClientRepeatDelayLinear.cs
FUGU-framework/Fugu
apache-2.0
1,275
45
codeparrot/github-code
de233e93bb5c799fec41668fc1de267080fb28a8d8f330a639928feef5a65d62
/** * This reference code is an implementation of the IEEE P2200 standard. It is not * a contribution to the IEEE P2200 standard. * * Copyright (c) 2011 SanDisk Corporation. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use * this file except in compliance wit...
Java
projects/HqmeLibrary/src/com/hqme/cm/Permission.java
HQME-developer/SanDisk-HQME-SDK
apache-2.0
1,447
45
codeparrot/github-code
558ae72a0f1a299b8c58427a1020cb7ae85442a91028d3f444715b14a4b98335
from django.db.models import Count from ordered_model.models import OrderedModelManager from django.db.models import Q, Subquery from django.db.models.query import QuerySet from django.utils import timezone from polymorphic.query import PolymorphicQuerySet class SponsorshipQuerySet(QuerySet): def in_progress(self...
Python
sponsors/models/managers.py
python/pythondotorg
apache-2.0
4,837
129
codeparrot/github-code
b46a80d881c33a1664586fd3bc182473ecd29cb6ca5820530c36466e03b507c7
package classic.KMP; import basic.Util; import java.util.*; /** * Created with IntelliJ IDEA. * User:ChengLiang * Date:2016/7/18 * Time:10:01 * <p> * <p> * 有一个文本串S,和一个模式串P,现在要查找P在S中的位置,怎么查找呢? * <p> * 如果用暴力匹配的思路,并假设现在文本串S匹配到 i 位置,模式串P匹配到 j 位置,则有: * <p> * 如果当前字符匹配成功(即S[i] == P[j]),则i++,j++,继续匹配下一个字符; * 如果失...
Java
src/main/java/classic/KMP/SolutionV3.java
amao12580/algorithm
apache-2.0
5,414
166
codeparrot/github-code