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
c1de2fcfceafee17c46fd55789f46903041e4b98e06bde93eaab0795df5906ad
namespace KBEngine { using UnityEngine; using System; using System.Collections; using System.Collections.Generic; using MessageID = System.UInt16; public class KBEDATATYPE_BASE { public virtual void bind() { } public virtual object createFromStream(MemoryStream stream) { return null; }...
C#
kbe/src/client/unity3d/DataTypes.cs
cnsoft/kbengine-cocos2dx
lgpl-3.0
10,893
497
codeparrot/github-code
ef5aa792bd31c2d40507cefc545c8a65abc8afdbfdf2f9b5cf4bd270cd84f268
/** * Copyright 2014-2017 yangming.liu<bytefox@126.com>. * * This copyrighted material is made available to anyone wishing to use, modify, * copy, or redistribute it subject to the terms and conditions of the GNU * Lesser General Public License, as published by the Free Software Foundation. * * This program is d...
Java
bytejta-supports-dubbo/src/main/java/org/bytesoft/bytejta/supports/dubbo/internal/TransactionBeanConfigValidator.java
liuyangming/ByteJTA
lgpl-3.0
9,724
222
codeparrot/github-code
163a9f82794875ffc402105b58c1f9754ddce5b2414497b25a6e23e7f176bf4d
const offsets = require('./offsets'); const ptrs = require('./ptrs.json'); module.exports = (process, module, memory) => { const that = {}; /* eslint-disable */ let patch_1 = offsets.camera.instructions.patch_1; let patch_2 = offsets.camera.instructions.patch_2; let patch_3 = offsets.camera.instructions.pat...
JavaScript
src/gw2/src/spectate.js
karliky/machinima-studio
unlicense
3,964
94
codeparrot/github-code
b57e1d6c5ac0964835eb18ea9791a70bca99e1d4df6f649d26c13ba63e90e41c
<?php namespace luscio\tools; class Image { const CROPTOP = 1; const CROPCENTER = 2; const CROPBOTTOM = 3; const CROPLEFT = 4; const CROPRIGHT = 5; const CROPTOPCENTER = 6; public $quality_jpg = 85; public $quality_png = 6; public $quality_truecolor = true; public $interlace ...
PHP
src/Image.php
luscio/tools
unlicense
14,725
411
codeparrot/github-code
67e6741e8ea532b6674b180a55b70c901347464c2d73239942c2610ea486f49a
if (typeof $.fn.Jcrop != 'undefined') { (function($) { var imageCropObj = { $preview: null, $pcnt: null, $pimg: null, xsize: null, ysize: null, init: function() { this.$preview = $('#preview-pane'), ...
JavaScript
src/js/image-crop.init.js
somecallmechief/Business-Admin-Template
unlicense
2,974
75
codeparrot/github-code
4a004668128bfcc49df09ab5cde06f918e719a1b86c69147e94a4b9d221e2d56
//: io/StoreCADState.java // Saving the state of a pretend CAD system. package io.p30; import java.io.*; import java.util.*; abstract class Shape implements Serializable { public static final int RED = 1, BLUE = 2, GREEN = 3; private int xPos, yPos, dimension; private static Random rand = new ...
Java
src/io/p30/StoreCADState.java
bodydomelight/tij-problems
unlicense
4,753
176
codeparrot/github-code
c4e8871ef514c63c5c9dd3fde0bd2b4d63befd805b707afa7b0786d93cca7739
#ifndef NITRO_MODEL_INCLUDED #include "../ndef.hpp" #include "../arc/arc.hpp" #include "../math/math.hpp" #include "../view/view.hpp" class model { public: uint32_t vert_n, poly_n; float *verts, *v_norms, *t_coords, *p_norms; float rad; char *tex_s; bool poly_col_; uint32_t gl_texid; ...
C++
model/model.hpp
eyedeeemm/nitrogen
unlicense
537
32
codeparrot/github-code
3ccf5ed497ac1fc7d088b9593264015d52d0b37f206e69a05d0e2367d2033d9e
package com.clilystudio.netbook.ui; import android.content.res.Resources; import android.os.AsyncTask; import android.os.Build; import android.os.Bundle; import android.os.Handler; import android.support.annotation.NonNull; import android.support.v4.app.Fragment; import android.view.LayoutInflater; import android.view...
Java
workspace/app/src/main/java/com/clilystudio/netbook/ui/BookCategoryFragment.java
clilystudio/NetBook
unlicense
8,067
180
codeparrot/github-code
41f2080a716e0f941b538721b7d495ec8e7b75e6e00f830dcd546278377de9c5
/* * A quick and dirty hash table implementation. * * See hash.h for more info * * This is free and unencumbered software released into the public domain. * http://unlicense.org/ */ #include <stdlib.h> #include <string.h> #include <ctype.h> #include <assert.h> #include "hash.h" #ifdef FIZ_OVER...
C
hash.c
wernsey/Fiz
unlicense
5,893
297
codeparrot/github-code
0612149177f78307c58f21a517dd93e298bc5e1a13c7398bed71c54eec6c1501
-- The file is in public domain -- nyfair (nyfair2012@gmail.com) local ffi = require 'ffi' ffi.cdef[[ #pragma pack(push) #pragma pack(1) struct WIN32_FIND_DATAW { uint32_t dwFileWttributes; uint64_t ftCreationTime; uint64_t ftLastAccessTime; uint64_t ftLastWriteTime; uint32_t dwReserved[4]; char cFileNa...
Lua
fswin.lua
nyfair/fi-luajit
unlicense
2,337
85
codeparrot/github-code
f03b7b77e3cc0d84353caaea8f0100835d257812dc45a11c902afbd2c58bc93b
class ProductsController < ApplicationController # GET /products # GET /products.json def index @stats = [{:label => "Product Average:", :stat => (Product.average(:price))}, {:label => "Product Max Price:", :stat => (Product.maximum(:price))}, {:label => "Product Unique C...
Ruby
app/controllers/products_controller.rb
gmcgibbon/Intro-To-Rails-Challenge
unlicense
2,368
93
codeparrot/github-code
ff99a21c5ea536f33470a0679f3093391e0fd8b17908a6bb6c0790c6b0fc3008
<?php $ipAddresses = $VAR->server->ipAddresses->all; $ipLimit = $VAR->server->webserver->apache->vhostIpCapacity; ?> <?php for($ipAddress = reset($ipAddresses); $ipAddress; $ipAddress = next($ipAddresses)): ?> <VirtualHost <?php echo "{$ipAddress->escapedAddress}:{$VAR->server->webserver->httpPort}"; f...
PHP
opt/psa/admin/conf/templates/custom/server/mailman.php
denverprophitjr/plesk-nginx-thirty-bees
unlicense
3,103
89
codeparrot/github-code
f317eabaf7ff6625ce032ae1ced89b28e5add4d1a5af6b9f81a330eedfd09c78
# uncompyle6 version 2.9.10 # Python bytecode 2.7 (62211) # Decompiled from: Python 3.6.0b2 (default, Oct 11 2016, 05:27:10) # [GCC 6.2.0 20161005] # Embedded file name: tkFileDialog.py from tkCommonDialog import Dialog class _Dialog(Dialog): def _fixoptions(self): try: self.options['filetype...
Python
Leak #5 - Lost In Translation/windows/Resources/Python/Core/Lib/lib-tk/tkFileDialog.py
DarthMaulware/EquationGroupLeaks
unlicense
3,898
149
codeparrot/github-code
9ee98b3ea9d21a5db7f82d2b35f1058d96bb435812aa59f35cef112b12e47535
using System; using System.Resources; using System.Globalization; using System.Threading; namespace EasyTourism3D { /// <summary> /// /// </summary> class AppState { #region Definição do Singleton /// <summary> /// /// </summary> private ...
C#
easytourism-3d/EasyTourism3D/Source/AppState.cs
rvelhote/university
unlicense
5,328
219
codeparrot/github-code
586fe6807108a3e5b54156c127f2aabec8b7237c1c70ad70f3d3de35eda82cc7
package info.loenwind.autosave.handlers.enderio; import java.lang.reflect.Field; import java.util.Set; import javax.annotation.Nonnull; import javax.annotation.Nullable; import crazypants.enderio.machine.invpanel.StoredCraftingRecipe; import info.loenwind.autosave.Registry; import info.loenwind.autosave.annotations....
Java
src/main/java/info/loenwind/autosave/handlers/enderio/HandleStoredCraftingRecipe.java
D-Inc/EnderIO
unlicense
1,993
58
codeparrot/github-code
d5dce6b5812f7cf2b1cf8f86c11f7fb26186edb5df321a28ae4d443554ee837e
using System; using FluentNHibernate.Testing; using Ics.Model; using Ics.NHibernate.Maps; using Machine.Specifications; using NHibernate; using NHibernate.Specs.Shared; namespace Ics.NHibernate.Specs { [Subject(typeof(UnitMap))] public class When_checking_persistence_specs_of_unit : InMemoryDatabase...
C#
old/src/1st/Persistence/Ics.NHibernate.Specs/UnitMapSpecs.cs
Slesa/Poseidon
unlicense
3,211
80
codeparrot/github-code
2f527c106710549f3abe08a01b23d154aa20b22042ab0c8e59ac260fb6747c4f
using System; using System.Data; using System.Configuration; using System.Collections; using System.Web; using System.Web.Security; using System.Web.UI; using System.Web.UI.WebControls; using System.Web.UI.WebControls.WebParts; using System.Web.UI.HtmlControls; using System.Text; namespace Maticsoft.Web.inv_answer { ...
C#
Web/inv/inv_answer/Show.aspx.cs
nature-track/wenCollege-CSharp
unlicense
1,175
48
codeparrot/github-code
f866aceeae3e4b2aeba79929838c0dd7d31c0483804349f1d3e6d7c068d69cc5
package com.seanshubin.builder.domain import java.io.PrintWriter import java.nio.file.{Path, StandardOpenOption} import java.time.Duration import com.seanshubin.builder.domain.FailReason.{ExceptionThrown, ExitCode} import com.seanshubin.builder.domain.ProcessLoggerImpl.ProcessOutputReport import com.seanshubin.devon....
Scala
domain/src/main/scala/com/seanshubin/builder/domain/ProcessLoggerImpl.scala
SeanShubin/builder
unlicense
3,461
103
codeparrot/github-code
430cc9b77c5a882ba2e3f520a178b160da0b50d241e8194573681fbe4eeb4dcc
#include "HeatMapVisualization.h" HeatMapVisualization::HeatMapVisualization(Database *database) : QWidget() { lastEvents = NULL; height = database->getResolution().height(); width = database->getResolution().width(); heatMap = new int*[height]; for (int i = 0; i < height; ++i) heatMap[i]...
C++
HeatMapVisualization.cpp
wimleers/QVisualizer
unlicense
15,214
402
codeparrot/github-code
01578849b8cebe77c92fd977617f12d9a529b1965c3a147b962f57b81dfdbf15
//Width and height var w = 600; var h = 250; var dataset = [{key: 0, value: 5}, //dataset is now an array of objects. {key: 1, value: 10}, //Each object has a 'key' and a 'value'. {key: 2, value: 13}, {key: 3, value: 19}, {key: 4, value: 21}, {key: 5, value: 25}, {key: 6, value: 22}, {key...
JavaScript
js/updates_chap9/update2.js
donhenton/d3-stuff
unlicense
5,635
198
codeparrot/github-code
00a3ef7009cb8b2d9748ec2526f9164b2176a31d139c74b571e97a66ced6ae81
import re import sys def get_wire(input_value): try: int(input_value) return int(input_value) except ValueError: if callable(wires[input_value]): wires[input_value] = wires[input_value]() return wires[input_value] class Gate: def __init__(self, first_input, oper...
Python
advent_day7_pt2.py
twrightsman/advent-of-code-2015
unlicense
2,686
85
codeparrot/github-code
4d1fe94fc14ca42e5c81d204645b07268cd5dfa0aabfd3246ed1a9970760c85b
var RippleTxt = require('./rippletxt'); var request = require('superagent'); function AuthInfo () { this.rippleTxt = new RippleTxt; } //Can I cache the auth info for later use? AuthInfo.prototype.get = function (domain, username, fn) { var self = this; self.rippleTxt.get(domain, function(err, txt){ if ...
JavaScript
src/authinfo.js
stevenzeiler/ripple-vault-client
unlicense
841
32
codeparrot/github-code
de641af9b06a306b8c6e7eaeaa7561ef9c7cafdc8ac30efb9c308dad10d4e2a7
/******************************************************************************* * Copyright (c) 2013, Daniel Murphy * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of ...
Java
r3-box2d-jd/src/org/jbox2d/d/dynamics/contacts/EdgeAndCircleContact.java
RedTriplane/RedTriplane
unlicense
2,470
53
codeparrot/github-code
68ef2b36185a8b027c325e98aee0e78b7901893eed86c783e072572fbe828f7c
package net.java.osgi.embeddy.springer.jsx; /* Java */ import java.io.File; import java.io.InputStream; import java.lang.ref.Reference; import java.lang.ref.SoftReference; import java.net.URI; import java.util.concurrent.locks.Lock; import java.util.concurrent.locks.ReentrantReadWriteLock; /* embeddy: springer */ i...
Java
springer/sources/net/java/osgi/embeddy/springer/jsx/JsFile.java
AntonBaukin/embeddy
unlicense
4,280
242
codeparrot/github-code
8b4ad4ad3fa75b1dbf7dc3c41d7c7b1eaa42b4de7362d5b499a30d153325111f
package com.buildwhatever.samplecamera; import android.Manifest; import android.graphics.Bitmap; import android.graphics.BitmapFactory; import android.net.Uri; import android.os.Bundle; import android.app.*; import android.content.*; import android.content.pm.*; import android.hardware.*; import android.os....
Java
app/src/main/java/com/buildwhatever/samplecamera/MainActivitySampleCamera.java
TrevorRanney/AndroidSampleCamera
unlicense
10,012
298
codeparrot/github-code
5980914a08e1e6a1bf5a763aa9f110c8b9e22fe7d630935de3bf65468795b0b2
/* * Copyright 2011 Jon S Akhtar (Sylvanaar) * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or a...
Java
src/com/eightbitmage/moonscript/lang/psi/stubs/elements/MoonStubFileElementType.java
ecornell/moonscript-idea
unlicense
2,552
77
codeparrot/github-code
3f01789228b3ee071e8246acf48f1d216e8779f1649036af87df860dc28ea5d8
""" Generates 40 random numbers and writes them to a file. No number is repeated. ~ Created by Elijah Wilson 2014 ~ """ # used for generating random integers from random import randint # open the output file -> "in.data" f = open("in.data", "w") # create an empty list succ = [] # loops through 40 times for gene...
Python
p11/rand.py
tizz98/cs216
unlicense
1,083
46
codeparrot/github-code
f2e256560d3d3e185ae0f9312a2de7ec8daf76f4462107e5ea2eb9b67e697158
/* * This is free and unencumbered software released into the public domain. * See UNLICENSE. */ package scala_maven; import java.io.File; import java.util.ArrayList; import java.util.List; import java.util.Set; import org.apache.maven.plugin.MojoFailureException; import org.apache.maven.plugins.annotations.Mojo; i...
Java
src/main/java/scala_maven/ScalaContinuousCompileMojo.java
davidB/scala-maven-plugin
unlicense
7,808
252
codeparrot/github-code
6622311b3cf6e848e786b4833fb7fe93b7895cb2fabd2f72f0474002ab4a28b1
import csv import json from argparse import ArgumentDefaultsHelpFormatter, ArgumentParser from enum import Enum from sys import exit, stdin from .formatters import DefaultFormatter, HeadlessFormatter, MdFormatter, RstFormatter from .table import TextTable class Formatter(Enum): default = DefaultFormatter hea...
Python
txtable/__main__.py
atomgomba/txtable
unlicense
3,048
111
codeparrot/github-code
6b49bc397b0a1fd72735652732f9036d88e55cb490db552a0b78d667ec1a904a
package us.aaronweiss.pixalia.net; import io.netty.buffer.ByteBuf; import io.netty.channel.ChannelHandlerContext; import io.netty.channel.ChannelInboundHandlerAdapter; import io.netty.handler.codec.ByteToMessageDecoder; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import us.aaronweiss.pixalia.core.Game; ...
Java
src/main/java/us/aaronweiss/pixalia/net/PacketDecoder.java
aatxe/pixalia
unlicense
2,162
60
codeparrot/github-code
2411a91d43534feedb3566048221c69928aedd7efde6250211fa921b313b5e9d
package cz.slahora.compling.gui.analysis.assonance; import cz.compling.CompLing; import cz.slahora.compling.gui.analysis.Analysis; import cz.slahora.compling.gui.analysis.MultipleTextsAnalysis; import cz.slahora.compling.gui.analysis.Results; import cz.slahora.compling.gui.analysis.ResultsHandler; import cz.slahora.co...
Java
src/main/java/cz/slahora/compling/gui/analysis/assonance/AssonanceMultipleAnalysis.java
slaha/compLing-gui
unlicense
9,813
285
codeparrot/github-code
43f100063ce8f4e0e160ce01588188ef4d73ee43046dfc5d6c3ab42baa532a0c
use std::f32::consts::PI; use std::os::raw::c_void; use std::path::Path; use std::process; use std::time::Instant; use cgmath::{ Deg, Point3 }; use collision::Aabb; use gl; use gltf; use glutin; use glutin::{ Api, MouseScrollDelta, MouseButton, GlContext, GlRequest, GlProfile, VirtualKeyCod...
Rust
src/viewer.rs
bwasty/gltf-viewer
unlicense
16,699
451
codeparrot/github-code
4757dfabd8a54067b8937760f60ab371fe2617c70d0e718936693a2df11e0275
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE html> <html> <head> <meta http-equiv="content-type" content="text/html; charset=utf-8"/> <title>HUI icons</title> <style> body { font-family: 'Lucida Grande'; font-size: 11px; } p { border-bottom: 1px so...
HTML
api/icons.html
Humanise/hui
unlicense
2,083
81
codeparrot/github-code
6dda7a9fbcc67605e8890c4e94cb4d38c851d343ef91dd262d133bb073d14e40
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.IO; using Microsoft.VisualBasic.FileIO; using System.Windows.Forms; namespace CabinetAutomation.BiesseCabinet { /// <summary> /// Takes a csv output from basse cabinet and reads /// it into memory /// </summary> pu...
C#
CabinetAutomation/BiesseCabinet/CsvParser.cs
bluebox/CabinetAutomation
unlicense
3,995
227
codeparrot/github-code
55cb0fd0497aff08989a900fa16c983120ed18defa59729c848480cd030f5115
#pragma once #include <math.h> #ifndef M_PI #define M_PI 3.14159265358979323846 /* pi */ #endif #ifndef M_PI_2 #define M_PI_2 1.57079632679489661923 /* pi/2 */ #endif /* Easing functions by Kristoffer Gronlund, 2014 Public domain This work is a spiritual descendent (not to say derivative work) of works d...
C
src/easing.h
krig/roam
unlicense
5,217
313
codeparrot/github-code
1b2a9e4cf25ed0a0f6b51353c61dd62642d0be6c2f52e8ca33939af958d54a3d
package com.integralblue.httpresponsecache.compat.libcore.net.http; import com.arcsoft.hpay100.a.a; import com.koushikdutta.async.http.b.b; final class H implements b { H(G paramG) { } public final void a(String paramString1, String paramString2) { if (paramString1.equalsIgnoreCase("no-cache")) ...
Java
allsrc/com/integralblue/httpresponsecache/compat/libcore/net/http/H.java
clilystudio/NetBook
unlicense
1,136
48
codeparrot/github-code
320857df6356a49723c4ffad3a32d4658a31c93237d1ff1c4ad44037a301240b
package crazypants.enderio.block; import java.lang.reflect.Field; import javax.annotation.Nullable; import crazypants.enderio.config.Config; import crazypants.util.Prep; import net.minecraft.block.BlockAnvil; import net.minecraft.block.state.IBlockState; import net.minecraft.entity.player.EntityPlayer; import net.mi...
Java
src/main/java/crazypants/enderio/block/ContainerDarkSteelAnvil.java
D-Inc/EnderIO
unlicense
4,141
113
codeparrot/github-code
8cbadc5573ea6eb25a6560f11b81947af82c4df35da83467bbcadf0d5efa7a36
package net.i2p.client.streaming.impl; import java.io.IOException; import java.util.ArrayList; import java.util.Iterator; import java.util.List; import java.util.Map; import java.util.TreeMap; import java.util.concurrent.atomic.AtomicBoolean; import java.util.concurrent.atomic.AtomicInteger; import java.util.concurren...
Java
common/java/apps/net/i2p/client/streaming/impl/Connection.java
oakes/Nightweb
unlicense
63,444
1,448
codeparrot/github-code
d5202320188ed1cf886f386aac635a5c277ec20d699c3bbdc314f3f9938628ff
/* * Copyright 2000-2009 JetBrains s.r.o. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agre...
Java
src/com/eightbitmage/moonscript/intentions/control/NegateComparisonIntention.java
ecornell/moonscript-idea
unlicense
2,627
65
codeparrot/github-code
e8ccc6424cf182487088ebbd6109721069ea0ca27e67bbb90ac69475503e9b7a
using System.Xml.Serialization; namespace SPICA.Formats.Generic.COLLADA { public class DAESource { [XmlAttribute] public string id; [XmlAttribute] public string name; [XmlElement(IsNullable = false)] public DAEArray Name_array; [XmlElement(IsNullable = false)] public DAEArray ...
C#
SPICA/Formats/Generic/COLLADA/DAESource.cs
gdkchan/SPICA
unlicense
1,498
50
codeparrot/github-code
bc02c4c9e8eb5f0dbc541943bf13b4d220194cd119782360dac4da2dc07db614
//$Id$ package org.hibernate.test.annotations.onetomany; import javax.persistence.Entity; import javax.persistence.GeneratedValue; import javax.persistence.Id; import javax.persistence.ManyToOne; /** * @author Emmanuel Bernard */ @Entity public class Model { @Id @GeneratedValue private Integer id;...
Java
frame_packages/java_libs/hibernate-distribution-3.6.10.Final/project/hibernate-testsuite/src/test/java/org/hibernate/test/annotations/onetomany/Model.java
codeApeFromChina/resource
unlicense
653
36
codeparrot/github-code
8855d931c0308127daa3796b31a173a896159caf65a0727b630157c83c57e118
/* Hindi Text Input APIS - http://www.hinkhoj.com Copyright (c) Hinkhoj Permission is hereby granted to any person obtaining a copy of this software and associated the rights to use of the Software for personal non-commercial use only and to permit persons to whom the Software is furnished to do so, subject ...
JavaScript
wordmatki/static/js/custom_keyboard.js
ajanthanm/Wordgame
unlicense
47,641
1,972
codeparrot/github-code
94e25cd63776fb19bd4fefb09b662a3a77cbe87745d44c5c577f95efb17ad85d
package kr.spring.batch.chapter05; import lombok.AllArgsConstructor; import lombok.Getter; import lombok.NoArgsConstructor; import lombok.Setter; import org.hibernate.annotations.DynamicInsert; import org.hibernate.annotations.DynamicUpdate; import javax.persistence.Column; import javax.persistence.Entity; import ja...
Java
chapter05/src/main/java/kr/spring/batch/chapter05/Product.java
debop/spring-batch-experiments
unlicense
826
45
codeparrot/github-code
695db36c364d68cab8b5c70b2521e5866620e4407325839da4363c0680684e39
package analyticslattice.reader.factory; import analyticslattice.reader.DelegatingRecordReader; import analyticslattice.reader.ResultSetRecordReader; import com.google.common.collect.ImmutableList; import javax.sql.DataSource; import java.sql.Connection; import java.sql.PreparedStatement; import java.sql.ResultSet; i...
Java
core/src/main/java/analyticslattice/reader/factory/QueryRecordReaderFactory.java
carminemangione/analytics-lattice
unlicense
3,102
90
codeparrot/github-code
02c1879de0918a54413ac25f0b9d56e9d8f06f2a572d96f551f856c60bdb3b45
package es.com.blogspot.elblogdepicodev.plugintapestry.mixins; import org.apache.tapestry5.ComponentResources; import org.apache.tapestry5.MarkupWriter; import org.apache.tapestry5.annotations.InjectContainer; import org.apache.tapestry5.annotations.MixinAfter; import org.apache.tapestry5.annotations.SessionState; imp...
Java
PlugInTapestry/src/main/java/es/com/blogspot/elblogdepicodev/plugintapestry/mixins/Csrf.java
picodotdev/elblogdepicodev
unlicense
2,490
86
codeparrot/github-code
c8f98db792935d100d2dea606845ae4a35178c9124f206b754f7a3c18172d6e9
# CTCI 3.1 # Three in One import unittest class MultiStack(): def __init__(self, capacity): self.capacity = capacity self.stacks = [] def push(self, item): if len(self.stacks) and (len(self.stacks[-1]) < self.capacity): self.stacks[-1].append(item) else: ...
Python
CTCI/Chapter3/3.3-Stack_Of_Plates.py
kyle8998/Practice-Coding-Questions
unlicense
1,838
68
codeparrot/github-code
83155d8a2e12f812ab2938aad464d06fd1351deb9144ff8be6b8b3903fae8f44
// /*********************************************************************** // This is free and unencumbered software released into the public domain. // // Anyone is free to copy, modify, publish, use, compile, sell, or // distribute this software, either in source code form or as a compiled // binary, for any purpos...
C#
PolyPath/PathingPolygon.cs
dbeals/PolyPath
unlicense
8,973
264
codeparrot/github-code
27f9c522a57f8c170f74427d2ef3727cff0179e565ccc6016968258294876b73
{-# LANGUAGE EmptyDataDecls #-} {-# LANGUAGE FlexibleContexts #-} {-# LANGUAGE FlexibleInstances #-} {-# LANGUAGE GADTs #-} {-# LANGUAGE KindSignatures #-} {-# LANGUAGE MultiParamTypeClasses #-} {-# LANGUAGE TypeFamilies #-} {-# LANGUAGE TypeOperators #-} {-# LANG...
Haskell
examples/main-ghc.hs
alanz/ghc-multirec
unlicense
7,813
240
codeparrot/github-code
1f0e26389829ff4b6d82e1a61d6519d4112e512947ac78ae139717689b396b58
package github.com.helbertrios.demo.javase.label; public class Simples { public static void main(String[] args) { I: { if (true) { System.out.println("label 1"); break I; } System.out.println("never print"); } System.out.println("end I"); II: if (true) { //continue II; } ...
Java
src/main/java/github/com/helbertrios/demo/javase/label/Simples.java
helbertrios/javase-team
unlicense
778
51
codeparrot/github-code
1caafe8932009067934bd5f6922ed1cafd34c4fc9d5290631e8375e20f51f8b1
package crazypants.enderio.conduit.redstone; import net.minecraft.util.EnumFacing; import net.minecraft.util.math.BlockPos; public class SignalSource { public final BlockPos pos; public final EnumFacing fromDirection; public SignalSource(Signal signal) { this(new BlockPos(signal.x, signal.y, signal.z), s...
Java
src/main/java/crazypants/enderio/conduit/redstone/SignalSource.java
D-Inc/EnderIO
unlicense
1,472
71
codeparrot/github-code
5d2685c1af3d99b12f27ee91ce82b12331a701c5038d7d2b991b934dd3b8117f
// // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions // are met: // * Redistributions of source code must retain the above copyright // notice, this list of conditions and the following disclaimer. // * Redistributions in bin...
C
deps/physx/include/extensions/PxPrismaticJoint.h
JustenG/ComputerGraphics
unlicense
7,390
252
codeparrot/github-code
6c8c7842420b2e7625947ee5e02b077a426da489d2e560e364e3a2080d5bd1a5
<!DOCTYPE html> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta name="viewport" content="width=device-width" /> <link rel="shortcut icon" type="image/x-icon" href="../../../../../../favicon.ico" /> <...
HTML
Components/googleplayservicesjellybean-15.0.1/lib/android/15/content/google-play-services/docs/reference/com/google/android/gms/common/GooglePlayServicesClient.ConnectionCallbacks.html
tparnell8/XamarinAdmobTutorial
unlicense
30,105
916
codeparrot/github-code
0a61311663b062790fa3e9e53297a9ad8c782dfc30fbdff4cbce1872c4bb6f20
module Crib #TODO: Move Card/Deck to a PlayingCards Module/Gem? class Card def initialize (a = 1 + rand(13), b = 1 + rand(4)) #Check if a and b are integers (0 < a < 5, 0 < b < 14) @number = a @suit = b end def from_id(id) #id = 1 -> 52 #id =1 ==> AC (1,1) id = 13 ==> KC(...
Ruby
app/classes/crib/card.rb
techtyler/webcrib
unlicense
1,463
86
codeparrot/github-code
88687178dba399030276f7f0e9e269aa59619501abce94ccb86dfa389f3250d2
/* Digger Remastered Copyright (c) Andrew Jenner 1998-2004 */ #include <stdio.h> #include <string.h> #include <stdlib.h> #include "def.h" #ifdef WIN32 #include "win_dig.h" #endif #define NEWL "\r\n" /* Get a line from a buffer. This should be compatible with all 3 text file formats: DOS, Unix and Mac. s is the...
C++
digger/ini.cpp
reenigne/reenigne
unlicense
4,015
180
codeparrot/github-code
66e64fe681858ce393fdf78affe3e8df20c87698de5054870c216a79a07d5ac2
using System; using System.Diagnostics; using System.IO; using System.Xml; using System.Xml.Serialization; using BatchGen.Common; using FastBuildGen.BusinessModel; using FastBuildGen.Common; using FastBuildGen.Xml.Entity; namespace FastBuildGen.Xml { internal static class XmlService { #r...
C#
FastBuildGen/FastBuildGen/Xml/XmlService.cs
blueneosky/Bag
unlicense
4,101
138
codeparrot/github-code
440adb8c14384cbd360e20e1dacb81cc294cf89c92a915b94ba220c44bbefbf4
/** * use this plugin if you want to make tiled menu like windows 8 start menu * what plugin needs for? * it needs for following elements structure * <div class="page"> * <div class="tiles"> * <div class="tile-group"> * <div class="tile"></div> * <div class="tile"></div>...
JavaScript
metroMe/js/modern/start-menu.js
dufferzafar/homepages
unlicense
4,835
157
codeparrot/github-code
7b95c97f10c7fd90bd2a16b5a9f663237e6c8cff181b61acf3ff426b66e2db6f
#include <math.h> #include "norad.h" #include "norad_in.h" /* omega_E = number of (sidereal) rotations of the earth per UT day: */ const double omega_E = 1.00273790934; #ifdef USE_ACCURATE_ANOMALISTICS /* The anomalistic month is the mean time it takes the moon to go from perigee to ...
C++
src/deep.cpp
wose/SimplPM
unlicense
33,835
752
codeparrot/github-code
94eb496779a51d1b202c80c10664f0716bcef82ae1884af80d5723fc1d75acc5
package cool.blink.back.webserver; import cool.blink.back.utilities.LongUtilities; import java.io.Serializable; import java.util.ArrayList; import java.util.List; import java.util.Objects; public final class WebServerDetails implements Serializable { private final Long id; private final String ip; privat...
Java
back/src/main/java/cool/blink/back/webserver/WebServerDetails.java
ThreaT/blink
unlicense
2,385
94
codeparrot/github-code
bc1bdbc77ba59d4167cef9f2ca03690d10d4a7ada5acbbd7047da65f5871bdae
import collection.LinearSeq import collection.LinearSeqLike import collection.mutable.Builder import collection.mutable.ArrayBuffer case class LatLng(lat:Double, lng:Double) class Polyline private (val encoding: String, val initLatLng:LatLng) extends LinearSeq[LatLng] { // override def newBuilder: Builder[LatLn...
Scala
ch25/Polyline.scala
machristie/ProgrammingInScala
unlicense
2,040
96
codeparrot/github-code
0a9fa3f66c517ebb5ef5c537d08c0e0d6937651d0b86d35f83ff7cde1de816f2
<?php class FlickrTagBridge extends BridgeAbstract{ const MAINTAINER = "erwang"; const NAME = "Flickr TagUser"; const URI = "http://www.flickr.com/"; const CACHE_TIMEOUT = 21600; //6h const DESCRIPTION = "Returns the tagged or user images from Flickr"; const PARAMETERS = array( 'By keyword' => array(...
PHP
bridges/FlickrTagBridge.php
griffaurel/rss-bridge
unlicense
1,612
49
codeparrot/github-code
f1b809e672097a83776867b6bb828780754b06f26fc45e39f802b2db86e62f98
package org.qfox.jestful.client.exception; import org.qfox.jestful.core.Accepts; import org.qfox.jestful.core.MediaType; import org.qfox.jestful.core.exception.JestfulException; /** * <p> * Description: * </p> * <p> * <p> * Company: 广州市俏狐信息科技有限公司 * </p> * * @author Payne 646742615@qq.com * @date 2016年5月4日 下...
Java
jestful-client/src/main/java/org/qfox/jestful/client/exception/UnexpectedTypeException.java
core-lib/jestful
apache-2.0
938
41
codeparrot/github-code
4b37bb261f8556b07111aa1cf40937cd41677513d7f039bddd422feb45dcc2d5
/******************************************************************************* * Copyright (c) 2015-2018 Skymind, Inc. * * This program and the accompanying materials are made available under the * terms of the Apache License, Version 2.0 which is available at * https://www.apache.org/licenses/LICENSE-2.0. * *...
Java
nd4j/nd4j-backends/nd4j-tests-tensorflow/src/test/cpujava/org/nd4j/tensorflow/conversion/TensorflowConversionTest.java
deeplearning4j/deeplearning4j
apache-2.0
5,091
129
codeparrot/github-code
4cb3f9f4e72c02aef5bcdb166ac97a8622ddbea24105b262690711a95ba524d6
/* 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 * distribut...
Java
modules/flowable-engine-common/src/main/java/org/flowable/engine/common/runtime/Clock.java
motorina0/flowable-engine
apache-2.0
876
31
codeparrot/github-code
0420fbec8016eeb5094550b84bf54f2efd890bb83402496da2b81a008c8e0ea1
# 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
es_maml/zero_order/adaptation_optimizers.py
google-research/google-research
apache-2.0
6,752
185
codeparrot/github-code
3e3e16c76e9074b7338e9b3470ed142090b2450ac8a1da093864c8fc0adf6583
/* * 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.transform.transforms.pivot; import org....
Java
x-pack/plugin/core/src/test/java/org/elasticsearch/xpack/core/transform/transforms/pivot/PivotConfigTests.java
coding0011/elasticsearch
apache-2.0
8,257
218
codeparrot/github-code
71ff0315497085162f426b12484f9544d8443da8e641802b0949cafd6ea3b630
package de.terrestris.shoguncore.util.interceptor; import de.terrestris.shoguncore.util.enumeration.OgcEnum; import edu.umd.cs.findbugs.annotations.SuppressFBWarnings; import org.apache.commons.io.IOUtils; import org.apache.commons.lang3.StringUtils; import org.apache.logging.log4j.Logger; import org.w3c.dom.Document;...
Java
src/shogun-core-main/src/main/java/de/terrestris/shoguncore/util/interceptor/MutableHttpServletRequest.java
dnlkoch/shogun2
apache-2.0
10,375
370
codeparrot/github-code
ada20079161f38bc079c96cf9b8913750d5b08272acc4fb4f52c513ddcc51c68
package net.sourceforge.myvd.server.apacheds; import java.io.IOException; import java.util.ArrayList; import java.util.Collections; import java.util.List; import org.apache.directory.api.ldap.model.constants.Loggers; import org.apache.directory.api.ldap.model.cursor.AbstractCursor; import org.apache.directory.api.lda...
Java
src/main/java/net/sourceforge/myvd/server/apacheds/MyVDBaseCursor.java
TremoloSecurity/MyVirtualDirectory
apache-2.0
15,577
578
codeparrot/github-code
9868faba8ab55946877cdef87a1e24832fa4ded23f89dd297f0d209005cfffd5
/*global define THREE $ TweenMax*/ define([], function (require) { var Backbone = require('backbone'), Vars = require('app/models/vars'), AssetList = require('app/collections/asset-list'), UserEvent = require('app/events/user-event'), AppEvent = require('app/events/app-event'), Transition; require('twee...
JavaScript
src/js/app/views/components/bg-transition-circle.js
adobe-webplatform/Demo-for-Food-Network-Cupcakes
apache-2.0
1,934
78
codeparrot/github-code
9079f76207f1d710308631f55c058a88a447b81e2eb37e614a9ea7f0ec7e73cd
/* * Copyright 2015 Open mHealth * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to...
Java
shim-server/src/test/java/org/openmhealth/shim/ihealth/mapper/IHealthBodyWeightDataPointMapperUnitTests.java
openmhealth/shimmer
apache-2.0
5,611
154
codeparrot/github-code
3786065bdab2328cb4124b3234f6d7a87575a184b51b789c9b233fbe1528d9ff
package com.purejadeite.jadegreen.option; import com.purejadeite.jadegreen.option.book.BookOptionInterface; import com.purejadeite.jadegreen.option.book.BookOptionManager; import com.purejadeite.jadegreen.option.cell.CellOptionInterface; import com.purejadeite.jadegreen.option.cell.CellOptionManager; import com....
Java
src/main/java/com/purejadeite/jadegreen/option/OptionRegistry.java
purejadeite/jadegreen
apache-2.0
1,145
31
codeparrot/github-code
ab7cfdcc7e6dcc5f6f2709858263a3aa3ff12dce3294029848bf6f3d2ee20703
/* * Symphony - A modern community (forum/BBS/SNS/blog) platform written in Java. * Copyright (C) 2012-2018, b3log.org & hacpai.com * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as published by * the Free Software Foundation,...
Java
src/main/java/org/b3log/symphony/service/VerifycodeQueryService.java
billho/symphony
apache-2.0
3,654
106
codeparrot/github-code
bdf96f67b08ce17a04780580c1cc5f26796ba9abe5eb88ab2a70bd765bc994a4
/* * Copyright 2014 The Netty Project * * The Netty Project licenses this file to you 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 r...
Java
codec-http2/src/main/java/io/netty/handler/codec/http2/DelegatingDecompressorFrameListener.java
artgon/netty
apache-2.0
19,482
423
codeparrot/github-code
e36cb9505188361c252f7502222fb408950bd79a1d147d8bb83b236d8675bcb6
/* * jcarith.c * * Developed 1997-2013 by Guido Vollbeding. * This file is part of the Independent JPEG Group's software. * For conditions of distribution and use, see the accompanying README file. * * This file contains portable arithmetic entropy encoding routines for JPEG * (implementing the ISO/IEC IS 10918...
C
code/3rd-party/freeimage/LibJPEG/jcarith.c
Im-dex/xray-162
apache-2.0
28,191
945
codeparrot/github-code
2c93cb77f730962b97daa21c6420fb4175f6e4d5bbc47645f4a9e752b13a06e8
package net.htn.tool.web.common; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.data.domain.PageRequest; import org.springframework.data.domain.Sort; import org.springframework.data.domain.Sort.Direction; import org.springframework.util.StringUtils; public class PageableFactory { ...
Java
src/main/java/net/htn/tool/web/common/PageableFactory.java
Kevin-Huang-NZ/springboot-jsp-generator
apache-2.0
2,595
97
codeparrot/github-code
7e4fa4f8a577151a7f6b4bb1801c48032857e59ace7fd7afaeded0ea7dd28985
/* Copyright 1995-2013 Esri 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...
Java
src/com/esri/core/geometry/JSONObjectEnumerator.java
syntelos/shapefile-java
apache-2.0
2,019
81
codeparrot/github-code
843ffbfd55ae618639dbb7ae3f9e2457a64b61b00d496452d733628160d91a10
/* * Copyright Anatoly Starostin (c) 2017. */ package treeton.prosody.mdlcompiler; import java_cup.runtime.Scanner; import java_cup.runtime.Symbol; import treeton.prosody.mdlcompiler.grammar.TreevialSymbol; import java.io.File; import java.io.IOException; public class MdlParserCustomized extends MdlParser { p...
Java
dev/prosody/src/treeton/prosody/mdlcompiler/MdlParserCustomized.java
TreetonOrg/Treeton
apache-2.0
1,603
44
codeparrot/github-code
a693ef4ba4e9f9b4f3efd075fd410d660babacf956f51c4746ed282df759c74c
import React from 'react'; import { render } from '@testing-library/react'; import { Zoom } from '@vx/zoom'; import { dataset3WithLineage, dataset4WithLineage, dataset5WithLineage, dataset6WithLineage } from '../../../Mocks'; import { Direction, FetchedEntities } from '../types'; import constructTree from '../utils/co...
TypeScript
datahub-web-react/src/app/lineage/__tests__/LineageTree.test.tsx
linkedin/WhereHows
apache-2.0
4,086
99
codeparrot/github-code
f6a410937e9e8d76a6d7aeefe5d4e70aa9cfa8f960a2cf6e5988b89793210467
package edu.ncsu.csc.nl.model; import java.io.*; /* Porter stemmer in Java. The original paper is in Porter, 1980, An algorithm for suffix stripping, Program, Vol. 14, no. 3, pp 130-137, See also http://www.tartarus.org/~martin/PorterStemmer History: Release 1 Bug 1 (reported by Gonz...
Java
application/src/edu/ncsu/csc/nl/model/PorterStemmer.java
RealsearchGroup/REDE
apache-2.0
13,746
450
codeparrot/github-code
06081ff0be8358b139dcce98bc44faef1352ea468c7df1c39ae2ff6d115e486b
/* * 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...
Scala
sparkr-interpreter/src/main/scala/org/apache/toree/kernel/interpreter/sparkr/SparkRService.scala
asorianostratio/incubator-toree
apache-2.0
4,229
123
codeparrot/github-code
44dfb9173fb49948705492cb2a4b50cb477ee739ba40624a4981edd51b0ebb2e
/* * Copyright (c) 2010-2015 Pivotal Software, 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 req...
Java
gemfirexd/core/src/main/java/com/pivotal/gemfirexd/internal/engine/store/entry/VersionedLocalRowLocationStatsDiskRegionEntryHeap.java
SnappyDataInc/snappy-store
apache-2.0
21,097
574
codeparrot/github-code
d231d456eb508519fea95be838d71a503abcce68941f841575f2402047ab4c9c
/* * This file is part of ATLAS. It is subject to the license terms in * the LICENSE file found in the top-level directory of this distribution. * (Also avialable at http://www.apache.org/licenses/LICENSE-2.0.txt) * You may not use this file except in compliance with the License. */ #pragma once #pragma warning(push, 3...
C++
src/AssimpWorker/storage/JCRStorageService.hpp
dfki-asr/atlas-worker
apache-2.0
1,615
51
codeparrot/github-code
f15af234fa531a969b1f6a82ec7d2f73eed7ec0f791ddd6e3c042f76860c2567
using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; using MiContact.Models; namespace MiContact.ViewModel { public class AspNetUsersProfile_ViewModel { public int AspNetUse...
C#
MiContact/ViewModel/AspNetUsersProfile_ViewModel.cs
janaanimator/ASP.NET-MVC-MiContact
apache-2.0
845
36
codeparrot/github-code
fd06cdbe75bd9ee434bdbf2065f3323f00c9e3277250b5b614fe33a72d948ff4
# Copyright 2017 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
Python
tensorflow/python/data/experimental/benchmarks/rejection_resample_benchmark.py
asimshankar/tensorflow
apache-2.0
2,449
72
codeparrot/github-code
7d4c76342ef31b38b72d16796573ec6645ea11708ff5862334eb6e502cff2050
/* * 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
ode/bpel-runtime/src/main/java/org/apache/ode/bpel/engine/BpelRuntimeContextImpl.java
TheRingbearer/HAWKS
apache-2.0
73,649
2,217
codeparrot/github-code
752a5d446667d56e068de03d3f2dea67f65a9e3e46c648d96719ad2f1c93246f
/** * Copyright (c) 2017 Institute of Computing Technology, Chinese Academy of Sciences, 2017 * Institute of Computing Technology, Chinese Academy of Sciences contributors. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); you * may not use this file except in complian...
Java
src/main/cn/ict/zyq/bestConf/cluster/InterfaceImpl/SUTTest.java
zhuyuqing/bestconf
apache-2.0
10,421
344
codeparrot/github-code
a603ee149a8322d8087a9630848e6db0d5ba5daefe0526e3082de9a6add55041
/* ======================================================================== * PlantUML : a free UML diagram generator * ======================================================================== * * (C) Copyright 2009-2017, Arnaud Roques * * Project Info: http://plantuml.com * * This file is part of PlantUML. ...
Java
src/main/java/net/sourceforge/plantuml/oregon/SmartKeyboard.java
Banno/sbt-plantuml-plugin
apache-2.0
1,827
66
codeparrot/github-code
be65cf54c79c1ea1256a56bbb0a824bf323e8f6d4295ee363b267c7fa240dcd3
#include <iostream> #include <vector> using namespace std; int main() { int t; int numOfStudentsOnTime = 0; cin >> t; for (int a0 = 0; a0 < t; a0++) { int n; int k; numOfStudentsOnTime = 0; cin >> n >> k; vector<int> a(n); for (int a_i = 0; a_i < n; a_i++) { cin >> a[a_i]; if (a[a_i] <= 0) ...
C++
008_Angry Professor/main.cpp
ktejas/HackerRank-Solutions
apache-2.0
502
41
codeparrot/github-code
1e4e687f2c9f1fedd68dafa8ce817e5388edcd4f829f329fea953f412fe8803d
/* * Copyright 2016 Crown Copyright * * 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
stroom-core-client/src/main/java/stroom/pipeline/stepping/client/view/StepControlViewImpl.java
gchq/stroom
apache-2.0
4,653
148
codeparrot/github-code
6a8f6db8dcdde25bfbe337250697ba3c4fd13da22d0592eaa275745eb29bfd38
#-*-coding:utf-8-*- #coding=utf-8 print "you enter a dark room with two doors. Do you go through door #1 or door #2" door = raw_input(">>>") if door == "1": print "there's a glant bear here eating a cheese cake. What do you do?" print "1,Take the cake" print "2,Scream at the bear" bear = raw_in...
Python
Step1-PythonBasic/Practices/wangr/31-35/ex31.py
Jumpers/MysoftAutoTest
apache-2.0
1,033
35
codeparrot/github-code
ec1a6063cbc89a316db8bbb61474bd22bb730b52994babb23411cd25b232ef39
package com.mx.popcorn.dao.imp; import com.mx.popcorn.dao.MovieDao; import com.mx.popcorn.domain.Movie; import com.mx.popcorn.domain.Page; import org.hibernate.Query; import org.hibernate.SQLQuery; import org.springframework.stereotype.Repository; import java.util.Date; import java.util.List; /** * Created by Admin...
Java
src/com/mx/popcorn/dao/imp/MovieDaoImp.java
YikaJ/a-Movie-simula-project
apache-2.0
2,195
60
codeparrot/github-code
46265f030c291854ba1ed5bd4fe32342ca78840f71f8a8be42232e5f244010dc
use crate::command_prelude::*; use cargo::ops; use std::path::PathBuf; pub fn cli() -> App { subcommand("vendor") .about("Vendor all dependencies for a project locally") .arg(opt("quiet", "No output printed to stdout").short("q")) .arg_manifest_path() .arg(Arg::with_name("path").hel...
Rust
src/bin/cargo/commands/vendor.rs
tshepang/cargo
apache-2.0
4,059
115
codeparrot/github-code
6e799a589bef59f9662a81df5bfffe66a22cbf2663b33c26f83060912bc32018
/* * Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights * Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "l...
Java
aws-java-sdk-iot/src/main/java/com/amazonaws/services/iot/model/transform/KeyPairJsonMarshaller.java
dump247/aws-sdk-java
apache-2.0
2,494
79
codeparrot/github-code
5c820f9d5bd155909f3478ac8a6f1d141451a7def44db03a5fdd9a48736fda84
// This is a generated file. Not intended for manual editing. package vektah.rust.psi.impl; import java.util.List; import org.jetbrains.annotations.*; import com.intellij.lang.ASTNode; import com.intellij.psi.PsiElement; import com.intellij.psi.PsiElementVisitor; import com.intellij.psi.util.PsiTreeUtil; import static...
Java
gen/vektah/rust/psi/impl/RustEnumVariantTupleImpl.java
consulo/consulo-rust
apache-2.0
1,977
73
codeparrot/github-code
a0cca45d523344cf9cb86fc4722317d96b01ecb559e30d5298f63b82c30bf7e4
/* * Copyright 2010-2015 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file...
C++
aws-cpp-sdk-sns/source/model/GetPlatformApplicationAttributesResult.cpp
wates/aws-sdk-cpp
apache-2.0
2,314
70
codeparrot/github-code
3baf797ca9fcbc85d1a61e61204b4af2ec239f0f7e526ade542dbbf42b9a1bb5
module IOStreams # Build the streams that need to be applied to a path druing reading or writing. class Builder attr_accessor :file_name, :format_options attr_reader :streams, :options def initialize(file_name = nil) @file_name = file_name @streams = nil @options = nil...
Ruby
lib/io_streams/builder.rb
rocketjob/iostreams
apache-2.0
4,728
147
codeparrot/github-code
e9258d9c11ed08306da3f7462092cebe280f13d4e53463b26b9e76d7040b0aaa
/* * Copyright 2012 Cyril A. Karpenko * * 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
persistence/persistence-parent/src/main/java/com/redshape/persistence/dao/query/expressions/OrExpression.java
nikelin/Redshape-AS
apache-2.0
944
31
codeparrot/github-code
324261b8cd9aac7fbd6ff5ee7ecd0c27ad70ac9d112893bc1f4486b3d3262783
<html> <head> <title>OYAKEY DRUMPAD</title> <meta charset="utf-8"/> <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"/> <link rel="stylesheet" type="text/css" href="Ressources/CSS/style.css"> <script type="text/javascript" src="Ressources/Script/soundbox.js"></script> ...
HTML
Book/Index.html
Oyakey/JulienLecarpentier
apache-2.0
5,899
269
codeparrot/github-code
e2d2fd0648faa5078a50acb6da1bbf145d798ab6f471f5c37dac9c5edc278d0b
/* * Copyright 2015 Dotweblabs Web Technologies * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable la...
Java
src/main/java/com/dotweblabs/friendscube/rest/services/gae/GaeShareService.java
friendscube3/friendscube
apache-2.0
1,330
51
codeparrot/github-code
7e1fbdc1b2514274fe9c81d07568e15530c8ce38a69262c581725daab1c37a36
import {throwError as observableThrowError, interval as observableInterval, Observable } from 'rxjs'; import { catchError, map, mergeMap } from 'rxjs/operators'; import { Injectable } from '@angular/core'; import { HttpClient, HttpHeaders } from '@angular/common/http'; import { Gadget } from './gadget'; import { Gad...
TypeScript
web/gadget_board_frontend/src/app/gadget/gadget.service.ts
mik4el/gadget_board
apache-2.0
2,340
66
codeparrot/github-code
2f29edee28f01674db1b73d7297410a5b6bea10e3002a4b4b03b45640f02ec1e
/* * Copyright 2020-2021 Equinix, Inc * Copyright 2014-2021 The Billing Project, LLC * * The Billing Project licenses this file to you under the Apache License, version 2.0 * (the "License"); you may not use this file except in compliance with the * License. You may obtain a copy of the License at: * * http...
Java
util/src/main/java/org/killbill/billing/util/optimizer/BusOptimizerOn.java
killbill/killbill
apache-2.0
7,573
180
codeparrot/github-code