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
ffbd063a3c953852f3f054fa5bb0427d96483ccb44f994ce43a9bafacf87709b
package com.gentics.mesh.changelog.changes; import static com.gentics.mesh.core.data.relationship.GraphRelationships.SCHEMA_CONTAINER_VERSION_KEY_PROPERTY; import com.gentics.mesh.changelog.AbstractChange; import com.tinkerpop.blueprints.Direction; /** * Changelog entry which removed the schema version edges with p...
Java
changelog-system/src/main/java/com/gentics/mesh/changelog/changes/ReplaceSchemaVersionEdges.java
gentics/mesh
apache-2.0
877
33
codeparrot/github-code
a1908378e7d1ade07c2aba413cf800e44d0fb26c5cb2fa9364a0a2cbe4250ead
// Copyright Dirk Lemstra https://github.com/dlemstra/Magick.NET. // Licensed under the Apache License, Version 2.0. using System; #if Q8 using QuantumType = System.Byte; #elif Q16 using QuantumType = System.UInt16; #elif Q16HDRI using QuantumType = System.Single; #else #error Not implemented! #endif namespace Imag...
C#
src/Magick.NET/Colors/ColorHSV.cs
dlemstra/Magick.NET
apache-2.0
5,865
174
codeparrot/github-code
6c9063ba9e62d5872fa2a41ca26aa42d2df099b10da7146941cc2e921f84c81f
package cc.mallet.util; /** * Static utility methods for Strings */ final public class Strings { public static int commonPrefixIndex (String[] strings) { int prefixLen = strings[0].length(); for (int i = 1; i < strings.length; i++) { if (strings[i].length() < prefixLen) prefixLen = strin...
Java
hrLDA/src/cc/mallet/util/Strings.java
UnsupervisedOntologyLearning/hrLDA
apache-2.0
1,930
92
codeparrot/github-code
ffa754e2142e516e6d7515646f2c3b425fcf14743ed28ea3f7765ed226cb4a4c
package org.museautomation.core.step; import org.jetbrains.annotations.*; import org.museautomation.core.*; import org.museautomation.core.context.*; import org.museautomation.core.step.descriptor.*; import org.museautomation.core.steptask.*; import org.museautomation.core.values.*; import org.museautomation.core.valu...
Java
core/src/main/java/org/museautomation/core/step/CallMacroStep.java
ChrisLMerrill/muse
apache-2.0
3,625
87
codeparrot/github-code
565f16ca009eb5b471f5a45af7d5e20a74006e394dbbc363b2ff474b5b37dbef
// 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.diff.impl.patch.formove; import com.intellij.openapi.application.ApplicationManager; import com.intellij.openapi.diff.impl.patch.FilePatch; import co...
Java
platform/vcs-impl/src/com/intellij/openapi/diff/impl/patch/formove/PathsVerifier.java
goodwinnk/intellij-community
apache-2.0
23,092
680
codeparrot/github-code
da202bbee5bb9755acf0e3c34b0027cae1da7cf2f3a77598897cb999b78614b0
package com.therabbitmage.android.beacon.network; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.net.URISyntaxException; import org.apache.http.Header; import org.apache.http.HttpEntity; import org.apache.http.HttpResponse; import org.apache.http.HttpStatus; i...
Java
src/com/therabbitmage/android/beacon/network/URLShortenerAPI.java
GregSaintJean/Beacon
apache-2.0
2,158
70
codeparrot/github-code
e9331f3b8f738abf5150ba37db9f5ee9aacb7b47c3553a6d07fab3f2efd865f6
/** * Copyright (c) 2015 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 appli...
Java
src/test/java/com/github/jmnarloch/spring/jaxrs/client/support/JaxRsClientProxyFactorySupportTest.java
jmnarloch/spring-jax-rs-client-proxy
apache-2.0
2,921
100
codeparrot/github-code
63635d7a1224209e841dd1c5c4c460e91ed5d7f8c97ae52753395e68b48945ce
/* Copyright (c) 2012 Marco Amadei. 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 writin...
Java
src/test/java/net/ucanaccess/test/PasswordTest.java
lmu-bioinformatics/ucanaccess
apache-2.0
1,516
55
codeparrot/github-code
58afd0886e25d887e4ee6f2c09386827522992efc3f676d7d2a091c466189e90
<?php /*! * @mainpage Configuration * * @section intro Introduction * * You can create file <b>application/config.php</b> for configuration. * * @section intro Configuration items * * @subsection encryptor Encrypt * For NpFactory::getEncryptor, $_CONFIG['encryptor'] * @param mode encrypt mode, support ae...
PHP
system/NpConfig.php
vietor/NextPHP
apache-2.0
3,541
109
codeparrot/github-code
d98f617a2240bcc5bc16a448a607ad1bdab92f95923c4d5f74398bdb9f281c8e
/* $Header: /cvs/maptools/cvsroot/libtiff/contrib/pds/tif_pdsdirread.c,v 1.2 2003/11/17 15:09:39 dron Exp $ */ /* * Copyright (c) 1988-1996 Sam Leffler * Copyright (c) 1991-1996 Silicon Graphics, Inc. * Copyright (c( 1996 USAF Phillips Laboratory * * Permission to use, copy, modify, distribute, and sell this soft...
C
src/extern/tiff-3.7.4/contrib/pds/tif_pdsdirread.c
OpenXIP/xip-libraries
apache-2.0
31,914
1,125
codeparrot/github-code
a9e3dd0be4928407b63e7746f63821ecff28698623347dd4904223349c99f04a
/* * Copyright 2017-2019 University of Hildesheim, Software Systems Engineering * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * ...
Java
src/net/ssehub/kernel_haven/code_model/CodeModelProvider.java
KernelHaven/KernelHaven
apache-2.0
3,998
116
codeparrot/github-code
bfca36d90159a4dbfe9ae11a488d13f13bc9fea4775e6dfeb7e55f1d79203dcd
package org.apache.hadoop.hive.kafka.camus; import org.apache.hadoop.io.LongWritable; import org.apache.hadoop.io.MapWritable; import org.apache.hadoop.io.Text; import org.apache.hadoop.io.UTF8; import org.apache.hadoop.io.Writable; import org.apache.hadoop.io.WritableComparable; import java.io.DataInput; import java...
Java
src/main/java/org/apache/hadoop/hive/kafka/camus/KafkaKey.java
HiveKa/HiveKa
apache-2.0
6,733
260
codeparrot/github-code
bf31c93d8148451859f806fc8429cc9f4a85b60e4c9d20414133b7cab862a2c2
/** * Copyright 2014 Google Inc. * Copyright 2014 Andreas Schildbach * * 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 req...
Java
core/src/main/java/com/google/bitcoin/wallet/DeterministicSeed.java
troggy/bitcoinj
apache-2.0
9,791
257
codeparrot/github-code
5fd8c1bd73a094f655cdf7adaf438139b0b810c27735437eedea141431640a6a
/* * Copyright (c) 2016-present, RxJava Contributors. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in * compliance with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable la...
Java
src/test/java/io/reactivex/rxjava3/internal/operators/flowable/FlowableMaterializeTest.java
ReactiveX/RxJava
apache-2.0
10,356
315
codeparrot/github-code
f39a278f263d4f5d4f7ae3c66ee3681e84efa2fd0093918754ae25951bebfa80
package net.unicon.cas.addons.serviceregistry; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.beans.BeansException; import org.springframework.beans.factory.config.BeanFactoryPostProcessor; import org.springframework.beans.factory.config.ConfigurableListableBeanFactory; import org....
Java
src/main/java/net/unicon/cas/addons/serviceregistry/RegisteredServicesReloadDisablingBeanFactoryPostProcessor.java
Unicon/cas-addons
apache-2.0
2,060
39
codeparrot/github-code
6bf6564c478c69b696744d9056f9b3498dfdfb689dced6faf360e3b0e8aaa22e
package dhg.util import scala.collection.generic.CanBuildFrom object Pattern { object UInt { val IntRE = """^(-?\d+)$""".r def unapply(v: String): Option[Int] = v match { case IntRE(s) => Some(s.toInt) case _ => None } } // implicit def int2unapplyInt(objA: Int.type) = UInt object U...
Scala
src/main/scala/dhg/util/Pattern.scala
dhgarrette/low-resource-pos-tagging-2013
apache-2.0
2,296
89
codeparrot/github-code
3cd79a97d853801b93d5bee8c1ebc1d9d4bbae2fe2a69f7a74e0f362ae010a1b
using ClassLibrary; using Pokemon_IMIE.Model; using Pokemon_IMIE.usercontrols; using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Runtime.InteropServices.WindowsRuntime; using Windows.Foundation; using Windows.Foundation.Collections; using Windows.UI.Xaml; using Windows.UI...
C#
app/Pokemon_IMIE/Pokemon_IMIE/usercontrols/PokemonStatus.xaml.cs
clementhouillere/Pokemon_IMIE
apache-2.0
1,105
45
codeparrot/github-code
21dcaa4b829666e70703bac58fde5a687efe2e4784fbb700d5309caa7cfe3610
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Day57-vlvibesSwitch</title> <script src="https://aframe.io/releases/0.2.0/aframe.min.js"></script> <script src="https://rawgit.com/ngokevin/aframe-text-component/master/dist/aframe-text-component.min.js"></script> <script src="https://code....
HTML
day57-vlVibesSwitch.html
VirtualLayout/360sites
apache-2.0
7,334
94
codeparrot/github-code
d02c532a87fa9deaf2d1f5bd55784fe5ba8a09709f55428e00c18fba6c7eba51
var angularjs = angular.module('articleDetailModule', ['courseTagServiceModule', 'ngCookies', 'ngVideo']); angularjs.controller('ArticleDetailController', ['$rootScope', '$scope', '$http', '$stateParams', '$state', '$location', 'CourseTagService', '$sce', '$cookies', '$httpParamSerializer', 'video', '$route', functi...
JavaScript
public/js/article_detail.js
c2611261/zaozao2
apache-2.0
8,793
300
codeparrot/github-code
89c7df8d4d7319b01d596290b872351e631873d1281f11f837968f68e8736384
import time from tsm.common.app import exception import requests import json from requests.packages.urllib3.util.retry import Retry from requests.adapters import HTTPAdapter KANGROUTER_WEBSERVICE_APPLICATION_ROOT="/kangrouter/srv/v1" class KangRouterClient: pathbase = "https://thesolvingmachine.com/kangrouter/srv...
Python
kangrouter.py
TheSolvingMachine/kangrouter-py
apache-2.0
3,278
98
codeparrot/github-code
8f2d408998ac609087582d26ab41ac47809a5c3402510bb28a6df5263705416b
/* Copyright 2008, 2009, 2010 by the Oxford University Computing Laboratory This file is part of HermiT. HermiT is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the...
Java
project/src/org/semanticweb/HermiT/datatypes/owlreal/NumberRange.java
CPoirot3/OWL-Reasoner
apache-2.0
1,986
54
codeparrot/github-code
73d9765f600c5474fb0a4595e557bfa1d2096288fa02708ae8b732518db914cb
/* * 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-lookoutequipment/src/main/java/com/amazonaws/services/lookoutequipment/model/transform/CreateDatasetResultJsonUnmarshaller.java
aws/aws-sdk-java
apache-2.0
3,307
83
codeparrot/github-code
979606cefa2d19821e77bd27d33f6e0398ecbf09a43269b364f96ab6ec21b189
/* * Copyright (C) 2013 @JamesMontemagno http://www.montemagno.com http://www.refractored.com * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2...
C#
MyCompany.Visitors.Client.Droid/Extensions/RobotoTextView.cs
xamarin/MyCompany
apache-2.0
7,655
198
codeparrot/github-code
37f160348053b97d60006df7f5b60f8e820caeee14a8760212813e4720569a18
/* * Copyright 2019 Stephane Nicolas * Copyright 2019 Daniel Molinero Reguera * * 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
toothpick-runtime/src/test/java/toothpick/getInstance/CycleCheckTest.java
stephanenicolas/toothpick
apache-2.0
3,214
113
codeparrot/github-code
d4afa6e3f1b011c25d0ba2abfbb4bbf7aae1f96b63ca0c300264a2e5d7c13cd9
package io.taric.domains import concurrent.Future import io.taric.services.FlatFileRecord /** * File created: 2013-01-13 18:46 * * Copyright Solvies AB 2013 * For licensing information see LICENSE file */ object LocatingTaricFiles { private[this] def fNum( f: String ): Int = f.take( 4 ).toInt def latestFil...
Scala
taric-import/src/main/scala/io/taric/domains/LocatingTaricFiles.scala
magnusart/taric.io
apache-2.0
1,170
39
codeparrot/github-code
6f01e7b138fef75839abb651ba9e7000c7e390cd0894ea12b20feaa52cefb44e
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you ...
Java
src/main/java/com/intel/ssg/dcst/panthera/parse/sql/transformer/fb/AndFilterBlock.java
adrian-wang/project-panthera-skin
apache-2.0
8,205
190
codeparrot/github-code
34bbbf96740c9651dddae8a8bcc366900016e36877955547e428fb20dc3a0daf
package io.swagger.client.api; import com.sun.jersey.api.client.GenericType; import io.swagger.client.ApiException; import io.swagger.client.ApiClient; import io.swagger.client.Configuration; import io.swagger.client.Pair; import io.swagger.client.model.CodeSnippet; import io.swagger.client.model.CodeSnippetList; i...
Java
sdk/java/src/main/java/io/swagger/client/api/DefaultApi.java
jsodini/CodeSnip
apache-2.0
8,599
262
codeparrot/github-code
27ad18c584eed4a699f34dcb1c5f8381fe0d5092fe7b99e314552259c33564e1
// Copyright 2016-2022 The Libsacloud 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...
GO
v2/helper/service/icon/update_request.go
sacloud/libsacloud
apache-2.0
1,414
45
codeparrot/github-code
e0e453e012c45bfd8a04e3ad886c079b788e4d6275ae6dbae1e91dc97fb1b437
package org.test; import org.test.act.MainGame; import loon.LSetting; import loon.LSystem; import loon.LazyLoading; import loon.Screen; import loon.javase.Loon; public class JavaSEMain { public static void main(String[]args){ LSetting setting = new LSetting(); setting.isFPS = true; setting.isLogo = false; ...
Java
Java/Examples/cannonblast(0.5)/src/org/test/JavaSEMain.java
cping/LGame
apache-2.0
692
38
codeparrot/github-code
64f2cbc1c8bd83cc02cf166a8714eae472b390114c5051efbf32dd8f98ac8a06
// Diamond-in-the-Rough // Code Wars program written in JavaScript for the RingoJS environment // // The MIT License (MIT) // // Copyright (c) 2015 Lee Jenkins // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software...
JavaScript
HP Code Wars Documents/2015/Solutions/prob11_DiamondInTheRough-lee.js
p473lr/i-urge-mafia-gear
apache-2.0
3,164
85
codeparrot/github-code
009e95ad9e9cf6e2ae559ddeb5ffd1d9089b17c0776bd9f3701738cd64408128
package apple.uikit; import java.io.*; import java.nio.*; import java.util.*; import com.google.j2objc.annotations.*; import com.google.j2objc.runtime.*; import com.google.j2objc.runtime.block.*; import apple.audiotoolbox.*; import apple.corefoundation.*; import apple.coregraphics.*; import apple.coreservices.*; impo...
Java
runtime/src/main/java/apple/uikit/UIMenuControllerArrowDirection.java
Sellegit/j2objc
apache-2.0
1,076
39
codeparrot/github-code
787895c2dc40856f3fcc091e146414da728aba2c48f5ac8f2851297c2c9deb64
/** * 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-common-project/hadoop-common/src/test/java/org/apache/hadoop/io/erasurecode/coder/TestErasureCoderBase.java
anjuncc/hadoop
apache-2.0
9,576
298
codeparrot/github-code
91760f2f1c2f28e58727256adabfe9d28af590a0eb2bdf8894c8325fac336b75
/* * Copyright (c) 2010-2017 Evolveum * * 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
model/model-intest/src/test/java/com/evolveum/midpoint/model/intest/rbac/TestRbacDeprecated.java
Pardus-Engerek/engerek
apache-2.0
1,603
50
codeparrot/github-code
c89fbfaf0c8626a9a7dcc5510c8ded2c51e8949c64c68faaecd4eb28674e2791
/* * Copyright 2017-present Facebook, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); you may * not use this file except in compliance with the License. You may obtain * a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or...
Java
src/com/facebook/buck/skylark/io/impl/SimpleGlobber.java
shybovycha/buck
apache-2.0
3,622
93
codeparrot/github-code
f7dfdd6ed21ca1344576ea969bfb381d8400fb1c800c7ec4f27f9c7951b25cd3
package android_testsuite; import android.app.Activity; import android.content.Intent; import android.os.Bundle; import android.view.View; import android.widget.Button; import android_testsuite.mytest.application_search.AppSearchActivity; import android_testsuite.mytest.application_search.UidActivity; import android_...
Java
business/android_testsuite/android_testsuite/android_testsuite/src/main/java/android_testsuite/GuideActivity.java
renhui/android_career
apache-2.0
5,130
138
codeparrot/github-code
96ee051aa0089201a3da2d60434dc02201bf32d9b0f19918ce0d8304f17d4dfa
using System; using Microsoft.SPOT; namespace WeatherStation.WebServer { /// <summary> /// Base class for HTTP object (request/response) /// </summary> public class HttpBase { #region Constants ... // const string separator protected const char CR = '\r'; protected ...
C#
WeatherStation/WebServer/HttpBase.cs
ppatierno/mfweatherstation
apache-2.0
1,574
57
codeparrot/github-code
7bcabfa2271b9061c1c14d24f25def179229147d326e79e6287d8576fc3ad751
// 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
api/src/org/apache/cloudstack/api/command/user/loadbalancer/UploadSslCertCmd.java
jcshen007/cloudstack
apache-2.0
5,159
137
codeparrot/github-code
57a559175216bbfaeb79c27dd76fec775e2240dd4db46368db40e869bcdb53e7
package info.cyanac.plugin.bukkit; import java.util.ArrayList; import java.util.List; import org.bukkit.command.Command; import org.bukkit.command.CommandSender; import org.bukkit.command.TabCompleter; public class CyanACTabCompleter implements TabCompleter { @Override public List<String> onTabComplete(CommandSen...
Java
src/info/cyanac/plugin/bukkit/CyanACTabCompleter.java
Moritz30-Projects/CyanAC-Plugin
apache-2.0
675
34
codeparrot/github-code
7eff2164fe9a2d2ce0887e40cdeb67ac0fdd46f34a12b09eec873ea8e0928e87
<?php /** * This file is part of the SevenShores/NetSuite library * AND originally from the NetSuite PHP Toolkit. * * New content: * @package ryanwinchester/netsuite-php * @copyright Copyright (c) Ryan Winchester * @license http://www.apache.org/licenses/LICENSE-2.0 Apache-2.0 * @link https://githu...
PHP
src/Classes/FolderFolderType.php
RyanWinchester/netsuite-php
apache-2.0
1,641
43
codeparrot/github-code
c336c789bd8c2108d2a2ae6c15d5dd5a0faa091daca16eab67ca63e186a4f3cd
/* * Copyright (c) 2011, WSO2 Inc. (http://www.wso2.org) 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 * * Un...
Java
plugins/org.wso2.developerstudio.eclipse.artifact.proxyservice/src/org/wso2/developerstudio/eclipse/artifact/proxyservice/validators/ProxyServiceProjectFieldController.java
prabushi/devstudio-tooling-esb
apache-2.0
8,585
186
codeparrot/github-code
4560ff2a556e4ccebadb346a7e498851941167b955bff873fd3d86417cb9bdb5
/* * Copyright (C) 2008 ZXing authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable l...
Java
libzxing/src/main/java/com/xys/libzxing/zxing/activity/CaptureActivity.java
WindFromFarEast/SmartButler
apache-2.0
10,472
305
codeparrot/github-code
3595b14a5da45c8126d1e8ae4544026a954c49f70f11e82b65a3dc6d1b1f838d
/** \file parse_options.cpp \author michael.zohner@ec-spride.de \copyright ABY - A Framework for Efficient Mixed-protocol Secure Two-party Computation Copyright (C) 2015 Engineering Cryptographic Protocols Group, TU Darmstadt This program is free software: you can redistribute it and/or modify it under t...
C++
aby/src/abycore/util/parse_options.cpp
huxh10/iSDX
apache-2.0
4,288
133
codeparrot/github-code
8c4255e35f42716bf88ac3170c76651145e2c70d4b65c0b2b4d8c9da881e06ba
/** * Copyright (c) 2005-2012 https://github.com/zhangkaitao Licensed under the Apache License, Version 2.0 (the * "License"); */ package com.yang.spinach.common.utils.spring; import java.util.ArrayList; import java.util.Collection; import java.util.Collections; import java.util.HashSet; import java.util.List; impo...
Java
spinach/spinach-web/src/main/java/com/yang/spinach/common/utils/spring/SpringCacheManagerWrapper.java
yangb0/spinach
apache-2.0
3,351
126
codeparrot/github-code
bc472e72f189619982a3cb86a1d1937942722d8dea2034722618d1023a8c0078
package org.javacore.io.zip; import java.io.BufferedInputStream; import java.io.BufferedOutputStream; import java.io.BufferedReader; import java.io.File; import java.io.FileInputStream; import java.io.FileNotFoundException; import java.io.FileOutputStream; import java.io.FileReader; import java.io.IOException; import ...
Java
src/main/java/org/javacore/io/zip/ZipCompress.java
tzpBingo/java-example
apache-2.0
3,987
121
codeparrot/github-code
88e2df5abd6060e1384154d6017ba32ec376fcc48281770eef370d37a10a30f6
package Zoe::Runtime::Database; use Mojo::Base 'Zoe::Runtime'; sub new { my $class = shift; my %arg = @_; my $self = { type => undef, #database type (mysql | sqlite| perl DBD driver name]) dbfile => undef, #path to database # required if type is ...
Perl
lib/Zoe/Runtime/Database.pm
chubbz327/Zoe
apache-2.0
2,612
104
codeparrot/github-code
a569133c49dbc9cb4279d94cc48af469dd8ed9b17eae2d246ffc618e644e6b3b
/** * * Copyright 2014-2017 Florian Schmaus * * 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 ...
Java
java-pinning-core/src/main/java/eu/geekplace/javapinning/pin/Pin.java
Flowdalic/java-pinning
apache-2.0
3,689
119
codeparrot/github-code
e7753f607896fdeb4f630af9b2edf7246270482ae54d43e8bddbdcd25839deae
<?php namespace Elastica\Filter; use Elastica\Exception\InvalidException; /** * Geo distance filter * * @category Xodoa * @package Elastica * @author Nicolas Ruflin <spam@ruflin.com> * @link http://www.elasticsearch.org/guide/reference/query-dsl/geo-distance-filter.html */ abstract class Abstrac...
PHP
lib/Elastica/Filter/AbstractGeoDistance.php
ramanna/elastica
apache-2.0
5,209
191
codeparrot/github-code
09f45f45d356cf3100c9212f89ffd95fb01cdad31bc6ab3f02adfd7b819e4bd6
/** * Copyright (C) 2015 Red Hat, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or...
Java
kubernetes-client/src/main/java/io/fabric8/kubernetes/client/dsl/internal/WatchHTTPManager.java
fabric8io/kubernetes-client
apache-2.0
4,143
108
codeparrot/github-code
b45cbc150dfc918800bccde345877c8754f4378f6930e7c29a4615108c275142
/** * Copyright 2019, Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to ...
JavaScript
firebase/functions/device-cloud/register-device.js
GoogleCloudPlatform/iot-smart-home-cloud
apache-2.0
4,394
137
codeparrot/github-code
b067917473df1e3d79769a8a4b93db4f7ac4374f2afc98c01082445a7199abf7
/* * Licensed to Metamarkets Group Inc. (Metamarkets) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. Metamarkets licenses this file * to you under the Apache License, Version 2.0 (the * "License"); yo...
Java
processing/src/main/java/io/druid/query/extraction/MatchingDimExtractionFn.java
pdeva/druid
apache-2.0
2,777
116
codeparrot/github-code
43b6daddd2b7a82f5cbe65fa29cd9494856a996aae9ee98de304f13a2db38bd6
/* * Copyright 2009-2020 Aarhus University * * 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/dk/brics/tajs/analysis/dom/event/EventException.java
cs-au-dk/TAJS
apache-2.0
2,982
78
codeparrot/github-code
ffee7dc01bcb407708a324bdb715ff41349515d799045beb365c693a0995d571
using Aggregator.Core.Monitoring; namespace Aggregator.Core.Configuration { using System; using System.Collections.Generic; using System.Linq; using System.Reflection; using System.Xml; using System.Xml.Linq; using System.Xml.Schema; #pragma warning disable S101 // Types should be named i...
C#
Aggregator.Core/Aggregator.Core/Configuration/TFSAggregatorSettings.cs
tfsaggregator/tfsaggregator
apache-2.0
3,071
84
codeparrot/github-code
53748a247a6974f9808bd70ea94af21c530bc073dd4f4b01842431981e25daa1
/** * Copyright [2009-2010] [dennis zhuang(killme2008@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/licenses/LICENSE-2.0 Unless required by * applicable la...
Java
src/main/java/net/rubyeye/xmemcached/command/text/TextGetOneCommand.java
killme2008/xmemcached
apache-2.0
2,662
68
codeparrot/github-code
9e93e6779609e6eeb5a45356cb412d0eaf2338e4beb8d48d0dec8626061dd8da
// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. See License.txt in the project root for license information. using System.Reflection; namespace System.Web.OData.Builder { /// <summary> /// Represents the configuration for a complex property of a structural type (an entity type or a co...
C#
OData/src/System.Web.OData/OData/Builder/ComplexPropertyConfiguration.cs
Terminator-Aaron/Katana
apache-2.0
1,870
55
codeparrot/github-code
d87c77ece71934d37a634e08519b33acedac35b1167a39b8a12f43128792997e
using System.Collections.Generic; using System.Windows.Forms; using System.Xml; using System.Xml.XPath; namespace PlaylistEditor { class HTMLHandler { public static string XPathHTML(HtmlElement elem) { string elemXPath = ""; string children = ""; List<string...
C#
PlaylistEditor/Objects/HTMLHandler.cs
jeborgesm/PlaylistEditor
apache-2.0
9,232
238
codeparrot/github-code
2a6413afb1e866579f3ea9666f2fd0543e8c4fa061bf144d4db9e9b4f42605d8
/* * Copyright 2003-2019 Dave Griffith, Bas Leijdekkers * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicab...
Java
plugins/InspectionGadgets/InspectionGadgetsAnalysis/src/com/siyeh/ig/javadoc/MissingDeprecatedAnnotationInspection.java
leafclick/intellij-community
apache-2.0
8,667
243
codeparrot/github-code
87219c8e34d3dca4cb972416664ba0bbf95d0c8239917ce781db0cab4dd1358f
#!/usr/bin/env ruby # Encoding: utf-8 # # Author:: api.davidtorres@gmail.com (David Torres) # # Copyright:: Copyright 2013, Google Inc. All Rights Reserved. # # License:: Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # ...
Ruby
dfp_api/examples/v201405/contact_service/get_uninvited_contacts.rb
pngarland/google-api-ads-ruby
apache-2.0
2,965
103
codeparrot/github-code
f7907264b643a14beb46cfd9651c5b6948868e9c687c9cff69fe8f1fd58a73de
var assert = require("assert"), expect = require('expect.js'), cda = require("../utils/xml.js").cda, DOMParser = require('xmldom').DOMParser, XmlSerializer = require('xmldom').XMLSerializer, xmlUtils = require("../utils/xml.js").xml, FunctionalStatusSectionCreator = require("../Model/Functional...
JavaScript
test/functionalStatus.js
lantanagroup/SEE-Tool
apache-2.0
2,522
53
codeparrot/github-code
13546235200f79f560fd95f15f21f7968ceadb4bac7777e25e6fe88dda62e3d3
package com.glaf.base.modules.sys.model; import java.io.Serializable; import java.util.Date; public class Dictory implements Serializable { private static final long serialVersionUID = 2756737871937885934L; private long id; private long typeId; private String code; private String name; private int sort; privat...
Java
glaf-base/src/main/java/com/glaf/base/modules/sys/model/Dictory.java
jior/glaf-gac
apache-2.0
1,856
127
codeparrot/github-code
eff4eca252fc01036b90d55175dd973bbe72a43cdb629c8da2ebcdac7942cc98
# Copyright 2018 Red Hat, 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 writing, ...
Python
rally_ovs/plugins/ovs/ovnclients.py
openvswitch/ovn-scale-test
apache-2.0
5,955
161
codeparrot/github-code
81bc97ed5fafef6e9dd9e89edf1328a5c977a5c57b1ef0c454650229b2aa0498
<?php namespace OpenOrchestra\ModelBundle\Repository; use OpenOrchestra\ModelInterface\Repository\RedirectionRepositoryInterface; use OpenOrchestra\Repository\AbstractAggregateRepository; use OpenOrchestra\Pagination\Configuration\PaginateFinderConfiguration; use Solution\MongoAggregation\Pipeline\Stage; /** * Clas...
PHP
ModelBundle/Repository/RedirectionRepository.php
open-orchestra/open-orchestra-model-bundle
apache-2.0
4,860
174
codeparrot/github-code
5d35d166569854bca2bd54e78f078921a46b54af23efeeab2274c1e75f7dcbc8
'use strict'; goog.provide('Blockly.JavaScript.serial'); goog.require('Blockly.JavaScript'); Blockly.JavaScript.serial_print = function() { var content = Blockly.JavaScript.valueToCode(this, 'CONTENT', Blockly.JavaScript.ORDER_ATOMIC) || '\"\"' var code = 'serial.writeString(\'\' + '+content+');\n'; return code...
JavaScript
mixly_arduino/blockly/generators/microbit_js/serial.js
xbed/Mixly_Arduino
apache-2.0
2,128
55
codeparrot/github-code
b25cbf87c272710d988db06f8f3d3b346271510436656ec01044e3854306ec60
// 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.test; import static com.google.common.truth.Truth...
Java
src/org/sosy_lab/java_smt/test/FormulaManagerTest.java
sosy-lab/java-smt
apache-2.0
14,364
345
codeparrot/github-code
f7a1abeb706f8b14e6bde823e916b4202c7f4b0eb7dae0a9183bbfab1ade8c51
package it.unibz.inf.ontop.renderer; /* * #%L * ontop-obdalib-core * %% * Copyright (C) 2009 - 2014 Free University of Bozen-Bolzano * %% * 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 a...
Java
obdalib-core/src/main/java/it/unibz/inf/ontop/renderer/TargetQueryRenderer.java
srapisarda/ontop
apache-2.0
9,391
277
codeparrot/github-code
907fe64b456969b54bf98c66c112bfe6bbec6aacab01e150f19df5da52f54715
#define SQLITE_ASCII #define SQLITE_DISABLE_LFS #define SQLITE_ENABLE_OVERSIZE_CELL_CHECK #define SQLITE_MUTEX_OMIT #define SQLITE_OMIT_AUTHORIZATION #define SQLITE_OMIT_DEPRECATED #define SQLITE_OMIT_GET_TABLE #define SQLITE_OMIT_INCRBLOB #define SQLITE_OMIT_LOOKASIDE #define SQLITE_OMIT_SHARED_CACHE #define SQLITE_OM...
C#
Client/Assets/Scripts/Air2000/Utility/Sqlite/Sqlite3/source/src/attach_c.cs
hsu1994/Terminator
apache-2.0
19,135
688
codeparrot/github-code
dcd6e36403f386942685207cf4ede3e19e54b31c93cbd36c869547f1a17ed2ef
/*! * UI development toolkit for HTML5 (OpenUI5) * (c) Copyright 2009-2016 SAP SE or an SAP affiliate company. * Licensed under the Apache License, Version 2.0 - see LICENSE.txt. */ // Provides control sap.m.MessagePopover. sap.ui.define(["jquery.sap.global", "./ResponsivePopover", "./Button", "./Toolbar", "./Tool...
JavaScript
Resources/public/sap/m/MessagePopover-dbg.js
pro100den/openui5-bundle
apache-2.0
37,700
1,221
codeparrot/github-code
5562c5a6b4ac46e00fc034eb9ffbed3eb7c20d11bfe05f157358a333cebd0787
package com.ftfl.icare; import java.util.List; import com.ftfl.icare.adapter.CustomAppointmentAdapter; import com.ftfl.icare.adapter.CustomDoctorAdapter; import com.ftfl.icare.helper.AppointmentDataSource; import com.ftfl.icare.helper.DoctorProfileDataSource; import com.ftfl.icare.model.Appointment; import com.ftfl.i...
Java
ICare/src/com/ftfl/icare/FragmentAppointmentList.java
FTFL02-ANDROID/julkarnine
apache-2.0
3,803
131
codeparrot/github-code
f0091d3188ee5cdad84288d2307ccc694e662ee97ccb80ae56b1a575ca0a78d5
# -*- coding: utf-8 -*- import allure from selenium.webdriver.common.by import By from .base import BasePage from .elements import SimpleInput, SimpleText from .blocks.nav import NavBlock class BrowseMoviePageLocators(object): """Локаторы страницы просмотра информации о фильме""" TITLE_LOCATOR = (By.CSS_SE...
Python
php4dvd/pages/movie.py
adv-tsk/Course-Se-Python
apache-2.0
4,675
129
codeparrot/github-code
e4a1b0a8ce97f24ba22b5a5ef400b911b9b8c5950f38acf7eec3a220bdbe3e39
package app.yweather.com.yweather.util; import android.annotation.TargetApi; import android.content.Context; import android.content.SharedPreferences; import android.os.Build; import android.preference.PreferenceManager; import org.json.JSONArray; import org.json.JSONObject; import java.text.SimpleDateFormat; import...
Java
app/src/main/java/app/yweather/com/yweather/util/Utility.java
llxyhuang/YWeather
apache-2.0
2,669
67
codeparrot/github-code
848ffbb3a95889e2af44ecc13bb329f56028c1156d0483fc1c9eb81df12d659f
package pl.touk.nussknacker.engine.flink.util.timestamp import com.github.ghik.silencer.silent import org.apache.flink.streaming.api.functions.AssignerWithPeriodicWatermarks import org.apache.flink.streaming.api.watermark.Watermark import scala.annotation.nowarn /** * It is a copy-paste of BoundedOutOfOrdernessTim...
Scala
engine/flink/components-utils/src/main/scala/pl/touk/nussknacker/engine/flink/util/timestamp/BoundedOutOfOrderPreviousElementAssigner.scala
TouK/nussknacker
apache-2.0
1,340
37
codeparrot/github-code
c4755a998e319cf48874f15aaaddcc5c84c431c107ab0d79923b85e37e1c159a
/* * Copyright (C) 2017 grandcentrix GmbH * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agree...
Java
thirtyinch/src/main/java/net/grandcentrix/thirtyinch/TiActivity.java
grandcentrix/ThirtyInch
apache-2.0
7,692
236
codeparrot/github-code
2a42a4680a51136ff1181718ffa6ea0738b29904d9f430356613b0aaf77ed9f7
/*jslint browser: true*/ /*global $, jQuery, alert*/ (function ($) { "use strict"; $(document).ready(function () { $("input[name=dob]").datepicker({ dateFormat: 'yy-mm-dd', inline: true, showOtherMonths: true }); }); $(document).ready(functi...
JavaScript
js/logIn.js
manoj2509/Sensa
apache-2.0
1,018
32
codeparrot/github-code
fbfa51c394f3d9770957823413e427cea696ddbd4540b23d10f9a61e696f2816
""" Copyright 2015-2018 IBM 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 di...
Python
kafka-python-console-sample/producertask.py
ibm-messaging/message-hub-samples
apache-2.0
1,943
59
codeparrot/github-code
d040bc219ee62c855b106d62939b2b6d7d1a1a2632ca51af3232d0e5daa745e3
/* * Copyright 2012 International Business Machines Corp. * * See the NOTICE file distributed with this work for additional information * regarding copyright ownership. Licensed under the Apache License, * Version 2.0 (the "License"); you may not use this file except in compliance * with the License. You ...
Java
JSR352.JobXML.Model/src/main/java/com/ibm/jbatch/jsl/util/JSLValidationEventHandler.java
papegaaij/jsr-352
apache-2.0
2,107
51
codeparrot/github-code
800559f9482e3df72e5562544a43b85e3679cfc4cf900f78abab3bf150ba6504
package com.iclockwork.percy.wechat4j; import org.testng.annotations.AfterMethod; import org.testng.annotations.BeforeMethod; import org.testng.annotations.Test; /** * HelloWorldTest * * @author: fengwang * @date: 2016/3/9 13:40 * @version: 1.0 * @since: JDK 1.7 */ public class HelloWorldTest { /** * ...
Java
wechat4j/src/test/java/com/iclockwork/percy/wechat4j/HelloWorldTest.java
iclockwork/percy
apache-2.0
646
36
codeparrot/github-code
f7efffffa412cb2118b89401ba26b978b2058dba06e05ba67e07f478d5e795ad
/* Copyright 2017 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, ...
GO
prow/plugins/buildifier/buildifier.go
kargakis/test-infra
apache-2.0
6,914
234
codeparrot/github-code
da6d51b564fba1f1423451cac8a5b8ed530a1c1ff84114fcc3f4554f6918b8ea
#!/bin/bash # Copyright 2016 Nitor Creations Oy # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ag...
Shell
n_utils/includes/deploy-serverless.sh
NitorCreations/nitor-deploy-tools
apache-2.0
3,341
110
codeparrot/github-code
9957eb884a8581c97e5003a27e2645bd3b3c6617cf982ecaf8782c02720f73f7
package com.scicrop.se.commons.utils; import java.io.IOException; import org.apache.commons.logging.Log; import org.apache.log4j.ConsoleAppender; import org.apache.log4j.Level; import org.apache.log4j.Logger; import org.apache.log4j.PatternLayout; import org.apache.log4j.RollingFileAppender; public class LogHelper...
Java
source-code/sentinel-extractor-commons/src/com/scicrop/se/commons/utils/LogHelper.java
Scicrop/sentinel-extractor
apache-2.0
1,743
96
codeparrot/github-code
b5b979cb48cb95dea09795ce0fdac904530c87479ba2628c6a43b09779beef3e
// Copyright 2015 Thomas Trapp // // 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
htmlext/htmlext/File.h
thomastrapp/hext
apache-2.0
1,104
43
codeparrot/github-code
59c4f402ecaf67d479c96fb9bb87a287f27cd935e700f93b307805c9723ad83c
# -*- coding: utf-8 -*- ''' The Salt Key backend API and interface used by the CLI. The Key class can be used to manage salt keys directly without interfacing with the CLI. ''' # Import python libs from __future__ import absolute_import, print_function import os import copy import json import stat import shutil import...
Python
salt/salt/key.py
smallyear/linuxLearn
apache-2.0
48,988
1,416
codeparrot/github-code
51003e2fffb53afe86442c002dadeccad04b0d2334d71c64fba329030e3625d1
/* jshint node: true */ module.exports = function(environment) { var ENV = { modulePrefix: 'chapter4-components', environment: environment, baseURL: '/', locationType: 'auto', EmberENV: { FEATURES: { // Here you can enable experimental features on an ember canary build // e....
JavaScript
chapter4_components/config/environment.js
ubuntuvim/my_emberjs_code
apache-2.0
1,376
57
codeparrot/github-code
da0c561bb7b5afef3a07363958417840ab12c7a742dea843117e7ab3357472f3
require_relative '../lib/rails_stub' require_relative 'lib/pb_core_ingester' require_relative '../lib/has_logger' require 'rake' require_relative '../app/models/collection' require_relative '../app/models/exhibit' class Exception def short message + "\n" + backtrace[0..2].join("\n") end end class ParamsError...
Ruby
scripts/ingest.rb
WGBH/openvault3
apache-2.0
5,618
190
codeparrot/github-code
da1f8f0a3269c8177d9961102ebe2587ff8eb777f2aaec661b1b1f03605d04db
// ==UserScript== // @name tabtweet // @namespace http://chiptheglasses.com // @description add a classic RT button to tweets // @include http://*twitter.com* // ==/UserScript== // contains jQuery 1.4.1; It is patched. /*! * jQuery JavaScript Library v1.4.1 * http://jquery.com/ * * Copyright 2010, John Resig * D...
JavaScript
grease/tabtweet.user.js
nathanielksmith/classicrt
artistic-2.0
71,744
180
codeparrot/github-code
385c80987cd66ee556327ba2f99b2d6193593271a43273ccebbf8d5eca021c0b
// (c) Jean Fabre, 2011-2013 All rights reserved. // http://www.fabrejean.net // contact: http://www.fabrejean.net/contact.htm // // Version Alpha 0.92 // INSTRUCTIONS // Drop a PlayMakerArrayList script onto a GameObject, and define a unique name for reference if several PlayMakerArrayList coexists on that GameObjec...
C#
Assets/PlayMaker ArrayMaker/Actions/ArrayList/ArrayListSet.cs
maxbottega/wheelie
artistic-2.0
2,041
80
codeparrot/github-code
c679c6fa7b43d412bf21e6ba784a9119f7d01a14ddddb8697b2f3d5a1c07e043
<!doctype html> <html> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="chrome=1"> <title>De Mulierum Subtili Deceptione</title> </head> <body> <!--XXVII De Mulierum Subtili Deceptione--> <h4>The Subtle Deciption of a Woman</h4> <p> <!-- Darius regnavit prudens valde, qui ...
HTML
medlat/028-mulierum-deceptione.html
alijc/Latin
artistic-2.0
16,268
351
codeparrot/github-code
e7f3cbd1f06942f706b36a4d227c3c3755d6c04b4f831f46eadba24daf63d741
// Convert DMD CodeView debug information to PDB files // Copyright (c) 2009-2010 by Rainer Schuetze, All Rights Reserved // // License for redistribution is given by the Artistic License 2.0 // see file LICENSE for further details #include "mspdb.h" #include <windows.h> #pragma comment(lib, "rpcrt4.lib") ...
C++
src/mspdb.cpp
MartinNowak/cv2pdb
artistic-2.0
2,441
109
codeparrot/github-code
d1b6ddefc470a123cffbb5dab6dbf4bc1889ae5bd78a70609f9fc84d6e0dcc7f
public class Lab4_2 { public static void main(String[] arg) { System.out.print(" * |"); for(int x=1;x<=12;x++) { if (x<10) System.out.print(' '); if (x<100) System.out.print(' '); System.out.print(x+" "); } System.out.println(); for(int x=1;x<=21;x++) { if (x<10) System....
Java
Java/normal code/Java I/Lab4/Lab4_2.java
Seven-and-Nine/example-code-for-nine
artistic-2.0
1,401
56
codeparrot/github-code
d24e6ac1b013cac6743b4f45e821bba091a2ba1ef5eb7ba548b6be915f7c3e15
var HLSP = { /* set squareness to 0 for a flat land */ // intensità colore land audioreattivab più bassa mizu: { cameraPositionY: 10, seaLevel: 0, displayText: '<b>CHAPTER ONE, MIZU</b><br/><i>TO BE TRAPPED INTO THE MORNING UNDERTOW</i>', speed: 10, modelsParams...
JavaScript
src/sceneParams_0.js
stmaccarelli/HYPERLAND
artistic-2.0
9,143
348
codeparrot/github-code
bcc1658fa0f6150c78072a07accc9c8a59792b01b8c21a9c3cdf02897d2b7c43
/******************************************************************************* * Copyright 2011, 2012 Chris Banes. * * 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
library-lis/src/main/java/uk/co/senab/photoview/PhotoView.java
cocolove2/LISDemo
artistic-2.0
6,686
261
codeparrot/github-code
3ed0632d79d0d7f42c13ea86d0840203ca6a0d888b5b61f79f32b48b3eb82cd5
package Mojolicious::Plugins; use Mojo::Base 'Mojo::EventEmitter'; use Mojo::Util 'camelize'; has namespaces => sub { ['Mojolicious::Plugin'] }; sub emit_hook { my $self = shift; for my $cb (@{$self->subscribers(shift)}) { $cb->(@_) } return $self; } sub emit_chain { my ($self, $name, @args) = @_; my $wr...
Perl
lib/Mojolicious/Plugins.pm
gitpan/Mojolicious
artistic-2.0
4,829
198
codeparrot/github-code
53e24796bec0293199de5f7307121eede405b5bade9e86737be354321cd6759a
class Imagemagick < Formula desc "Tools and libraries to manipulate images in many formats" homepage "https://www.imagemagick.org/" # Please always keep the Homebrew mirror as the primary URL as the # ImageMagick site removes tarballs regularly which means we get issues # unnecessarily and older versions of t...
Ruby
Formula/imagemagick.rb
bfontaine/homebrew-core
bsd-2-clause
4,820
137
codeparrot/github-code
052ab9920c213a1bf824d1c8330531557cdc88043ca352d3db7906a4f88b9c18
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.IO; using System.Reflection; using CSScriptLibrary; using System.Windows.Controls; using Mono.CSharp; namespace RobinhoodDesktop.Script { /// <summary> /// Specifies...
C#
RobinhoodDesktop/RobinhoodDesktop/Script/StockSession.cs
Terohnon/RobinhoodDesktop
bsd-2-clause
12,084
300
codeparrot/github-code
4950ca09a222d8e0beef2f23289a698e344abfa35a9abbe95e086ffb2c0b8e80
/* +------------------------------------------------------------------------+ | Phalcon Framework | +------------------------------------------------------------------------+ | Copyright (c) 2011-2014 Phalcon Team (http://www.phalconphp.com) | +-----...
C++
ext/mvc/view/engine.cpp
unisys12/phalcon-hhvm
bsd-2-clause
4,384
132
codeparrot/github-code
24707d3e8d3d1b796bbf7cc8876a7af316da28fe90fa1c4266081a2c66e695a8
""" recursely """ __version__ = "0.1" __description__ = "Recursive importer for Python submodules" __author__ = "Karol Kuczmarski" __license__ = "Simplified BSD" import sys from recursely._compat import IS_PY3 from recursely.importer import RecursiveImporter from recursely.utils import SentinelList __all__ = ['ins...
Python
recursely/__init__.py
Xion/recursely
bsd-2-clause
1,663
53
codeparrot/github-code
9cc6fb367dbb637e1d39d35e3d5ff3451ddbdabf6d16663c42faa100dbe35b1d
// This file was procedurally generated from the following sources: // - src/dstr-binding/obj-ptrn-id-init-unresolvable.case // - src/dstr-binding/error/for-of-let.template /*--- description: Destructuring initializer is an unresolvable reference (for-of statement) esid: sec-for-in-and-for-of-statements-runtime-semanti...
JavaScript
Jint.Tests.Test262/test/language/statements/for-of/dstr-let-obj-ptrn-id-init-unresolvable.js
sebastienros/jint
bsd-2-clause
1,939
62
codeparrot/github-code
871608555cd64ae64df3b619dfcdd1301d87aa1f579edba7e7b72ad99d92943b
import {Component, OnInit} from '@angular/core'; import {MarketCard} from '../market-card'; import {MarketCardType} from '../market-card-type'; import {MarketService} from '../market.service'; import {Expansion} from '../expansion'; import { GameModeService } from '../game-mode.service'; import { GameMode } from '../ga...
TypeScript
aeons-end/src/app/market-selection/market-selection.component.ts
kbarnes3/AeonsEnd
bsd-2-clause
1,716
59
codeparrot/github-code
a07f27d3537ea6aec94e7409e91ec0900de698e5026d96df26e5dee485ce3956
/*************************************************************************** * _ _ ____ _ * Project ___| | | | _ \| | * / __| | | | |_) | | * | (__| |_| | _ <| |___ * \___|\...
C
DESIRE-Modules/Network-curl/Externals/curl/src/getinfo.c
nyaki-HUN/DESIRE
bsd-2-clause
15,969
567
codeparrot/github-code
5bc5a0ea1659d6490984af485d854a03d1551d55c8b5add673a90fdc44484131
import requests import logging import redis from requests.packages.urllib3.exceptions import ConnectionError from core.serialisers import json from dss import localsettings # TODO(fergal.moran@gmail.com): refactor these out to # classes to avoid duplicating constants below HEADERS = { 'content-type': 'application/j...
Python
core/realtime/notification.py
fergalmoran/dss
bsd-2-clause
928
35
codeparrot/github-code
9bbe53c57091886127707e07dc56fe9a81f20411353eb77f996e42e777f52389
# Copyright 2014 Dev in Cachu authors. All rights reserved. # Use of this source code is governed by a BSD-style # license that can be found in the LICENSE file. from django.conf import settings from django.conf.urls import include, patterns, url from django.views.decorators import csrf from django.views.generic impor...
Python
devincachu/urls.py
devincachu/devincachu-2014
bsd-2-clause
2,555
63
codeparrot/github-code
c30174363daa966d69c735428ebefecdd7f2a6fdc86195e952490fe93a4b476b
# -*- coding: utf-8 -*- class Pkg @pkgDir @jailDir def self.init() @pkgDir = System.getConf("pkgDir") @jailDir = System.getConf("jailDir") end def self.main(data) if (data["control"] == "search") then search(data["name"]).each_line do |pname| pname = pname.chomp SendMsg.machine("pkg","search...
Ruby
bin/pkg.rb
shutingrz/gvitocha
bsd-2-clause
2,882
119
codeparrot/github-code