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 |
|---|---|---|---|---|---|---|---|---|
49e5c4531ff888910f0241f9a41bd16050a29629b52ead141971c24997697ae7 | function Migrator(config, transactionDb) {
this.db = transactionDb;
this.dbname = config.adapter.db_name;
this.table = config.adapter.collection_name;
this.idAttribute = config.adapter.idAttribute;
this.column = function(name) {
var parts = name.split(/\s+/), type = parts[0];
switch ... | JavaScript | Resources/alloy/sync/sql.js | rosvi/device_query | apache-2.0 | 11,019 | 273 | codeparrot/github-code |
9cc8c62312b301e43e5053c1fa42ef33c96bfd60e32151b59110de7d57ecc189 | package com.heaven7.java.data.mediator.compiler.insert;
import com.heaven7.java.data.mediator.compiler.GlobalConfig;
import com.heaven7.java.data.mediator.compiler.util.Util;
import com.squareup.javapoet.AnnotationSpec;
import com.squareup.javapoet.ClassName;
import com.squareup.javapoet.CodeBlock;
import com.squareu... | Java | data-mediator-compiler/src/main/java/com/heaven7/java/data/mediator/compiler/insert/TypeAdapterInsertDelegate.java | LightSun/data-mediator | apache-2.0 | 1,918 | 43 | codeparrot/github-code |
17e071bf49c7596ab40fa7ac643af1ad72c6a3e328d0f90278a4c7a1baa3adb5 | #!/usr/bin/python
# Copyright 2015 Comcast Cable Communications Management, 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 ... | Python | examples/actionendpoint.py | Comcast/rulio | apache-2.0 | 2,070 | 64 | codeparrot/github-code |
3ad9be0e66d28f02cfea1b0d78198c89ad4c0f0be86856e342d7e324908f18b6 | # Copyright 2020 Google LLC. 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... | Python | tfx/experimental/templates/penguin/pipeline/pipeline.py | tensorflow/tfx | apache-2.0 | 6,485 | 157 | codeparrot/github-code |
aea47566854330a3f59f2f75846e41076ab419cec52c6e8ac84d5687e60c1fe4 | package apple.coregraphics;
import java.io.*;
import java.nio.*;
import java.util.*;
import com.google.j2objc.annotations.*;
import com.google.j2objc.runtime.*;
import com.google.j2objc.runtime.block.*;
import apple.audiotoolbox.*;
import apple.corefoundation.*;
import apple.coregraphics.*;
import apple.coreservices.... | Java | runtime/src/main/java/apple/coregraphics/CGPDFContentStream.java | Sellegit/j2objc | apache-2.0 | 530 | 32 | codeparrot/github-code |
7a32076625f1cffb457be23c045fadcc9a6f437fa93cbfdd5a404edbd28dcb16 | //*****************************************************************************
// Copyright 2017-2020 Intel Corporation
//
// 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://w... | C++ | src/ngraph/op/power.cpp | NervanaSystems/ngraph | apache-2.0 | 4,381 | 123 | codeparrot/github-code |
be56364283abbded48b55f5fc867262de99d056f66e773a5e5ddb0c254de8aea | package com.compomics.util.io.export.features.peptideshaker;
import com.compomics.util.io.export.ExportFeature;
import com.google.gson.annotations.SerializedName;
import java.util.ArrayList;
import java.util.Arrays;
/**
* This enum lists the export features linked to the validation process.
*
* @author Marc Vaudel... | Java | src/main/java/com/compomics/util/io/export/features/peptideshaker/PsValidationFeature.java | compomics/compomics-utilities | apache-2.0 | 7,103 | 116 | codeparrot/github-code |
e5b58bd9511ec5371e40ed1b9de9dd6f701eebfe0eaad94f5823d42f7635e69c | from __future__ import annotations
import os
import shutil
import time
import gc
import threading
from typing import Optional
from utils.utilfuncs import safeprint
def DummyAsyncFileWrite(fn, writestr, access='a'):
safeprint('Called HB file write before init {} {} {}'.format(fn, writestr, access))
AsyncFileWrite ... | Python | historybuffer.py | kevinkahn/softconsole | apache-2.0 | 4,574 | 152 | codeparrot/github-code |
753ee61fb324a72f2eaac204f24222e86ae022b6786d1d63a15b0914c53af2cf | /*
Copyright 2020 The Kubernetes Authors.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, ... | GO | upup/pkg/fi/cloudup/azuretasks/vmscaleset.go | kubernetes/kops | apache-2.0 | 12,176 | 391 | codeparrot/github-code |
4f2286e1b088a6359606d7d15d990dd8c98d8d1f76ddb958011f164ea7105c8f | package nl.esciencecenter.e3dchem.knime.pharmacophore.align;
import org.knime.core.node.defaultnodesettings.DefaultNodeSettingsPane;
import org.knime.core.node.defaultnodesettings.DialogComponentColumnNameSelection;
import org.knime.core.node.defaultnodesettings.DialogComponentMultiLineString;
import org.knime.core.no... | Java | plugin/src/java/nl/esciencecenter/e3dchem/knime/pharmacophore/align/AlignDialog.java | 3D-e-Chem/knime-pharmacophore | apache-2.0 | 1,939 | 45 | codeparrot/github-code |
8bf6122983a3edfd0e90eff1e2707d7f4c8174bbddea451e6ad4e582450ddefe | package vkaretko;
import java.util.Iterator;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
/**
* Class PrimeNumberIterator for iterating prime numbers.
*
* @author Karetko Victor
* @version 1.00
* @since 14.12.2016
*/
public class PrimeNumberIterator implements Iterator {
/**
* Int va... | Java | part_5/iterator/src/main/java/vkaretko/PrimeNumberIterator.java | V1toss/JavaPA | apache-2.0 | 1,945 | 85 | codeparrot/github-code |
c61d6d6821aa72f941013fe2e4e4b6721703c4472fbdfdf5e4406d3607c7d57e | /*
* Copyright 2016 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 agreed to... | C++ | folly/test/FBStringTest.cpp | Hincoin/folly | apache-2.0 | 41,580 | 1,406 | codeparrot/github-code |
9f6e600e64509b85ce13bfa19ffd681cf7b7be5afafebf21bff3ac123d8c638b | /*
*
* Paros and its related class files.
*
* Paros is an HTTP/HTTPS proxy for assessing web application security.
* Copyright (C) 2003-2004 Chinotec Technologies Company
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the Clarified Artistic License
*... | Java | src/org/zaproxy/zap/extension/ascan/AllCategoryTableModel.java | gsavastano/zaproxy | apache-2.0 | 9,478 | 285 | codeparrot/github-code |
8bf70802b63cb3cbbda9998c0e449b4ed4c88f8ff28f1abe91dd5c9e1b94b714 | // *****************************************************************************
// Copyright 2013-2019 Aerospike, 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... | JavaScript | test/apply.js | aerospike/aerospike-client-nodejs | apache-2.0 | 3,293 | 96 | codeparrot/github-code |
506e998dc07ec9e9ba9f3478a40668250a616abf9decf9d0f8ebd7765b83438c | package com.charonchui.framework.util;
import android.content.Context;
import android.content.Intent;
import android.content.pm.ApplicationInfo;
import android.content.pm.PackageInfo;
import android.content.pm.PackageManager;
import android.content.pm.PackageManager.NameNotFoundException;
import android.content.pm.Sig... | Java | framework/src/main/java/com/charonchui/framework/util/ApkUtils.java | CharonChui/AndroidDevelopFramework | apache-2.0 | 21,017 | 537 | codeparrot/github-code |
95008a7472a13b7d1e3f85f8c84ffe52ac00479b0efd4dce8625b802ad5c3c6b | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- NewPage -->
<html lang="ru">
<head>
<title>ChartSubstreamRecordAggregate (POI API Documentation)</title>
<link rel="stylesheet" type="text/css" href="../../../../../../stylesheet.css" title="Style">
</head>
<body... | HTML | poi-3.10-FINAL/docs/apidocs/org/apache/poi/hssf/record/aggregates/ChartSubstreamRecordAggregate.html | pedro93/ifarmaStudents | apache-2.0 | 14,752 | 307 | codeparrot/github-code |
c761093e2ac817b85fcb59e3aaea59217ead7e07a80e0e5d5d62a4f6113ed1ba | package com.emistoolbox.common.model.mapping;
import com.emistoolbox.common.model.meta.EmisMetaDateEnum;
import com.emistoolbox.common.model.meta.EmisMetaEntity;
public abstract interface EmisHierarchyDbMapEntry extends EmisDbMapBase
{
public abstract EmisMetaEntity getParentEntity();
public abstrac... | Java | core/src/com/emistoolbox/common/model/mapping/EmisHierarchyDbMapEntry.java | emistoolbox/emistoolbox | apache-2.0 | 1,049 | 32 | codeparrot/github-code |
cd8815d8782f58756fe08afb97c1c84b16d8389ba59e4e597d7540c71561f673 | /*
JSPWiki - a JSP-based WikiWiki clone.
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 Apac... | JavaScript | jspwiki-war/src/main/scripts/moo-extend/Form.File.js | tateshitah/jspwiki | apache-2.0 | 8,474 | 271 | codeparrot/github-code |
9b67396236af58d6674e2fd81dc3f8ade24ec8f4ea55e72913744384f406158b | using KSPPluginFramework;
using OldSimpleJSON;
using System;
using UnityEngine;
namespace Gameframer
{
[WindowInitials(Caption = "Advanced Settings", Visible = true, DragEnabled = true, ClampToScreen = true, TooltipsEnabled = true)]
public class SettingsRecordDetailUI : MonoBehaviourWindow
{
priva... | C# | Plugin/ui/SettingsRecordDetailUI.cs | noisybit/Gameframer-KSP | apache-2.0 | 4,626 | 109 | codeparrot/github-code |
acf5cfe4fbec3b4b59c6d020f1aac4d1d81d24b438395c078dba27c0ca594ad6 | package arez;
import java.text.ParseException;
import org.realityforge.guiceyloops.shared.ValueUtil;
import org.testng.annotations.Test;
import static org.testng.Assert.*;
public final class ZoneTest
extends AbstractTest
{
@Test
public void zone_safeRun_Function()
{
ArezTestUtil.enableZones();
final ... | Java | core/src/test/java/arez/ZoneTest.java | realityforge/arez | apache-2.0 | 3,827 | 125 | codeparrot/github-code |
fd0444361ac7c906282a81ba7c0131287c596ffded2d84a41fa15ec034e4d0c9 | #include <stdio.h>
#include <string.h>
char haab[19][10] = { "pop", "no", "zip", "zotz", "tzec", "xul", "yoxkin", "mol", "chen", "yax", "zac", "ceh", "mac", "kankin", "muan", "pax", "koyab", "cumhu", "uayet" };
char tzolkin[20][10] = { "imix", "ik", "akbal", "kan", "chicchan", "cimi", "manik", "lamat", "muluk", "ok", "... | C++ | UVa/300 - Maya Calendar.cpp | geniustanley/problem-solving | apache-2.0 | 801 | 33 | codeparrot/github-code |
c13cdaca9e9ef7cfd15269adc4c5c18add182aee77b9bedea6ba5f976625e7d2 | /*
* hostapd - Driver operations
* Copyright (c) 2009-2010, Jouni Malinen <j@w1.fi>
*
* This software may be distributed under the terms of the BSD license.
* See README for more details.
*/
#include "utils/includes.h"
#include "utils/common.h"
#include "drivers/driver.h"
#include "common/ieee802_11_defs.h"
#in... | C | external/wpa_supplicant_8/src/ap/ap_drv_ops.c | Xperia-Nicki/android_platform_sony_nicki | apache-2.0 | 15,643 | 596 | codeparrot/github-code |
e8c14353785224988913ed966cc04186061b3859548de38166a22066c34d9d7e | package com.tedmemo.others;
import android.text.Editable;
import android.text.style.ImageSpan;
import com.tedmemo.view.ImageEditText;
import java.util.Comparator;
/**
* Created by Ted on 2014/9/10.
*/
public class TComparator implements Comparator<ImageSpan> {
private Editable mEditable = null;
private Ima... | Java | src/com/tedmemo/others/TComparator.java | xiongwei-git/TedMemo | apache-2.0 | 835 | 32 | codeparrot/github-code |
f71ee4616b4a410e059ef095240ade6ef0cc0b8774b6a8d79dda9f813467a115 | #include "IPCFutexPageQueue.h"
#include "IPCCheck.h"
#include "IPCException.h"
#include "IPCLog.h"
#include "IPCType.h"
#include "futex.h"
#include <errno.h>
#include <sched.h>
#include <string.h>
#include <sys/mman.h>
#include <time.h>
#include <unistd.h>
IPCFutexPageQueue::IPCFutexPageQueue(void* sharedMemory, size_... | C++ | weex_core/Source/IPC/IPCFutexPageQueue.cpp | cxfeng1/incubator-weex | apache-2.0 | 6,095 | 192 | codeparrot/github-code |
1e2fe81d8124d6711feb1dd9139af44c5305e34883c2c85d804c0ad4480de82a | #!/usr/bin/env python
# -*- encoding:utf-8 -*-
__author__ = 'kairong'
#解决crontab中无法执行的问题
import sys
reload(sys)
sys.setdefaultencoding('utf8')
import ConfigParser
import MySQLdb
import requests
import re
from socket import socket, SOCK_DGRAM, AF_INET
from multiprocessing import Process
###函数声明区域
def get_localIP():
... | Python | code/url_monitor.py | sageskr/domain_mon | apache-2.0 | 2,506 | 81 | codeparrot/github-code |
aa3838240a37517fcaff6d0cb79e9957c431aef91039cd26614c992f606aad1b | <?php
namespace AmazonPay;
class Signature
{
const MWS_VERSION = '2013-01-01';
private $config = array();
private $signature = null;
private $mwsEndpointPath = null;
private $mwsEndpointUrl = null;
private $modePath = null;
private $mwsServiceUrl = null;
pr... | PHP | smooth_digital/server/PayWithAmazon/tst/unit/Signature.php | danielneu/amazon-login-and-pay-tests | apache-2.0 | 6,359 | 174 | codeparrot/github-code |
b7b314f0f3ca2a5cdd8e949901a758969d65ab895b9f3f3af3a8df73928e3ec9 | package io.github.froger.instamaterial.ui.view;
import android.animation.Animator;
import android.animation.AnimatorListenerAdapter;
import android.annotation.TargetApi;
import android.content.Context;
import android.os.Build;
import android.util.AttributeSet;
import android.view.LayoutInflater;
import android.view.Vi... | Java | app/src/main/java/io/github/froger/instamaterial/ui/view/LoadingFeedItemView.java | AnkitAggarwalPEC/plumApp | apache-2.0 | 3,315 | 94 | codeparrot/github-code |
db39f95e4cd27c78522e054b3d387aca10f2e6fe5bc6497a34c76506711cd6f2 | namespace Stripe
{
using System;
using System.Collections.Generic;
using System.Net.Http;
using System.Threading;
using System.Threading.Tasks;
using Stripe.Infrastructure;
public class BalanceService : Service<Balance>,
ISingletonRetrievable<Balance>
{
public BalanceSer... | C# | src/Stripe.net/Services/Balance/BalanceService.cs | richardlawley/stripe.net | apache-2.0 | 1,004 | 36 | codeparrot/github-code |
5e1562c6f4d51c21f0d01870505665efcbfb70df9a1b82902165244f6d676986 | <?php
class form_customers_erro
{
var $Ini;
var $script;
var $linha;
var $tipo;
var $mensagem;
var $complemento;
var $msg_final;
//-----
function form_customers_erro()
{
$this->script = "";
$this->linha = "";
$this->tipo = "";
$this->mensagem ... | PHP | 5_dev_tools/scriptcase/PHPTrn/form_customers/form_customers_erro.class.php | oprohonnyi/php_trn | apache-2.0 | 1,548 | 56 | codeparrot/github-code |
65606b70c2b30a3ba99ae2a113b9e7068997d6898649d5a31f4432dead6f1f72 | /*
* Copyright 2014, Stratio.
*
* 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 i... | Java | deep-mongodb/src/main/java/com/stratio/deep/mongodb/reader/MongoReader.java | Stratio/deep-spark | apache-2.0 | 5,826 | 206 | codeparrot/github-code |
f05af0ccca05c8ef5075b1d9721d8bc0aa6f7f62f5b4a8e1ec04df3d786d69d5 | package util;
import java.io.IOException;
import java.io.Serializable;
import java.net.BindException;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import java.util.Set;
import java.util.concurrent.Future;
import java.util.conc... | Java | src/main/java/util/HttpHelperAsync.java | yunzhijia/isv | apache-2.0 | 17,299 | 482 | codeparrot/github-code |
88a51953d17fa23330a1e55b53d4f2309c83c9b404d988d69ed2e848c49d702a | /*******************************************************************************
*
* Copyright (C) 2015-2022 the BBoxDB 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 Licens... | Java | bboxdb-server/src/main/java/org/bboxdb/network/client/response/PageEndHandler.java | jnidzwetzki/bboxdb | apache-2.0 | 1,891 | 59 | codeparrot/github-code |
5db029c737fb7cceb37ec6f650fc7c7afa9a340a39587ea8bef0c3353fc6674f | /*
* Copyright 2013 Websquared, 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 agre... | Java | core/src/main/java/org/fastcatsearch/ir/group/GroupEntryList.java | fastcat-co/fastcatsearch3 | apache-2.0 | 7,738 | 268 | codeparrot/github-code |
30e0ccfa5cc4846534ccdf07df4fd65a811c541a99cd525cb1e6404a21a2d797 | package org.gdg.frisbee.android.common;
import android.content.Context;
import android.support.annotation.DrawableRes;
import android.text.TextUtils;
import android.util.SparseBooleanArray;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.view.animation.Animat... | Java | app/src/main/java/org/gdg/frisbee/android/common/PeopleAdapter.java | ouzman/frisbee | apache-2.0 | 3,175 | 103 | codeparrot/github-code |
19d3fd9a2ab6f38e34816ba54343a8acc83391c2265f568902497975a3866337 | /*
* solver-api.c
*
* Created on: Nov 14, 2012
* Author: laurynas
*/
#include "solverapi.h"
#include "solverapi_utils.h"
#include "utils/builtins.h"
#include "access/htup_details.h"
// For PostgreSQL 9.3.1 security
#include "miscadmin.h"
#include "lib/stringinfo.h"
#include "utils/guc.h"
#ifdef PG_MODULE_... | C | SolverAPI/solverapi.c | aau-daisy/solvedb | apache-2.0 | 6,757 | 238 | codeparrot/github-code |
1de3184b2dd1d3c59d5664f5f52b7394744d383d40229f70c5a5ed526c03d2d7 | #
# 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 the ... | Python | knob/objects/service.py | igor-toga/knob2 | apache-2.0 | 2,894 | 89 | codeparrot/github-code |
a1bee70c758802d99479ec55ea2414abf9e442c2ec88436037b34840bf91d5d3 | /*
Copyright 2018 The Kubernetes Authors.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, ... | GO | prow/crier/reporters/gerrit/reporter.go | jessfraz/test-infra | apache-2.0 | 12,355 | 399 | codeparrot/github-code |
86b092b0e0bb1a39aead97f940113b58561b0013d790b315f8237bd17fb68c9b | /*
* File: Consola.h
* Author: Dmytro Yaremyshyn
*
* Created on 6 de Dezembro de 2016, 16:06
*/
#ifndef CONSOLA_H
#define CONSOLA_H
#include <windows.h>
class Consola {
HANDLE hconsola;
HANDLE hStdin;
HWND hwnd;
public:
// para usar nas cores
const static int PRETO = 0;
const static int AZUL = 1;
c... | C | CastleWar/Consola.h | dyaremyshyn/POO_Colonia | apache-2.0 | 3,472 | 120 | codeparrot/github-code |
e58507b0c2d31cc803f708596c3538e77a6278f41d7c36219ae06b76804ff23a | #!/usr/bin/env node
var execSync = require('child_process').execSync;
var fs = require("fs");
var args = process.argv.slice(2);
var guid = args[0];
if (typeof guid === "undefined") {
console.log("provide a guid");
} else {
var fileList = ""+execSync("ls -lh");
var lines = fileList.split("\n");
var count = 0; ... | JavaScript | filtering_scripts/analyze.js | topherwhite/rfcx-data-analysis | apache-2.0 | 1,746 | 46 | codeparrot/github-code |
55bdd9ade285b5959dc5cc592adbce069fd6f06ff36c13661d529292ee513664 | package com.wildbitsfoundry.etk4j.control;
import java.util.Arrays;
import com.wildbitsfoundry.etk4j.math.MathETK;
import com.wildbitsfoundry.etk4j.math.complex.Complex;
import com.wildbitsfoundry.etk4j.math.polynomials.Polynomial;
import com.wildbitsfoundry.etk4j.math.polynomials.RationalFunction;
import com... | Java | src/com/wildbitsfoundry/etk4j/control/TransferFunction.java | mlopz/ETK4J | apache-2.0 | 12,993 | 444 | codeparrot/github-code |
72ce025000b8bb4010edb2fd91886d4a8e02cf47239558c7930fbe6a2a6e317f | /*
* Copyright 2015 Jive Software.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed... | Java | chunk-store/src/main/java/com/jivesoftware/os/filer/chunk/store/transaction/FPIndex.java | jivesoftware/filer | apache-2.0 | 3,068 | 84 | codeparrot/github-code |
940615f78ed42316fc41dddb1541a376a88ac91c7017f223aaa78baa1f76ce11 | /**
* Copyright 2011-2017 Asakusa Framework Team.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable... | Java | core-project/asakusa-runtime/src/main/java/com/asakusafw/runtime/directio/hadoop/BlockMap.java | cocoatomo/asakusafw | apache-2.0 | 7,806 | 233 | codeparrot/github-code |
c07a539521c6b8d726cde1023e48d75f76dd3072e0ddfc5f9f4b3e13123d8a77 | package com.clouck.comparator;
import java.util.Collection;
import java.util.List;
import org.apache.commons.lang3.tuple.Pair;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Component;
import com.amazonaws.services.ec2.model.GroupIdentifier;
import com.amazonaws.servic... | Java | src/main/java/com/clouck/comparator/Ec2InstanceComparator.java | veyronfei/clouck | apache-2.0 | 13,136 | 225 | codeparrot/github-code |
d32cef036e4afe34dfd68ffd35e4cdf5bb5fd4ca59056ac8f0c9b3b898e02dcb | /*
* Copyright The OpenTelemetry 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 applicable law or... | TypeScript | experimental/packages/opentelemetry-sdk-metrics-base/src/view/AttributesProcessor.ts | open-telemetry/opentelemetry-js | apache-2.0 | 2,127 | 65 | codeparrot/github-code |
7b9156c4614f0999dd71691686c5c180549dca74b1af0835da5dd0d15ec9d12e | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package com.exadel.borsch.web.controllers;
import com.exadel.borsch.util.PDFCreator;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
impo... | Java | borsch-web/src/main/java/com/exadel/borsch/web/controllers/PrintController.java | skrauchenia/borsch | apache-2.0 | 1,648 | 44 | codeparrot/github-code |
3beb518a990ccc634284c2f26d05aa6f929146c8a25d28fba909ada1ee63ef75 | package com.example.mosum.lightning;
import android.app.Activity;
import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
import io.vov.vitamio.MediaPlayer;
import io.vov.vitamio.Vitamio;
import io.vov.vitamio.widget.VideoView;
/**
* Created by mosum on 2017/6/3.
*/
public class vitamioVi... | Java | app/src/main/java/com/example/mosum/lightning/vitamioVideoView.java | MosumTree/lightning | apache-2.0 | 1,598 | 68 | codeparrot/github-code |
00c3bf88cd833852e1041b79bfdb16d45318af7c271e5112ec599acab7adbd6a | /*
* Copyright © 2009 HotPads (admin@hotpads.com)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable... | Java | datarouter-filesystem/src/main/java/io/datarouter/filesystem/snapshot/encode/BlockDecoderFactory.java | hotpads/datarouter | apache-2.0 | 1,261 | 39 | codeparrot/github-code |
be6b1d97f6e80ecc73af002ae98adafe5eda32a34fdf8bfa9bc778b35e00ab91 | /*
Smooth - A C++ framework for embedded programming on top of Espressif's ESP-IDF
Copyright 2019 Per Malmberg (https://gitbub.com/PerMalmberg)
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
h... | C++ | lib/smooth/core/network/CommonSocket.cpp | PerMalmberg/Smooth | apache-2.0 | 2,555 | 103 | codeparrot/github-code |
c25b138ec4458ff471a3da63883bfe9dcfefa2848a2ced4ef465dd38808594c3 | package cn.edu.uoh.cs.weatherforecast;
import java.util.HashMap;
import java.util.Map;
public class WeatherInfo {
private String desc;
private Integer status;
private Data data;
private Map<String, Object> additionalProperties = new HashMap<String, Object>();
/**
*
* @return
* ... | Java | app/src/main/java/cn/edu/uoh/cs/weatherforecast/WeatherInfo.java | yswift/WeatherForceast | apache-2.0 | 1,288 | 76 | codeparrot/github-code |
ad66eca631c3395d028cf8ee20f2c83ee8c9621b11250b07ca801366afca235c | package org.radargun.stages.cache.background;
import org.radargun.DistStageAck;
import org.radargun.config.Property;
import org.radargun.config.Stage;
import org.radargun.stages.AbstractDistStage;
import org.radargun.stages.DefaultDistStageAck;
/**
* @author Radim Vansa <rvansa@redhat.com>
*/
@Stage(doc = "St... | Java | core/src/main/java/org/radargun/stages/cache/background/CheckBackgroundStressorsStage.java | wburns/radargun | apache-2.0 | 1,937 | 56 | codeparrot/github-code |
a86a4c49941bf47dbb0e1e5f3128339416b350af06a90e23d1f92387b3c81b52 | package org.activiti.engine.impl.persistence.entity;
import java.io.Serializable;
import org.activiti.engine.impl.context.Context;
/**
* <p>Encapsulates the logic for transparently working with {@link ByteArrayEntity}.</p>
*
* <p>Make sure that instance variables (i.e. fields) of this type are always initialized... | Java | src/main/java/org/activiti/engine/impl/persistence/entity/ByteArrayRef.java | ahwxl/deep | apache-2.0 | 2,505 | 109 | codeparrot/github-code |
c73675d372a0d689aefacdc83df79e25821a21ae01137056f6cd9f47cb78d6b1 | /*
* Copyright (c) 2016. Daniel Kressner
*
* This file to under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... | Java | src/main/java/de/kressnerd/jetpdf2csv/JetPDF2CSV.java | kressnerd/JetPDF2CSV | apache-2.0 | 6,963 | 153 | codeparrot/github-code |
6a225576eed6dd7507e556d07739e521384c84f030b9a917bdadd74791ceb39b | package org.semanticweb.elk.reasoner.saturation.inferences;
/*
* #%L
* ELK Reasoner
* $Id:$
* $HeadURL:$
* %%
* Copyright (C) 2011 - 2015 Department of Computer Science, University of Oxford
* %%
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance... | Java | elk-reasoner/src/main/java/org/semanticweb/elk/reasoner/saturation/inferences/AbstractDisjointSubsumerInference.java | aifargonos/elk-reasoner | apache-2.0 | 2,633 | 84 | codeparrot/github-code |
14a6a075bc89d473f4db9ce7d3164ecb3b3dd8b0cd345432fb4e3966c5043d71 | /**
* @license
* Copyright 2013 Palantir Technologies, 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... | TypeScript | src/rules/noStringLiteralRule.ts | IllusionMH/tslint | apache-2.0 | 2,575 | 66 | codeparrot/github-code |
a3b8fbfc22798a81d38e5a3d2c0736e8658f25b79dadc189df78c0a566067af3 | package io.skysail.server.utils;
import java.beans.*;
import java.lang.reflect.*;
import java.text.SimpleDateFormat;
import java.time.LocalDate;
import java.time.format.DateTimeFormatter;
import java.util.*;
import java.util.stream.Collectors;
import org.apache.commons.beanutils.*;
import org.apache.commons.beanutils... | Java | skysail.server/src/io/skysail/server/utils/SkysailBeanUtilsBean.java | evandor/skysail-framework | apache-2.0 | 10,209 | 229 | codeparrot/github-code |
cbbf088d1fda7bacfdf441ea04ed114a801f2464274d7348ec60b46f652da53a | using Abot.Core;
using Moq;
using NUnit.Framework;
using System;
namespace Abot.Tests.Unit.Core
{
[TestFixture]
public class MemoryManagerTest
{
MemoryManager _uut;
Mock<IMemoryMonitor> _fakeMemoryManager;
[SetUp]
public void SetUp()
{
_fakeMemoryManage... | C# | Abot.Tests.Unit/Core/MemoryManagerTest.cs | fyang0321/WebCrawler | apache-2.0 | 2,088 | 87 | codeparrot/github-code |
cb58396ffa5c5bdf6f60eab00246b54b75b4e9a663d9c79d8dad43438a44acef | use std::f32::consts::PI;
use cgmath;
use cgmath::prelude::*;
use rand::Rng;
use three::{self, Object};
use COLOR_WHITE;
pub struct Sky {
pub group: three::Group,
}
impl Sky {
fn make_cloud<R: Rng>(
rng: &mut R,
factory: &mut three::Factory,
) -> three::Group {
let group = facto... | Rust | examples/aviator/sky.rs | kvark/three-rs | apache-2.0 | 1,921 | 68 | codeparrot/github-code |
43e5a488bb4fa80648cd79b9c1aa4d8f9005647d3efac1e91a0e4959bce73edf | /*
* 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 co.edu.sena.mavenproject2.model.entities;
import java.io.Serializable;
import java.util.Collection;
import javax.persistence.B... | Java | java/JSF/mavenproject2/src/main/java/co/edu/sena/mavenproject2/model/entities/Ficha.java | SENA-CEET/1349397-Trimestre-4 | apache-2.0 | 5,169 | 162 | codeparrot/github-code |
181a9fa7d59c36a305a521632b9b1a6edbcd6db2292f3083bbd2f2fb2253e635 | # frozen_string_literal: true
module Hyrax
module Admin
class UsersPresenter
# @return [Array] an array of Users
def users
@users ||= search
end
# @return [Number] quantity of users excluding the system users and guest_users
def user_count
users.count
end
... | Ruby | app/presenters/hyrax/admin/users_presenter.rb | samvera/hyrax | apache-2.0 | 941 | 39 | codeparrot/github-code |
9644f13c8089ef2950a155dc5376e6894448ad0189598ca8b0de451a55c8fca5 | /*******************************************************************************
* Online Judge : POJ
* Problem Title : Remmarguts' Date
* Problem URL : http://acm.pku.edu.cn/JudgeOnline/problem?id=2449
* ID : 2449
* Date : 6/29/2009
* Time : 19:41:29... | C++ | 2449/7985203_AC_250MS_7460K.cpp | twilightgod/twilight-poj-solution | apache-2.0 | 2,287 | 150 | codeparrot/github-code |
7ea925ae61daf0eaeec918d3c6c920c57d8716c9c363e241bb20d7e083e6fcd1 | package ru.maximum13.wsdemo.util;
import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Date;
import java.util.GregorianCalendar;
import java.util.concurrent.TimeUnit;
/**
* Набор утилитных методов для работы с датой и временем.
*
* @author MAXIMUM13
*/
public final class DateTimeUtils {
... | Java | src/main/java/ru/maximum13/wsdemo/util/DateTimeUtils.java | MAXIMUM13/websocket-demo | apache-2.0 | 4,390 | 139 | codeparrot/github-code |
97d9af06af18e6d420a69f945bcd2cc453f8a2d81ead3440f23453ed3480f8a8 | package com.spring.pojo;
import java.io.Serializable;
import java.util.Date;
import org.springframework.format.annotation.DateTimeFormat;
public class Member implements Serializable{
private static final long serialVersionUID = 1L;
private Integer id;
private String name;
private String phone;
... | Java | 729jishi/src/com/spring/pojo/Member.java | gcock/spring-mybatis | apache-2.0 | 1,159 | 73 | codeparrot/github-code |
ccbce605a29d86601c9cc597721dda59da9c50d3865dff0bf9bdc055e764230d | /*
* 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-securityhub/src/main/java/com/amazonaws/services/securityhub/model/AwsEc2SecurityGroupPrefixListId.java | aws/aws-sdk-java | apache-2.0 | 4,150 | 137 | codeparrot/github-code |
afd135548f4eb590dcf9b4c12564db211ec4d3862cbafe0df32eb0c2f93dbde6 | <!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Mapping Selectable Fields of Records</title>
<meta name="description" content="Support selecting items inside nodes." />
<!-- Copyright 1998-2017 by Northwoods Software Corporation. -->
<meta charset="UTF... | HTML | src/main/webapp/bower_components/goJs/samples/selectableFields.html | dads-software-brotherhood/sekc | apache-2.0 | 9,317 | 207 | codeparrot/github-code |
6d91d620302b5f24b358894934eefa02427a60e07eeceb411b76780eb483051e | import base64
import itertools
import json
import logging
import os
import re
import time
from .buckets import get_bucket_client
from .params import get_param_client
from .secrets import get_secret_client
logger = logging.getLogger("zentral.conf.config")
class Proxy:
pass
class EnvProxy(Proxy):
def __init... | Python | zentral/conf/config.py | zentralopensource/zentral | apache-2.0 | 9,328 | 313 | codeparrot/github-code |
23febcf2e10e9f177e96b97890810649ac6cc12dc74478a63487f29832d8f750 | package com.alsan_grand_lyon.aslangrandlyon.service;
import android.content.Context;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.os.AsyncTask;
import com.alsan_grand_lyon.aslangrandlyon.dao.UserDAO;
import com.alsan_grand_lyon.aslangrandlyon.model.DataSingleton;
import com.al... | Java | native-apps/android/AslanGrandLyon/app/src/main/java/com/alsan_grand_lyon/aslangrandlyon/service/LoadImageTask.java | ArnaudFavier/Chatbot-GrandLyon | apache-2.0 | 1,639 | 63 | codeparrot/github-code |
1895be4197243fdbfefad325d6973219ccb6b09cf780729cae059f5594b6611f | using System;
using System.Collections.Generic;
using System.IO;
using Tundra.Enum;
namespace Tundra.Extension
{
/// <summary>
/// Extension Helper Class
/// </summary>
public static class ExtensionHelper
{
/// <summary>
/// Applies the specified a.
/// </summary>
/... | C# | src/Tundra/Tundra/Extension/ExtensionHelper.cs | Programm3r/Tundra | apache-2.0 | 2,464 | 68 | codeparrot/github-code |
2259a2b57e419b74b2bb1719f9b7d52fd302b9e3d5740ea0535e836e598a7a0c | package com.dc.insta;
import java.io.IOException;
import java.io.InputStream;
import java.util.Properties;
public final class InstagramUtils {
private static final String CONFIG_PROPERTIES = "/config.properties";
public static Properties getConfigProperties() {
InputStream input = null;
fina... | Java | src/main/java/com/dc/insta/InstagramUtils.java | pomadchin/insta-followz | apache-2.0 | 820 | 35 | codeparrot/github-code |
bee5405ea65ac21454218c7f4e69302c39866236a1d5309a0a7baa2f03b9dc0b | package se.claremont.taf.core.reporting.testrunreports.htmlsummaryreport;
import org.junit.Assert;
import org.junit.Test;
import se.claremont.taf.core.logging.LogLevel;
import se.claremont.taf.core.support.SupportMethods;
import se.claremont.taf.core.testcase.TestCase;
import se.claremont.taf.core.testset.UnitTestClas... | Java | Core/src/test/java/se/claremont/taf/core/reporting/testrunreports/htmlsummaryreport/NewErrorsListTest.java | claremontqualitymanagement/TestAutomationFramework | apache-2.0 | 8,375 | 122 | codeparrot/github-code |
219e50b754e74c9c1336b53303db919b8bf2b1105eeb940f2d0ddfd46df35b54 | # Copyright 2021 The Kubeflow Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | Python | sdk/python/kfp/deprecated/dsl/metrics_utils.py | kubeflow/pipelines | apache-2.0 | 6,121 | 177 | codeparrot/github-code |
d57f47cb7a73969cfae2ac15c7e32c2725871227334c1a9ef2d127d0bee78121 | /*
* 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 | server/src/test-integration/java/com/thoughtworks/go/server/dao/PluginSqlMapDaoIntegrationTest.java | GaneshSPatil/gocd | apache-2.0 | 6,165 | 180 | codeparrot/github-code |
32cf8bb386fcbf106f791483f1b317ed6b00048c966a3cb45cd3ed5697b75054 | package cn.hugeterry.coordinatortablayoutdemo;
import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentPagerAdapter;
import java.util.ArrayList;
/**
* Created by hugeterry(http://hugeterry.cn)
*/
public class MyPagerAdapter extends FragmentPagerA... | Java | sample/src/main/java/cn/hugeterry/coordinatortablayoutdemo/MyPagerAdapter.java | hugeterry/CoordinatorTabLayout | apache-2.0 | 922 | 37 | codeparrot/github-code |
435ff86ac0e2bb6ebdd76c9fb7578ba86841f3416bf8e21429cf761922a46aa1 | package com.crazysunj.multityperecyclerviewadapter.helper;
import android.support.v7.util.DiffUtil;
import android.util.Log;
import com.chad.library.adapter.base.BaseQuickAdapter;
import com.crazysunj.multitypeadapter.entity.HandleBase;
import com.crazysunj.multitypeadapter.helper.RecyclerViewAdapterHelper;
import co... | Java | ListView/MultiTypeRecyclerViewAdapter-master/app/src/main/java/com/crazysunj/multityperecyclerviewadapter/helper/ErrorAndEmptyAdapterHelper.java | weiwenqiang/GitHub | apache-2.0 | 5,094 | 133 | codeparrot/github-code |
bdb58b51b8e00176e059cfc020e4ff6bc5af82b459dd8ba52e18aeb841cfee45 | package cz.skaut.mlha.odymaterialy;
import android.content.DialogInterface;
import android.content.DialogInterface.OnClickListener;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.support.v7.app.AlertDialog.Builder;
import android.view.LayoutInflater;
import android.view.View;
import a... | Java | app/src/main/java/cz/skaut/mlha/odymaterialy/LoadingFragment.java | GenaBitu/OdyMaterialy-app | apache-2.0 | 2,033 | 66 | codeparrot/github-code |
41809abc1e242c549c386df5231ebd08bc66d060f952fd2ee0bd0bfae8870347 | // This file was automatically generated. Do not modify.
'use strict';
goog.provide('Blockly.Msg.lki');
goog.require('Blockly.Msg');
Blockly.Msg.ADD_COMMENT = "گةپ دائن";
Blockly.Msg.AUTH = "لطفا ئئ اپلیکیشن را ثبت کةن و آثارتان فعال کةن تا ذخیره بو و اجازهٔ اشتراک نیائن توسط هؤمة بو";
Blockly.Msg.CHANGE_VALUE_T... | JavaScript | Blockly4Arduino/msg/js/lki.js | ingegno/Blockly4Arduino | apache-2.0 | 77,199 | 927 | codeparrot/github-code |
3ced9fcc216ff6ab9c410c560afbe1559c35b87e0844eaee783d050908d372c8 | import React, {Component, Fragment} from "react";
import {Card, Button, ListGroup, ListGroupItem} from "helpers/reactstrap";
import {Duration} from "luxon";
import {Mutation} from "react-apollo";
import gql from "graphql-tag.macro";
import {capitalCase} from "change-case";
export function parseDuration(time) {
retur... | JavaScript | src/components/views/Tasks/core/TasksManager.js | Thorium-Sim/thorium | apache-2.0 | 7,238 | 217 | codeparrot/github-code |
dc5f4bb3d91664993b8286081ece3d3a2bd9811a6548be8f64c0a67e2442b377 | /*
* Copyright (c) 2021, Peter Abeles. All Rights Reserved.
*
* This file is part of BoofCV (http://boofcv.org).
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apac... | Java | main/boofcv-ip/src/main/java/boofcv/alg/interpolate/impl/NearestNeighborPixel_U8.java | lessthanoptimal/BoofCV | apache-2.0 | 2,326 | 86 | codeparrot/github-code |
2e465231f8a41a2b9fb5af52f525f8873e0e31e8eedaf73db717c1d1d308810b | #include <iostream>
#include <plog/Log.h>
#include "libaps2.h"
#include "../C++/helpers.h"
#include "../C++/optionparser.h"
#include <concol.h>
using std::cout;
using std::endl;
enum optionIndex { UNKNOWN, HELP, IP_ADDR, RESET_MODE, LOG_LEVEL };
const option::Descriptor usage[] = {
{UNKNOWN, 0, "", "", option:... | C++ | src/util/reset.cpp | BBN-Q/libaps2 | apache-2.0 | 3,581 | 130 | codeparrot/github-code |
94999d9690f60433e0e9c907f476d5fcc8aee098f40f0a69199180dfcdea0e67 | package org.reclipse.tracedefinition.editor.actions;
import org.eclipse.jface.action.IAction;
import org.eclipse.jface.viewers.ISelection;
import org.eclipse.jface.viewers.IStructuredSelection;
import org.eclipse.jface.wizard.WizardDialog;
import org.eclipse.ui.IObjectActionDelegate;
import org.eclipse.ui.IWo... | Java | plugins/org.reclipse.tracer.ui/src/org/reclipse/tracedefinition/editor/actions/FilterTraceDefinitionAction.java | CloudScale-Project/StaticSpotter | apache-2.0 | 1,793 | 63 | codeparrot/github-code |
18115da57a1717017f551cf79f77dd5d206681d5184d7fa5cbeaff81b1a9e1e9 | package org.reclipse.behavior.specification.ui.commands;
import org.reclipse.behavior.specification.ui.editparts.BehavioralPatternEditPart;
import de.uni_paderborn.basicSequenceDiagram.BasicSequenceDiagramFactory;
import de.uni_paderborn.basicSequenceDiagram.CombinedFragment;
/**
* @author mcp
* @auth... | Java | plugins/org.reclipse.behavior.specification.ui/src/org/reclipse/behavior/specification/ui/commands/CreateOptionalFragmentCommand.java | CloudScale-Project/StaticSpotter | apache-2.0 | 855 | 36 | codeparrot/github-code |
6bf350613f5f8a30b5d1e4331cd1db587fb857a2b9885489035da39d00efd68e | /*
* 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 model.interfacesdaoifs;
import java.sql.SQLException;
import java.util.List;
import model.exceptions.DaoException;
import mode... | Java | Cinefilia/src/main/java/model/interfacesdaoifs/UsuarioDaoIF.java | jass2125/cinefilia | apache-2.0 | 1,023 | 31 | codeparrot/github-code |
9aad21e07550894b0d8a7e0511b687163344dca5c68de6535cb195c82cc11c58 | package com.jerry.crm.classes.domain;
import java.util.Date;
import com.jerry.crm.coursetype.domain.CrmCourseType;
public class CrmClasses {
/*
* CREATE TABLE `crm_class` ( `classId` varchar(50) NOT NULL PRIMARY KEY,
* `courseTypeId` varchar(255) DEFAULT NULL,
*
* `name` varchar(50) DEFAULT NULL, `beginTi... | Java | ee19_crm/src/com/jerry/crm/classes/domain/CrmClasses.java | luoyefeiwu/learn_java | apache-2.0 | 3,357 | 162 | codeparrot/github-code |
2b81990574bb7badceeefefa3ebb985f1fe3fb3524d21c739cea2a477cd5cef7 | package com.github.uralmax;
import java.lang.annotation.Annotation;
import java.lang.reflect.Method;
import java.lang.reflect.Type;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Set;
import org.apache.commons.lang3.ArrayUti... | Java | src/main/java/com/github/uralmax/JsonRpcSwaggerApiReader.java | uralmax/jsonrpc4j-swagger-maven-plugin-helper | apache-2.0 | 17,914 | 437 | codeparrot/github-code |
1bd1fa44681c72649be921756e110afad52c067452bf9f43743e3d25e485fb17 | from django.conf import settings
from django.template import RequestContext
from django.shortcuts import render_to_response
from django.contrib.auth import authenticate, login, logout
from django.core.context_processors import csrf
from skilltreeapp.forms import LoginForm
from django.shortcuts import render_to_response... | Python | skilltreeapp/views/pages.py | abztrakt/uw-skilltree | apache-2.0 | 4,046 | 117 | codeparrot/github-code |
9c40731ac2e31887953655658c456d9f00185b7ef702c9fa68b3b74149185760 | #!/usr/bin/env node
/**
* 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | JavaScript | backends/xboxone/xbox-one-webdriver-server.js | shaka-project/generic-webdriver-server | apache-2.0 | 2,114 | 72 | codeparrot/github-code |
8fb934fac3faf4f340884527a8aa932a8eb7c06c651f2ca14ab0aa702d42b32f | /*
* 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 "license" fil... | C++ | aws-cpp-sdk-cloudformation/source/model/CreateStackResult.cpp | ambasta/aws-sdk-cpp | apache-2.0 | 1,982 | 63 | codeparrot/github-code |
7ffa33b32641e0807eebb1139151437b53a6d470d039a0ba65c888f6285a7e3c | package edu.bupt.cameras;
import java.io.BufferedInputStream;
import java.io.IOException;
import java.io.OutputStream;
import java.net.Inet4Address;
import java.net.URI;
import org.apache.hadoop.conf.Configuration;
import org.apache.hadoop.fs.FileStatus;
import org.apache.hadoop.fs.FileSystem;
import org.apache.hadoop... | Java | src/edu/bupt/cameras/CameraThread.java | waka401/ZkTest | apache-2.0 | 2,622 | 101 | codeparrot/github-code |
d9f22124283bba3bbbaa80c071fe21bd149c386aaff3b5359e5ffa4575c9081c | <!DOCTYPE HTML>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>My Love with you</title>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<style type="text/css">
@font-face {
font-family: digit;
src: url('digital-7_mono.ttf') format("truetype");
}
</sty... | HTML | source/qingtian/indexorg.html | yimun/Blog | apache-2.0 | 3,963 | 105 | codeparrot/github-code |
9cfb4cee0b81cccaac1455d5dc131288f8ffe0c4d2c5a5f7d86fd6e865e14543 | /*---------------------------------------------------------------------------------------------*
* Copyright (C) 2012 Daniel Bolaños - www.bltek.com - Boulder Language Technologies *
* *
* www.bavieca.org is the web... | C++ | src/common/base/BatchFile.cpp | atk-/bavieca-0014 | apache-2.0 | 3,908 | 118 | codeparrot/github-code |
0c9b6baa3d72075a208dc30a8369ac0edbfcf99529f9d356ccdee91122b42cd3 | /**
* 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 | src/at/illecker/sentistorm/components/Tokenizer.java | millecker/senti-storm | apache-2.0 | 2,047 | 63 | codeparrot/github-code |
f56207819fc242dff9691896b09315a73431e940a2ab987e3d9440d2b4caa225 | #!/usr/bin/env python
"""
MCNPX Model for Cylindrical RPM8
"""
import sys
sys.path.append('../MCNPTools/')
sys.path.append('../')
from MCNPMaterial import Materials
import subprocess
import math
import mctal
import numpy as np
import itertools
import os
class CylinderRPM(object):
# Material Dictionaries
cell... | Python | MCNPXRPMModels/WrappedCylinders/CylinderMCNPX.py | murffer/DetectorSim | apache-2.0 | 23,537 | 508 | codeparrot/github-code |
30f8a9987cdd5db63b8f48214f6217222f0df1f029b0a172d70db91674f44441 | /*
* Copyright 2009 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 | src/main/test/com/google/gwt/debugpanel/common/ExceptionDataTest.java | pmuetschard/gwt-debug-panel | apache-2.0 | 2,121 | 57 | codeparrot/github-code |
4216170d36cd9a78bde239d551d8bc671dca4f2c67b95e398edbc8c884e543dc | namespace Scada.Admin.App.Forms.Deployment
{
partial class FrmDownloadConfig
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/... | C# | ScadaAdmin/ScadaAdmin5/ScadaAdmin/Forms/Deployment/FrmDownloadConfig.Designer.cs | RapidScada/scada | apache-2.0 | 4,693 | 102 | codeparrot/github-code |
09a7317689b47a58effb36a665d6f036fd0d4586b9ab1dcc15c07d1a2fc75c9e | package me.zhujiajie.exam;
import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ArrayAdapter;
import android.widget.LinearLayout;
import android.widget.TextView;
import java.util.List;
public class ChatAdapter extends Array... | Java | app/src/main/java/me/zhujiajie/exam/ChatAdapter.java | zjj7725/exam | apache-2.0 | 2,025 | 59 | codeparrot/github-code |
14066a493fbd5f7d4b124cae69ac4b1c3897bb995c5151d928bcd754db0f5758 | package sigp.src;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import javax.validation.constraints.NotNull;
import org.hi... | Java | src/sigp/src/Disciplina.java | rafamanzo/SIGP | apache-2.0 | 1,980 | 91 | codeparrot/github-code |
fc62ba2dde2944a43f7d8455a2d801f38dcaa5f2fa38524bc2339cef12f11106 | package uk.co.ribot.androidboilerplate.view.swipmenu;
import android.content.Context;
import java.util.ArrayList;
import java.util.List;
/**
*
* @author baoyz
* @date 2014-8-23
*
*/
public class SwipeMenu {
private Context mContext;
private List<SwipeMenuItem> mItems;
private int mViewType;
public Swipe... | Java | app/src/main/java/uk/co/ribot/androidboilerplate/view/swipmenu/SwipeMenu.java | ebridfighter/GongXianSheng | apache-2.0 | 888 | 54 | codeparrot/github-code |
25869be38c73c6e3df38193202a705e8284a9cecd19cc02604b47580094084ee | // Copyright 2012 Google Inc. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable... | Java | modules/ads_lib/src/main/java/com/google/api/ads/dfp/lib/client/DfpServiceClient.java | gawkermedia/googleads-java-lib | apache-2.0 | 2,767 | 68 | codeparrot/github-code |
63cc59d18571451c86a54fc160f0eb61d2e0f68278cd1f227bed4e669401fac4 | /*****************************************************************************
** Copyright (C) 2015 Intel Corporation. **
** **
** Licensed under the Apache License, Version 2.0 (the "License"); **
** y... | JavaScript | extension/gmail/content.js | Open-TEE/opentee-extension-chrome | apache-2.0 | 3,021 | 72 | codeparrot/github-code |
572dcdd658f352d62f74714f02886448e205341f0fca54e146e817375116cda0 | /*
* Copyright (c) 2014 AsyncHttpClient Project. All rights reserved.
*
* This program is licensed to you under the Apache License Version 2.0,
* and you may not use this file except in compliance with the Apache License Version 2.0.
* You may obtain a copy of the Apache License Version 2.0 at http://www.apache.or... | Java | providers/netty4/src/main/java/org/asynchttpclient/providers/netty4/response/LazyNettyResponseBodyPart.java | afelisatti/async-http-client | apache-2.0 | 2,231 | 70 | codeparrot/github-code |
402aeb2932ccb030e7d9aa49a6086724bd63a1fcdf37e3d47cebd19c42772f6a | // ----------------------------------------------------------------------
// CMP experimental environment
//
// (c) Nikita Nikitin, UPC LSI
// nikita.i.nikitin@gmail.com
//
// File GGraph.cpp
// Created May 03, 2011
// ----------------------------------------------------------------------
#include "GGr... | C++ | src/ggraph/GGraph.cpp | nikitainikitin/cmpexplore | apache-2.0 | 3,601 | 144 | codeparrot/github-code |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.