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
7c05828724d54f5ea973a39693728f2a60c33a8c4ff4cf67a0e76243c6a57bcf
package org.minimalj.repository.sql; import org.junit.BeforeClass; import org.junit.Test; import org.minimalj.model.Keys; import org.minimalj.model.annotation.Size; import org.minimalj.repository.DataSourceFactory; public class SqlHistorizedOptimisticLockingTest { private static SqlHistorizedRepository repository;...
Java
ext/historized/src/test/java/org/minimalj/repository/sql/SqlHistorizedOptimisticLockingTest.java
BrunoEberhard/minimal-j
apache-2.0
1,620
61
codeparrot/github-code
ec14326474a0404557fa027157206b574710f9d39f74a14c313bc3e7c07d6c21
const nativeDecoder = typeof TextDecoder === 'function' ? new TextDecoder('utf-8') : null; export const decodeUtf8: (bytes: Uint8Array) => string = nativeDecoder ? nativeDecoder.decode.bind(nativeDecoder) : decodeImpl; /* ! Logic in decodeImpl is derived from fast-text-encoding https://github.com/samthor/fast-t...
TypeScript
src/Components/Web.JS/src/Utf8Decoder.ts
aspnet/AspNetCore
apache-2.0
2,158
67
codeparrot/github-code
1500cf7f80df72b333628b71a4bdcf44bd383a092023f1d3f3e18b6ec8ca5eec
import experiment from ..util import dirs from ..util import file_handling as fh from optparse import OptionParser import sys def main(): usage = "%prog project logfile " parser = OptionParser(usage=usage) parser.add_option('-n', dest='new_name', default=None, help='New name for e...
Python
core/experiment/rerun.py
dallascard/guac
apache-2.0
1,879
65
codeparrot/github-code
51793b8e49c0826667331810f95f986e2ff35cefe8e045e45908cba25d20c1db
/* * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distribut...
Java
presto-main/src/main/java/com/facebook/presto/sql/planner/optimizations/UnaliasSymbolReferences.java
bloomberg/presto
apache-2.0
33,443
734
codeparrot/github-code
30953f1f3e69a40b06f81954ebdc4d8c2c51d131742c77a60f8274c755e365da
/* * Copyright 2000-2011 JetBrains s.r.o. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agre...
Java
modules/base/lang-impl/src/main/java/com/intellij/codeInsight/hint/InspectionDescriptionLinkHandler.java
consulo/consulo
apache-2.0
2,468
64
codeparrot/github-code
a925d2f3b83971b77b8eb84ca52e4bcf73da1f1cc6ebd99ddc7cce1a10d7f7f3
/* thread.c * Copyright 1984-2016 Cisco Systems, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applica...
C
src/c/thread.c
netmany/scheme
apache-2.0
9,566
340
codeparrot/github-code
b69d8982e034efcb6426bd1592bb65405c7847e81d5f996e121a7df4e89eca66
<script> $(document).ready(function() { $("#jobs_table").DataTable({ "ajax": { 'type': 'POST', 'url': "{{ url_for('api.jobs', query_str=query_str) }}", }, "columns": [ {"data": "name"}, {"data": "last_build.status", "defaultContent": "None" }, ...
JavaScript
rhoci/templates/jobs/last_added_table.js
bregman-arie/rhoci
apache-2.0
3,302
81
codeparrot/github-code
e06f85d770a9f011cf53481c270dfd4b72e68d852dde9c3cd965b000c758535f
/** * Copyright © 2018 spring-data-dynamodb (https://github.com/boostchicken/spring-data-dynamodb) * * 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/license...
Java
src/test/java/org/socialsignin/spring/data/dynamodb/marshaller/Instant2IsoDynamoDBMarshallerTest.java
tiarebalbi/spring-data-dynamodb
apache-2.0
1,913
66
codeparrot/github-code
f6ee8987954884e76962ccb49b2358ee1f837d4ae5b999877af6726c8603c07d
pub type c_char = i8; pub type c_long = i32; pub type c_ulong = u32; pub type size_t = u32; pub type ptrdiff_t = i32; pub type clock_t = i32; pub type time_t = i32; pub type suseconds_t = i32; pub type wchar_t = i32; pub type intptr_t = i32; pub type uintptr_t = u32; pub type off_t = i32; pub type ino_t = u32; pub type...
Rust
src/unix/notbsd/linux/mips.rs
edunham/libc
apache-2.0
6,591
217
codeparrot/github-code
cf5f0d4e2c93cbb9a094c436ecd154330f2157b176e89798c8b3df87f10080e5
<!DOCTYPE html > <html> <head> <title>PrivateMethod - ScalaTest 3.0.3 - org.scalatest.PrivateMethodTester.PrivateMethod</title> <meta name="description" content="PrivateMethod - ScalaTest 3.0.3 - org.scalatest.PrivateMethodTester.PrivateMethod" /> <meta name="keywords" content="Pri...
HTML
public/scaladoc/3.0.3/org/scalatest/PrivateMethodTester$PrivateMethod.html
scalatest/scalatest-website
apache-2.0
28,557
528
codeparrot/github-code
80df4f80e554ac2e3f876cd45275184ac0df4f58ddd00d61eb674993a916e037
/* * Copyright (C) 2015 Imran Mammadli * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed ...
Java
Java/src/main/java/hash/math/collatz/Solution1.java
murick/Algorithms
apache-2.0
2,266
88
codeparrot/github-code
3e70f2c88639a6ee7be45d20db84ff87126707e82d61c8ba27d793eb96089281
// 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...
C++
be/src/util/zip-util.cc
cloudera/Impala
apache-2.0
1,723
50
codeparrot/github-code
d116511a3b2992212f19cc80b382c1b2973813b836115123fc4c9bcba044e1d5
package capgemini.training.guava.train; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertTrue; import java.util.List; import java.util.Map; import org.junit.Before; import org.junit.Test; import com.google.common.collect.ImmutableList; import com.google.common.collect.ImmutableMap; ...
Java
src/test/java/capgemini/training/guava/train/TrainGuavaTest.java
CapGeekMini/guava-training
apache-2.0
2,862
83
codeparrot/github-code
5206848be2490e7aced78f170e95319d9d56bf8dda1bb07c4d021f4ade46b0c7
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Text; using System.Windows.Forms; using System.Reflection; using System.Resources; namespace SoukeyNetget { public partial class frmDict : Form { private string DelContent...
C#
SoukeyNetget/frmDict.cs
zhouweiaccp/code
apache-2.0
9,251
327
codeparrot/github-code
1190ce0002f8990800c059ba776c0c9957307cb0b307b1b728fb3dff5f33c0df
/* Copyright 2007-2016 QReal Research Group * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or...
C++
qrgui/editor/nodeElement.cpp
Julia-Khramyshkina/qreal
apache-2.0
36,911
1,405
codeparrot/github-code
1e04d114fa3dc05c65e911701dd2bf674d7182ec4f4c2cd05aca18ca4a18cd28
/* * ================================================================================================= * Copyright (C) 2015 Martin Albedinsky * ================================================================================================= * Licensed under the Apache License, V...
Java
library/src/androidTest/java/com/albedinsky/android/intent/PlayIntentTest.java
android-libraries/android_intents
apache-2.0
2,280
63
codeparrot/github-code
9b66f036394238bfe91d374189e19cdfcfe906ea9e45ae68dbc53cd8d7ab380e
package com.tleaf.tiary.template; import java.util.ArrayList; import android.content.Context; import android.view.Gravity; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.BaseAdapter; import android.widget.LinearLayout.LayoutParams; import android.wid...
Java
src/com/tleaf/tiary/template/ChatAdapter.java
LifeLogTLeaf/TLeafDiaryAndroid
apache-2.0
2,181
84
codeparrot/github-code
2b707ab6131a96b4fb0309bf3edc37762eb2228007b0d8f9a514b82b4e99b1ec
/** * Copyright 2013 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 ...
Java
astyanax-cassandra/src/main/java/com/netflix/astyanax/serializers/TypeInferringSerializer.java
Netflix/astyanax
apache-2.0
1,626
53
codeparrot/github-code
91d5b7e3a5038aa4bd349c985244752ed1992a3962674c85655170e595421bbc
# Copyright (c) 2010-2012 OpenStack, LLC. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to ...
Python
swift/common/manager.py
garvenshen/zeda-swift
apache-2.0
21,270
628
codeparrot/github-code
7cfc67c8538e37d0c33b175bfbd343d09e7ead683908e4ea537df89e78c3e858
/** * Copyright 2014 Paul Illingworth * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or a...
Java
app/src/main/java/uk/co/threeonefour/android/snowball/gamestate/FileGameStateDao.java
pillingworthz/android-snowball
apache-2.0
9,382
291
codeparrot/github-code
2eb6dba0b8d90af59426588f33e49ef0f97d49aca34292e2f6a5fb9c4b59e74e
/** * 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"); yo...
Java
components/camel-csv/src/test/java/org/apache/camel/dataformat/csv/CsvMarshalTest.java
everttigchelaar/camel-svn
apache-2.0
2,741
77
codeparrot/github-code
cab7abfe35bd41a4824989c7578e56dd953f0f1ca0a357be4d854ac003953f17
#!/usr/bin/perl use strict; use warnings; use HTTP::Request; use HTTP::Response; use LWP::UserAgent; use HTML::TreeBuilder; # This code is used to obtain the key and the notes for a given song. This can be used as # a prerequisite for other code # The scale of the songs my $scale = undef; # The key used in the son...
Perl
perl/music_score_crawler.pm
Khalian/Modulo7POC
apache-2.0
7,271
230
codeparrot/github-code
a2394331c02f6c7b18f44d0d588fcab50c66e8452598214fb09257e34260c7db
// Generated from /POI/java/org/apache/poi/hssf/record/RecordFactory.java #include <org/apache/poi/hssf/record/RecordFactory_ReflectionMethodRecordCreator.hpp> #include <java/lang/Class.hpp> #include <java/lang/ClassCastException.hpp> #include <java/lang/IllegalAccessException.hpp> #include <java/lang/IllegalArgumentE...
C++
src/org/apache/poi/hssf/record/RecordFactory_ReflectionMethodRecordCreator.cpp
pebble2015/cpoi
apache-2.0
3,143
86
codeparrot/github-code
33fd7c29cb59d5db21d0e28df8f0ea5cd2deaa96d66cc2a4c5c653bd29c800a1
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ package challenge291; /** * * @author robinsj1 */ public class Chair { private int weight; private int temp; ...
Java
src/challenge291/Chair.java
jjrobinson/Reddit-DailyProgrammer
apache-2.0
703
39
codeparrot/github-code
e000df620834f1a9305ca494e02b7da37ee17637f6e7ef5c1761c34ff73ce76e
/* * Copyright 2017 Nikolas Falco * 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/test/java/com/github/nfalco79/tools/ant/taskdefs/FreePortTest.java
nfalco79/tools-ant
apache-2.0
1,510
59
codeparrot/github-code
21f630107facd91768c7424bb06a27928d90f5fe9236163b8ec75cbec3e2d7e5
package de.chefkoch.raclette.rx.lifecycle; import de.chefkoch.raclette.ViewModelLifecycleState; import rx.Observable; import rx.exceptions.Exceptions; import rx.functions.Func1; import rx.functions.Func2; /** * thx to https://github.com/trello/RxLifecycle * * Created by christophwidulle on 15.04.16. */ public cla...
Java
raclette-ext-rx/src/main/java/de/chefkoch/raclette/rx/lifecycle/RxViewModelLifecycle.java
christophwidulle/Raclette
apache-2.0
5,353
131
codeparrot/github-code
fc6d3575cad7f32262c3e8ff151fc21f177a4c2df700cf9231df3d95179ea18d
/** * Copyright (c) 2013 - 2016 YCSB Contributors. All rights reserved. * <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 * <p> * http://www.apache.org/licenses/LICENSE-2.0 * <p> *...
Java
geode/src/main/java/com/yahoo/ycsb/db/GeodeClient.java
ChristianNavolskyi/YCSB
apache-2.0
8,357
238
codeparrot/github-code
029db7155467a29ba5980c57c1474522d29515076056b974071776efa01b07d2
/* Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distribut...
Java
src/main/java/org/activiti/engine/impl/persistence/entity/GroupEntityManager.java
ahwxl/deep
apache-2.0
4,560
117
codeparrot/github-code
71b36efd2e6835c70000115e895847599cb1f8ef4c1f6fc27f790516af653f9a
/* * Copyright (C) 2016 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 ...
Java
src/main/java/com/google/api/tools/framework/aspects/documentation/source/SourceParser.java
googleapis/api-compiler
apache-2.0
11,277
305
codeparrot/github-code
793ab3bd361f0447863a978d1932bde353c49f1764e9d89f6a0770c9199994f3
/* * Copyright 2012 The Netty Project * * The Netty Project licenses this file to you under the Apache License, * version 2.0 (the "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at: * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless ...
Java
transport/src/test/java/io/netty/channel/local/LocalChannelTest.java
gerdriesselmann/netty
apache-2.0
46,313
1,165
codeparrot/github-code
4ecf3ed50d5c817c6dc8b15d111d239bc9bbb94cee8af125abeac8c4d72f48cb
# Copyright 2016 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
Python
tensorflow_addons/seq2seq/decoder.py
tensorflow/addons
apache-2.0
23,035
582
codeparrot/github-code
e32db2a4873cf7611dcaf92aa1fcb3c7893f0afe35cd949339e78b6769259fec
/* Copyright 2015-2021 Peter-Josef Meisch (pj.meisch@sothawo.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 ...
Java
src/main/java/com/sothawo/mapjfx/MapCoordinateElement.java
sothawo/mapjfx
apache-2.0
3,607
135
codeparrot/github-code
ba119e0652f4568fbf728610d0f6bc0c455e90bbe3acea844bd79e5f70c98153
// Copyright 2015 The etcd 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 t...
GO
api/v3rpc/rpctypes/error.go
etcd-io/etcd
apache-2.0
15,563
267
codeparrot/github-code
56ee07189df561f35b9f06e21a3e1fa14e558e95929e3567875b685c715a2ec6
package shms.validation; import java.util.Map; import com.opensymphony.xwork2.ActionContext; import com.opensymphony.xwork2.util.ValueStack; import com.opensymphony.xwork2.validator.ValidationException; import com.opensymphony.xwork2.validator.validators.StringLengthFieldValidator; public class CustomStringLengthFie...
Java
src/shms/validation/CustomStringLengthFieldValidator.java
peterkang7790/shms
apache-2.0
1,427
55
codeparrot/github-code
4784586954fd6724e987cf387cccf1e7ec178c0c5bad94385cda81ef67ad69b2
/** * Copyright 2014 XCL-Charts * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed...
Java
XCL-Charts/src/org/xclcharts/chart/PieChart.java
0359xiaodong/XCL-Charts
apache-2.0
9,733
422
codeparrot/github-code
ec555072826d8d26fb7fecd31cc5543db6462a99c66c549b4014dfce056f6aad
package de.j4velin.huenotifier; import android.content.pm.PackageManager; import android.graphics.drawable.Drawable; import android.os.Build; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.LinearLayout; import android.widget.TextView; import com.goog...
Java
app/src/main/java/de/j4velin/huenotifier/RuleAdapter.java
j4velin/HueNotifier
apache-2.0
5,618
141
codeparrot/github-code
c54a61eb6052a6bc2bdf26720beef0fcfa793d5adb7b603466c207e1afb17221
package org.wso2.developerstudio.eclipse.gmf.esb.diagram.edit.parts; import java.util.ArrayList; import java.util.LinkedList; import java.util.List; import org.eclipse.draw2d.IFigure; import org.eclipse.draw2d.Shape; import org.eclipse.draw2d.StackLayout; import org.eclipse.draw2d.geometry.Dimension; import org.eclip...
Java
esb/org.wso2.developerstudio.eclipse.gmf.esb.diagram/src/org/wso2/developerstudio/eclipse/gmf/esb/diagram/edit/parts/FailoverEndPointInputConnector2EditPart.java
rajeevanv89/developer-studio
apache-2.0
11,273
317
codeparrot/github-code
b719fe8ea58f6419ac7d2a3d1dbd82019de736347a580139896d5f918f89f03b
package com.starseed.screens; import com.badlogic.gdx.Gdx; import com.badlogic.gdx.graphics.GL20; import com.starseed.stages.MainScreenStage; import com.starseed.screens.AbstractScreen; public class MainScreen extends AbstractScreen { private MainScreenStage stage; public MainScreen() { super(); stage = new ...
Java
core/src/com/starseed/screens/MainScreen.java
bikush/libgdxjam-space-seed-inc
apache-2.0
852
57
codeparrot/github-code
e3c655af66d5b71acf7fd6aaeb0494ba54224df6e72d95902c2ae517cff191bc
/* * Copyright (c) 2015-2018 Petr Zelenka <petr.zelenka@sellcom.org>. * * 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 re...
Java
src/main/java/org/sellcom/geotemporal/internal/time/applicability/EvenIsoWeekNumberApplicability.java
petrzelenka/sellcom-java-geotemporal
apache-2.0
1,183
34
codeparrot/github-code
40b2ab7cf8dc50633fab894eeb44171162fabb363bdecaabaedb4c2b4e1e60b1
/* * Copyright (c) 2018, Cue Health Inc * * SPDX-License-Identifier: Apache-2.0 */ #include <nrfx_pwm.h> #include <drivers/pwm.h> #include <hal/nrf_gpio.h> #include <stdbool.h> #define LOG_LEVEL CONFIG_PWM_LOG_LEVEL #include <logging/log.h> LOG_MODULE_REGISTER(pwm_nrfx); #define PWM_NRFX_CH_POLARITY_MASK BI...
C
drivers/pwm/pwm_nrfx.c
galak/zephyr
apache-2.0
11,414
393
codeparrot/github-code
ef59244e38bb6ac4932b33d28d403227dc2fab3e68bb5d816668514af6817de5
// 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
engine/schema/src/main/java/com/cloud/upgrade/DatabaseUpgradeChecker.java
DaanHoogland/cloudstack
apache-2.0
16,974
396
codeparrot/github-code
08ba3a04bad09b70a28a45c1634972671a339d2389db983eb19b7bf2707ad344
/* * 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 ma...
C++
compiler/cpp/src/thrift/generate/t_rb_generator.cc
Fitbit/thrift
apache-2.0
41,359
1,264
codeparrot/github-code
ad651397c31b119d749ef8e270d16e790633e17781ee2a9ed459a751513bef22
# -*- 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/bigquery_storage_v1beta2/services/big_query_write/async_client.py
googleapis/python-bigquery-storage
apache-2.0
35,099
872
codeparrot/github-code
3123615ad1c13c9616b70e3a616a8d4519db6d96b0d94918710376e60c0fb1a7
{%- block doctype -%} <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> {% endblock %} <html xmlns="http://www.w3.org/1999/xhtml"> <head> {% block head %} <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> {% if m...
HTML
master/templates/layout.html
pyfarm/pyfarm-build
apache-2.0
3,381
101
codeparrot/github-code
601b4a7e2c9bca4d348c7e66e74e60638621c1257f65c78b5829a3972598b1af
package org.apache.hadoop.tools.posum.common.records.call.query.impl.pb; import com.google.protobuf.ByteString; import com.google.protobuf.InvalidProtocolBufferException; import com.google.protobuf.TextFormat; import org.apache.hadoop.tools.posum.common.records.call.query.PropertyRangeQuery; import org.apache.hadoop.t...
Java
hadoop-tools/hadoop-posum/src/main/java/org/apache/hadoop/tools/posum/common/records/call/query/impl/pb/PropertyRangeQueryPBImpl.java
an3m0na/hadoop
apache-2.0
5,139
181
codeparrot/github-code
4d80382118a70419784afdbb9e75c38322f495a5ebb8f3f1657bad456b0f2c37
/* * Copyright (C) 2013 salesforce.com, 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 ...
Java
aura-impl/src/main/java/org/auraframework/impl/css/parser/StyleParser.java
navyliu/aura
apache-2.0
5,228
128
codeparrot/github-code
d7d3cb5854dab2be9ddd592520233a8f0877683e9b6ffcee638b2a5eb7048fad
/* * Autopsy Forensic Browser * * Copyright 2015 Basis Technology Corp. * Contact: carrier <at> sleuthkit <dot> org * * 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://ww...
Java
Experimental/src/org/sleuthkit/autopsy/experimental/configuration/SharedConfiguration.java
dgrove727/autopsy
apache-2.0
60,350
1,235
codeparrot/github-code
a15fe827c4176ac61dca7370bd2b249da4a0cea6e5cb44fdd43cce3d9cf8f9f0
package FileIO.NIO; import java.io.FileInputStream; import java.io.FileOutputStream; import java.io.IOException; import java.io.RandomAccessFile; import java.nio.ByteBuffer; import java.nio.channels.FileChannel; /** * Created by Defias on 2017/3/8. * * FileChannel * * 一个连接到文件的通道。可以通过文件通道读写文件 * FileChannel不可以设置为非阻...
Java
InitJava/base/src/main/java/FileIO/NIO/TestNIOChannel_FileChannel.java
gdefias/JavaDemo
apache-2.0
3,869
130
codeparrot/github-code
2fea2034f51ca08c5a5f7e711cdfb81ccbe12c5adee0b51d0b6c069dccdd0d2b
'use strict'; /* eslint-disable max-len */ const { extend } = require('underscore'); const lifecycleManager = require('abacus-lifecycle-manager')(); const moment = require('abacus-moment'); const { createStatsReader } = require('abacus-test-helper'); const env = { tokenSecret: 'secret', tokenAlgorithm: 'HS256'...
JavaScript
test/integration/cf/renewer/src/test/renewer.js
cloudfoundry-incubator/cf-abacus
apache-2.0
2,377
78
codeparrot/github-code
c9ebfde375c5e5cf18a9e3bac174976d44376f5342a43f3863c30a982c6c88d4
package com.ahmadi.android.obd.reader.activity; import android.app.Dialog; import android.os.Bundle; import android.view.ContextMenu; import android.view.Menu; import android.view.MenuItem; import android.view.View; import android.widget.AdapterView; import android.widget.ListView; import com.ahmadi.android.obd.reade...
Java
src/main/java/com/ahmadi/android/obd/reader/activity/TripListActivity.java
Mohammad2416/android-obd-reader-master
apache-2.0
4,910
160
codeparrot/github-code
b66069cf57d504615be7fad8deb988cb87575326f658b483f56b35cbe7cac6ce
/* * Copyright (C) 20/05/2017 Scot Scriven * 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 * <p> * http://www.apache.org/licenses/LICENSE-2.0 * <p> * Unless required by applicable law o...
Java
app/src/main/java/com/scrachx/foodfacts/checker/ui/history/HistoryPresenter.java
itchix/TestMVPAndroid
apache-2.0
3,113
83
codeparrot/github-code
0b3d62f711501a0036d8e3ea925208054db1a39b7ae4bc2d6f22d6cff7196d47
<?php /** * @file class_models_loader_adapter.php * @brief Model definition loader * @details Load and create a model and its fields from a definitions array * @see AbstractLoaderAdapter Trace * @ingroup L0_CORE * @date 2012-11-07 * @version 0.9.x * @author Luc BORIES * @cop...
PHP
libapt-server-0.9.5/php/L4-apps/loader/class_models_loader_adapter.php
lucbories/LibApt
apache-2.0
18,644
477
codeparrot/github-code
31f130e5b72f354ac50db360791ff2d3203187449ea13634747d21f3faf45b23
/* * Copyright 2011 Damien Bourdette * * 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
otto-web/src/test/java/com/github/dbourdette/otto/source/config/DummyOperation.java
dbourdette/otto
apache-2.0
1,035
36
codeparrot/github-code
e5c057b315a5715b10647df04b469ee85eea3f78f945f08cbc27e2915e1fa32e
# Copyright 2015 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
Python
tensorflow/python/platform/test.py
jhseu/tensorflow
apache-2.0
3,771
115
codeparrot/github-code
77eb40b8ad8d34d313097dbf96c0ec8369daccf51fa1e32003019a7cf37c8cd8
{% extends "book_base.html" %} {% block head_styles %} {{ block.super }} <link rel="stylesheet" type="text/css" href="/theme/css/facebox.css" /> <link rel="stylesheet" type="text/css" href="/theme/css/jquery-ui-1.8.4.custom.css" /> <link rel="stylesheet" type="text/css" href="/theme/css/filmstrip.css" /> <link rel="sty...
HTML
libros/templates/bookreader/editor/pages.html
Early-Modern-OCR/Cobre
apache-2.0
4,857
119
codeparrot/github-code
6a455f2e4c279e38cf810d7c45c4102ed3201cf52a4f5b9b8c8013164bada374
package Server import ( "reflect" "strings" "code.myceliUs.com/Utility" ) /** * Implementation of the Entity. Dynamic entity use a map[string]interface {} * to store object informations. All information in the Entity itself other * than object are store. */ type DynamicEntity struct { /** The entity uuid **/...
GO
Project/src/code.myceliUs.com/CargoWebServer/Cargo/Server/DynamicEntity.go
CargoWebServer/CargoWebServer
apache-2.0
15,143
534
codeparrot/github-code
88211befd5b2488f59626ec963d58b1e63d1db7118ce3acda317884b31de09ab
/** ****************************************************************************** * @file dcd_stm32f0_pvt_st.h * @brief DCD utilities from ST code ****************************************************************************** * @attention * * <h2><center>&copy; COPYRIGHT(c) 2016 STMicroelectronics</...
C
third_party/myelin-arduino-hardware/samd/cores/arduino/TinyUSB/Adafruit_TinyUSB_ArduinoCore/tinyusb/src/portable/st/stm32_fsdev/dcd_stm32_fsdev_pvt_st.h
google/myelin-acorn-electron-hardware
apache-2.0
13,212
404
codeparrot/github-code
a0e6bceb30a8e3d5e99f785d442c44b035dc37e969a3253b012e486ac47e8f0c
/* * Copyright 2016 The Simple File Server 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 applicabl...
Java
sfs-server/src/main/java/org/sfs/elasticsearch/object/LoadAccountAndContainerAndObject.java
pitchpoint-solutions/sfs
apache-2.0
2,423
59
codeparrot/github-code
79394424d5e0111c02c7f038ae13ded48e11224d7db7d1f2253d8f4bb35dc3aa
// Copyright © 2017 NAME HERE <EMAIL ADDRESS> // // 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 ...
GO
cmd/agent/cmd/stop.go
martinyunify/qingcloud-cni
apache-2.0
1,618
51
codeparrot/github-code
2d431745a3c6ff7b0456de5eedaff820c2a5c436b5ee84bbd06454839f0fe27b
/* * 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/com/google/code/appengine/awt/PageAttributes.java
arscyper/adan
apache-2.0
23,806
560
codeparrot/github-code
02a1c6fa73530d05cfea52d130ea89d35628584f9a1de87cc70b62078c759b91
#!/usr/bin/env python import click from copy import copy from netCDF4 import Dataset import numpy as np import numpy.ma as ma import os import rasterio import rasterio.warp as rwarp import time import osr from .. import geotools from .. import utils def earth_radius(): srs = osr.SpatialReference() srs.ImportFrom...
Python
projections/scripts/gen_sps.py
ricardog/raster-project
apache-2.0
6,241
169
codeparrot/github-code
7e0e498ddc15dfd20fb9af35b93fab8735b7630433527e38e870c811f93ca330
'use strict'; import React, {Component, PropTypes} from 'react'; import ReactNative, {View, Text} from 'react-native'; var Popover = require('../Popover'); var AutoHide = require('./AutoHide'); var ToptipAnimation = require('../Popover/PopoverAnimationVertical').create( {onStartShouldSetResponder: () => false} ); c...
JavaScript
src/Toptip/Toptip.js
glinjy/react-native-apex-ui
apache-2.0
1,503
78
codeparrot/github-code
1d1e2f74a002f11580434048e951170b5cf2d59fba7eb98340252ad148feb94c
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="description" content=""> <meta name="author" content=""> <title>Ivy Jiang</title> <!-- Boo...
HTML
archive/20170930.html
ivy-jiang/ivy-jiang.github.io
apache-2.0
7,061
173
codeparrot/github-code
e3c6757e24f49e28031cb4aa7eb9bd775b3d9b238d1899471a04000ba196e3e8
// Copyright 2016 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 // // https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicabl...
C++
src/time_zone_info.cc
google/cctz
apache-2.0
39,729
1,040
codeparrot/github-code
9dd5a01f920c2ab202959521b6db1fdb03bc9265a07d67bebb84fe0f80f8c6e8
/* * Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. * * WSO2 Inc. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except * in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/li...
Java
components/apimgt/org.wso2.carbon.apimgt.impl/src/test/java/org/wso2/carbon/apimgt/impl/AbstractAPIManagerWrapperExtended.java
pubudu538/carbon-apimgt
apache-2.0
3,227
80
codeparrot/github-code
d9f49cb42c00c82bc0750cdda14e31ce5c29476fa050b4ca20cad883f21b41e4
using BEPUutilities2; using System.Collections.Generic; using System.Diagnostics; using System.Numerics; using System.Runtime.CompilerServices; namespace SolverPrototype.CollisionDetection { public interface IOverlapHandler { void Handle(int indexA, int indexB); } partial class Tree { ...
C#
SolverPrototype/SolverPrototype/CollisionDetection/Tree_SelfQueries.cs
RossNordby/scratchpad
apache-2.0
6,524
154
codeparrot/github-code
e21a4ba41a1ea8efd7123b7bcb8dc9d859f805f4fffc10f66fa71a3a5e2decb7
package com.example.datagrid.projects.domain; import com.example.datagrid.projects.domain.enums.VenueTypeEnum; import com.google.gson.Gson; import com.hazelcast.nio.ObjectDataInput; import com.hazelcast.nio.ObjectDataOutput; import com.hazelcast.nio.serialization.Portable; import com.hazelcast.nio.serialization.Portab...
Java
domain/src/main/java/com/example/datagrid/projects/domain/Venue.java
oliversalmon/sandpit
apache-2.0
2,099
91
codeparrot/github-code
ecce74f18bd1db6bc473d3f032d912beaff5a328e24bd45e6aa1654b6955fa9c
/* * Copyright 2017 Alex Thomson * * 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/io/github/lxgaming/equity/util/PacketUtil.java
lolnetnz/Equity
apache-2.0
6,307
198
codeparrot/github-code
43695f37848eabb2800edd2430c66a08ebee62b6aaae1a09193a825a45866716
/** * Copyright (C) 2015 - present by OpenGamma Inc. and the OpenGamma group of companies * * Please see distribution for license. */ package com.opengamma.strata.examples.finance.credit; import static com.opengamma.strata.examples.finance.credit.harness.TestHarness.TradeFactory.withCompany01; import java.time.Lo...
Java
examples/src/test/java/com/opengamma/strata/examples/finance/credit/CdsPricingCompany01TminusOneTests.java
jmptrader/Strata
apache-2.0
2,696
92
codeparrot/github-code
c73cd9f020d17903cd788a5d8aac80de5a78d27b3ea7f533ed587873100fddbe
/** * Copyright (c) 2011-2013, kidzhou 周磊 (zhouleib1412@gmail.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 requ...
Java
wscs-web-admin/src/main/java/com/xxx/market/web/core/render/chart/funshion/PieChart.java
pjworkspace/wscs
apache-2.0
2,972
150
codeparrot/github-code
c48793349764960618f6ca785a04dd338bc404b90f26b5a9936b3fe5176bb1e5
/* * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distrib...
Scala
silk-learning/src/main/scala/de/fuberlin/wiwiss/silk/learning/reproduction/SubtreeCrossover.scala
fusepoolP3/p3-silk
apache-2.0
1,266
36
codeparrot/github-code
0a45cfc16969ab7cc9c5c8119c5c25771553416f66c056f63e26fb8341ffbd10
package infrastructure import ( "errors" "os" "strings" "github.com/fabiofalci/flagrc" "github.com/mitchellh/go-homedir" ) const SCONSIFY_CONF_LOCATION = "/.sconsify" func GetCacheLocation() string { if basePath := getConfLocation(); basePath != "" { return basePath + "/cache" } return "" } func DeleteCa...
GO
infrastructure/env.go
fabiofalci/sconsify
apache-2.0
1,802
85
codeparrot/github-code
f981de2d112f596e055852acb2d6a1f74d35cf470e30f5448fcb4313d72eb530
package com.ubive.ui; import java.io.IOException; import android.content.ActivityNotFoundException; import android.content.Context; import android.content.Intent; import android.content.SharedPreferences; import android.content.pm.PackageInfo; import android.content.pm.PackageManager; import android.content.pm.Packag...
Java
src/com/ubive/ui/MMoreActivity.java
RyanTech/ubivearound_2
apache-2.0
9,098
320
codeparrot/github-code
4475661bc3410eb24484af70f1d864be20e9d96360059314d8fa058d93222cd8
import React from 'react'; import PropTypes from 'prop-types'; import FormField from '../../components/FormField'; import TextHelp from '../../components/TextHelp'; import DomainIdField from '../../components/DomainIdField'; import PodcastEdit from './PodcastEdit'; const LibraryFormContents = (props) => { const { c...
JavaScript
ui/js/pages/library/LibraryFormContents.js
ericsoderberg/pbc-web
apache-2.0
2,472
81
codeparrot/github-code
0c8f49e338a56b53d31e36c661b48d5014178b160f2ae0bd10e213b05651315f
#!/usr/bin/env python # -*- encoding: utf-8 -*- # vim: set et sw=4 ts=4 sts=4 ff=unix fenc=utf8: # Author: Binux<i@binux.me> # http://binux.me # Created on 2014-02-07 17:05:11 import itertools import json import logging import os import time from collections import deque from six import iteritems, itervalues...
Python
pyspider/scheduler/scheduler.py
nicozhang/pyspider
apache-2.0
46,109
1,270
codeparrot/github-code
3b6578b9bc7cc88847af3c50b8382e42cd36cdb8937fa6e1664fbf1926ea8ac6
/** * */ package com.thinkbiganalytics.feedmgr.service.feed; /*- * #%L * thinkbig-feed-manager-core * %% * Copyright (C) 2017 ThinkBig Analytics * %% * 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...
Java
services/feed-manager-service/feed-manager-core/src/main/java/com/thinkbiganalytics/feedmgr/service/feed/FeedPreconditionService.java
claudiu-stanciu/kylo
apache-2.0
5,455
140
codeparrot/github-code
f613b3f52ffb116cde01efe13f0a5ec451ef7c49fdd61a8372bc366a1f2c61e4
/* * ==================================================== * Copyright (C) 2013 by Idylwood Technologies, LLC. All rights reserved. * * Developed at Idylwood Technologies, LLC. * Permission to use, copy, modify, and distribute this * software is freely granted, provided that this notice * is preserved. * * Lic...
Java
src/com/idylwood/yahoo/YahooFinance.java
charles-cooper/idylfin
apache-2.0
16,581
525
codeparrot/github-code
626b7b8daf07f193f4b23c35b1a4f3b1a5c4e3fe6df5a724f9e2c128078297a1
package handler import ( "encoding/base64" "encoding/pem" "github.com/amdonov/lite-idp/config" "io/ioutil" "log" "net/http" "text/template" ) type metadataHandler struct { template *template.Template Configuration *config.Configuration Certificate string } func NewMetadataHandler(config *config.Conf...
GO
handler/metadata.go
goosetav/lite-idp
apache-2.0
2,775
70
codeparrot/github-code
e76bb369b8ea8ea6ba3fc196a715d1b1477e6d3c3f85f187d0810c82034d1ce1
// Generated from /POI/java/org/apache/poi/ss/usermodel/charts/DataSources.java #pragma once #include <fwd-POI.hpp> #include <java/lang/fwd-POI.hpp> #include <org/apache/poi/ss/usermodel/fwd-POI.hpp> #include <org/apache/poi/ss/usermodel/charts/fwd-POI.hpp> #include <org/apache/poi/ss/util/fwd-POI.hpp> #include <org/...
C++
src/org/apache/poi/ss/usermodel/charts/DataSources_fromNumericCellRange_1.hpp
pebble2015/cpoi
apache-2.0
1,208
39
codeparrot/github-code
fc87459989ddf4065cf870b2f4f43c9a62f21c34e3035526eabc65c3a56bf0d7
/* * 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 m...
C++
src/xalanc/XPath/XPathFactoryBlock.cpp
AaronNGray/xalan
apache-2.0
1,603
76
codeparrot/github-code
e8829053bee62e54a6bdbadd578fb90f4410e14784e9e5e0ebb59a097bd03ca7
<!DOCTYPE html> <html> <!-- Mirrored from www.ynet.co.il/video/0,20658,155587-4907138,00.html?obj={%22callbacks%22:{%22onLoad%22:%22pageRefreshDisable%22,%22onFinish%22:%22pageRefreshEnable%22}} by HTTrack Website Copier/3.x [XR&CO'2014], Wed, 18 Jan 2017 04:15:13 GMT --> <!-- Added by HTTrack --><meta http-equiv="...
HTML
src/test/resources/realData/www.ynet.co.il/video/0,20658,155587-4907138,00f972.html
ilayze/RTCAM-Compressed-HTTP
apache-2.0
15,827
449
codeparrot/github-code
82d852321a64c989b8b07577ca1c55767bb96ac43d50772c31305a553e79acae
package cs220.actors import scala.collection.mutable.Queue import akka.actor.Actor import akka.actor.{ActorRef, ActorLogging} /** * The `ParseQueueActor` is responsible for maintaining a queue of pages * to be parsed by the `ParseActor`s. It is responsible for determining * if a page has already been parsed. If so...
Scala
src/main/scala/cs220/actors/ParseQueueActor.scala
shengbolou/asn-inverted-index
apache-2.0
2,489
77
codeparrot/github-code
b4a5dab200cc02ca3afc1f40103fbff323d0f852c01a8db17efe8530625d11ec
package hashgraph import ( "bytes" "sort" "github.com/mosaicnetworks/babble/src/crypto" "github.com/mosaicnetworks/babble/src/peers" "github.com/ugorji/go/codec" ) // Frame represents a section of the hashgraph. type Frame struct { Round int // RoundReceived Peers []*peers.Peer ...
GO
src/hashgraph/frame.go
babbleio/babble
apache-2.0
1,801
70
codeparrot/github-code
675e4eb7a0f90599ff825c62e3f840a30d9691b533c686b9db0303ba8ea351e1
/** Copyright 2016 Brad Johnson, Enjekt Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in wri...
Java
microserver/src/main/java/org/enjekt/osgi/microserver/impl/MicroWebserviceRegistration.java
Ranx0r0x/Enjekt-Microservice
apache-2.0
2,255
81
codeparrot/github-code
b74cf9d26ffcb5a5cddff2bf570bd6bf7101085c15bf258b8e697f56d9783224
using Entity; using DAL; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace BLL { public class ClienteBLL { public static void save(Cliente o) { if (ClienteDAL.val(o.Codigo)) ClienteDAL.set(o...
C#
BLL/ClienteBLL.cs
oraculum/CEF
apache-2.0
1,134
53
codeparrot/github-code
53149116e37006233f5f7d45e9335c01766d1c6d6f4a6bc3525827b804032e93
// Copyright 2022 Google LLC. All Rights Reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applica...
GO
services/google/iam/beta/service_account.go
GoogleCloudPlatform/declarative-resource-client-library
apache-2.0
15,545
478
codeparrot/github-code
ca8d888f9a3beb9f6f5321872764e8f056edd2139513136a731fc98dc7c9780f
sap.ui.define([ "sap/ui/core/mvc/Controller", "sap/ui/model/json/JSONModel", "sap/m/MessageToast" ], function (Controller, JSONModel, MessageToast) { "use strict"; var TABLESETTINGS = window.TABLESETTINGS; return Controller.extend("sap.ui.table.testApps.DragAndDrop", { onInit: function () { var oTable = th...
JavaScript
src/sap.ui.table/test/sap/ui/table/testApps/DragAndDrop.controller.js
cschuff/openui5
apache-2.0
4,396
147
codeparrot/github-code
9ada0acc749425080c3591bf088427f27f6569057da4e1864e3f56fce0f4b535
/* * Copyright 2010-2011 WorldWide Conferencing, 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 applica...
Scala
persistence/mongodb-record/src/main/scala/net/liftweb/mongodb/record/MongoRecord.scala
pbrant/framework
apache-2.0
2,737
118
codeparrot/github-code
87c5b1037e1e9b12d7cd6aacdd73505731ed1bf2f9304cf5c1d47f0e2fe1c00b
#! /usr/bin/python # -*- coding: utf-8 -*- """ - 1. This model has 1,068,298 paramters and quantization compression strategy(weight:8 bits, active: 8 bits here, you can change the setting), after 705 epoches' training with GPU, test accurcy of 84.0% was found. - 2. For simplified CNN layers see "Convolutional layer (...
Python
examples/quantized_net/tutorial_quanconv_cifar10.py
zsdonghao/tensorlayer
apache-2.0
7,696
209
codeparrot/github-code
f641f80f9f59e371c84a13384f375b8334b560e521f58c1d506b0af9056d1acd
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>RouteBuildError class / routing Library / Dart Documentation</title> <link rel="stylesheet" type="text/css" href="../styles.css"> <link href="http://fonts.googleapis.com/css?family=Ope...
HTML
docs/routing/RouteBuildError.html
aliafshar/dart-routing
apache-2.0
3,699
114
codeparrot/github-code
16f81f3a56b82162db1b8871ead72a81e17955e48a141828a8fd6806c448582f
/* * Copyright 2014 Fulup Ar Foll. * * 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...
JavaScript
server/lib/_HttpClient.js
fulup-bzh/GeoGate
apache-2.0
8,325
211
codeparrot/github-code
066e44b847af8362e215d720e3bb06176cc9a0c39e2fd658f00652abaaeb659a
package com.fearthebadger.studio.rotator; import com.badlogic.gdx.Application; import com.badlogic.gdx.Gdx; import com.badlogic.gdx.Input; import com.badlogic.gdx.InputAdapter; import com.badlogic.gdx.Screen; import com.badlogic.gdx.graphics.GL20; import com.badlogic.gdx.graphics.Texture; import com.badlogic.gdx.graph...
Java
core/src/com/fearthebadger/studio/rotator/MainMenu.java
FearTheBadger/rotate
apache-2.0
4,154
147
codeparrot/github-code
8c45d4c5ed71e55c555d1fb049decedff89401ed1e77d7c461725a32ae7b30bd
package javactor.akka; import java.lang.reflect.Field; import java.lang.reflect.InvocationTargetException; import java.lang.reflect.Method; import java.util.Comparator; import java.util.Map; import java.util.Map.Entry; import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.TimeUnit; import javacto...
Java
src/main/java/javactor/akka/JavactorUntypedActor.java
mrpantsuit/javactor
apache-2.0
20,806
739
codeparrot/github-code
6be9c70398e6a8bd0fb8b2a1fe86ddb13baf8fb5471aadf19655c8cac71aeec2
#![macro_use] use std::str::Chars; use std::vec::Vec; use std::io::IoResult; use std::iter::repeat; use std::ascii::AsciiExt; #[derive(Clone)] pub struct ParseBranch { matches: Vec<u8>, result: Option<String>, children: Vec<ParseBranch>, } impl ParseBranch { fn new() -> ParseBranch { ParseBra...
Rust
codegen/branchify.rs
chris-morgan/rust-http
apache-2.0
6,360
156
codeparrot/github-code
c11203f3fb9cfaade06f618ba2d56506ca5575bac5295b6bd9833e7482cb6f15
/* global suite test internalScope */ (function () { suite('offsetPath', function () { test('basicShapeCircle', function () { var assertTransformInterpolation = internalScope.assertTransformInterpolation; assertTransformInterpolation([ {'offsetPath': 'circle(...
JavaScript
test/pathBasicShapeCircleTest.js
Motion-Path-Polyfill/motion-path-js
apache-2.0
4,232
76
codeparrot/github-code
62e1b4463cfd36589af00aa518b9aec785da3e2464bb4edadc4b1048e5bf8d5d
/** * Copyright © 2014 Jan Seeger * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed ...
Java
src/main/java/net/alphadev/ntfslib/structures/MasterFileTable.java
alphadev-net/ntfslib
apache-2.0
1,979
58
codeparrot/github-code
df9cb31f96719c91afb7123bef6dd7bd48c555e15145d732ca3bc75c1f1d3e7d
package com.sidelance.ngchat; import android.app.AlertDialog; import android.content.DialogInterface; import android.content.Intent; import android.os.Bundle; import android.support.design.widget.FloatingActionButton; import android.support.design.widget.Snackbar; import android.support.v7.app.AppCompatActivity; impor...
Java
NGChat/app/src/main/java/com/sidelance/ngchat/ForgotPassword.java
IV007/ng-chat
apache-2.0
4,340
122
codeparrot/github-code
7204e81422848eaa36117846a19ff8e2106e132d9e1f3d386376a2134e76bd12
class Solution { public: void connect(TreeLinkNode *root) { if (!root) return; if (root->left) { if (root->right) { root->left->next = root->right; } else { TreeLinkNode *p = root->next; while (p && !p->left && !p->right) p = p->nex...
C++
leetcode/cpp/connect_ii.cc
haonancool/OnlineJudge
apache-2.0
902
35
codeparrot/github-code
07485c1e82b5183c06bee953b9c4111a21e981a423980b70e745e1856c1d63dd
#include "mex.h" #include "math.h" /* RK4 is a function which performs one step of the Runge-Kutta 4 ray tracing * * EndPoint = RK4(StartPoint, GradientVolume, StepSize); * * inputs : * StartPoint: 2D or 3D location in vectorfield * GradientVolume: Vectorfield * Stepsize : The stepsize * * outp...
C
lib/FastMarching_version3b/shortestpath/rk4.c
lsqshr/Rivulet-Neuron-Tracing-Toolbox
apache-2.0
8,395
208
codeparrot/github-code
38459fca945ea9c3a003822ed90ada77157e89889ff244fa9811a1dd034515b4
/* * 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-amplify/source/model/DeleteBackendEnvironmentResult.cpp
cedral/aws-sdk-cpp
apache-2.0
1,499
51
codeparrot/github-code