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
94a23292b3641fb69438a7cdda5efeb10cb58c9b3afabbf42cd9b2f414e385af
<div id="adv_{$pos.id}" class="adv-wrap" style="padding: {$pos.padding};margin:{$pos.margin};"> <div class="text-left " style="width:{$pos.width};height:{$pos.height};"> <if condition="count($list) gt 0"> <switch name="pos.style"> <case value="2"> <script src=...
HTML
Application/Common/View/default/Widget/adv_slider.html
ljh50/thinkphp-agile-dev
apache-2.0
5,956
122
codeparrot/github-code
7bb5ae5a60b2669776d2fc4c5b59fe436bf6a0ed0369995c8128e3235bcab6b0
/* * Copyright 2021 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 * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to ...
TypeScript
src/app/routes/project/components/properties/components/border-group/border.utils.ts
google/web-prototyping-tool
apache-2.0
1,192
38
codeparrot/github-code
aef656ba970ed9101c67495220bdf4d83692eb571268f20272ee35fc4b135934
using System; using System.Collections.Generic; using System.Text; using Content.API; namespace Rainbow.Framework.Content.Items { public class ModuleItem : RainbowItem { private ContentItemCollection _contentItems; private long _moduleID = 0; /// <summary> /// Initializes a new...
C#
Projects/ContentAPI/Rainbow.Framework/Items/ModuleItem.cs
Dashboard-X/RainbowPortal.2.0.r415.Repository
apache-2.0
1,227
51
codeparrot/github-code
d9b50ff4ff93f048311202e81b1f6fc234324f787e9973e42354e059ce80c1f6
#!/usr/bin/php <?php /* * fetch_page.php * * Repeatedly pull a URL from the URL queue, fetch the page, * store the page in S3, and post a message to the Parse queue. * * Copyright 2009-2010 Amazon.com, Inc. or its affiliates. All Rights * Reserved. * * Licensed under the Apache License, Version 2.0 (the "Licen...
PHP
code/chapter_06/fetch_page.php
jsh/BarrBookCode
apache-2.0
3,034
115
codeparrot/github-code
c21097e04914893eea4cd1f7ad714f635da870c9a934da1c378f2fc72317e3c4
/* * Copyright 2000-2017 JetBrains s.r.o. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agre...
Java
awacs-component/awacs-fernflower-component/src/main/java/io/awacs/component/org/jetbrains/java/decompiler/modules/decompiler/exps/NewExprent.java
ArcherFeel/AWACS
apache-2.0
18,853
526
codeparrot/github-code
c0ff5c12defa313c6d2d1e21903991a43deb691f4378ca00c1664ad78d173cb9
/* * Licensed to Laurent Broudoux (the "Author") under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. Author licenses this * file to you under the Apache License, Version 2.0 (the * "License"); you may not...
Java
server/src/main/java/com/github/lbroudoux/elasticsearch/sluice/util/SluiceConfig.java
lbroudoux/sluice
apache-2.0
3,325
95
codeparrot/github-code
536f92db0c9602b18dd3db7846d800b3d7ac5105ac748c478cb738a422df428c
/* * Copyright 2017-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "licen...
Java
aws-java-sdk-dms/src/main/java/com/amazonaws/services/databasemigrationservice/model/transform/DescribeEventSubscriptionsResultJsonUnmarshaller.java
aws/aws-sdk-java
apache-2.0
3,383
82
codeparrot/github-code
b5c1e4b236d85e5b2f074f3847694e9c76c748e6b0d6a50cdf2e39ff922a4284
package file.server.service; import java.awt.Color; import java.awt.Font; import java.awt.image.BufferedImage; import java.io.File; import java.io.FileNotFoundException; import java.io.IOException; import java.io.InputStream; import java.util.List; import javax.imageio.ImageIO; import javax.ws.rs.WebApplicationExcept...
Java
src/main/java/file/server/service/FileService.java
josecoelho/yep-rest-file-server
apache-2.0
5,113
190
codeparrot/github-code
e504a06fa94fab02eaca2f46b46b667676afd68245a638f3ee392c8754dbf8c9
package com.zyw.horrarndoo.yizhi.adapter; import android.graphics.Color; import android.support.annotation.LayoutRes; import android.support.annotation.Nullable; import android.widget.ImageView; import com.bumptech.glide.Glide; import com.chad.library.adapter.base.BaseViewHolder; import com.zyw.horrarndoo.sdk.config....
Java
app/src/main/java/com/zyw/horrarndoo/yizhi/adapter/ZhihuAdapter.java
Horrarndoo/YiZhi
apache-2.0
1,823
55
codeparrot/github-code
d6b9c82ae8fabbe16568be8b20b73e772c1741f58f003a49fdbbf1370d0ff35b
// Copyright (c) 2015 Tzvetan Mikov. // Licensed under the Apache License v2.0. See LICENSE in the project // root for complete license information. __asmh__({},'#include "uv.h"'); __asmh__({},"#include <errno.h>"); exports.sealPrototype = function sealPrototype (obj, value) { Object.defineProperty(obj, "prototyp...
JavaScript
runtime/js/modules/_jsc.js
tmikov/jscomp
apache-2.0
2,316
97
codeparrot/github-code
7f8252c4c8af3ce64ef5d54601e6254cc2439e51c05230185d4a15ef47f92040
package com.jcodes.mongodb; import java.util.List; import org.springframework.data.mongodb.core.mapping.Document; @Document(collection = "user") public class User { private String id; private String name; private int age; private List<String> interest; private String wife; private Home home; public String g...
Java
jCodes-mongodb/src/main/java/com/jcodes/mongodb/User.java
dreajay/jCodes
apache-2.0
949
64
codeparrot/github-code
10495018df57341419932ca0f1a84ad38d52d4bdbc74cefb8e4063d016132907
// Copyright 2019 The Prometheus Authors // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to...
GO
collector/uname.go
prometheus/node_exporter
apache-2.0
1,831
77
codeparrot/github-code
5822d444f90fb7fa27b3b56cc211fc58a54a51b1d9173f4ade57001fb607b6be
// Copyright 2005-2010 Gallio Project - http://www.gallio.org/ // Portions Copyright 2000-2004 Jonathan de Halleux // // 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.a...
C#
src/Gallio/Gallio/Framework/Data/ItemSequenceDataSet.cs
citizenmatt/gallio
apache-2.0
2,753
76
codeparrot/github-code
1f64762d53fcb78060d68830f152feedadee12b93bad35922fc84f04d3b20ab3
/** * @brief contains implemenatation for class CDomainDiscoveryManager * @file CDomainDiscoveryManager.cpp * @author nwiles * @copyright Copyright (c) 2015 Airware. All rights reserved. * @date 2015-7-16 */ #include "acs/CDomainDiscoveryManager.hpp" namespace airware { namespace acs { const uint8_t CDomain...
C++
examples/acs/CDomainDiscoveryManager.cpp
stopthatcow/AutobahnCpp
apache-2.0
7,000
164
codeparrot/github-code
27fa817751511aebeb25192c971e7e94cd6bf128d54d09b97e3936004af23fa3
{% extends "base.html" %} {% comment %} Copyright 2010 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 a...
HTML
app/templates/flag_note.html
pet-finder/pet-finder
apache-2.0
2,467
67
codeparrot/github-code
630c63be51e19c9b8549db1b616adecd8e1d94ba1eb4dda0f925fed9fa21e4a2
<?php use yii\helpers\Html; use kartik\grid\GridView; use admin\models\UserAccount; use yii\jui\AutoComplete; /** * @var yii\web\View $this * @var yii\data\ActiveDataProvider $dataProvider * @var admin\models\UserAccountSearch $searchModel */ $this->title = '账户管理'; $this->params['breadcrumbs'][] = $this->title; ?...
PHP
admin/views/user-account/index.php
shenzhongwei/wine
apache-2.0
7,359
204
codeparrot/github-code
7d03b418ff04c6ce2f761dd4c4e24b56190eb026f43f34947cbb834229bde3b1
/************************************************************************* * Compilation: javac ResizingArrayStack.java * Execution: java ResizingArrayStack < input.txt * Data files: http://algs4.cs.princeton.edu/13stacks/tobe.txt * * Stack implementation with a resizing array. * * % more tobe.txt ...
Java
algs4/ResizingArrayStack.java
sinlaputa/algorithms
apache-2.0
4,871
156
codeparrot/github-code
2c6de968e2fb9e00b5bef3ae0888c4679cd3049882512e6f9e365e788b100886
package client; import java.awt.Dimension; import java.util.ArrayList; import javax.swing.JPanel; import hahmonakymakokeilu.HahmoNakyma; import nakymat.Hahmojenvalinta; import nakymat.OsoiteNakyma; import nakymat.YleisNakyma; import server.PalvelinRajapinta; public class Data { // public static final int IP = 0;...
Java
src/client/Data.java
Qurred/RMI-Turn-Based-Game
apache-2.0
1,515
60
codeparrot/github-code
66876a1b623b32f8ec517a4c084e8c1d8bbb6cb91d79faf41a4f5e972d6eaaf2
/* Copyright 2017 James Craig 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, so...
C#
src/Inflatable/Sessions/Commands/DeleteCommand.cs
JaCraig/Inflatable
apache-2.0
11,890
269
codeparrot/github-code
211e4e9ee646be795670b4a9743180497a453cbf4b32c8086fddf417b6145f69
<?php use yii\helpers\Inflector; use yii\helpers\StringHelper; /* @var $this yii\web\View */ /* @var $generator richkay\geesgii\generators\crud\Generator */ echo "<?php\n"; ?> use yii\helpers\Html; use yii\widgets\ActiveForm; /* @var $this yii\web\View */ /* @var $model <?= ltrim($generator->searchM...
PHP
generators/crud/default/views/_search.php
richkay/yii2-geesgii
apache-2.0
1,267
45
codeparrot/github-code
b73ebc3b7dcf3fb03c1b95197a44893814d60e685cad0e9b3e4ab94c64b3665e
# # Copyright (C) 2010-2016 dtk contributors # # This file is part of the dtk 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 # # Unles...
Ruby
lib/client/git_repo.rb
dtk/dtk-client
apache-2.0
4,683
192
codeparrot/github-code
f98599819320831bde8aafe0f4ab45f3c01b2261898c251eead2ab0c63509cc0
/******************************************************************************* * 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/main/suonos/imagems/Imagems.java
am0e/suonos
apache-2.0
3,998
114
codeparrot/github-code
d797773b7a4efecdfe7d570d99e8969498e7e4aef98c96cbd142e88399201929
/* * Copyright 2015 LinkedIn Corp. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy of * the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to i...
Java
azkaban-common/src/test/java/azkaban/server/HttpRequestUtilsTest.java
azkaban/azkaban
apache-2.0
11,420
256
codeparrot/github-code
d5d81f0cc122edc7597ae92bacc2b1eb6389f210762605e26dfb16cf09fbc4bf
/** * Copyright 2013 Technische Universitat Wien (TUW), Distributed Systems Group * E184 * * This work was partially supported by the European Commission in terms of the * CELAR FP7 project (FP7-ICT-2011-8 \#317790) * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file ...
Java
MELA-Core/MELA-DataService/src/main/java/at/ac/tuwien/dsg/mela/dataservice/dataSource/impl/queuebased/helpers/dataobjects/NumericalCollectedMetricValue.java
tuwiendsg/MELA
apache-2.0
6,333
202
codeparrot/github-code
7430efaafadb567ddda4e443a0cea8391203c59ff67645fdff02c16b861021a7
package ch.fourtrees.ipsc.gateway.web.main; import li.strolch.agent.api.StrolchAgent; import li.strolch.agent.api.StrolchBootstrapper; import li.strolch.utils.helper.StringHelper; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import javax.servlet.ServletContextEvent; import javax.servlet.ServletContextLis...
Java
src/main/java/ch/fourtrees/ipsc/gateway/web/main/StartupListener.java
eitch/ch.eitchnet.pi4j.playground
apache-2.0
1,646
52
codeparrot/github-code
adbaa21a91ca4e6a7b4ad05d0f324d0f5b047efa5c4109ab94972fdcadc75794
package com.cqrs.appengine.sample.handlers.events; import java.util.List; import com.cqrs.appengine.core.exceptions.AggregateNotFoundException; import com.cqrs.appengine.core.exceptions.EventCollisionException; import com.cqrs.appengine.core.exceptions.HydrationException; import com.cqrs.appengine.core.messaging.Even...
Java
src/main/java/com/cqrs/appengine/sample/handlers/events/AttendeeRegisteredEventHandler.java
dannormington/appengine-cqrs
apache-2.0
3,947
100
codeparrot/github-code
c3d2521b6b5854e6944561755d081fd89aac6cbc2fd56db0da592cd33f19712c
/* * Copyright 2002-2022 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-context/src/main/java/org/springframework/scheduling/concurrent/ConcurrentTaskExecutor.java
spring-projects/spring-framework
apache-2.0
9,381
253
codeparrot/github-code
f654637000327179d355b471f0dac90eb93d4b2e9ad35f5296a78ec7654f735e
"use strict"; /** * Requirements */ const create = require(SOURCE_ROOT + '/utils/map.js').create; /** * Spec */ describe('utils/map', function() { describe('#create', function() { it('should allow direct property access to map contents', function() { const testee = create(); ...
JavaScript
test/utils/MapSpec.js
entoj/entoj-core
apache-2.0
1,147
46
codeparrot/github-code
6734ec53bd6408190242a7858d7fd1bad5a7f283ba5ff990dab5fa746c63edb3
<html> <head> <title>ThreatConnect Javascript SDK - Indicator Retrieve Attributes Example</title> <!-- JQuery --> <script type="text/javascript" src="https://code.jquery.com/jquery-2.1.4.min.js"></script> <!-- HMAC --> <script src="./../libs/core.js" type="text/javascript"></script> <script s...
HTML
examples/indicator_retrieve_attributes.html
ThreatConnect-Inc/threatconnect-javascript
apache-2.0
1,782
58
codeparrot/github-code
58be9af09e1164c17acfe3cf134c67d438f49eed62732408aa985def260bb67a
/* * Copyright 2016 MICRORISC s.r.o. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agre...
Java
simply-modules/simply-iqrf-dpa30x/simply-iqrf-dpa-v30x/src/test/java/com/microrisc/simply/iqrf/dpa/v30x/services/write_configuration/TestingOs.java
iqrfsdk/jsimply
apache-2.0
9,378
305
codeparrot/github-code
fdd24904d171385c4fb6d58f2b150015f753d55a1703721f70541b5b3bac8a33
/* * 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
oak-core/src/main/java/org/apache/jackrabbit/oak/spi/security/authentication/AbstractLoginModule.java
denismo/jackrabbit-dynamodb-store
apache-2.0
20,476
505
codeparrot/github-code
4896dee3f4a15bd35e466d644deb818669ea695bbd01340fbcb56e4d36563f7d
package com.medical.medicate; import android.app.DatePickerDialog; import android.app.ProgressDialog; import android.os.Bundle; import android.support.annotation.Nullable; import android.support.v4.app.Fragment; import android.util.Log; import android.view.LayoutInflater; import android.view.View; import android.view...
Java
app/src/main/java/com/medical/medicate/book_appointment.java
Nitin135/Medicate
apache-2.0
11,362
336
codeparrot/github-code
57422e5598ba022e1fb1f68aa2801522db5d0121eba3934a52a523859fc5180c
'use strict'; var watson = require( 'watson-developer-cloud' ); // watson sdk var localConfig = require('../config'); // var localConfig_workspace_id = localConfig.conversation.workspace_id; var localConfig_access_key = localConfig.access_key; var CONVERSATION_SERVICE = 'conversation'; var CONVERSATION_ACCESS_ERROR...
JavaScript
control/messagecontrol.js
liugreatsea/TempThothBackend-1482485476243
apache-2.0
6,343
172
codeparrot/github-code
6400275843db96bd9ca3215aed8f2fd5ac77b0fed3bab96b2eb0b581d1ab6200
/* * Copyright (C) 2007 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 app...
Java
atlas-gradle-plugin/dexpatch/src/main/java/com/taobao/android/dx/rop/cst/CstFloat.java
alibaba/atlas
apache-2.0
2,616
92
codeparrot/github-code
f6ff82904aa856fa749a11919f9bb73654644450b675f91bda1d9638daa47bbd
package org.sagebionetworks.repo.model.dbo.dao; import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertFalse; import static org.junit.jupiter.api.Assertions.assertNotNull; import static org.junit.jupiter.api.Assertions.assertThrows; import static org.junit.jup...
Java
lib/jdomodels/src/test/java/org/sagebionetworks/repo/model/dbo/dao/DBOAccessRequirementDAOImplTest.java
xschildw/Synapse-Repository-Services
apache-2.0
17,988
419
codeparrot/github-code
f36a7271d3d097b4939c10fa68601fd3afc4a52f27dd51b4fc8b259e7bb1f3ae
require 'remote_server' # This Repository class should only concern itself with persisting and acting on # Repository records in the database. All non-database operations should go # through the RemoteServer classes. class Repository < ActiveRecord::Base has_many :branches, :dependent => :destroy has_many :converg...
Ruby
app/models/repository.rb
moshez/kochiku
apache-2.0
3,832
110
codeparrot/github-code
1b2ff504367884936129cb19f7c6d7b387952a52149d2318cfb401d30d5f052d
/** * PHPWind PAGE JS * @Copyright Copyright 2011, phpwind.com * @Descript: 前台-发消息弹窗 * @Author : linhao87@gmail.com * @Depend : wind.js、jquery.js(1.7 or later), global.js, ajaxForm, draggable * $Id$ */ ; (function(){ var lock = false; //点击发私信 $(document).on('click', 'a.J_send_msg_pop', function(e){ e.pre...
JavaScript
phpwind9/res/js/dev/pages/common/sendMsgPop.js
beautifultable/phpwind
apache-2.0
6,704
251
codeparrot/github-code
77d41a763de296d0b3004a4bd629555b6e13be6b8ea8cc01087849ef40113307
package ca.stevenskelton.sparkoverflow import java.io.File import scala.io.{ BufferedSource, Source } abstract class StackTable[T] { val file: File def getDate(n: scala.xml.NodeSeq): Long = n.text match { case "" => 0 case s => dateFormat.parse(s).getTime } def dateFormat = { import java.text.S...
Scala
src/main/scala/ca/stevenskelton/sparkoverflow/StackTable.scala
stevenrskelton/SparkOverflow
apache-2.0
884
35
codeparrot/github-code
f1ac005a612107aece4d856d8e56e22899608220c213a8cb5945c0bf5c579e7d
/* * Copyright (C) 2017 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 applic...
Java
app/src/main/java/com/itachi1706/droideggs/OreoEgg/EasterEgg/octo/OctopusDrawable.java
itachi1706/DroidEggs
apache-2.0
15,376
452
codeparrot/github-code
92711a4d0e77a2d97e8a5f67192c77541101a6bb36d017c2ffbc481a079e86e2
package com.andreitoledo.financeiro.compras.dao; import java.io.Serializable; import java.util.List; import javax.inject.Inject; import javax.persistence.EntityManager; import javax.persistence.PersistenceException; import com.andreitoledo.financeiro.compras.model.cadastros.produto.UnidadeMedida; import com.andreito...
Java
src/main/java/com/andreitoledo/financeiro/compras/dao/UnidadeMedidaDAO.java
andreitoledo/alt-financeiro-compras-web
apache-2.0
1,299
50
codeparrot/github-code
7361b8c727f30ff720c0794437e2b4cab905b3292db6fb65d53cc344016e5459
#if !SILVERLIGHT using System.Transactions; namespace Zirpl.AppEngine.Service { public abstract class TransactionalUnitOfWorkFactoryBase : UnitOfWorkFactoryBase, ITransactionalUnitOfWorkFactory { public abstract IUnitOfWork Create(TransactionScopeOption transactionScopeOption); /// <summary> ...
C#
Zirpl.AppEngine/Service/TransactionalUnitOfWorkFactoryBase.cs
zirplsoftware/ZAppEngine
apache-2.0
991
35
codeparrot/github-code
b0b84287aca280f978b0d018b7a3f5c0a512355e2003f88743743f83294a3b04
package blazing.tears.actor; import blazing.tears.action.BaseAction; import blazing.tears.role.BaseRole; public abstract class BaseActor { private String mId; private BaseRole mRole; private BaseAction mAction; public BaseActor(String id) { mId = id; } public String getId() { ...
Java
engine/src/main/java/blazing/tears/actor/BaseActor.java
IlCallo/AbstractGameLogic
apache-2.0
899
48
codeparrot/github-code
840b08f97152653bf0a738165fbca24dfc8d306ad6087275037441d3c8a49db2
import os import logging import MySQLdb import time import sys import Queue import threading import json createUserSQL = "INSERT IGNORE INTO users (name) VALUES (%s);" getUserByUsernameSQL = "SELECT * FROM users WHERE name=%s;" getAuthorByNameSQL = "SELECT * FROM authors WHERE name=%s;" createAuthorSQL = "INSERT...
Python
benchmarking/book_store/bench.py
mellanox-senior-design/docker-volume-rdma
apache-2.0
5,515
166
codeparrot/github-code
7991d26a629bc0348267c68268768a0e3d212165ed1e6eea2b25627f0014f945
from typing import List from dbt.clients.jinja import MacroStack from dbt.contracts.connection import AdapterRequiredConfig from dbt.contracts.graph.manifest import Manifest from dbt.context.macro_resolver import TestMacroNamespace from .configured import ConfiguredContext from .macros import MacroNamespaceBuilder ...
Python
core/dbt/context/manifest.py
analyst-collective/dbt
apache-2.0
2,929
84
codeparrot/github-code
a71b3b532f9fc1c28b01c112c294daa51f4ae8fbc791714a694087587fb3fc3c
/* * Copyright 2008 JRimum 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 law or agreed to in ...
Java
src/main/java/org/jrimum/texgit/RecordFactory.java
braully/bopepo
apache-2.0
3,418
100
codeparrot/github-code
36d241c28c7ab21378fa647fb7292ecbdf8deab73f46d5ce3237a9f5dc61388a
package com.example.android.sunshine.app; import android.content.Intent; import android.content.SharedPreferences; import android.net.Uri; import android.os.AsyncTask; import android.os.Bundle; import android.preference.PreferenceManager; import android.support.v4.app.Fragment; import android.text.format.Time; import ...
Java
app/src/main/java/com/example/android/sunshine/app/ForecastFragment.java
shmakova/sunshine-app
apache-2.0
13,205
323
codeparrot/github-code
36d437cc66427620dd5aaf13c4ed29e30ebbcb210477e504e74e753c48d326f9
/* * Copyright (C) 2017-2019 Dremio 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 l...
Java
services/datastore/src/main/java/com/dremio/datastore/adapter/LegacyKVStoreProviderAdapter.java
dremio/dremio-oss
apache-2.0
7,637
198
codeparrot/github-code
a837df62dd4c0b766b7e65ad0bf9e4086743ce34643d9ab19fd9c02dfd6e83a1
/* * Copyright 2013 Adrien Favre-Bully, Florian Froese, Adrian Schmidmeister * 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...
Java
src/main/java/ch/ethz/student/dejavu/tokenizer/SeparatorTokenizer.java
adrienfb/dejavu-stringmetrics
apache-2.0
1,315
49
codeparrot/github-code
d48e7ce103d744467351aad638d4ce35cc9aea83fca222b1a9c8bf4412e74ff8
/** * */ package com.fernsroth.squashfs; import java.io.File; import java.io.IOException; import java.text.ParseException; import java.util.Date; import java.util.Stack; import org.xml.sax.Attributes; import org.xml.sax.InputSource; import org.xml.sax.SAXException; import org.xml.sax.helpers.DefaultHandler; impor...
Java
src/main/java/com/fernsroth/squashfs/ManifestSAXHandler.java
asn007/nSquashFS
apache-2.0
6,001
187
codeparrot/github-code
11ba9bd1b4e83676260cb6bcd81ef218ce2f302e5793b9e40167824e9d71473a
# -*- coding: utf-8 -*- # # 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 #...
Python
airflow/task/task_runner/base_task_runner.py
owlabs/incubator-airflow
apache-2.0
6,779
181
codeparrot/github-code
164f9f62fce9b5669b28bba486e95e988b24cbca46faf7140e4b9aa86af72c6a
/* * Copyright 2010-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" fil...
C++
aws-cpp-sdk-globalaccelerator/source/model/ProvisionByoipCidrRequest.cpp
cedral/aws-sdk-cpp
apache-2.0
1,583
61
codeparrot/github-code
b69bb2cc695b9ad0cad9781fd9b8260562553d9a4e2d6054ff1e84fd4780ebd6
/* * Copyright 2017-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "licen...
Java
aws-java-sdk-kinesisvideo/src/main/java/com/amazonaws/services/kinesisvideo/model/transform/DASHFragmentSelectorJsonUnmarshaller.java
aws/aws-sdk-java
apache-2.0
3,096
79
codeparrot/github-code
562af88fbd560abae1066b00742de65bfd1c26f2d10ea51173e31ae2d87f2f4d
package org.imirsel.nema.flowservice; import static org.junit.Assert.assertTrue; import static org.junit.Assert.fail; import java.net.URI; import java.sql.SQLException; import java.util.HashMap; import java.util.Iterator; import java.util.List; import java.util.Map; import java.util.Set; import java.util.Map.Entry; ...
Java
src/test/java/org/imirsel/nema/flowservice/MeandreFlowStoreTest.java
kumaramit01/FlowService
apache-2.0
10,409
278
codeparrot/github-code
9b1b42f7803892a22d9f1e4c27946fdcbdf77625036f447a5062e5d1c4f20ac3
package com.jediq.skinnyfe.resource; import com.codahale.metrics.MetricRegistry; import com.jediq.skinnyfe.WrappedException; import com.jediq.skinnyfe.config.Config; import com.jediq.skinnyfe.config.Resource; import java.util.concurrent.ExecutionException; import org.eclipse.jetty.client.HttpClient; import org.eclipse...
Java
src/main/java/com/jediq/skinnyfe/resource/ResourceInteractor.java
jediq/skinnyFE
apache-2.0
1,601
55
codeparrot/github-code
39d20aeaa291db6858b0e04186690f028a0aacb749da3f42907c8859054f3f81
package com.infobip.push.java; import java.io.BufferedReader; import java.io.DataOutputStream; import java.io.IOException; import java.io.InputStreamReader; import java.net.HttpURLConnection; import java.net.MalformedURLException; import java.net.URL; import java.util.List; import java.util.logging.Level; import java....
Java
push-admin-java/src/com/infobip/push/java/Request.java
luksha/push-admin-java-library
apache-2.0
3,476
129
codeparrot/github-code
3c9399a7c22eeaa12f1a6e273b1f2db97cd056037508571c61d108e94a249951
/** * 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...
C++
src/contrib/hedwig/client/src/main/cpp/test/pubsubtest.cpp
cloudera/zookeeper
apache-2.0
11,100
374
codeparrot/github-code
706185e97f726be7f85299a6ae972fe7344247626344fcb8d509b4d03e8da771
#region Using using System; using System.IO; using System.Net; using System.Windows.Controls; using Common.Models; using Common.Types; using Common.Types.Attributes; using Newtonsoft.Json; using RapBattleAudio.interfaces; #endregion namespace RapBattleAudio.classes { public class RapUploadClient: ISilverlightCl...
C#
SilverlightClient/classes/RapUploadClient.cs
asebak/rapbattleonline
apache-2.0
4,230
119
codeparrot/github-code
2a8ac84518df8329d326a1b2bad7d9ec020bc6ec0be7ee86089a272ea65da802
#include "../ctu-hdr.h" int callback_to_main(int x); int f(int x) { return x - 1; } int g(int x) { return callback_to_main(x) + 1; } int h_chain(int); int h(int x) { return 2 * h_chain(x); } namespace myns { int fns(int x) { return x + 7; } namespace embed_ns { int fens(int x) { return x - 3; } } // nam...
C++
test/Analysis/Inputs/ctu-other.cpp
apple/swift-clang
apache-2.0
1,647
121
codeparrot/github-code
27d9eea55bef49389b38996798d90d62b88a9b70a7100941ef3a1ea9724c9d26
/* * Copyright 2000-2009 JetBrains s.r.o. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agre...
Java
platform/platform-impl/src/com/intellij/openapi/updateSettings/impl/BuildInfo.java
ernestp/consulo
apache-2.0
3,354
116
codeparrot/github-code
961e197285a05a26bcb0cff9499efea7e577256b2ac32e4291dc209847d88cbe
package be.kwakeroni.parameters.basic.wireformat.raw; import be.kwakeroni.parameters.backend.api.BackendGroup; import be.kwakeroni.parameters.backend.api.query.BackendWireFormatterContext; import be.kwakeroni.parameters.basic.backend.query.BasicBackendWireFormatter; import be.kwakeroni.parameters.basic.client.query.Ba...
Java
parameters-basic/parameters-basic-wireformat-raw/src/main/java/be/kwakeroni/parameters/basic/wireformat/raw/BasicRawWireFormat.java
kwakeroni/BusinessParameters
apache-2.0
4,009
110
codeparrot/github-code
7ef6ae3d7902c73c2eb87634b59bffe1e332224164a34ee5ef8334e76cd349e3
package com.xem.mzbphoneapp.entity; import java.io.Serializable; /** * Created by xuebing on 15/8/4. */ public class EmployeeSatisfy implements Serializable { private int id; private String empid; private String name; private String position; private String score; private String tscore; ...
Java
mzb-phone-app-android/app/src/main/java/com/xem/mzbphoneapp/entity/EmployeeSatisfy.java
wxb2939/rwxlicai
apache-2.0
1,129
65
codeparrot/github-code
46ec4e91919c12d3f04373e903524a40895e98788a0eee5c435562530819c45e
/* * Copyright (c) 2006-2013 David Soergel <dev@davidsoergel.com> * Licensed under the Apache License, Version 2.0 * http://www.apache.org/licenses/LICENSE-2.0 */ package edu.berkeley.compbio.phyloutils.betadiversity; import com.davidsoergel.stats.DissimilarityMeasure; import com.davidsoergel.trees.AbstractRoot...
Java
src/main/java/edu/berkeley/compbio/phyloutils/betadiversity/WeightedUniFrac.java
davidsoergel/phyloutils
apache-2.0
2,453
88
codeparrot/github-code
3e9d1b869a458ab422fccb181099e3afbecbc054ceec6c5cc02635fcdbd2a7b4
package com.bplow.netconn.base.filter; import java.io.IOException; import javax.servlet.Filter; import javax.servlet.FilterChain; import javax.servlet.FilterConfig; import javax.servlet.ServletException; import javax.servlet.ServletRequest; import javax.servlet.ServletResponse; import javax.servlet.http.Htt...
Java
ads/src/main/java/com/bplow/netconn/base/filter/LoginVerifyFilter.java
ahwxl/ads
apache-2.0
2,830
86
codeparrot/github-code
61c0f590bf279c541628d83efb3638089c70879244ff17dd5ffeef3710595506
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. using System.Collections.Generic; using System.Globalization; using SR = System.Collections.Immutable.Properties.Re...
C#
System.Collections.Immutable.Light/ImmutableDictionary_2.HashBucket.cs
rsdn/nitra
apache-2.0
21,827
493
codeparrot/github-code
39dc612c65768126bbd9d5f41ee130384d30edec7771771e5c954cb34fca0c36
/* * 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
scheduler/core/src/main/java/org/apache/karaf/scheduler/core/TaskScheduler.java
soluvas/karaf
apache-2.0
1,707
55
codeparrot/github-code
d1ec8d2f902c8bc97e746de9a2b0ed22e5ac2df76188567ec412834c0cf5fcd8
package org.adligo.tests4j.models.shared.metadata; import org.adligo.tests4j.shared.common.StringMethods; import org.adligo.tests4j.shared.i18n.I_Tests4J_AnnotationMessages; import org.adligo.tests4j.shared.i18n.I_Tests4J_Constants; /** * @see I_UseCaseBrief * @author scott * */ public class UseCaseBrief impleme...
Java
src/org/adligo/tests4j/models/shared/metadata/UseCaseBrief.java
adligo/tests4j.adligo.org
apache-2.0
1,516
68
codeparrot/github-code
1a227fb64553acf629526ac56c133757ae4b0f9c31fb5b2a2f7c1c0380f2c30e
__author__ = 'shuai' class Solution(object): def countSmaller(self, nums): """ :type nums: List[int] :rtype: List[int] """ count = [] ret = [0] * len(nums) for i in range(len(nums)): count.append({'index': i, 'value': num...
Python
leetcode-python/num315.py
shuaizi/leetcode
apache-2.0
1,742
69
codeparrot/github-code
fdafe3442e33c84e57803672f6ccb6af9070ebd0aaabc6405c08f24081aeeb8e
/* * Copyright © 2014-2017 EntIT Software LLC, a Micro Focus company (L.P.) * * 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 * * Unl...
Java
engine/node/score-node-api/src/main/java/io/cloudslang/engine/node/entities/WorkerNode.java
CloudSlang/score
apache-2.0
11,994
390
codeparrot/github-code
b963e724e3d20e84470a3f7817ba0b3cc2a41c7626f9dae49961e362df1fd181
"""Support for Legacy MQTT vacuum.""" import logging import json import voluptuous as vol from homeassistant.components import mqtt from homeassistant.components.vacuum import ( SUPPORT_BATTERY, SUPPORT_CLEAN_SPOT, SUPPORT_FAN_SPEED, SUPPORT_LOCATE, SUPPORT_PAUSE, SUPPORT_RETURN_HOME, SUPP...
Python
homeassistant/components/mqtt/vacuum/schema_legacy.py
fbradyirl/home-assistant
apache-2.0
19,586
571
codeparrot/github-code
1558fbdf9a7414059506908441149dc22a1044349c6dc73e2ba7cf18396f7236
/* ==================================================================== * Copyright (c) 1998-2007 The OpenSSL Project. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * 1. Redistribution...
C
Sources/CNIOBoringSSL/crypto/fipsmodule/tls/kdf.c
apple/swift-nio-ssl
apache-2.0
6,101
166
codeparrot/github-code
ea7b63b75fda196fdb318f796a0f6a646d6484059f9af8cf27955c6cb0864610
package org.synyx.urlaubsverwaltung.web; import org.junit.jupiter.api.Test; import java.math.BigDecimal; import java.util.Locale; import static org.assertj.core.api.Assertions.assertThat; import static org.assertj.core.api.Assertions.assertThatIllegalArgumentException; /** * Unit test for {@link org.synyx.urlaubs...
Java
src/test/java/org/synyx/urlaubsverwaltung/web/DecimalNumberPropertyEditorTest.java
synyx/urlaubsverwaltung
apache-2.0
6,256
192
codeparrot/github-code
fa15394fb83e706c6d9008461ba27a7c9504b2a1017a23ed70beee001e547515
import os from flask import Flask, render_template, request from PIL import Image import sys import pyocr import pyocr.builders import re import json __author__ = 'K_K_N' app = Flask(__name__) APP_ROOT = os.path.dirname(os.path.abspath(__file__)) def ocr(image_file): tools = pyocr.get_available_tools() if l...
Python
ocr_app.py
ankutty/OCR-Tesseract
apache-2.0
1,764
72
codeparrot/github-code
fb595d4abec86f4d65ac08f7f9ab391cf67f2e1d9aa19da9b305887d4f31ea6f
package com.saituo.order.web.form; import javax.validation.constraints.Size; import org.hibernate.validator.constraints.Email; import org.hibernate.validator.constraints.NotEmpty; public class RegisterForm { @NotEmpty(message = "邮件不能为空") @Email private String email; @Size(max = 64, message = "最大长度64个字符") priv...
Java
src/main/java/com/saituo/order/web/form/RegisterForm.java
BeanTalk/order
apache-2.0
1,604
81
codeparrot/github-code
cb0e90717f6b56834b00ca518939e83df66168115c230c09a7605c5c8c75ee6e
package org.openmrs.module.shrclient.handlers; import org.apache.commons.lang3.StringUtils; import org.openmrs.module.fhir.utils.DateUtil; import org.openmrs.module.shrclient.mapper.ProviderMapper; import org.openmrs.module.shrclient.model.ProviderEntry; import org.openmrs.module.shrclient.util.*; import java.io.IOEx...
Java
shrclient-omod/src/main/java/org/openmrs/module/shrclient/handlers/ProviderPull.java
SharedHealth/openmrs-module-bdshrclient
apache-2.0
7,378
151
codeparrot/github-code
e04738d9ef3b4568bb1d0e8a76a55de6d02d813df721c26a5303d2e825820748
/** * Copyright (C) 2006-2020 Talend Inc. - www.talend.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 appli...
Java
component-server-parent/component-server/src/main/java/org/talend/sdk/component/server/dao/ConfigurationDao.java
chmyga/component-runtime
apache-2.0
1,263
43
codeparrot/github-code
a7976343e8d4836d6f09f6f142216a6468aae33970363ab83f7ecfd8d6f0dfe2
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="shortcut icon" href="resources/images/favicon.ico"> <title>apiman :: download</title> <link href...
HTML
1.1.x/download.html
msavy/apiman.github.io
apache-2.0
12,917
247
codeparrot/github-code
eebd8f0690dcf2795086362c844be1948c74aabc034761736eb8e6317153dad2
/******************************************************************************* * * Copyright (C) 2015-2022 the BBoxDB project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License ...
Java
bboxdb-commons/src/main/java/org/bboxdb/commons/math/HyperrectangleHelper.java
jnidzwetzki/bboxdb
apache-2.0
1,958
68
codeparrot/github-code
513d305acd4651079dc0e32a03af5299aecdf60a4203f2d0cea0df8024fe97c9
/*********************************************************************** * Copyright (c) 2013-2022 Commonwealth Computer Research, Inc. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Apache License, Version 2.0 * which accompanies this distribution and...
Scala
geomesa-filter/src/main/scala/org/locationtech/geomesa/filter/expression/OrHashEquality.scala
locationtech/geomesa
apache-2.0
2,582
71
codeparrot/github-code
37265fb5403892a1f23bef09497ea17c8fb460b72abea698d09899304a261e13
/** * Copyright 2015 Netflix, 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 i...
Java
src/main/java/io/reactivex/internal/operators/nbp/NbpOperatorScanSeed.java
spoon-bot/RxJava
apache-2.0
3,731
123
codeparrot/github-code
a2c66ad784f5f7e384639fe5daf51615e92e527775ca08e86c2bd7fa913b9637
package com.twitter.io import com.twitter.util.StdBenchAnnotations import java.nio.ByteBuffer import org.openjdk.jmh.annotations.{Benchmark, Param, Scope, State} object BufConcatBenchmark { val bytes: Array[Byte] = Array[Byte](1, 2, 3, 4) val byteArrayBuf: Buf = Buf.ByteArray.Owned(bytes) val byteBufferBuf: Bu...
Scala
util-benchmark/src/main/scala/com/twitter/io/BufConcatBenchmark.scala
twitter/util
apache-2.0
2,111
94
codeparrot/github-code
f5182067058f1d878c5ef4a54a101d506438859741b7a256c27ca38f8eff7fc3
Titanium.Facebook.appid = "146517992085577"; Titanium.Facebook.permissions = ['publish_stream']; app.facebookShareButton.addEventListener('click', function(){ if(Titanium.Facebook.loggedIn) { send_facebook_stream(); } else { Titanium.Facebook.authorize(); Titanium.Facebook.addEventListener('login',fu...
JavaScript
Resources/facebook.js
guilleiguaran/atmoos
apache-2.0
1,418
46
codeparrot/github-code
ca6361f569e47538c657c6f81b32b3f367cf31dd01bbe44080eb3401bf16fe87
'use strict'; const logger = require('winston'); logger.level = 'none'; const _ = require('lodash'); describe('Given a YAML file run command execution', () => { let filename = 'test/v1/test.usher.yml'; let tasks = [ { key: 'build_quotes', cmdArgs: [], expected: [{ executable: 'hello...
JavaScript
src/v1/run.test.js
findmypast/usher
apache-2.0
10,185
339
codeparrot/github-code
b50b1f12b3e50119de591ba8554c6f3e07dd2578fa9abb4f4a56e56efaa70f70
from haystack import indexes from common.models import Person, CustomPage, NewsArticle, Job class PersonIndex(indexes.SearchIndex, indexes.Indexable): text = indexes.CharField(document=True, use_template=True) first_name = indexes.CharField(model_attr='first_name') last_name = indexes.CharField(model_attr...
Python
common/search_indexes.py
baylee-d/cos.io
apache-2.0
1,112
37
codeparrot/github-code
afcd1da967263801cbc7aac208a3baba1f63aca4b339912372702fcc46e97201
// Licensed to the Software Freedom Conservancy (SFC) under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information // regarding copyright ownership. The SFC licenses this file // to you under the Apache License, Version 2.0 (the // "License"); you m...
Java
java/server/src/org/openqa/selenium/grid/node/local/LocalNode.java
5hawnknight/selenium
apache-2.0
7,929
246
codeparrot/github-code
e923641b57bfcc820f63b7e81a4d04fce48492f1524a8a9cf4abec7e3dddc643
package com.smartplace.alerta.cap; import java.util.ArrayList; /** * Created by Roberto on 12/07/2014. */ public class CapAlert { public String getIdentifier() { return identifier; } public void setIdentifier(String identifier) { this.identifier = identifier; } public String g...
Java
app/src/main/java/com/smartplace/alerta/cap/CapAlert.java
robertoReyM/AlertaMX
apache-2.0
2,662
135
codeparrot/github-code
f0b78515bc98f08954ac01727801173b8dc8ca5027ad22792ed3686ea764a254
/* * Copyright 2015-2017 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by ap...
Java
funtl-framework-tools/tencent-wechat/src/main/java/com/funtl/framework/tencent/wechat/param/SignatureParam.java
funtl/framework
apache-2.0
1,726
75
codeparrot/github-code
7238f81c27c475d7f8efd09d65d1ec14a4b5540ab54feabc62ef5089baf1e1d8
package org.reldb.rel.v0.vm; import java.io.PrintStream; import org.reldb.rel.v0.generator.Generator; import org.reldb.rel.v0.storage.*; import org.reldb.rel.v0.values.*; /** * The Rel virtual machine. * * @author dave */ public class VirtualMachine { // currently executing Context private...
Java
ServerV0000/src/org/reldb/rel/v0/vm/VirtualMachine.java
DaveVoorhis/Rel
apache-2.0
3,195
137
codeparrot/github-code
b4431ef4faf511f027749bdce490de7ba8269258b6e59ea3d6b24dbd917645f0
#!/usr/bin/env python # -*- coding: utf-8 -*- ''' ***************************************** Author: zhlinh Email: zhlinhng@gmail.com Version: 0.0.1 Created Time: 2016-03-02 Last_modify: 2016-03-02 ****************************************** ''' ''' A message containing letters from A-Z is b...
Python
0091.Decode Ways/solution.py
zhlinh/leetcode
apache-2.0
1,111
48
codeparrot/github-code
f02a1ee48ed076514dfbcc950589a1b347a6e00da6adc125b35b03c8bf25932e
/** * Copyright 2015 Batis Degryll Ludo * @file BallBuilder.h * @since 2017-08-26 * @date 2017-08-26 * @author Degryll Ludo Batis * @brief A tool capable of build a ball with the same position an velocity as a given movable */ #ifndef ZBE_MAIN_ZOMBIENOID_TOOLS_BALLBUILDER_H #define ZBE_MAIN_ZOMBIENOID_TOOLS_BAL...
C
src/ZBNoid/include/behaviors/builders/BallBuilder.h
Degryll/ZBE
apache-2.0
4,654
126
codeparrot/github-code
c6148870e8fc89494badd6dfd3162ef135fe1b065995a6a857a18dea0f494534
// Copyright 2014 The html5ever Project Developers. See the // COPYRIGHT file at the top-level directory of this distribution. // // Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or // http://www.apache.org/licenses/LICENSE-2.0> or the MIT license // <LICENSE-MIT or http://opensource.org/licenses/MIT>,...
Rust
src/tree_builder/rules.rs
SimonSapin/html5ever
apache-2.0
50,431
1,334
codeparrot/github-code
a6a9e30c62a8eabdb61bc6574fb3ade39d44f2f55babf358601dceef05a4f1c8
package cz.esc.iot.cloudservice.resources; import java.io.IOException; import org.restlet.data.Form; import org.restlet.data.Status; import org.restlet.representation.Representation; import org.restlet.resource.Delete; import org.restlet.resource.Get; import org.restlet.resource.ServerResource; import com.google.gso...
Java
src/main/java/cz/esc/iot/cloudservice/resources/RegisteredHubs.java
eclub-sense/iot-cloud
apache-2.0
3,161
100
codeparrot/github-code
9e4ab03dab94864ee12b1dd6b55f19ae7f4b7acad737a0b4cc3fe4880ad556c6
'use strict'; var fs = require('fs'); var async = require('async'); var assert = require('assert'); var Benchmark = require('benchmark'); var semver = require('semver'); // Contenders var gm = require('gm'); var imagemagick = require('imagemagick'); var jimp = require('jimp'); var sharp = require('../../'); var imag...
JavaScript
test/bench/perf.js
papandreou/sharp
apache-2.0
34,027
1,197
codeparrot/github-code
d23f202ebf93a959e4045c7861cc98e1108680b41f3ca4b9dfd3326b9931198e
package com.alipay.api.domain; import java.util.List; import com.alipay.api.AlipayObject; import com.alipay.api.internal.mapping.ApiField; import com.alipay.api.internal.mapping.ApiListField; /** * 商品适用信息(数据) * * @author auto create * @since 1.0, 2016-05-26 13:26:04 */ public class AlipayDataItemLimitPeriodInfo...
Java
src/main/java/com/alipay/api/domain/AlipayDataItemLimitPeriodInfo.java
wendal/alipay-sdk
apache-2.0
1,079
67
codeparrot/github-code
06961f577ec5bcfb168dc08e5ad506945be61bd5505b7ca0c453b996fd96e022
package eu.newsreader.eventcoreference.naf; import eu.kyotoproject.kaf.KafFactuality; import eu.kyotoproject.kaf.KafOpinion; import eu.kyotoproject.kaf.KafSaxParser; import eu.newsreader.eventcoreference.objects.*; import eu.newsreader.eventcoreference.util.RoleLabels; import eu.newsreader.eventcoreference.util.Util; ...
Java
src/main/java/eu/newsreader/eventcoreference/naf/GetPerspectiveStatsFromNafFile.java
cltl/EventCoreference
apache-2.0
24,269
533
codeparrot/github-code
3bb44751c45d4c9c3ce817c843ea8934fe0feed6316dc036b1cf27efddafaf11
#region S# License /****************************************************************************************** NOTICE!!! This program and source code is owned and licensed by StockSharp, LLC, www.stocksharp.com Viewing or use of this code requires your acceptance of the license agreement found at https://github.com/St...
C#
Algo/Indicators/BollingerBand.cs
StockSharp/StockSharp
apache-2.0
2,004
68
codeparrot/github-code
464bd3cde0a44da0806a7c3632cae7cb5200dd306022180ba6ac68b57c700a3c
// Copyright 2017-present Kirill Danshin and Gramework contributors // Copyright 2019-present Highload LTD (UK CN: 11893420) // // 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...
GO
log.go
gramework/gramework
apache-2.0
3,630
155
codeparrot/github-code
ceb414655e06c36ae70276471f102b4a6bdb4ab4526b3c96e877be0ab5f4734e
# Copyright 2015 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 writing,...
Ruby
generated/google/apis/blogger_v2/classes.rb
saicheems/google-api-ruby-client
apache-2.0
31,462
948
codeparrot/github-code
b25b55750514f0a9030e7eb705ae43bf1a215623e1ff205fb1b8847f549a1cd7
/** * 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"); y...
C#
clients/csharp/src/Kafka/Kafka.Client/ZooKeeperIntegration/Listeners/ZKSessionExpireListener.cs
tnachen/kafka
apache-2.0
3,801
87
codeparrot/github-code
a53f92e857dd986e18b781bdaafda704d2e09d1ee026925e58d62afbbd6c0bfb
@extends('layout.main') @section('content') <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="description" content=""> <meta name="author" content=""> <title>Register</title> ...
PHP
app/views/create.blade.php
jarveygarvey/swapshop
apache-2.0
9,584
179
codeparrot/github-code
1e502d99f53a18032cbd772ae8b310ed7eb85a8ee257880f78535809cdee660e
// Copyright 2021 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 // // https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in ...
C
merror/internal/expand_expr.h
google/merror
apache-2.0
16,378
358
codeparrot/github-code