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 |
|---|---|---|---|---|---|---|---|---|
9582cd75e46cf40910632b0448e5d859166bc6d46cf59846a2a06f40fdac361d | package testapp.endpoint.ghissues.gh304;
import act.app.event.SysEventId;
import act.event.ActEventListenerBase;
import act.event.BindOn;
import act.event.EventBus;
import act.job.OnSysEvent;
import org.osgl.mvc.annotation.GetAction;
import javax.inject.Singleton;
@Singleton
@BindOn(SysEventId.SINGLETON_PROVISIONED)... | Java | legacy-testapp/src/main/java/testapp/endpoint/ghissues/gh304/Gh304EventListener.java | actframework/actframework | apache-2.0 | 772 | 33 | codeparrot/github-code |
8ff908d8730110fda40f10e4426ad38bcdff149916dfd14cedd4b6b11674d2c5 | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class BestFriend : States
{
public bool isActive;
public float bonus;
public bool checkActive()
{
if (getName() == "Best Friend")
isActive = true;
else
isActive = false;
... | C# | Modern Time (J)RPG/Assets/Scripts/Social System/Relationship System/Relationship States/BestFriend.cs | Kuraikari/Modern-Times | apache-2.0 | 515 | 30 | codeparrot/github-code |
42123cf0416c7bc0a62310bbc46925b957901ab46de62c2fc9c2668631ac80ff | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
using System.Reflection;
namespace XSharp.MacroCompiler
{
using Syntax;
internal class OverloadResult
{
internal int TotalCost = 0;
internal int Extr... | C# | Runtime/MacroCompiler/Binder/OverloadResult.cs | X-Sharp/XSharpPublic | apache-2.0 | 4,516 | 119 | codeparrot/github-code |
ebf7105e11b92041dbbcb9701a8fd82da43535ea7ba483fce29677ee4bf57ba4 | package gam.org.com.leidianzhanji.pzd;
import android.graphics.Bitmap;
import android.graphics.Canvas;
import android.graphics.Paint;
import android.graphics.RectF;
import gam.org.com.leidianzhanji.npc.NPC;
import gam.org.com.leidianzhanji.play.Airplane;
import gam.org.com.leidianzhanji.play.Game;
import gam.org.com.... | Java | app/src/main/java/gam/org/com/leidianzhanji/pzd/WingBullet.java | wusai233/LDZJ | apache-2.0 | 5,611 | 202 | codeparrot/github-code |
e06ba9073211b016431d640939030433619a055e21b5996063c1ece0de4bd6c3 | /*
* 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 | components/camel-debezium-common/camel-debezium-common-component/src/test/java/org/apache/camel/component/debezium/DebeziumTypeConverterTest.java | DariusX/camel | apache-2.0 | 2,480 | 64 | codeparrot/github-code |
7b472cdb96402b9caf73077eb06269fe975a8662b367801c2384a676f19006e8 | package org.apereo.cas.support.events.jpa;
import org.apereo.cas.config.JpaEventsConfiguration;
import org.apereo.cas.support.events.AbstractCasEventRepositoryTests;
import org.apereo.cas.support.events.dao.CasEventRepository;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowir... | Java | support/cas-server-support-events-jpa/src/test/java/org/apereo/cas/support/events/jpa/JpaCasEventRepositoryTests.java | gabedwrds/cas | apache-2.0 | 1,361 | 37 | codeparrot/github-code |
bd691274b0616e934af61ffe0dea712faa076ed73456e83a149c5bcba9d72824 | package com.coolweather.app.util;
import java.io.BufferedReader;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.net.HttpURLConnection;
import java.net.URL;
public class HttpUtil {
public static void sendHttpRequest(final String address,
final HttpCallbackListener listener) {... | Java | src/com/coolweather/app/util/HttpUtil.java | taoshowa/coolweather | apache-2.0 | 1,293 | 48 | codeparrot/github-code |
9fde0893ea2df0cebe718f5a860c395c5b96ee6278892865c7ea6a05a6f45173 | from boto import (
elasticache as ec,
route53 as r53
)
from majorkirby import CustomActionNode
class CachePrivateDNSRecord(CustomActionNode):
"""Represents a private DNS record for the ElastiCache cache cluster"""
INPUTS = {
'Region': ['global:Region'],
'CacheCluster': ['global:CacheC... | Python | deployment/cfn/cache_private_dns_record.py | mmcfarland/model-my-watershed | apache-2.0 | 2,548 | 60 | codeparrot/github-code |
51d76ddbcd5fb6ad0b9b2ee6736d6efb576c9f2545659ec01686be3aac19cde6 | /*
* Copyright 2006-2010 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | Java | core/citrus-base/src/test/java/com/consol/citrus/container/RepeatOnErrorUntilTrueTest.java | christophd/citrus | apache-2.0 | 2,888 | 88 | codeparrot/github-code |
c3ed657894e561604a9648ae11abde22f35964f933efe26e3bcead2181c9a571 | package org.zeromq;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertTrue;
import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import jav... | Java | tools-zeromq/src/test/java/org/zeromq/ZMsgTest.java | mosaic-cloud/mosaic-java-platform | apache-2.0 | 5,110 | 208 | codeparrot/github-code |
8a4b44641de362f6666032b178824275eba9d7df674bf82e410d19b898d3e9ee | /**
Copyright 2014-2015 Jason R. Wendlandt
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, sof... | C++ | AlphaEngine/Source/Math/Vector3.cpp | Sh1ft0/alpha | apache-2.0 | 4,423 | 174 | codeparrot/github-code |
a1760b7ee059ec698a39fb425678c1d838b79765300ce1e3803903fc7f699f7c | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="">
<meta name="author" content="">
<title>Three Tips to Make Code Nicer</... | HTML | codeforces/2015/10/22/nice.html | jhfjhfj1/jhfjhfj1.github.io | apache-2.0 | 11,254 | 373 | codeparrot/github-code |
ac4c2192860141b7664199320893164e426086365622b8fb786c11b037ca3396 | /**
* Copyright 2012 Pedro Ribeiro
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | Java | core/src/test/java/org/hashes/collision/CollisionGeneratorTestBase.java | ribeirux/hashes | apache-2.0 | 2,148 | 63 | codeparrot/github-code |
ba6dee48c1556ae1c7633f2306c0b0c4123a8318b38eac85aed7b300ce103856 | package gg.galaxygaming.necessities.Commands;
import gg.galaxygaming.necessities.Necessities;
import gg.galaxygaming.necessities.Utils;
import gg.galaxygaming.necessities.Variables;
import java.util.Collections;
import java.util.List;
import java.util.UUID;
import org.bukkit.Bukkit;
import org.bukkit.GameMode;
import ... | Java | src/main/java/gg/galaxygaming/necessities/Commands/CmdGamemode.java | pupnewfster/Necessities | apache-2.0 | 2,430 | 66 | codeparrot/github-code |
defdf10f682c7dd050eb2d804bc14eaa3a5f968ca35c34739f80c477dc3c7814 | package org.stagemonitor.configuration.converter;
import java.util.Collections;
import java.util.Iterator;
import java.util.LinkedHashMap;
import java.util.Map;
import java.util.regex.Pattern;
public class MapValueConverter<K, V> extends AbstractValueConverter<Map<K, V>> {
private final ValueConverter<K> keyValueCo... | Java | stagemonitor-configuration/src/main/java/org/stagemonitor/configuration/converter/MapValueConverter.java | stagemonitor/stagemonitor | apache-2.0 | 2,833 | 84 | codeparrot/github-code |
1a042a4e17d99459b595cd8298f80ca5e907920b6eb61950be3ff6b144685a9a | /*
* Apache HTTPD & NGINX Access log parsing made easy
* Copyright (C) 2011-2021 Niels Basjes
*
* 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/LICEN... | Java | httpdlog/httpdlog-parser/src/main/java/nl/basjes/parse/httpdlog/dissectors/HttpFirstLineProtocolDissector.java | nielsbasjes/logparser | apache-2.0 | 3,617 | 103 | codeparrot/github-code |
cf59b546800f04470a47c1494514fd23cd349cf314ac0553f7a8deffbfb06688 | namespace Jambo.Producer.UI
{
using Autofac;
using Autofac.Configuration;
using Jambo.Producer.UI.Filters;
using Microsoft.AspNetCore.Authentication.JwtBearer;
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Hosting;
using Microsoft.Extensions.Configuration;
using Microso... | C# | source/Producer/Jambo.Producer.UI/Startup.cs | ivanpaulovich/jambo | apache-2.0 | 3,955 | 111 | codeparrot/github-code |
2b441b330e65889233b4849a5822dd30b58d2932beb9b39f8ab7813c2adc7a16 | package com.pearson.statsagg.web_api;
import com.google.gson.JsonObject;
import com.pearson.statsagg.utilities.core_utils.StackTrace;
import java.io.PrintWriter;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.Ht... | Java | src/main/java/com/pearson/statsagg/web_api/MetricGroupCreate.java | PearsonEducation/StatsAgg | apache-2.0 | 2,801 | 85 | codeparrot/github-code |
0df450613283e46a3e886be7b09712ea792966d88d7ed9eb691e406145b9d9fb | /*
* 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 com.mycompany.serveisoaprest;
import javax.ws.rs.core.Context;
import javax.ws.rs.core.UriInfo;
import javax.ws.rs.Pr... | Java | serveiSoapRest/src/main/java/com/mycompany/serveisoaprest/GenericResource.java | xroca/planFormacionJava | apache-2.0 | 1,343 | 54 | codeparrot/github-code |
ab2f7ffa09764ee76b6d92e9ff35642cdddff4da5c243178614e7f3dae7edbe8 | /*
* Copyright 2019 Red Hat, Inc. 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 app... | Java | kie-wb-common-dmn/kie-wb-common-dmn-client/src/main/java/org/kie/workbench/common/dmn/client/editors/types/listview/constraint/range/DataTypeConstraintRange.java | jhrcek/kie-wb-common | apache-2.0 | 5,387 | 164 | codeparrot/github-code |
2597f5869da17749b4e21dbbb90ac138f1fd63a205eb3adb18126ea577afb881 | import { HLS } from 'clappr';
import Hls from 'streamroot-hlsjs-p2p-bundle';
class StreamrootHlsjs extends HLS {
static canPlay = HLS.canPlay;
static get version() {
return __VERSION__;
}
static get name() {
return __NAME__;
}
_coreSetupHls() {
const hlsjsConfigCopy =... | JavaScript | provider.js | streamroot/clappr0-hlsjs-provider | apache-2.0 | 1,803 | 54 | codeparrot/github-code |
dce1ddce5b59588e402dad2209c88c403bf6059946f3f4db10439ace2689c39a | /**
* @fileoverview Setting Up Tink
* @author burning <iburning@live.cn>
* @version 2017.08.30
*/
//Aliases
// console.log('PIXI', PIXI)
const Container = PIXI.Container
const Graphics = PIXI.Graphics
const Loader = PIXI.loader
const Rectangle = PIXI.Rectangle
const Renderer = PIXI.autoDetectRenderer
const Resourc... | JavaScript | src/chapter_07/drag-and-drop.js | iburning/hello-pixi | apache-2.0 | 3,774 | 159 | codeparrot/github-code |
241f9a8f7276c1298be22c4c5e10afc2d93cfffd9f102a71c15b08aa6f87032b |
package org.drip.function.r1tor1;
/*
* -*- mode: java; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
*/
/*!
* Copyright (C) 2017 Lakshmi Krishnamurthy
* Copyright (C) 2016 Lakshmi Krishnamurthy
* Copyright (C) 2015 Lakshmi Krishnamurthy
* Copyright (C) 2014 Lakshmi Krishnamurthy
* Copyright (C) 2... | Java | src/main/java/org/drip/function/r1tor1/UnivariateReflection.java | lakshmiDRIP/DRIP | apache-2.0 | 4,767 | 131 | codeparrot/github-code |
49ff58c7c7acf6373cb49919cf91673b2fffd9969f86962c1fed010b7d6f764d | class E3DBaseEnv extends EUIBaseEnv{
protected _time: number = 0;
protected _delay: number = 0;
protected _timeDate: Date = null;
protected _view3D: egret3d.View3D = null;
protected _viewPort: egret3d.Rectangle = null;
protected _camera3D: egret3d.Camera3D = null;
protected _cameraCtl: Camer... | TypeScript | src/game/E3DBaseEnv.ts | aceway/findX | apache-2.0 | 4,259 | 106 | codeparrot/github-code |
cb1f77bee7664deb3894c03d9c9b26499da94b3f1ddf5d32fad248ddc6399318 | {% extends "base.html" %}
{% load i18n %}
{% get_current_language as LANGUAGE_CODE %}
{% block title %}{% trans 'The Ultimate Resource For LoveLive! School Idol Festival players' %}{% endblock %}
{% block back_button %}0{% endblock %}
{% block js %}
<script src="/static/js/loadactivities.js"></script>
<script src="/st... | HTML | web/templates/index.html | laurenor/SchoolIdolAPI | apache-2.0 | 11,008 | 267 | codeparrot/github-code |
cc11799ce50d6f94209628042d8b7e3a9983a3ff6db2749b388d18fc4b5c257a | # 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 writing... | Python | targeted_attack/attacked_fedavg.py | google-research/federated | apache-2.0 | 24,990 | 634 | codeparrot/github-code |
03ff277f24a01b10731e11046473f4d6236b5890d61de548e0a006f454d1fedf | // Copyright 2013 Square, Inc.
package org.fest.assertions.api.android.gesture;
import android.gesture.GestureStore;
import org.fest.assertions.api.AbstractAssert;
import static org.fest.assertions.api.Assertions.assertThat;
/** Assertions for {@link GestureStore} instances. */
public class GestureStoreAssert extend... | Java | src/main/java/org/fest/assertions/api/android/gesture/GestureStoreAssert.java | alexruiz/fest-android | apache-2.0 | 1,529 | 50 | codeparrot/github-code |
475bbdc54bedfa387f79e0bab8db93c2031c024e0f943d8709581ccad2932bcd | // Copyright 2017 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
package org.chromium.content.browser;
import android.content.ComponentName;
import android.content.Context;
import android.content.pm.ApplicationInfo;
im... | Java | app/src/main/java/org/chromium/content/browser/ChildConnectionAllocator.java | mogoweb/365browser | apache-2.0 | 9,697 | 230 | codeparrot/github-code |
90ae8f811a545a1cb48b8405cef85d6ad18d847852c31de7578ea5af7f33790b | /*
* Copyright 2014-2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
* the License. A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "licen... | Java | aws-java-sdk-codecommit/src/main/java/com/amazonaws/services/codecommit/AWSCodeCommitAsyncClient.java | jentfoo/aws-sdk-java | apache-2.0 | 92,364 | 2,383 | codeparrot/github-code |
9ded39ac169de9205380acabe03981b977d54f96e739a2ebc9c1db0ec32c66c1 | package org.beanstalk4j.model.builder;
import java.util.Date;
import org.beanstalk4j.model.Invitation;
import org.beanstalk4j.utils.IsoDateTimeFormat;
import org.beanstalk4j.xml.DOMUtils;
import org.w3c.dom.Element;
/*
* Copyright 2011 Björn Raupach
Licensed under the Apache License, Version 2.0 (the "License")... | Java | src/main/java/org/beanstalk4j/model/builder/InvitationBuilder.java | raupachz/beanstalk4j | apache-2.0 | 3,237 | 120 | codeparrot/github-code |
854c9f29fa8f7f9ceb545ee81f369866a7b0e82c67279b935336fd475c7cb6d8 | package io.jitstatic;
import static org.eclipse.jetty.http.HttpStatus.OK_200;
import static org.eclipse.jetty.http.HttpStatus.UNAUTHORIZED_401;
/*-
* #%L
* jitstatic
* %%
* Copyright (C) 2017 - 2018 H.Hegardt
* %%
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file exc... | Java | jitstatic/src/test/java/io/jitstatic/AdminUrlTest.java | hheg/jitstatic | apache-2.0 | 5,656 | 119 | codeparrot/github-code |
51fd97133ba4ae473024913c62e5d1a3650b6947055338fc09b33cd8ae22c77a | """Default tags used by the template system, available to all templates."""
import sys
import re
from itertools import groupby, cycle as itertools_cycle
from google.appengine._internal.django.template import Node, NodeList, Template, Context, Variable
from google.appengine._internal.django.template import TemplateSyn... | Python | .google_appengine/google/appengine/_internal/django/template/defaulttags.py | tungvx/deploy | apache-2.0 | 42,800 | 1,218 | codeparrot/github-code |
b03204ac10d77b10a5dc2aa531104595d2c5bc7064225fda884335ed14de4b87 | #ifndef BABYLON_SHADERS_PARTICLES_VERTEX_FX_H
#define BABYLON_SHADERS_PARTICLES_VERTEX_FX_H
namespace BABYLON {
extern const char* particlesVertexShader;
const char* particlesVertexShader
= R"ShaderCode(
// Attributes
attribute vec3 position;
attribute vec4 color;
attribute float angle;
attribute vec2 size;
#ifd... | C | src/BabylonCpp/include/babylon/shaders/particles_vertex_fx.h | samdauwe/BabylonCpp | apache-2.0 | 4,744 | 171 | codeparrot/github-code |
71918e49a1166fa7bb47d37a09a542cb432c367750132a714db134038fa9f3ed | from grafo import Digraph
from CaminoMinimo import CaminoMinimo
import heapq
class Dijkstra(CaminoMinimo):
def __init__(self, grafo, origen, destino):
CaminoMinimo.__init__(self, grafo, origen, destino)
self.dist_heap = []
#heapq.heapify(self.dist_heap)
for i in xrange(self.grafo.V... | Python | TDA Grafo/Dijkstra.py | GFibrizo/TPS_7529 | apache-2.0 | 1,960 | 58 | codeparrot/github-code |
61ed4053c491337e3b327058b0920ac38bbb3047d374bf14108add67f8af4e88 | package com.twu.biblioteca;
import org.junit.Before;
import org.junit.Test;
import org.mockito.InOrder;
import java.io.PrintStream;
import static org.mockito.Mockito.*;
/**
* Created by jonathon.hill on 29/7/17.
*/
public class BibliotecaAppTest {
private MainMenu mockMainMenu;
private PrintStream mockPr... | Java | test/com/twu/biblioteca/BibliotecaAppTest.java | jcgh582/twu-biblioteca-jonathon | apache-2.0 | 2,395 | 67 | codeparrot/github-code |
bd70bb5a18d1ce6b7700225e449905bf5ee6e6736933c06fb390db5ceff89c2b | package es.molestudio.photochop.controller;
import es.molestudio.photochop.model.Image;
/**
* Created by Chus on 04/03/15.
*/
public interface BackendManager {
public interface BackendImageListener {
public void onDone(Image image, Exception err);
}
public interface ImageCountListener {
... | Java | PhotoChop/app/src/main/java/es/molestudio/photochop/controller/BackendManager.java | ChusSenosiain/PhotoChop | apache-2.0 | 740 | 31 | codeparrot/github-code |
9ca585e8079f31c00dfb187a8b1558adb760116d3ca906d993c9b56a3f5cab79 | #
# Copyright 2021 Centreon (http://www.centreon.com/)
#
# Centreon is a full-fledged industry-strength solution that meets
# the needs in IT infrastructure and application monitoring for
# service performance.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in com... | Perl | storage/qnap/snmp/mode/components/psu.pm | Tpo76/centreon-plugins | apache-2.0 | 6,479 | 185 | codeparrot/github-code |
6e3e517a576840a3f24f24c63f15b44b16b82bce016b217edc4162531e9edf1f | #
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not... | Python | airflow/example_dags/example_nested_branch_dag.py | owlabs/incubator-airflow | apache-2.0 | 2,028 | 43 | codeparrot/github-code |
6cd6ee99a1334e4519fa935830b2466ef08c8dc8f2597ef0a0a9dd5826cdad95 | 'use strict';
var mongoose = require('mongoose');
var logger = require('./config/logger');
var fs = require('fs');
var readline = require('readline');
var stream = require('stream');
var watson = require('watson-developer-cloud');
var config = require('./config/config');
require('./app/models/business'... | JavaScript | find.js | ppashin/Places2GoAPI | apache-2.0 | 1,249 | 46 | codeparrot/github-code |
be601141b539e1fa5ff0c49d37388fd4aced053bee8c0bc146a5839b7488a838 | /*
* Copyright 2015 Kaazing 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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agree... | Java | aeron-samples/src/main/java/io/aeron/samples/MultiplePublishersWithFragmentation.java | EvilMcJerkface/Aeron | apache-2.0 | 5,928 | 133 | codeparrot/github-code |
0377e3f81a2fd7032ffcf2b95bc0e01921ce4c0f591a1911f2b9c6066faff70b | /**
* Copyright (c) 2006
* Martin Czuchra, Nicolas Peters, Daniel Polak, Willi Tscheschner
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
* to deal in the Software without restriction, including without limit... | JavaScript | client/common/source/class/ms123/oryx/core/svg/SVGShape.js | ms123s/simpl4-src | apache-2.0 | 19,216 | 596 | codeparrot/github-code |
17f31254baec0edd287de1f35bacdbaa14d5bd0fbb6917a97913b0c1fe8ab635 | package apoc.convert;
import apoc.util.TestUtil;
import apoc.util.Util;
import junit.framework.TestCase;
import org.apache.commons.lang.exception.ExceptionUtils;
import org.assertj.core.util.Arrays;
import org.hamcrest.MatcherAssert;
import org.hamcrest.Matchers;
import org.junit.After;
import org.junit.Before;
import... | Java | core/src/test/java/apoc/convert/ConvertJsonTest.java | neo4j-contrib/neo4j-apoc-procedures | apache-2.0 | 36,794 | 684 | codeparrot/github-code |
98cf346b1cd9420a5fbf4fcd0e464962e7154a0cb050eb68a266dd96b465f7fd | <?php
namespace Genetsis\core;
/**
* This class stores login status.
*
* @package Genetsis
* @category Bean
* @version 1.0
* @access private
*/
class LoginStatus
{
/** @var Ckusid of user logged. */
private $ckusid = null;
/** @var ObjectID of user logged. */
private $oid = null;
/*... | PHP | src/core/LoginStatus.php | dru-id/druid-php-sdk | apache-2.0 | 1,195 | 69 | codeparrot/github-code |
6f853a9e21e184f7e5c3831100774171d0034ebba3790f7aa3b9070dcb44e523 | # coding=utf-8
# Copyright 2022 The Google Research 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 applicab... | Python | persistent_es/plot_uci.py | google-research/google-research | apache-2.0 | 7,347 | 263 | codeparrot/github-code |
b45753a59384ae3cb42889c737309edd8da3f260b6f32f9c603551e420e73cff | package com.senseidb.search.facet;
import it.unimi.dsi.fastutil.ints.IntArrayList;
import it.unimi.dsi.fastutil.longs.LongIterator;
import it.unimi.dsi.fastutil.longs.LongOpenHashSet;
import it.unimi.dsi.fastutil.longs.LongSet;
import java.io.IOException;
import java.util.Collections;
import java.util.Properties;
im... | Java | sensei-core/src/main/java/com/senseidb/search/facet/UIDFacetHandler.java | DataDog/sensei | apache-2.0 | 9,026 | 294 | codeparrot/github-code |
117540b29949bc9db1bfd95dc1897e7474cae111eb369f3568bc7de33e0e2035 | # Copyright 2015 OpenStack 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
#
# Unless requ... | Python | nova/conf/cells.py | hanlind/nova | apache-2.0 | 15,948 | 527 | codeparrot/github-code |
2f31003581d19725c85608e815c2d5c44539d9b45355e387a254c81e8b6b148e | <?php
/**
* 商品图片
*
*
*/
class Image_model extends Model
{
var $product_id;
var $image_name;
var $file;
var $file_ext;
var $file_mime;
var $width;
var $height;
var $file_size;
var $is_base = 0;
var $sort_order = 0;
function __construct()
{
parent::Model();
}
// ... | PHP | application/models/image_model.php | 4u4v/CI_Cart | apache-2.0 | 1,385 | 84 | codeparrot/github-code |
7f9c4643dc80a1e9c988c6221516835ab5683aa4e11be74a49f8f13a8275a337 | /*
* Licensed to Elasticsearch under one or more contributor
* license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright
* ownership. Elasticsearch licenses this file to you under
* the Apache License, Version 2.0 (the "License"); you may
* not use this fi... | Java | core/src/main/java/org/elasticsearch/search/aggregations/metrics/tophits/TopHitsAggregator.java | strapdata/elassandra-test | apache-2.0 | 10,328 | 222 | codeparrot/github-code |
226125330d9ce170547615ecf5dd8de3b914b723f4d8a6da2820d8f7043467eb | \defmodule {fcong}
The functions in this module creates whole families of generators of the same
kind (such as LCGs, MRGs, inversive, cubic, \ldots), based on recurrences
modulo some integer $m$, of different period lengths (the number of states)
near powers of 2.
Each {\tt Create} function will return a family of ge... | TeX | testu01/fcong.tex | umontreal-simul/TestU01-2009 | apache-2.0 | 10,473 | 308 | codeparrot/github-code |
0687b57ebb5c89e2524a939a01a8c16ce3e0246cae112b9f66f79bed7a5f2ef7 | /*
Copyright IBM Corp. 2016 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 agreed to in wri... | GO | gossip/comm/comm_impl.go | tkuhrt/fabric | apache-2.0 | 17,959 | 645 | codeparrot/github-code |
a44f93b1a066d73b0b5e8210e863369fd219309c99d485730c56c6b9d1330308 | <?php
final class PhabricatorMacroTransaction
extends PhabricatorApplicationTransaction {
public function getApplicationName() {
return 'file';
}
public function getTableName() {
return 'macro_transaction';
}
public function getApplicationTransactionType() {
return PhabricatorMacroPHIDTypeMa... | PHP | src/applications/macro/storage/PhabricatorMacroTransaction.php | Automattic/phabricator | apache-2.0 | 8,982 | 304 | codeparrot/github-code |
3c610055aaa2dbd0111ae716e4918eca969c8cd9d6fd42edec702690bd45c812 | /*
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
* or more contributor license agreements. Licensed under the Elastic License;
* you may not use this file except in compliance with the Elastic License.
*/
package org.elasticsearch.xpack.core.ilm;
import org.apache.lucene.util.SetOn... | Java | x-pack/plugin/core/src/test/java/org/elasticsearch/xpack/core/ilm/RolloverStepTests.java | coding0011/elasticsearch | apache-2.0 | 12,550 | 294 | codeparrot/github-code |
87bb0102e01c03908a102e5e9f11b83eac783cbd09c4dd055794da735cf233e2 | /*******************************************************************************
* Copyright 2014 See AUTHORS file.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.... | Java | src/ca/raihan/tictactoe/game/GameInitParams.java | prshreshtha/tic_tac_toe_pp | apache-2.0 | 1,927 | 79 | codeparrot/github-code |
c3474f15d3c6a3ef4729921398d6fc8545de45f6a2c3f55dc02870c8c80ce59b | package com.liquications.polyphasicsleep;
import android.app.Dialog;
import android.content.ActivityNotFoundException;
import android.content.Intent;
import android.content.SharedPreferences;
import android.net.Uri;
import android.os.Bundle;
import android.preference.PreferenceManager;
import android.support.... | Java | app/src/main/java/com/liquications/polyphasicsleep/Main.java | mikeyy109/polyphasicsleep | apache-2.0 | 7,497 | 244 | codeparrot/github-code |
d7f9e006bff7630a5c78ee75687a81425461b234d3e3db1b8a78e7931a879a7e | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="Site voltado a Desenvolvimento Web, Front-end, Back-end e DevOps">
<title>Sci... | HTML | 2014/08/24/science-has-not-yet-mastered-prophecy/index.html | napalmdev/napalmdev.github.com | apache-2.0 | 10,422 | 231 | codeparrot/github-code |
69bb81cd2de51c42e2dedd22944fe3be3ca04cea263f962e78fa3f85b60e3cd0 | package org.zaproxy.zap.view;
import java.awt.CardLayout;
import java.awt.GridBagLayout;
import javax.swing.JCheckBox;
import javax.swing.JLabel;
import javax.swing.JPanel;
import org.parosproxy.paros.Constant;
import org.parosproxy.paros.model.Model;
import org.parosproxy.paros.model.Session;
import org... | Java | src/org/zaproxy/zap/view/ContextGeneralPanel.java | zapbot/zaproxy | apache-2.0 | 6,014 | 194 | codeparrot/github-code |
432521edd3a4d8c2a434b34f0ca0402a3e01da0824e486ca1483351a427b5244 | class EmsContainerController < ApplicationController
include EmsCommon # common methods for EmsInfra/Cloud/Container controllers
include Mixins::EmsCommonAngular
include Mixins::GenericSessionMixin
before_action :check_privileges
before_action :get_session_data
after_action :cleanup_action
after_a... | Ruby | app/controllers/ems_container_controller.rb | maas-ufcg/manageiq | apache-2.0 | 1,055 | 53 | codeparrot/github-code |
d68933240635f6b04de9461349e7b16263ed8ad5da00ae5b5b4047179a1805fd | using App.Metrics.Counter;
using App.Metrics.Meter;
using App.Metrics.Timer;
namespace App.Metrics.Extensions.NServiceBus
{
internal static class NServiceBusMetricsRegistry
{
public static string ContenxtName = "NServiceBus";
public static class Meters
{
/// <summary>
... | C# | src/NServiceBus/src/App.Metrics.Extensions.NServiceBus/NServiceBusMetricsRegistry.cs | alhardy/AppMetrics | apache-2.0 | 2,666 | 81 | codeparrot/github-code |
bd31c3612f8539901107e22e1b9dfe2f8186e83774efa2a93c1f8ba8da6cf466 | #-------------------------------------------------------------------------------
# Name: module1
# Purpose:
#
# Author: Administrator
#
# Created: 08/10/2011
# Copyright: (c) Administrator 2011
# Licence: <your licence>
#--------------------------------------------------------------------... | Python | src/game_of_life/python_coderetreat_socramob/cr_socramob09/gol01.py | hemmerling/codingdojo | apache-2.0 | 1,168 | 42 | codeparrot/github-code |
924ca37ab506b0d20d292368b37ee36f3773bc803929058a9a95e61dc0b094c7 | package ru.hromml.test.ortnec.manager;
import org.openqa.selenium.By;
import org.openqa.selenium.NoAlertPresentException;
import org.openqa.selenium.firefox.FirefoxDriver;
import java.util.concurrent.TimeUnit;
/**
* Created by HROM on 08.03.2017.
*/
public class ApplicationManager {
FirefoxDriver wd;
publ... | Java | ortnec/src/test/java/ru/hromml/test/ortnec/manager/ApplicationManager.java | hromml/java_tests | apache-2.0 | 1,310 | 52 | codeparrot/github-code |
b9bc16ff4055e57d5315ec597e50220c69520c0b00b35245b7c6c893bd2774f4 | /*
* Copyright (c) 2002-2018 "Neo Technology,"
* Network Engine for Objects in Lund AB [http://neotechnology.com]
*
* This file is part of Neo4j.
*
* Neo4j is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundatio... | Java | community/server/src/main/java/org/neo4j/server/rest/repr/RelationshipAutoIndexRepresentation.java | HuangLS/neo4j | apache-2.0 | 1,342 | 44 | codeparrot/github-code |
b157324aee9048d8f6781a4b7a6b8450b5baf0d53d41f81c87644afbb6d3bbd7 | package com.zht.baseproject.http.interceptor;
import com.zht.baseproject.utils.NetworkUtils;
import java.io.IOException;
import okhttp3.CacheControl;
import okhttp3.Interceptor;
import okhttp3.Request;
import okhttp3.Response;
/**
* Created by ZHT on 2016/12/25.
*
* OkHttp缓存拦截器
* 只能缓存get请求,不能缓存post请求
*/
publi... | Java | app/src/main/java/com/zht/baseproject/http/interceptor/CacheInterceptor.java | AlarmZeng/BaseProject | apache-2.0 | 1,374 | 50 | codeparrot/github-code |
52bfbcc3e577d226586d9968353619aab488847713295a1ce91ac3f01cefde19 | package com.seeburger.research.securityframework.configuration;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import javax.xml.bind.JAXBElement;
import com.seeburger.research.securityframework.configuration.cryptoAlgorithms.CryptoFactory;
import com.seeb... | Java | src/main/java/com/seeburger/research/securityframework/configuration/KeyspaceConfiguration.java | AndreasPetter/MasterThesisZaicanu | apache-2.0 | 5,608 | 159 | codeparrot/github-code |
ea124aac269d03741c38bcb8c8d45253826a279357698a81dd55dce33605e8d0 | /*
* Copyright 1999-2012 Alibaba Group.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by appl... | Java | cobar-server/src/test/java/com/alibaba/cobar/parser/ManagerParserTestPerf.java | lostdragon/cobar | apache-2.0 | 1,375 | 42 | codeparrot/github-code |
bf2c94c6635c70343e901ad4992950be3903072dcdb40fa03e07e1ad0a547c46 | /*
* Copyright 2015 Adrien PAVIE
*
* 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 | src/main/info/pavie/osm2hive/model/xml/Markup.java | PanierAvide/OSM2Hive | apache-2.0 | 5,953 | 223 | codeparrot/github-code |
08299c874fda32c9843ce93a84056adde510d568154e5fd06336ccdc4efc26ba | #!/usr/bin/env bash
umask 0027
SERVICE_USER=hae
MODULE_NAME=silvan
LOGGER_MAXSIZE=5120
LOGGER_PATH=/var/log/${SERVICE_USER}/${MODULE_NAME}
LOGGER_FILE=${LOGGER_PATH}/default.log
status()
{
ps -ef | grep $1 | grep -v grep 1>/dev/null
RETVAL=$?
if [ $RETVAL -eq 0 ]; then
return 0
... | Shell | silvan/bin/util.sh | titilink/titilink-framework | apache-2.0 | 1,211 | 72 | codeparrot/github-code |
21be06ef5f4418ecda17352d97c271d3661d12b40bf90142bb4cb17f55e4fc1b | /*
* Copyright 2014 IBM Corp.
*
* 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... | Scala | kernel/src/main/scala/com/ibm/spark/boot/KernelBootstrap.scala | slowenthal/spark-kernel | apache-2.0 | 5,433 | 169 | codeparrot/github-code |
dd42563d2b4239c20ff5fb752048c696e14af21d94937c7e6b30c5b73f69f65a | package org.sakaiproject.content.repository.tool.panels;
import java.util.LinkedHashMap;
import org.apache.commons.lang.StringUtils;
import org.apache.wicket.markup.html.basic.Label;
import org.apache.wicket.markup.html.form.CheckBox;
import org.apache.wicket.markup.html.form.Form;
import org.apache.wicket.markup.htm... | Java | tool/src/java/org/sakaiproject/content/repository/tool/panels/TabFileUpload.java | steveswinsburg/sakai-learning-object-repository | apache-2.0 | 3,330 | 114 | codeparrot/github-code |
1e0fc8ad3dcb76511421bb8ed11b1a21fb37f9d39df48b71a84b2330364e5b00 | #include "stdafx.h"
#pragma hdrstop
//#include <crtdbg.h>
#include "tntQAVI.h"
CAviPlayerCustom::CAviPlayerCustom( )
{
ZeroMemory( this, sizeof(*this) );
m_dwFrameCurrent = 0xfffffffd; // ñòðàõóåìñÿ îò 0xffffffff + 1 == 0
m_dwFirstFrameOffset=0;
}
CAviPlayerCustom::~CAviPlayerCustom( )
{
if( m_aviIC ) {
ICDe... | C++ | src/xray/xr_3da/tntQAVI.cpp | OLR-xray/OLR-3.0 | apache-2.0 | 11,944 | 439 | codeparrot/github-code |
9d4668017dd19f778736cba2f2eed14e4f8ee4fef2be1000be2a8fcf825a7be9 | /*
* Copyright 2010-2013 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... | C# | AWSSDK/Amazon.RDS/Model/Internal/MarshallTransformations/VpcSecurityGroupMembershipUnmarshaller.cs | emcvipr/dataservices-sdk-dotnet | apache-2.0 | 2,937 | 81 | codeparrot/github-code |
b3adfbe8a068a86ef7214bd4f8bcd3be6d410a6117964ef94c154b9dff853eae | using ecoBio.Wms.Common;
using ecoBio.Wms.Repositories;
using ecoBio.Wms.Service.Monitor;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using Calabonga.Mvc.PagedListExt;
namespace ecoBio.Wms.Web.Controllers
{
/// <summary>
/// 水质管理
/// </summary... | C# | ecoBio.Wms.Web/Controllers/waterqualityController.cs | amzulin/dlerp | apache-2.0 | 1,998 | 64 | codeparrot/github-code |
276005717d1ca51a57366c4f96c03163f7be2ecc40ae011f1359d1e8a5366beb | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Windows.Security.Cryptography;
using Windows.Security.Cryptography.Core;
using Windows.Storage.Streams;
namespace RNCryptorDecrypt
{
/// <summary>
/// This class provides an implementation... | C# | RNCryptor.cs | avranju/RNCryptorDecrypt | apache-2.0 | 4,677 | 114 | codeparrot/github-code |
bc29dad07553de8c43cc5d5788ef266d384982f3a9a0712fa9445ea66de41a3f | /*
* Copyright 2017 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 | plugin-infra/go-plugin-access/src/test/java/com/thoughtworks/go/plugin/access/analytics/AnalyticsPluginInfoBuilderTest.java | stevem999/gocd | apache-2.0 | 5,138 | 117 | codeparrot/github-code |
872a4b494e521e322a4e2dc2a9aa35206c7348982e18854ab6cd9b8d8637ded3 | import numpy as np
from random import randrange
def eval_numerical_gradient(f, x, verbose=True, h=0.00001):
'''
计算在x点,f的数值梯度的简单实现。
-f: 应该是一个只接受一个输入参数的函数
-x: 要评估梯度的点,是numpy的数组
'''
fx = f(x) # 获取源点函数值
grad = np.zeros_like(x)
it = np.nditer(x, flags=['multi_index'], op_flags=['readwrite']... | Python | cs231n/gradient_check.py | BoyuanYan/CIFAR-10 | apache-2.0 | 1,376 | 48 | codeparrot/github-code |
4b221d9fddf0b12458fccbb1e986a0130fc96c35c804891813ecce2caaba6646 | /*
* Copyright 2017 Young Digital Planet S.A.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by... | Java | src/test/java/eu/ydp/empiria/player/client/controller/extensions/internal/media/external/FullscreenVideoExecutorTest.java | YoungDigitalPlanet/empiria.player | apache-2.0 | 5,548 | 151 | codeparrot/github-code |
98cb9a32cd61d72b7088b9344c88028948753179e601efcc1964f192ad0bd95f | #ifndef TCPCLIENT_HH
#define TCPCLIENT_HH
#include "Class.hh"
#include "../../Lib/UV/libuv/include/uv.h"
namespace onode {
class TCPServer;
class TCPClient;
namespace resource {
class TCPClient;
}
typedef void (*tcp_on_connect_callback)(TCPClient *conn);
typedef bool (*tcp_on_read_callback)(TCPClient *con... | C++ | ONode/Source/Class/TCPClient.hh | sultan99/online | apache-2.0 | 2,183 | 90 | codeparrot/github-code |
53ff47f229c3bbf10bf0c7037a7408d3eaa53f555d817a0b6453a83130b31e9f | /*
* 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 | test/src/main/java/org/apache/accumulo/test/randomwalk/image/Commit.java | phrocker/accumulo | apache-2.0 | 1,319 | 35 | codeparrot/github-code |
20c4988d5294c87b1b75fd93d74cc3a7a2257e63ae98edae90c59b85aa688bc2 | //===--- ArraySemantic.cpp - Wrapper around array semantic calls. ---------===//
//
// This source file is part of the Swift.org open source project
//
// Copyright (c) 2014 - 2017 Apple Inc. and the Swift project authors
// Licensed under Apache License v2.0 with Runtime Library Exception
//
// See https://swift.org/L... | C++ | lib/SILOptimizer/Analysis/ArraySemantic.cpp | shahmishal/swift | apache-2.0 | 28,685 | 788 | codeparrot/github-code |
83c17479b602cb58ca534953ef1d44b073adfdb4612746e4b4e9fed28d65a3eb | package y2014;
import java.io.File;
import java.io.FileReader;
import java.io.InputStreamReader;
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.io.IOException;
public class prob11
{
String[] inputLines;
int[] digitToMilliwattsArray = {90, 30, 75, 75, 60, 75, 90, 45, 105, 90};
... | Java | HP Code Wars Team/src/y2014/prob11.java | p473lr/i-urge-mafia-gear | apache-2.0 | 2,069 | 81 | codeparrot/github-code |
8869c7462b18319c0fd9659485cf0fdec37646a28ea471130db5a82c85dc51ee | package goentrez
// Generated using chidly https://github.com/gnewton/chidley
//<eFetchResult><ERROR>Supplied id parameter is empty.</ERROR></eFetchResult>
type errorRoot struct {
FetchError *EFetchResultError `xml:" eFetchResult,omitempty"`
}
type EFetchResultError struct {
Error *FetchError `xml:" ERROR,omitempt... | GO | pubmed.go | gnewton/goentrez | apache-2.0 | 26,189 | 629 | codeparrot/github-code |
0492214d5fbc9b9dbdc678a74046cc1c919da94c530d7c05535a04af5f1d30c0 | 'use strict';
(function(exports) {
var _name = 'Firefox Hello';
var _htmlName = '';
_name.split(' ').forEach(function(str) {
_htmlName = _htmlName + '<span>' + str + ' </span>'
});
function getName(asHTMLMarkup) {
return asHTMLMarkup ? _htmlName : _name;
}
var mozL10n = navigator.mozL10n;
v... | JavaScript | app/js/branding.js | mozilla-b2g/firefoxos-loop-client | apache-2.0 | 1,590 | 61 | codeparrot/github-code |
acf0fea9ccbf1f2ed573835f56f4e44d0fb22ac48730faf6337791bdbd1049f8 | using AutoSniper.ClientWPF.Services;
using AutoSniper.ClientWPF.Services.Models;
using AutoSniper.ClientWPF.WPFModules.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AutoSniper.ClientWPF.WPFModules.Services
{
public class Accou... | C# | AutoSniper.ClientWPF/WPFModules/Services/AccountServices.cs | pengpercy/AutoSniper | apache-2.0 | 1,337 | 36 | codeparrot/github-code |
4960d7089b18a6f56d51cbbce4a4cb954ffa7cf6d6866984f700a945236744c6 | <HTML>
<BODY BGCOLOR="white">
<PRE>
<FONT color="green">001</FONT> /*<a name="line.1"></a>
<FONT color="green">002</FONT> * Copyright (c) 2001-2008, Jean Tessier<a name="line.2"></a>
<FONT color="green">003</FONT> * All rights reserved.<a name="line.3"></a>
<FONT color="green">004</FONT> * <a name="li... | HTML | tools/depfinder/docs/api/src-html/com/jeantessier/classreader/impl/ConstantPool.html | windup/JBossMAT | apache-2.0 | 11,675 | 191 | codeparrot/github-code |
81a26535c5bfce0f085d8ae486446616f204ab87bf353ddb9ba320e18d9eae43 | package org.netomi.tracker;
import java.io.BufferedReader;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.text.SimpleDateFormat;
import java.util.StringTokenizer;
import java.util.TimeZone;
import javax.annotation.PostConstruct;
import javax.annotation.PreDestroy;
import org.netomi.tracker... | Java | src/main/java/org/netomi/tracker/Initializer.java | netomi/sat-tracker | apache-2.0 | 3,948 | 110 | codeparrot/github-code |
a5a98ac7047120e7e5cab4528b9634d049d465381cd4c424df4ac3209b78f4ed | using System.Collections.Generic;
using System.Diagnostics.Contracts;
using System.Reactive.Concurrency;
using System.Reactive.Disposables;
namespace System.Reactive.Linq
{
public static partial class Observable2
{
/// <summary>
/// Moves to the next observable sequence when the current sequence... | C# | Main/Source/Rxx.Linq-Net451/System/Reactive/Linq/Observable2 - Errors - Catch.cs | RxDave/Rxx | apache-2.0 | 10,133 | 248 | codeparrot/github-code |
72546b8ec643ad48a34ec246db1fa63cbdd766d432ac20f1e4e90cc22462722e | /*
* OnlineAction.java
*
* 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 ... | Java | Webim/src/webim/actions/OnlineAction.java | nextalk/webim-for-struts1 | apache-2.0 | 4,759 | 164 | codeparrot/github-code |
b76a3eec3f154035509228e7818777ae2d375db4ba3bab6acf9e5049e0ec09dd | /*
* This is an OpenSSL-compatible implementation of the RSA Data Security, Inc.
* MD5 Message-Digest Algorithm (RFC 1321).
*
* Homepage:
* http://openwall.info/wiki/people/solar/software/public-domain-source-code/md5
*
* Author:
* Alexander Peslyak, better known as Solar Designer <solar at openwall.com>
*
* ... | C | third_party/openwall-md5/md5.c | google/google-ctf | apache-2.0 | 9,317 | 325 | codeparrot/github-code |
51f3aa3586d9ae12346feba288315c493a554388f0814518edde4a81e63e8b51 | """
Delaunay Sampler Module.
Provides the Delaunay Sampler Class which contains the strategies for
active sampling a spatial field
"""
from dora.active_sampling.base_sampler import Sampler, grid_sample
import numpy as np
from scipy.spatial import Delaunay as ScipyDelaunay
class Delaunay(Sampler):
"""
Delau... | Python | dora/active_sampling/delaunay_sampler.py | NICTA/dora | apache-2.0 | 4,870 | 152 | codeparrot/github-code |
932b818a6cb5858df0e5b56e6d9467e41f6610bf3f445c6a231abc936810d78e | // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0
$(function () {
$("#SendButton").click(function ($e) {
var body = $('#body').val();
var lang = $('#lang option:selected').text();
if (body == '') {
alert("Please enter... | JavaScript | dotnetv3/cross-service/SubscribePublishTranslate/SubscribePublishTranslate/wwwroot/js/site.js | awsdocs/aws-doc-sdk-examples | apache-2.0 | 2,902 | 108 | codeparrot/github-code |
51ca4d56bd10cce24e1705b38764704146464b3c9b0401fe1b3d1d55d7e814d7 | function __processArg(obj, key) {
var arg = null;
if (obj) {
arg = obj[key] || null;
delete obj[key];
}
return arg;
}
function Controller() {
function createRows(Products) {
var tableRows = [];
var row;
var _left = 7;
for (var i = 0; Products.length >... | JavaScript | Resources/iphone/alloy/controllers/Products.js | sjfranzen/yurapp | apache-2.0 | 3,678 | 99 | codeparrot/github-code |
4b6eb12b3442cc1fdcd56f4c6ee24c4037e4aa3a9e627e56c984d6f616e8364d | #!/usr/bin/python
#----------------------------------------------------------------------
# This module is designed to live inside the "lldb" python package
# in the "lldb.macosx" package. To use this in the embedded python
# interpreter using "lldb" just import it:
#
# (lldb) script import lldb.macosx.heap
#-------... | Python | examples/darwin/heap_find/heap.py | apple/swift-lldb | apache-2.0 | 61,389 | 1,524 | codeparrot/github-code |
6461af71778e82d224f24e2a863bf7c50eecfa205effb8e99f78e7b3954a3d73 | package com.verizon.trapezium.api.akkahttp.utils
import java.net.InetAddress
import akka.http.scaladsl.model.{HttpRequest, HttpResponse, StatusCode, StatusCodes}
import com.verizon.trapezium.api.akkahttp.server.HttpServicesResponse
import com.verizon.trapezium.api.akkahttp.utils.HttpServicesConstants._
import org.slf... | Scala | api-akkahttp/src/main/scala/com/verizon/trapezium/api/akkahttp/utils/HttpServicesUtils.scala | Verizon/trapezium | apache-2.0 | 4,422 | 163 | codeparrot/github-code |
346ab48ad72c84e098c7a68b25fb11be2c93e15302204413975209f2d905c79e | /*
* Copyright 2000-2015 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... | Java | java-impl/src/main/java/com/intellij/openapi/roots/JavaProjectModelModificationService.java | consulo/consulo-java | apache-2.0 | 2,955 | 69 | codeparrot/github-code |
020c64547795c85935b865f520d878629da96ff60db2334576b6c5ecb4640178 | package com.manyi.mall.cachebean.mine;
public class RecordsMoreRequest {
int userId;// 用户ID
int start;// 数据起始下标
int end;// 数据结束下标
Long markTime;// 时间戳
public int getUserId() {
return userId;
}
public void setUserId(int userId) {
this.userId = userId;
}
public int getStart() {
return start;
}
publi... | Java | BestarProject/ShoppingMall/src/com/manyi/mall/cachebean/mine/RecordsMoreRequest.java | bestarandyan/ShoppingMall | apache-2.0 | 597 | 42 | codeparrot/github-code |
fdf2b7706cedb62691e50982614d79f08c874880319fc791b378fec49f69586b | /*
* 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 | store-standalone/src/test/java/client/ShopperImpl.java | apache/nuvem | apache-2.0 | 1,799 | 65 | codeparrot/github-code |
f8a06535a50adb7a589d4aa4e3a8aea9147bdb103785ef43b1740f2d1e6f7de3 | /*
* Copyright 2000-2015 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... | Java | modules/base/lang-impl-testing/src/main/java/com/intellij/openapi/wm/impl/IdeFocusManagerHeadless.java | consulo/consulo | apache-2.0 | 2,820 | 115 | codeparrot/github-code |
0f9636e443f9dbec5f0a0e1229dc076f82985efb19120cc7cdbff430cb72b32d | var CalendarView = require('ui/CalendarView');
var util = require('lib/Util');
/**
* Create a window to hold the calendar
*/
function CalendarWindow(openTaskDayFunction) {
var self = Ti.UI.createWindow({
title : L('calendar'),
backgroundColor : util.CalendarWindowColor.BACKGROUND_COLOR,
barColor : util.Calend... | JavaScript | Resources/ui/CalendarWindow.js | nteetor/Planner | apache-2.0 | 1,411 | 53 | codeparrot/github-code |
cd4ce3b869f4bd72cac22fa15a4f6f31d54ddd95d4d269357e1b8db1569baf7f | /*
Copyright 2014-2015 GameUp
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, softwa... | C | Classes/NSURLRequest+GUURLRequest.h | Mazyod/gameup-ios-sdk | apache-2.0 | 972 | 33 | codeparrot/github-code |
b5167157851da6a3a6ff7e30bd03b044690f3754f5b36d4a3ae74c41a18997d2 | #region license
// Copyright 2004-2012 Castle Project, Henrik Feldt &contributors - https://github.com/castleproject
//
// 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
//
// ... | C# | src/Castle.IO/Internal/Directory.cs | castleproject/Castle.Transactions | apache-2.0 | 3,331 | 118 | codeparrot/github-code |
79526f43bf89bc703c99655a2a20f5804b37ffbce92c10749f4352cf2b3b3a03 | // -*- mode:c++; tab-width:2; indent-tabs-mode:nil; c-basic-offset:2 -*-
/*
* Mode.cpp
* zxing
*
* Created by Christian Brunschen on 19/05/2008.
* Copyright 2008 ZXing authors All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compl... | C++ | lib/iOS/dependencies/cpp/core/src/zxing/qrcode/decoder/Mode.cpp | dynamicapp/dynamicapp | apache-2.0 | 2,844 | 91 | codeparrot/github-code |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.