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
2b01b66548a79f674df971f55b2ca4b8b59d2ad8f6299228d7958c5c6087767d
import traceback import os import signal from .import _executor from .. import devices from .. import worker class SerialExecutor( _executor.Executor, ): def sigabrt_handler( self, signal_num, frame, ): try: self.tasks_to_finish.remove(self.current_task) ...
Python
tasker/executor/serial.py
wavenator/tasker
apache-2.0
2,868
110
codeparrot/github-code
acb4beed4106e16900a6bf877c47762c69c36fa6e3e828ef76947a26c62915c9
#include "IntStack.h" using namespace std; static int mSIZE = 16; static int MINSIZE = 1<<15; IntStack::IntStack() { init(mSIZE); } IntStack::IntStack(int size) { init(size); } void IntStack::init(int size) { stack.resize(size); clear(); } int IntStack::getTop() { return top; } int IntStack::setTop(i...
C++
cProlog/c_src/IntStack_1.cpp
leruce/iCJS
apache-2.0
2,008
130
codeparrot/github-code
9e981ae73e34af8dd3316cf26654f0000a9a04a99ad8eab889f773649626f027
package net.community.chest.io.output; import java.io.Closeable; import java.io.FilterWriter; import java.io.IOException; import java.io.Writer; import net.community.chest.io.IOAccessEmbedder; import net.community.chest.io.OptionallyCloseable; /** * Copyright 2007 as per GPLv2 * * Embeds an {@link Writer} while a...
Java
chest/base-utils/io/src/main/java/net/community/chest/io/output/WriterEmbedder.java
lgoldstein/communitychest
apache-2.0
2,714
116
codeparrot/github-code
bcebf01d162a0f660b51601ba2da11326a777a2a470a461bed402f633475e333
package org.livingdoc.engine.execution.examples.scenarios; import org.jetbrains.annotations.NotNull; import org.livingdoc.api.fixtures.scenarios.After; import org.livingdoc.api.fixtures.scenarios.Before; import org.livingdoc.api.fixtures.scenarios.Binding; import org.livingdoc.api.fixtures.scenarios.Step; import stat...
Java
livingdoc-engine/src/test/java/org/livingdoc/engine/execution/examples/scenarios/ExtendedLifeCycleFixture.java
Drakojin/livingdoc2
apache-2.0
1,912
88
codeparrot/github-code
503218fef5541110af7478893ff6170ae2d5e53703d7653e202184c5ecbaec86
/* Copyright 2013 Software Reliability Lab, ETH Zurich 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...
C++
src/eventracer/trialwebapp/WebRaceAnalyzer.cpp
zhanglu623/EventRacer-WebKit
apache-2.0
7,828
269
codeparrot/github-code
685456b64ed84dcff595ec15e3e9704e09a54133e9121da2b847ee9fc53b189b
package SmsReceiversend; import java.util.LinkedList; import java.util.List; import android.content.BroadcastReceiver; import android.content.Context; import android.content.Intent; import android.os.Bundle; import android.telephony.gsm.SmsMessage; import android.widget.Toast; public class Sms extends BroadcastRecei...
Java
src/SmsReceiversend/Sms.java
obensoud/ducking-octo-meme
apache-2.0
1,184
42
codeparrot/github-code
f7745ada1af01fa1b68858792f8bcd02b7048be74764ac25108bddb20ea21f8e
/** * <a href="http://www.openolat.org"> * OpenOLAT - Online Learning and Training</a><br> * <p> * Licensed under the Apache License, Version 2.0 (the "License"); <br> * you may not use this file except in compliance with the License.<br> * You may obtain a copy of the License at the * <a href="http://www.apache...
Java
src/main/java/org/olat/core/commons/services/taskexecutor/model/PersistentTask.java
stevenhva/InfoLearn_OpenOLAT
apache-2.0
7,262
267
codeparrot/github-code
6cfd7e4b573634057a2751f79d95feab141054e57ce88a5a0402bd6a368e2ea5
/** * Copyright 2017 Yahoo Holdings, 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
clients/java/zms/examples/tls-support/src/main/java/com/yahoo/athenz/example/zms/tls/client/ZMSTLSClient.java
yahoo/athenz
apache-2.0
7,376
176
codeparrot/github-code
14b5c3cc81184b9e0fb9b99d927f9814b9961f404d6ebac69a57d375a436983a
/* Copyright 2017 The TensorFlow Authors. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or a...
C++
tensorflow/contrib/lite/toco/graph_transformations/quantize.cc
jart/tensorflow
apache-2.0
28,035
648
codeparrot/github-code
8a752f82c0d088d636379f7f8c21fe3a64b2b89381a0fbfac52966acefa6dc77
package com.acg12.ui.fragment; import android.os.Bundle; import android.os.Handler; import android.support.v4.app.Fragment; import android.support.v4.widget.SwipeRefreshLayout; import android.support.v7.widget.RecyclerView; import android.text.TextUtils; import android.view.View; import com.acg12.entity.CollectSubje...
Java
module_app/src/main/java/com/acg12/ui/fragment/CollectSubjectFragment.java
KouChengjian/acg12-android
apache-2.0
5,871
173
codeparrot/github-code
35072b5d0656f0cb3e4249526a48103cdf6d29966a64679f42faafdee52be6c9
import numpy as npy import struct import os from scipy import io as scio from mxnet import io as mxio def ReadFvecs(dataPath, dataFile, start=0, end=-1): filePath=os.path.join(dataPath,dataFile) with open(filePath,mode="rb") as fid: buf=fid.read(4) dimFeat=struct.unpack("i", buf[:4]) ...
Python
DeepHash/common/data.py
galad-loth/DescHash
apache-2.0
3,986
119
codeparrot/github-code
f10974e0ebdd01b5b1175b20fa518331b31d65f389a66a0dcb2562843814e744
/*Copyright 2014 George Karagoulis 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, softwar...
C
src/core/utils/chess960.h
karagog/GKChess
apache-2.0
1,465
51
codeparrot/github-code
02662ffcfe44d8d856886521a16e26bac6c05fbc836f03c2edb36fc887ebf69a
// Copyright 2020 The PEGASUS 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 agr...
C++
pegasus/ops/parsing_utils.cc
google-research/pegasus
apache-2.0
1,888
46
codeparrot/github-code
2482460ae65bf96e890a49b5141689f50fffcd6fec69f610a7ad3d57e9b83499
// Copyright (c) 2018 Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify, merge...
GO
src/m3ninx/index/segment/fst/encoding/docs/data.go
m3db/m3db
apache-2.0
6,222
241
codeparrot/github-code
68a5fe76ce2e1cfda9afa87c4f59808799349c2791d0680b6fda27501de4e5cd
/* * Copyright 2016 kohii * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, s...
Java
smoothcsv-app-modules/smoothcsv-core/src/main/java/com/smoothcsv/core/filter/FilterDialog.java
kohii/smoothcsv
apache-2.0
2,138
66
codeparrot/github-code
a3239da777a458a4c22ea12ab8bc3c4ab0843e55b2e412a9c4086cf50a5dee80
package co.da.jmtg.amort; import java.math.BigDecimal; import java.math.RoundingMode; import java.util.HashMap; import java.util.Iterator; import java.util.Map; import java.util.Set; import java.util.SortedMap; import org.joda.time.LocalDate; import co.da.jmtg.pmt.PmtCalculator; import co.da.jmtg.pmt.PmtPeriod; impo...
Java
src/main/java/co/da/jmtg/amort/DefaultFixedAmortizationCalculator.java
darmstrong1/jmortgage
apache-2.0
50,695
1,283
codeparrot/github-code
e3fb084953b1c411f0321de253dedf03bde927e7fee25f01c14c4a906064d8b3
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="description" content=""> <meta name="author" content=""> <title>Blog Home Template for Bootstrap 3</title> <!-- Bootstrap core CSS --> <link h...
HTML
blog-home.html
davvit/Alpha
apache-2.0
6,539
153
codeparrot/github-code
eb7bcf9db1e4d82734c6cd4fc71c3444f77ade73b3bc75561770b70c2ca4efca
package org.ovirt.engine.core.bll.gluster; import static org.junit.Assert.assertFalse; import static org.junit.Assert.assertTrue; import static org.mockito.Matchers.any; import static org.mockito.Mockito.doReturn; import static org.mockito.Mockito.spy; import java.util.ArrayList; import java.util.List; import org.ju...
Java
backend/manager/modules/bll/src/test/java/org/ovirt/engine/core/bll/gluster/AddBricksToGlusterVolumeCommandTest.java
OpenUniversity/ovirt-engine
apache-2.0
10,273
277
codeparrot/github-code
178b1f8063887a28ec94c543357a0c1c64a979843d3187aea62aa9fa4834f868
/* ----------------------------------------------------------------------------- * Rule_cmdSputChar.java * ----------------------------------------------------------------------------- * * Producer : com.parse2.aparse.Parser 2.3 * Produced : Fri Apr 12 10:40:21 MUT 2013 * * --------------------------------------...
Java
src/main/java/com/litecoding/smali2java/parser/cmd/get7put/sput/Rule_cmdSputChar.java
Crysty-Yui/smali2java
apache-2.0
6,726
254
codeparrot/github-code
1a19578dbeef3aa44178ee7e63abd26514d936b9aba785e06046fb271855bcff
/* JAT: Java Astrodynamics Toolkit * * Copyright (c) 2003 The JAT Project. All rights reserved. * * This file is part of JAT. JAT is free software; you can * redistribute it and/or modify it under the terms of the * NASA Open Source Agreement, version 1.3 or later. * * This program is distributed in the hope ...
Java
src/main/resources/libs/JAT/jat/cm/rendezvous/DeltaV_Generator.java
MaximTar/satellite
apache-2.0
9,325
328
codeparrot/github-code
f6d57dde4ff4bc5f1351279a93fbb3626ccd39d497aac0733295dcd57ccd26a5
/* * Copyright Copyright 2012, System Insights, 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 requi...
C++
agent/globals.cpp
Ghost-script/cppagent
apache-2.0
6,904
343
codeparrot/github-code
316f1b30568a57c7e66e4f959fb7557bae9d16558f16758677d5b3150bf1daf5
package com.pearson.docussandra.domain.objects; /** * Enum for types of data that we can index on. * * @author https://github.com/JeffreyDeYoung */ public enum FieldDataType { /** * Use when indexing on normal strings. */ TEXT, /** * Use when indexing on date times that could occur in a...
Java
docussandra-domain/src/main/java/com/pearson/docussandra/domain/objects/FieldDataType.java
PearsonEducation/Docussandra
apache-2.0
3,232
117
codeparrot/github-code
82677bfc8cb9a3fa7cde5976802142fe8d502116c089eb862661731ba09150e5
/* * Copyright 2014 Frugal Mechanic (http://frugalmechanic.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...
Scala
shared/src/main/scala/fm/common/rich/RichAtomicInteger.scala
frugalmechanic/fm-common
apache-2.0
1,358
34
codeparrot/github-code
47abbd8f4790fc0ef8dfe3a3d4a55e7f6c465f8478eccd5d3b796e1d0d7dce6b
/* * Copyright 2014–2018 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
connector/src/test/scala/quasar/qscript/qsu/ExpandShiftsSpec.scala
jedesah/Quasar
apache-2.0
9,869
326
codeparrot/github-code
7023c1a67a33f13b658fe17e47ba262b8ffd717847012a6460a728f2604200e0
/* * 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
server/gc/src/main/java/org/apache/accumulo/gc/GCExecutable.java
mikewalch/accumulo
apache-2.0
1,424
47
codeparrot/github-code
044ee25996d06839af00c80d1a398383f56c89b348b9f1d79707ad27d9bbb6e0
/** * Copyright 2017 Hortonworks. * * 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
streams/catalog/src/main/java/com/hortonworks/streamline/streams/catalog/Projection.java
hortonworks/streamline
apache-2.0
4,560
144
codeparrot/github-code
e0e1b9166a5dc71ef2f3d775231cbdfe947b0df5a8345657ffbd88e924924dec
package main import ( "errors" "fmt" "io/ioutil" "github.com/containers/image/signature" "github.com/urfave/cli" ) func standaloneSign(context *cli.Context) error { outputFile := context.String("output") if len(context.Args()) != 3 || outputFile == "" { return errors.New("Usage: skopeo standalone-sign manif...
GO
cmd/skopeo/signing.go
mikebrow/skopeo
apache-2.0
2,750
91
codeparrot/github-code
3046c669339d0a1d3e22002c72b61ffc193e58a5e9438c942cd82cb0f084b2fa
/* * 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-metrics/flink-metrics-dropwizard/src/test/java/org/apache/flink/dropwizard/ScheduledDropwizardReporterTest.java
zimmermatt/flink
apache-2.0
8,107
240
codeparrot/github-code
5fe0340069e09956e8efa24bcec611704a98a5f9e536bb696fa570519e78ada4
package com.lysdev.transperthcached.livetimes import android.net.Uri import android.util.Log import scala.collection.JavaConverters._ import scala.xml.{XML,Elem} object Util { def getXML(raw_url: String) : Elem = { getXML(raw_url, Map[String,String]()) } def getXML(raw_url: String, queryParams:...
Scala
src/com/lysdev/transperthcached/livetimes/Util.scala
Mause/TransperthCached
apache-2.0
944
35
codeparrot/github-code
e9043cff3f1c9cd38d8d305f96b5530b74b0154b08372d24d9abfb1ec4d98fa4
package me.chanjar.weixin.cp.bean.oa; import com.google.gson.annotations.SerializedName; import lombok.Data; import java.io.Serializable; import java.util.List; /** * 企业微信打卡规则. * * @author Element * @date 2019-04-06 13:22 */ @Data public class WxCpCheckinOption implements Serializable { private static final l...
Java
weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/oa/WxCpCheckinOption.java
Wechat-Group/WxJava
apache-2.0
3,301
146
codeparrot/github-code
4edeaba63b815dea09bae16a696fb86531c78e6043bf1279e1dd79d3a6cfa53b
'use strict'; var debug = require('debug')('torpedo:strategies:hunter'); var StrategyInterface = require('./StrategyInterface'); var Field = require('../Game/Field'); var RandomStrategy = require('./Random'); class Hunter extends StrategyInterface { constructor() { super(); this._randomStrategy ...
JavaScript
src/Strategies/Hunter.js
filecage/torpedo
apache-2.0
1,832
63
codeparrot/github-code
527d58129bccc96d98cf7acd982a230e52b59dc9a14e0b93c4ff86f50f9c03e1
define(['marionette', 'backbone', 'views/table', 'views/validatedrow', 'utils', 'modules/shipment/collections/distinctproteins', 'modules/imaging/collections/screencomponents', 'modules/imaging/models/screencomponent', 'utils/editable', 'tpl!templates/imaging/screencomponentgroup.html', 't...
JavaScript
client/js/modules/imaging/views/screencomponentgroup.js
tcspain/SynchWeb
apache-2.0
6,098
235
codeparrot/github-code
793d10fdffef78b83c76df2f861d0ec4b7b3cd4871f36c22baf42c68fad0e8cb
/* * 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/filters/CorsFilter.java
IAMTJW/Tomcat-8.5.20
apache-2.0
44,158
1,174
codeparrot/github-code
d0a7a98c16f7200036859dc820f50755caf4874713837d64605064755de4278b
/* * Copyright 2010 Red Hat, Inc. and/or its affiliates. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by ap...
Java
kie-simulation/src/main/java/org/kie/simulation/core/command/runtime/GetChannelsCommand.java
markcoble/droolsjbpm-integration
apache-2.0
1,309
42
codeparrot/github-code
a4307388bae62d6089bf6eb260f255e04c6714724c1e82a75808db225788cf75
/** * Copyright 2018 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 ...
JavaScript
src/utils/package-json-utils.js
GoogleChromeLabs/detect-es-version
apache-2.0
1,416
48
codeparrot/github-code
8f2f9aa2c30c5d3cbd76bfe76ce0fcd6845e66a8761893176ea19c06cbbeb7e6
@(user: Option[model.User], hackathonId: Long, teamId: Option[Long] = None)(implicit request: Request[AnyContent], lang: Lang) @user.map { user => <div class="content"> <p>@helpers.CmsMessages("chat.write")</p> <div><input id="input" /></div> <p>@helpers.CmsMessages("chat.messages")</p> <div id="box"></div> <div...
HTML
app/views/tags/chat.scala.html
lukaszbudnik/hackaton-portal
apache-2.0
1,627
52
codeparrot/github-code
a26087b38c144adf3e35ad281a34fd9b6f7689985cfd04e05b017ee3c7743af7
<?php /** * This is the model class for table "sucursal". * * The followings are the available columns in table 'sucursal': * @property integer $idSucursal * @property string $nombre * @property string $detalle * * The followings are the available model relations: * @property CTP[] $cTPs * @property Almacen[...
PHP
admin/protected/models/Sucursal.php
hyms/singulargrafic
apache-2.0
3,303
114
codeparrot/github-code
f5e777ffaf5d1068f7e3015b0e453b6a9a664fc234b42598e6932db1b3ecf6a6
#!/usr/bin/env perl # Copyright [1999-2015] 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://ww...
Perl
scripts/import/tag_snps.pl
dbolser/ensembl-variation
apache-2.0
9,845
352
codeparrot/github-code
d7e886f167f884f0e511c83d8de104345f9c14fa9859e365a406560b797078a7
/* * Copyright 2012 Roman Kashitsyn * * 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
src/main/java/org/rulesdsl/rules/FuncRule.java
roman-kashitsyn/rules-dsl
apache-2.0
1,253
43
codeparrot/github-code
8961baa98dc01303458529beeda870a9df92505e2ca7f1b537e9f7c783ed12a9
package bookshop2.supplier.incoming.shipBooks; import static javax.ejb.ConcurrencyManagementType.BEAN; import java.io.Serializable; import javax.ejb.ConcurrencyManagement; import javax.ejb.Local; import javax.ejb.Singleton; import javax.ejb.Startup; import javax.ejb.Stateful; import javax.inject.Inject; import org....
Java
bookshop2/bookshop2-supplier/bookshop2-supplier-service/src/main/java/bookshop2/supplier/incoming/shipBooks/ShipmentCompleteListenerForEJB.java
tfisher1226/ARIES
apache-2.0
1,423
63
codeparrot/github-code
5954796a9a1bbf0fcabd6a13819ec641e8cc74ce58cb5fdc74305fbe3a3b6521
/* Copyright 2012 Dennis Grewe * * 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
aCARdeRun/src/de/hdm/mib/dg041/game/MenuScreen.java
Anntex/aCARdeRUN
apache-2.0
20,926
454
codeparrot/github-code
e7442c06371841395f6f7e39b40c3f290579d6befdb166597c505ea64d224c9d
package com.me.diankun.shopdemo; import android.content.Context; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.BaseAdapter; import android.widget.TextView; import java.util.List; /** * Created by diankun on 2016/2/19. */ public clas...
Java
NavigationOne/shopdemo/src/main/java/com/me/diankun/shopdemo/NewsAdapter.java
qdiankun/navigation
apache-2.0
1,556
59
codeparrot/github-code
dc03616d29c1de51bb2dd2df9ff1d325c14a0bfbb1fbc12e2a7b7796ce8b69b2
/* * Copyright 1999-2010 Luca Garulli (l.garulli--at--orientechnologies.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 ...
Java
core/src/main/java/com/orientechnologies/orient/core/type/tree/OMVRBTreeEntryDatabase.java
cloudsmith/orientdb
apache-2.0
3,863
118
codeparrot/github-code
541154c673b93e838715b0c79a4c2c5ad664786bf46355a9702ae63bc373f449
# -*- coding:utf-8 -*- # # Copyright 2014 Hewlett-Packard Development Company, L.P. # # SPDX-License-Identifier: Apache-2.0 import bandit from bandit.core import test_properties as test def get_bad_proto_versions(config): return config['bad_protocol_versions'] def gen_config(name): if name == 'ssl_with_bad...
Python
.aux/venv/lib/python3.9/site-packages/bandit/plugins/insecure_ssl_tls.py
sonntagsgesicht/regtest
apache-2.0
9,646
254
codeparrot/github-code
eb281da515749e5d22766cadba16db865727744bd951a13ca5ff021617dbba0c
// Copyright 2017 Google Inc. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in w...
Java
src/codeu/chat/client/simplegui/UserPanel.java
chilimalone/chat-app-for-funsies
apache-2.0
9,126
245
codeparrot/github-code
732d768ace6573f9fd00dc78d3f000cab6a32e4c5978d07f8df8071ede2cf656
/* Copyright 2017 The TensorFlow Authors. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or a...
C
tensorflow/compiler/xla/service/dfs_hlo_visitor.h
jendap/tensorflow
apache-2.0
13,437
351
codeparrot/github-code
6932aec991d6a127cb9e3a8645d8967300b9b9213553860f27a9431104530c9a
# -*- coding: utf-8 -*- """ Core application tasks """ from celery.decorators import task from django.core.mail import EmailMessage from atmosphere import settings from threepio import celery_logger, email_logger from core.models.status_type import get_status_type @task(name="send_email") def send_email(subject, ...
Python
core/tasks.py
CCI-MOC/GUI-Backend
apache-2.0
1,847
62
codeparrot/github-code
2e4475e3679b69c329ea9c8a60a5f9f30710642858e0c54cb1c65d9e786d7ec0
package com.pungwe.cms.jpa.module.services; import com.pungwe.cms.core.annotations.stereotypes.Module; import com.pungwe.cms.core.module.ModuleConfig; import com.pungwe.cms.core.module.services.ModuleConfigService; import com.pungwe.cms.jpa.module.ModuleConfigImpl; import com.pungwe.cms.jpa.module.repository.ModuleCon...
Java
jpa-persistence/src/main/java/com/pungwe/cms/jpa/module/services/JPAModuleConfigService.java
thunderbird/pungwecms
apache-2.0
3,012
106
codeparrot/github-code
b4b5c964e8220b7c23a1ba6e9130a9dd6ade64029595b74f1d1a16b485d3a1eb
# -.- coding: utf8 -.- import math, random import matplotlib.pyplot as plt class City: Label = "" X = 0 Y = 0 def __init__(self, x=None, y=None, label=''): if x is None and y is None: random.seed() self.X = random.randint(-100,100) self.Y = random.randint(-100,100) else: self.X = x self.Y = y...
Python
felipe-python/TS.py
FelipeLimaM/sa-traveling-salesman
apache-2.0
3,688
167
codeparrot/github-code
96b0941516715847a0c03ef19dad793eec9b82c8bd7ee31f127f1370e68eb5d6
package org.sedorn.screenshotter.server.json; import java.io.IOException; import java.io.Writer; /* Copyright (c) 2006 JSON.org Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restrictio...
Java
src/org/sedorn/screenshotter/server/json/JSONWriter.java
SeDornEnt/sedorn.xyz
apache-2.0
10,379
328
codeparrot/github-code
9b9243271c53f3f06c8708d9f726aa4c90f5b7c80319267de59cefe6fdecd6e5
/* * 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 ...
Java
geode-wan/src/main/java/org/apache/geode/internal/cache/wan/GatewaySenderEventRemoteDispatcher.java
deepakddixit/incubator-geode
apache-2.0
32,227
839
codeparrot/github-code
555fb8a5f4f960c24a33e821c55e0796674751101aa3d1f4901c8e437e0ac360
/* * Copyright © 2019 Cask Data, 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 ag...
Java
src/main/java/io/cdap/plugin/zuora/objects/CreditMemoTaxItemFromInvoiceTaxItemType.java
data-integrations/zuora
apache-2.0
5,613
172
codeparrot/github-code
6bb2ca8cd05854fc172be3fa3b3411b338b7bca211abe17fcec4cae7762dbc56
class loginCtrl { constructor(scope, location, authService, ngAuthSettings){ this.scope=scope; this.authService=authService; this.location=location; this.ngAuthSettings=ngAuthSettings; this.init(); } init(){ this.loginData = { userName: "", password: "", ...
JavaScript
reactApp/Scripts/Components/login/loginCtrl.js
JUkhan/directives
apache-2.0
2,369
78
codeparrot/github-code
dc75f756432cbe5b71f9c176427a84aa0ffe55ed7146e714d1744f1bdd5634a7
import re import collections from enum import Enum from ydk._core._dm_meta_info import _MetaInfoClassMember, _MetaInfoClass, _MetaInfoEnum from ydk.types import Empty, YList, YLeafList, DELETE, Decimal64, FixedBitsDict from ydk._core._dm_meta_info import ATTRIBUTE, REFERENCE_CLASS, REFERENCE_LIST, REFERENCE_LEAFLI...
Python
cisco-ios-xr/ydk/models/cisco_ios_xr/_meta/_Cisco_IOS_XR_aaa_aaacore_cfg.py
111pontes/ydk-py
apache-2.0
2,032
50
codeparrot/github-code
c360552a429339647105148ccdb0f35b65c0a81f99dcd9555cba8f53693405a6
/* * Copyright 2011-2012 The myBatis Team * * 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...
Scala
src/main/scala/org/mybatis/scala/samples/select/SelectImmutableSample.scala
mnesarco/mybatis-scala-samples-beta2
apache-2.0
2,506
97
codeparrot/github-code
b169ea39e3f93dc07d64282e7f2949accd639a1353589dae076c6b6f91b4f1a8
package watcher import ( "context" "strconv" "strings" "sync" "time" "github.com/pkg/errors" "github.com/rancher/norman/controller" "github.com/rancher/rancher/pkg/controllers/user/alert/common" "github.com/rancher/rancher/pkg/controllers/user/alert/manager" "github.com/rancher/rancher/pkg/controllers/user/...
GO
pkg/controllers/user/alert/watcher/pod.go
cjellick/rancher
apache-2.0
10,419
340
codeparrot/github-code
0ec25788322c2799ca903fd43806f863620a147f2b7096cd0f59714647faeda9
/* Copyright 2019 Istio 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 applicab...
C++
src/envoy/http/alpn/config.cc
istio/proxy
apache-2.0
2,164
62
codeparrot/github-code
84fe039aad928d63a1332b9a072b703a7137cd1cb0ecf3ec8fb7180041d1a2b5
/* * Copyright (c) 2008-2017, Hazelcast, 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 ...
Java
hazelcast/src/main/java/com/hazelcast/map/impl/querycache/subscriber/SubscriberAccumulatorHandler.java
emrahkocaman/hazelcast
apache-2.0
2,824
70
codeparrot/github-code
441231b10839aa21213fd47ddca585f2ba1eb02826c779502626da2fefedc02e
package scredis.protocol.requests import scala.language.higherKinds import scredis.protocol._ import scredis.serialization.{ Reader, Writer } import scala.collection.generic.CanBuildFrom object HashRequests { import scredis.serialization.Implicits.stringReader import scredis.serialization.Implicits.doubleRead...
Scala
src/main/scala/scredis/protocol/requests/HashRequests.scala
1and1/scredis
apache-2.0
5,701
187
codeparrot/github-code
371c35a3a253256c48a8d9696a780e4b28c28a87b4863439ec5546c37b2cddf0
# This Makefile builds Felix and packages it in various forms: # # Go install # Glide # | # ...
Makefile
Makefile
matthewdupre/felix
apache-2.0
15,985
419
codeparrot/github-code
3da9942a8d6193c1fa5a31f7df5d5e21faba5fac10af49777f029b0eb6e6f66f
/*************************************************************** * * Copyright (C) 1990-2007, Condor Team, Computer Sciences Department, * University of Wisconsin-Madison, WI. * * Licensed under the Apache License, Version 2.0 (the "License"); you * may not use this file except in compliance with the License. Yo...
C++
src/condor_collector.V6/collector_engine.cpp
bbockelm/condor-network-accounting
apache-2.0
33,902
1,302
codeparrot/github-code
91ac765b1f745f0b77a2d9459870d114f618a55c7936c153dcfd4540096385b9
#if !defined(lint) && !defined(DOS) static char rcsid[] = "$Id: rfc2231.c 1012 2008-03-26 00:44:22Z hubert@u.washington.edu $"; #endif /* * ======================================================================== * Copyright 2006-2008 University of Washington * Copyright 2013-2015 Eduardo Chappa * * Licensed unde...
C
pith/rfc2231.c
RsrchBoy/dpkg-alpine
apache-2.0
6,807
314
codeparrot/github-code
43c230128179372922e56677df14bc2de4e6b5991358eea542a06cc8460dea66
/* * Copyright 2016 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applica...
Java
subprojects/core/src/main/java/org/gradle/api/internal/changedetection/state/DefaultNormalizedFileSnapshot.java
gstevey/gradle
apache-2.0
1,066
32
codeparrot/github-code
6cb9e9302786776e5aaa3f1fea870f7200642c14fbdbd745e4b32e7f0653ca16
package com.github.gwtmaterialdesign.client.dto; /* * #%L * GwtMaterial * %% * Copyright (C) 2015 - 2016 GwtMaterialDesign * %% * 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
src/main/java/com/github/gwtmaterialdesign/client/dto/DataHelper.java
GwtMaterialDesign/gwt-material-patterns
apache-2.0
8,676
118
codeparrot/github-code
5e67501319233a8bacb5e8c4ba512a4086301b1a2b1ee5f05b421993d6195465
<?php abstract class HeraldController extends PhabricatorController { public function buildStandardPageResponse($view, array $data) { $page = $this->buildStandardPageView(); $page->setApplicationName(pht('Herald')); $page->setBaseURI('/herald/'); $page->setTitle(idx($data, 'title')); $page->set...
PHP
src/applications/herald/controller/HeraldController.php
telerik/phabricator
apache-2.0
1,827
69
codeparrot/github-code
6966e6e36f07b689a84e500a72540cfe9f12ebc8d0f132672bc22e0c1094b3c1
/* Copyright 2018 Jonathan Realmuto Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, s...
C
library/include/log.h
jonreal/openWearable
apache-2.0
1,578
60
codeparrot/github-code
fa46415082def27fea8eaeeb37d73b65587fd893a2ac7f77f66939229656dec1
#pragma once #include "geometry/screenbase.hpp" namespace df { extern string const kPrettyMoveAnim; bool CheckMinScale(ScreenBase const & screen); bool CheckMaxScale(ScreenBase const & screen); bool CheckMaxScale(ScreenBase const & screen, uint32_t tileSize, double visualScale); bool CheckBorders(ScreenBase const &...
C++
drape_frontend/screen_operations.hpp
stangls/omim
apache-2.0
1,231
34
codeparrot/github-code
095f937ac10af3032adb15028c93710eed3033ef06aa0aea004a3239d6580313
/* * JBoss, Home of Professional Open Source * Copyright 2011 Red Hat Inc. and/or its affiliates and other contributors * as indicated by the @authors tag. All rights reserved. * See the copyright.txt in the distribution for a * full listing of individual contributors. * * Licensed under the Apache License, Vers...
Java
core/src/main/java/org/jboss/arquillian/persistence/jpa/cache/JpaCacheEvictionHandler.java
rmpestano/arquillian-extension-persistence
apache-2.0
6,356
148
codeparrot/github-code
aff909cbb0e9e5c97adc90dd0ac5cd92a9019745aa2c069b9e09108dd51b6648
package io.cloudslang.content.jclouds.execute; import io.cloudslang.content.jclouds.entities.inputs.ServerIdentificationInputs; import io.cloudslang.content.jclouds.entities.outputs.Outputs; import io.cloudslang.content.jclouds.factory.ComputeFactory; import io.cloudslang.content.jclouds.services.ComputeService; impor...
Java
score-jClouds/src/test/java/io/cloudslang/content/jclouds/execute/StartServerExecutorTest.java
gituser173/score-actions
apache-2.0
3,071
77
codeparrot/github-code
37ef5c2865b4e304becc5155d94236818b3bf6ec7a06ee1ae710dcce27f8927f
using System; using PetaPoco; using Newtonsoft.Json; namespace sl.model { /// <summary> /// 审核结果 /// </summary> [TableName("T_ReviewResult")] [PrimaryKey("pkId")] [ExplicitColumns] public class T_ReviewResult { [Column] [JsonProperty("pkId")] public string pkId ...
C#
Server/HRAM-SNUServer/sl.model/model/T_ReviewResult.cs
862573026/SchoolHRProj
apache-2.0
691
33
codeparrot/github-code
7982c980f5df6540129c8133bc0410e3847308d2a361051cba7815f6a1a17d1c
package de.softwareforge.pgpsigner.commands; /* * Copyright (C) 2007 Henning P. Schmiedehausen * * See the NOTICE file distributed with this work for additional * information * * Licensed under the Apache License, Version 2.0 (the "License"); you * may not use this file except in compliance with the License. *...
Java
src/java/de/softwareforge/pgpsigner/commands/WriteCommand.java
hgschmie/pgpsigner
apache-2.0
2,793
105
codeparrot/github-code
d4f7edb8d3c3b7d5609e6ef599ebb5c4de23c5c8dea813b2427866d60701523f
package pipe; import cc.mallet.pipe.Pipe; import cc.mallet.types.Alphabet; import cc.mallet.types.Instance; import cc.mallet.types.Label; import cc.mallet.types.LabelAlphabet; /** * Source: * http://code.google.com/p/dualist/source/browse/trunk/core/src/dualist/ * pipes/Labelize.java?r=10 * */ public class Labe...
Java
classify/src/main/java/pipe/Labelize.java
curtisullerich/twittertrader
apache-2.0
984
40
codeparrot/github-code
5ff79a8daae4c7a995bc51b3f7038cb9cf6ba8cc14734607b078715bde34104f
package com.planet_ink.coffee_mud.Abilities.Languages; import com.planet_ink.coffee_mud.core.CMLib; /* Copyright 2014-2022 Bo Zimmerman 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
com/planet_ink/coffee_mud/Abilities/Languages/WormSpeak.java
bozimmerman/CoffeeMud
apache-2.0
1,145
47
codeparrot/github-code
a7ec6a1963c7989cf8984f3de640728414842e0c59b1a53cf20ed752dd334107
/* * 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...
Java
src/uma/wdi/fusion/Evaluator.java
ms90/wdi-data-fusion
apache-2.0
5,253
171
codeparrot/github-code
149ede21a85af4e50d68c455ecc9beb059b47342615d62e77bdf84aae5787f5f
package com.googlecode.blaisemath.graphics; /* * #%L * blaise-graphics * -- * Copyright (C) 2009 - 2021 Elisha Peterson * -- * 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
blaise-graphics/src/main/java/com/googlecode/blaisemath/graphics/UpdatingGraphicComposite.java
triathematician/blaisemath
apache-2.0
3,941
129
codeparrot/github-code
ce893d6ae5c1daf00337fe71c68bb17b5dbb1fd959060de09a14312b743a873b
/************************************************************************** * ItemInfo.java is part of Touch4j 4.0. Copyright 2012 Emitrom 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 Licen...
Java
src/com/emitrom/touch4j/charts/client/interactions/ItemInfo.java
paulvi/touch4j
apache-2.0
2,403
53
codeparrot/github-code
46d6f856f75e1d1028c34e337c968fb3ab11afcd53d05c9449a0a1c3de5a2095
 using System.Json; using System.Collections.Generic; using System; using SuperMap.Web.Core; using SuperMap.Web.Utilities; namespace SuperMap.Web.iServerJava6R { /// <summary> /// <para>${iServerJava6R_Query_Recordset_Title}</para> /// <para>${iServerJava6R_Query_Recordset_Description}</para> /// </...
C#
SuperMap.Web.iServerJava6R/Map/Query/Recordset.cs
SuperMap/iClient-for-Silverlight
apache-2.0
3,178
81
codeparrot/github-code
fc029d5edfa60194796de23e74e7e51fdd0d24c111b0f51b358163a542e9070e
/* * Copyright (c) 2013, 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/org.wso2.carbon.identity.oauth.endpoint/src/main/java/org/wso2/carbon/identity/oauth/endpoint/user/OpenIDConnectUserEndpoint.java
IsuraD/identity-inbound-auth-oauth
apache-2.0
7,731
173
codeparrot/github-code
79865a28dcfc3892291c283c92c555e7a970841c2a06e6bdd2ee170b7b8e4a92
/* * 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-devicefarm/src/main/java/com/amazonaws/services/devicefarm/model/DeleteInstanceProfileRequest.java
jentfoo/aws-sdk-java
apache-2.0
3,799
125
codeparrot/github-code
79b96a2661ed5a4eb5f3dc426a2fb891c5ce6ecd265e0e47eb8cc03814d4b1d1
package org.godivinity.realityretreat; import android.app.Activity; import android.content.Intent; import android.media.MediaPlayer; import android.os.Bundle; import android.view.View; import android.widget.Button; public class GuidedMeditationActivity extends Activity { MediaPlayer mediaPlayer; int mediaFi...
Java
app/src/main/java/org/godivinity/realityretreat/GuidedMeditationActivity.java
godivinity/RealityRetreatAndroid
apache-2.0
2,813
92
codeparrot/github-code
3e244e12183bd41d8b247fc41c27f7d32c026d9792130154c1e1b4e3e43b3a33
/* * Copyright 2017-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "licen...
Java
aws-java-sdk-glue/src/main/java/com/amazonaws/services/glue/model/GetClassifiersRequest.java
aws/aws-sdk-java
apache-2.0
4,981
178
codeparrot/github-code
69c69ec93c6112fedaeb7cf49a0217af99ae923fed99331d4982c7647cb09b9e
# Copyright 2010 United States Government as represented by the # Administrator of the National Aeronautics and Space Administration. # Copyright 2011 Justin Santa Barbara # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance wi...
Python
heat/openstack/common/loopingcall.py
redhat-openstack/heat
apache-2.0
4,501
141
codeparrot/github-code
f1d95e3ea80ab6083097c4b57a8915301782964d8928fab231c36789e9d50ceb
/******************************************************************************* "FreePastry" Peer-to-Peer Application Development Substrate Copyright 2002-2007, Rice University. Copyright 2006-2007, Max Planck Institute for Software Systems. All rights reserved. Redistribution and use in source and binary forms, ...
Java
freepastry/src/rice/post/rawserialization/Raw.java
barnyard/pi
apache-2.0
2,161
50
codeparrot/github-code
9aef1efac02a79a60de35ee0d8261064732af739402b324158f8ca0a6d7414b8
/* * Copyright 2015 HM Revenue & Customs * * 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...
Scala
src/main/scala/uk/gov/hmrc/play/auth/microservice/filters/AuthorisationFilter.scala
xnejp03/play-authorisation
apache-2.0
4,486
109
codeparrot/github-code
9e89498a2537cdad0937bca6b81f8301c5151ee655dfaba870789a6850fae0ca
/************************************************************************ * Model a discretized state in the RNN by discretizing neuron independently. * * Author: Gwénolé Lecorvé * Organisation: IDIAP Research Institue * Date: Sept. 2011 * * <------- N dimensions --------> * dim1=2 dim2=1 ... dimN=0 * +-...
C++
rnnlm-0.2b/src/neuron_fsthistory.cpp
glecorve/rnnlm2wfst
apache-2.0
1,604
64
codeparrot/github-code
91df8076e2309f957df4d2d279a13947a9a6b48a2a3bfb10134726288c164ab5
/* * 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
joyent-cloudapi/src/main/java/org/jclouds/joyent/cloudapi/v6_5/domain/Machine.java
hardfish/justTest
apache-2.0
11,655
409
codeparrot/github-code
cacdec306a05b34b84e24f1cac99b1ccdf1a1debdde66ec0c3aa46206572b687
package com.yz.util; import com.yz.model.Injurycase; import org.apache.poi.hssf.usermodel.*; import java.io.FileOutputStream; import java.io.IOException; import java.io.OutputStream; import java.sql.SQLException; import java.util.ArrayList; import java.util.List; public class InjurycaseExcel { // 表头-up public sta...
Java
src/com/yz/util/InjurycaseExcel.java
yunzhikeji/dchc
apache-2.0
6,825
283
codeparrot/github-code
6340ec588d7a64c5be8a81461678358d6d38e3d4ab26a31b2e0f3aa390fa75a3
# -*- coding: utf-8 -*- """ Created on Thu May 04 19:53:03 2017 @author: ZechT """ import sys import numpy as np from PyQt5.QtWidgets import * class AbstractHandler(QWidget): def __init__(self,parent=None): QWidget.__init__(self) self.parent=parent def main(): # ...
Python
skeletonWidget.py
Kylskap/PloPo
apache-2.0
728
43
codeparrot/github-code
05c52a2ce8a90a7cf7eaa05c60bc2e5d4c346a95e1bf0ecf7aaebf1de8cbf325
# ------------------------------------------------ # IMPORTS ---------------------------------------- # ------------------------------------------------ ##### # Python dist and 3rd party libraries ##### import os, requests, json, string, datetime, logging, time from os.path import join, dirname from weblogger import ad...
Python
soe/python/checkDTMF.py
WASdev/sample.voice.gateway
apache-2.0
1,293
45
codeparrot/github-code
04fe993b10cf236c2dba9d67b9fe71daa171c129c449839e874286a1b75a5299
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="generator" content="Hugo 0.85.0" /> <link rel="stylesheet" href="https://tamada.github.io/pochi/css/normalize.cs...
HTML
description/index.html
tamada/pochi
apache-2.0
13,714
297
codeparrot/github-code
d9763d25621f9f127b9df43014e86a0c98903ee659f2894be08fdedd33115bda
/* * Copyright (c) 2002, 2016, Oracle and/or its affiliates. All rights reserved. * ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. * * * * * * * * * * * * * * * * * * * * */ package javax.management.remote.rmi; import java.io.IOException; import java.rmi.MarshalledObject; imp...
Java
src/main/java/javax/management/remote/rmi/RMIConnectionImpl.java
wangsongpeng/jdk-src
apache-2.0
70,506
1,837
codeparrot/github-code
0bf023d31fc956fc1b85a67e5137f951568758867df2e704918decb6b74ca523
package sample.scenes.nodes; import javafx.beans.property.ReadOnlyDoubleProperty; import javafx.scene.Group; import javafx.scene.Node; import javafx.scene.control.MenuBar; import javafx.scene.control.MenuItem; import javafx.scene.control.Menu; import javafx.scene.input.KeyCombination; import javafx.stage.Stage; import...
Java
src/main/java/sample/scenes/nodes/MenuBarApp.java
mikaSez/JAERP
apache-2.0
2,138
65
codeparrot/github-code
6bbd0460b37f4b08e0da4068b59298232b455e052893acdd8ff1506fce35e1e3
/* * Copyright (c) 2011-2015, fortiss GmbH. * Licensed under the Apache License, Version 2.0. * * Use, modification and distribution are subject to the terms specified * in the accompanying license file LICENSE.txt located at the root directory * of this software distribution. */ package helper.lastProfil; im...
Java
core/gridarchitect/src/main/java/helper/lastProfil/SolarProduction.java
SES-fortiss/SmartGridCoSimulation
apache-2.0
2,092
83
codeparrot/github-code
7058577c1bb1be603dcc51bb8dac9ca01e5d3e0a37b5f4e8562fb6f6a5aefc97
/** * Created by eaofxr on 2/28/16. */ // SVG drawing area var margin = {top: 40, right: 40, bottom: 60, left: 60}; var width = 600 - margin.left - margin.right, height = 500 - margin.top - margin.bottom; var svg = d3.select("#chart-area").append("svg") .attr("width", width + margin.left + margin.right) ...
JavaScript
projects/HW5/js/xxxxx.js
uberdatageek/uberdatageek.github.io
apache-2.0
10,638
389
codeparrot/github-code
626a4cfc71120b913903b17fd37a6c30ed0d42931272df48f701f6290aaaf82f
package org.gradle.test.performance.mediummonolithicjavaproject.p158; import org.junit.Test; import static org.junit.Assert.*; public class Test3175 { Production3175 objectUnderTest = new Production3175(); @Test public void testProperty0() { String value = "value"; objectUnderTest....
Java
my-app/src/test/java/org/gradle/test/performance/mediummonolithicjavaproject/p158/Test3175.java
oehme/analysing-gradle-performance
apache-2.0
2,111
79
codeparrot/github-code
0bd8fab795d9e955bc2fe2f278cdb6f8bac3fff235b073ce73b79ed6b4f78b15
/* * Copyright (c) 2016 Yahoo Inc. * Licensed under the terms of the Apache version 2.0 license. * See LICENSE file for terms. */ package com.yahoo.yqlplus.engine.internal.plan.types.base; import com.yahoo.yqlplus.engine.internal.compiler.CodeEmitter; import com.yahoo.yqlplus.engine.internal.plan.types.Assignable...
Java
yqlplus_engine/src/main/java/com/yahoo/yqlplus/engine/internal/plan/types/base/IterateFirstSequence.java
slolars/yql-plus
apache-2.0
2,385
58
codeparrot/github-code
7cac28abcb2edbe6cf7c686f3467f81c60febd028f8ca08a75efece8a2b4c5eb
/** * <a href="http://www.openolat.org"> * OpenOLAT - Online Learning and Training</a><br> * <p> * Licensed under the Apache License, Version 2.0 (the "License"); <br> * you may not use this file except in compliance with the License.<br> * You may obtain a copy of the License at the * <a href="http://www.apache...
Java
src/main/java/org/olat/modules/qpool/model/DefaultExportFormat.java
stevenhva/InfoLearn_OpenOLAT
apache-2.0
2,545
85
codeparrot/github-code
35042c6245687270a5929c68af339b727207d16a4e0ab720caade4ecbee9f473
/* * 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...
Java
JGDMS/services/mahalo/mahalo-service/src/main/java/org/apache/river/mahalo/PrepareJob.java
pfirmstone/JGDMS
apache-2.0
9,989
313
codeparrot/github-code
745fb065ee79aef65d1b3184feb9e032f568d5dcbb2021045a4bd8cd99cb451b
/* $Id: ConditionVariable.java 11529 2009-11-18 15:53:11Z ceriel $ */ package nl.esciencecenter.aether.util; /** * Condition variable synchronization construct. * * Condition variables are part of thread synchronization primitives of the * {@link Monitor} construct. Threads can wait on a condition variable, * an...
Java
src/nl/esciencecenter/aether/util/ConditionVariable.java
jmaassen/AetherUtil
apache-2.0
4,757
160
codeparrot/github-code
16fbc9936dd1bad3c4d08270884182a781b2d4b22bff35ad5230bd3533a52564
/* * 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-athena/src/main/java/com/amazonaws/services/athena/model/transform/BatchGetQueryExecutionResultJsonUnmarshaller.java
jentfoo/aws-sdk-java
apache-2.0
3,393
81
codeparrot/github-code