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
695f749ea7dcdd8c6831347105f5edc0aefaf89350c79db1b5b05926fa16102f
#pragma once #ifndef LIBTCCAPI # define LIBTCCAPI #endif struct TCCState; typedef struct TCCState TCCState; /* create a new TCC compilation context */ LIBTCCAPI TCCState *tcc_new(void); /* free a TCC compilation context */ LIBTCCAPI void tcc_delete(TCCState *s); /* set CONFIG_TCCDIR at runtime */ LIBTCCAPI void t...
C
tcc/libtcc.h
cartman300/TCC.NET
unlicense
3,160
91
codeparrot/github-code
f3beef9e0295454b89010360a83dba238f19baabc13e26359cb36ab34014e625
''' Created on 03.05.2015 @author: vvladych ''' from gi.repository import Gtk from forecastmgmt.model.organisation import Organisation from masterdata_abstract_window import AbstractAddMask class OrganisationAddMask(AbstractAddMask): def __init__(self, main_window, reset_callback): super(OrganisationAd...
Python
src/forecastmgmt/ui/masterdata/organisation_add_mask.py
vvladych/forecastmgmt
unlicense
1,939
64
codeparrot/github-code
9d3c6f60384d6fba74114d13138fb8cd927150247bba6d489f2e13dc93777fdf
""" Consider adding prime numbers to the hashing function. Although there is no evidence whatsoever that using prime numbers increases bit entropy (or is there?), it seems that this is a too widespread practice for an amateur such as myself not to follow. There is no one-size-fits-all hashing methodology, what can be...
Python
python/other/shash.py
mafagafogigante/algorithms-and-data-structures
unlicense
1,412
42
codeparrot/github-code
2424cb1994f35dec39398928afcc86d796f2003bf331fb49b9104b2c3b62cd54
#include "vmod_mruby.h" #include "vmod_class.h" #include "vmod_mruby_prob.h" typedef struct mrb_prob_state { }mrb_prob_state; static mrb_value mrb_vcl_prob_init(mrb_state *mrb, mrb_value self) { return self; } static mrb_value mrb_vcl_prob_url(mrb_state *mrb, mrb_value self) { return mrb_str_new_cstr(mrb, "...
C
src/vmod_mruby_prob.c
KeizoBookman/libvmod_mruby
unlicense
1,967
67
codeparrot/github-code
ffe7de5d1528aefb03d66f57d45114ce7eb3d3faee53bbe642ac6463e3304008
from PyQt5 import Qt from bs4 import BeautifulSoup import urllib.parse from urllib.request import build_opener, HTTPCookieProcessor, HTTPError from http import cookiejar import zipfile import defines import os import re import time from _thread import start_new_thread from threading import Lock from subprocess import c...
Python
modules/waitdlg.py
shinnova/lcurse
unlicense
13,439
372
codeparrot/github-code
d369c6efc29cfe4bb1edf1d1e532db5df73dbfaefcd39004f1d62fc2aebdd1b0
package com.hbish.springaop.service; import com.hbish.springaop.aspect.Loggable; import com.hbish.springaop.model.Circle; import com.hbish.springaop.model.Triangle; /** * Created by bshi on 25/03/2015. */ public class ShapeService { private Circle circle; private Triangle triangle; public Triangle getT...
Java
SpringAop/src/main/java/com/hbish/springaop/service/ShapeService.java
hbish/learn-java
unlicense
658
33
codeparrot/github-code
0f2c2164aeb695e1f14f5a775b35e6b019e1423bc2899378f0fd50b427f46dac
// var scrollEvent = { on: function(e) { this.func = () => {e.addItem()}; window.addEventListener('scroll', this.func, false); }, off: function() { window.removeEventListener('scroll', this.func, false); } }; // var zoomEvent = { anime: (e) => { var x = e.pageX; ...
TypeScript
dev/ts/event.ts
Yusai/design-collection
unlicense
1,391
44
codeparrot/github-code
3e5cc585e3e12a1cd358d53c0b55d317e7033c50eedc529de4ac87172c381fcc
/** * Sapelli data collection platform: http://sapelli.org * * Copyright 2012-2014 University College London - ExCiteS group * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * ...
Java
CollectorAndroid/src/uk/ac/ucl/excites/sapelli/collector/fragments/tabs/TransmissionTabFragment.java
dave-cassettari/sapelli
unlicense
5,402
180
codeparrot/github-code
819d5fd8fe7483bbc1dc16c66ac32e81cbc86c3833c5ba90e3a5e98efa616db2
/* fastcluster: Fast hierarchical clustering routines for R and Python Copyright © 2011 Daniel Müllner <http://math.stanford.edu/~muellner> */ //#define __STDC_LIMIT_MACROS //#include <stdint.h> #include <limits> // for infinity() #include <stddef.h> #include <float.h> #ifndef DBL_MANT_DIG #error The constan...
C++
mlpy/fastcluster/fastcluster/src/fastcluster.cpp
manhtuhtk/mlpy
unlicense
39,252
1,378
codeparrot/github-code
0c354c24d04f8856bad630dbf4bf971a8e1030de80b595946d3b2b7a30d9c924
package Object::eBay::ListingDetails; our $VERSION = '0.5.1'; use Class::Std; { use warnings; use strict; use base qw( Object::eBay ); # ListingDetails is a second-class citizen because there's no eBay API # call that returns just a ListingDetails object. sub api_call { q{} }; sub re...
Perl
lib/Object/eBay/ListingDetails.pm
mndrix/Object-eBay
unlicense
4,366
183
codeparrot/github-code
f2b815f357bdc01c4951a39c64a41cf417d5589ecb6fc5d5c242c40c8df89fce
@setlocal @echo off :: Decrypts the file specified. :: See the bottom of the file for usage. :: created by wasatchwizard :: http://tombuntu.com/index.php/2007/12/12/simple-file-encryption-with-openssl/ :: This batch requires [`openssl.exe`](http://www.openssl.org/) to be in your path. :: You can get Window...
Batchfile
decrypt.bat
kodybrown/dos
unlicense
4,399
118
codeparrot/github-code
e662789e27b966756577e6e00ab4b6ac6a3c0430cd79cec05620db7adc03dccd
package com.lukeleber.scandroid.sae.j2012; import android.os.Parcel; import org.junit.Test; import org.junit.runner.RunWith; import static org.junit.Assert.*; import org.robolectric.RobolectricTestRunner; import org.robolectric.annotation.Config; /** * Test cases for com.lukeleber.scandroid.sae.j2012.DiagnosticTro...
Java
src/test/java/com/lukeleber/scandroid/sae/j2012/DiagnosticTroubleCodeTest.java
LukeLeber/Scandroid
unlicense
13,850
449
codeparrot/github-code
86fbc0c551df5da9b507baf7981626d365a503536876d91c101b5215e027c988
// ----------------------------------------------------------------------------- //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 purpose,...
C#
RemarQListProcessor/UtilityWorker.cs
BalsamicSolutions/RemarQ
unlicense
5,740
245
codeparrot/github-code
dd7d2fa57e848aacb23c4dbf82bc44906a2a68af5534cdbe455350990cb5de8b
<?php return [ /* |-------------------------------------------------------------------------- | Application Name |-------------------------------------------------------------------------- | | This value is the name of your application. This value is used when the | framework needs to plac...
PHP
config/app.php
vongola12324/FCU-ASE-Final
unlicense
10,273
245
codeparrot/github-code
13638dffaa0d8de1be3a0bfac7bdb09c6fb655a56e14aaec9d74c1a053091041
// ==UserScript== // @name tc.reddit // @namespace com.tangledcode // @version 0.5 // @description visual aid for the reddit page // @author Daniel Malone // @match https://www.reddit.com/* // @grant GM_addStyle // ==/UserScript== GM_addStyle('.side { width: 200px; }'); GM_addStyle...
JavaScript
tc.reddit.js
tangledcode/tamperscripts
unlicense
2,570
77
codeparrot/github-code
bc18c28369e1a7c3f71fadfec2dee731cb16fe478a490d10ec167422157e5653
require 'csv' require 'ostruct' class CSVList include Enumerable def initialize(csv_data) @list=CSV.parse(csv_data, csv_parse_options).map do |line| wrap_line(line) end end def self.load(filename) self.new(File.read(filename)) end def each @list.each do |line| yield line if block...
Ruby
lib/csv_list.rb
IndigoCZ/csv_list
unlicense
622
32
codeparrot/github-code
606dc5584a80cfbd36ed151383a7e5e617c03cb3443dea33b23e8047123ffde4
import sys import os from PySide.QtCore import * from PySide.QtGui import * __appname__ = "Qifswap" def swap_outflows_and_inflows(qif_filename): qif = open(qif_filename, 'r+') data = qif.read() data = data.replace('\nT','\nTemp') data = data.replace('\nTemp-','\nT') data = data.replace('\nTemp', '...
Python
QifSwap.py
furlow/QifSwap
unlicense
1,496
54
codeparrot/github-code
98807d4a61e7b05efba9f74423cd3e743cc8f84f6bb6400d77b96c96d979e540
package buzuli.jim; import java.awt.BorderLayout; import java.awt.Dimension; import java.awt.event.WindowAdapter; import java.awt.event.WindowEvent; import javax.swing.JFrame; @SuppressWarnings("serial") public class FacebookFormatter extends JFrame { private static final int MIN_WINDOW_WIDTH = 600; private static...
Java
src/buzuli/jim/FacebookFormatter.java
joeledwards/jim
unlicense
1,305
56
codeparrot/github-code
a34afffaf6ea3dd4dea586aae34feb91154dcb3e4a7b4efddd9078f9ab5e9468
MinQueryLoader.define("css-classes", ["MinQuery"], function (MinQuery) { "use strict"; return { /** * Returns {@code true} if any of the elements in this collection has the * specified CSS class. * * @param {string} cssClass The CSS class to check for. * @return {boolean} {@code true} ...
JavaScript
src/modules/css-classes.js
jurca/minquery
unlicense
6,059
150
codeparrot/github-code
943adbd7450b4d576fed9a317cbf6dd753c18afe36e962f23920de7daba0c04e
import sys import collections class PipeGrid(object): def __init__(self): self.laid_pipes = collections.defaultdict(set) @staticmethod def _int_to_xy(i): return (i-1)//5, (i-1)%5 def connect(self, i1, i2): i1 = PipeGrid._int_to_xy(i1) i2 = PipeGrid._int_to_xy(i2) ...
Python
1-moderate/builders-team/main.py
mpillar/codeeval
unlicense
1,846
65
codeparrot/github-code
f2eff3268325ed9fb05038637665b799e25f1b4724b292366fa0ead1f416ebfc
#include "config.h" #include <stdio.h> #include <unistd.h> #include <stdlib.h> #include <string.h> #include <dlfcn.h> #include <sys/types.h> #include <sys/wait.h> #include <sys/stat.h> #include <sys/utsname.h> #ifdef HAVE_SYS_PTRACE_H # include <sys/ptrace.h> #endif #include <limits.h> #include <fcntl.h> #ifdef HAVE_AL...
C
core/enlightenment/src/bin/e_start_main.c
maikodaraine/EnlightenmentUbuntu
unlicense
20,915
699
codeparrot/github-code
b33a323ed7b8c6057f5c11d49e20aa5c22e22c7e8f995a96f4dd3bfcd067aff5
namespace ExchangeRates { partial class ExchangeRateGraph { /// <summary> /// Required designer variable. /// </summary> private System.ComponentModel.IContainer components = null; /// <summary> /// Clean up any resources being used. /// </summary> /// <param name="disposing">true if managed resou...
C#
Intermediate/ExchangeRates (.NET)/ExchangeRateGraph.Designer.cs
ngs-doo/TemplaterExamples
unlicense
1,755
65
codeparrot/github-code
455e9a9f25df8fc13b1417fb6f26c0451572c72cf2fbe7346239e5cf5b53bdcb
#include <iostream> #include <sstream> #include <string> #include "dfs.h" using namespace std; int main() { G::Graph p(13); p.addEdge (0,1); p.addEdge (0,2); p.addEdge (0,6); p.addEdge (0,5); p.addEdge (5,3); p.addEdge (5,4); p.addEdge (3,4); p.addEdge (4,6); p.addEdge (7,8); ...
C++
Graph/Graph/main.cpp
after1990s/leetcodeoj
unlicense
533
33
codeparrot/github-code
47fcdf4ee04b8e1b08b0069445295b651e287649965e03145257c483b2145f73
<?php class RainbowSixSiegeBridge extends BridgeAbstract { const MAINTAINER = 'corenting'; const NAME = 'Rainbow Six Siege News'; const URI = 'https://www.ubisoft.com/en-us/game/rainbow-six/siege/news-updates'; const CACHE_TIMEOUT = 7200; // 2h const DESCRIPTION = 'Latest news about Rainbow Six Siege'; public f...
PHP
bridges/RainbowSixSiegeBridge.php
Frenzie/rss-bridge
unlicense
2,232
70
codeparrot/github-code
36b2a45145677c5d448b8efea3909b7b69d791fd03451e81038f235531267cd7
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows; using System.Windows.Data; namespace MCTS70_511Questions { class NameMultiConverter : IMultiValueConverter { #region IMultiValueConverter Members public object Convert...
C#
WPF/WPFTutorial/MCTS70-511Questions/NameMultiConverter.cs
SiddharthMishraPersonal/InterviewPreperation
unlicense
988
39
codeparrot/github-code
66c6e14410e4a7b5453d1e605dd2cc768da7d872548e743c8cb8a9b3ee358d21
require.config({ urlArgs: "bust=" + (new Date()).getTime() }); requirejs(['js/timing', 'js/globals'], function(timing, glob) { $(document).ready(function() { var canvas = document.getElementById("canv"); var ctx = canvas.getContext("2d"); clearCanvas(); initshapeTab(3); getShapes(); setInterval(function(...
JavaScript
scala/src/main/resources/client/js/main.js
bartekkalinka/shapegenweb
unlicense
3,283
145
codeparrot/github-code
ef461b1781e1731a3608601beaf51a86f888f852c5c97aa6964b96ff1575c324
/** * 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 purpose, commercial or non-commercial, and by any * means. * * In jurisdicti...
Java
db-service/src/main/java/net/as_development/asdk/db_service/impl/PersistentStateHandler.java
andreas-schluens-asdev/asdk
unlicense
3,264
97
codeparrot/github-code
4e8668edacf4e3968dd5f59d81569e0101debdb24ba3eb0b84eb89f64338887b
package com.serverbeer.pelkkatie.donnerwetter; import javax.xml.parsers.DocumentBuilder; import javax.xml.parsers.DocumentBuilderFactory; import javax.xml.xpath.XPath; import javax.xml.xpath.XPathFactory; import org.springframework.boot.*; import org.springframework.boot.autoconfigure.*; import org.springframework.ste...
Java
src/main/java/com/serverbeer/pelkkatie/donnerwetter/DonnerwetterDataFetcher.java
TommiA/Donnerwetter
unlicense
2,906
67
codeparrot/github-code
4fe0e7eaad846ca565a0b0cb86c02e174ec91b3bda2843e50ea111df5f72c042
/* * SmartGWT Mobile * Copyright 2008 and beyond, Isomorphic Software, Inc. * * SmartGWT Mobile is free software; you can redistribute it and/or modify it * under the terms of the GNU Lesser General Public License version 3 * as published by the Free Software Foundation. SmartGWT Mobile is also * available unde...
Java
mobile/src/main/java/com/smartgwt/mobile/client/widgets/events/ResizedEvent.java
will-gilbert/SmartGWT-Mobile
unlicense
2,072
73
codeparrot/github-code
4ea2e1c2b755c81372c8bb0a3b5ba427574b37752ac46ded0ec26e7af1fd1f01
package domain; /** * Created by Assunta on 12/11/2016. */ public class Noleggio { private Film _film; private int _giorniNoleggio; public Noleggio(Film film, int giorniNoleggio) { _film = film; _giorniNoleggio = giorniNoleggio; } public int getGiorniNoleggio() { return ...
Java
example/src/domain/Noleggio.java
hientonauto/Mul_Travis
unlicense
1,142
44
codeparrot/github-code
a8aa95e3210999500525042231660797c39113dabbd23e9f2ac1721d8a4f802c
package com.diguage.books.thinking.concurrency; import java.util.concurrent.ExecutorService; import java.util.concurrent.Executors; /** * 偶数检查类 * <p/> * User: D瓜哥,http://www.diguage.com/ * Date: 13-9-3 * Time: 上午11:22 */ public class EvenChecker implements Runnable { private IntGenerator generator; priv...
Java
src/main/java/com/diguage/books/thinking/concurrency/EvenChecker.java
diguage/ThinkingInJava
unlicense
1,126
45
codeparrot/github-code
650dd931ce5f216faf1a7e30ee5e8e59dd9ea4b14f18ed56ebfe023e128dd6aa
var fs = require('fs-jetpack'); var Twit = require('twit'); var auth = fs.read('api_keys.json', 'json'); var t = new Twit(auth); function chirp () { /* Returns a random chirping noise Originally, this bot only tweeted "Chirp!" repeated a random number of times. This isn't enough variation for a bot; the T...
JavaScript
tweet.js
sequitur/chirpy-bot
unlicense
1,188
51
codeparrot/github-code
6e771cadb42e30fea7e9db22d8494b58bdfa28faf1ea121c8d50441965190d00
<!DOCTYPE html> {% load static from staticfiles %} {% load url from future %} {% load account %} {% load crispy_forms_tags %} {% load site_extras %} <html> <head> <title>{% block head_title %}{% endblock %}</title> {% block head %} <!-- Latest compiled and minified CSS --> <link rel="stylesheet" h...
HTML
BrownstoneTutors/templates/base.html
Yury191/brownstonetutors
unlicense
3,292
104
codeparrot/github-code
850e215589657036251a4835f58cc409186364f90c33c8b446aef5891a807414
//-lIPHlpApi -lWs2_32 //http://forums.codeguru.com/showthread.php?188092.html //Tested on: // Windows XP SP3 (VS2008, MinGW FAILS DUE TO HEADER DECLARATION CHANGES) // Windows 7 (VS2013, MinGW FAILS DUE TO HEADER DECLARATION CHANGES) // Windows 8.1 (VS2013, MinGW FAILS DUE TO HEADER DECLARATION CHANGES) #includ...
C++
src/windows.cpp
mrmoss/thesis
unlicense
13,981
457
codeparrot/github-code
0c8eeed7bfefe03f2e1af4135c91945c5042e90144370585734d7b2feb5bb6a8
'use strict'; /** * @fileOverview The filestore-disk/utils module returns a map of utility functions used throughout the filestore. * @module filestore-disk/utils * @requires {@link external:fs-extra} * @requires {@link external:path} * @requires {@link external:q} */ var fs = require('fs-extra'), path = requ...
JavaScript
lib/filestore/utils.js
zest/filestore.disk
unlicense
1,929
53
codeparrot/github-code
9ed561d93f5d7d38d88c80b875264fb58b7cd8828585addbda0f8d08f688c7fd
<!DOCTYPE html> <html> <head> <meta charset='utf-8' /> <title></title> <meta name='viewport' content='initial-scale=1,maximum-scale=1,user-scalable=no' /> <script src='https://api.tiles.mapbox.com/mapbox-gl-js/v0.26.0/mapbox-gl.js'></script> <link href='https://api.tiles.mapbox.com/mapbox-gl-js/v0.26.0/mapbox-gl.css' r...
HTML
mapboxgl/jp22.html
globalmaps-vt/demo
unlicense
12,858
507
codeparrot/github-code
6a5b92e773afe42574aa8599f250c2f16ba3ef21310fc318a3742817dceff226
/* * NOTE: This copyright does *not* cover user programs that use HQ * program services by normal system calls through the application * program interfaces provided as part of the Hyperic Plug-in Development * Kit or the Hyperic Client Development Kit - this is merely considered * normal use of the program, and do...
Java
hq-web/src/main/java/org/hyperic/hq/ui/action/resource/application/inventory/ListServiceDependenciesAction.java
cc14514/hq6
unlicense
4,870
111
codeparrot/github-code
bacdd06ff233ed407e9ec708d3d938ee2c0bbce27503a9cab1d038e6b39ac065
package be.normegil.librarium.model.data.video; import be.normegil.librarium.WarningTypes; import be.normegil.librarium.model.data.fake.FakeVideo; import be.normegil.librarium.model.data.people.Responsible; import be.normegil.librarium.model.data.people.Role; import be.normegil.librarium.tool.DataFactory; import be.no...
Java
src/test/java/be/normegil/librarium/model/data/video/UTVideoBuilder.java
Normegil/Librarium-Server
unlicense
5,303
199
codeparrot/github-code
299eadb3d3d0b634e1f24ea8c3dfc4f990a975511991b9c3ccb386b56c136607
// ## Loading data via ajax var App = React.createClass({ getInitialState : function() { return { "phones" : [] }; }, componentWillReceiveProps: function () { console.log('componentWillReceiveProps'); // Invoked when a component is receiving new props. This method is not called for the initial render. ...
JavaScript
54_L_react/app_6.js
kl2karpenko/BA_FE_1
unlicense
1,709
75
codeparrot/github-code
7e78f78e664b2324e5138ed621ba79e7275ed5f00f6ff3ecb1db72b6e309c139
// +build daemon package main import ( "crypto/tls" "fmt" "io" "os" "path/filepath" "strings" "time" "github.com/Sirupsen/logrus" "github.com/docker/distribution/uuid" apiserver "github.com/docker/docker/api/server" "github.com/docker/docker/autogen/dockerversion" "github.com/docker/docker/cli" "github....
GO
docker/daemon.go
peterlei/docker
apache-2.0
9,418
332
codeparrot/github-code
700ff59f73d229c40baa699d515ca72b12aaebbdbb8cea189be2bacac35b0ec2
# Copyright 2018 Databricks, Inc. # # pylint: disable=too-few-public-methods # pylint: disable=too-many-instance-attributes # pylint: disable=logging-format-interpolation # pylint: disable=invalid-name import time from tensorflow import keras from sparkdl.horovod import log_to_driver __all__ = ["LogCallback"] clas...
Python
sparkdl/horovod/tensorflow/keras.py
databricks/spark-deep-learning
apache-2.0
903
35
codeparrot/github-code
f923fce039f9723ce12394befd98cc39ab8c52a8638ab01989e3f4a65dc0b079
/** * <copyright> * </copyright> * * $Id$ */ package net.opengis.gml.impl; import net.opengis.gml.AffinePlacementType; import net.opengis.gml.GmlPackage; import net.opengis.gml.RefLocationType; import org.eclipse.emf.common.notify.Notification; import org.eclipse.emf.common.notify.NotificationChain; import org.e...
Java
de.hub.citygml.emf.ecore/src/net/opengis/gml/impl/RefLocationTypeImpl.java
markus1978/citygml4emf
apache-2.0
4,823
179
codeparrot/github-code
92f7d8d2fbbfd97465e46e92cc7db41eb6a19f93941a51dddf7093492ccfbd97
// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using System; using System.Diagnostics; using Microsoft.AspNet.Razor.Parser.SyntaxTree; using Microsoft.AspNet.Razor.Text; namespace M...
C#
src/Microsoft.AspNet.Razor/Parser/ParserBase.cs
ericis/archient
apache-2.0
1,717
52
codeparrot/github-code
3b8732ecb29c7d16663ba7b45ebe144ffdb44f51abbef604a96869796bce6be8
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may ...
Java
components/camel-docker/src/test/java/org/apache/camel/component/docker/headers/InspectImageCmdHeaderTest.java
DariusX/camel
apache-2.0
2,083
66
codeparrot/github-code
04746dd1f1453d0d5cb94b537e4edecf70eb591af7e9f52e7df128be86f2953a
package psidev.psi.mi.jami.xml.io.writer.elements.impl.extended.compact.xml25; import psidev.psi.mi.jami.model.*; import psidev.psi.mi.jami.utils.CvTermUtils; import psidev.psi.mi.jami.xml.cache.PsiXmlObjectCache; import psidev.psi.mi.jami.xml.io.writer.elements.CompactPsiXmlElementWriter; import psidev.psi.mi.jami.xm...
Java
jami-xml/src/main/java/psidev/psi/mi/jami/xml/io/writer/elements/impl/extended/compact/xml25/XmlComplexWriter.java
MICommunity/psi-jami
apache-2.0
2,995
71
codeparrot/github-code
b8f501b961f9814a403f90109ad6bf9c0956f997d1da449ea80045ad240f1aba
// Copyright (C) 2010 The Android Open Source Project // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable ...
Java
gerrit-server/src/main/java/com/google/gerrit/server/git/VisibleRefFilter.java
renchaorevee/gerrit
apache-2.0
6,896
197
codeparrot/github-code
4827fad39b249db32cd8cdcc29af7b75ded64923b82b1d4a10c704ece4a7cd66
#pragma once #include <functional> #include <map> #include <string> #include <vector> #include <cstdint> class node; typedef std::map<node,node> node_map; typedef std::vector<node> node_list; typedef std::function<node(const node&)> node_fn; class node { public: enum node_type { NODE_TYPE_NULL, NODE_TYPE_BOOL,...
C++
src/node.hpp
sweetkristas/roguelike
apache-2.0
2,626
108
codeparrot/github-code
6178d5f7a6b744e2287fbbeb8a66b5d213e5b8a356a6cdf18fbb5c45ab4baa03
/** * BPMN : Start Event Shape * * @class * @extends OG.shape.GeomShape * @requires OG.common.* * @requires OG.geometry.* * * @param {String} label 라벨 [Optional] * @author <a href="mailto:sppark@uengine.org">Seungpil Park</a> * @private */ OG.shape.bpmn.E_Start = function (label) { OG.shape.bpmn.E_Start.sup...
JavaScript
flamingo-opengraph/src/main/webapp/src/shape/bpmn/E_Start.js
EXEM-OSS/flamingo
apache-2.0
1,025
43
codeparrot/github-code
44d91a47676e7489c991a6c69ea74814ba865b47a1941b9d845352abb218e6d9
using Lucene.Net.Randomized.Generators; using Lucene.Net.Search; using Lucene.Net.Spatial.Prefix; using Lucene.Net.Spatial.Prefix.Tree; using Lucene.Net.Spatial.Queries; using Lucene.Net.Spatial.Vector; using NUnit.Framework; using Spatial4n.Core.Context; using Spatial4n.Core.Distance; using Spatial4n.Core.Shapes; usi...
C#
src/Lucene.Net.Tests.Spatial/PortedSolr3Test.cs
laimis/lucenenet
apache-2.0
8,348
202
codeparrot/github-code
bf44da954da24c1ed6992cb515ee65c1fe280fc5bcbc52c456e9b656901efec9
/* * Copyright © 2010 Asidev s.r.l. - www.asidev.com */ String.prototype.trim = function () { return this.replace(/^\s*/, "").replace(/\s*$/, ""); } var xlate = { 0xc0:'A', 0xc1:'A', 0xc2:'A', 0xc3:'A', 0xc4:'A', 0xc5:'A', 0xc6:'Ae', 0xc7:'C', 0xc8:'E', 0xc9:'E', 0xca:'E', 0xcb:'E', 0xcc:'I', 0xcd...
JavaScript
aybu/themes/base/static/js/structure/urlfy.js
asidev/aybu-themes
apache-2.0
1,040
44
codeparrot/github-code
32926786da3c9ef6dafdec8aac47e292f92e6c83939433bdf527603b5198f506
package org.ovirt.engine.ui.userportal.client.protocols; import org.ovirt.engine.core.compat.Event; import org.ovirt.engine.ui.frontend.Frontend; import com.google.gwt.core.client.GWT; public class RdpConnector { private String server; private Boolean fullScreen = true; private String fullScree...
Java
frontend/webadmin/modules/userportal/src/main/java/org/ovirt/engine/ui/userportal/client/protocols/RdpConnector.java
Dhandapani/gluster-ovirt
apache-2.0
9,718
238
codeparrot/github-code
697e82f352ecdf449db9b3fea9ed75df459dad93462f33f29fafce6e2814be73
/* Copyright 2019 The TensorFlow Authors. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or a...
C++
tensorflow/lite/experimental/micro/examples/magic_wand/main_functions.cc
DavidNorman/tensorflow
apache-2.0
6,088
144
codeparrot/github-code
0d06a4bdbc0adc39ad40e8668f6bcdf3a06d9bf05016b669eac78827d59553f0
package sanskrit.citra; import java.util.ArrayList; public class Pada { private ArrayList<String> syllables; private String id; public Pada(String id, ArrayList<String> syllables) { super(); this.id = id; this.syllables = syllables; } public int length() { return syllables.size(); } public String g...
Java
src/sanskrit/citra/Pada.java
imurchie/Sanskrit-Citra
apache-2.0
2,116
95
codeparrot/github-code
c9a4af4f739ec290ab977c71ec915d38a924a26ab4fbb55630ed7a56a38c62a9
/* * This file is part of the Sequoia MSO Solver. * * Copyright 2012 Alexander Langer, Theoretical Computer Science, * RWTH Aachen University * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. *...
C
src/apply_dynstep_assignments.h
sequoia-mso/sequoia-core
apache-2.0
1,856
54
codeparrot/github-code
4f20b340ef191750785f036bbc4ee2864d4d3f60892a5abbdbfd7f2a1d5f7d37
<?php /** * ShopEx licence * * @copyright Copyright (c) 2005-2010 ShopEx Technologies Inc. (http://www.shopex.cn) * @license http://ecos.shopex.cn/ ShopEx License */ class site_application_themewidgets extends site_application_prototype_themefile { var $path = 'widgets'; public function install() ...
PHP
app/site/lib/application/themewidgets.php
liuguogen/Ecstore
apache-2.0
1,221
44
codeparrot/github-code
1e07b2e7f332b8428659cee207c9f2d111246c6f9f3c357e9f289a7eb85f659f
/* * Copyright 2002-2020 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by a...
Java
spring-security-oauth2/src/test/java/org/springframework/security/oauth2/provider/code/RedisAuthorizationCodeServicesTests.java
spring-projects/spring-security-oauth
apache-2.0
4,111
107
codeparrot/github-code
0d49a7c013413fe4408f725df34340ec3a097bdf4e6fb869d0f45abf3ab5aabb
#!/usr/bin/env bash ############################################################################### # Macaroni Build Helper ############################################################################### # # I've got the memory of a peacock so I like to make Bash scripts like this # to help run things. # # To make thi...
Shell
mrun.sh
TimSimpson/Macaroni
apache-2.0
5,260
140
codeparrot/github-code
452ff60cb4854a9522acc816f036971e45bc7e2fed8a62741cd25a0fb3c44a62
package fr.univnantes.termsuite.test.func.api; import static org.junit.Assert.assertEquals; import java.io.File; import java.io.IOException; import org.junit.BeforeClass; import org.junit.Test; import com.google.common.base.Charsets; import com.google.common.io.Files; import fr.univnantes.termsuite.api.ExtractorOp...
Java
src/test/java/fr/univnantes/termsuite/test/func/api/FrenchWindEnergyProjectorSpec.java
termsuite/termsuite-core
apache-2.0
3,179
93
codeparrot/github-code
6ace05d06cc676259bc1bc65d393785664fa17c6125844d902dfc065455ad6e7
#ifndef _SfmOptions_h #define _SfmOptions_h #include <ceres/ceres.h> namespace vision { struct SfmOptions { struct Init { bool init_3d = false; bool gs_init = false; // initialize with global shutter data double observation_noise = 0.0; // in pixels double rotation_noise = 0.0; // in radians ...
C
src/rsba/SfmOptions.h
henrique/rsba
apache-2.0
3,446
103
codeparrot/github-code
366d234218121c92bd4d054f4b8f524ec8d282abc257fee3203cf6587f643a45
<!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=utf-8" /> <title>krb5_auth_con_genaddrs - Generate auth context addr...
HTML
kerberos/kdc/src/krb5-1.16/doc/html/appdev/refs/api/krb5_auth_con_genaddrs.html
gerritjvv/cryptoplayground
apache-2.0
11,028
184
codeparrot/github-code
c0ed9588f99471faba1cb11f26b4a24d950711f704b07c2dea9d62512bcebb3e
/* * Copyright (C) 2016 - present by OpenGamma Inc. and the OpenGamma group of companies * * Please see distribution for license. */ package com.opengamma.strata.product.fxopt; import static com.opengamma.strata.basics.currency.Currency.EUR; import static com.opengamma.strata.basics.currency.Currency.GBP; import s...
Java
modules/product/src/test/java/com/opengamma/strata/product/fxopt/ResolvedFxVanillaOptionTest.java
OpenGamma/Strata
apache-2.0
4,368
113
codeparrot/github-code
67848223f6e73e2041e1c5b696d12d01b97f847cca145a2cd130da2b685f4b32
/* * Copyright (C) 2012 - present by OpenGamma Inc. and the OpenGamma group of companies * * Please see distribution for license. */ package com.opengamma.strata.pricer.impl.option; import java.util.function.Function; import com.google.common.primitives.Doubles; import com.opengamma.strata.collect.ArgChecker; imp...
Java
modules/pricer/src/main/java/com/opengamma/strata/pricer/impl/option/GenericImpliedVolatiltySolver.java
OpenGamma/Strata
apache-2.0
6,369
195
codeparrot/github-code
c7d07c9e92031694a052e4e8d3a4aec662dcfa1fcf6e7eddfdc1b1640a28d8b2
/** * Copyright (c) 2013-2019 Contributors to the Eclipse Foundation * * <p> See the NOTICE file distributed with this work for additional information regarding copyright * ownership. All rights reserved. This program and the accompanying materials are made available * under the terms of the Apache License, Versio...
Java
extensions/cli/geoserver/src/main/java/org/locationtech/geowave/cli/geoserver/GeoServerGetStoreAdapterCommand.java
spohnan/geowave
apache-2.0
1,898
48
codeparrot/github-code
729175faddc0f00de509fe673005abc80e6c12c41a84afc93c17a2b623edb19e
// Copyright 2012-2015 The Rust Project Developers. See the COPYRIGHT // file at the top-level directory of this distribution and at // http://rust-lang.org/COPYRIGHT. // // Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or // http://www.apache.org/licenses/LICENSE-2.0> or the MIT license // <LICENSE-MI...
Rust
src/librustc_llvm/lib.rs
ktossell/rust
apache-2.0
94,625
2,282
codeparrot/github-code
d99870ac6c6b51fd26a155ab2d44912e1369fea8e771958d1417746f097a841d
/* * * Copyright 2015 Andrey Yakovlev * * 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/main/java/jodtemplate/pptx/io/PPTXImageReader.java
ayakovlevgh/jodtemplate
apache-2.0
1,923
52
codeparrot/github-code
9c4d941e0c355ab507bfc2fbc767f18b15bafd21a2f2bf888df5579b6502f596
/* * Copyright 2016 Albert Tregnaghi * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to i...
Java
egradle-draft/src/main-draft/java/ASMClassInspector.java
de-jcup/egradle
apache-2.0
2,430
75
codeparrot/github-code
23ba3ad8e5afbcccd138e3ee790b71469a961f99ad1f137c99e06b8e809467c0
<link rel="import" href="/static/polymer-1.2.0/polymer/polymer.html"> <dom-module id="help-page"> <template> <div id="faqs" class="page-wrapper"> <!-- Mission --> <div class="section blue-section"> <div class="blue-section-inner"> <h2 id="h2">Questions? Comments? Let's talk.</h2>...
HTML
coursebuilder/modules/explorer/_static/components/pages/help-page.html
andela-angene/coursebuilder-core
apache-2.0
22,938
458
codeparrot/github-code
e2fdd21627612f4064c54c3adffa172703df7f5218f1368c204fbea8f3c17026
import {EventEmitter} from 'events'; import {hyphenate, noop} from './utils'; const COMPONENT_DEFAULT_MAX_LISTENERS = 2; /** * Component base class * @extends EventEmitter */ class StatefulComponent extends EventEmitter { /** * @param {String} nameBinding Name for the bootstrapper */ constructor(...
JavaScript
src/StatefulComponent.js
janbiasi/vape
apache-2.0
2,261
85
codeparrot/github-code
c975ad29e37d3c9d4cfb45c4045b08d80df5a62b2c37213b73cf2917a62dbebf
package com.datastax.spark.connector.rdd.reader import java.io.Serializable import com.datastax.oss.driver.api.core.cql.Row import com.datastax.spark.connector.{CassandraRow, CassandraRowMetadata, ColumnRef} import com.datastax.spark.connector.cql.TableDef import com.datastax.spark.connector.mapper.ColumnMapper impor...
Scala
connector/src/main/scala/com/datastax/spark/connector/rdd/reader/RowReaderFactory.scala
datastax/spark-cassandra-connector
apache-2.0
2,543
70
codeparrot/github-code
98b1613ef414aaeb6b5133cbcae6035177d32ff66f4db6359e0fe1a3122c0008
# Copyright (c) 2013 Qubell Inc., http://qubell.com # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agr...
Python
qubell/api/public/application.py
ysarbaev/contrib-python-qubell-client
apache-2.0
5,682
145
codeparrot/github-code
4b2f343242a9f9d864de4c2dc2a7ae38a0ff485e30368ff818acb0475111c096
#ifndef PH_GEOMETRY_OWNER_H #define PH_GEOMETRY_OWNER_H #include "Geometry.h" #include "gamemtllib.h" DEFINE_VECTOR(CODEGeom*,GEOM_STORAGE,GEOM_I) struct SBoneShape; class CKinematics; class CPHGeometryOwner { protected: GEOM_STORAGE m_geoms; //e //bl bool b_builded; dSpaceID m_group; //e...
C
XRay/xr_3da/xrGame/PHGeometryOwner.h
OLR-xray/XRay-NEW
apache-2.0
3,725
76
codeparrot/github-code
774c8c301da65ab1c07b0367a4067bbc130eacaab3f088a7a1f4739dc58cff31
/******************************************************************************* * 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...
Java
src/test/resources/apache-ofbiz-17.12.04/framework/minilang/src/main/java/org/apache/ofbiz/minilang/method/entityops/StoreValue.java
yuri0x7c1/ofbiz-explorer
apache-2.0
3,987
94
codeparrot/github-code
89ef0cb9224e5d47cc4a07e7aecbd951d14c23607486b2589bcc336c2970d780
package models; import play.data.format.Formats; import play.data.validation.Constraints; import play.db.ebean.Model; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.Id; import java.util.Date; import java.util.List; /** * Created by william on 3/21/15. */ @Entity public c...
Java
java-api/app/models/AlertManager.java
william101/projectdit
apache-2.0
4,634
176
codeparrot/github-code
81914585f84cde4f218fe68ea800d5ec9d3571d5a7d77890e8c66eb388f39c02
# -*- coding: utf-8 -*- # Copyright 2022 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or...
Python
google/cloud/gaming_v1beta/services/game_server_clusters_service/pagers.py
googleapis/python-game-servers
apache-2.0
6,239
160
codeparrot/github-code
79fcd9ffbb565ce2eb8242360c1a02098bda4cecbe84b71759c28866094ff3cf
package com.lilei.demo.utils; import java.io.File; import java.io.FileFilter; import java.io.IOException; import java.net.JarURLConnection; import java.net.URL; import java.net.URLDecoder; import java.util.ArrayList; import java.util.Enumeration; import java.util.List; import java.util.jar.JarEntry; import...
Java
MySpringIOC/src/main/java/com/lilei/demo/utils/ClassUtil.java
lilei644/spring-boot-example
apache-2.0
5,370
190
codeparrot/github-code
8a56ca724d9a8771d9db90521b297bb80e80da32d7d001a78bb1685415146f32
/* * ${license} */ package com.druid.connector_druid; import javax.resource.ResourceException; import org.teiid.resource.spi.BasicConnection; import com.druid.translator_druid.DruidConnection; import com.yahoo.sql4d.sql4ddriver.DDataSource; /** * Connection to the resource. You must define druidConnection inter...
Java
druid/connector-druid/src/main/java/com/druid/connector_druid/DruidConnectionImpl.java
lordmat0/teiid-druid
apache-2.0
1,439
59
codeparrot/github-code
4acbb2e486b2036991d738cd6db437864b550279547986d54d289d96633fab4a
// ======================================================================== // Copyright (c) 2009-2009 Mort Bay Consulting Pty. Ltd. // ------------------------------------------------------------------------ // All rights reserved. This program and the accompanying materials // are made available under the terms of th...
Java
jetty-http/src/main/java/org/eclipse/jetty/http/gzip/CompressedResponseWrapper.java
thomasbecker/jetty-spdy
apache-2.0
13,320
411
codeparrot/github-code
b7053bd4cc18f6ed5efdc1fe8c1db09908c2115f02371aa31ff3c61519b424ae
"""This module contains the general information for BiosVfOSBootWatchdogTimer ManagedObject.""" from ...imcmo import ManagedObject from ...imccoremeta import MoPropertyMeta, MoMeta from ...imcmeta import VersionMeta class BiosVfOSBootWatchdogTimerConsts: VP_OSBOOT_WATCHDOG_TIMER_DISABLED = "Disabled" VP_OSBO...
Python
imcsdk/mometa/bios/BiosVfOSBootWatchdogTimer.py
ragupta-git/ImcSdk
apache-2.0
3,929
76
codeparrot/github-code
fb67d76e603005c740bc66449c0690c889dde1351e3fc98cdaa5001244c166c2
''' 笔记 for i in range(10): #3次机会问一次 ''' age=22 c=0 while True: if c<3: cai=input("请输入要猜的年龄:") if cai.isdigit(): #判断是否为整数 print("格式正确") cai1=int(cai) #判断为整数把输入的变量变成int型 if cai1==age and c<3: print("猜对了") break eli...
Python
python基础2周/17猜年龄游戏.py
xiaoyongaa/ALL
apache-2.0
1,243
50
codeparrot/github-code
be955c9598c4cef93983687775a6732f4434bec93d4749d2eddd7c656d48c4ba
// (C) Copyright 2015 Martin Dougiamas // // 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...
TypeScript
src/addon/mod/book/components/index/index.ts
saman222/moodlemobile2
apache-2.0
8,138
209
codeparrot/github-code
3703d89402e35871e6ddba183449f176bb6dabb2aea8b423ce4fd24dfb645d5f
# Encoding: utf-8 # # Authors:: api.dklimkin@gmail.com (Danial Klimkin) # # Copyright:: Copyright 2010, Google Inc. All Rights Reserved. # # License:: 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...
Ruby
lib/adwords_api/api_config.rb
rightsegment/adwords_api
apache-2.0
9,643
287
codeparrot/github-code
c53990bee4a97b6fba7967c1215ae95773760f233c6e0c0af6fbe209f37c030a
package com.khartec.waltz.common; import org.junit.Test; import java.util.ArrayList; import java.util.Comparator; import java.util.List; import static com.khartec.waltz.common.CollectionUtilities.sort; import static org.junit.Assert.assertEquals; public class CollectionUtilities_sort_two_params { @Test(expected...
Java
waltz-common/src/test/java/com/khartec/waltz/common/CollectionUtilities_sort_two_params.java
kamransaleem/waltz
apache-2.0
1,547
54
codeparrot/github-code
93de48c098f85fd4434ba57dbc87ffbbd6733b7025bcac6db5e16bc5f40aa1db
/* * 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
java/jcl/src/java/org/apache/harmony/luni/util/ThreadLocalCache.java
webos21/xi
apache-2.0
3,021
104
codeparrot/github-code
a8cf56f53bc6ed012af5347d933b288898b1aecb4715ad05576915ca89c6e49c
/* * Copyright (C) 2012 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 agr...
Java
swift-codec/src/main/java/com/facebook/swift/codec/metadata/ThriftMethodExtractor.java
adriancole/swift
apache-2.0
2,909
104
codeparrot/github-code
447c0bcd1abda33c54b34377986962725c01d320f9956502217cbdd1bfcf4f95
/* * Copyright 2009-2015, Acciente LLC * * Acciente LLC 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/licenses/LICENSE-2.0 * * Unless ...
Java
src/main/java/com/acciente/oacc/sql/internal/persister/CommonGrantGlobalResourcePermissionPersister.java
fspinnenhirn/oacc-core-ci
apache-2.0
14,112
298
codeparrot/github-code
e39f59812b209f25f2e5f0517c1c09919c74baedc12ef8ea2207d0dd9ad51aaa
<!-- The content of the edit dialog --> <script type="text/x-red" data-template-name="motorangle"> <div class="form-row"> <label for="node-input-portnum"><i class="fa fa-tasks"></i> Port #</label> <input type="text" id="node-input-portnum" placeholder="required, 0~2"> </di...
HTML
nodes/ehf/100-motor-angle.html
Tizen-Sunfish/ehf-node-red
apache-2.0
2,399
59
codeparrot/github-code
359dc8e35e91e74f84ce73a77b2c7d401d18ac69c5f32faf1540917ac6bf920c
package tomcat.linewraplayout; import java.util.concurrent.ExecutorService; import java.util.concurrent.Executors; /** * 线程池管理工具类 */ public class ThreadPoolManager { private ExecutorService service; @SuppressWarnings("unused") private ThreadPoolManager() { int num = Runtime.getRuntime().availableProcessor...
Java
example/src/tomcat/linewraplayout/ThreadPoolManager.java
teisun/Android-LineWrapLayout
apache-2.0
658
33
codeparrot/github-code
6ada5763786f4fc0524859cedc41a5ff8075488c53b0ce2111da14d96e7532cc
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you...
Java
src/contrib/raid/src/test/org/apache/hadoop/raid/TestPlacementMonitor.java
rvadali/fb-raid-refactoring
apache-2.0
14,527
379
codeparrot/github-code
dceea0c27835e86b8fe49746a7a353a145c3e903b0bfd6f33810ff4d9ec1931b
/* * Copyright 2014-2016 Ryan Archer * * 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 agree...
Java
Communications Protocol/src/codes/soloware/couchpotato/client/messages/PressableStateChange.java
rarcher/Escapade-Server
apache-2.0
1,894
64
codeparrot/github-code
707eb2ee656aceaef77972d511a15b67eb4a2963ecbee13dbe82171e1ed41601
<?php use_helper('Javascript') ?> <h2> <?php if ($form->isNew()) : ?> <?php echo __('Create new entry') ?> <?php else : ?> <?php echo __('Edit entry') ?> <?php endif; ?> </h2> <?php if ($form->isNew()) : ?> <div style="margin-bottom: 1em;"> <select id="original_preset"> <option name="presetting"<?php if ($isPreset)...
PHP
apps/pc_backend/modules/profile/templates/editSuccess.php
hirocaster/jenkins
apache-2.0
7,199
204
codeparrot/github-code
bd50ceb40204377907493fa7c381daed70dae1fbbb2f0396608d9662d45f8c99
/** * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may...
Java
src/main/java/com/github/lburgazzoli/camel/AggregateIncident.java
lburgazzoli/camel-karaf-servicenow
apache-2.0
1,504
38
codeparrot/github-code
b0c886497a07bea36924a315bfb45149bda17b0e8d5770139a2af91a9a6534b3
/* * Copyright (c) 2008-2017 Haulmont. * * 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
modules/gui/src/com/haulmont/cuba/gui/model/CollectionContainer.java
dimone-kun/cuba
apache-2.0
4,237
140
codeparrot/github-code
736e305ac7628cd0f3f5c96d128c688bd4cb075dd051d764dd490fb4e3348d3c
/* Copyright 2014 Google Inc. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in ...
GO
pkg/kubecfg/kubecfg.go
sc68cal/kubernetes
apache-2.0
9,161
326
codeparrot/github-code
c249a1454a75d42c3880b8489ba12de10987bfde99adac2ed00f14a779c6bf95
/* * Licensed under the Apache License, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0) * See https://github.com/openiddict/openiddict-core for more information concerning * the license and the contributors participating to this project. */ using System; using System.ComponentModel; using System.IO; usin...
C#
src/OpenIddict.Validation/OpenIddictValidationBuilder.cs
openiddict/core
apache-2.0
24,784
539
codeparrot/github-code
36aafe73cf2f3c2c7236d5f2efbcbb37a8ed17ee6c079c1a59df75ed219c7981
import * as React from "react" import getLogger from "common/log/Logger" import { Ellipsis, FillWidth, FlexAuto, FlexRowCenter, FlexScale, IThemedProperties, makeDimensionConstraints, makeLinearGradient, makeMarginRem, makePaddingRem, PositionRelative, rem, StyleDeclaration } from "renderer/styles/ThemedSty...
TypeScript
src/renderer/components/elements/ToolPanelHeader.tsx
densebrain/epictask
apache-2.0
2,708
95
codeparrot/github-code
c172dfaa288ebae0114ddd1459b4a01535dba26e30c85d5a90d9a731810db38c
package com.gentics.mesh.cli; import static com.gentics.mesh.MeshEnv.MESH_CONF_FILENAME; import static org.apache.commons.lang3.StringUtils.isEmpty; import java.io.File; import java.io.IOException; import java.net.InetAddress; import java.net.UnknownHostException; import java.time.LocalDate; import java.time.Month; i...
Java
core/src/main/java/com/gentics/mesh/cli/MeshImpl.java
gentics/mesh
apache-2.0
14,490
505
codeparrot/github-code
6c4f1a328bf64b904a6aa7a3281a06b704dc567bb75a0cfbeb1e9ca2a88a7fbe
--!A cross-platform build utility based on Lua -- -- 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 Apach...
Lua
xmake/rules/wdk/sign/sign.lua
tboox/xmake
apache-2.0
3,150
107
codeparrot/github-code
2fa3727eedc4749e850d41b5098b7b09239b9ca6b74593d0bda6dc8ccc8de2af
/** * Copyright 2014 Zaradai * * 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 wr...
Java
java/integration/src/test/java/com/zaradai/distributor/PingPongEvent.java
zaradai/obsidian
apache-2.0
999
38
codeparrot/github-code
185f790bc533fe64fd0d59b17e0479f19f2769bbe473014219720c15c73e24b8
/** * @ngdoc controller * @name Angular.controller:todo * * @description * Controller todo * * **Note:** documentation needs to be updated as logic is added * */ angular.module('Angular').controller('todoCtrl', ['$scope', 'localStorageService', function ($scope, localStorageService) { var savedTodos = ...
JavaScript
src/app/todo/todoCtrl.controller.js
MartinKilonzo/Sandbox
apache-2.0
1,006
32
codeparrot/github-code
75bdba63fff65e990ad31999b7f83b1babedb005b18714bfe3f80b13aec5b5d9
package v1 import ( "fmt" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" kruntime "k8s.io/apimachinery/pkg/runtime" kapi "k8s.io/kubernetes/pkg/api/v1" ) // Authorization is calculated against // 1. all deny RoleBinding PolicyRules in the master namespace - short circuit on match // 2. all allow RoleBinding Polic...
GO
pkg/authorization/api/v1/types.go
stevekuznetsov/origin
apache-2.0
29,059
585
codeparrot/github-code