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 |
|---|---|---|---|---|---|---|---|---|
ebbe784535580b9eb05fc8bb7502dbf8a8283140883547deedd29e1f0cc3d432 | // Generated from /POI/java/org/apache/poi/hssf/record/DBCellRecord.java
#pragma once
#include <fwd-POI.hpp>
#include <java/lang/fwd-POI.hpp>
#include <org/apache/poi/hssf/record/fwd-POI.hpp>
#include <org/apache/poi/util/fwd-POI.hpp>
#include <org/apache/poi/hssf/record/StandardRecord.hpp>
#include <java/lang/Clonea... | C++ | src/org/apache/poi/hssf/record/DBCellRecord.hpp | pebble2015/cpoi | apache-2.0 | 1,539 | 62 | codeparrot/github-code |
ffd5830d81f617dd6fa9692e6a7bd857fb2c7b784b81a90be2094ae06090d0b6 | //===--- CGDeclCXX.cpp - Emit LLVM Code for C++ declarations --------------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===---------------------------... | C++ | lib/CodeGen/CGDeclCXX.cpp | apple/swift-clang | apache-2.0 | 30,989 | 761 | codeparrot/github-code |
ef03e517467ff69e8f5ef4b02bc09c29ec9709d12a0542d54391307230f5f556 | // Copyright (c) 2018 Uber Technologies, Inc.
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge... | GO | src/query/parser/m3ql/grammar.peg.go | m3db/m3db | apache-2.0 | 37,003 | 1,533 | codeparrot/github-code |
bcb0ff2bc98dc2053ae67a93f288a40fe34578066e4f4e94daea5425300bb81c | #
# Copyright (C) 2010-2016 dtk contributors
#
# This file is part of the dtk 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
#
# Unles... | Ruby | lib/client/operation/service/task_status/stream_mode/element/task_start.rb | dtk/dtk-client | apache-2.0 | 1,243 | 38 | codeparrot/github-code |
8a1fcfa42cdb2044eb3c744d286ff3ebfee32314d254e7614fc727ced98154d0 | /*
Copyright 2016, 2020 Nationale-Nederlanden, 2020-2021 WeAreFrank!
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 | core/src/main/java/nl/nn/adapterframework/pipes/WsdlGeneratorPipe.java | ibissource/iaf | apache-2.0 | 3,096 | 88 | codeparrot/github-code |
6575f22f8f137160696e894f19899e02022266f416821338f688a0148481453f | /*
* #%L
* Diana UI Core
* %%
* Copyright (C) 2014 Diana UI
* %%
* 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/dianaui/universal/core/client/ui/constants/FormGroupSize.java | dianaui/dianaui-universal | apache-2.0 | 1,385 | 52 | codeparrot/github-code |
9a112b90c0296d964e6bdc06e7fb2048ab8d068dd9e4f88241d96490177be438 | # frozen_string_literal: true
require 'github_request'
class GithubPostReceiveHook
SUBSCRIBE_NAME = "web"
def initialize(repository, oauth_token)
@repository = repository
@oauth_token = oauth_token
@root_url = "#{repository.base_api_url}/hooks"
@hook_url = "#{repository.base_api_url}/hooks/#{repos... | Ruby | lib/github_post_receive_hook.rb | square/kochiku | apache-2.0 | 1,783 | 61 | codeparrot/github-code |
82981b323bb9c6c9641e7483a509838262991f7169ea094db50af1338ed010ad | /*
* 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 | fixture/src/main/java/fixture/simple/SimpleObjectsFixturesService.java | leanddrot/isis-asistencia | apache-2.0 | 2,843 | 81 | codeparrot/github-code |
e2a1c679000be628345b41939041a65233235bd828bbf017fca8b765d21fe5bc | package org.qcri.rheem.basic.operators;
import org.apache.commons.lang3.Validate;
import org.qcri.rheem.core.api.Configuration;
import org.qcri.rheem.core.function.DistinctPredicateDescriptor;
import org.qcri.rheem.core.function.PredicateDescriptor;
import org.qcri.rheem.core.optimizer.OptimizationContext;
import org.... | Java | rheem-basic/src/main/java/org/qcri/rheem/basic/operators/DistinctOperator.java | jonasrk/rheem | apache-2.0 | 5,747 | 133 | codeparrot/github-code |
5def8e5a5d0f48e85f149c6ff8db55e4113c392d5bfe848e00fee66f1b53948e | /*
* Copyright (C) 2008 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 | app/src/main/java/com/phonemetra/turbo/launcher/BubbleTextView.java | Phonemetra/TurboLauncher | apache-2.0 | 13,912 | 394 | codeparrot/github-code |
c07f27c76e1533fcef0f40df0a80755607855e75edcec8239947cc2b2815bd27 | /*
* Licensed to Crate.IO GmbH ("Crate") under one or more contributor
* license agreements. See the NOTICE file distributed with this work for
* additional information regarding copyright ownership. Crate licenses
* this file to you under the Apache License, Version 2.0 (the "License");
* you may not use this f... | Java | sql/src/test/java/io/crate/operation/merge/IteratorPageDownstreamTest.java | aslanbekirov/crate | apache-2.0 | 9,970 | 259 | codeparrot/github-code |
6773ef61a26e35ca9c6440a1024417b606d9a24304229ec94e06c36ba9b0b629 | /*
* 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-frauddetector/src/main/java/com/amazonaws/services/frauddetector/model/transform/DeleteEventsByEventTypeRequestProtocolMarshaller.java | aws/aws-sdk-java | apache-2.0 | 2,836 | 64 | codeparrot/github-code |
9c6e9815a61ea6bd35e920c7c437e70821ab0122f98bd01601d7343c98e3ae58 | import Future = require("fibers/future");
import * as npm from "npm";
interface INpmOpts {
config?: any;
subCommandName?: string;
path?: string;
}
export class NodePackageManager implements INodePackageManager {
constructor(private $childProcess: IChildProcess,
private $logger: ILogger,
private $options: IOpt... | TypeScript | lib/node-package-manager.ts | tsvetie/nativescript-cli | apache-2.0 | 4,909 | 147 | codeparrot/github-code |
acc7e6546b8dc8d1062b892c16f79d4c94f9988c5c1e7c4f48fcf987902e3941 | /*
* 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 | oak-sling/src/main/java/org/apache/jackrabbit/oak/sling/Activator.java | tteofili/jackrabbit-oak | apache-2.0 | 3,841 | 104 | codeparrot/github-code |
33486a8f60e2e27d3ec77a6a56d663dfe12b8823b8d8a575930c4fa04cabfea3 | /*
* Copyright 1999-2101 Alibaba Group.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or a... | Java | src/com/alibaba/fastjson/parser/JSONToken.java | xiepengchong/FactoryZxing | apache-2.0 | 3,656 | 122 | codeparrot/github-code |
b58414d1671a2c2d648131ba3e1dae5e6bd02666996383e146ef74545d9fd135 | package com.github.obourgain.elasticsearch.http.response.parser;
import java.io.IOException;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import org.elasticsearch.common.xcontent.XContentParser;
import com.github.obourgain.elasticsearch.http.response.entity.Indices;
import com.github.obourgai... | Java | src/main/java/com/github/obourgain/elasticsearch/http/response/parser/IndicesParser.java | obourgain/elasticsearch-http | apache-2.0 | 1,496 | 40 | codeparrot/github-code |
8227a86cbedb7712d35acf56d2a7d7b7ae5c59de1adc0a1dbfa8d746aec5b514 | /*
* Copyright 2012 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | Java | src/main/java/com/github/carlomicieli/nerdmovies/controllers/HomeController.java | CarloMicieli/spring-mvc-movies | apache-2.0 | 1,759 | 56 | codeparrot/github-code |
184572ec265b809cabd0d558c503f7d633adbd7cd8fa896383c45fff29706046 | /*
* 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 not ... | Java | geode-core/src/main/java/org/apache/geode/cache/query/internal/CompiledOperation.java | PurelyApplied/geode | apache-2.0 | 12,213 | 335 | codeparrot/github-code |
d042e42671cc48b4293c23c59888fa46f49083385721cee2b90404b293488f71 | package com.zuoqing.demo.entity;
/**
* http 请求返回的最外层对象
*/
public class Result<T> {
private Integer code;
private String msg;
private T data;
public Integer getCode() {
return code;
}
public void setCode(Integer code) {
this.code = code;
}
public String getMsg() {... | Java | src/main/java/com/zuoqing/demo/entity/Result.java | zuoqing135du/SpringBoot | apache-2.0 | 549 | 50 | codeparrot/github-code |
6d898b94369ac6b7d58fdb6cf1171875c9f08ed3ab137751c60b6ac72092d172 | @*
* Copyright 2021 HM Revenue & Customs
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or a... | HTML | app/iht/views/application/tnrb/permanent_home.scala.html | hmrc/iht-frontend | apache-2.0 | 2,657 | 68 | codeparrot/github-code |
ec001de149c586813df8b631f1587b6ec6e14b47ec26a234fbbce61a17a35f2b | package utils
import java.io.{BufferedReader, File, InputStreamReader}
import scala.io.Source
/**
* Created by yujieshui on 2016/8/30.
*/
object NextLine {
type NextLine = () => String
def fromSystemIn(): NextLine = {
val bi = new BufferedReader(new InputStreamReader(System.in))
() => bi.readLine(... | Scala | src/main/scala/utils/NextLine.scala | 1178615156/hackerrank | apache-2.0 | 568 | 32 | codeparrot/github-code |
11457071637c8b3f6e669109dddd8a43b210e93b5f56e69a3c05199ffe93bf5b | package com.eric.drools_demo;
import junit.framework.Test;
import junit.framework.TestCase;
import junit.framework.TestSuite;
/**
* Unit test for simple App.
*/
public class AppTest
extends TestCase
{
/**
* Create the test case
*
* @param testName name of the test case
*/
public App... | Java | drools-demo/src/test/java/com/eric/drools_demo/AppTest.java | 54070356/sample | apache-2.0 | 648 | 39 | codeparrot/github-code |
9c45854b706be7f75a3bc1d85a8f46fe01f8e12a9181d48604859f95542ff317 | package com.cognitionis.nlp_files;
import java.io.*;
import java.util.regex.*;
/**
*
* @author Héctor Llorens
* @since 2011
*/
public class TreebankFile extends NLPFile {
public TreebankFile(String filename) {
super(filename);
}
@Override
public Boolean isWellFormatted() {
i... | Java | nlp-files/src/main/java/com/cognitionis/nlp_files/TreebankFile.java | hllorens/cognitionis-nlp-libraries | apache-2.0 | 2,384 | 83 | codeparrot/github-code |
4a03f9490546d14436211b267d9e89f7dd9487765eddef2e69682d9e273784b6 | package be.dnsbelgium.rdap.sample.parser;
import be.dnsbelgium.rdap.sample.dto.Contact;
import be.dnsbelgium.rdap.sample.dto.DnsSecKey;
import be.dnsbelgium.rdap.sample.dto.SimpleContact;
public enum WhoisKeyBlock {
MAIN(),
DOMAIN(),
REGISTRAR(),
REGISTRANT(),
ADMIN(Contact.class),
TECH(Contact.class),
... | Java | src/main/java/be/dnsbelgium/rdap/sample/parser/WhoisKeyBlock.java | DNSBelgium/rdap-server-sample-gtld | apache-2.0 | 981 | 49 | codeparrot/github-code |
9e1299fe658e71d41dcaa9a17f0ea548a578f740e4a2eaa9ffd86b05d469ff2f | package com.github.hadoop.maven.plugin;
import java.io.BufferedInputStream;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.OutputStream;
import java.util.jar.Attributes;
import java.util.jar.JarEntry;
import java.util.jar.JarOutputS... | Java | src/main/java/com/github/hadoop/maven/plugin/JarWriter.java | akkumar/maven-hadoop | apache-2.0 | 2,529 | 84 | codeparrot/github-code |
ba95eabd0f0700da8e4656dbe7591f9a13e9fadb524b81bb9c689cadbcd835b5 | package dbtarzan.gui.table
import scalafx.scene.control.{TableView, TableColumn}
import scala.util.Random
import scalafx.Includes._
import dbtarzan.gui.util.JFXUtil
import dbtarzan.db._
object TableColumnsFitter {
/* a logistic (sigmoid) function, almost linear, returns max 50 */
def logistic(x : Double) : ... | Scala | src/main/scala/dbtarzan/gui/table/TableColumnsFitter.scala | aferrandi/dbtarzan | apache-2.0 | 1,092 | 34 | codeparrot/github-code |
0b406c25c57fc4a771f669e1f21a0e841a61685aecfdd2c5219f6d3f37814bb2 | /*
* 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-transfer/src/main/java/com/amazonaws/services/transfer/model/HomeDirectoryType.java | aws/aws-sdk-java | apache-2.0 | 1,790 | 61 | codeparrot/github-code |
9019d5f80ad38f1b2fbd73b74f9d479f81dad715148b5074adadcb43e45298b0 | package vnetpeering
import (
"context"
"fmt"
"github.com/Azure/azure-sdk-for-go/services/network/mgmt/2019-11-01/network"
"github.com/giantswarm/microerror"
"github.com/giantswarm/operatorkit/v4/pkg/controller/context/reconciliationcanceledcontext"
"github.com/giantswarm/to"
"github.com/giantswarm/azure-opera... | GO | service/controller/azureconfig/handler/vnetpeering/create.go | giantswarm/azure-operator | apache-2.0 | 4,401 | 123 | codeparrot/github-code |
f3b872618e74e713573f3b00a5d2c8e94d26e6f06bf29c8748afd4bd39cc3fac | package org.ovirt.engine.ui.uicommonweb.models.vms;
import java.util.ArrayList;
import java.util.Collections;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import org.ovirt.engine.core.common.businessentities.DiskImage;
import org.ovirt.engine.core.common.businessentities.DiskImageBase;
impor... | Java | frontend/webadmin/modules/uicommonweb/src/main/java/org/ovirt/engine/ui/uicommonweb/models/vms/ImportVmModel.java | Dhandapani/gluster-ovirt | apache-2.0 | 23,592 | 641 | codeparrot/github-code |
ecbcf981c6204570fd65c18135e37d189729dc14e580898c4e9af0f57f72b857 | /**
* @author: Alberto Cerqueira
* @email: alberto.cerqueira1990@gmail.com
*/
jQuery.controller = function() {
var controllerClass = function() {
this.init = (function(){
$("#gravar").click(function(){
_self.gravar();
return false;
});
});
this.gravar = (function() {
$("#manterEntidade")... | JavaScript | project/viewria/WebContent/app/controller/controller.js | g6tech/spring-corp-test | apache-2.0 | 1,076 | 42 | codeparrot/github-code |
f89cc2d485409c06a08402e8fde73d2424e1ba6acc9ca49029235367e809f565 | /*
* Copyright (c) 2017-2018. 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... | Java | easycache/src/main/java/li/allan/easycache/config/ConfigProperties.java | lialun/EasyCache | apache-2.0 | 1,360 | 46 | codeparrot/github-code |
91ef3a9c117b30029be2d774739c6884c1bac7c45a036d75892048c7303ff2d8 | #
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under... | Python | solum/api/controllers/camp/v1_1/datamodel/extensions.py | gilbertpilz/solum | apache-2.0 | 1,139 | 33 | codeparrot/github-code |
4915294acc2a771178f7f8307a2758ae59acd4b0bce6ec63bb9285abc4664802 | /*
* 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-appsync/src/main/java/com/amazonaws/services/appsync/model/GetFunctionResult.java | jentfoo/aws-sdk-java | apache-2.0 | 4,022 | 127 | codeparrot/github-code |
cf1bfc304523437b6323a9480bf1e2af335d200ae534ab15dfb9cf6fc89c6613 | /*
* Copyright 2013-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 | test/com/facebook/buck/event/listener/ChromeTraceBuildListenerTest.java | justinmuller/buck | apache-2.0 | 20,351 | 597 | codeparrot/github-code |
4e3daa6af4f5440cd7ed009949b7138144a50653b72b4eb074247f18025dfd8b | <?php
/**
* Budget delivery methods.
* @package Google_Api_Ads_AdWords_v201605
* @subpackage v201605
*/
class BudgetBudgetDeliveryMethod
{
const WSDL_NAMESPACE = "https://adwords.google.com/api/adwords/cm/v201605";
const XSI_TYPE = "Budget.BudgetDeliveryMethod";
/**
* Gets the namesapce of t... | PHP | Google/Api/Ads/AdWords/v201605/classes/BudgetBudgetDeliveryMethod.php | SonicGD/google-adwords-api-light | apache-2.0 | 716 | 37 | codeparrot/github-code |
b00884291089694bc62f311502141a8f7c13d57252cd437fdfd9a49ed80e88c6 | #include <iostream>
#include <fstream>
#include "disassembly/flowgraph.hpp"
#include "disassembly/functionfeaturegenerator.hpp"
#include "searchbackend/functionsimhashfeaturedump.hpp"
// Writes a DOT file for a given graphlet.
void WriteFeatureDictionaryEntry(uint64_t hashA, uint64_t hashB,
const Flowgraph& graphle... | C++ | searchbackend/functionsimhashfeaturedump.cpp | googleprojectzero/functionsimsearch | apache-2.0 | 1,200 | 36 | codeparrot/github-code |
cb2db3ed52867b22e4863c71fbf16096fd7b14be781d3d67641350e3e65db027 | /*******************************************************************************
* Copyright 2007-2013 See AUTHORS file.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http:/... | Java | xworker_dataobject/src/main/java/xworker/dataObject/http/DataObjectHttpUtils.java | x-meta/xworker | apache-2.0 | 2,005 | 53 | codeparrot/github-code |
d957b181f725d103c03c7872bb1b7519ff06e48f9f3f644fad17e60ab5f5e84c | /*
* Copyright 2000-2009 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... | Java | platform/vcs-impl/src/com/intellij/openapi/vcs/changes/patch/PatchFileType.java | ernestp/consulo | apache-2.0 | 1,803 | 75 | codeparrot/github-code |
bfad478c54c63ac99ba27ee4dd11c37c4df4e93b718e22f54fc8204b984b923e | <div class="row">
<div class="col-md-12 no-padding">
<div class="col-lg-4 col-md-12">
<?php
$this->renderPartial('pod/description',array( "project" => $project, "tags" => $tags, "countries" => $countries,"isAdmin"=> $admin)); ?>
</div>
<div class ="col-lg-4 col-md-12">
<?php
$this->renderPartial('..... | PHP | views/project/dashboard.php | pixelhumain/network | apache-2.0 | 6,465 | 144 | codeparrot/github-code |
efecd2c2bbe29c1b913cda96ceb95b688afee7f469ae2eb4cfffb05387085e44 | /**
* Copyright 2012-2015 Niall Gallagher
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or a... | Java | code/src/test/java/com/googlecode/cqengine/index/support/PartialSortedKeyStatisticsAttributeIndexTest.java | npgall/cqengine | apache-2.0 | 6,673 | 153 | codeparrot/github-code |
f5a30d702a99901bd07e0d6d8e97f47819ca4b4577ff77e5aff21c3e2c5411f7 | /*
* Copyright (c) 2010-2013 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 la... | Java | infra/common/src/main/java/com/evolveum/midpoint/common/policy/PasswordPolicyUtils.java | sabriarabacioglu/engerek | apache-2.0 | 12,321 | 354 | codeparrot/github-code |
1ea14a4d285b3c5fbabf38f75291ce03bd2d2da59bf2e97c6f07d7bc8b0d8eab | /*
* Zed Attack Proxy (ZAP) and its related class files.
*
* ZAP is an HTTP/HTTPS proxy for assessing web application security.
*
* Copyright 2012 The ZAP Development Team
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* Yo... | Java | zap/src/test/java/org/zaproxy/zap/control/AddOnUnitTest.java | zaproxy/zaproxy | apache-2.0 | 36,238 | 980 | codeparrot/github-code |
2db3ff50702355c0f463702337eb5d5d7ef1a4bf1104f9a4cdc911894aed5f34 | /*
* Copyright 2000-2009 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... | Java | java/java-impl/src/com/intellij/refactoring/typeCook/deductive/util/VictimCollector.java | joewalnes/idea-community | apache-2.0 | 3,283 | 117 | codeparrot/github-code |
75c45dcdf0f0692ce99adc2b1e289863da4559c99b50a4b80d98b1309d484fc8 | // Generated from /POI/java/org/apache/poi/hssf/usermodel/HSSFName.java
#pragma once
#include <fwd-POI.hpp>
#include <java/lang/fwd-POI.hpp>
#include <org/apache/poi/hssf/record/fwd-POI.hpp>
#include <org/apache/poi/hssf/usermodel/fwd-POI.hpp>
#include <org/apache/poi/ss/formula/ptg/fwd-POI.hpp>
#include <java/lang/O... | C++ | src/org/apache/poi/hssf/usermodel/HSSFName.hpp | pebble2015/cpoi | apache-2.0 | 2,520 | 86 | codeparrot/github-code |
39fb86cf8f194a2f15b7ad9351c5ff4801492ef254c2d9a473acb19ee159ea10 | Ext.namespace("Ext.haode");
Ext.haode.Control = function(args){
Ext.apply(this, args);
this.init();
};
Ext.haode.Control.prototype = {
userName : '',
version : '',
app_name : '',
copyright : '',
viewport : null,
cn : 1,
init : function() {
this.viewport = this.getViewp... | JavaScript | WebRoot/task/index.js | hairlun/customer-visit-web | apache-2.0 | 47,387 | 1,641 | codeparrot/github-code |
09a33e5ce1bc5b55a2f5d0116662f8de0a6265f71ced9fb0c5093ef8d3c4a6a6 | <?php
namespace Test\Controllers;
use Test\Models\EmailConfirmations;
use Test\Models\ResetPasswords;
/**
* UserControlController
* Provides help to users to confirm their passwords or reset them
*/
class UserControlController extends ControllerBase
{
public function initialize()
{
if ($this->ses... | PHP | app/controllers/UserControlController.php | tetrapak07/testPhalcon | apache-2.0 | 3,697 | 145 | codeparrot/github-code |
21317c32f8714dcb0cdbb77c6bf9262ba2574335c647df08048309afc978498e | /**
* 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/hdfs/org/apache/hadoop/hdfs/server/namenode/SecondaryNameNode.java | shot/hadoop-source-reading | apache-2.0 | 18,270 | 603 | codeparrot/github-code |
11579178c48b9ac5c31219a242a787b326d579b2d4c739871a58952f86d2c191 | <?php
$curdir = dirname(__FILE__);
require_once($curdir.'/Db.php');
class LoanStatus extends Db {
protected static $table_name = "loanstatus";
protected static $db_fields = array("id", "name", "description");
public function findById($id){
$result = $this->getrec(self::$table_name, "id=".$id, "");
return !emp... | PHP | lib/LoanStatus.php | platinalfred/buladde | apache-2.0 | 1,146 | 38 | codeparrot/github-code |
8cee94ef7a7c848f6ea5be61105128596f252177540e2f4aa2b35538d4733232 | /*
~ Copyright (c) 2014 George Norman.
~ Licensed under the Apache License, Version 2.0 (the "License");
~ http://www.apache.org/licenses/LICENSE-2.0
~
~ --------------------------------------------------------------
~ Renders <css-lab-about> tags - sharable among all projects.
~ ----------------------------... | JavaScript | src/js/tags/cssLabAbout.js | georgenorman/css-lab | apache-2.0 | 2,522 | 76 | codeparrot/github-code |
fff44c1c95acde4c7ab0adc7801db7691ae4d98cde036583b35559585ae93175 | package me.soulmachine;
import org.jruby.embed.ScriptingContainer;
import java.util.List;
import javax.script.ScriptEngine;
import javax.script.ScriptEngineFactory;
import javax.script.ScriptEngineManager;
import javax.script.ScriptException;
/**
* A simple JRuby example to execute Python scripts from Java.
*/
f... | Java | JRubyExample/src/main/java/me/soulmachine/JRubyExample.java | soulmachine/JRubyExample | apache-2.0 | 2,633 | 87 | codeparrot/github-code |
8959fe30872ac373b290fb2b5d9575661ef26abb923078e1351f89586201f555 | package com.arthurb.iterator.dinermergergery;
import java.util.Iterator;
/**
* Created by Blackwood on 07.03.2016 18:16.
*/
public class DinerMenu implements Menu {
static final int MAX_ITEMS = 6;
int numberOfItems = 0;
MenuItem[] menuItems;
public DinerMenu() {
menuItems = new MenuItem[MA... | Java | src/com/arthurb/iterator/dinermergergery/DinerMenu.java | NeverNight/SimplesPatterns.Java | apache-2.0 | 1,524 | 39 | codeparrot/github-code |
da06b321a87656a2cfceff56fe448e89dfedfb55f0994c5dedc5cd6e7d0bd9b5 | /* eslint-disable local/html-template */
const documentModes = require('./document-modes');
const {AmpState, ampStateKey} = require('./amphtml-helpers');
const {html, joinFragments} = require('./html');
const jsModes = [
{
value: 'default',
description: `Unminified AMP JavaScript is served from the local ser... | JavaScript | build-system/server/app-index/settings.js | jpettitt/amphtml | apache-2.0 | 4,586 | 170 | codeparrot/github-code |
a68dda5fa2c040d8898fa5d5e81cd5b1971cb8f0ac1f4c6c814bb762279dd940 | package org.apache.helix.controller.rebalancer.waged.model;
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you u... | Java | helix-core/src/main/java/org/apache/helix/controller/rebalancer/waged/model/AssignableNode.java | lei-xia/helix | apache-2.0 | 15,277 | 375 | codeparrot/github-code |
088a0a84c0aca4c112204dce2ec91e32c1bdd28dd02f659a981d98680e7a0aa4 | /**
*
* Web Starter Kit
* Copyright 2014 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
*
... | JavaScript | gulpfile.js | markuz-brasil/runtime-type-system | apache-2.0 | 2,272 | 72 | codeparrot/github-code |
42240267febb3cfd331ad1bd366e35ff02c97becf0c34f25fcd5d56965d05b24 | /**
* Copyright 2017 Shusheng Shao <iblackangel@163.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 appl... | C++ | src/mlog.cpp | i-black-angel/libpunica | apache-2.0 | 3,839 | 188 | codeparrot/github-code |
05ee16068ec32451ac66f7cad9e9ff0095deb3ba97beb416a10c87e6f208c5e8 | ////////////////////////////////////////////////////////////////////////////////
/// DISCLAIMER
///
/// Copyright 2014-2016 ArangoDB GmbH, Cologne, Germany
/// Copyright 2004-2014 triAGENS GmbH, Cologne, Germany
///
/// Licensed under the Apache License, Version 2.0 (the "License");
/// you may not use this file except... | C++ | arangod/Replication/common-defines.cpp | fceller/arangodb | apache-2.0 | 2,510 | 81 | codeparrot/github-code |
b5200f5a22998c91baa851d387cc94964e03cd0392187599ed74a880874dd937 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>ClickCloud | Rapid deployment</title>
<link rel="stylesheet" type="text/css" href="static/styles/font-awesome.css" />
<!--[if IE ... | HTML | web2/html/index.html | codemeow5/deployment | apache-2.0 | 5,598 | 111 | codeparrot/github-code |
027b40c5a77cecb0161059725463463f3b5df967d2601215f295d16fd6b502ad | package event
import (
"time"
"github.com/go-kit/kit/log"
)
type logService struct {
logger log.Logger
next Service
}
// LogServiceMiddleware given a Logger wraps the next Service with logging capabilities.
func LogServiceMiddleware(logger log.Logger, store string) ServiceMiddleware {
return func(next Servic... | GO | service/event/logging.go | tapglue/snaas | apache-2.0 | 3,954 | 207 | codeparrot/github-code |
b4e1a8f3a166853f46af4dcfc122ce027427f708774b83b1f368cd54766fac78 | /*
* 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 | taverna-graph-view/src/main/java/org/apache/taverna/workbench/views/graph/config/GraphViewConfigurationUIFactory.java | ThilinaManamgoda/incubator-taverna-workbench | apache-2.0 | 1,714 | 54 | codeparrot/github-code |
cd140a99c7489f0be2b6bf6b2e5ce40b330a7d322ed277094fdaaaa63a3b4b98 | /*
* 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-cloudsearch/src/main/java/com/amazonaws/services/cloudsearchv2/model/transform/UpdateDomainEndpointOptionsResultStaxUnmarshaller.java | aws/aws-sdk-java | apache-2.0 | 2,682 | 66 | codeparrot/github-code |
da4080f68ab56453f0b19754b6375de733ccf8d3bed08efea5ba8e3ce93884c1 | /*
* Copyright (c) 2006-2007 Sun Microsystems, Inc. All rights reserved.
*
* The Sun Project JXTA(TM) Software License
*
* 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 m... | Java | src/main/java/net/jxta/platform/NetworkConfigurator.java | johnjianfang/jxse | apache-2.0 | 82,829 | 2,477 | codeparrot/github-code |
ba1ec7365ddcb5db4c3aa82666381182b279d699819ac286ff73b2c670b9d632 | package com.sissi.protocol.message;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlValue;
import com.sissi.io.read.Metadata;
/**
* @author kim 2014年1月28日
*/
@Metadata(uri = Message.XMLNS, localName = Thread.NAME)
@XmlRootElement
p... | Java | src/main/java/com/sissi/protocol/message/Thread.java | KimShen/sissi | apache-2.0 | 1,020 | 61 | codeparrot/github-code |
2c7ef752f4a6f8ffe4efa07e933745464f48a2a3b14418991cce28eebea5d6a9 | using ArangoDB.Client.Data;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ArangoDB.Client
{
public class BaseResultAnalyzer
{
IArangoDatabase db;
public BaseResultAnalyzer(IArangoDatabase db)
{
... | C# | src/ArangoDB.Client/BaseResultAnalyzer.cs | ra0o0f/arangoclient.net | apache-2.0 | 772 | 34 | codeparrot/github-code |
6130f5ae3ed67b841ea69d8631757356585372ecd2f5c8f601728b0c47743506 | /**
* Copyright (C) 2016 - 2030 youtongluan.
*
* 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/main/java/org/yx/asm/AsmUtils.java | youtongluan/sumk | apache-2.0 | 6,531 | 245 | codeparrot/github-code |
bae0f4f7035548da36bbe3ba5eadfa41ef388f30f226b22a45488ec68d5c38bb | /**********************************************************************
Copyright (c) 2009 Stefan Seelmann. 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... | Java | DataNucleus-Advanced/src/main/java/com/example/dao/TeamDao.java | seelmann/ldapcon2009-datanucleus | apache-2.0 | 1,280 | 49 | codeparrot/github-code |
c7ac8040ce8ffba644c9f3a5202ded55ce0b669f90c51b82e7adcffe26f79896 | package com.metrink.action;
import org.apache.commons.mail.EmailException;
import org.apache.commons.mail.SimpleEmail;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import com.google.inject.Provider;
import com.metrink.alert.ActionBean;
import com.metrink.alert.AlertBean;
import com.metrink.metric.Metric;
... | Java | src/main/java/com/metrink/action/SmsAction.java | Metrink/metrink | apache-2.0 | 1,947 | 62 | codeparrot/github-code |
137cae9e8123252772d8d2558db5a1dea758355f2a6a51fbd391d8934b1ea11d | /**
* Copyright 2017-2019 The GreyCat Authors. All rights reserved.
* <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>
* Un... | Java | greycat/src/main/java/greycat/internal/task/ActionDelete.java | datathings/greycat | apache-2.0 | 1,871 | 61 | codeparrot/github-code |
6509f8d4e3030294a80a5b160911c37ad0656ae6d7b5978f0f8023cb559e6c87 | /*
* 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 br.com.stylehair.servicos;
import br.com.stylehair.dao.AgendamentoDAO;
import br.com.stylehair.entity.Agendamento;
import com.... | Java | src/main/java/br/com/stylehair/servicos/AgendamentoResource.java | ViniciusBezerra94/WsStyleHair | apache-2.0 | 3,529 | 114 | codeparrot/github-code |
cc0b1776d3bbf3acf83e9285db9597128be18505ef5d356eb051f8a0db4df919 | package com.sampleapp.base;
import android.app.Application;
import com.crashlytics.android.Crashlytics;
import com.sampleapp.BuildConfig;
import com.sampleapp.utils.UtilsModule;
import io.fabric.sdk.android.Fabric;
import timber.log.Timber;
/**
* Created by saveen_dhiman on 05-November-16.
* Initialization of re... | Java | app/src/main/java/com/sampleapp/base/SampleApplication.java | saveendhiman/SampleApp | apache-2.0 | 915 | 40 | codeparrot/github-code |
cc8028286ba57e385a3be9e78468876d280215570b21d2fc2b070b738306e8eb | <!-- Footer -->
<footer class="text-center">
<div class="footer-above">
<div class="container">
<div class="row">
<div class="footer-col col-md-4">
<h3>{{ site.footer.location }}</h3>
<p>
... | HTML | _includes/footer.html | coger/coger.github.io | apache-2.0 | 2,062 | 52 | codeparrot/github-code |
3ed81921aa5371fd937ff78fefd2d6cbffffdefb8a02bf3e8bb6c94efb6be056 | package com.fasterxml.jackson.databind.node;
import java.io.IOException;
import java.math.BigDecimal;
import java.math.BigInteger;
import com.fasterxml.jackson.core.*;
import com.fasterxml.jackson.core.io.NumberOutput;
import com.fasterxml.jackson.databind.SerializerProvider;
/**
* Numeric node that contains simpl... | Java | src/main/java/com/fasterxml/jackson/databind/node/IntNode.java | FasterXML/jackson-databind | apache-2.0 | 3,398 | 135 | codeparrot/github-code |
26fb1ec7ec1574b83913eff3070315ea4a51be3e0e0fb1d22a3434911702ec5f | package lena.lerning.selenium;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import org.openqa.selenium.By;
import org.openqa.selenium.Keys;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.edge.EdgeDriver;
import org.openqa.selenium.support.ui.WebDriverWait;
import java.util... | Java | sel-test/src/test/java/lena/lerning/selenium/EdgeTest.java | etarnovskaya/sel_6_Lena | apache-2.0 | 1,062 | 44 | codeparrot/github-code |
03fad04f806a9158fb15b114605c36c469bf0e1bdfedcf9af0e43f3184d09262 | package com.twitter.finagle.mdns
import com.twitter.finagle.{Announcer, Announcement, Resolver, Addr, Address}
import com.twitter.util.{Future, Return, Throw, Try, Var}
import java.lang.management.ManagementFactory
import java.net.{InetSocketAddress, SocketAddress}
import scala.collection.mutable
class MDNSAddressExc... | Scala | finagle-mdns/src/main/scala/com/twitter/finagle/mdns/MDNS.scala | lukiano/finagle | apache-2.0 | 3,301 | 118 | codeparrot/github-code |
a1126cded2f5fa75e667f422a84190c5a798f5571f326243b97f6f3031c581f1 | /*
* Copyright 2005-2014 The Kuali Foundation
*
* Licensed under the Educational Community 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.opensource.org/licenses/ecl1.php
*
* Unless required by... | Java | src/main/java/org/kuali/kra/common/notification/exception/UnknownRoleException.java | vivantech/kc_fixes | apache-2.0 | 1,435 | 48 | codeparrot/github-code |
11cc7c4b4346580f4e2121e09a5745898f229ab09e1dcbb8dd782cfe5a45d481 | package com.truward.brikar.maintenance.log.processor;
import com.truward.brikar.common.log.LogUtil;
import com.truward.brikar.maintenance.log.CommaSeparatedValueParser;
import com.truward.brikar.maintenance.log.Severity;
import com.truward.brikar.maintenance.log.message.LogMessage;
import com.truward.brikar.maintenanc... | Java | brikar-maintenance/src/main/java/com/truward/brikar/maintenance/log/processor/LogMessageProcessor.java | truward/brikar | apache-2.0 | 4,636 | 128 | codeparrot/github-code |
e80e23935421e2bf5db19c3717a34f8360a5ed01b6867c51cb10a3137df327a2 | using UnityEngine;
using System.Collections;
namespace MagicalFX
{
public class FX_SpawnDirection : MonoBehaviour
{
public int Number = 10;
public float Frequency = 1;
public bool FixRotation = false;
public bool Normal;
public GameObject FXSpawn;
public float LifeTime = 0;
public float TimeSpawn = 0;... | C# | trunk/effect/Assets/Magical/Sources/Scripts/FX_SpawnDirection.cs | yimogod/boom | apache-2.0 | 1,576 | 71 | codeparrot/github-code |
848c5d04f9c7f657f2737b4d25d7257203b6bc8e4d205cd7091e4725b73be3f7 | package ru.job4j.servlet.services;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import ru.job4j.servlet.model.User;
import ru.job4j.servlet.repository.RepositoryException;
import ru.job4j.servlet.repository.UserStore;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import ja... | Java | chapter_007/src/main/java/ru/job4j/servlet/services/UpdateUserController.java | StanislavEsin/estanislav | apache-2.0 | 1,967 | 58 | codeparrot/github-code |
6c73638177279129e8fe230bef75f35d103deb6192cde635b5a97e8122e504c4 | package com.kenshin.windystreet.db;
import org.litepal.crud.DataSupport;
/**
* Created by Kenshin on 2017/4/3.
*/
public class County extends DataSupport {
private int id; //编号
private String countyName; //县名
private String weatherId; //对应的天气id
private int cityId; //所属市的id
public void setI... | Java | app/src/main/java/com/kenshin/windystreet/db/County.java | Asucanc/Windy-Street-Weather | apache-2.0 | 875 | 50 | codeparrot/github-code |
6011f7500bdf4f3820faac6a6704afc0f5831e351447d5d613ec61abf11c0a56 | /*
* Copyright 2016-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/core/model/actiongraph/AbstractActionGraphAndResolver.java | LegNeato/buck | apache-2.0 | 1,075 | 33 | codeparrot/github-code |
009abfea96aa64ce7c8e13860011b22bd21840a274ab0ae27daf94a58f5eeaa3 | package water.api;
import org.reflections.Reflections;
import java.lang.reflect.Array;
import java.lang.reflect.Field;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Modifier;
import java.lang.reflect.ParameterizedType;
import java.lang.reflect.Type;
import java.util.ArrayList;
import ja... | Java | h2o-core/src/main/java/water/api/Schema.java | madmax983/h2o-3 | apache-2.0 | 52,870 | 1,113 | codeparrot/github-code |
8f18992acd0686089a42238c62c1a8a2c9f2439ff0eb77dc403d329fa0340320 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html lang="en-GB" xml:lang="en-GB" xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8"/>
<title>obl</title>
<link rel="root... | HTML | ru/dep/obl.html | UniversalDependencies/universaldependencies.github.io | apache-2.0 | 7,620 | 218 | codeparrot/github-code |
d7a4fdecdbbf88eaac55d27282fefbcf089df5b44df2a5605ab74b396bd71e15 | package eu.uqasar.model.measure;
/*
* #%L
* U-QASAR
* %%
* Copyright (C) 2012 - 2015 U-QASAR 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
*
* htt... | Java | src/main/java/eu/uqasar/model/measure/MetricSource.java | U-QASAR/u-qasar.platform | apache-2.0 | 1,796 | 77 | codeparrot/github-code |
7dfc8a4f925f6366b47391d358863e8c5952effd8eff96ce92b3f072ab9be0a7 | 'use strict';
import * as _ from 'lodash';
import * as fs from 'fs';
import * as xml2js from 'xml2js';
import * as Mustache from 'mustache';
import * as helpers from './helpers';
import * as utils from './utils';
import * as conf from './conf';
const parseString: (xml: string, options: xml2js.Options) => Promise<any>... | TypeScript | server/esup_activ_bo.ts | prigaux/compte-externe | apache-2.0 | 7,793 | 151 | codeparrot/github-code |
432960989da58dbfd7272f08858fe63ab061e8df0539583f50a7f2cdfe819764 | package com.feiyu.storm.streamingdatacollection.spout;
/**
* from https://github.com/apache/incubator-storm/blob/master/examples/storm-starter/src/jvm/storm/starter/spout/RandomSentenceSpout.java
* modified by feiyu
*/
import java.util.Map;
import java.util.Random;
import backtype.storm.spout.SpoutOutputCollector;... | Java | deprecated-wisecrowdrec-springmvc/WiseCrowdRec/src/main/java/com/feiyu/storm/streamingdatacollection/spout/ForTestFakeSpout.java | faustineinsun/WiseCrowdRec | apache-2.0 | 2,356 | 51 | codeparrot/github-code |
1731d43a00e8d1484229d5bc6ee1e1e3d11062076fe75e7b8cae55f0a5025c04 | /*
* Copyright 2021 HM Revenue & Customs
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or a... | Scala | test/controllers/AmlsControllerSpec.scala | hmrc/amls-frontend | apache-2.0 | 2,119 | 60 | codeparrot/github-code |
31eec18478432f7cbfa33438d30e62940dc2f79686b34de2d177e0fa9b66f9bc | /*
* Copyright 2016 Axibase Corporation 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
*
* https://www.axibase.com/atsd/axibase-apache-2.0.pdf
*
... | Java | src/main/java/com/axibase/tsd/model/meta/EntityAndTags.java | axibase/atsd-api-java | apache-2.0 | 1,151 | 36 | codeparrot/github-code |
7b4e2b0d1762031c68fe6998e45c55e0dee7e445111dcbfec7ba28bae9a1130a | <?php
/**
* This example populates a first party audience segment. To determine which
* audience segments exist, run GetAllAudienceSegments.php.
*
* PHP version 5
*
* Copyright 2014, Google Inc. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file... | PHP | examples/Dfp/v201611/AudienceSegmentService/PopulateFirstPartyAudienceSegments.php | Getsidecar/googleads-php-lib | apache-2.0 | 3,948 | 117 | codeparrot/github-code |
43de499f0bc5ab9137d47b0479698890f45b18d339558f300aba5571506e369b | #!/usr/bin/python
#
# Copyright 2002-2019 Barcelona Supercomputing Center (www.bsc.es)
#
# 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
... | Python | compss/programming_model/bindings/python/src/exaqute/ExaquteTaskPyCOMPSs.py | mF2C/COMPSs | apache-2.0 | 1,613 | 62 | codeparrot/github-code |
e1f1496d1b00a9042a1e3bc60f2f3d61c3abb463a629da1698d06600fdf052a4 | /*
* Copyright (c) 2008-2020, Hazelcast, Inc. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required ... | Java | hazelcast/src/test/java/com/hazelcast/client/impl/spi/impl/discovery/ClientAutoDetectionDiscoveryTest.java | mdogan/hazelcast | apache-2.0 | 2,849 | 77 | codeparrot/github-code |
3104c1cbb6e8d033dd07eecb53520216056896fdd32e540a2978be771a8adcc1 | from rest_framework import generics, permissions, views, response,status
from .models import Account
from .serializers import AccountCreateSerializer, AccountSerializer, AuthenticateSerializer, \
UpdateAccountSerializer, AccountRetrieveSerializer
# Create your views here.
class AccountCreateView(generics.Create... | Python | api/views.py | jiafengwu0301/App_BackEnd | apache-2.0 | 1,474 | 43 | codeparrot/github-code |
5235baf5b4cff3037388536686b707f2daf98232e04a8293e6401ce43292371e | //*********************************************************//
// Copyright (c) Microsoft. All rights reserved.
//
// Apache 2.0 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,... | C# | Nodejs/Product/Nodejs/Project/NodejsGeneralPropertyPage.cs | mjbvz/nodejstools | apache-2.0 | 4,378 | 92 | codeparrot/github-code |
3939caecd7c91e54abdd33e11bb9372dbdc6cfed0773ecf784ed66d1287fdc7a | using System;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Windows.Forms;
using CompatCheckAndMigrate.Helpers;
using CompatCheckAndMigrate.ObjectModel;
namespace CompatCheckAndMigrate.Controls
{
public partial class SiteStatusControl : UserControl, IWizardStep
{
private I... | C# | Controls/SiteStatusControl.cs | Azure/Azure-Websites-Migration-Tool | apache-2.0 | 2,340 | 77 | codeparrot/github-code |
4133538f6e99d37d8325f5de7ef1cf74dd8f0dafc55a9861d441da8dd1e2de56 | <?php namespace DCarbone\PHPClassBuilder\Template;
/*
* Copyright 2016-2017 Daniel Carbone (daniel.p.carbone@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://... | PHP | src/Template/AbstractTemplate.php | dcarbone/php-class-builder | apache-2.0 | 9,603 | 268 | codeparrot/github-code |
50ddf3311bc096df8363b81a83dc7035855af7b471cc237118659e7a0c39429a | /**
* 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
* ... | Java | services/tools.descartes.teastore.persistence/src/main/java/tools/descartes/teastore/persistence/rest/OrderItemEndpoint.java | DescartesResearch/Pet-Supply-Store | apache-2.0 | 4,492 | 137 | codeparrot/github-code |
2dc1814ba8f7aadc1fa7035111efa6c0b180da0fce2426e2ae4302d93858c524 | package apple.mlcompute;
import apple.NSObject;
import apple.foundation.NSArray;
import apple.foundation.NSMethodSignature;
import apple.foundation.NSSet;
import apple.foundation.protocol.NSCopying;
import org.moe.natj.c.ann.FunctionPtr;
import org.moe.natj.general.NatJ;
import org.moe.natj.general.Pointer;
import org... | Java | moe.apple/moe.platform.ios/src/main/java/apple/mlcompute/MLCRMSPropOptimizer.java | multi-os-engine/moe-core | apache-2.0 | 6,672 | 221 | codeparrot/github-code |
1982a89d7b228569d3d28d794c8250943cc82c4621a80ad34c77c550976acc34 | /*
* Copyright 2020 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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... | JavaScript | packages/story-editor/src/components/canvas/pageAttachment/index.js | GoogleForCreators/web-stories-wp | apache-2.0 | 5,600 | 197 | codeparrot/github-code |
4232c89f2251bd34c13480e7ba2fd69b1865afad3eae26c7d3ebe64a9b15550c | package com.jflyfox.dudu.module.system.dao;
import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.jflyfox.dudu.component.model.Query;
import com.jflyfox.dudu.module.system.model.SysMenu;
import com.jflyfox.util.StrUtils;
import org.apache.ibatis.annotations.SelectProvider;
import org.apache.ibatis.jdbc.SQL;
i... | Java | dudu-admin/src/main/java/com/jflyfox/dudu/module/system/dao/MenuMapper.java | jflyfox/dudu | apache-2.0 | 1,705 | 44 | codeparrot/github-code |
1f52dc7586495cef5854285199f65dde17f4a981bb79c0f220572411426b52a0 | package edu.kit.tm.pseprak2.alushare.view;
import android.media.MediaPlayer;
import android.media.MediaRecorder;
import android.os.Environment;
import android.util.Log;
import java.io.IOException;
/**
* Represent the AudioRecorder of the ChatActivity.
* Enables recording sound and playing the music before sending.... | Java | app/src/main/java/edu/kit/tm/pseprak2/alushare/view/AudioRecorder.java | weichweich/AluShare | apache-2.0 | 6,151 | 206 | codeparrot/github-code |
7c6fc89e826a42aee6df0bf6b1c46dd0f33822c7628c469ddcd1310e2abda0ba | package com.zts.service.config;
import org.springframework.boot.context.properties.ConfigurationProperties;
@ConfigurationProperties(prefix = DataSourceProperties.DS, ignoreUnknownFields = false)
public class DataSourceProperties {
//对应配置文件里的配置键
public final static String DS="mysql";
private String driverClassNam... | Java | cloud-simple-service/src/main/java/com/zts/service/config/DataSourceProperties.java | tushengtuzhang/zts | apache-2.0 | 2,175 | 113 | codeparrot/github-code |
e280a8cf16a18139ad5ff6d2932209f5464e388177c1ba8b3e4cf48791e8ef0e | package com.github.approval.sesame;
/*
* #%L
* approval-sesame
* %%
* Copyright (C) 2014 Nikolavp
* %%
* 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... | Java | approval-sesame/src/main/java/com/github/approval/sesame/GraphReporter.java | nikolavp/approval | apache-2.0 | 2,951 | 83 | codeparrot/github-code |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.