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
c7c36f702a720f74c120188c76573c9cd7859879276a9dcafab23583f9a353fb
package com.walmart.labs.pcs.normalize.MongoDB.SpringBoot.service; import com.walmart.labs.pcs.normalize.MongoDB.SpringBoot.entity.Person; import com.walmart.labs.pcs.normalize.MongoDB.SpringBoot.repository.PersonRepository; import com.walmart.labs.pcs.normalize.MongoDB.SpringBoot.repository.PersonRepositoryImp; impor...
Java
src/main/java/com/walmart/labs/pcs/normalize/MongoDB/SpringBoot/service/PersonService.java
ArthurZhong/SparkStormKafkaTest
apache-2.0
925
33
codeparrot/github-code
c0bff400c3a28511b9f230116411bb0f4ebd38cf496d451948cdf8041b8af5a2
package edu.wsu.weather.agweathernet.helpers; import java.io.Serializable; public class StationModel implements Serializable { private static final long serialVersionUID = 1L; private String unitId; private String name; private String county; private String city; private String state; private String installati...
Java
src/edu/wsu/weather/agweathernet/helpers/StationModel.java
levanlevi/AgWeatherNet
apache-2.0
2,366
134
codeparrot/github-code
2fb6dda3618bb64c62927dab9a193b69d4d5ce08e45b51cb2ab017d3a3393baf
#!/usr/bin/env python # SIM-CITY client # # Copyright 2015 Netherlands eScience Center <info@esciencecenter.nl> # # 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/l...
Python
corpora/load_archive.py
nlesc-sherlock/analyzing-corpora
apache-2.0
1,507
56
codeparrot/github-code
e643fdf8563391b87ff97d5b41c7f9f9a219acef6aeed0a266dd58c007b2038b
package ca.uhn.fhir.jpa.term; /* * #%L * HAPI FHIR JPA Server * %% * Copyright (C) 2014 - 2016 University Health Network * %% * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * ...
Java
hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/term/VersionIndependentConcept.java
Gaduo/hapi-fhir
apache-2.0
1,149
50
codeparrot/github-code
caf86d799487d9c7b439d5256a8bdc9609e1ee19e10315d5444b510dc551dc7d
/* * 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-states/source/model/Tag.cpp
cedral/aws-sdk-cpp
apache-2.0
1,557
85
codeparrot/github-code
f235c038d518c9b787e2334cf1a609398c8e64868210ecb86b81d316b39bbce5
/** * Copyright 2015-2017 The OpenZipkin 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 ...
Java
benchmarks/src/main/java/zipkin/benchmarks/Span2ConverterBenchmarks.java
soundcloud/zipkin
apache-2.0
5,211
127
codeparrot/github-code
ba2e3ca5e68c131773e6424036f9f61d901c3c2b087f258d9d2c556827c3750a
// NOTE: this file should only be included when embedding the inspector - no other files should be included (this will do everything) // If gliEmbedDebug == true, split files will be used, otherwise the cat'ed scripts will be inserted (function() { var pathRoot = ""; var useDebug = window["gliEmbedDebug"]; ...
JavaScript
examples/js/embed.js
freekv/jpip.js
apache-2.0
4,075
130
codeparrot/github-code
5abfae4b566f3408c5474b30b1260ce5fd248d4845dc991a3a8fdc981f9cafcc
<?php require_once('auth.php'); ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <?php include '../connect.php'; $result = $db->prepare("SELECT * FROM products where qty < level ORDER BY product_id D...
PHP
stocktake/stocktake.php
mathunjoroge/pharmacy
apache-2.0
8,600
223
codeparrot/github-code
39d4fb117cf93e542d50e48754e4e630a7bbc5efb73beb911a4ed43113e6c43d
// <copyright file="CommandInfoRepository.cs" company="WebDriver Committers"> // Copyright 2007-2011 WebDriver committers // Copyright 2007-2011 Google Inc. // Portions copyright 2011 Software Freedom Conservancy // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file e...
C#
dotnet/src/WebDriver/Remote/CommandInfoRepository.cs
denis-vilyuzhanin/selenium
apache-2.0
13,268
164
codeparrot/github-code
2abd1a0145e2d4b021ccfd55aab91126f37893f512896315e1a8a3831e266c29
/* * Copyright 2015 Adobe Systems Incorporated * * 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...
Java
src/main/archetype/core/src/main/java/core/servlets/SimpleServlet.java
MyAccInt/aem-project-archetype
apache-2.0
2,367
57
codeparrot/github-code
7f739b2a0fbbc3e75eef641196da68ccb6c07e1e0353fed614ff076895bf0217
'use strict'; angular.module("ngLocale", [], ["$provide", function($provide) { var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; function getDecimals(n) { n = n + ''; var i = n.indexOf('.'); return (i == -1) ? 0 : n.length - i - 1; } function getVF(n...
JavaScript
nutrif-web/lib/angular/i18n/angular-locale_os.js
LADOSSIFPB/nutrif
apache-2.0
3,826
129
codeparrot/github-code
3ea3bf7ac2b6d2ee560adb09b1d6181a794f7dcf88b5d40d57ff5c076c1c8e2e
package com.comp.ninti.sportsmanager; import android.content.Intent; import android.os.Bundle; import android.os.Handler; import android.support.v7.app.AppCompatActivity; import android.support.v7.widget.Toolbar; import android.view.MenuItem; import android.widget.ListView; import com.comp.ninti.adapter.LeaderBoardAd...
Java
app/src/main/java/com/comp/ninti/sportsmanager/LeaderBoard.java
Nintinugga/SportsManager
apache-2.0
2,193
68
codeparrot/github-code
2409838f7784ec979e0227a898b5d55ffcf56d8ea82c0cd6e6c498990eda92ff
/** * www.bplow.com */ package com.bplow.netconn.systemmng.domain; /** * @desc 角色 * @author wangxiaolei * @date 2016年5月8日 下午4:30:39 */ public class RoleDomain { private String roleId; private String userId; private String roleName; private String roleDesc; public String getRoleId() {...
Java
ads/src/main/java/com/bplow/netconn/systemmng/domain/RoleDomain.java
ahwxl/ads
apache-2.0
810
45
codeparrot/github-code
6225544a6ad4cfa9ffeb5b75dffc378a431189270828a5f8c8715c2d95a42b5a
package it.breex.bus.impl.jms; import it.breex.bus.event.AbstractResponseEvent; import it.breex.bus.event.EventData; import it.breex.bus.event.EventHandler; import it.breex.bus.event.RequestEvent; import it.breex.bus.impl.AbstractEventManager; import java.util.UUID; import javax.jms.Connection; import javax.jms.Conn...
Java
breex-bus-jms/src/main/java/it/breex/bus/impl/jms/JmsEventManager.java
breex-it/breex-bus
apache-2.0
4,233
126
codeparrot/github-code
000c6ba8c01caee10b5c74812c88a3381f59bbf6ec8c261fc50bcb0bdb27805f
using System.Collections.Generic; using System.Linq; using CoolNameGenerator.GA.Chromosomes; using CoolNameGenerator.GA.Crossovers; using NUnit.Framework; using Rhino.Mocks; using TestSharp; namespace Test.GA.Crossovers { [TestFixture] [Category("Crossovers")] public class OrderedCrossoverTest { ...
C#
src/Test/GA/Crossovers/OrderedCrossoverTest.cs
Behzadkhosravifar/CoolNameGenerator
apache-2.0
5,007
135
codeparrot/github-code
9f356b50e2f551b8433608ef12a32048010ce1177a63c99b4d3ed64e780a37b0
/* * Copyright (C) 2006, 2007 Apple Inc. 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. Redistributions of source code must retain the above copyright * notice, this list of condit...
C
android/external/chromium_org/third_party/WebKit/Source/core/page/FocusController.h
indashnet/InDashNet.Open.UN2000
apache-2.0
4,915
126
codeparrot/github-code
d61ce0911848b916f02de9be9e96459832509f2e0fb234ce1116d1ad8b602294
/** * Copyright 2013 Oak Ridge National Laboratory * Author: James Horey <horeyjl@ornl.gov> * * 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/LI...
Java
src/gov/ornl/paja/storage/LogMessage.java
jhorey/Paja
apache-2.0
1,764
74
codeparrot/github-code
995c0b43cbccfad8cab7ba576ab587e63d6474c7d147f70bfd2129d1fcab7c6f
using Newtonsoft.Json; using Newtonsoft.Json.Converters; using SelectelSharp.Headers; using System; using System.IO; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace SelectelSharp.Requests.CDN { public class CDNIvalidationRequest : BaseReq...
C#
redistributable/SelectelSharp/Requests/CDN/CDNIvalidationRequest.cs
ONLYOFFICE/CommunityServer
apache-2.0
1,705
53
codeparrot/github-code
81f32d034f69570251672af382b49f06a5eb83cd63885290b9317f84c1031030
document.write('<div id="terminal" class="terminal-content"></div>'); var session = {}; // return a parameter value from the current URL function getParam(sname) { var params = location.search.substr(location.search.indexOf("?") + 1); var sval = ""; params = params.split("&"); // split param and value...
JavaScript
src/javarepl/console/ui/term.js
albertlatacz/java-repl
apache-2.0
8,438
269
codeparrot/github-code
43b953ffc89ae47892a20527c947c10988d17557e40c6b40887b62776ebdd567
#ifndef QIGTLIODEVICEWIDGET_H #define QIGTLIODEVICEWIDGET_H #include <QWidget> // igtlio includes #include "igtlioGUIExport.h" #include <vtkSmartPointer.h> #include <vtkObject.h> #include "qIGTLIOVtkConnectionMacro.h" typedef vtkSmartPointer<class igtlioDevice> igtlioDevicePointer; class qIGTLIODeviceWidget; cla...
C
GUI/DeviceWidgets/qIGTLIODeviceWidget.h
IGSIO/OpenIGTLinkIO
apache-2.0
1,172
49
codeparrot/github-code
fe99fa6577ed5eefe261cf1e74f5d7f71f40938e7a8ec423383fab505e51c8b0
angular.module('ssAuth').factory('SessionService', ['$http', '$cookies', '$q', function($http, $cookies, $q){ var currentUser = {}; var currentFetch; currentUser.isAdmin = function() { return currentUser && currentUser.groups && currentUser.groups['Admins']; }; var getCurrentUser = functi...
JavaScript
public/app/shared/session.service.js
spaceshipsamurai/samurai-auth
apache-2.0
1,933
83
codeparrot/github-code
6c5ad9978f397c078a92d58b0f515c817fb920e1d69454ee2abad9c9ada3231e
/** * @license Copyright 2017 Google Inc. All Rights Reserved. * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 * Unless required by applicable law or a...
JavaScript
lighthouse-core/test/gather/gatherers/dobetterweb/optimized-images-test.js
tkadlec/lighthouse
apache-2.0
5,402
171
codeparrot/github-code
a591073a4bca493aa36685a0d91bc9d45c76f9e636dd9ca05b47156a6fc23c2b
package smartchess object square { type TSquare = Int type TFile = Int type TRank = Int val BOARD_SIZE_SHIFT = 3 val BOARD_SIZE = 1 << BOARD_SIZE_SHIFT val HALF_BOARD_SIZE = BOARD_SIZE / 2 val HALF_BOARD_SIZE_MINUS_ONE = HALF_BOARD_SIZE - 1 val BOARD_AREA_SHIFT = BOARD_SIZE_SHIFT * 2 val BOARD_...
Scala
shared/src/main/scala/shared/smartchess/square.scala
serversideapps/silhmojs
apache-2.0
2,229
88
codeparrot/github-code
ff71eedbba57027d66e354e2b28d23f999a19f40b51afc176c6843dbd5c165a2
/* * 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/main/java/michid/jsonjerk/LevelOrderJsonParser.java
mduerig/json-jerk
apache-2.0
6,473
194
codeparrot/github-code
7666df4c624151f12c54937a2cc535f52695587896b0b64d951fe11a150c3eb8
/**************************************************************************\ * This file is part of CaSPER. * * * * Copyright: * * 2009-20...
C++
bindings/xcsp/parser.cpp
marcovc/casper
apache-2.0
20,252
663
codeparrot/github-code
ba8b39e5fba169270586668eed13f7f886473e6906929a35b9456717403dff93
/* 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 not use this f...
GO
openchain/consensus/controller/controller.go
ghaskins/obc-peer
apache-2.0
1,587
49
codeparrot/github-code
5c42997710233dd028e115a94b75f42090c009225f4f00a2646180326da96e19
#region Copyright 2010 by Roger Knapp, Licensed under the Apache License, Version 2.0 /* 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 * ...
C#
src/SvnPlugin/MyPlugin.cs
csharptest/JiraSVN
apache-2.0
16,265
521
codeparrot/github-code
2f3a19d6e83ed793554cb1a5289dfb82d410462452c2ef6697ab61556dd39c89
<?xml version='1.0' encoding='UTF-8'?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> <html> <head> <title>DateField - ScalaTest 2.2.4 - org.scalatest.selenium.WebBrowser.DateField</title> <meta name="description" content="DateField - ScalaT...
HTML
public/scaladoc/2.2.4/org/scalatest/selenium/WebBrowser$DateField.html
scalatest/scalatest-website
apache-2.0
43,433
669
codeparrot/github-code
4523a1bca81912f9aee0f24dedaaffbbe4d9749e7f5e80340d2cf37918029737
<!DOCTYPE html > <html> <head> <meta http-equiv="X-UA-Compatible" content="IE=edge" /> <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" /> <title>ScalaTest 3.0.8 - org.scalatest.fixture.AsyncFreeSpecLike.ResultOfTaggedAsInv...
HTML
public/scaladoc/3.0.8/org/scalatest/fixture/AsyncFreeSpecLike$ResultOfTaggedAsInvocationOnString.html
scalatest/scalatest-website
apache-2.0
50,288
788
codeparrot/github-code
e3250a15d67f01215313a622a40003f56022cf118a6c2980a85c2fb96a914017
package com.twu.biblioteca.service.impl; import com.twu.biblioteca.mapper.BookListMapper; import com.twu.biblioteca.mapper.MyBatisUtil; import com.twu.biblioteca.model.Book; import com.twu.biblioteca.service.BookListService; import org.apache.ibatis.session.SqlSession; import java.util.ArrayList; public class BookLi...
Java
src/main/java/com/twu/biblioteca/service/impl/BookListServiceImpl.java
niuwanlu/twu-biblioteca-niuwanlu-tdd
apache-2.0
863
31
codeparrot/github-code
31290cb32a68001333537dacf9e0a93276792cc54a05f2d7c333fc023c25a143
/************************************************************************** * Copyright 2015 John Denholm * * * * Licensed under the Apache License, Version 2.0 (the "License"); * * you may not us...
C
src/carbon-copy/selfstats.h
ghostflame/ministry
apache-2.0
2,263
68
codeparrot/github-code
41ee7d5b036773b8c0d046d2dff1e331bd57e3a4479652634b45897a3b66154b
/* * Copyright 2015 Thomas Hoffmann * * 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/play/java/de/j4velin/wifiAutoOff/GeoFenceService.java
j4velin/WiFi-Automatic
apache-2.0
3,340
76
codeparrot/github-code
2d34d0475c8b0a9d4bcba37a30a257123d4ea4369637e2066ab9d47969d6d219
/* * Copyright 2015-2020 OpenCB * * 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
opencga-analysis/src/test/java/org/opencb/opencga/analysis/individual/qc/IndividualQcUtilsTest.java
opencb/opencga
apache-2.0
6,198
135
codeparrot/github-code
1aaf1bb359ae7eac842ddf4d06799e22a0c58069dc83380d7798f68adb45331e
// Copyright 2000-2019 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file. package com.siyeh.ig.redundancy; import com.google.common.collect.ImmutableSet; import com.intellij.codeInspection.ex.InspectionElementsMergerBase; import com.intellij.util.Array...
Java
plugins/InspectionGadgets/src/com/siyeh/ig/redundancy/RedundantStringOperationMerger.java
leafclick/intellij-community
apache-2.0
2,723
85
codeparrot/github-code
004e2f17d372e54099078c81b946a84ba33d3bd4de8faafe8a93cdd1266eb56c
<?xml version='1.0' encoding='UTF-8'?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> <html> <head> <title>Scaladoc for org.scalatest.matchers.Matchers.ResultOfHaveWordForJavaList</title> <meta http-equiv="content-type" content="text/html; c...
HTML
public/scaladoc/1.2/org/scalatest/matchers/Matchers$ResultOfHaveWordForJavaList.html
scalatest/scalatest-website
apache-2.0
31,083
588
codeparrot/github-code
8499542d52503cd497565ef1b81b1a8c1458de3b97e4d31f524e8db449488dbf
// Copyright 2000-2021 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file. package com.intellij.openapi.module.impl; import com.intellij.configurationStore.RenameableStateStorageManager; import com.intellij.ide.highlighter.ModuleFileTy...
Java
platform/lang-impl/src/com/intellij/openapi/module/impl/ModuleImpl.java
jwren/intellij-community
apache-2.0
12,736
401
codeparrot/github-code
2ff0a9fdfde6adf4c0499caa8bda2fafa57a436db2b3b176f0802f6995a78700
package com.xsolla.android.sdk.data.model; import java.util.List; public class XHoldSubscriptionStatus { private String status; private List<XMessage> errors; private XApi api; public String getStatus() { return status; } public List<XMessage> getErrors() { return errors; ...
Java
xsollasdk/src/main/java/com/xsolla/android/sdk/data/model/XHoldSubscriptionStatus.java
xsolla/xsolla-sdk-android
apache-2.0
827
39
codeparrot/github-code
906b0a516d5db771acbd941c51d67dad4bfa4736ce865e6d6b9fffd8b6329847
package com.almende.dialog.example.agent; import java.io.Serializable; import java.net.URLDecoder; import java.util.ArrayList; import java.util.Arrays; import java.util.HashSet; import java.util.List; import java.util.Set; import java.util.logging.Logger; import javax.ws.rs.Consumes; import javax.ws.rs.GET; import ja...
Java
dialoghandler/src/main/java/com/almende/dialog/example/agent/YesNoAgent.java
almende/dialog
apache-2.0
7,159
242
codeparrot/github-code
cdb5c64c6aae86c42378d20a55fe3a7cd107aec99565e6af8a1be59140dddea2
package com.suscipio_solutions.consecro_mud.Commands; import java.util.Vector; import com.suscipio_solutions.consecro_mud.MOBS.interfaces.MOB; import com.suscipio_solutions.consecro_mud.core.CMParms; @SuppressWarnings("rawtypes") public class NoFollow extends Follow { public NoFollow(){} private final String[] ac...
Java
com/suscipio_solutions/consecro_mud/Commands/NoFollow.java
ConsecroMUD/ConsecroMUD
apache-2.0
1,837
63
codeparrot/github-code
5470d04c22544f269216658cdbbf7280b166e761b6eb5916845ff96c866aa77b
/** Copyright 2008 University of Rochester 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
ir_core/src/edu/ur/ir/researcher/ResearcherLink.java
nate-rcl/irplus
apache-2.0
5,358
231
codeparrot/github-code
6b330ea3c59260688ed5186bc13fc74742eb3c78d8b76bcd19cd8976d5ccc78b
package org.dbflute.erflute.db.impl.mysql; import java.sql.ResultSet; import java.sql.SQLException; import java.util.ArrayList; import java.util.List; import org.dbflute.erflute.editor.model.dbimport.DBObject; import org.dbflute.erflute.editor.model.dbimport.PreImportFromDBManager; public class MySQLPreTableImportMa...
Java
src/org/dbflute/erflute/db/impl/mysql/MySQLPreTableImportManager.java
dbflute-session/erflute
apache-2.0
1,947
57
codeparrot/github-code
de69a6b9331b1397e245d97041f455c068c6ef75c2659b0aadcdfa39180b2814
package org.gradle.test.performance.mediummonolithicjavaproject.p36; import org.junit.Test; import static org.junit.Assert.*; public class Test730 { Production730 objectUnderTest = new Production730(); @Test public void testProperty0() { String value = "value"; objectUnderTest.setP...
Java
my-lib/src/test/java/org/gradle/test/performance/mediummonolithicjavaproject/p36/Test730.java
oehme/analysing-gradle-performance
apache-2.0
2,107
79
codeparrot/github-code
126277f2b5cb4af721d9b98f952063207d6b42fea7f6608c0984e498cc0893d6
/** * Copyright 2016 Yahoo 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
libs/java/server_common/src/main/java/com/yahoo/athenz/common/metrics/impl/NoOpMetric.java
tatyano/athenz
apache-2.0
1,436
58
codeparrot/github-code
96acc411cfcafb200c178a2883c290dc5c3b7f7a30660baadc552323a0a605ec
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you...
Scala
sql/catalyst/src/test/scala/org/apache/spark/sql/catalyst/CatalystTypeConvertersSuite.scala
wangyixiaohuihui/spark2-annotation
apache-2.0
4,072
98
codeparrot/github-code
04fcfc91e68124d997f02894cd5f2f50ee4fe1b4c4e3cf6f252f3a20e09066c5
/* * JBoss, Home of Professional Open Source. * Copyright 2014 Red Hat, Inc., and individual contributors * as indicated by the @author tags. * * 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 Licen...
Java
core/src/main/java/io/undertow/attribute/ThreadNameAttribute.java
emag/codereading-undertow
apache-2.0
1,955
65
codeparrot/github-code
ed7a8e8eab8c289eb3090032405f2dc58ac502440500a368f9dde17328c600c2
package org.techniche.technothlon.katana.tcd; import android.content.Context; import android.content.SharedPreferences; import android.database.Cursor; import android.database.sqlite.SQLiteDatabase; import android.net.ConnectivityManager; import android.net.NetworkInfo; import android.os.AsyncTask; import android.os.L...
Java
katana/src/main/java/org/techniche/technothlon/katana/tcd/TCDContent.java
znck/technothlon-android-app
apache-2.0
13,524
343
codeparrot/github-code
da9769a02b75c92f1f620fdfae83d211ede60e87fc971dfaa355245fe38fda3c
/** * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may...
Java
components/camel-spring/src/test/java/org/apache/camel/spring/scan/DefaultPackageScanClassResolverTest.java
punkhorn/camel-upstream
apache-2.0
8,636
202
codeparrot/github-code
9b61d9edc214af836a51f6d001f86d5c5bca5f4d792bb17f3412db1a8899dec8
import {Component} from '@angular/core'; import {NgbActiveModal} from '@ng-bootstrap/ng-bootstrap'; import {Category} from 'idai-field-core'; import {ProjectConfiguration} from '../../../core/configuration/project-configuration'; @Component({ selector: 'link-modal', templateUrl: './link-modal.html', host:...
TypeScript
desktop/src/app/components/image/overview/link-modal.component.ts
codarchlab/idai-field-client
apache-2.0
902
36
codeparrot/github-code
9d97291838ee7a95442522426f975e05447b480f83cd0af26ef537f480788852
/* * Copyright 2016-present Open Networking Foundation * * 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
protocols/snmp/ctl/src/test/java/org/onosproject/snmp/ctl/DefaultSnmpControllerTest.java
opennetworkinglab/onos
apache-2.0
4,414
126
codeparrot/github-code
00378497ab5cdc693eea10983670c87043b3e725e6a08d4d1b34323ae29c6169
package com.zaaach.citypicker.db; import android.content.Context; import android.database.Cursor; import android.database.sqlite.SQLiteDatabase; import android.os.Environment; import com.zaaach.citypicker.model.City; import java.io.File; import java.io.FileOutputStream; import java.io.IOException; import java.io.Inp...
Java
SelectWidget/city/CityPicker/citypicker/src/main/java/com/zaaach/citypicker/db/DBManager.java
weiwenqiang/GitHub
apache-2.0
3,876
114
codeparrot/github-code
f25fa9c3ea615ef50f13ab7e4bd9638cc28956bb9e37a94222fabad266c89764
// Copyright (C) 2012-2018 Leap Motion, Inc. All rights reserved. #pragma once #include "AutoFilterDescriptor.h" namespace autowiring { /// <summary> /// A single subscription counter entry /// </summary> struct SatCounter: AutoFilterDescriptor { SatCounter(void) = default; SatCounter(const AutoFilterDescripto...
C
src/autowiring/SatCounter.h
leapmotion/autowiring
apache-2.0
1,359
59
codeparrot/github-code
687f5f72fe2cd1cc52411c84abe1410958bd23e859a2c987edf5be8269221e66
using Hyperstore.CodeAnalysis.Syntax; using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Hyperstore.CodeAnalysis.Compilation { public class HyperstoreCompiler { private readonly string _basePath; privat...
C#
Hyperstore.CodeAnalysis/Compilation/HyperstoreCompiler.cs
Hyperstore/Hyperstore.CodeAnalysis
apache-2.0
4,430
142
codeparrot/github-code
b79e06f2acb470984979c5faa0e39aa93942a37b804b82cc4bc06f417c346638
// Copyright 2019 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 agreed to in ...
TypeScript
functions/src/automlapi.ts
FirebaseExtended/mlkit-custom-image-classifier
apache-2.0
11,363
403
codeparrot/github-code
23578ef27e3ba2965db7ecf7ac93b0317e48837702130d4d9aa06c91b5410c8f
package com.huawei.esdk.sms.north.http.common; import java.io.ByteArrayInputStream; import java.io.IOException; import java.util.ArrayList; import java.util.List; import javax.xml.parsers.DocumentBuilder; import javax.xml.parsers.DocumentBuilderFactory; import javax.xml.parsers.ParserConfigurationException; import o...
Java
source/esdk_sms_neadp_http/src/main/java/com/huawei/esdk/sms/north/http/common/AbstractXMLProcessor.java
eSDK/esdk_sms
apache-2.0
4,493
127
codeparrot/github-code
c03c2d28730f3596f41f6c4ae4e5db0f3ae6a4f5b855ccc756b19f3c63b560e0
/* * Copyright [1999-2017] Wellcome Trust Sanger Institute and the EMBL-European Bioinformatics Institute * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.o...
C
src/DataModel/IntronSupportingEvidence.h
Ensembl/ensc-core
apache-2.0
5,064
115
codeparrot/github-code
688b53c32e53137f1d6e2c350aef4cc9bb7b13ff0d3ba747abfbe0f5f191d173
# 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/framework/function.py
kobejean/tensorflow
apache-2.0
43,277
1,235
codeparrot/github-code
03a3cbb5f67c63f1f8ae23efbb3acee9de8f4692df0af7638b7acb0e80e573e8
//************************************************************* // Filename: socket.js // // Author: Jake Higgins <jth7036@rit.edu> //************************************************************* var Socket; function addSocketListeners() { Socket = new io(); Socket.on('sync objects', function(objects, room, ca...
JavaScript
update/public/static/scripts/socket.js
IGME-Production-Studio/driftwoodrp
apache-2.0
2,530
105
codeparrot/github-code
6380a03ccca8962a734ec944719c1614252c11e60d37a0f1424d28efc5742525
package ch.unibe.scg.regex; import static java.util.Collections.singleton; import java.util.ArrayList; import java.util.Collection; import java.util.List; import java.util.SortedSet; import java.util.TreeSet; import ch.unibe.scg.regex.ParserProvider.Node; import ch.unibe.scg.regex.ParserProvider.Node.Basic; import c...
Java
src/ch/unibe/scg/regex/RegexToNFA.java
nes1983/tree-regex
apache-2.0
10,402
271
codeparrot/github-code
e62396c3a0d468bdc47880de6e67ee3726e53f1ba110edb3109915a2ea623d13
/* * Copyright (c) 2015 TextGlass * * 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
client/src/TransformerIsNumber.java
TextGlass/reference
apache-2.0
972
36
codeparrot/github-code
064fd84a8042ceefbd311e8a8b004c606d5280388417b4c58998bc7aba950335
/* * Copyright (c) 2017 Martin Pfeffer * * 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 ag...
Java
library/src/main/java/com/pepperonas/materialdialog/adapter/ShareAdapter.java
pepperonas/MaterialDialog
apache-2.0
3,990
133
codeparrot/github-code
9085837d37fd39bfb618c3e6737d7c2b4e79f6bd948c6e3bd51ff04588cbac93
// Copyright Istio 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 in wri...
GO
pkg/test/echo/server/forwarder/util.go
istio/istio
apache-2.0
1,156
43
codeparrot/github-code
6e8b8c5b792fa2f2cc06e49ec4d0a54cef66298e81eb202ae63cf94bfc0a95af
package com.siqisoft.stone.admin.dict.controller; import java.util.List; import org.siqisource.stone.dict.model.Dict; import org.siqisource.stone.dict.service.DictService; import org.siqisource.stone.orm.condition.Condition; import org.siqisource.stone.ui.AjaxResponse; import org.siqisource.stone.ui.Notify; ...
Java
src/main/java/com/siqisoft/stone/admin/dict/controller/DictController.java
ylyxf/stone-sdk
apache-2.0
2,443
82
codeparrot/github-code
f7ff8597f66560b090d7fe75ed76c8a8583ff3801493d3933821a37993f25432
<?php if (!defined('BASEPATH')) exit('No direct script access allowed'); class MY_Model extends CI_Model { // Variável que define o nome da tabela var $table = ""; /** * Método Construtor */ function __construct() { parent::__construct(); } /** * Insere um registro na tabela * * @param arr...
PHP
application/core/MY_Model.php
ChristianHerber/UebiControl
apache-2.0
2,973
156
codeparrot/github-code
cd5bd3434426ba4a371fc107474e5e4492da82828c7fc2003c54e54fa0d53359
package com.nguyenmanhtuan.benhandientu; import android.app.Activity; import android.content.Intent; import android.content.res.Configuration; import android.content.res.Resources; import android.os.Bundle; import android.util.DisplayMetrics; import android.view.View; import android.widget.Button; import android.widge...
Java
BenhAnDienTu/src/com/nguyenmanhtuan/benhandientu/RegisteredActivity.java
techmaster-prj/BenhAnDienTu
apache-2.0
2,788
76
codeparrot/github-code
645325ba9045afcb1ec07d0dbc605d604553a6ec177404f228cf808ef778a608
package com.vertabelo.mobileorm.myplaces.orm.gen; public class AddressViewDAOImpl extends com.vertabelo.mobileorm.myplaces.orm.runtime.dao.BaseDAO<AddressView> implements AddressViewDAO { public AddressViewDAOImpl(com.vertabelo.mobileorm.myplaces.orm.runtime.util.SQLiteDataSource dataSource) { ...
Java
app/src/main/java/com/vertabelo/mobileorm/myplaces/orm/gen/AddressViewDAOImpl.java
Vertabelo/mobiorm-demo-android
apache-2.0
6,557
134
codeparrot/github-code
410c020bdd37616b9318cc82268c293726c3728cce950d7334ef5b874351e8b7
/* * 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
flink-libraries/flink-cep/src/test/java/org/apache/flink/cep/operator/CEPMigrationTest.java
zhangminglei/flink
apache-2.0
24,021
727
codeparrot/github-code
c628b84ec9578b3f659e351bf070e530908d6ff8f91d75ab1fab8b9500f0bd7b
// Copyright 2000-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file. package com.intellij.codeInsight.generation; import com.intellij.codeInsight.AnnotationUtil; import com.intellij.codeInsight.intention.AddAnnotationPsiFix; import com.intellij.op...
Java
java/java-impl/src/com/intellij/codeInsight/generation/OverrideImplementsAnnotationsHandler.java
paplorinc/intellij-community
apache-2.0
3,542
78
codeparrot/github-code
fe19fa2ed7e59bd3823a9b7da30554020bf5f0d67bf55ef5cda1bc30c146bac2
package com.chisw.work.addressbook.test; import com.chisw.work.addressbook.Data.GroupData; import com.chisw.work.addressbook.Data.Groups; import org.testng.annotations.BeforeMethod; import org.testng.annotations.Test; import static org.hamcrest.CoreMatchers.equalTo; import static org.hamcrest.MatcherAssert.assertThat;...
Java
addressbook/src/test/java/com/chisw/work/addressbook/test/TestGroupModification.java
Tarrest/java_home
apache-2.0
1,230
36
codeparrot/github-code
039688108c6c2688e447a4725c789fc56963c569740e2485a0d089c842f5fd6d
/** * Copyright 2017 dialog LLC <info@dlg.im> * @flow */ import type { PeerInfo } from '@dlghq/dialog-types'; import type { AvatarSize } from '../Avatar/getAvatarSize'; import type { Gradient } from '../Avatar/getAvatarColor'; import React, { PureComponent } from 'react'; import classNames from 'classnames'; impor...
JavaScript
src/components/DoublePeerAvatar/DoublePeerAvatar.js
nolawi/champs-dialog-sg
apache-2.0
6,308
242
codeparrot/github-code
40721d3ac5f9d71c782eb83c04973f7310e77c8effe04cd26aa7fab4e4f38e92
# ormbad.version # Helper module for ORMBad version information # # Author: Benjamin Bengfort <benjamin@bengfort.com> # Created: Thu Aug 13 12:38:42 2015 -0400 # # Copyright (C) 2015 Tipsy Bear Studios # For license information, see LICENSE.txt # # ID: version.py [] benjamin@bengfort.com $ """ Helper module for ORM...
Python
ormbad/version.py
tipsybear/ormbad
apache-2.0
1,161
41
codeparrot/github-code
df0c0782745684fee3ed1b23441c33ecadbd7e02dfc055cbb18aae841e81f0f3
/** * Created by raj on 19/8/14. */ var fs = require('fs'); var content = fs.read ('animeEpisode.json'); console.log(JSON.stringify(JSON.parse(content)[1][0].title)); videolinks=JSON.parse(content); links=[]; function pages(k) { var page = new WebPage(); page.open('http://www.gogoanime.com/', functi...
JavaScript
recent.js
msandeepraj211/phantom
apache-2.0
1,995
53
codeparrot/github-code
5a5f59d48fdb86b52e269bf460d9a0d9e133cfc32c5ac824f581122e8e6488d1
#!/usr/bin/python # # Copyright 2017 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required b...
Python
python/samples/v2_x/create_bidder_level_filter_set.py
googleads/googleads-adxbuyer-examples
apache-2.0
7,717
205
codeparrot/github-code
bf9ed749a88d4539b3dfca071cc4f600ed81cb028e9767f6ed0f0a374b353e7e
/******************************************************************************* * Copyright 2006 - 2012 Vienna University of Technology, * Department of Software Technology and Interactive Systems, IFS * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except i...
Java
plato-model/src/main/java/eu/scape_project/planning/model/transform/Transformer.java
openpreserve/plato
apache-2.0
4,334
125
codeparrot/github-code
ea3e293336b6164f4805f7742d0e6b8d33bb61c60994fddc6055500c9a924eba
// Copyright (C) 2013 The Android Open Source Project // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable ...
Java
src/main/java/com/googlesource/gerrit/plugins/hooks/rtc/network/HttpPatch.java
GerritCodeReview/plugins_hooks-rtc
apache-2.0
999
39
codeparrot/github-code
1f9120a9010b4e52d9457dfcf64a6ef500c4cbb78bfc034a9d766f52e63993ae
/* * ************************************************************************* * Copyright (C) FRS Belgium NV ("FRSGlobal"). All rights reserved. * * This computer program is protected by copyright law and international * treaties. Unauthorized reproduction or distribution of this program, * or any portion of it,...
Java
Java/appengine-code/appengine-web-ui/src/java/org/cluj/bus/servlet/BusScheduleServlet.java
abotos/ClujLiveTransit
apache-2.0
3,589
105
codeparrot/github-code
d5df90680b19cdc58dd04a4161ac2609439064b74f555026877809dd4386fe31
/** * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may...
Java
components/camel-netty4/src/main/java/org/apache/camel/component/netty4/NettyComponent.java
logzio/camel
apache-2.0
5,124
140
codeparrot/github-code
48007ab5dd76f7fa4e95a681b8e397bf0fbaa7279f1e75c8703f2a41b25f7c1f
/* * 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
tomcat-8.5.20/java/org/apache/catalina/valves/rewrite/Resolver.java
IAMTJW/Tomcat-8.5.20
apache-2.0
1,568
49
codeparrot/github-code
2ba1dab8572113b506239eaf7ab67a2348dc7af4868297bfb731ff0a23cb35be
/* * 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
droids-core/src/main/java/org/apache/droids/impl/SequentialTaskMaster.java
fogbeam/Heceta_droids
apache-2.0
4,864
173
codeparrot/github-code
89584f18f7bee69407c68ed73425f00c476f2d56ea5c84a926944a1b14f4b5eb
// 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; using System.Collections.Immutable; using System.Composition; using System.Threading; using System.Th...
C#
src/Features/CSharp/Portable/Completion/CompletionProviders/KeywordCompletionProvider.cs
reaction1989/roslyn
apache-2.0
9,812
208
codeparrot/github-code
aff9d51ae65c53100995812f34bac80f2125b1f438065b6a5a1da5494a15e4f4
package com.wjyup.coolq.util; import com.alibaba.fastjson.JSON; import com.alibaba.fastjson.JSONObject; import com.google.common.hash.HashCode; import com.google.common.hash.HashFunction; import com.google.common.hash.Hashing; import com.google.gson.JsonObject; import org.apache.logging.log4j.LogManager; import org.ap...
Java
src/main/java/com/wjyup/coolq/util/SendMessageUtil.java
ForeverWJY/CoolQ_Java_Plugin
apache-2.0
1,723
58
codeparrot/github-code
d74bb9c14d43abd5ade5578b2b896eecf6850e31656f13b210cb849c2adc463c
/* * Copyright 2014–2017 SlamData Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agr...
Scala
mongodb/src/main/scala/quasar/physical/mongodb/javascript/package.scala
drostron/quasar
apache-2.0
2,411
87
codeparrot/github-code
828ac94608535898a531c5366f2ad99cd4759867cb7c6afa7fbbb8d6fbc7fca9
# quick demo of some python image filters # using raspberry pi camera import Tkinter as tk from picamera import PiCamera from time import sleep from PIL import Image,ImageFilter,ImageChops,ImageTk imagefile = "image.jpg" w = 320 h = 240 lastfilter = "none" camera = PiCamera() def takephoto(): camera.capture(imagefi...
Python
camera_try.py
emschimmel/CameraPi
apache-2.0
2,985
108
codeparrot/github-code
0751f929a847b7dbefe8d7593d05f2137c1c7bc314e7643333fe091114060a33
/** * Copyright (c) 2008-2010 Andrey Somov * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or...
Java
src/main/java/org/yaml/snakeyaml/tokens/DirectiveToken.java
spariev/snakeyaml
apache-2.0
1,789
62
codeparrot/github-code
142981bd5f85404bc5ba1d70b51ed4cd225dec76f8006b18b914cec2adab5972
/* Copyright 2018 Nationale-Nederlanden 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
core/src/test/java/nl/nn/adapterframework/http/cxf/SoapProviderTest.java
ibissource/iaf
apache-2.0
16,059
403
codeparrot/github-code
91bc2670eda325933db71fdcbd4b51cd0bea088a207e0bc7f83475cfaad5a773
package mx.emite.sdk.scot.request; import java.util.List; import javax.validation.Valid; import javax.validation.constraints.NotNull; import org.hibernate.validator.constraints.NotEmpty; import lombok.Builder; import lombok.Data; import lombok.Singular; import mx.emite.sdk.cfdi32.anotaciones.Rfc; import mx.emite.sd...
Java
ef-sdk-java/src/main/java/mx/emite/sdk/scot/request/SucursalesAltaRequest.java
emite-mx/ef-sdk-java
apache-2.0
1,030
60
codeparrot/github-code
a795aba131bef8f6c29a4f9b87ea0c86b0f5418c041cba2bed3260defde31d56
/* * Copyright 2016-present Facebook, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); you may * not use this file except in compliance with the License. You may obtain * a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or...
Java
src/com/facebook/buck/rust/RustTestDescription.java
vschs007/buck
apache-2.0
6,463
183
codeparrot/github-code
60dcf7c108c0316f505b87d3aa0a9505b3af479a81a06ed6e550678942ed42fc
/* Copyright IBM Corp. 2016 All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in wri...
GO
core/crypto/attributes/attributes.go
shangsony/fabric_sdk_golang
apache-2.0
9,892
274
codeparrot/github-code
85edd0e1c7bed5c6ddd73f1f3be6975a0afc79fc4ce0abb66c526878b325e9ab
/* bme680.c - Driver for Bosch Sensortec's BME680 temperature, pressure, * humidity and gas sensor * * https://www.bosch-sensortec.com/bst/products/all_products/bme680 */ /* * Copyright (c) 2018 Bosch Sensortec GmbH * * SPDX-License-Identifier: Apache-2.0 */ #include "bme680.h" #include <gpio.h> #include <i2c...
C
drivers/sensor/bme680/bme680.c
GiulianoFranchetto/zephyr
apache-2.0
11,979
430
codeparrot/github-code
7fa4fa043c881e3cb6df03431eb400f6db67ff3c8e6c40108e9442f8730d43ff
/* * 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
examples/shardingsphere-sample/shardingsphere-example-generated/shardingsphere-jdbc-sample/shardingsphere-jdbc-memory-local-db-discovery-spring-namespace-jdbc-example/src/main/java/org/apache/shardingsphere/example/db/discovery/spring/namespace/jdbc/repository/AddressRepository.java
apache/incubator-shardingsphere
apache-2.0
4,185
104
codeparrot/github-code
2f0f2e0bab755dff3c7e08bc0341971816467ee80decb6d72edfba6fdd2a4a5a
/** * @file eigen-tools.h * @brief header file containing all header with eigen API and tools functions * * .. invisible: * _ _ _____ _ _____ _____ * * | | | | ___| | | ___/ ___| * * | | | | |__ | | | |__ \ `--. * * | | | | __|| | | __| `--. \ * * \ \_/ / |___| |___| |___/\...
C
src/utils/Eigen/eigen-tools.h
zy4kamu/Coda
apache-2.0
13,529
479
codeparrot/github-code
cc19304c8801e827c6bf4b26b6c30b846209fad65770a61e49b92159e02f446d
import styled, { css as styledCss, keyframes } from 'styled-components' import type { TTestable } from '@/spec' import Img from '@/Img' import { theme } from '@/utils/themes' import css from '@/utils/css' const DURATION = '2.5s' const load = keyframes` 0% { top: 24px; } 70% { top: 10px; } 90% { ...
TypeScript
src/widgets/Charger/styles/index.ts
mydearxym/mastani
apache-2.0
3,323
210
codeparrot/github-code
3cec0235f61bd3809e53714c787535357b39e77703157e20fc53bf3d50ac9afa
/* * Copyright (c) 2017 Antony Esik * * 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
camunda-task-dispatcher-mapper-xml/src/main/java/com/ae/camunda/dispatcher/mapper/xml/XmlTaskMapper.java
EsikAntony/camunda-task-dispatcher
apache-2.0
1,991
60
codeparrot/github-code
8621b55c228a93c8de3a6f9e9c95402762a7e7bf2345e4d2cabdfe8e1873f439
/* Copyright 2022 The Vitess 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 in writing, soft...
GO
go/vt/vtgate/planbuilder/physical/system_tables.go
vitessio/vitess
apache-2.0
4,314
135
codeparrot/github-code
cbbb01581e47bfffa78631e0b3c1735bd16fec6c6780dd25ced6ac19ed16dcf1
"""Support for switches which integrates with other components.""" import logging import voluptuous as vol from homeassistant.components.switch import ( ENTITY_ID_FORMAT, PLATFORM_SCHEMA, SwitchEntity, ) from homeassistant.const import ( ATTR_ENTITY_ID, ATTR_FRIENDLY_NAME, CONF_ENTITY_PICTURE_...
Python
homeassistant/components/template/switch.py
titilambert/home-assistant
apache-2.0
6,023
195
codeparrot/github-code
f028fc6fb464f218af8116707a2a58534516c53a3d2d1c481d56b2cc89d69e32
package org.whale.ext.domain; import java.util.ArrayList; import java.util.List; import org.whale.system.annotation.jdbc.Column; import org.whale.system.annotation.jdbc.Id; import org.whale.system.annotation.jdbc.Table; import org.whale.system.annotation.jdbc.Validate; import org.whale.system.base.BaseEntry; import o...
Java
system-parent/ext-code/src/main/java/org/whale/ext/domain/Domain.java
fywxin/base
apache-2.0
3,661
208
codeparrot/github-code
47373e215d84bbe9db1f19d9198558a45002ca37bc9961f25141024119a05cc7
/* * syscall.cpp * * Created on: Jun 3, 2017 * Author: warlo */ #include "syscall.hpp" #include <diag\Trace.h> namespace os { #if 0 static void dispatch_syscall(void) naked_function; static void dispatch_syscall(void) { __asm__ __volatile__ ( " sub sp, sp, #16\n" /* Create a stack frame ...
C++
f9_os/inc/os/syscall.cpp
WarlockD/arm-cortex-v7-unix
apache-2.0
2,217
86
codeparrot/github-code
a09b6f974feb98f0142046b0c5deffebfa2d1fb0c3e962cec22cb0d0c4cb13cf
# 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 # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing...
Python
fedopt_guide/cifar10_resnet/federated_cifar10.py
google-research/federated
apache-2.0
5,796
146
codeparrot/github-code
1b4e3e64ac4352f50a698bcb3e5a91fb846c2466cb9969e6698741f2478168ed
/* ========================================================================= * * Boarder * * http://boarder.mikuz.org/ * * ========================================================================= * ...
Java
src/fi/mikuz/boarder/util/ContextUtils.java
Mikuz/Boarder
apache-2.0
2,556
55
codeparrot/github-code
d39278254c3a657aed0700668a22ce33fa88748b2484b3a759b2909826a45cdb
/* * Copyright 2017 StreamSets 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
sdc-kafka_0_8/src/main/java/com/streamsets/pipeline/kafka/impl/KafkaProducer08.java
kunickiaj/datacollector
apache-2.0
6,836
172
codeparrot/github-code
bbc8a6d523c090ba1f575cf783c812e681111da27938987f1b448a3b4d4f47b1
/* * Copyright 2014-2019 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-docdb/src/main/java/com/amazonaws/services/docdb/model/transform/EventStaxUnmarshaller.java
jentfoo/aws-sdk-java
apache-2.0
3,623
98
codeparrot/github-code