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 |
|---|---|---|---|---|---|---|---|---|
2befa3dfdfe7d9d8b0746d950fa0ae7b78f28bd33cff823763baf6637d21375d | package network
import (
"fmt"
"os"
"text/tabwriter"
"github.com/docker/swarmkit/api"
"github.com/docker/swarmkit/cmd/swarmctl/common"
"github.com/spf13/cobra"
)
var (
listCmd = &cobra.Command{
Use: "ls",
Short: "List networks",
RunE: func(cmd *cobra.Command, args []string) error {
flags := cmd.Fla... | GO | cmd/swarmctl/network/list.go | runshenzhu/swarmkit | apache-2.0 | 1,259 | 67 | codeparrot/github-code |
24fe878c91a5d7c9bc572437def422bd8c0a95e40d1c1409f47e1a5f9f261d75 | /**
* Copyright 2005-2013 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/ecl2.php
*
* Unless requ... | Java | rice-middleware/it/kew/src/test/java/org/kuali/rice/kew/docsearch/DocumentSearchSecurityTest.java | ua-eas/ksd-kc5.2.1-rice2.3.6-ua | apache-2.0 | 15,188 | 240 | codeparrot/github-code |
ca28452f63185a4064f10914a99323439f76f8fcf0f0a0796e2bc4507096202a | /* LibTomCrypt, modular cryptographic library -- Tom St Denis
*
* LibTomCrypt is a library that provides various cryptographic
* algorithms in a highly modular and flexible manner.
*
* The library is free for all purposes without any express
* guarantee it works.
*/
#include "tomcrypt_private.h"
/**
@file cry... | C | third_party/tomcrypt/src/misc/crypt/crypt_unregister_hash.c | google/google-ctf | apache-2.0 | 1,140 | 43 | codeparrot/github-code |
9cb8185e0d00a61f071654a4f7932e68e6a0b6f16f7036d47fcb8731990d54c5 | /*
* Copyright 2016 agwlvssainokuni
*
* 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 | galleryapp/gallery-web/src/main/java/cherry/gallery/web/applied/ex60/AppliedEx61SubFormBase.java | agwlvssainokuni/springapp2 | apache-2.0 | 4,405 | 107 | codeparrot/github-code |
d19f027f011d8bf2558b8af9b09f34eaf91df9d59e7927bbf910d57802cccfab | """Example training a memory neural net on the bAbI dataset.
References Keras and is based off of https://keras.io/examples/babi_memnn/.
"""
from __future__ import print_function
from tensorflow.keras.models import Sequential, Model, load_model
from tensorflow.keras.layers import Embedding
from tensorflow.keras.laye... | Python | python/ray/tune/examples/pbt_memnn_example.py | pcmoritz/ray-1 | apache-2.0 | 10,874 | 304 | codeparrot/github-code |
8380ec84ea5fe2eda999275cb899f2ee3c084e3e62fafbd105d55262c703d854 | /*
* Javassist, a Java-bytecode translator toolkit.
* Copyright (C) 1999- Shigeru Chiba. All Rights Reserved.
*
* The contents of this file are subject to the Mozilla Public License Version
* 1.1 (the "License"); you may not use this file except in compliance with
* the License. Alternatively, the contents of th... | Java | bytescope.agent/src/main/java/scouter/javassist/compiler/ast/CallExpr.java | scouter-project/bytescope | apache-2.0 | 1,531 | 48 | codeparrot/github-code |
2d6350e35dc33185ffcaf4072c93a699530f286f008fe7ab7e18a198cc6fb38a | /*
* Copyright 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 "license" file a... | C | pq-crypto/bike_r1/bike_r1_kem.c | alexeblee/s2n | apache-2.0 | 8,134 | 272 | codeparrot/github-code |
f39dea4d8bdd1b53660797e153c2a02ce9aa267b86acbd4b2069f4cd632add20 | # -*- coding: utf-8 -*-
from __future__ import print_function
from __future__ import unicode_literals
from __future__ import division
"""
TR-55 Model Implementation
A mapping between variable/parameter names found in the TR-55 document
and variables used in this program are as follows:
* `precip` is referred to as P... | Python | tr55/model.py | WikiWatershed/tr-55 | apache-2.0 | 13,671 | 403 | codeparrot/github-code |
8e6db8e3063277586e737359b470e85ae9ed88aa31b536ccee609bb1a4012d15 | /* sc1_sys.c: SC1 simulator interface
Copyright (c) 2005-2007, SiCortex, Inc. All rights reserved.
Based on SIMH; SIMH copyrights attached.
Copyright (c) 2005, Robert M Supnik
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation f... | C | sc1_sys.c | sergev/SiCortex-sc1 | apache-2.0 | 54,332 | 1,446 | codeparrot/github-code |
de811b0f9126bdd6c7fe52b449fce041139bb65e5810e10a18fc3dcc3d341c40 | /* -*- mode: c; c-basic-offset: 4; indent-tabs-mode: nil -*- */
/* lib/krb5/krb/gic_keytab.c */
/*
* Copyright (C) 2002, 2003, 2008 by the Massachusetts Institute of Technology.
* All rights reserved.
*
* Export of this software from the United States of America may
* require a specific license from the United S... | C | krb5/src/lib/krb5/krb/gic_keytab.c | drankye/kerb-token | apache-2.0 | 12,358 | 383 | codeparrot/github-code |
a87f71be7a35747f5f5ea7fe21d978b2cca16da1a2f82acf7c47eec1b8ebeaf4 | /*
* 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/pagemenu/animationToggle.js | GoogleForCreators/web-stories-wp | apache-2.0 | 2,294 | 78 | codeparrot/github-code |
2e07d984aae822f28e7a94ce259bbcc4ee738d0935984c17fb9b6de98dc56582 | package br.com.preventsenior.reclamacao.model;
import java.util.List;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.NamedQuery;
import javax.persistence.OneToMany... | Java | src/main/java/br/com/preventsenior/reclamacao/model/Setor.java | EduTheodoro/Reclamacao_online | apache-2.0 | 1,848 | 91 | codeparrot/github-code |
b26e476f9f1a8abc5e86e226e837f772317ad72ac0ccf48cc1b7183de3cf9a13 | package com.bingka.weathercool;
import android.content.Context;
import android.database.DatabaseErrorHandler;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteDatabase.CursorFactory;
import android.database.sqlite.SQLiteOpenHelper;
public class WeatherCoolOpenHelper extends ... | Java | src/com/bingka/weathercool/WeatherCoolOpenHelper.java | Bingka/CoolWeather | apache-2.0 | 1,717 | 65 | codeparrot/github-code |
0047531cdaeba020e40008722e8c154458456414f73e1a91c02b48eecb2eb01f | /**
*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 n... | C | celix/shell/private/src/log_command.c | marcojansen/android-inaetics | apache-2.0 | 3,144 | 94 | codeparrot/github-code |
3bfed608a60bb8292f6113b126291267b2aaffa64379214caaf49b016b6a8e60 | /*
* Copyright 2016 Open Networking Laboratory
*
* 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 | core/store/primitives/src/main/java/org/onosproject/store/primitives/impl/DefaultAsyncAtomicValue.java | sonu283304/onos | apache-2.0 | 6,969 | 162 | codeparrot/github-code |
09b265fbd496f4a13f16ee71f17c2934eb0970e209729b078cdd75a3ff393975 | #include <bits/stdc++.h>
#define EL cerr << endl;
#define DB(x) cerr << "#" << (#x) << ": " << (x) << " ";
#define DEB(x) cerr << "#" << (#x) << ": " << (x) << endl;
#define PR(x) cout << (x) << endl
#define X first
#define Y second
#define PB push_back
#define MP make_pair
using namespace std;
typedef unsigned long ... | C++ | Codeforces/VasyaAndPetyasGame.cpp | MartinAparicioPons/Competitive-Programming | apache-2.0 | 1,113 | 52 | codeparrot/github-code |
597ba324dec2e9db4b79234d50187b355db7c4951e3f69fc8aaeaf20791c4841 | // Copyright 2021 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 in ... | Java | ApiDemos/java/app/src/gms/java/com/example/mapdemo/BackgroundColorCustomizationProgrammaticDemoActivity.java | googlemaps/android-samples | apache-2.0 | 3,328 | 76 | codeparrot/github-code |
d7b6e230924baf1daa2074977c8e70e7da6b2b757655b736ebb2725992b0810e | /**
* Copyright 2010-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
*
* Unle... | Java | src/main/java/org/apache/ibatis/migration/MigrationReader.java | geofeedia/migrations | apache-2.0 | 4,320 | 125 | codeparrot/github-code |
3835b4b0a418f9393551396c7dd6b769b8fefd1de4627b8cce25bb713ba9f8e0 | /**
* Copyright 2016 vip.com.
* <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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in w... | Java | saturn-console-api/src/test/java/com/vip/saturn/job/console/com/vip/saturn/job/console/mybatis/repository/DashboardHistoryRepositoryTest.java | vipshop/Saturn | apache-2.0 | 5,741 | 145 | codeparrot/github-code |
c65da56086a20c2dde08e79ae0d9ce44ab9983923d3b5401e90310ccd5b66ee4 | package com.github.obourgain.elasticsearch.http.response.entity.aggs;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
import org.apache.commons.lang3.tuple.Pair;
import org.elasticsearch.common.xcontent.XContentBuilder;
import org.elasticsearch.common.xcontent.XContentParser;
import lomb... | Java | src/main/java/com/github/obourgain/elasticsearch/http/response/entity/aggs/Terms.java | obourgain/elasticsearch-http | apache-2.0 | 3,894 | 98 | codeparrot/github-code |
123fe8a4b0fd9302f0c59ba043ce8890620a23793300a7be0fc14b9b1bf96dea | /*
Copyright 2010-2013 SourceGear, 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 in writing, softwar... | C | src/veracity/src/libraries/wc/wc2scan/sg_wc_prescan_row.c | glycerine/vj | apache-2.0 | 2,441 | 86 | codeparrot/github-code |
95ae5b73ba3e7f2cb3058f0f1a53bbfcb956ade4c3f935175e7eef41bdd29ba6 | /*
* Copyright 2015 Tomas David
*
* 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 w... | Java | app/src/main/java/org/tomasdavid/vehicleroutingproblem/MainActivity.java | tomasdavidorg/android-vehicle-routing-problem | apache-2.0 | 3,052 | 95 | codeparrot/github-code |
5b2902096dcea767163540c508c58cf3300f08e5a57404727467dc3121c8f46a | '''
Kurgan AI Web Application Security Analyzer.
http://www.kurgan.com.br/
Author: Glaudson Ocampos - <glaudson@vortexai.com.br>
Created in May, 11th 2016.
'''
import db.db as db
import config as cf
class WebServer(object):
banner = None
os = None
server = None
framework = None
version = None
... | Python | libs/WebServer.py | glaudsonml/kurgan-ai | apache-2.0 | 3,716 | 141 | codeparrot/github-code |
ce1ff0b6fa3d3d12b13e34c54b3b027fff51c82d69602e813878796581209db5 | package com.ambrogio.dan.playoffs;
import android.app.Activity;
import android.content.Intent;
import android.content.SharedPreferences;
import android.support.v7.app.ActionBarActivity;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;
import android.widget.But... | Java | app/src/main/java/com/ambrogio/dan/playoffs/MainActivity.java | JackAnansi/NHLPlayoffsSim | apache-2.0 | 2,917 | 85 | codeparrot/github-code |
b7d95e0f0589b3340d51ad484806f7d81b0a8de9ec4dec4779157c1d0d243295 | package org.eddy.solve;
import java.util.concurrent.ThreadFactory;
import java.util.concurrent.atomic.AtomicInteger;
/**
* Created by Justice-love on 2017/7/17.
*/
public class NotifyThreadFactory implements ThreadFactory{
private static final AtomicInteger poolNumber = new AtomicInteger(1);
private final ... | Java | base/src/main/java/org/eddy/solve/NotifyThreadFactory.java | justice-code/Thrush | apache-2.0 | 1,432 | 45 | codeparrot/github-code |
cd5b8fcd700d47606a32c780d0071f1d0d93982f455a61c6a2f03b9089c292e1 | package sk.henrichg.phoneprofilesplus;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.os.Handler;
import android.os.PowerManager;
public class NFCEventEndBroadcastReceiver extends BroadcastReceiver {
@Override
public void onReceive(Cont... | Java | phoneProfilesPlus/src/main/java/sk/henrichg/phoneprofilesplus/NFCEventEndBroadcastReceiver.java | henrichg/PhoneProfilesPlus | apache-2.0 | 3,918 | 82 | codeparrot/github-code |
dacc662c3188b9c0db7fd2a9b84da2c0e46a04b1e76cf10a0d15b4be440ce9d9 | /**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you... | Java | hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/web/resources/GetOpParam.java | robzor92/hops | apache-2.0 | 2,657 | 97 | codeparrot/github-code |
f38b9ea5612bbffabd22e26159f5b9de0531036110c069c6696ad5424fd35d24 | /*
* Copyright (C) 2021 Axon Ivy AG
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... | Java | src/main/java/ch/ivyteam/ivy/maven/util/CompilerResult.java | axonivy/project-build-plugin | apache-2.0 | 2,239 | 78 | codeparrot/github-code |
bca0748ed89a22b01ec69e330269ec6215cd20dcb23411256b997de35c9ac5bd | /*
* 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 | commons/nifi-expression-language/src/main/java/org/apache/nifi/attribute/expression/language/evaluation/functions/LessThanEvaluator.java | rdblue/incubator-nifi | apache-2.0 | 2,257 | 61 | codeparrot/github-code |
efa172d729752b18011a4ea25dcb8d90190e4b312fd1a6d52bbb682cca76c45b | /**
* @description CoatCheck SVG Icon.
* @property {string} a11yTitle - Accessibility Title. If not set uses the default title of the status icon.
* @property {string} colorIndex - The color identifier to use for the stroke color.
* If not specified, this component will default to muiTheme.palette.textColor.
* @... | JavaScript | src/js/components/icons/base/CoatCheck.js | odedre/grommet-final | apache-2.0 | 3,055 | 66 | codeparrot/github-code |
2ee2833a8e95c206ff9540ddd77618203e963b30cfdb054e76408824b647d3b4 | package org.kayura.activiti.vo;
import java.io.Serializable;
import java.util.Map;
import org.activiti.engine.form.FormProperty;
import org.kayura.utils.StringUtils;
public class FormPropertyVo implements Serializable {
private static final long serialVersionUID = 1607099846369884335L;
private String... | Java | src/main/java/org/kayura/activiti/vo/FormPropertyVo.java | KayuraTeam/kayura-activiti | apache-2.0 | 2,328 | 110 | codeparrot/github-code |
94db2eba4df543e6630d8d5518792c0ad62ad3fd6cfc6072b92ee99a7248191d | package kube
import (
"fmt"
"github.com/box/kube-applier/sysutil"
"io/ioutil"
"log"
"os/exec"
"regexp"
"strconv"
"strings"
)
const (
// Default location of the service-account token on the cluster
tokenPath = "/var/run/secrets/kubernetes.io/serviceaccount/token"
// Location of the kubeconfig template file... | GO | kube/client.go | ahakanbaba/kube-applier | apache-2.0 | 5,235 | 149 | codeparrot/github-code |
2bd39ee9102a1319cd161ee38e98b6cd2379a2d750a6816ac1d41088b7bd3c9f | /*
* Copyright 2019 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in w... | Java | samples/spring-framework/src/main/java/com/example/vision/VisionController.java | googleapis/java-vision | apache-2.0 | 3,300 | 89 | codeparrot/github-code |
b3418c8a807e90d774884e43d1770b232d9cae7bed41ca4ec24545b4b17bb68a | #############################################################################
#
# 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 | report/models.py | asrashley/ieee-802-11-timeline | apache-2.0 | 3,172 | 71 | codeparrot/github-code |
905e8d59306a8b4897258f2258d5a898fd00221cac12dc14550646ab9262d8a5 | /*
* 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 | server/src/main/java/org/apache/accumulo/server/monitor/servlets/XMLServlet.java | wjsl/jaredcumulo | apache-2.0 | 8,340 | 178 | codeparrot/github-code |
8e2c42caa2048474807f473a4842a4808fd4a701a931f592c0d7d9f3cfccfb1c | var appLocale = {lc:{"ar":function(n){
if (n === 0) {
return 'zero';
}
if (n == 1) {
return 'one';
}
if (n == 2) {
return 'two';
}
if ((n % 100) >= 3 && (n % 100) <= 10 && n == Math.floor(n)) {
return 'few';
}
if ((n % 100) >= 11 && (n % 100) <= 99 && n == Math.floor(n)) {
return '... | JavaScript | dashboard/public/apps-package/js/gl_es/studio_locale.js | bakerfranke/code-dot-org | apache-2.0 | 24,633 | 458 | codeparrot/github-code |
bc53e0aa2b4671315da44edaaf64a53b6d03c421de81e71cdb151980d8006a01 | package com.ecochain.service.impl;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ecochain.service.AclResourcesService;
import com.ecochain.user.entity.AclResources;
import com.ecochain.user.entity.AclResourcesE... | Java | src/main/java/com/ecochain/service/impl/AclResourcesServiceImpl.java | xionggit/BootLoginService | apache-2.0 | 1,374 | 48 | codeparrot/github-code |
71884ad79be80e474135771f1a0799122d8a06bac99bea1e2d1bbfb70c8c95e4 | #include "generator/regions/collector_region_info.hpp"
#include "generator/feature_builder.hpp"
#include "generator/osm_element.hpp"
#include "coding/file_writer.hpp"
#include "base/assert.hpp"
#include "base/logging.hpp"
#include "base/macros.hpp"
#include <map>
namespace generator
{
namespace regions
{
std::stri... | C++ | generator/regions/collector_region_info.cpp | alexzatsepin/omim | apache-2.0 | 3,801 | 138 | codeparrot/github-code |
8b598d0d0b127fe930f7f1cdf22e299b480f673246322271a8b3ff681c0911a5 | package co.yishun.library.datacenter;
import android.support.v4.widget.SwipeRefreshLayout;
import com.malinskiy.superrecyclerview.SuperRecyclerView;
/**
* Created by carlos on 2/6/16.
*/
public class SuperRecyclerViewRefreshable implements Refreshable {
private final SuperRecyclerView mSuperRecyclerView;
... | Java | datacenter/src/main/java/co/yishun/library/datacenter/SuperRecyclerViewRefreshable.java | a642500/DataCenter | apache-2.0 | 1,297 | 43 | codeparrot/github-code |
3a550e8579be8ca81215950ee7faecb687b51b2eb4820391a10f6a7f57d02668 | /*
* Copyright 2015-2017 JTS
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in ... | Java | src/main/scala/ru/jts/decompiler/ll/stack/MathEvent.java | Camelion/nasc-decompiler | apache-2.0 | 4,412 | 150 | codeparrot/github-code |
90da72d00738d44edef9006592796a1197f56279f44cc2de4126fffe08749290 | package de.hsbo.geo.simsamples.applications;
import java.text.DecimalFormat;
import java.text.NumberFormat;
import java.util.ArrayList;
import java.util.Locale;
import de.hsbo.geo.simsamples.markov.instances.SimpleMarkovChain;
/**
* Simple Markov model describing a random movement between two absorbers.
* The exam... | Java | src/de/hsbo/geo/simsamples/applications/RandomMovementExample.java | bogeo/simsamples | apache-2.0 | 2,985 | 107 | codeparrot/github-code |
1dfd0827b00941f317b38d3f347303e109be667ea611c3058e2df431470152ab | /*
* 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 | oak-segment-tar/src/main/java/org/apache/jackrabbit/oak/segment/http/HttpStoreRevisions.java | tripodsan/jackrabbit-oak | apache-2.0 | 2,535 | 78 | codeparrot/github-code |
678139bf3809ba8788b3c587ee6d24a380af6a3edefc4b377d8cb808bd8bbdd9 | // Copyright 2014 The Oppia Authors. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by ap... | JavaScript | core/templates/dev/head/pages/exploration_editor/editor_tab/StateGraphVisualizationDirective.js | AllanYangZhou/oppia | apache-2.0 | 15,193 | 372 | codeparrot/github-code |
dcf80a92c65e879ac0b4f9c892d94164e9a1fe99ec54b0a0242b1a7a491b8085 | /*
* Copyright 2021 ThoughtWorks, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agr... | Java | common/src/test/java/com/thoughtworks/go/serverhealth/HealthStateScopeTest.java | marques-work/gocd | apache-2.0 | 6,236 | 119 | codeparrot/github-code |
dd8edb075d1853b89ed8b21bbaa6707afbc0278df1384d718b71a58b1531f824 | package com.rasterfoundry.database
import com.rasterfoundry.database.Implicits._
import com.rasterfoundry.datamodel.{Scene, User, _}
import com.rasterfoundry.common.SceneToLayer
import cats.data._
import cats.implicits._
import com.rasterfoundry.datamodel.{Order, PageRequest}
import doobie._
import doobie.implicits._... | Scala | app-backend/db/src/main/scala/SceneWithRelatedDao.scala | azavea/raster-foundry | apache-2.0 | 11,749 | 309 | codeparrot/github-code |
e5a638c54d74e4f20e980cb0e122b28d9341698aa26176996eed2c837c75b75c | /* Copyright 2017 The TensorFlow Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or a... | C++ | tensorflow/compiler/tf2xla/kernels/stateless_random_ops.cc | ageron/tensorflow | apache-2.0 | 9,142 | 241 | codeparrot/github-code |
39c841f1fcc7000e660108e29efb8ec16f334d928aa107990cd7a4e4b1b80d17 | package com.planet_ink.coffee_mud.Races;
import com.planet_ink.coffee_mud.core.interfaces.*;
import com.planet_ink.coffee_mud.core.*;
import com.planet_ink.coffee_mud.Abilities.interfaces.*;
import com.planet_ink.coffee_mud.Areas.interfaces.*;
import com.planet_ink.coffee_mud.Behaviors.interfaces.*;
import com.pl... | Java | com/planet_ink/coffee_mud/Races/Deer.java | welterde/ewok | apache-2.0 | 5,029 | 133 | codeparrot/github-code |
2590c2d7b9679cceb4f7a5115a824dabc6453e25e2e7abf5e5b7d7aa522d4d52 | package com.lid.lib;
import android.content.Context;
import android.graphics.Canvas;
import android.util.AttributeSet;
import android.widget.TextView;
public class LabelTextView extends TextView {
LabelViewHelper utils;
public LabelTextView(Context context) {
this(context, null);
}
public L... | Java | lib/src/main/java/com/lid/lib/LabelTextView.java | linger1216/labelview | apache-2.0 | 2,507 | 105 | codeparrot/github-code |
ec0545b6c5306e1e027fa051946cf189d7805773e16ce14dcbf263a73b89a99e | /*
* Copyright 2015 Cognitive Medical Systems, Inc (http://www.cognitivemedicine.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-... | Java | ucs-nifi-common/src/main/java/org/socraticgrid/hl7/ucs/nifi/common/serialization/ConversationInfoSerializer.java | SocraticGrid/UCS-Implementation | apache-2.0 | 4,734 | 106 | codeparrot/github-code |
037bdc582c38ffe34ff1172d2082562653356baafe1f70964ea157cfffec90e3 | // Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.config.model;
import com.yahoo.cloud.config.ApplicationIdConfig;
import com.yahoo.cloud.config.ClusterListConfig;
import com.yahoo.cloud.config.ModelConfig;
import com.yahoo.cloud.config.ModelConf... | Java | config-model/src/main/java/com/yahoo/config/model/ApplicationConfigProducerRoot.java | vespa-engine/vespa | apache-2.0 | 11,848 | 332 | codeparrot/github-code |
ed83fb8403f2358b752714b67ad2e5fb4fc45863c89ce5a8c985fc3a50d33871 | /*
* Copyright (c) 2016 Cisco and/or its affiliates.
* 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 applicabl... | C | vnet/vnet/lisp-gpe/lisp_gpe.c | muharif/vpp | apache-2.0 | 18,936 | 647 | codeparrot/github-code |
20d3ca91f0057501dd5f5ab1dac2fe4b5f3d812dcad9e45d0dbe7a5c73cb3570 | /*
* Copyright 2012-2020 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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... | Java | spring-cloud-function-web/src/main/java/org/springframework/cloud/function/web/mvc/ReactorAutoConfiguration.java | olegz/spring-cloud-function | apache-2.0 | 2,664 | 62 | codeparrot/github-code |
c668566a53ec4ed986f9eaed3950dbe900fa4da3eb900ff4c3ae9a5123a0a350 | function Controller() {
function closeModal(e) {
$.modal.fireEvent("removeClose", e);
}
function handleTableViewClick(e) {
if (1 == Alloy.Globals.purchases[e.index] || 1 == Alloy.Globals.purchases[1]) {
for (var i = 0; $.tv.data[0].rows.length > i; i++) $.tv.data[0].rows[i].hasCh... | JavaScript | Resources/alloy/controllers/set_select.js | ponnam/ESAT-131226 | apache-2.0 | 21,535 | 716 | codeparrot/github-code |
da7053865abeef78c8e9334132c1cef4890779422fef96640f103bb8d5172401 | /*
* CWS, Cryptographic Web Share - open source Cryptographic Sharing system.
* Copyright (c) 2016-2022, haugr.net
* mailto: cws AT haugr DOT net
*
* CWS is free software; you can redistribute it and/or modify it under the
* terms of the Apache License, as published by the Apache Software Foundation.
*
* CWS is... | Java | cws-core/src/test/java/net/haugr/cws/core/ShareBeanTest.java | JavaDogs/cws | apache-2.0 | 4,161 | 114 | codeparrot/github-code |
ce603c334b623a543cf9f3b70d130e2f8c464e188d5701198de65fee8a6a236e | /*
* ! ${copyright}
*/
// Provides control sap.m.P13nSelectionItem.
sap.ui.define([
'jquery.sap.global', './library', 'sap/ui/core/Item'
], function(jQuery, library, Item) {
"use strict";
/**
* Constructor for a new P13nSelectionItem.
*
* @param {string} [sId] ID for the new control, generated automaticall... | JavaScript | src/sap.m/src/sap/m/P13nSelectionItem.js | olirogers/openui5 | apache-2.0 | 1,426 | 63 | codeparrot/github-code |
477b4c55fef61f7e4e1392822ae642b7a39e8e2dc523de7ea80592e8638195a6 | /*
* JBoss, Home of Professional Open Source.
* Copyright 2016 Red Hat, Inc., and individual contributors
* as indicated by the @author tags.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the Licen... | Java | src/main/java/org/wildfly/security/auth/client/SetCredentialsConfiguration.java | sguilhen/wildfly-elytron | apache-2.0 | 5,677 | 124 | codeparrot/github-code |
eeb1ce69f0a176ca56101611980f40c86663d20f54a55f66588f294c6122f28e | /*
* Copyright 2010-2016 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 "l... | Java | aws-java-sdk-emr/src/main/java/com/amazonaws/services/elasticmapreduce/model/transform/ClusterJsonMarshaller.java | dump247/aws-sdk-java | apache-2.0 | 7,285 | 175 | codeparrot/github-code |
c6e4654d5a8de5736d0504718fd659e33e98212e0f83f3fdf0cba08687e988fe | /********************************************************************************
* Ledger Node JS API
* (c) 2016-2017 Ledger
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* h... | JavaScript | test/testEth4.js | shyft-network/ledger-node-js-api | apache-2.0 | 1,310 | 35 | codeparrot/github-code |
5641ad822fd54e23c355112d4eb13f4b4ce765bf1c6f1b0418f4804b05192b45 | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="Ionic makes it incredibly easy to build beautiful and interactive mobile apps using HTML5 and AngularJS.">
<meta name="keywords" content="html5,ja... | HTML | _site/docs/1.0.0-rc.1/api/directive/ionList/index.html | martinjbaker/ionic-site | apache-2.0 | 35,035 | 1,309 | codeparrot/github-code |
fe0b306821b993ed02d7a659af844015ff654f04403724dec1c68d98a4486c24 | import numpy as np
import matplotlib.pyplot as plt
def readmesh(fname):
"""
input
-----
fname: string
gmsh file name
output
------
V: array
vertices
E: array
element ids
"""
import gmsh
mesh = gmsh.Mesh()
mesh.read_msh(f... | Python | ns.py | lukeolson/python-mesh-scripts | apache-2.0 | 1,505 | 80 | codeparrot/github-code |
b0ac2b0d8c92f61730febf69b736ac64e91ec87a65a699a78922d8d8a9af0ce6 | /*
* JBoss, Home of Professional Open Source
* Copyright 2011 Red Hat Inc. and/or its affiliates and other contributors
* as indicated by the @authors tag. All rights reserved.
* See the copyright.txt in the distribution for a
* full listing of individual contributors.
*
* Licensed under the Apache License, Vers... | Java | junit/container/src/test/java/org/jboss/arquillian/junit/container/JUnitTestBaseClass.java | arquillian/arquillian-core | apache-2.0 | 6,363 | 169 | codeparrot/github-code |
e73eae5b445c9ae4b409e8b32d2ae303d1be6ff33e4a187bdeef80226532b1ba | // 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 in w... | C# | examples/AdManager/CSharp/v202108/CmsMetadataService/GetAllCmsMetadataKeys.cs | googleads/googleads-dotnet-lib | apache-2.0 | 3,572 | 95 | codeparrot/github-code |
2ebb48299b07e0d9188b750412a1a970a4d91bf194834194bdea2e7d93470f2c | /*
* Copyright 2010-2011 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 "l... | Java | src/main/java/com/amazonaws/services/identitymanagement/model/transform/RemoveUserFromGroupRequestMarshaller.java | apetresc/aws-sdk-for-java-on-gae | apache-2.0 | 2,071 | 51 | codeparrot/github-code |
f0f86a99e1bdc2c8da51b57a5356c0643de2bc4eb5b8436551f571b6845580c6 | <!DOCTYPE html>
<!--[if IE 9 ]><html class="ie9"><![endif]-->
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Material Admin</title>
<!-- Vendor CSS -->
... | HTML | public/ui/alerts.html | Tendors/phpshell | apache-2.0 | 34,159 | 602 | codeparrot/github-code |
8c476e93653dd92fa4bfadacdd8e75a9767ed6a197b86ca2b5e66a0a34db5a1f | package Paws::ElastiCache::Event;
use Moose;
has Date => (is => 'ro', isa => 'Str');
has Message => (is => 'ro', isa => 'Str');
has SourceIdentifier => (is => 'ro', isa => 'Str');
has SourceType => (is => 'ro', isa => 'Str');
1;
### main pod documentation begin ###
=head1 NAME
Paws::ElastiCache::Event
=he... | Perl | auto-lib/Paws/ElastiCache/Event.pm | ioanrogers/aws-sdk-perl | apache-2.0 | 1,917 | 80 | codeparrot/github-code |
d89f2bd035deeeeafdc8c84d51464f659584bb265240cb42d768b00a3aa62425 | /**
* Copyright 2003-2010 Shane Isbell
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless requir... | Java | javax-provisioning/src/main/java/javax/provisioning/Deliverable.java | sisbell/jvending | apache-2.0 | 2,591 | 92 | codeparrot/github-code |
04242f95c772ce29368d648fac6607bd9ed1ddea7b5206adb36b936027b26e83 | /* JAT: Java Astrodynamics Toolkit
*
* Copyright (c) 2003 The JAT Project. All rights reserved.
*
* This file is part of JAT. JAT is free software; you can
* redistribute it and/or modify it under the terms of the
* NASA Open Source Agreement, version 1.3 or later.
*
* This program is distributed in the ho... | Java | src/main/resources/libs/JAT/jat/measurements/ObservationMeasurementList.java | MaximTar/satellite | apache-2.0 | 19,780 | 618 | codeparrot/github-code |
439abdb971c1c51b82a6615bab9a4b67900b638c320a71abad688f6653e58148 | package link.anyauto.smartkey.apt;
import com.google.common.collect.Sets;
import com.squareup.javapoet.ClassName;
import com.squareup.javapoet.ParameterizedTypeName;
import com.squareup.javapoet.TypeName;
import java.util.Set;
public class ClazzNames {
public static final ClassName APPLICATION = ClassName.get("... | Java | apt/src/main/java/link/anyauto/smartkey/apt/ClazzNames.java | foreveruseful/smartkey | apache-2.0 | 4,050 | 58 | codeparrot/github-code |
fee35d48c4c28a25a5cf36bcd691f6ab077085ba5a147995a026f1f2976619d8 | package com.enetwiz;
import com.vaadin.navigator.ViewChangeListener.ViewChangeEvent;
import com.vaadin.spring.annotation.SpringView;
import com.vaadin.spring.annotation.UIScope;
import com.vaadin.ui.Button;
import com.vaadin.ui.Component;
import com.vaadin.ui.Label;
import com.vaadin.ui.VerticalLayout;
import javax.an... | Java | mvp-example/src/main/java/com.enetwiz/BodyViewImpl.java | enetwiz/vaadin-examples | apache-2.0 | 1,371 | 56 | codeparrot/github-code |
bbbfde0489fdca9bce5fb8c4b31d3e362fc3594d980de5076adc2274afd1a91d | var yt = yt || {};
//加载图片
yt.loadImg = function ($imgs, time) {
var _time = 0;
time = time || 200;
$imgs.each(function () {
var $that = $(this);
if ($that.data('hasload')) {
return false;
}
setTimeout(function () {
$that.fadeOut(0);
$tha... | JavaScript | zt/sgj/js/my.js | linmingling/demo | apache-2.0 | 13,913 | 509 | codeparrot/github-code |
58b967788699677bb3be002456512ab655ba5d9d7038979beb5884fee8f96c12 | package com.harmazing.openbridge.mod.operations.elasticsearch.bean;
import java.util.HashMap;
import java.util.Map;
public class AppMonitorForm {
private String appId;
private String containId;
private String envId;
private String beginDate;
private String endDate;
//d h m
private... | Java | docs/sourcecodes/OpenBridge-base/ob-elk/src/main/java/com/harmazing/openbridge/mod/operations/elasticsearch/bean/AppMonitorForm.java | gavin2lee/incubator | apache-2.0 | 1,906 | 119 | codeparrot/github-code |
e59efd66e78567d6ecd473d525ce58eaa06cc89984518dd59417f05f8394bb32 | # coding=utf-8
"""
This module, problem_019.py, solves the nineteenth project euler problem.
"""
from project_euler_problems.problem import Problem
from datetime import date
'''
You are given the following information, but you may prefer to do some research for yourself.
1 Jan 1900 was a Monday.
Thirty days has Se... | Python | project_euler_problems/problems/problem_019.py | utarsuno/urbtek | apache-2.0 | 1,284 | 44 | codeparrot/github-code |
b33dabe5b83f1520b4542301d4c4511950d8ff79e80498c8cd50dc1c6e814d4d | package com.hbase;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
import org.apache.hadoop.conf.Configuration;
import org.apache.hadoop.hbase.HBaseConfiguration;
import org.apache.hadoop.hbase.HColumnDescriptor;
import org.apache.hadoo... | Java | tdh_hbase/src/com/hbase/HBaseTest.java | guohan/hadoop | apache-2.0 | 7,143 | 168 | codeparrot/github-code |
7195acd1b97580a7a923e40058b757a9ddf6a4e73d2607f46804baea4d9fb24b | // -*- coding: us-ascii-unix -*-
// Copyright 2012 Lukas Kemmer
//
// Licensed under the Apache License, Version 2.0 (the "License"); you
// may not use this file except in compliance with the License. You
// may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by a... | C++ | gui/color-panel.cpp | lukas-ke/faint-graphics-editor | apache-2.0 | 4,184 | 163 | codeparrot/github-code |
9e3cbe28d10a36958d101ac838249d1516a89574293c63d8d0b1b01aeb4553fd | /*
* Twitter Search Plugin jquery.retina.js
* https://github.com/tylercraft/jQuery-Retina
*
* Copyright (c) 2012 tylercraft.com
* Author: Tyler Craft
* Dual licensed under the MIT and GPL licenses.
* https://github.com/tylercraft/jQuery-Retina
*
*/
(function( $ ) {
$.fn.retina = function( options ) {
... | JavaScript | Study/ASP.NET/jQuery/HTML5 & jQuery Examples/assets/js/jquery.retina.js | ygrinev/ygrinev | apache-2.0 | 2,765 | 92 | codeparrot/github-code |
bcadd81e62712a1478d629e2ca29ad830df57024b26ac029bc76658525c83578 | /*
* Copyright 2014 Dan Haywood
*
* 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 | fixture/src/main/java/org/isisaddons/app/kitchensink/fixture/other/OtherBoundedObjectsFixture.java | isisaddons/isis-app-kitchensink | apache-2.0 | 1,448 | 42 | codeparrot/github-code |
a02f9f9a5a2b95e2735ea74704847bf3431c5daa1c7cf6a8b1a466e5a54ee78a | using System;
using System.Collections.Generic;
using System.Configuration;
using System.IO;
using System.Linq;
using System.Reflection;
using System.Runtime.Remoting;
using System.Runtime.Remoting.Channels;
using System.Runtime.Remoting.Channels.Ipc;
using System.ServiceProcess;
using System.Text;
using NRack.Base;
us... | C# | src/NRack.Server/Program.cs | kerryjiang/NDock | apache-2.0 | 11,601 | 386 | codeparrot/github-code |
c57a2945b7c84ddc4ac75bdb413e617751d13fec2f567998ec83e85cae54ccf1 | package com.guitar.db;
import static org.junit.Assert.*;
import java.util.List;
import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.test.... | Java | src/test/java/com/guitar/db/LocationPersistenceTests.java | sabotuer99/SpringDataJpaTutorial | apache-2.0 | 4,667 | 137 | codeparrot/github-code |
14c5463bb86ce0bb14e91770d6297de5dda916a617b535e3dd176d67dd62c03f | /**
*
* Copyright (c) 2017, Emil Forslund. 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 b... | Java | src/main/java/com/github/pyknic/stiletto/internal/util/ReflectionUtil.java | Pyknic/stiletto | apache-2.0 | 2,883 | 87 | codeparrot/github-code |
6f5ed07a4f1f7a610d3ef014820393564856a6c8f713849c95ab5b84e4610f41 | package org.lnu.is.web.rest.controller.person.award;
import static org.mockito.Matchers.any;
import static org.mockito.Matchers.anyLong;
import static org.mockito.Mockito.doThrow;
import static org.mockito.Mockito.verify;
import static org.mockito.Mockito.when;
import static org.springframework.test.web.servlet.reques... | Java | is-lnu-rest-api/src/test/java/org/lnu/is/web/rest/controller/person/award/PersonAwardControllerTest.java | ifnul/ums-backend | apache-2.0 | 6,111 | 191 | codeparrot/github-code |
019818ec647512a5d8d82c064b8317d2fc051f96ade30b0d7aa2e1271be260ee | # Copyright (c) 2013 eBay Software Foundation
# 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
#
# Unl... | Python | trove/guestagent/datastore/experimental/couchbase/service.py | hplustree/trove | apache-2.0 | 10,461 | 269 | codeparrot/github-code |
0069b7ece855cb2b03c9a0d5151654ba0114206f502d7c399403bd27ae2a3602 | /*
* 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/org/glite/gridcake/gridftp/GridFTPService.java | csuarez/gridcake | apache-2.0 | 4,948 | 131 | codeparrot/github-code |
e865e590c3226dbc38364075f489032e1e910ea2b928058719b9e1be54d05b27 | /** *****************************************************************************
* Copyright 2014 Karsten Philipp Boris Hahn
*
* 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:/... | Scala | src/main/java/com/github/katjahahn/parser/RichHeader.scala | katjahahn/PortEx | apache-2.0 | 4,583 | 110 | codeparrot/github-code |
e924f1e42011a2af167866fd696db7d0422003a68c736cd66fb916379b482ae1 | package ru.szhernovoy.carstore.dao;
import org.junit.Assert;
import org.junit.Test;
import ru.szhernovoy.carstore.model.*;
import static org.hamcrest.core.Is.is;
import static org.junit.Assert.*;
/**
* Created by Admin on 25.01.2017.
*/
public class CarPartyDBManagerTest {
@Test
public void whenWeCreatePar... | Java | PartX/lesson2/src/test/java/ru/szhernovoy/carstore/dao/CarPartyDBManagerTest.java | SergeyZhernovoy/Java-education | apache-2.0 | 1,667 | 56 | codeparrot/github-code |
f333dc738a7462f42e6648905ee0eea76a6ba32a7e214ab10ceb36ce909d761d | /*
* Copyright 2014-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/python/CxxPythonExtensionDescription.java | k21/buck | apache-2.0 | 19,331 | 499 | codeparrot/github-code |
a658a60ed62011f0ceed947bb812431e33e9a6da0478ae2c88555df1ca7518bf | #!/usr/bin/env perl
# 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 may obtain a copy of the License at
#
# htt... | Perl | scripts/production/backup_master.pl | Ensembl/ensembl-compara | apache-2.0 | 4,062 | 148 | codeparrot/github-code |
6c4c4321c36e1229065b6629518e01c0a5c70a468ea836013532750b91f29fda | #!/usr/bin/env python2.7
# -*- coding: utf-8 -*-
"""
DEV SCRIPT
This is a hacky script meant to be run mostly automatically with the option of
interactions.
dev.py is supposed to be a developer non-gui interface into the IBEIS software.
dev.py runs experiments and serves as a scratchpad for new code and quick scripts... | Python | ibeis/dev.py | SU-ECE-17-7/ibeis | apache-2.0 | 32,707 | 919 | codeparrot/github-code |
735c1ffe0c90c0b64a7aafc491cf13ff9f19fa66d39a1c80ef48874c1fe320db | /*
* Copyright 2013-2014 Urs Wolfer
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... | Java | src/main/java/com/urswolfer/gerrit/client/rest/http/accounts/AccountsRestClient.java | sstafford/gerrit-rest-java-client | apache-2.0 | 3,021 | 89 | codeparrot/github-code |
5000eb0593c01ede5f02bad13b6281fe874a9e0e28fc252faba22bccc0fe3bde | /* Copyright 2020 The TensorFlow Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or a... | TypeScript | tensorboard/plugins/hparams/tf_hparams_query_pane/tf-hparams-query-pane.ts | tensorflow/tensorboard | apache-2.0 | 32,949 | 883 | codeparrot/github-code |
98b954ec2d5384dd6d4214b1d3fe04bbd735710daad1f9e69c510022127830c6 | {% extends "website/new-base.html" %}
{% block content %}
<style type="text/css">
svg {
font-size: 12px;
}
rect.background {
fill: none;
pointer-events: all;
}
.axis {
shape-rendering: crispEdges;
}
.axis path, .axis line {
fill: none;
stroke: #000;
... | HTML | api/templates/website/sponsor_breakdown.html | fras2560/mlsb-platform | apache-2.0 | 8,043 | 206 | codeparrot/github-code |
f82a75b0edd6568bbb4f8496466c2f8a17a504a34df62453bdfb1af9ea9f5444 | /*
* 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-mediaconnect/src/main/java/com/amazonaws/services/mediaconnect/model/transform/DescribeOfferingRequestMarshaller.java | aws/aws-sdk-java | apache-2.0 | 2,043 | 56 | codeparrot/github-code |
dd6878542b5be9b82cfa203d368b31dca5d7012b6bd2053b33fe93d5369c9237 | /*
* 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 | tomcat-8.0.9-sourcecode/java/org/apache/catalina/core/AsyncListenerWrapper.java | wenzhucjy/tomcat_source | apache-2.0 | 1,686 | 60 | codeparrot/github-code |
7d77e4988b136771b9c3386cb8810857a3d0ecd1b0637a5e45ab0e81b179805e | package dev.code_n_roll.gatling.jdbc.check
import dev.code_n_roll.gatling.jdbc.JdbcCheck
import dev.code_n_roll.gatling.jdbc.Predef.ManyAnyResult
import io.gatling.core.check._
import scala.annotation.implicitNotFound
/**
* Created by ronny on 15.05.17.
*/
trait JdbcCheckSupport {
def simpleCheck = JdbcSimple... | Scala | src/main/scala/dev/code_n_roll/gatling/jdbc/check/JdbcCheckSupport.scala | rbraeunlich/gatling-jdbc | apache-2.0 | 2,379 | 46 | codeparrot/github-code |
778c7d40ff7b961ab9611d1d27e5032ea0c85619139783a80e72adfc9ed15a5e | /* eslint camelcase: "off" */
/* eslint angular/angularelement: "off" */
(function() {
'use strict';
angular.module('app.services')
.factory('DialogFieldRefresh', ['lodash', 'CollectionsApi', 'EventNotifications', DialogFieldRefreshFactory]);
/** @ngInject */
function DialogFieldRefreshFactory(lodash, Co... | JavaScript | client/app/services/dialog-field-refresh.service.js | dtaylor113/manageiq-ui-self_service | apache-2.0 | 5,991 | 167 | codeparrot/github-code |
2e9a33166815857d50ead41bd15bef0e0a0a720bf1f01dfb9e45ff85488825db | /*
Copyright 2017 Google Inc.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
dis... | GO | go/vt/mysqlctl/mysql_daemon.go | pivanof/vitess | apache-2.0 | 18,046 | 524 | codeparrot/github-code |
84fbf072bcbad1d54377890fae2f3e390b7fd48e603525fd3dfc5699d66f4993 | #!/usr/bin/env python
'''You can easily read off two sample,line coordinates from qview, but ISIS
crop wants one sample,line and then offsets. This just takes two coordinates,
does the math, and then calls crop.'''
# Copyright 2016, 2019, Ross A. Beyer (rbeyer@seti.org)
#
# Licensed under the Apache License, Version ... | Python | cropsl.py | rbeyer/scriptorium | apache-2.0 | 2,797 | 80 | codeparrot/github-code |
6f8cc406fccad7927790c3311bc511294800e7100937d61596be9e5c6fd7e55a | #include "libmockspotify.h"
#include "util.h"
sp_track *
mocksp_track_create(const char *name, int num_artists, sp_artist **artists, sp_album *album,
int duration, int popularity, int disc, int index, sp_error error,
bool is_loaded, sp_track_availability availability, sp_track_o... | C | src/track.c | mopidy/libmockspotify | apache-2.0 | 2,989 | 95 | codeparrot/github-code |
1a918d5b5ac6d7f44cac673e33e590ecbd1095433d4e4578c830d7898fd7b90c | package com.ss.editor.model.undo.impl;
import com.jme3.scene.Node;
import com.jme3.scene.Spatial;
import com.ss.editor.Messages;
import com.ss.editor.model.undo.editor.ModelChangeConsumer;
import com.ss.editor.model.undo.impl.AbstractEditorOperation;
import com.ss.editor.plugin.api.RenderFilterExtension;
import org.je... | Java | src/main/java/com/ss/editor/model/undo/impl/AddChildOperation.java | JavaSaBr/jME3-SpaceShift-Editor | apache-2.0 | 2,122 | 68 | codeparrot/github-code |
f4a5d76fd44abfc64ef30c11a9c494b226f93ca063c1f9caf3556801c3bb4ce2 | /*
* Copyright (C) 2017 Simon Vig Therkildsen
*
* 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 | cathode/src/main/java/net/simonvt/cathode/ui/history/AddToHistoryDialog.java | SimonVT/cathode | apache-2.0 | 5,632 | 167 | codeparrot/github-code |
f0c36724347ccbe27fda965f467dc6004782b94bb768cbc0b118731356aa3de3 | /* The contents of this file are subject to the Health Level-7 Public
* License Version 1.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.hl7.org/HPL/
*
* Software distributed under the License is distributed on an "AS IS"
... | Java | hl7-javasig/src/org/hl7/types/impl/EDimpl.java | markusgumbel/dshl7 | apache-2.0 | 2,042 | 100 | codeparrot/github-code |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.