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
73ac829a67ea080d35a37ea98c48e4532e03f3f6ca046c6255328eb93c90a367
/* * Copyright (C) 2013 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by app...
Java
src/com/android/launcher3/wallpaperpicker/views/TiledImageView.java
michelelacorte/FlickLauncher
apache-2.0
6,848
198
codeparrot/github-code
386c8f6131f553f957b5dabadf265a3b1d1706590b7a4471444906aa656dc891
<!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en-us"> <head> <link href="http://gmpg.org/xfn/11" rel="profile"> <meta http-equiv="content-type" content="text/html; charset=utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1"> <title...
HTML
public/tags/tips/index.html
leifmadsen/blog
apache-2.0
3,407
94
codeparrot/github-code
4e02e1dc47a5b2853f9e75a556c165fcd0ece8faaaf9601804e1037de56cffc2
// Copyright 2000-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file. package com.intellij.openapi.editor.actionSystem; import com.intellij.openapi.actionSystem.CommonDataKeys; import com.intellij.openapi.actionSystem.DataContext; import com.intell...
Java
platform/platform-api/src/com/intellij/openapi/editor/actionSystem/TypedAction.java
leafclick/intellij-community
apache-2.0
4,880
137
codeparrot/github-code
b2ef4799c6ba5c3fc5adf20a50e2506257c85994206da29d3274ca15d9ff5f3d
package org.apache.stratos.autoscaler; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; import org.apache.stratos.autoscaler.monitor.ClusterMonitor; import org.apache.stratos.autoscaler.monitor.LbClusterMonitor; import java.util.HashMap; import java.util.Map; /** * This class is ...
Java
components/org.apache.stratos.autoscaler/src/main/java/org/apache/stratos/autoscaler/AutoscalerContext.java
panelion/incubator-stratos
apache-2.0
2,726
90
codeparrot/github-code
32e19d7a89978baf8a1d370e885551d22a7d259546f06b88934aea7731f34ceb
package script.promotion; import java.util.Calendar; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import com.xinqihd.sns.gameserver.config.Constant; import com.xinqihd.sns.gameserver.config.Puzzle; import com.xinqihd.sns.gameserver.db.mongo.ConfirmManager; import com.xinqihd.sns.gameserver.db.mongo.MailM...
Java
server/src/main/script/script/promotion/PuzzlePromotion.java
wangqi/gameserver
apache-2.0
6,133
185
codeparrot/github-code
08ffd6e1b126bb92f796eac78ac860eb3e8b06cdad4e688ae9e0dd42a3a361b8
// Copyright Project Harbor Authors // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed t...
GO
src/jobservice/core/controller.go
steven-zou/harbor
apache-2.0
6,284
217
codeparrot/github-code
323ce1f622f9aaae873110b05d1fd6c6b46d88f430fc10590a947afa9240810d
package com.cloud.api.command.user.loadbalancer; import com.cloud.api.APICommand; import com.cloud.api.ApiConstants; import com.cloud.api.ApiErrorCode; import com.cloud.api.BaseAsyncCmd; import com.cloud.api.Parameter; import com.cloud.api.ServerApiException; import com.cloud.api.response.LBHealthCheckResponse; import...
Java
cosmic-core/api/src/main/java/com/cloud/api/command/user/loadbalancer/DeleteLBHealthCheckPolicyCmd.java
remibergsma/cosmic
apache-2.0
3,912
105
codeparrot/github-code
bde88dfd8da10f7645662021a7a3b10904236ead167c3e641974ba9769885750
/* * 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-kafka/src/main/java/com/amazonaws/services/kafka/model/DescribeClusterOperationRequest.java
jentfoo/aws-sdk-java
apache-2.0
4,280
131
codeparrot/github-code
89fa7bc9c1ca4b3472fb6dc92bbb253f6dc0478528a23f21020ecb6b4a998456
/* * Copyright (C) Institute of Telematics, Lukas Ruge * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless require...
Java
src/de/uniluebeck/itm/dynamixsspbridge/ui/ContextSubscriptionRequested.java
TVLuke/DynamixBridge
apache-2.0
6,328
216
codeparrot/github-code
f129acea7550478891edba824e53b492894a59b058648e43a9fa9bd4f93e0139
package org.alien4cloud.tosca.editor.processors.nodetemplate; import java.util.Iterator; import java.util.Map; import javax.inject.Inject; import alien4cloud.tosca.topology.NodeTemplateBuilder; import org.alien4cloud.tosca.catalog.index.IToscaTypeSearchService; import org.alien4cloud.tosca.editor.EditionContextManag...
Java
alien4cloud-core/src/main/java/org/alien4cloud/tosca/editor/processors/nodetemplate/ReplaceNodeProcessor.java
OresteVisari/alien4cloud
apache-2.0
4,270
89
codeparrot/github-code
a4cd7b6b77f9882ea268c4e79d240becca9316f786849f42e6fca835d613e483
/** * Copyright [2013-2014] [OHsystem] * * We spent a lot of time writing this code, so show some respect: * - Do not remove this copyright notice anywhere (bot, website etc.) * - We do not provide support to those who removed copyright notice * * OHSystem is free software: You can redistribute it and/or modify * it un...
C++
ghost/src/replay/replay.cpp
m-unkel/OHSystem
apache-2.0
17,999
579
codeparrot/github-code
0ef57dfcc06981747ee8b5d3e4eb1a91da149c233a66f94874c9a10129cf21e1
/* * 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 Data.Entity; import java.io.Serializable; import java.util.Date; import java.util.List; import javax.persistence.Bas...
Java
EasyMall_BackEnd/src/java/Data/Entity/Event.java
AnzusDevelopment/AnzusDev_EasyMall_BackEnd
apache-2.0
4,844
160
codeparrot/github-code
1d4e649d95def09fd1a15efbf755c5e466573ca719207120880620e2f6b4509e
// $Id$ #include <list> #include "TranslationOptionCollectionLattice.h" #include "ConfusionNet.h" #include "WordLattice.h" #include "DecodeGraph.h" #include "DecodeStepTranslation.h" #include "DecodeStepGeneration.h" #include "FactorCollection.h" #include "FF/InputFeature.h" #include "util/exception.hh" #include "Tran...
C++
src/decoder-phrasebased/src/native/decoder/moses/TranslationOptionCollectionLattice.cpp
letconex/MMT
apache-2.0
6,209
204
codeparrot/github-code
67142a191e1a25d08a6e898953ee61463084991b40a7c4f9d14706f98dbfbc73
/** * Copyright 2006-2016 the original author or authors. * <p> * 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 * <p> * http://www.apache.org/licenses/LICENSE-2.0 * <p> * Unless requir...
Java
generator/src/main/java/me/ezjs/generator/mybatis/codegen/ibatis2/sqlmap/elements/ResultMapWithoutBLOBsElementGenerator.java
victzero/ezjs-generator
apache-2.0
3,863
101
codeparrot/github-code
59bf846b13919ac3080bffe24ce4d44722fad849c827f2c796ef458e2927a865
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Copyright 2017 liangzy # # 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...
Python
sillypool/spider/parser/xpath.py
vliangzy/sillypool
apache-2.0
2,743
77
codeparrot/github-code
f7aefbc53a8245afbe58e2c0e54af4dbcb9d48b86686661bec04a52ebc16996e
using UnityEngine; using System.Collections; using System.Collections.Generic; //For Queue public class PlanetController : MonoBehaviour { public GameObject[] Planets; // an array of PlanetGO prefab // Queue to hold the plants Queue<GameObject> availablePlanets = new Queue<GameObject>(); // Use this for initia...
C#
Assets/Scripts/PlanetController.cs
kayo-bruno/Space-Shooter
apache-2.0
1,710
67
codeparrot/github-code
41f1104336411bef2b081e98fc1e20483c1332c5ff8ca9d4bcf206fa6c50c228
//////////////////////////////////////////////////////////////////////////// // Module : stalker_low_cover_actions.h // Created : 05.09.2007 // Modified : 05.09.2007 // Author : Dmitriy Iassenev // Description : Stalker low cover actions ////////////////////////////////////////////////////////////////////////////...
C
code/engine/xrGame/stalker_low_cover_actions.h
Im-dex/xray-162
apache-2.0
2,299
74
codeparrot/github-code
e6f395a8ed11b7c667b7264aed63bff05d6cb52935421314496ee16c12411063
package com.evrl.hardcoded import java.text.SimpleDateFormat import scala.language.implicitConversions import org.scalatest.{FlatSpec, ShouldMatchers} import scala.util.control.NonFatal /** * Hardcoded should be simple enough to get by with a single test class ;-) */ class TheTest extends FlatSpec with ShouldMatc...
Scala
src/test/scala/com/evrl/hardcoded/TheTest.scala
cdegroot/hardcoded
apache-2.0
2,016
66
codeparrot/github-code
780a14d6acc8c4b9499716850601f0f126ffcad115c74d61f65c988b94044b53
// (C) Copyright 2014-2015 Hewlett Packard Enterprise Development LP import React, { Component, PropTypes } from 'react'; import { getCurrentLocale } from '../utils/Locale'; import SkipLinks from './SkipLinks'; const CLASS_ROOT = 'app'; let supportedLocales = ['en-US', 'pt-BR']; function localesSupported() { retu...
JavaScript
src/js/components/App.js
samogami/grommet
apache-2.0
1,875
78
codeparrot/github-code
621d6c020b2bed899296c8ef02000c95102876814245eec4ba8b68fec32defcf
/** * Copyright (C) 2011 - present by OpenGamma Inc. and the OpenGamma group of companies * * Please see distribution for license. */ package com.opengamma.financial.aggregation; import java.util.List; import com.opengamma.engine.value.ComputedValue; import com.opengamma.engine.value.ValueProperties; /** * Func...
Java
projects/financial/src/main/java/com/opengamma/financial/aggregation/BottomPositionValues.java
McLeodMoores/starling
apache-2.0
1,552
53
codeparrot/github-code
326d93efa6d1484ba4e2787b010dafde3ddc815343ef161436ebc2e20926ddea
/* * 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
modules/core/src/test/java/org/apache/ignite/testsuites/IgniteP2PSelfTestSuite.java
SomeFire/ignite
apache-2.0
3,397
76
codeparrot/github-code
bc82d7de7a500d4c0160e630accff99b1c2b90d98b7b18d7a2ad52e9ddea8c2a
package uk.ac.ebi.pride.archive.repo.repos.user; public class DomainAAP { private String domainName; private String domainDesc; private String domainReference; public DomainAAP(String domainName, String domainDesc, String domainReference) { this.domainName = domainName; this.domainDes...
Java
src/main/java/uk/ac/ebi/pride/archive/repo/repos/user/DomainAAP.java
PRIDE-Archive/repo
apache-2.0
920
39
codeparrot/github-code
9b56514336548e9010d5b47f67ef94c1b3d5a7a27e957defe17f13d8cfbf7546
/* * 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")...
Java
core/viewer-wicket/model/src/main/java/org/apache/isis/viewer/wicket/model/models/BookmarkTreeNode.java
peridotperiod/isis
apache-2.0
9,799
270
codeparrot/github-code
63661b4a189fee243c69fc0a8be207e6307ca5e58b9a56a053d23948b21af5e6
/* * Copyright 2017-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "licen...
Java
aws-java-sdk-keyspaces/src/main/java/com/amazonaws/services/keyspaces/model/transform/ConflictExceptionUnmarshaller.java
aws/aws-sdk-java
apache-2.0
2,775
74
codeparrot/github-code
190a502d4af96e443bf0a33d37ec85e6f3a7da834a15f4623f18c553f74eccee
module Bosh::Exec class Result # command that generated the result # @return [String] attr_reader :command # output from the executed command # @return [String] attr_reader :output # exit status of the command # @return [Integer] attr_reader :exit_status def initialize(command...
Ruby
src/bosh_common/lib/common/exec/result.rb
barthy1/bosh
apache-2.0
686
34
codeparrot/github-code
6928814ea84c0541bdfd7d6b6ad6888904ba1aa1caa264d415d214a1ba7e7009
/* * 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
ql/src/java/org/apache/hadoop/hive/ql/udf/generic/GenericUDFToUnixTimeStamp.java
alanfgates/hive
apache-2.0
7,886
187
codeparrot/github-code
32f4a604597319b6ea3cac3c73719b13bc1bce2ea5e433b23f3f3fa235919c2a
/* * 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 ...
JavaScript
features/src/main/javascript/features/embeddedexperiences/embedded_experiences_container.js
apparentlymart/shindig
apache-2.0
5,668
142
codeparrot/github-code
e9b513a9cfb5ebaa9e004a195c7f071dec1f22acb458ed810d79187fadee7f48
package main import ( "log" "os" "time" "github.com/appleboy/easyssh-proxy" "github.com/joho/godotenv" "github.com/urfave/cli" ) // Version set at compile-time var Version string func main() { // Load env-file if it exists first if filename, found := os.LookupEnv("PLUGIN_ENV_FILE"); found { _ = godotenv.L...
GO
main.go
drone-plugins/drone-ssh
apache-2.0
8,781
274
codeparrot/github-code
0c4465f14e1d5c35ef5a0479826c4093d5439bb258cae3106e2814f6228e4735
/* * Copyright (c) 2021, Peter Abeles. All Rights Reserved. * * This file is part of BoofCV (http://boofcv.org). * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apac...
Java
main/boofcv-geo/src/test/java/boofcv/abst/geo/f/CheckEstimateNofEpipolar.java
lessthanoptimal/BoofCV
apache-2.0
2,766
102
codeparrot/github-code
b2e974cca4077fc87ed763c50a759c37fbf3092ffff6dd03dfc307c1eb020015
/* * Copyright 2009 Kantega AS * * 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
modules/core/src/main/java/no/kantega/publishing/security/action/LoginAction.java
kantega/Flyt-cms
apache-2.0
9,415
216
codeparrot/github-code
8dd94ae49dc50fe3ed422704540533bf18259c6fa0e831512311d6be26024a54
/* * Copyright (C) 2012 Square, Inc. * Copyright (C) 2007 The Guava Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless...
Java
library/src/main/java/com/squareup/otto/Bus.java
adennie/otto
apache-2.0
17,531
464
codeparrot/github-code
66c35807b9f47e7da630811a3d2f508489d0fcd50790a31460914a4b621e8832
#include <iostream> #include "graph.h" using namespace std; bool test() { Graph *test = createGraphFromFile("test.txt"); int testArray[6][2] ={{0, 4}, {4, 5}, {0, 1}, {5, 3}, {3, 2}, {1, 6}}; int **tree = findMinimumSpanningTree(test); for (int i = 0; i < 6; i++) { for (int j = 0; j < 2; j++) { if (tree...
C++
course_1/semester_1/homework_12/task_12.2/task_12.2/12-2.cpp
IrinaEmelianova/Homeworks
apache-2.0
693
46
codeparrot/github-code
b94219fda5d8ca4e43ba3f145d1c94c0191b9a7e086d2eda29df603bb7beee2d
#include "Window.h" #include "Timer.h" #include "Loader.h" #include "Shader.h" #include <iostream> #include <GL/glew.h> #include <vec3.hpp> #include <gtc/matrix_transform.hpp> #include <SDL_mixer.h> #include <cassert> #ifdef main #undef main #endif #define xTrig(x, z, y) (cos(glm::radians(y))*x + sin(glm::radians(-y)...
C++
Main.cpp
Curly-/HouseOfCards
apache-2.0
3,998
132
codeparrot/github-code
c723b4b24e20b3ee30b8ee8e08e5572702b11d452f5161042d3966102e89961a
/**************************************************************** * Licensed to the AOS Community (AOS) under one or more * * contributor license agreements. See the NOTICE file * * distributed with this work for additional information * * regarding copyright ownership. The AOS licenses this...
Java
text/src/test/java/aos/text/string/StringNormalizerTest.java
xuzhikethinker/t4f-data
apache-2.0
3,865
112
codeparrot/github-code
be647279f024dcdba0e4c1869feb7c1b9381c19cedabcc96130bba96bdc1a16e
/* * Copyright 2017-present, Yudong (Dom) Wang * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable l...
Java
restclient/src/main/java/org/wisdom/tool/model/Cause.java
wisdomtool/rest-client
apache-2.0
2,865
130
codeparrot/github-code
7d5531e37f7a7e073d5ef0da237ee3480a04a5b1763203b8832710ac0d3eac78
package com.borneo.framework.base.controller; import javax.annotation.Resource; import javax.servlet.http.HttpServletRequest; import org.hibernate.criterion.DetachedCriteria; import org.hibernate.criterion.Restrictions; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.stere...
Java
src/main/java/com/borneo/framework/base/controller/TmoduleController.java
yongjacky/jee.borneo.miri
apache-2.0
4,168
96
codeparrot/github-code
54254e79e8b0919fa7bed00159af35cf01656327fa86ea79083e2d1f9f676083
/* * Copyright (C) 2014-2016 LinkedIn Corp. 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 appl...
Java
gobblin-core/src/main/java/gobblin/writer/commands/GenericJdbcBufferedInserter.java
yukuai518/gobblin
apache-2.0
3,628
109
codeparrot/github-code
a327efd0cbd5ef9c91f010387fe335f005493b8ca6d548c57db95f59d59abb74
/*========================================================================= * * Copyright Insight Software Consortium * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * h...
C
Modules/Filtering/ImageIntensity/include/itkSigmoidImageFilter.h
CapeDrew/DITK
apache-2.0
5,895
228
codeparrot/github-code
69412e0ee39517ae5387fca7cd10f5ad7f1580c6c77910c5318faa6108b9639f
require 'ladder/model/file' require 'ladder/storage_adapters/grid_fs' module Ladder module NonRDFSource def initialize(*) Ladder::File.store_in(collection: Ladder::LDP.settings.repository.client.database.fs.files_collection.name) super end def file Ladder::File.where(filename: subject_...
Ruby
lib/ladder/non_rdf_source.rb
ladder/ldp
apache-2.0
841
43
codeparrot/github-code
f02b5fbefeff2c783327fa641e8491d3ac4197785eaa0dfde0db0a413e6acfc9
package io.dropwizard.setup; import com.codahale.metrics.MetricRegistry; import com.codahale.metrics.SharedMetricRegistries; import com.codahale.metrics.health.HealthCheckRegistry; import com.fasterxml.jackson.databind.ObjectMapper; import com.google.common.util.concurrent.ThreadFactoryBuilder; import io.dropwizard.je...
Java
dropwizard-core/src/main/java/io/dropwizard/setup/Environment.java
ryankennedy/dropwizard
apache-2.0
6,204
197
codeparrot/github-code
9dcec730b10a4fe1946e30d27df9c225a89f36e74e89656fed245a70c801abff
// Copyright 2000-2019 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file. package com.siyeh.ig.jdk; import com.intellij.codeInsight.daemon.JavaErrorBundle; import com.intellij.codeInsight.intention.QuickFixFactory; import com.intellij.codeInspection.Ab...
Java
plugins/InspectionGadgets/src/com/siyeh/ig/jdk/ForwardCompatibilityInspection.java
leafclick/intellij-community
apache-2.0
5,628
123
codeparrot/github-code
a4b6a8981978bd16dd86a5b2e94ba1b35c9b5259645fee4691fa914f04f18311
using Microsoft.CodeAnalysis; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace DotVVM.VS2015Extension { public static class Extensions { /// <summary> /// Replaces a range in a StringBuilder with specified content. ...
C#
src/DotVVM.VS2015Extension/Extensions.cs
holajan/dotvvm
apache-2.0
1,255
49
codeparrot/github-code
ad51a724dbf64f171cc4c9794dbfa30838b47f2440102ce3aa92aba1034163c3
import numpy as np import itertools import logging import time import traceback from collections import Mapping from ..conventions import cf_encoder from ..core.utils import FrozenOrderedDict from ..core.pycompat import iteritems, dask_array_type, OrderedDict # Create a logger object, but don't add any handlers. Leav...
Python
xarray/backends/common.py
drewokane/xray
apache-2.0
7,619
229
codeparrot/github-code
3da6603008a27f89146499aae0d465a9755072a0601da3e2189433199b08fd60
/** * 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
hadoop-hdfs-2.3.0-cdh5.1.0/src/main/java/org/apache/hadoop/hdfs/server/namenode/NameNodeHttpServer.java
yelshater/hadoop-2.3.0
apache-2.0
10,464
277
codeparrot/github-code
28143e447ed719d0d317a6ecbda381cdec138e07479d663d63aac8a4f500d584
using System; using System.Collections.Generic; using System.Collections.ObjectModel; using System.ComponentModel; using System.Diagnostics; using System.Diagnostics.CodeAnalysis; using System.Globalization; using System.Linq; using System.Net.Http; using System.Net.Http.Headers; using System.Web.Http; using System.Web...
C#
BarUTomaREST/Areas/HelpPage/HelpPageConfigurationExtensions.cs
jpaulovic/BarUTomaREST
apache-2.0
24,082
468
codeparrot/github-code
37160a5c2209c6d53e16146a8b0d2e3edaf048e4decc20cd96099703bb4dc289
// // System.IO.StreamReader.cs // // Authors: // Dietmar Maurer (dietmar@ximian.com) // Miguel de Icaza (miguel@ximian.com) // Marek Safar (marek.safar@gmail.com) // // (C) Ximian, Inc. http://www.ximian.com // Copyright (C) 2004 Novell (http://www.novell.com) // Copyright 2011, 2013 Xamarin Inc. // // Permiss...
C#
System/IO/StreamReader.cs
dot42/api
apache-2.0
25,382
812
codeparrot/github-code
07cd78676c77a4327e54e7b3c9c6a29086788e313485037565abf61176c2c439
// Copyright 2000-2019 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file. package git4idea.config; import com.intellij.dvcs.branch.DvcsBranchInfo; import com.intellij.dvcs.branch.DvcsBranchSettings; import com.intellij.dvcs.branch.DvcsCompareSettings; ...
Java
plugins/git4idea/src/git4idea/config/GitVcsSettings.java
leafclick/intellij-community
apache-2.0
9,472
333
codeparrot/github-code
f179cb5fede4ab8b64eae423bd4078537076917e43b9ab10ff6eafc787ac9b51
/* * Copyright 2011 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 la...
Java
Paco/src/com/google/android/apps/paco/DownloadExperimentsTask.java
BobEvans/omgpaco
apache-2.0
5,231
125
codeparrot/github-code
c0c5260688850257e226dfcf528a1f77efff8662a2423492bf628eca60fcb837
/* Copyright 2005 Olaf Delgado-Friedrichs Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
Java
src/org/gavrog/jane/numbers/Rational.java
odf/gavrog
apache-2.0
6,825
236
codeparrot/github-code
5e8c01935881a812687423e961202be1939cf63a00a270cde1e87fe505586f2e
/* * 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 no...
Java
eai-portal-webapp-administration/src/test/java/de/unioninvestment/eai/portal/portlet/crud/SpringApplicationFactoryTest.java
Union-Investment/Crud2Go
apache-2.0
2,387
75
codeparrot/github-code
ea1eb2c2fa81cc4f03ae49ef0971e78fc339f74c6eeb4e50acd1653aafa0dcec
/* * Copyright 2012-2016 bambooCORE, greenstep of copyright Chen Xin Nien * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * ...
Java
core-base/src/com/netsteadfast/greenstep/job/impl/SysExpressionJobImpl.java
quangnguyen9x/bamboobsc_quangnv
apache-2.0
5,411
147
codeparrot/github-code
42fce58ff02ba0ca27e812e1ab3fbbac26a3bb96b4a908e1286a3328ca9f515f
package sim.distributed; import static com.google.common.collect.Lists.*; import java.util.List; import sim.model.Job; public class ByStrategyHostSelector implements HostSelector { private final List<HostScheduler> hostSchedulers; private List<HostScheduler> leftHostSchedulers; private Job lastJob; private List...
Java
java/src/sim/distributed/ByStrategyHostSelector.java
oshai/simba
apache-2.0
1,015
48
codeparrot/github-code
a6695a01e43c8048f21e01c5edd04914da9e3b1f8cf538841b3d52bacdeecc93
// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. See License.txt in the project root for license information. using Microsoft.Data.Edm; namespace System.Web.Http.OData.Builder { /// <summary> /// Allows configuration to be performed for a complex type in a model. A ComplexTypeConfigura...
C#
OData/src/System.Web.Http.OData/OData/Builder/ComplexTypeConfiguration.cs
Terminator-Aaron/Katana
apache-2.0
1,450
40
codeparrot/github-code
453a88c8c9c59efc56d5aa17db9c1a0e7f4e010a0c4aa1cb3c5e44ceb650fe4e
/* * Copyright 2009-2012 The MyBatis Team * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by a...
Java
src/test/java/org/apache/ibatis/cache/WeakCacheTest.java
c340c340/mybatis-3.2.22
apache-2.0
2,389
78
codeparrot/github-code
f7af6c1262e2e628659f1ee95d087226fafde298c0e33e80eb4a88e84cda4ff4
/* * Copyright 2017 Young Digital Planet S.A. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicab...
Java
src/test/gwt/eu/ydp/empiria/player/client/controller/flow/MainFlowProcessorGWTTestCase.java
YoungDigitalPlanet/empiria.player
apache-2.0
3,908
112
codeparrot/github-code
1ff2f89068624494fe8e7155723830dfb7ce71437b51925463a4de07a55249b7
import sys, glob, os """ This program creates a csv file where each row contains an image and one of its associated tag <"image_path, tag">. An image has to be in 'jpg' format, a label in 'txt' format. Usage: @param1: dataset directory @param2: url base where images and labels have to be located @param3: output dire...
Python
src/utils/crowdflower/create_csv.py
emvecchi/mss
apache-2.0
1,241
45
codeparrot/github-code
bc770cd45e726eec2828a79f1713692ef2c4302d2cc701bd6d8eaf17feb01e81
package com.scausum.imageselector.lib.model; import android.os.Parcel; import android.os.Parcelable; /** * The image item. */ public class ImageItem implements Parcelable { // The absolute path public String path; // The status if image item is selected public boolean isSelected; public ImageI...
Java
image-selector/src/main/java/com/scausum/imageselector/lib/model/ImageItem.java
jiajieshen/ImageSelector
apache-2.0
1,299
56
codeparrot/github-code
1019e7a66c261642bd00ce852315bbbd513aa3d87889ea05d816a1c01abd1c45
#region Using Directives using System; using System.IO; using System.Text; #endregion namespace Sentiment.Helpers { public class Utilities { private static string _path; public static string UserAppDataPath { get { if (!string.IsNullOrEmpty(_pat...
C#
WebIntelligence/Sentiment/Helpers/Utilities.cs
AngelOD/AAU-WI
apache-2.0
1,876
69
codeparrot/github-code
4aeb89870fd2d3fc920fcfe11605faee1503b9b1edbb93956fe0d1a6617dfae5
/******************************************************************************* * Copyright 2015 MobileMan GmbH * www.mobileman.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 * ...
Java
src/main/java/com/mobileman/kuravis/core/ws/entity/EntityRestController.java
MobileManAG/KURAVIS
apache-2.0
7,627
210
codeparrot/github-code
ab26ed5bbc92d1f0b12f6ca23f8bc37b117e83bf5313f78fe94e6e8c65745bc4
// Copyright 2000-2020 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file. package com.intellij.application.options.codeStyle; import com.intellij.openapi.diagnostic.Logger; import com.intellij.psi.codeStyle.CodeStyleSettings; import com.intellij.psi.co...
Java
platform/lang-impl/src/com/intellij/application/options/codeStyle/OptionTreeWithPreviewPanel.java
leafclick/intellij-community
apache-2.0
21,753
647
codeparrot/github-code
be8d05e1f8fe3458f7d883e899752f73b50e7066b38656308756c7bdae866219
package org.adligo.addoc.client.models; import org.adligo.addoc.client.bi.I_Browser; import org.adligo.css.shared.models.I_StyleSheet; import org.adligo.css.shared.models.selectors.Selector; import org.adligo.css.shared.models.selectors.SequenceOfSimpleSelectors; import java.util.ArrayList; import java.util.List; imp...
Java
src/org/adligo/addoc/client/models/AddocContentMutant.java
adligo/addoc.adligo.org
apache-2.0
4,245
118
codeparrot/github-code
2b16df2aa9cfb48439c34e6c2d253db85f713a192d50460ec3a0f6398d030649
/* * Copyright 2013 Adrien Favre-Bully, Florian Froese, Adrian Schmidmeister * 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
src/main/java/ch/ethz/student/dejavu/strings/OptimalStringAlignmentDistance.java
adrienfb/dejavu-stringmetrics
apache-2.0
7,106
223
codeparrot/github-code
ed0aab6178cd8090ba2a0ff1063dcb2a0f5d1a871e7c42c14960dd5d43d4a744
(function () { 'use strict'; angular.module('app.middleoffice').run(appRun); /* @ngInject */ function appRun(routerHelper) { routerHelper.configureStates(getStates()); } function getStates() { return [ { state: 'app.listMOPendingRecords', ...
JavaScript
cashportal/src/main/resources/static/app/modules/middleoffice/middleoffice.route.js
blessonkavala/cp
apache-2.0
2,190
67
codeparrot/github-code
b23278f0c0b71191af0c3c1453420806a52ad80fbb6e1b631fa2235e34d01570
<!DOCTYPE html> <!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]--> <!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8"> <![endif]--> <!--[if IE 8]> <html class="no-js lt-ie9"> <![endif]--> <!--[if gt IE 8]><!--> <html class="no-js"> <!--<![endif]--> <head> <meta chars...
HTML
index.html
MuralidharanD8763/starter-web
apache-2.0
5,160
107
codeparrot/github-code
21979e8a6bf6c72f7c0d5d510c7c11e758e0b5c65428007d9f61814cb0aad24f
/** * Copyright 2019 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 t...
JavaScript
index.js
google/github-owners-bot
apache-2.0
2,068
58
codeparrot/github-code
3c0cee6a4efc740c0910d27faf71dbc4f36c7992650e77bad461eb5b83e47267
package io.fabric8.kubernetes.api.model.apiextensions.v1; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; import com.fasterxml.jackson.annotation.JsonAnyGetter; import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore;...
Java
kubernetes-model-generator/kubernetes-model-apiextensions/src/generated/java/io/fabric8/kubernetes/api/model/apiextensions/v1/CustomResourceDefinitionStatus.java
fabric8io/kubernetes-client
apache-2.0
4,523
133
codeparrot/github-code
7f499085047883b79b3b280173bba85f280fb449c28c2193fa8a61eab999be17
package ru.job4j.array; import org.junit.Test; import static org.hamcrest.core.Is.is; import static org.junit.Assert.assertThat; /** *Test. * *@author Kseniya Shustova (shustovakv@mail.ru) *@version $Id$ *@since 0.1 */ public class RotateArrayTest { /** * Test для массива 2 х 2. */ @Test pu...
Java
chapter_001/src/test/java/ru/job4j/array/RotateArrayTest.java
Spirka/shustovakv
apache-2.0
1,030
36
codeparrot/github-code
b2a9cb07fcee2e329f3fa27670a7665250a1d86e3cdd897fbc40ce31bbb0b749
// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. See License.txt in the project root for license information. using System.Linq; using System.Net; using System.Net.Http; using System.Web.Http.OData.Builder; using System.Web.Http.OData.Extensions; using System.Web.Http.OData.Formatter; using Sys...
C#
OData/test/System.Web.Http.OData.Test/OData/EntitySetControllerTest.cs
Terminator-Aaron/Katana
apache-2.0
11,645
269
codeparrot/github-code
eb05426ed99c2d4228c62b581f12132b495979715427fa872e33daa0c5420e12
from __future__ import print_function import os.path import re import imp import sys from shutil import copyfile import PythonAPI as api class ValidateFilename(api.PythonAPIRule): def __init__(self, config): super(ValidateFilename, self).__init__(config) def run(self, inputFile, outputFile, encoding): # NOTE:...
Python
src/rules/validateFilename.py
unchartedsoftware/PLUTO
apache-2.0
1,114
32
codeparrot/github-code
4aa4fb420873a54d4e3c67db9abc4817c0c5876d9945f3f2fe926fd1b0444440
// This file is part of JavaSMT, // an API wrapper for a collection of SMT solvers: // https://github.com/sosy-lab/java-smt // // SPDX-FileCopyrightText: 2020 Dirk Beyer <https://www.sosy-lab.org> // // SPDX-License-Identifier: Apache-2.0 package org.sosy_lab.java_smt.delegate.synchronize; import static com.google.co...
Java
src/org/sosy_lab/java_smt/delegate/synchronize/SynchronizedNumeralFormulaManager.java
sosy-lab/java-smt
apache-2.0
4,903
185
codeparrot/github-code
f9ecfdc2149cf5471044af336dbcdb7484dfbe832ae4c036f30668d41a5b882f
package com.jaksona.app.entity.admin; import com.jaksona.app.entity.BaseEntity; /** * 资源 * @author jaksona */ public class Resource extends BaseEntity { // members private String name; private Integer type; private String resource; private String descn; // setter and getter public String getName() { retu...
Java
src/main/java/com/jaksona/app/entity/admin/Resource.java
chenluyuan/jaksona
apache-2.0
744
49
codeparrot/github-code
c9699d4edd02e12a9ddd075cffebeec9b89daa164838ecfaf52a72440c227c40
import numpy as np import tensorflow as tf from traindata import training from test import parsing import logging import re import os import csv import gensim import json import argparse logging.basicConfig(format='%(asctime)s %(message)s', datefmt='%m/%d/%Y %I:%M:%S %p',level=logging.DEBUG) logging.info('logger start...
Python
main.py
rakat/depparser
apache-2.0
4,816
133
codeparrot/github-code
46cdc7908d933d9bcd334956b5e78f7e1645a7040cb8607d0dae24f76dfc88de
# -*- coding: utf-8 -*- import datetime from django.core import serializers import simplejson from weiChatShopPython.service import updateAddr, getRealIP, getBuid, cartInsert, cartDataList, addrInsert __author__ = 'xiaoming' from django.http import HttpResponse from django.template import loader,Context from weiChatSh...
Python
weiChatShopPython/data.py
WeiChatShop/weiChatShopPython
artistic-2.0
5,059
99
codeparrot/github-code
c1256cced1313d900cac07a0dfca51c199b561efb3c913f7557b7779d832611d
/** * Title Separate the Numbers * URL https://www.hackerrank.com/challenges/separate-the-numbers * * Author Norman Gamage <norman.gamage@gmail.com> * Version 1.0 * Last Update 2018 Jan 07 */ const BigNumber = require("bignumber.js"); function separateNumbers(s) { let fl...
JavaScript
__old__/Algorithms/JavaScript/Strings/separate-the-numbers.js
norman-gamage/hackerrank
artistic-2.0
832
41
codeparrot/github-code
85afca49d109fe362819ed2b82c07e6f1742b3b48beeeaa869095a90a7a34b0e
# Class: Pony::Web::Response # Standard response. # Extends: # Pony::Web::AbstractModule package Pony::Web::Response; use Pony::Object qw/Pony::Web::AbstractModule/; protected code => 200; protected header => []; protected body => ''; # Method: init # Constructor. # Parameter: undef || S...
Perl
lib/Pony/Web/Response.pm
h15/pony
artistic-2.0
2,262
113
codeparrot/github-code
dc111f2fada271b5cb321a9627e4e2f47437a9d029a777068e0c4a5ef5436ff1
package com.zeldanerd123.pikminsmostuff.blocks.ore; import java.util.Random; import com.zeldanerd123.pikminsmostuff.PikminsMoStuff; import scala.tools.nsc.doc.model.Public; import net.minecraft.block.Block; import net.minecraft.block.material.Material; import net.minecraft.init.Blocks; import net.minecraft.item.Item...
Java
main/java/com/zeldanerd123/pikminsmostuff/blocks/ore/RubyOre.java
zeldanerd/Pikmmin_Mo-Stuff
artistic-2.0
1,290
53
codeparrot/github-code
02eb699c010500304f5c6edb651b751985e710017bd97944fe8b28b1f532c29c
# # Statistics.pm # # A class that contains routines for generating statistics about the database. I have also stuck # the application state store/fetch routine in here, because it is also used by the frontend. # # Author: Michael McClennen package PB2::Statistics; use strict; use HTTP::Validate qw(:validators); ...
Perl
lib/PB2/Statistics.pm
paleobiodb/pbdb-new
artistic-2.0
8,907
331
codeparrot/github-code
a4ad87e165eadeffe8fa22bc9e5ce45be624262b3d7af59ff54b4df359d0d5bc
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html> <head> <title>Reference</title> <link rel="stylesheet" href="../luadoc.css" type="text/css" /> <!--meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/--> </head> <bod...
HTML
CollectionAgent.lrdevplugin/Framework/Catalog/files/Catalog.html
Greven-of-Norway/RC_CollectionAgent
artistic-2.0
77,030
3,392
codeparrot/github-code
e15c414221b5693b5a1be78c1f786ac77b1bf775325580413d3dad88a54bf9e8
# -*- coding: utf-8 -*- """Main Controller""" import pylons from tg import expose, flash, require, url, lurl, request, redirect, tmpl_context from tg.i18n import ugettext as _, lazy_ugettext as l_ from tg import predicates from ebetl import model from ebetl.controllers.secure import SecureController from ebetl.model im...
Python
ebetl/controllers/marketing.py
nomed/ebetl
artistic-2.0
12,560
351
codeparrot/github-code
5887d8b9eececd3fb46cdbfa0bd3861020c7161f9605e655e4a7698ecf8adc46
=encoding utf8 =head1 NAME Mojolicious::Guides::Rendering - Rendering =head1 OVERVIEW This document explains content generation with the L<Mojolicious> renderer. =head1 CONCEPTS Essentials every L<Mojolicious> developer should know. =head2 Renderer The renderer is a tiny black box turning stash data into actua...
Perl
lib/Mojolicious/Guides/Rendering.pod
gitpan/Mojo
artistic-2.0
39,176
1,391
codeparrot/github-code
d305488675973339a044eb2cf73a7953aeb2a63f29b55af2991c0ea8e8f4d8e5
/* * Copyright (c) 2013-2017 Rony Shapiro <ronys@pwsafe.org>. * All rights reserved. Use of the code is allowed under the * Artistic License 2.0 terms, as specified in the LICENSE file * distributed with this code, or available from * http://www.opensource.org/licenses/artistic-license-2.0.php */ #ifndef __PWSFILEV4_H ...
C
src/core/PWSfileV4.h
Sp1l/pwsafe
artistic-2.0
5,836
157
codeparrot/github-code
51dea50c7f22aeffd72912836f7bf34639d1ec10523c90eadc3a2489b73bc717
<?php namespace controllers; use core\view as View; use \Exception; class Login extends \core\controller{ public function get(){ $this->requireUser('notloggedin'); $data['title'] = 'Login'; if (ENABLE_FACEBOOK){ \helpers\MyFB::setPath('api/facebooklogin'); $data['fbLoginUrl'] = \...
PHP
app/controllers/login.php
anestv/pa
artistic-2.0
2,122
73
codeparrot/github-code
074bb4abab6e6f20b7ae93961554f37f19b98853f48813144d4dad1d9a13439a
using System; using System.Collections; using System.Collections.Generic; namespace RPCJson { public class Objects { public static Dictionary<int, object> objects = new Dictionary<int, object>(); public static Hashtable objectNames = new Hashtable(); public static int id = 0; public static void FreeMany(...
C#
RPCJson/src/Objects.cs
voxsoftware/jxshell
artistic-2.0
1,587
97
codeparrot/github-code
17beaffaace78dcd3626a242598f95bbad9ce00e579e79c240b707a2ab5b3191
#!/usr/local/bin/perl BEGIN { $ENV{DOWNLOAD_OUTFILE_DIR} = "/Users/alroy/pb/html/paleodb/data"; $ENV{DOWNLOAD_DATAFILE_DIR} = "/Users/alroy/pb/cgi-bin/data"; $ENV{MAP_COAST_DIR} = "/Users/alroy/pb/cgi-bin/data"; $ENV{MAP_GIF_DIR} = "/Users/alroy/pb/html/public/maps"; $ENV{REPORT_DDIR} = "/Users/alroy/pb/cgi-bin/data"...
Perl
scripts/paleocoord_update_db.pl
paleobiodb/pbdb-new
artistic-2.0
4,487
137
codeparrot/github-code
c084b2e70b51d1bc9cef96b0e4117c5ce31177896ec5468f7159f764469fabb1
package playground.games.local; import org.newdawn.slick.SlickException; import playground.games.GameRecord; /** * A set of information about a single game in the system * * @author kevin */ public class GameInfo implements GameRecord { /** The ID of this game */ private String id; /** The name ...
Java
slick_dev/trunk/SlickPlayground/src/playground/games/local/GameInfo.java
SenshiSentou/SourceFight
bsd-2-clause
4,341
177
codeparrot/github-code
0944fc907a1bc5f960cd4a14791cb1ba3d5aa7fcfa459b4fbd6b6521a7943aff
package com.d2dx.j2objc; /* * (c) 2014 Vladimir Katardjiev. Licensed under 2-clause BSD. */ import static org.twdata.maven.mojoexecutor.MojoExecutor.artifactId; import static org.twdata.maven.mojoexecutor.MojoExecutor.configuration; import static org.twdata.maven.mojoexecutor.MojoExecutor.element; import static org...
Java
j2objc-maven-plugin/src/main/java/com/d2dx/j2objc/TranslateMojo.java
meledin/j2objc-maven-plugin
bsd-2-clause
9,973
288
codeparrot/github-code
ccca7892cf09b7dbd8effeeb7eb6d4482d6c7d61b9e0d48609ed084754ab9705
package Tapper::Reports::API; # git description: v4.1.1-1-ga1a0e21 BEGIN { $Tapper::Reports::API::AUTHORITY = 'cpan:TAPPER'; } { $Tapper::Reports::API::VERSION = '4.1.2'; } # ABSTRACT: Tapper - Remote network API for result evaluation use 5.010; use strict; use warnings; use parent 'Net::Server::Fork'; use Tapp...
Perl
lib/Tapper/Reports/API.pm
gitpan/Tapper-Reports-API
bsd-2-clause
5,613
229
codeparrot/github-code
5b5156f56db14a321c03b3773dcc5f0bdd2f50def3d842647da47f7610effbd6
/** * Projekt do predmetu ISA/2011 * * @file checksum.cpp * @author Jan Dušek <xdusek17@stud.fit.vutbr.cz> * @date 2011 * * Internet checksum */ #include "checksum.h" #include <arpa/inet.h> #include <libnet.h> static int computeChecksum(const uint16_t* data, int len) { int sum = 0; while (len > 1) {...
C++
checksum.cpp
Zycon42/nat64
bsd-2-clause
1,822
72
codeparrot/github-code
bd7bbb125a33bbfce8077223a79cf2b8f91f0e46886ddbcff66fb24ecc5202cf
FormFormatter = { Edit: function(form){ var style = 0; $(form).children("#style-type").children("input[type='checkbox']:checked").each(function(){ style |= $(this).val(); }); $(form).children("#style").val(style); if ((boundsEditor.active) && (boundsEditor.coor...
JavaScript
app/assets/javascripts/form_formatter.js
ScrimpyCat/SkateFinder
bsd-2-clause
1,077
36
codeparrot/github-code
1018f820c0135e32c5d620e6b4ac2e29c25ac2c53e27958a7a587fff00a0ff6b
__author__ = 'amelie' import numpy from scipy import linalg from sklearn.base import BaseEstimator class StructuredKernelRidgeRegression(BaseEstimator): """Structured Kernel Ridge Regression. Attributes ---------- alpha : float Regularization term. kernel : Callable Kernel functi...
Python
preimage/learners/structured_krr.py
a-ro/preimage
bsd-2-clause
3,990
108
codeparrot/github-code
d6c1205f2bcf73dd6a899e455777a3fac795514c8090fb9b887f3bbda66f10c3
#include "CtrlLib.h" #ifdef PLATFORM_X11 #ifdef flagNOGTK NAMESPACE_UPP void ChHostSkin() {} END_UPP_NAMESPACE #else #include "ChGtk.h" NAMESPACE_UPP #if defined(_DEBUG)// && 0 #include <plugin/png/png.h> void LOGPNG(const Image& m) { static int i; PNGEncoder png; png.SaveFile(ConfigFile(AsString(i++) + ".p...
C++
uppsrc/CtrlLib/ChGtk0.cpp
dreamsxin/ultimatepp
bsd-2-clause
17,917
623
codeparrot/github-code
d6d68c6e1fae3f7921e18855508cd66694c5c65061123e835eff42e4b90e98b3
#!/bin/bash # # Test if everything is ok to use geheim # echo echo "Running tests for geheim..." echo echo -n "Checking operating system..." if uname -s | grep -E '(Linux|Darwin|BSD)' &>/dev/null then uname -s else echo "Unknown ($(uname -s))" echo "Your operating system is unknown/not tested, if everything works ...
Shell
test/test.sh
malte70/geheim
bsd-2-clause
1,498
64
codeparrot/github-code
5586d193d7f606e0241094c4b1bcfe2c3226e03a998aa9ed84d81b3282a63a3a
// Copyright 1998-2015 Epic Games, Inc. All Rights Reserved. #include "BlueprintGraphPrivatePCH.h" #include "K2Node_MathExpression.h" #include "EdGraphUtilities.h" #include "KismetCompiler.h" #include "MathExpressionHandler.h" #include "K2Node_VariableGet.h" #define LOCTEXT_NAMESPACE "KCHandler_MathExpression" struc...
C++
Engine/Source/Editor/BlueprintGraph/Private/MathExpressionHandler.cpp
PopCap/GameIdea
bsd-2-clause
9,381
249
codeparrot/github-code
0dce955071d02eddda9c334a660b68fd3572b0e3946ef1a24f0b4343f10020b0
""" Helper functions to communicate with replication servers. """ import requests import urllib.request as urlrequest import datetime as dt from collections import namedtuple from math import ceil from osmium import MergeInputReader from osmium import io as oio from osmium import version import logging LOG = logging...
Python
src/osmium/replication/server.py
osmcode/pyosmium
bsd-2-clause
14,897
366
codeparrot/github-code
2b89f5e2340ab3a7abe9726f419647dd87bfbb6cbce9850f72d0cbaa1396a04d
using System; using System.Collections.Generic; using System.IO; using FlubuCore.Context; using FlubuCore.IO; using FlubuCore.Packaging; using FlubuCore.Packaging.Filters; namespace FlubuCore.Tasks.Packaging { public class PackageTask : TaskBase<int, PackageTask> { private readonly List<SourcePackagin...
C#
src/FlubuCore/Tasks/Packaging/PackageTask.cs
flubu-core/flubu.core
bsd-2-clause
9,871
239
codeparrot/github-code
9f08130587ddb177e6d96b2de7e77a55b1a30d9f40fb3e67c5090e7fefb0c072
/*- * Copyright (c) 2002-2005 Hye-Shik Chang * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of...
C
src/reboot.c
dnaeon/py-freebsd
bsd-2-clause
2,148
64
codeparrot/github-code
83ea0951062042b2ddb898c261fb07858aa02017e0690412ed98baba5b6a9206
#!/usr/bin/python import average_voting import user_model import item_model import graph_builder import reputation_instrumented import numpy as np N_USERS = 50 N_ITEMS = 50 N_REVIEWS = 6 BIAS_STDEV = 0.0 EVAL_STDEV = 0.4 FRACTION_BAD = 0.2 GAMMA_SHAPE = 2 N_ITERATIONS = 10 DO_PLOTS = False def eval_quality(values): ...
Python
analysis/crowdsource.py
lucadealfaro/vancouver
bsd-2-clause
1,628
58
codeparrot/github-code
dde2923599d489ad71e0ec9e2a5f0bba8da26d7308b788bf85a4ea53a791e1d9
package com.android.libcore.volley; import android.graphics.Bitmap; import android.support.v4.util.LruCache; import com.android.volley.toolbox.ImageLoader; /** * @author zzp(zhao_zepeng@hotmail.com) * @since 2015-10-20 */ public class VolleyLruCache extends LruCache<String, Bitmap> implements ImageLoader.ImageCac...
Java
libcore/src/main/java/com/android/libcore/volley/VolleyLruCache.java
zhaozepeng/Android_framework
bsd-2-clause
758
36
codeparrot/github-code
039258ed1138bca68376a6d45c3da1faa41f08a203631beb3974d07c5446a86d
/** * tinysmf: a midifile parsing library * Copyright (c) 2014 William Light. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * 1. Redistributions of source code must retain the above copy...
C
src/parse.c
wrl/tinysmf
bsd-2-clause
8,321
408
codeparrot/github-code
b9eb462477c85b1b2b37b67222db6d3c7200347397b16898ac94eb532811310f
#include <stdlib.h> #include <stdio.h> #include <string.h> #include <sys/socket.h> #include <arpa/inet.h> #include <unistd.h> #include <pthread.h> #include "request_handlers.h" #include "accepter.h" #include "common_utils/readwrite.h" static int thread_sockfd[65536]; void read_head_C(int threadfd, struct message_s *m...
C
server/accepter.c
BrianOn99/molamola-ftp
bsd-2-clause
3,100
110
codeparrot/github-code