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
a35e491fe6caec0093b3f5f10301a5537b880175dd6d1fa6a7058cf87c5cd847
/* * SonarQube * Copyright (C) 2009-2022 SonarSource SA * mailto:info AT sonarsource DOT com * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 3 of the License, o...
Java
server/sonar-ce-task-projectanalysis/src/test/java/org/sonar/ce/task/projectanalysis/issue/IssuesRepositoryVisitorTest.java
SonarSource/sonarqube
lgpl-3.0
3,211
93
codeparrot/github-code
f0a814d34f8ff3e572faee90f0a08d717552c4b6e1a039860e44aa13943dc650
/* * This file is part of jdbw (http://code.google.com/p/jdbw/). * * jdbw is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version....
Java
src/main/java/com/googlecode/jdbw/server/h2/H2JDBCDriverDescriptor.java
widnyana/jdbw
lgpl-3.0
3,773
94
codeparrot/github-code
aef712d69440793ec8c8f4a1460cdbe0d2955b1727e4492dccd1930a5fc2715e
/* * SonarQube * Copyright (C) 2009-2017 SonarSource SA * mailto:info AT sonarsource DOT com * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 3 of the License, o...
Java
server/sonar-db-migration/src/main/java/org/sonar/server/platform/db/migration/version/v60/DropIndexDuplicationsIndexSidFromDuplicationsIndex.java
lbndev/sonarqube
lgpl-3.0
1,504
40
codeparrot/github-code
b37c48e5d37a0ed4b6502b66f277ef1990b390d41e913b034cd2d1c2139b978f
<?php /** * SplClassLoader implementation that implements the technical interoperability * standards for PHP 5.3 namespaces and class names. * * https://gist.github.com/221634 * */ namespace Geeklist; class SPLClassLoader { private $_fileExtension = '.php'; private $_namespace; private $_includePath...
PHP
Geeklist/SPLClassLoader.php
arglbr/geeklist-php
lgpl-3.0
3,559
129
codeparrot/github-code
d1b45046873c7bcd1eb24dd1cbc59dbcc2db6bbb339ed49a7aaaae56c602055f
/*! * Copyright (c) Metaways Infosystems GmbH, 2013 * LGPLv3, http://www.arcavias.com/en/license */ Ext.ns('MShop.panel.order.base.coupon'); MShop.panel.order.base.coupon.ListUi = Ext.extend(MShop.panel.AbstractListUi, { title : MShop.I18n.dt('client/extjs', 'Coupons'), recordName : 'Order_Base_Coupon', ...
JavaScript
client/extjs/src/panel/order/coupon/ListUi.js
Arcavias/arcavias-core
lgpl-3.0
7,224
204
codeparrot/github-code
bd3c392ff625fc543fe76d5f300da940bfd6f7b22b17606fd4d6d4136a98a549
<?php /*************************************************************************************/ /* This file is part of the Thelia package. */ /* */ /* Copyright (c) OpenStudio ...
PHP
Api/Response/GetServicesResponseApi.php
thelia-modules/CanadaPost
lgpl-3.0
2,020
52
codeparrot/github-code
62033924c07d5e6552c56cbbed0f0f8393528b322060ecdc4b9c977268ecd971
package org.nectarframework.base.service.internode; import java.io.File; import java.io.FileNotFoundException; import java.io.IOException; import java.net.InetAddress; import java.net.UnknownHostException; import java.nio.channels.SocketChannel; import java.util.ArrayList; import java.util.HashMap; import ja...
Java
src/main/java/org/nectarframework/base/service/internode/InternodeService.java
schuttek/nectar
lgpl-3.0
6,767
247
codeparrot/github-code
e4ec8797ffad0affc72e6f90c4b0c2e8fb31540c8c6bb207684dc87ed0b299aa
/* * SonarQube * Copyright (C) 2009-2016 SonarSource SA * mailto:contact AT sonarsource DOT com * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 3 of the License...
Java
server/sonar-server/src/test/java/org/sonar/server/computation/task/projectanalysis/formula/DumbCreateMeasureContext.java
Builders-SonarSource/sonarqube-bis
lgpl-3.0
1,864
54
codeparrot/github-code
661d9cf138017ff0a93d41ec24af4ea6c2eee1e5eabe792ae0223cf8b82e4b17
package refactoring; import org.newdawn.slick.Animation; import org.newdawn.slick.GameContainer; import org.newdawn.slick.Graphics; import org.newdawn.slick.Image; import org.newdawn.slick.Input; import org.newdawn.slick.SlickException; import org.newdawn.slick.state.BasicGameState; import org.newdawn.slick.state.Stat...
Java
src/refactoring/Play.java
GokulEvuri/VenganceRabbit
lgpl-3.0
4,670
168
codeparrot/github-code
c172a476fc2ac9d03785ac42dc4cd0be5346933fb696e65f1ef74031139bdea7
"""Command line tool for creating audioMD metadata.""" from __future__ import unicode_literals, print_function import os import sys import click import six import audiomd from siptools.mdcreator import MetsSectionCreator from siptools.utils import fix_missing_metadata, scrape_file click.disable_unicode_literals_war...
Python
siptools/scripts/create_audiomd.py
Digital-Preservation-Finland/dpres-siptools
lgpl-3.0
6,706
211
codeparrot/github-code
94545a340b243bcfb526cb34e8f980f34e776777707330fe2506be0a64e6fb54
package org.spoutcraft.launcher; import java.io.File; import java.util.HashSet; import java.util.Map; import java.util.Set; import org.bukkit.util.config.Configuration; public class MinecraftYML { private static final String MINECRAFT_YML = "minecraft.yml"; private static volatile boolean updated = false; pr...
Java
src/main/java/org/spoutcraft/launcher/MinecraftYML.java
Haven-Craft/Spoutcraft-Launcher
lgpl-3.0
3,572
125
codeparrot/github-code
205126ab86f0db2b28bce3f06eb27f6d86e3d112acbfde278f85615347e4e961
using Microsoft.Win32; using System; using System.IO; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows; using System.Windows.Controls; using System.Windows.Data; using System.Windows.Documents; using System.Windows.Input; using System.Windows.Me...
C#
classicexp-win/ClassicListExporter/MainWindow.xaml.cs
kckd/ClassicAppExporter
unlicense
2,895
75
codeparrot/github-code
996bc64939716c2f305f98ee8f7ae540243a87341a58b9acf7dcc016e8fd9521
package crazypants.enderio.item; import java.util.Collection; import com.enderio.core.api.client.gui.IResourceTooltipProvider; import com.enderio.core.common.util.ChatUtil; import crazypants.enderio.EnderIOTab; import crazypants.enderio.ModObject; import crazypants.enderio.api.tool.IHideFacades; import crazypants.en...
Java
src/main/java/crazypants/enderio/item/ItemConduitProbe.java
D-Inc/EnderIO
unlicense
4,236
128
codeparrot/github-code
9eea06d3704be5a1ef4fcc36a1fd66ce2298ce724c09d31dfcb0757477cfff87
from bitmovin.resources.models import AbstractModel from bitmovin.resources import AbstractNameDescriptionResource from bitmovin.errors import InvalidTypeError from bitmovin.utils import Serializable from .encoding_output import EncodingOutput class Sprite(AbstractNameDescriptionResource, AbstractModel, Serializable)...
Python
bitmovin/resources/models/encodings/sprite.py
bitmovin/bitmovin-python
unlicense
2,500
68
codeparrot/github-code
c49527c026ad710b796b44e147cb7210c45b77f898bf65a126c6af508b4e7648
import java.io.*; import java.util.*; // https://www.hackerrank.com/contests/30-days-of-code/challenges/day-29-look-at-everything-weve-learned/submissions/code/4940335 public class Solution { public static void main(String[] args) { Scanner scn = new Scanner(System.in); int case...
Java
Java8/Day29-LookAtEverything.java
MatthewMerrill/HackerRank-30-Days-of-Code
unlicense
948
40
codeparrot/github-code
db40381208ecb34454412f11979592ebdae4d75dfa08c96886fce1d56a9816ee
#ifndef NANA_PAINT_DETAIL_IMAGE_PNG_HPP #define NANA_PAINT_DETAIL_IMAGE_PNG_HPP #include "image_pixbuf.hpp" //Separate the libpng from the package that system provides. #if defined(NANA_LIBPNG) #include <nana_extrlib/png.h> #else #include <png.h> #endif #include <stdio.h> namespace nana { namespa...
C++
src/external/nana/source/paint/detail/image_png.hpp
aliasIsolation/aliasIsolation
unlicense
6,232
227
codeparrot/github-code
206c7f497bed19560a6d6021d34a251fe6de0a4b96e05b09ce2cfcd9faa3663e
#include<vector> #include<cstdio> #include<algorithm> using namespace std; struct pt { int x, y; }; vector<pt> V; int C, s[9][9], r[9][10], c[9][10], b[9][10], t[9][9]; int go() { ++C; int i, j, k, l, n, m, x, y, z, sum = 0; if (V.size() == 0) return 1; for (i = 0; i < 9; ++i) for (j = 0; j < 9; ++j) ...
C++
ntuj/3285.cpp
dk00/old-stuff
unlicense
1,559
67
codeparrot/github-code
2bab76dc1193e31d059d87dfce389b8c2b90ad3bcc689eed31e7c7a08aab77e4
local function GetFlag(Content, flag) if (bit32.btest(Content.CapabilitiesFlag, flag)) then return "Yes" end return "No" end GameListSubtitles["DolbyDigitalSupported"] = function(Content) return string.format("Supports Dolby Digital: %s", GetFlag(Content, 1)) end GameListSubtitles["HarddriveRequired...
Lua
Media/Scripts/UserSubtitles/CapabilitiesFlag.lua
Swizzy/AuroraScripts
unlicense
1,176
34
codeparrot/github-code
feb5786b171a1dd2f99fe66d86d0861c8fe4953f86ccf3d343e282b98d3e6bc6
% *********************************************************** % ******************* PHYSICS HEADER ************************ % *********************************************************** % Version 2 \documentclass[11pt]{article} \usepackage{amsmath} % AMS Math Package \usepackage{amsthm} % Theorem Formatting \us...
TeX
templates/header.tex
rulojuka/listas
unlicense
3,201
65
codeparrot/github-code
4a9985722c6133e78e68d702ee3724525f3b2254ee7e1a0ad5adef13140715a0
<?php /** * Created by PhpStorm. * User: icebr:ice_br2046@163.com * Date: 2016/1/20 * Time: 15:10 * copy from thinkphp */ namespace Idesign\Cache\Driver; /** * Wincache缓存驱动 * @author liu21st <liu21st@gmail.com> */ class Wincache { protected $options = array( 'prefix' =...
PHP
iDesignFrame/Idesign/Cache/Driver/Wincache.php
yayashanzei/iDesignFrame
unlicense
2,412
110
codeparrot/github-code
aea3d2f25a4bbe1f6c614cb7e1a6378d42701a0ea595c01c4343e14dfbbd1bff
<?php function sanitize($input){ return $input; } function hash_password($input){ return sha1($input); } function check_against_hash($input,$already_hashed){ if(hash_password($input) == $already_hashed) return true; return false; } ?> <?php /* Parameters Example in PHP $stmt = $conn->prepare("INSE...
PHP
php/security.php
PJ-Finlay/Fantasy-Politics
unlicense
686
33
codeparrot/github-code
daaad028cbf65b5ffc6ffdbe7e769045fdaa8cc86c50edc53913b576dc5d16d0
package alien; import planet.Move; public class Randomite extends Alien { private static int max = 10; @Override public void setAbilityPoints(float[] abilities) { int r1; while (max > 0) { if (max == 1) { r1 = 1; } else { r1 = (int)...
Java
src/alien/Randomite.java
CommonGuy/AlienWar
unlicense
749
34
codeparrot/github-code
1764604a52a750001f3be15d7ea3089f6f713fd14cc663aa13c2cccac590a3c4
<?php return [ /* |-------------------------------------------------------------------------- | Authentication Defaults |-------------------------------------------------------------------------- | | This option controls the default authentication "guard" and password | reset options for y...
PHP
config/auth.php
linnit/TwtrPic
unlicense
3,534
108
codeparrot/github-code
7c6ed8e7aac4c9890b7d49774cc08838567c8781939c0d56c77c568ce82eaa0f
package io.github.picodotdev.plugintapestry.components; import org.apache.tapestry5.BindingConstants; import org.apache.tapestry5.ComponentResources; import org.apache.tapestry5.MarkupWriter; import org.apache.tapestry5.annotations.Environmental; import org.apache.tapestry5.annotations.Parameter; import org.apache.tap...
Java
PlugInTapestry/src/main/java/io/github/picodotdev/plugintapestry/components/Ajax.java
picodotdev/blog-ejemplos
unlicense
1,126
40
codeparrot/github-code
a8fe55ba8be1c251b13c31f559dea0b40076b67efcbbc769a9ed04cc8ce052a8
package com.sixtyfour.system; /** * Converts back and forth between Java floats and the actual memory * representation that the C64 uses. * * * @author EgonOlsen * */ public class Conversions { private static final double ACC_CORRECTOR = 0.00000000001d; /** * Compacts a C64 float from extended 6 byte r...
Java
src/main/java/com/sixtyfour/system/Conversions.java
EgonOlsen71/basicv2
unlicense
4,863
191
codeparrot/github-code
7a9e6614b184026ee2ec945afbb25c1f172ae030d5687b8e9fda617c288b5812
/* Author: Wang Yi <godspeed_china@yeah.net> */ #ifndef wyhash_version_3 #define wyhash_version_3 #include <stdint.h> #include <string.h> #if defined(_MSC_VER) && defined(_M_X64) # include <intrin.h> # pragma intrinsic(_umul128) #endif const uint64_t _wyp0 = 0xa0761d6478bd642full, _wyp1 = 0xe7037ed1a0b428dbull, ...
C
old_versions/wyhash_v3.h
wangyi-fudan/wyhash
unlicense
9,926
248
codeparrot/github-code
27cf853d3bb883e403e8effae4527cfdf0ba94771c6bc7bfc53c708f8336885c
# #crawl-ref/source/job-data.h # jobs={ "Abyssal Knight" : "AK", "Air Elementalist" : "AE", "Arcane Marksman" : "AM", "Artificer" : "Ar", "Assassin" : "As", "Berserker" : "Be", "Chaos Knight" : "CK", "Conjurer" : "Cj", "Earth Elementalist" : "EE", "Enchanter" : "En", "Fighter" : "Fi", "Fire Elementalist" : "FE", "Gla...
Python
dcss_stats/core/dcss_data.py
oschwab/dcss_stats
unlicense
2,852
150
codeparrot/github-code
21958efd68cd354960f93c55be4e606c191771265f4ea488ebca6b7a502e45ba
#!/usr/bin/env ruby require 'cgi-lib.rb' $cgi = CGI.new $stage = 0 #$debug = 1 $sales_tax = 0.06 $self = 'https://localhost/~william/cgi-bin/flightreserve.rb' $site_title = 'Joplin Airlines' $destinations = { 'Kansas City'=>'KC', 'Chicago'=>'CH', 'Dallas'=>'DA', 'Denver'=>'DN', 'St. Louis'=>'SL' }.sor...
Ruby
cgi-bin/flightreserve.rb
bwr/airplane_mssu_project
unlicense
9,986
382
codeparrot/github-code
5af15449fb0bcaeda34e3ac52db589a72c37c57b2d206871b8d1a4ea8e91693a
<?xml version="1.0" encoding="iso-8859-1"?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title>JSON Data Format</...
HTML
face-web/src/main/webapp/static/fusionWidgets/Contents/Funnel/JSONFormat.html
cc14514/hq6
unlicense
10,514
142
codeparrot/github-code
8d4ba247fb0d826ee4890e9cd346a377d4398dcaf52c540f8c1c6d94c1eb88c9
local Controller = {} Controller.__index = Controller function Controller.new(game, drawEngine) local o = {} setmetatable(o, Controller) o.game = game o.drawEngine = drawEngine o.mouseDown = false return o end -- handles key presses -- ! uses globals from main.lua ! function Controller:handl...
Lua
game/controller.lua
DerSticher/ACO-love
unlicense
1,748
73
codeparrot/github-code
4f6d574d0ecd6350641069eddc099c68ca10fd61b634a0dd8865b7b938544bc0
using System.Collections.Generic; using System.IO; using System.Linq; using EloWeb.Models; namespace EloWeb.Persist { public class PlayersData { private static string _path; public static IEnumerable<Player> Load(string path) { try { _path = pat...
C#
src/EloWeb/Persist/PlayersData.cs
Joey-Softwire/ELO
unlicense
678
30
codeparrot/github-code
ebf5283b36865303f65e8a09821b51f1a9f8a2162b10e3c06be5f6c8ba493a21
#! /usr/bin/env python import argparse import operator import os import sys from collections import namedtuple from functools import lru_cache from functools import reduce from pathlib import Path from typing import Any from typing import Dict from typing import List import addict import arrow import googleapiclient.e...
Python
playlist_updates.py
ipwnponies/youtube-sort-playlist
unlicense
13,622
352
codeparrot/github-code
7f40820b898c685e2ce4ddd6ac07967ee960f6f641af8c4e1261335da92c3f23
package squeek.veganoption.blocks; import mcjty.theoneprobe.api.IProbeHitData; import mcjty.theoneprobe.api.IProbeInfo; import mcjty.theoneprobe.api.IProbeInfoAccessor; import mcjty.theoneprobe.api.ProbeMode; import net.minecraft.block.Block; import net.minecraft.block.BlockHorizontal; import net.minecraft.block.Sound...
Java
java/squeek/veganoption/blocks/BlockComposter.java
squeek502/VeganOption
unlicense
4,671
151
codeparrot/github-code
dbba1978fa2658c0c371c89bb0b545e352e3195af4dd96519c430a1372a6213f
/* * * 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 * "Licen...
JavaScript
ui/plugins/org.apache.cordova.device/src/windows8/DeviceProxy.js
Ramanujakalyan/Inherit
unlicense
3,332
83
codeparrot/github-code
c79d84d08a64aac000568e1ccc9dc35aea6c0ae865521c6ad97f37c3ae80539a
/** Starting with version 2.0, this file "boots" Jasmine, performing all of the necessary initialization before executing the loaded environment and all of a project's specs. This file should be loaded after `jasmine.js`, but before any project source files or spec files are loaded. Thus this file can also be used to ...
JavaScript
scripts/jasmine-boot.js
onstottj/Backbone-Todo-App
unlicense
6,775
201
codeparrot/github-code
fe8c3a27861fef53ae499e30c0bc7a05fbeb895ed9647e30e3fb3f87700bdc01
namespace LearningInterpreter.Basic.Code { using System; using System.Globalization; using LearningInterpreter.RunTime; using LearningInterpreter.Parsing; /// <summary> /// Represents the BASIC line that is a statement with a possible line number. /// </summary> public class Line : ILi...
C#
LearningInterpreter.Basic/Code/Line.cs
markshevchenko/learning-interpreter
unlicense
5,153
156
codeparrot/github-code
6ca469e62f587408941b2ac79c8a2f939c5cb943a1e27db5d6e048ddf38eaf65
using System; using System.Linq; using System.Collections.Generic; namespace FingerStandard.Collections { public class OrderedSeqeuence<T> : OrderedSequence<T, T> where T : IComparable { public OrderedSeqeuence() : base(t => t) { } public OrderedSeqeuence(IEnumerable<T> tt) : base(t => t, tt) ...
C#
Finger/FingerStandard/Collections/OrderedSequence.cs
landon/Playground
unlicense
4,320
115
codeparrot/github-code
a702c583f6df163cb124375231a3ce22d715383650282594c28388ba02d231c5
# # crowbar - a geometry manipulation program # Copyright (C) 2020 Dylan Scott Grafmyre # # 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, either version 3 of the License, ...
Python
crowbar/baseextension.py
thorsummoner/crowbar
unlicense
2,406
80
codeparrot/github-code
983a0e8adcf87d8380b9d6d590923ff9fb819e1394ad36a6c9d89c6f0f747986
<?php /* vim: set expandtab sw=4 ts=4 sts=4: */ /** * * @version $Id$ * @package phpMyAdmin */ if (! defined('PHPMYADMIN')) { exit; } /** * */ require_once './libraries/common.inc.php'; // Cross-framing protection if ( false === $GLOBALS['cfg']['AllowThirdPartyFraming']) { ?> <script ty...
PHP
web/phpMyAdmin/libraries/header_scripts.inc.php
rtyJay14/crowd-farm
unlicense
5,640
147
codeparrot/github-code
0321134241bd1965e81c493f6cef775405625cb8a3820318e038e7010edea698
<?php /* @class - FileTreeView @desc - lists directory based on $_GET method. */ class fileTreeView { /* Variables */ // Holds the current directory. private $current_dir; // Holds all current files private $current_files; // Holds array of all the directories from the past. private $breadCrumbs; // holds...
PHP
maindir/Treeviewer.php
Rune-KM/File-Tree-viewer
unlicense
3,490
155
codeparrot/github-code
2724acaf572c213fe2161b27db516bc5faae5fc555c846e9732ea9b19d95fb8a
package main import ( "bufio" "fmt" "math/rand" "os" "strings" "time" ) const otherWord = "*" var transforms = []string{ otherWord, otherWord, otherWord, otherWord, otherWord + "app", otherWord + "site", otherWord + "time", "get" + otherWord, "go" + otherWord, "lets" + otherWord, } func main() { ra...
GO
golang/go-web/command-line-tool/sprinkle/main.go
jtwp470/my-programming-learning-book
unlicense
516
35
codeparrot/github-code
991e9cf2c6e07421c22fb5c84b2595d24036228da9e32febdbadc1bd3b15f271
#include <fstream> #include <string> #include <time.h> #include "Logger.h" #define _LOG_PATH "./StdOut.log" using namespace Skyward; using namespace std; Logger::Logger() { const time_t timer = time(NULL); string _time = ctime(&timer); _time.insert(0, "Starting Skyward Reborn at ["); string::size...
C++
SkywardRPG/src/Logger.cpp
ciscprocess/SkywardRPG
unlicense
2,464
101
codeparrot/github-code
364cff9fec910883eb2f73a1f63251c0130cf4e22dfaaf5477467afd1649d46c
package katas.scala.bsearchtree import org.junit.Test import org.scalatest.Matchers class _234BST extends Matchers { @Test def `inserting elements as described in 'Algorithms in Java' Figure 13.13`() { Empty().insert("a") should equal(Node2("a")) Empty().insert("a", "s") should equal(Node3(("a", "s"))) Empty(...
Scala
scala/src/katas/scala/bsearchtree/_234BST.scala
dkandalov/katas
unlicense
6,250
193
codeparrot/github-code
061dd063854d70f68d88d8b5b16dfb7fe767257cba1b1578436e31a86a7a4537
<?php namespace App\Form\Community\Forums; class AddForum extends \EasyBib_Form { private $_categories; public function __construct($categories, $options = null) { $this->_categories = $categories; parent::__construct(); } public function init() { \ZendX_JQuery::en...
PHP
library/App/Form/Community/Forums/AddForum.php
delta98/pbnetwork-boilerplate
unlicense
1,873
59
codeparrot/github-code
26ecb950024fea6ebe72cfa6d91cfd8fdf45e62087ed973c8b7d11860647744d
/* ALF2.f -- translated by f2c (version 20100827). You must link the resulting object file with libf2c: on Microsoft Windows system, link with libf2c.lib; on Linux or Unix systems, link with .../path/to/libf2c.a -lm or, if you install libf2c.a in a standard place, with -lf2c -lm -- in that order, at the end of t...
C
src/data/ALF2.c
violador/catalyst
unlicense
92,702
2,648
codeparrot/github-code
c922bc3e22fc562c4227ad7f2b922d6a8709740e4421195e977d717f091f810a
# -*- coding: utf-8 -*- """pathobject.py - A utility class for operating on pathnames.""" import codecs import fnmatch import glob import hashlib import os import shutil import sys import warnings __all__ = ["Path"] __version__ = "0.0.1" ## Some functional utilities to save code later on. def update_wrapper(wrapp...
Python
src/pathobject.py
zacharyvoase/pathobject
unlicense
15,069
499
codeparrot/github-code
d3d2861b8c5440321ac815853fe6fc154757e7c273df8867097a732f6fc0c633
/* * * 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 * "Licen...
JavaScript
plugins/org.apache.cordova.core.file/www/blackberry10/Entry.js
xsuii/dontsettle-client
unlicense
4,098
113
codeparrot/github-code
91238a64c21435f4d4737e9e5e2a6174a964cf2f924acb16ff3b3148b04e7396
package gjb.experimental; import com.qualcomm.robotcore.eventloop.opmode.Autonomous; import com.qualcomm.robotcore.eventloop.opmode.LinearOpMode; import gjb.interfaces.RuntimeSupportInterface; import gjb.utils.AndroidRuntimeSupport; /** * New version of auton code - with most of the logic moved to helper class * ...
Java
RC2/TeamCode/src/main/java/gjb/experimental/AOpMode_TestLandLift.java
GreenJellyBeans/FTC12598
unlicense
1,086
42
codeparrot/github-code
cffbedd1025d0690bcc4d5af5b8183ff76a2cbacb5653a62df52712dbe0e068f
using System.Collections; using System.Collections.Generic; using UnityEngine; public class Tier1GateOpener : MonoBehaviour { public GameObject gate; // Use this for initialization void Start () { } // Update is called once per frame void Update () { if (LevelLoader.P1_hasProgressed_0 && LevelLoader.P2...
C#
ShooterExperiment/ShooterExperiment/Assets/Scripts/Tier1GateOpener.cs
paosalcedo/shooterexperiment
unlicense
599
32
codeparrot/github-code
034fc778c309d1db1da1c66669bc25af53e3843324566a42b903448d5c2aee0f
use strict; use warnings; use v5.24; use experimental 'signatures'; use Crypt::Cipher::AES; use MIME::Base64; use WWW::Form::UrlEncoded qw(build_urlencoded parse_urlencoded); use File::Slurp qw(read_file); use Data::Printer; # In order to make this work, you have to make at least one assumption about the web # ser...
Perl
cryptopals/perl/set-2/challenge-13.pl
Tim-Tom/scratch
unlicense
3,047
85
codeparrot/github-code
ee20d2dce37ff0fef173b79d66f40eead051546287999f8739805af132825fd8
<?php session_name("osuautorecent"); session_start(); require_once('config.php'); require_once('../file.php'); require_once('../twitter/twitteroauth.php'); function CompleteRequest() { # missing request tokens if (empty($_SESSION['oauth_token'])) { return "Whoops. Something went wrong: The request toke...
PHP
remove/complete.php
Frizz925/osuautorecent
unlicense
2,109
66
codeparrot/github-code
f02c1d75ab636318f1c6fd2c186e21c48d662cd9101503259949dc498852260f
#!/usr/bin/python import requests import argparse import subprocess import time import json import signal import sys import os AdminToken='' BackupFolderPath='./backup' CookieFilePath='cookies.txt' SavedFilesDB='.slut-bak.json' TeamInfoDb='.team-bak.json' LsDb='.ls-bak.json' UserDb='.user-bak.json' TeamName='' shoul...
Python
slut.py
jeremyletang/slut
unlicense
9,623
314
codeparrot/github-code
4ce3b7a7bfbee966c543ccc81d8a3352b710021ac8b22273f5a91ccd2019065d
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// // WjCryptLib_RC4 // // An implementation of RC4 stream cipher // // This is free and unencumbered software released into the public domain - June 2013 waterjuice.org /////////////////////////////...
C
lib/WjCryptLib_Rc4.h
WaterJuice/CryptLib
unlicense
4,133
92
codeparrot/github-code
37ce5e175291ee96c4e2581a54c7a9a25d21a86af9c4cfbc3c8ef6d433e11d27
<!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/games/multiplayer/InvitationEntity.html
tparnell8/XamarinAdmobTutorial
unlicense
68,535
2,266
codeparrot/github-code
2f372f5dc7ce645fc5a8531b0ce1cb356bca44a86c590036cce391f2d860234c
package com.mobium.config.prototype; import android.content.Context; import android.graphics.Color; import android.graphics.drawable.Drawable; import android.support.annotation.ColorRes; import android.support.annotation.DrawableRes; import android.support.annotation.NonNull; import android.support.annotation.Nullable...
Java
app/src/main/java/com/mobium/config/prototype/ConfigurationImplementation.java
naebomium/android
unlicense
5,395
204
codeparrot/github-code
4a5bf5006adf9dd4455eb652ff3aa77a791a9124c7675e5295eefe458065362d
#!/usr/bin/ruby require "socket" require "date" require "optparse" require 'ipaddr' require './PacketMaker.rb' $flg_pcap = false def dumpbin( f, data ) return if ( data == nil ) dumpLine = lambda {|d, o| chars = "" line = sprintf("0x%08X: ", o) d.each_byte do |bytedata| line << sprintf("%02X ", bytedata) ...
Ruby
script/rb/tools/net_printer/tcpproxy.rb
bugoodby/bugoodbylib
unlicense
2,679
134
codeparrot/github-code
36098401847d2a93be10783659e552fa8611aa8f8c1b3e232a73e17963b291b7
package controllers import javax.inject._ import play.api._ import play.api.mvc._ import play.api.mvc.Results._ import play.api.libs.json.Json @Singleton class ContentNegotiationController @Inject() extends Controller { def list = Action { implicit request => val items = List(1,2,3,4,5,6,7,8,9,10) ...
Scala
play-2.5-scala-app-sandbox/app/controllers/ContentNegotiationController.scala
diegopacheco/scala-playground
unlicense
607
31
codeparrot/github-code
b2b0c96063668fe25dc170e4500430463703c796f326eda781b630c865bf3b3e
namespace Elasticsearch.Client { ///<summary><see href="http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-flush.html"/></summary> public class IndicesFlushParameters : Parameters { ///<summary>Whether a flush should be forced even if it is not necessarily needed ie. if no changes...
C#
src/ElasticsearchClient/Generated/IndicesFlushParameters.cs
rossbrower/elasticsearch-client
unlicense
3,969
86
codeparrot/github-code
84f2e1d57dbf030f1478b3f0eb33c8686191f31c847a7f3c75041318c06a6e84
package be.normegil.librarium.model.data.game; import be.normegil.librarium.WarningTypes; import be.normegil.librarium.tool.DataFactory; import be.normegil.librarium.tool.FactoryRepository; import be.normegil.librarium.tool.test.model.data.AbstractDataEqualityTest; import org.junit.Test; import static org.junit.Asser...
Java
src/test/java/be/normegil/librarium/model/data/game/UTGameSerieEquality.java
Normegil/Librarium-Server
unlicense
1,155
37
codeparrot/github-code
4365a7d8414b990a72a3b83803ad03c4e620176b284ee56e975f4855911a1e84
<!DOCTYPE html> <html> <head> <style type="text/css"> html, body { overflow: hidden; margin: 0px; padding: 0px; width: 100%; height: 100%; min-height:0; } iframe { width: 100%; height: 100%; border: 0px; position:absolute; ...
HTML
contactelectronicarts/common/crossdomain/communicator.html
danielferecatu/electronicarts
unlicense
1,516
68
codeparrot/github-code
41fdcd037c6eba886f882fa03c772a7d261460f25ffb4006a5d7410c28132681
/* 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/src/test/java/org/flowable/standalone/jpa/FloatIdJPAEntity.java
motorina0/flowable-engine
apache-2.0
988
38
codeparrot/github-code
e992fb051c0ba2c42a9912322f1285f237e648c3bad741595587dd41bf1ec6a3
# Copyright 2010 United States Government as represented by the # Administrator of the National Aeronautics and Space Administration. # All Rights Reserved. # Copyright (c) 2010 Citrix Systems, Inc. # Copyright 2013 IBM Corp. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use th...
Python
nova/virt/netutils.py
thomasem/nova
apache-2.0
6,132
180
codeparrot/github-code
f6009c13235f8276741451056fa3ea837e9068fc86a1d457582a06b4201d58b0
#!/usr/bin/python # ***************************************************************************** # # Copyright (c) 2016, EPAM SYSTEMS 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 # #...
Python
infrastructure-provisioning/src/general/scripts/os/jupyter_dataengine_create_configs.py
epam/DLab
apache-2.0
7,919
164
codeparrot/github-code
0e481c0c939363833bf0de8ab306b940b67b49be88ac13cc52d5899c3c116892
import json,os,shelve import asyncio,sys DATAFILENAME="data" def set_user_id(new_id): _local_data["user_id"]=new_id def set_login_token(token): _local_data["login_token"]=token def load_data(): global _local_data if(os.path.exists(os.path.join(get_current_path(),DATAFILENAME))): with open(os.pa...
Python
utils.py
dandfmd/Linfilesync
apache-2.0
2,486
74
codeparrot/github-code
1cf4cd972aff1c88b9245a1ae890d0fe85835a252a6eca8b6745845f459ceaa4
/* * Copyright (c) 2013 Allogy Interactive. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy of * the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or...
Java
Allogy/src/com/sun/pdfview/FunctionType0.java
Allogy/allogy-legacy-android-app
apache-2.0
15,509
459
codeparrot/github-code
73a7d7cdd7156f5ce0c97cc2cfa7da238be4d7836829a704e6004d593543942c
/* * Copyright 2020 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...
TypeScript
server/src/main/webapp/WEB-INF/rails/webpack/views/pages/backup/backup_config_modal.tsx
ketan/gocd
apache-2.0
5,113
139
codeparrot/github-code
7d43d6812a5bbb8e42405ea73de4412849cad8c28279c9d1a8b0972b5c20f70e
/* * Copyright 2015 Karlsruhe Institute of Technology. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless require...
Java
Utils/src/main/java/edu/kit/dama/util/update/types/JavaLibrary.java
kit-data-manager/base
apache-2.0
3,841
131
codeparrot/github-code
29e672dd25203a1c5f6187323ee6dafcf3e6a7ce2c50d5e6e9183fea7c137b8a
package fm.pattern.tokamak.server.dsl; import static org.apache.commons.lang3.RandomStringUtils.randomAlphabetic; import static org.apache.commons.lang3.RandomStringUtils.randomAlphanumeric; import java.util.HashSet; import java.util.Set; import fm.pattern.tokamak.server.model.Account; import fm.pattern.tokamak.serv...
Java
tokamak-server/src/test/java/fm/pattern/tokamak/server/dsl/AccountDSL.java
PatternFM/tokamak
apache-2.0
1,561
64
codeparrot/github-code
ca6961f3763cccb133dfe471f251eb19461512f0a78520c5369cb8365bdad706
/* * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed u...
Java
pax-web-itest/pax-web-itest-karaf/src/test/java/org/ops4j/pax/web/itest/karaf/FeaturesKarafTest.java
lostiniceland/org.ops4j.pax.web
apache-2.0
2,631
87
codeparrot/github-code
2dff57018458c1a4eeed5922e8a9866c8e4a81b6526a7a1b576153f1add3f06e
/* * 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
enhanced/archive/classlib/java6/modules/awt/src/main/java/common/java/awt/image/FilteredImageSource.java
freeVM/freeVM
apache-2.0
2,392
74
codeparrot/github-code
ae5e020c9164565cbdf258ac8eb1c2f679e6ad66d7e43369aa81596c6fd5c537
package achecrawler.seedfinder; import java.io.FileOutputStream; import java.io.PrintStream; import achecrawler.crawler.async.HttpDownloaderConfig; import achecrawler.crawler.async.fetcher.FetcherFactory; import achecrawler.crawler.crawlercommons.fetcher.http.SimpleHttpFetcher; import achecrawler.seedfinder.QueryProc...
Java
ache/src/main/java/achecrawler/seedfinder/SeedFinder.java
ViDA-NYU/ache
apache-2.0
5,294
135
codeparrot/github-code
31b4ff838cce5314254fb70ee5fa65df77ae7683bb373327cd157860ad89fea4
namespace Zu.ChromeDevTools.HeapProfiler { using Newtonsoft.Json; /// <summary> /// /// </summary> public sealed class StopSamplingCommand : ICommand { private const string ChromeRemoteInterface_CommandName = "HeapProfiler.stopSampling"; [JsonIgnore] public str...
C#
ChromeDevToolsClient/HeapProfiler/StopSamplingCommand.cs
ToCSharp/AsyncChromeDriver
apache-2.0
750
32
codeparrot/github-code
2bb5c4d5cb62f0082f51069d1a13e406a3ce0534a4d379d7fe9470c772e41691
/* Copyright 2014-2016 Intel Corporation Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, s...
Java
moe.apple/moe.platform.ios/src/main/java/apple/intents/INSetRadioStationIntentResponse.java
multi-os-engine/moe-core
apache-2.0
6,263
187
codeparrot/github-code
5c32a16646b72cb70c9012c750cdc272e72176584b6f43ff93600b76d224e3fd
<?php use yii\helpers\Url; use frontend\models\ProductPartner; //合作伙伴模型 use frontend\models\ProductImage; //图片模型 ?> <!DOCTYPE html> <html class="ui-viewport-640" lang="zh-CN"> <head> <meta charset="utf-8"> <meta name="keywords" content=""> <meta name="description" content=""> <meta n...
PHP
frontend/views/activity/generationh5.php
songhongyu/idaiyan
apache-2.0
33,172
487
codeparrot/github-code
6fd10ae49fbb0b917e889b63ecdf343f67ea36b0d702d1e95268329ab8bbbbfd
/* * HTTPClient: setting autoRedirect off for 302s on Android calls onerror */ var win1 = Titanium.UI.createWindow({ }); // Create a Button. var aButton = Ti.UI.createButton({ title : 'aButton', }); // Listen for click events. aButton.addEventListener('click', function() { var url = "http://appc.mrtechnologyb...
JavaScript
code/TC-3279.js
csemrm/QnA
apache-2.0
1,391
56
codeparrot/github-code
6ada403161b130c61219b95f7b8fc8f0b4f4c061b02471e47a52e5d2091de90c
/* * Copyright (c) 2018, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. * * WSO2 Inc. 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://www.apache.org/li...
Java
components/apimgt/org.wso2.carbon.apimgt.impl/src/test/java/org/wso2/carbon/apimgt/impl/wsdl/WSDLSOAPOperationExtractorImplTestCase.java
harsha89/carbon-apimgt
apache-2.0
10,180
201
codeparrot/github-code
d3f8a84bd63266957658ef41430a44c1c61f25aa406f2e7de746e0a850e0ff75
package org.codehaus.plexus.archiver.zip; import java.io.IOException; import java.io.InputStream; import java.net.URL; import org.apache.commons.compress.archivers.zip.ZipArchiveEntry; import org.apache.commons.compress.archivers.zip.ZipFile; import org.codehaus.plexus.archiver.UnixStat; import org.codehaus.plexus.co...
Java
src/main/java/org/codehaus/plexus/archiver/zip/ZipResource.java
krosenvold/plexus-archiver
apache-2.0
2,931
87
codeparrot/github-code
84388552e5e2aadcc9e4935db8b2d82321d470ae6ae0984a6185e7fb0a1c31f0
/* * 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
presto-jdbc/src/main/java/io/prestosql/jdbc/AbstractPrestoResultSet.java
smartnews/presto
apache-2.0
56,045
1,945
codeparrot/github-code
e3162a7860496cfebadbb3916e64e64251b3b306f2ef8f0193fa0be8cac28de6
/* * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software distributed under t...
Java
src/test/java/org/assertj/core/api/Object2DArrayAssertBaseTest.java
hazendaz/assertj-core
apache-2.0
1,439
44
codeparrot/github-code
d382c71ea4ab071f4476bbffc45317ec1f549e8cfed9b9d6ead67fc65a550698
/** * action that returns all items given one date */ package de.l3s.eumssi.action; import java.util.ArrayList; import org.apache.struts2.ServletActionContext; import com.opensymphony.xwork2.Action; import de.l3s.eumssi.dao.SolrDBManager; import de.l3s.eumssi.model.Event; public class ShowEventByDa...
Java
src/main/java/de/l3s/eumssi/action/ShowEventByDateAction.java
mainulquraishi/EventSenseDemo
apache-2.0
3,074
156
codeparrot/github-code
07a2c92471b7d5ef43016c492b92cf5735ae76fbdf5cf7daac2e33d1b114e7c8
=head1 LICENSE # Copyright [1999-2015] Wellcome Trust Sanger Institute and the EMBL-European Bioinformatics Institute # Copyright [2016-2017] EMBL-European Bioinformatics Institute # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # ...
Perl
modules/Bio/EnsEMBL/Analysis/RunnableDB/ExonerateSolexa.pm
james-monkeyshines/ensembl-analysis
apache-2.0
16,750
587
codeparrot/github-code
368265437e30f7abc5922a2fc1eea8649a238822aca7b2442ce4da095cbe7e66
package de.team33.test.patterns.exceptional.e1; import de.team33.patterns.exceptional.e1.Converter; import de.team33.patterns.exceptional.e1.WrappedException; import de.team33.patterns.exceptional.e1.Wrapping; import org.junit.jupiter.params.ParameterizedTest; import org.junit.jupiter.params.provider.EnumSource; impo...
Java
exceptional-01/src/test/java/de/team33/test/patterns/exceptional/e1/ConverterTest.java
akk-team33/lib-patterns
apache-2.0
6,002
155
codeparrot/github-code
89b4ee9d67103f529d708b7365c9e6d17e236b3f3d5491cecfeb992acc17eb66
package com.github.saksham.hulaki.transport; import com.github.saksham.hulaki.api.ApiRequest; import com.github.saksham.hulaki.api.InvalidRequest; import com.github.saksham.hulaki.exceptions.ApiProtocolException; import io.netty.buffer.ByteBuf; import io.netty.channel.ChannelHandlerContext; import io.netty.handler.cod...
Java
src/main/java/com/github/saksham/hulaki/transport/ApiRequestDecoder.java
saksham/hulaki
apache-2.0
1,261
31
codeparrot/github-code
b65705bd7b38b3342b8457c858ea54b3b6520786a3efac87fc4dcef5bf41813d
if Rails.env.production? CarrierWave.configure do |config| config.cache_dir = "#{Rails.root}/tmp/" config.storage = :fog config.fog_credentials = { :provider => 'Google', :google_storage_access_key_id => "#{ENV['GOOGLE_ACCESS_KEY_ID']}", :google_storage_secret_access_k...
Ruby
Season 2013/Bogota/Projects/7_hormigas/config/initializers/carrierwave.rb
LookThisCode/DeveloperBus
apache-2.0
1,668
34
codeparrot/github-code
453d718d1e749c90d93927c8a63c1d0311a130e934bd137ad2828ab6677156ce
/*============================================================================= Copyright (c) 2012 Paul Fultz II first_of.h Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) ============================...
C++
include/ginseng/3rd-party/boost/hof/first_of.hpp
Owldream/Ginseng
apache-2.0
7,344
245
codeparrot/github-code
9d445d75035f82b9897032471921a0d5d74882fd226916228d8d5b81157a8761
// _ooOoo_ // o8888888o // 88" . "88 // (| -_- |) // O\ = /O // ____/`---'\____ // . ' \\| |// `. // / \\||| : |||// \ /...
Java
app/src/main/java/com/lb/wecharenglish/dao/impl/EnglishImpl.java
291700351/WeCharEnglish
apache-2.0
9,292
240
codeparrot/github-code
584706920938e72be8ce4d55c18ef47444fd2fa7603eb78925191e9ed46733b5
/* * Copyright 2015 Kevin Herron * * 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
stack-core/src/main/java/com/digitalpetri/opcua/stack/core/types/structured/ModifySubscriptionRequest.java
digitalpetri/opc-ua-stack
apache-2.0
5,955
116
codeparrot/github-code
41cf40ffcae888663d8cac186cbb41d9b437769f3d6353b68671d858bac2d9ee
#include <ros/ros.h> #include <myworkcell_core/LocalizePart.h> #include <tf/tf.h> #include <moveit/move_group_interface/move_group_interface.h> #include <actionlib/client/simple_action_client.h> #include <control_msgs/FollowJointTrajectoryAction.h> #include <myworkcell_core/PlanCartesianPath.h> class ScanNPlan { publi...
C++
exercises/4.1/src/myworkcell_core/src/myworkcell_node.cpp
geoffreychiou/industrial_training
apache-2.0
2,901
97
codeparrot/github-code
8851a88dc08aad4a9b960f6d4f631ca3016fa416dcb5252f8389f29e3b5b02a0
/* * Copyright 2009-2013 by The Regents of the University of California * 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 from * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless r...
Java
asterix-common/src/main/java/edu/uci/ics/asterix/common/feeds/IntakePartitionStatistics.java
parshimers/incubator-asterixdb
apache-2.0
1,222
42
codeparrot/github-code
1efc9d55d7c3848b19130fbd27970baad54288e69773eaae46f5635f546f40e2
/* * Copyright (C) 2014 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in ...
Java
sdk/src/main/java/com/google/cloud/dataflow/sdk/io/FileBasedSource.java
nagachika/DataflowJavaSDK
apache-2.0
27,257
618
codeparrot/github-code
95d5485294edabc0840c0a40ae5e28b7a226492f947631057cf743fa69ce8e5c
/* * Copyright 2016-present Facebook, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); you may * not use this file except in compliance with the License. You may obtain * a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or...
Java
src/com/facebook/buck/artifact_cache/AbstractNetworkCache.java
illicitonion/buck
apache-2.0
8,175
233
codeparrot/github-code
3c6cd00213ef5d49249f3b6bcd5709c30d86c400087866d75bab89caf69e6c89
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. package com.yahoo.searchdefinition.processing; import com.yahoo.config.application.api.DeployLogger; import com.yahoo.searchdefinition.RankProfileRegistry; import com.yahoo.document.Field; import com.yahoo.searchde...
Java
config-model/src/main/java/com/yahoo/searchdefinition/processing/IndexingValues.java
vespa-engine/vespa
apache-2.0
2,741
72
codeparrot/github-code
43712893eecae627a7b5d67808e355349140b861c60f942310fa1bee3175223a
using System; using System.Collections.Generic; using System.Configuration; using System.Linq; using System.Reflection; using System.Text; using System.Threading.Tasks; namespace RefactorName.Core.Basis { /// <summary> /// Provides API and capabilities of creating objects. /// </summary> public static...
C#
RefactorName/RefactorName.Core/Basis/Factory.cs
RiadKatby/3tier-ddd
apache-2.0
3,872
91
codeparrot/github-code
d3df2bf4b183307ab48d9a5d5ca1503a6688db82713cbf9d19f0ba420e9eac36
/** --| ADAPTIVE RUNTIME PLATFORM |---------------------------------------------------------------------------------------- (C) Copyright 2013-2015 Carlos Lozano Diez t/a Adaptive.me <http://adaptive.me>. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance wi...
C#
adaptive-arp-api/Sources/Adaptive.Arp.Api/ServiceSessionAttribute.cs
AdaptiveMe/adaptive-arp-api-lib-dotnet
apache-2.0
2,133
75
codeparrot/github-code
fe776396f8034e0e1296f6b86d05ddbb30e2fc5a9379c0d0445e40e2cb16f82c
/******************************************************************************* * PathVisio, a tool for data visualization and analysis using biological pathways * Copyright 2006-2019 BiGCaT Bioinformatics * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in c...
Java
modules/org.pathvisio.core/src/org/pathvisio/core/model/Pathway.java
PathVisio/pathvisio
apache-2.0
24,880
951
codeparrot/github-code
8155603ee647de421af9ef57892c9247adafbe809ee9655c60b996a4fb40c8b3
package scala.collection.immutable import org.scalacheck._ import Arbitrary.arbitrary import Prop._ import Gen._ import commands.Commands import scala.util.Try object VectorMapProperties extends Properties("immutable.VectorMap") { type K = Int type V = Int type T = (K, V) property("internal underlying ind...
Scala
test/scalacheck/scala/collection/immutable/VectorMapProperties.scala
scala/scala
apache-2.0
6,073
148
codeparrot/github-code
038e647dd924c282f0d076221bbcc23a3f934b42240e2db7ef2778672a8fe9aa
/** * @description CatalogOption SVG Icon. * @property {string} a11yTitle - Accessibility Title. If not set uses the default title of the status icon. * @property {string} colorIndex - The color identifier to use for the stroke color. * If not specified, this component will default to muiTheme.palette.textColor. ...
JavaScript
src/js/components/icons/base/CatalogOption.js
odedre/grommet-final
apache-2.0
2,708
66
codeparrot/github-code
798f1255fafeaf1b0d5c872f915a34d50dea86ce1387b1d53d1b12a65b769d92
/* * File : daemon_api21.c * Author : Mars Kwok * Date : Jul. 21, 2015 * Description : This is used to watch process dead over api 21 * * Copyright (C) Mars Kwok<Marswin89@gmail.com> * */ #include <fcntl.h> #include <sys/stat.h> #include <sys/inotify.h> #include "com_marswin89_marsdaemon_nat...
C
LibMarsdaemon/jni/daemon_api21.c
Marswin/MarsDaemon
apache-2.0
4,403
145
codeparrot/github-code
474cc8dedaff37f81016e53f374d301e8458cebd254e0c3a9e14873eb2d85181
package sample.chirper.favorite.impl; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; import com.lightbend.lagom.javadsl.immutable.ImmutableStyle; import com.lightbend.lagom.serialization.Jsonable; import org.immutables.value.Value; import org.pcollections.*; import javax.validation.constraints.NotN...
Java
favorite-impl/src/main/java/sample/chirper/favorite/impl/AbstractFavoriteState.java
negokaz/lagom-hands-on-development
apache-2.0
1,374
51
codeparrot/github-code
664d962f55bbe3476857685639cd1a043accc518ca16347e994d5752e02716fe
# # Copyright (c) 2008-2015 Citrix Systems, 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 l...
Python
nssrc/com/citrix/netscaler/nitro/resource/config/ns/nspbr_args.py
mahabs/nitro
apache-2.0
1,045
42
codeparrot/github-code