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
f1a7b826f098d7fbdd9f4e4fcfa433ae1edf2ff054faccb4f57dad7b25e4cda6
package com.smartgwt.mobile.client.internal.widgets.events; import com.google.gwt.event.shared.GwtEvent; import com.google.gwt.event.shared.HasHandlers; public class ValuesSelectedEvent extends GwtEvent<ValuesSelectedHandler> { private static Type<ValuesSelectedHandler> TYPE = null; public static Type<Value...
Java
mobile/src/main/java/com/smartgwt/mobile/client/internal/widgets/events/ValuesSelectedEvent.java
will-gilbert/SmartGWT-Mobile
unlicense
1,137
42
codeparrot/github-code
32943d5c7a3a95e8544e2078b44b02d318566044082984db8053260ee2a941ac
/** * NOTE: This copyright does *not* cover user programs that use HQ * program services by normal system calls through the application * program interfaces provided as part of the Hyperic Plug-in Development * Kit or the Hyperic Client Development Kit - this is merely considered * normal use of the program, and d...
Java
hq-server/src/main/java/org/hyperic/hq/bizapp/shared/EventsBoss.java
cc14514/hq6
unlicense
17,838
400
codeparrot/github-code
b3cc68b0d945f1192f6332543d816493d08fa84b511f7821bca390d89e71ba90
# coding: utf-8 from __future__ import unicode_literals import base64 import functools import json import re import itertools from .common import InfoExtractor from ..compat import ( compat_kwargs, compat_HTTPError, compat_str, compat_urlparse, ) from ..utils import ( clean_html, determine_ext...
Python
youtube_dl/extractor/vimeo.py
remitamine/youtube-dl
unlicense
46,482
1,128
codeparrot/github-code
d0443ceef2ec232e1a100a2c532d3a23f3fdd250ba4745ad78e2a36f9e78426c
/* MIT License Copyright (c) 2017-2021 Mark E Sowden <hogsy@oldtimes-software.com> 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 ...
C
plcore/package/package_4x.c
Core-Development-Group/OpenPL
unlicense
4,193
133
codeparrot/github-code
7aead85fb0171a300a3ae30fa62bc52882c93768176e90d868370310bab38437
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ package mx.neftaly.hackerrank.algorithms; import java.util.Scanner; /** * * @author samas */ public class Kangaroo { /** ...
Java
src/main/java/mx/neftaly/hackerrank/algorithms/Kangaroo.java
neftalyluis/HRSolutions
unlicense
882
37
codeparrot/github-code
b7cfb8403a40c77256fbe9632b319680cc499f337c15ef6e9d6f2cd11203aeca
package code.one; import java.util.ArrayList; import java.util.Arrays; import java.util.HashMap; import java.util.List; import java.util.Map; //Given an array of strings, group anagrams together. // //For example, given: ["eat", "tea", "tan", "ate", "nat", "bat"], //Return: // //[ // ["ate", "eat","te...
Java
leetcode/src/code/one/GroupAnagrams_time.java
POKLpokl112/leetcode
unlicense
1,763
85
codeparrot/github-code
1464467d9622afb72ec8efc8286fa49bd95f9a73e61ec33f63d0feefa16e39a2
#include<cstdio> int t; char c[250][250],u[250]; char go(int v) { if(v==t)return 1; if(u[v])return 0; u[v]=1; for(int i=0;i<=t;i++) if(c[v][i]) { c[v][i]--; if(go(i)) { c[i][v]++; return 1; } c[v]...
C++
live-archive/2696.cpp
dk00/old-stuff
unlicense
898
54
codeparrot/github-code
6c04d336d04f15b564dfd0b3812e5c7d1d43b2beb09f78374a08a7616291c812
#include<queue> #include<cstdio> #include<algorithm> using namespace std; const int N = 20012, inf = 2000000000; int p[N], f[N], t[N], s[N], dg[N]; int main() { int i, j, n; while (scanf("%d", &n) == 1 && n) { fill(dg, dg+n, 0); fill(s, s+n, inf); for (i = 0; i < n; ++i) { scanf("%d %d %d", p+i, f...
C++
ntuj/0948.cpp
dk00/old-stuff
unlicense
748
34
codeparrot/github-code
fded9b378b9db7454d9928d85183a8b78e2dc15615ce7b0ef30c6af734959f35
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> <meta http-equiv="X-UA-Compatible" content="IE=9"/> <meta name="generator" con...
HTML
docs/classnana_1_1_html_node.html
nana2017july/html_parser
apache-2.0
27,392
578
codeparrot/github-code
709555bcde86d3d5ad2bf589859e30139b6f1d4ad18068ae948391e66c8f5242
/******************************************************************************* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this...
Java
framework/widget/src/org/ofbiz/widget/tree/ModelTreeCondition.java
ofbizfriends/vogue
apache-2.0
20,242
465
codeparrot/github-code
06228f934d4781bf550e66d98abe68c8a2c6a07530b8a2b1967f336a429bdd6d
/* * Copyright 2010-2016 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 "l...
Java
aws-java-sdk-elastictranscoder/src/main/java/com/amazonaws/services/elastictranscoder/model/transform/CreateJobPlaylistJsonUnmarshaller.java
dump247/aws-sdk-java
apache-2.0
4,113
105
codeparrot/github-code
a44a2b6b82a8949ba72abe4eca0c029e8a024ac21aebd39686077eadd7478631
/* * #%L * GwtMaterial * %% * Copyright (C) 2015 - 2018 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 * * http://www.apache.org/licenses/LICENSE-2.0 * ...
Java
src/main/java/gwt/material/design/incubator/client/keyboard/events/ChangeEvent.java
GwtMaterialDesign/gwt-material-addins
apache-2.0
1,809
69
codeparrot/github-code
02c9a857bc2d315cd5289146a08acd14f0ca7de86cd9fbd99a95c82df11c55cb
__author__ = 'Alex' from Movement import Movement class BaseCommand: def __init__(self, movement): assert isinstance(movement, Movement) self.name = 'unknown' self.m = movement def execute(selfself):pass class Forward(BaseCommand): def __init__(self, movement): assert isi...
Python
Apps/TurtleCommands.py
RobotTurtles/mid-level-routines
apache-2.0
1,101
49
codeparrot/github-code
9bc51697255f10bfc27a9fb2769e2f715bb603f26196030ac582de7af01487da
package com.compomics.pride_asa_pipeline.core.repository.impl.webservice; import com.compomics.pride_asa_pipeline.core.model.modification.source.PRIDEModificationFactory; import com.compomics.pride_asa_pipeline.core.model.modification.impl.AsapModificationAdapter; import com.compomics.pride_asa_pipeline.core.repos...
Java
pride-asa-pipeline-core/src/main/java/com/compomics/pride_asa_pipeline/core/repository/impl/webservice/WSModificationRepository.java
compomics/pride-asa-pipeline
apache-2.0
1,930
45
codeparrot/github-code
9d59b3abdd005b8eff2e935e5b37b15372b2724bc9c21ea8aaa716167d6bca90
class TemplateField attr_accessor :page, :name, :type, :rect # :internal => :external def self.attribute_map { :page => :page, :name => :name, :type => :type, :rect => :rect } end def initialize(attributes = {}) # Morph attribute keys into undescored rubyish style if attributes.to_s != ""...
Ruby
groupdocs/models/templatefield.rb
liosha2007/groupdocs-ruby
apache-2.0
1,282
48
codeparrot/github-code
cee902d61202cd725cfd2a548605dd981d322bc85de29c9c535a4b27d3dad24b
/* Copyright 2019 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
cmis/src/main/java/nl/nn/adapterframework/extensions/cmis/servlets/AtomPub10.java
ibissource/iaf
apache-2.0
985
35
codeparrot/github-code
1352c8284161d8b7a2c000498f0fe648f6610beffc84add000b1b29f8f21d4d6
// // Copyright 2016 Commonwealth Bank of Australia // // 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 ...
Scala
scalding/src/test/scala/commbank/coppersmith/scalding/CoppersmithStatsSpec.scala
CommBank/coppersmith
apache-2.0
4,424
99
codeparrot/github-code
8762b6041237a445628f5ee393206e530d6db59ed1b3fdf34e58d49e273a1952
package alien4cloud.tosca.parser.impl.base; import java.util.Map; import java.util.Set; import org.yaml.snakeyaml.nodes.MappingNode; import org.yaml.snakeyaml.nodes.Node; import org.yaml.snakeyaml.nodes.NodeTuple; import org.yaml.snakeyaml.nodes.ScalarNode; import alien4cloud.tosca.parser.INodeParser; import alien4c...
Java
alien4cloud-core/src/main/java/alien4cloud/tosca/parser/impl/base/KeyDiscriminatorParser.java
PierreLemordant/alien4cloud
apache-2.0
3,172
78
codeparrot/github-code
db6dfe444b8d2d3d9ae730e4f27da6f71d1c820fcbc1a5f9a571161165538d33
(function (parent, $, element) { function loadEvents() { var date = new Date(); var d = date.getDate(); var m = date.getMonth(); var y = date.getFullYear(); return [ { title: 'Appointment 1', start: new Date(y, m, d, 10), ...
JavaScript
src/Scheduler.UI/js/schedule.js
lowds/scheduler
apache-2.0
1,407
52
codeparrot/github-code
fd46c1c0ee3f92796fe2d0babf6e7afa4875ac684f8d944a5dec20b646dff4bc
/** * 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
ql/src/java/org/apache/hadoop/hive/ql/exec/spark/status/impl/JobMetricsListener.java
BUPTAnderson/apache-hive-2.1.1-src
apache-2.0
3,467
95
codeparrot/github-code
305600b557bd85a8717e8ae83edc10c1c69227e39b242cce123a0c062e0bd9cb
/* * Copyright 2002-2018 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by a...
Java
config/src/test/java/org/springframework/security/config/annotation/web/WebSecurityConfigurerAdapterTests.java
eddumelendez/spring-security
apache-2.0
16,385
419
codeparrot/github-code
2379a9d0a70290ed2aea3f583f7ebef1b149450f7455e91d11f8d2a62b5668cf
package servicios.validacion; public final class RegexValidation { public static final class ValidaNombres { private ValidaNombres() { } // public static final String INICIALES = "[a-z,A-Z,ñ,Ñ]{2}$+"; public static final String NOMBRE = "[A-Z]+[a-z,ñ]*+[ ]+[A-Z]+[a-z,ñ]*"; } public static final cl...
Java
dom/src/main/java/servicios/validacion/RegexValidation.java
TesisTarjetasMejorar/TarjetasISIS
apache-2.0
1,012
48
codeparrot/github-code
54754f97c4bd821ba0f0fcb42c6a758eb4e8941a0e28ca9f8adabd0e4e602ac9
#!/usr/bin/env node /** * Copyright IBM Corp. 2019, 2019 * * This source code is licensed under the Apache-2.0 license found in the * LICENSE file in the root directory of this source tree. */ /* eslint-disable no-console */ 'use strict'; // Makes the script crash on unhandled rejections instead of silently //...
JavaScript
packages/upgrade/bin/carbon-upgrade.js
carbon-design-system/carbon-components
apache-2.0
1,034
44
codeparrot/github-code
7f6118803e56aad34055bc9745c5248c1ceabf6881f463e610d5af967eac7bad
var studio_locale = {lc:{"ar":function(n){ if (n === 0) { return 'zero'; } if (n == 1) { return 'one'; } if (n == 2) { return 'two'; } if ((n % 100) >= 3 && (n % 100) <= 10 && n == Math.floor(n)) { return 'few'; } if ((n % 100) >= 11 && (n % 100) <= 99 && n == Math.floor(n)) { retu...
JavaScript
dashboard/public/apps-package/js/cs_cz/studio_locale-bfd0c94141f74417a2ff3e69569591ae.js
ty-po/code-dot-org
apache-2.0
30,176
547
codeparrot/github-code
211a0b3b412a99cb67ce9dba8ea643bc7a99fae03de69dae74900c363b93b6e9
/* * Copyright 2011 The Apache Software Foundation * * 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 ...
Java
src/main/java/org/apache/hadoop/hbase/io/hfile/HFileWriterV2.java
ay65535/hbase-0.94.0
apache-2.0
16,662
477
codeparrot/github-code
01ae2110b41dfa5e00ef377b8409ba58f79b1e8c9874b4d334e9d39c3a45c078
/* * Copyright (c) 2010-2013 Evolveum and contributors * * This work is dual-licensed under the Apache License 2.0 * and European Union Public License. See LICENSE file for details. */ package com.evolveum.midpoint.notifications.impl.helpers; import com.evolveum.midpoint.notifications.api.events.Event; import co...
Java
model/notifications-impl/src/main/java/com/evolveum/midpoint/notifications/impl/helpers/OperationFilterHelper.java
bshp/midPoint
apache-2.0
1,574
48
codeparrot/github-code
98801bd24a35d841c11319c14f032d5b0b10fa133c9413626da8b9d4a6a55a09
// Copyright 2012 The Rust Project Developers. See the COPYRIGHT // file at the top-level directory of this distribution and at // http://rust-lang.org/COPYRIGHT. // // Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or // http://www.apache.org/licenses/LICENSE-2.0> or the MIT license // <LICENSE-MIT or ...
Rust
src/test/compile-fail/borrowck-loan-rcvr.rs
fabricedesre/rust
apache-2.0
1,426
62
codeparrot/github-code
5587374536bd3e3508f65a886d31baa804c57d4e446b1f84715d639aed7fcca5
/* * 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
hyracks-fullstack/hyracks/hyracks-storage-am-lsm-rtree/src/main/java/org/apache/hyracks/storage/am/lsm/rtree/dataflow/LSMRTreeWithAntiMatterTuplesDataflowHelperFactory.java
waans11/incubator-asterixdb
apache-2.0
4,634
80
codeparrot/github-code
72945d758599ea0601619d74bc355371f0e23db85f7a4efb83060ff5042edccf
package sk.util; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import sk.mmap.Constants; import sk.mmap.IUnsafeAllocator; import java.util.Map; import java.util.HashMap; // Memory mapped hash set of Long public class MUHSetLong { private static final Logger logger = LoggerFactory.getLogger(MUHSetLong...
Java
src/main/java/sk/util/MUHSetLong.java
soumitrak/mmap-ds
apache-2.0
3,408
108
codeparrot/github-code
919c82d3b4d059d772da5b72a6900a7cc3da346ff1b5623436f6c28cd2b72f55
/* * Copyright 2017 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applica...
Java
00-monolith/src/main/java/example/sos/monolith/MonolithApplication.java
olivergierke/sos
apache-2.0
1,646
53
codeparrot/github-code
2469f7e9be0ae6788b7b1fbd95af86c301fae4d4608dcf185b742d5e39dead4c
package com.example.denizalp.thefirst; import android.app.Activity; import android.content.Context; import android.content.Intent; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.BaseAdapter; import android.widget.Button; import android.widget.TextView...
Java
TheFirst/app/src/main/java/com/example/denizalp/thefirst/TopicAdapter.java
bounswe/bounswe2016group7
apache-2.0
2,061
69
codeparrot/github-code
3f8be82f93a72c0a45d77c61157ef684b6c93f438cd370223b2f39e9dfb5795b
# 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 writing...
Python
utils/keras_metrics.py
google-research/federated
apache-2.0
2,516
69
codeparrot/github-code
b5eec6fadcc07061efa7d57cfed5d4374406d41eaa3ea9311bf5150cdcbe89ae
/// <reference path="types.ts"/> module ts { export interface Map<T> { [index: string]: T; } export interface StringSet extends Map<any> { } export function forEach<T, U>(array: T[], callback: (element: T) => U): U { var result: U; if (array) { for (var...
TypeScript
src/compiler/core.ts
jnetterf/typescript-react-jsx
apache-2.0
22,924
641
codeparrot/github-code
4bf0acad4d8795fc680e2d23e17aa63d253ae127b7a29b78cf018561d8583356
// // Copyright (c) 2016-2017 Vinnie Falco (vinnie dot falco at gmail dot com) // // Distributed under the Boost Software License, Version 1.0. (See accompanying // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) // // Official repository: https://github.com/boostorg/beast // //------------------...
C++
old/cppcon-2017-web-service/example/server/beast/lib/beast/example/http/server/flex/http_server_flex.cpp
Voultapher/Presentations
apache-2.0
19,006
679
codeparrot/github-code
022d361f80cf472164bf6ff3ca2a935dc44002fcf8f87f55cdae6caceba375d6
package utils; import java.util.ArrayList; import java.util.List; /** * Utility tree class, where the children are not necessarily ordered in any * particular way besides their locations. * * @author tetigi * * @param <T> * Type of the data node */ public class UnorderedTree<T> implements Tree<T>...
Java
java/src/utils/UnorderedTree.java
tetigi/toucan
apache-2.0
2,232
114
codeparrot/github-code
16478603f9b4e1065e8ca533a85b2249362448f819f7f85e7f3be4bfe66d56a9
/* * Copyright 2020 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 wr...
Java
samples/snippets/src/test/java/com/example/bigquery/CreateClusteredTableIT.java
googleapis/java-bigquery
apache-2.0
2,864
90
codeparrot/github-code
cc4abc5862f7898ba9b61a4e932c79d14da2a2dd50ed64380ad9ccad22f0a048
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ package co.edu.sena.mavenproject2.model.entities; import java.io.Serializable; import java.util.Collection; import javax.persistence.C...
Java
java/JSF/mavenproject2/src/main/java/co/edu/sena/mavenproject2/model/entities/InstructorFicha.java
SENA-CEET/1349397-Trimestre-4
apache-2.0
4,558
122
codeparrot/github-code
946d0ce83c8228c4391c057a5ead3178b355ba12caa96963f110b17a78e4c64c
/* * Copyright 2014-2016 Samsung Research America, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applica...
Java
sjsc/src/main/java/com/samsung/sjs/backend/asts/ir/Str.java
csgordon/SJS
apache-2.0
1,266
46
codeparrot/github-code
1ca147ca6ecda8f3e39fa1348368a382238180b6dc02f63fe274c7fa9da150f4
<?xml version="1.0" encoding="utf-8"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xml:lang="en" lang="en" xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html;charset=utf-8" /> <meta...
HTML
W_myeclipse/plugins/org.eclipse.birt.doc_2.5.2.me201003052220/birt/crosstab.17.8.html
00wendi00/MyProject
apache-2.0
39,305
759
codeparrot/github-code
53360b55f754c12f17e49e01fe5a05538ef3093ad6c10ddda3a14af31588c6f0
@* * Copyright 2021 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...
HTML
app/views/businessmatching/updateservice/remove/remove_activities.scala.html
hmrc/amls-frontend
apache-2.0
2,394
60
codeparrot/github-code
be0f92b36620712c601d4f127d89768eda1d365b17d34be210c45a46e282a926
var expect = require('chai').expect describe('Pane', function () { describe('# Show pane', function () { it('should show a lateral pane when requested (click on data feature)', function () { const pane = require('../src/pane') expect(pane.show).to.be.a('function') pane.show() expect(docume...
JavaScript
test/pane.test.js
ilice/OSCWeb
apache-2.0
3,763
65
codeparrot/github-code
77df26d710f5130d0d3038fd30930c3764b572a5bc27ea332cda6382dd9b434f
<!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" xml:lang="en" lang="en"> <head> <meta http-equiv="content-type" content="text/html; charset=UTF-8" /> <title>AnnotationReadingPriorityFunction xref</title>...
HTML
thirdparty/hbase-1.1.1.2.3.0.0-2557/docs/xref/org/apache/hadoop/hbase/regionserver/AnnotationReadingPriorityFunction.html
scalingdata/Impala
apache-2.0
39,721
298
codeparrot/github-code
ada1c866857c969324c48d0aa639b29c22ae6ac3b7f5362ba58a364d6c92df1b
// Copyright (C) 2010 Davis E. King (davis@dlib.net) // License: Boost Software License See LICENSE.txt for the full license. #ifndef DLIB_ONE_VS_ONE_DECISION_FUnCTION_H__ #define DLIB_ONE_VS_ONE_DECISION_FUnCTION_H__ #include "one_vs_one_decision_function_abstract.h" #include "../serialize.h" #include ".....
C
src/dlib/svm/one_vs_one_decision_function.h
cpearce/HARM
apache-2.0
11,314
292
codeparrot/github-code
f7171d45a4b3a755a5bfe10dbeada3d6d4f0cb4497fe9604735ad4f8170e16b3
package com.xinqihd.sns.gameserver.admin.i18n; import java.util.HashMap; public class ColumnNames { private static HashMap<String, String> map = new HashMap<String, String>(); static { map.put("profile" , "profile"); map.put("vip" , "vip"); map.put("ability" , "ability"); map.put("login" , "登陆"); map.p...
Java
admin/src/main/java/com/xinqihd/sns/gameserver/admin/i18n/ColumnNames.java
wangqi/gameserver
apache-2.0
3,556
121
codeparrot/github-code
71ef34b9b401f6f574bee63e6beb89b2eeae5a57ad8373134c73616063a59c61
package com.anteoy.coreJava.reflect; import java.lang.reflect.Method; public class BeanUtil { /** * ���ݱ�׼javaBean�������������ȡ������ֵ * * @param obj * @param propertyName * @return */ public static Object getValueByPropertyName(Object obj, String propertyName) { // 1.��...
Java
src/main/java/com/anteoy/coreJava/reflect/BeanUtil.java
Anteoy/jottings
apache-2.0
865
32
codeparrot/github-code
dbc22f6b2ad5f5b2fc153ba2e2991fc947994e5c79aa50a775e3ce468253a032
// Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using System; using System.Collections.Generic; using System.Collections.Immutable; using System.Diagnostics; using Microsoft.CodeAnalysis.CSharp.Symbols; us...
C#
src/ExpressionEvaluator/CSharp/Source/ExpressionCompiler/Symbols/EENamedTypeSymbol.cs
xasx/roslyn
apache-2.0
11,284
347
codeparrot/github-code
9139bddce30ef170b2c8b2de53acd6e570247cd2157d4c25781c8862dab9e553
package org.nnsoft.trudeau.spanning; /* * Copyright 2013 The Trudeau 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...
Java
src/test/java/org/nnsoft/trudeau/spanning/BoruvkaTestCase.java
trudeau/spanning
apache-2.0
8,095
195
codeparrot/github-code
ffae61f8f85504140ad84636ae6b488a274e663a5fac0a9332d8eba645068bf7
/* * Copyright (c) 2016 Freescale Semiconductor, Inc. * Copyright (c) 2018 Foundries.io * * SPDX-License-Identifier: Apache-2.0 */ #include <errno.h> #include <device.h> #include <pinmux.h> #include <fsl_common.h> #include <fsl_clock.h> struct pinmux_rv32m1_config { clock_ip_name_t clock_ip_name; PORT_Type *b...
C
drivers/pinmux/pinmux_rv32m1.c
explora26/zephyr
apache-2.0
3,496
130
codeparrot/github-code
d0f49212473a674b95074322827b2d625bd3dddaf411b332ba043cadd06d5dac
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ package edu.iit.sat.itmd4515.yzhan214.fp.web.hospital; import edu.iit.sat.itmd4515.yzhan214.fp.web.hospital.AbstractJSFBean; ...
Java
src/main/java/web/hospital/LoginBean.java
Langenoir1878/vet_web
apache-2.0
4,588
178
codeparrot/github-code
3ab04ec92df5331735441ff75ee6d752afd3b530e9354831ccd8ac19fd2472ed
package com.twopillar.jiba.activity; import android.graphics.Color; import android.graphics.drawable.Drawable; import android.os.Bundle; import android.support.v4.app.FragmentTabHost; import android.view.KeyEvent; import android.view.View; import android.widget.RadioButton; import android.widget.RadioGroup; import and...
Java
src/com/twopillar/jiba/activity/MainActivity.java
TwoPillar/jiba
apache-2.0
8,652
201
codeparrot/github-code
9b6e4086ab5179b022280ae0653e3d2571a07718ad2bbda996c36f67ec1635f2
/* Copyright 2016 The TensorFlow Authors. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agree...
TypeScript
tensorflow/tensorboard/components/vz_projector/vz-projector.ts
nanditav/15712-TensorFlow
apache-2.0
20,485
558
codeparrot/github-code
eac09ccdbb97894b0092baf1d0b2e7e9ca1a6c123451b4552574e5c08ff170f4
/******************************************************************************* * Copyright 2013 SAP AG * * 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...
Java
odata-core/src/main/java/com/sap/core/odata/core/uri/expression/OrderExpressionImpl.java
SAP/cloud-odata-java
apache-2.0
2,356
81
codeparrot/github-code
8e0e011a20540774984c76093175b1f26ec668ea055dc5e2a775eface0637020
package httpseverywhere import ( "bytes" "encoding/gob" "encoding/xml" "io/ioutil" "path/filepath" "regexp" "github.com/getlantern/golog" ) // Preprocessor is a struct for preprocessing rules into a GOB file. var Preprocessor = &preprocessor{ log: golog.LoggerFor("httpseverywhere-preprocessor"), } type prep...
GO
preprocessor.go
getlantern/httpseverywhere
apache-2.0
2,872
113
codeparrot/github-code
c1b0d6a63a1674057d761fa750465a22649574fbc7a970f34ef9487b04e5f81c
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html lang="en-GB" xml:lang="en-GB" xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="content-type" content="text/html; charset=utf-8"/> <title>Number</title> <link rel="r...
HTML
bej/feat/Number.html
UniversalDependencies/universaldependencies.github.io
apache-2.0
8,789
255
codeparrot/github-code
05b58bdccefcf4d69f95212050f0103a3dc1e3bbf986f5a189bdd6ced78fe0f9
package Paws::ResourceTagging::FailureInfo; use Moose; has ErrorCode => (is => 'ro', isa => 'Str'); has ErrorMessage => (is => 'ro', isa => 'Str'); has StatusCode => (is => 'ro', isa => 'Int'); 1; ### main pod documentation begin ### =head1 NAME Paws::ResourceTagging::FailureInfo =head1 USAGE This class re...
Perl
auto-lib/Paws/ResourceTagging/FailureInfo.pm
ioanrogers/aws-sdk-perl
apache-2.0
1,732
72
codeparrot/github-code
570b995351a2b411ad7557eb880710886bcf88d6c676686f37d99f131ccc52e3
/* * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distribut...
Java
discovery-server/src/main/java/app/metatron/discovery/common/geospatial/geojson/PointGeometry.java
metatron-app/metatron-discovery
apache-2.0
975
38
codeparrot/github-code
ad8468af1156d7527469bd0e88cb50cffba3c5531b5756b2f78fd3f691a15edb
/* ------ IOS ------ */ if(OS_IOS){ // NappSlideMenu var NappSlideMenu = require('dk.napp.slidemenu'); var drawerIphone = NappSlideMenu.createSlideMenuWindow({ centerWindow: $.navWindow, leftWindow: Alloy.createController('menu').getView(), leftLedge: 50 }); // Configure navigation and init app Alloy.G...
JavaScript
app/controllers/index.js
netoramalho/ti.slidemenu
apache-2.0
1,119
55
codeparrot/github-code
668cc594c432f5d2de5128bb419a0c1ea2c1a6f275f2fa82a91b1c51267e1b06
# Copyright 2019 DeepMind Technologies Limited and Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applic...
Python
cs_gan/main_ode.py
deepmind/deepmind-research
apache-2.0
12,654
368
codeparrot/github-code
10958f285d4d5067ac28ca07e917a17aec2149a8cf64707ca1cc8c1007349d39
# Copyright (c) 2014 Alcatel-Lucent Enterprise # 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 # # Un...
Python
src/facette/v1/plot.py
OpenTouch/python-facette
apache-2.0
2,559
72
codeparrot/github-code
9a0ff38acf0622751c8894bb9e1d07e5d766c76b78abf9e290f8ba0e3b2a52d9
#include "gen-cpp/LogSender.h" #include <thrift/protocol/TBinaryProtocol.h> #include <thrift/server/TNonblockingServer.h> #include <thrift/transport/TServerSocket.h> #include <thrift/transport/TBufferTransports.h> #include <thrift/concurrency/PosixThreadFactory.h> using namespace ::apache::thrift; using namespace ::ap...
C++
log_thrift/nonblock_server.cpp
opensource000/cnblogs
apache-2.0
2,062
73
codeparrot/github-code
833731d262dccfafa2e286abea99b74a96e924eb612980f12bd87ca385b164fc
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="description" content="Cork Airport Taxi is a leader in transportation services for Cork Airport and Cork...
HTML
index.html
heyboss/corkairporttaxi
apache-2.0
18,597
414
codeparrot/github-code
d4775b8b0021caa8e2155e5c2cafbe5d1472e9953f67dc916d951e1609881e63
/* * Licensed to David Pilato (the "Author") under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. Author licenses this * file to you under the Apache License, Version 2.0 (the * "License"); you may not use...
Java
src/test/java/fr/pilato/spring/elasticsearch/it/annotation/SecurityOptionalConfig.java
dadoonet/spring-elasticsearch
apache-2.0
1,399
40
codeparrot/github-code
5dc227d9a4bcee966760a830fdacbe9cef4543d708a653690012757e77c8dc64
// vim: et sw=4 sts=4 tabstop=4 /* * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to i...
Java
src/com/issc/widget/LoadingFragment.java
ISSC/Bluebit
apache-2.0
1,195
41
codeparrot/github-code
1edc991a31864eff7701f81759e8a889116e6a33f83b5c4c89806e5e29db9d04
#!/usr/bin/env python """ Set up the logging """ import logging import tempfile import os def initialize_logging(): """ Set up the screen and file logging. :return: The log filename """ # set up DEBUG logging to file, INFO logging to STDERR log_file = os.path.join(tempfile.gettempdir()...
Python
app/modules/loggingFunctions.py
superphy/backend
apache-2.0
1,056
38
codeparrot/github-code
c0e87936553cca36330c7f0e3e2b4d4169f7a7b6163120150e2c63198202d451
package io.particle.android.sdk.cloud; import android.annotation.SuppressLint; import android.os.Parcel; import android.os.Parcelable; import android.support.annotation.MainThread; import android.support.annotation.Nullable; import android.support.annotation.WorkerThread; import org.greenrobot.eventbus.EventBus; impo...
Java
cloudsdk/src/main/java/io/particle/android/sdk/cloud/ParticleDevice.java
spark/spark-sdk-android
apache-2.0
26,059
743
codeparrot/github-code
5dfd191d800f41b297a33c0de3240d28636dfb91e1497657eedcde85f72f1dc3
package org.grobid.core.features; import org.grobid.core.layout.LayoutToken; import org.grobid.core.utilities.TextUtilities; /** * Class for features used for fulltext parsing. * */ public class FeaturesVectorFulltext { public LayoutToken token = null; // not a feature, reference value public String string...
Java
grobid-core/src/main/java/org/grobid/core/features/FeaturesVectorFulltext.java
kermitt2/grobid
apache-2.0
5,369
172
codeparrot/github-code
556a35c93c9d292bdb9c5fdcba462cd4ca12d2181de383c2cd1f4bd528771ad7
import numpy as np def sigmoid(x): """ Compute the sigmoid function for the input here. """ x = 1. / (1. + np.exp(-x)) return x def sigmoid_grad(f): """ Compute the gradient for the sigmoid function here. Note that for this implementation, the input f should be the sigmoid ...
Python
Assignment1/q2_sigmoid.py
zhaojijet/CS224d
apache-2.0
1,343
55
codeparrot/github-code
6b5d2a88282ffcacf2d3d1f61cd7fbbf2942376e349a53f04cc144c3aefd4bd7
<!doctype html> <html class="theme-next pisces use-motion"> <head> <meta charset="UTF-8"/> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" /> <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"/> <meta http-equiv="Cache-Control" content="no-transform" /> <meta...
HTML
tags/Python/index.html
dyx0818/dyx0818.github.io
apache-2.0
16,823
711
codeparrot/github-code
1679cc1642e62870510576a48f6bad94ceceab462a7fcfcda893cf07bdac1a74
#region Copyright (c) 2011 Atif Aziz. 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 app...
C#
src/App_Packages/StackTraceFormatter/StackTraceFormatter.cs
elmah/Fabmail
apache-2.0
7,333
156
codeparrot/github-code
7ef3d8760d755f5450f0c30bcb46bfba8e7260a9d8b15190f5c788d15d803e99
/* * 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/transform/GetCatalogImportStatusRequestMarshaller.java
aws/aws-sdk-java
apache-2.0
2,076
56
codeparrot/github-code
7273e74c02f2ed61646ee1139e07874c67dee273e3e126d82e47a82a3a73f8e0
/* * Copyright 2016 Pivotal Software, 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 ...
Java
oauth2-security/src/main/java/org/filetec/oauth2/security/AuthorizationServerConfiguration.java
warrenmnocos/oauth2
apache-2.0
2,994
75
codeparrot/github-code
7b639e6738c0638208d3c4c0d5c8c700ebaa2c330bf3620ece47bbbf1de5706e
/* * Copyright (c) 2020, Peter Abeles. All Rights Reserved. * * This file is part of BoofCV (http://boofcv.org). * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apac...
Java
main/boofcv-types/src/test/java/boofcv/struct/TestListIntPoint2D.java
lessthanoptimal/BoofCV
apache-2.0
2,929
125
codeparrot/github-code
bd71bbf6f8e5317fee93f5f3721223f6b798cb7e2219519ee42c26c1cf71caef
package org.apache.spark.carbondata.restructure.vectorreader import java.math.{BigDecimal, RoundingMode} import org.apache.spark.sql.Row import org.apache.spark.sql.common.util.QueryTest import org.scalatest.BeforeAndAfterAll class AddColumnTestCases extends QueryTest with BeforeAndAfterAll { override def beforeA...
Scala
integration/spark2/src/test/scala/org/apache/spark/carbondata/restructure/vectorreader/AddColumnTestCases.scala
mayunSaicmotor/incubator-carbondata
apache-2.0
5,716
115
codeparrot/github-code
014aaf4d63e26e39f533c325e81b474b3fec4ae2c2a2ff8880b007bb5d5fd804
/******************************************************************************* * Copyright (c) 2015-2018 Skymind, Inc. * * This program and the accompanying materials are made available under the * terms of the Apache License, Version 2.0 which is available at * https://www.apache.org/licenses/LICENSE-2.0. * *...
Java
nd4j/nd4j-remote/nd4j-grpc-client/src/test/java/org/nd4j/graph/GraphInferenceGrpcClientTest.java
deeplearning4j/deeplearning4j
apache-2.0
4,034
83
codeparrot/github-code
8966541d4caed2b7b5479737eb9b7ecb49d162c97acbbf75926e17a50f0114db
// Copyright 2015, Cyrill @ Schumacher.fm and the CoreStore contributors // // 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 ...
GO
config/scopeperm.go
bom-d-van/csfw
apache-2.0
2,241
73
codeparrot/github-code
0d297d6c8b9c4e0f391827cc067fa6e654d9215f6b01d6441574e05c6bc1657e
#!/usr/bin/env python # Copyright (c) Twisted Matrix Laboratories. # See LICENSE for details. from twisted.internet.protocol import DatagramProtocol from twisted.internet import reactor import datetime import socket import time import sys import os.path lib_path = os.path.abspath('../utils') sys.path.append(lib_pat...
Python
testpi/myDevice.py
kasundezoysa/senze
apache-2.0
4,355
148
codeparrot/github-code
be223f5665c5bdfedaf52ba3c622d0c328363c708d965383e9365859027bd67b
/* Siconos is a program dedicated to modeling, simulation and control * of non smooth dynamical systems. * * Copyright 2016 INRIA. * * 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 * *...
C
numerics/src/FrictionContact/GlobalFrictionContactProblem.c
siconos/siconos-deb
apache-2.0
5,821
237
codeparrot/github-code
d81befdb693856d59f824771271304e7ae48f8b960edb896876bd19abdf76d2a
/* * 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 * distributed u...
Java
translator/src/main/java/com/google/devtools/j2objc/translate/CastResolver.java
hambroperks/j2objc
apache-2.0
12,986
354
codeparrot/github-code
a6e7895ae351348e1a70ee39187d9ef5a064bbb183292830a4fc941741314f2a
package textures; public class TerrainTexturePack { private TerrainTexture backgroundTexture; private TerrainTexture rTexture; private TerrainTexture gTexture; private TerrainTexture bTexture; public TerrainTexture getBackgroundTexture() { return backgroundTexture; } public void setBackgroundTexture(Terrain...
Java
src/textures/TerrainTexturePack.java
fillipesouza/mygame
apache-2.0
1,125
46
codeparrot/github-code
72928779acbb048ce6bce8c2b679d7c75d44a8c8065b0b3ff2717fe3b69efbca
package com.zst.xposed.halo.floatingwindow3.prefs; import android.app.*; import android.content.SharedPreferences.OnSharedPreferenceChangeListener; import android.content.*; import android.os.*; import com.zst.xposed.halo.floatingwindow3.*; import java.util.prefs.*; import android.widget.*; import android.graphics.*; ...
Java
app/src/main/java/com/zst/xposed/halo/floatingwindow3/prefs/FloatDotActivity.java
shooash/XHFW3
apache-2.0
5,002
129
codeparrot/github-code
e95f7a02d1245cbb4ee1a6bf50f43e941d1edd62f328876c12616e3550a3b695
package org.nutz.resource; import static org.junit.Assert.*; import java.io.File; import java.io.IOException; import java.io.InputStream; import java.net.MalformedURLException; import java.util.Collections; import java.util.Comparator; import java.util.List; import javax.servlet.Servlet; import junit....
Java
test/org/nutz/resource/ScansTest.java
007slm/nutz
apache-2.0
5,137
150
codeparrot/github-code
2f8b1f9670e8f6d65818e71e7074aed2c850d90df2d4c49fde0d67597e6232f0
package greatspacerace import ( "bufio" "fmt" "github.com/TSavo/go.firebase" "os" ) func init() { f, err := os.Open("firebase.secret") if err != nil { fmt.Printf("error opening firebase.secret: %v\n", err) } r := bufio.NewReader(f) url, e := Readln(r) if e != nil { panic(e) } secret...
GO
database.go
TSavo/FarlightRacing
apache-2.0
699
41
codeparrot/github-code
f296a46844f15c41f07812af1b3ea055d31f85aa7e7543944435921b4dcc1d4a
using System; using System.IO; using System.Linq; using System.Net.Http; using System.Net.Http.Headers; using Newtonsoft.Json; namespace WeatherConsole { public class WeatherService { private const string url = @"http://gardiner-weather.azurewebsites.net/api/forecast/"; //SA/Adelaide"; publi...
C#
WeatherConsole/WeatherService.cs
flcdrg/WeatherConsole
apache-2.0
1,345
44
codeparrot/github-code
59233418441e63fd849f33a1d67a6c4bdf44027226184a2a4c4a14c086912688
package org.jetbrains.plugins.scala package javaHighlighting import com.intellij.codeInsight.daemon.impl.HighlightInfoType import com.intellij.ide.highlighter.JavaFileType import com.intellij.psi.{PsiDocumentManager, PsiFile} import com.intellij.testFramework.fixtures.impl.CodeInsightTestFixtureImpl import org.jetbrai...
Scala
test/org/jetbrains/plugins/scala/javaHighlighting/JavaHighlightingTest.scala
triggerNZ/intellij-scala
apache-2.0
2,899
83
codeparrot/github-code
7e3d92809b6fcb3e4b2758824fb53f040787275f1dd129f0613902e9a6e3834f
/* * DBeaver - Universal Database Manager * Copyright (C) 2010-2019 Serge Rider (serge@jkiss.org) * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/license...
Java
plugins/org.jkiss.dbeaver.ext.postgresql/src/org/jkiss/dbeaver/ext/postgresql/PostgreServerHome.java
liuyuanyuan/dbeaver
apache-2.0
1,764
64
codeparrot/github-code
799c092d5a48be136b62ed06501137ecf32ee92647337c87922491d545a47da8
/* * 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
nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-api/src/main/java/org/apache/nifi/web/controller/ControllerFacade.java
InspurUSA/nifi
apache-2.0
86,923
1,957
codeparrot/github-code
273b34748e77109fc7c4164215935b3bcd1a8c31ba674380e1a47e07be545980
/* * Copyright 2017 David Karnok * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to...
Java
src/main/java/hu/akarnokd/reactive4javaflow/processors/EsetlegProcessor.java
akarnokd/Reactive4JavaFlow
apache-2.0
1,100
36
codeparrot/github-code
c1e882e520730f615e496cdcdf636e0f97daab38903f12b774351c923a45d43a
package com.github.mzule.androidweekly.ui.view; import android.app.Activity; import android.content.Context; import android.content.res.TypedArray; import android.util.AttributeSet; import android.widget.TextView; import com.github.mzule.androidweekly.R; import com.github.mzule.androidweekly.ui.view.base.BaseLinearLa...
Java
app/src/main/java/com/github/mzule/androidweekly/ui/view/NaviBar.java
mzule/AndroidWeekly
apache-2.0
1,740
65
codeparrot/github-code
25eb24bf95ecac70eb6fb7792d1c809e574025dde132f4721ef857f112dd4b3c
package ar_ubin.benotified.base; import android.os.Bundle; import android.support.v4.app.Fragment; import android.support.v4.app.FragmentTransaction; import android.support.v7.app.AppCompatActivity; import javax.inject.Inject; import ar_ubin.benotified.ActivityModule; import ar_ubin.benotified.ApplicationComponent;...
Java
app/src/main/java/ar_ubin/benotified/base/BaseActivity.java
ar-ubin/BeNotified
apache-2.0
1,440
48
codeparrot/github-code
e7e7f104de2147201ab18bbbf50583e2c3da2f20c6b084abb6fcfd6aec910bf4
package com.example.a226; import android.app.Activity; import android.content.Intent; import android.os.Bundle; import android.view.View; import android.widget.Button; import android.widget.EditText; public class MainActivity extends Activity { EditText et; @Override protected void onCreate(Bundle savedInstanceSt...
Java
A226/src/com/example/a226/MainActivity.java
zelig81/hyperactive-class
apache-2.0
776
31
codeparrot/github-code
1858307bb0f1557d0e4366ee342d3ca3586e440202bfe2d964aa7deb4ceb6b17
/* * Copyright (C) 2013 salesforce.com, inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable ...
JavaScript
aura-components/src/test/components/clientServiceTest/enqueueAction/enqueueActionTest.js
badlogicmanpreet/aura
apache-2.0
25,099
607
codeparrot/github-code
d9757a87f7a5f7f7561f5bb4442d6d6d434394da4e95596106b5a236bab2047e
package ftp.v4; import java.io.IOException; import java.nio.file.attribute.UserPrincipalLookupService; import java.util.Arrays; import java.util.Collections; import java.util.HashSet; import java.util.Set; import org.apache.sshd.common.file.util.BaseFileSystem; import org.apache.sshd.common.file.util.ImmutableList; ...
Java
v4/My4FileSystem.java
innocentliny/SFTP_demo
apache-2.0
1,470
55
codeparrot/github-code
b99ee85752c85fbfb95814e5a35b8310f0be2db8f7ee0666f3cf587017276311
package edu.colorado.plv.cuanto.scoot package concrete_interpreter import soot.{Value, IntType, Local, Immediate} import soot.jimple._ /** Write convenience functions for constructing soot Value objects * that represent arithemtic expressions (for testing, mainly) * * This should largely be subsumed by the "Sc...
Scala
src/main/scala/edu/colorado/plv/cuanto/scoot/concrete_interpreter/Builder.scala
cuplv/cuanto
apache-2.0
1,760
45
codeparrot/github-code
80820085268902d6278c25de465aa85af6cd3766630b06eeec0be58f746113a5
/* * Copyright 2012 Mike Adamson * * 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
cat-server/src/test/java/com/assemblade/server/security/UserManagerTest.java
assemblade/CAT
apache-2.0
1,709
56
codeparrot/github-code
00df5f9f17aafae1ffba44965d2dfd623b0c99b1524e4b32fdd1cc224dd2c322
/** * 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
exec/java-exec/src/test/java/org/apache/drill/exec/vector/complex/writer/TestJsonReader.java
zzy6395/drill
apache-2.0
12,785
305
codeparrot/github-code
3821763773343f280c5f53479e8f96cc695aa3373012f0da5e92f74c3f34326e
package service.handler.twostep; import java.io.DataInputStream; import java.io.DataOutputStream; import java.io.File; import java.io.IOException; import java.net.Socket; import java.security.KeyPair; import java.security.PublicKey; import java.security.SignatureException; import java.util.concurrent.locks.ReentrantLo...
Java
src/service/handler/twostep/CSNHandler.java
CloudComLab/Voting-CAP
apache-2.0
3,838
124
codeparrot/github-code
ad19c7382966badeb74a4042030a282887032fe3f6d1ec7d3b9bdabc1e1073f3
# Copyright 2014 Modelling, Simulation and Design Lab (MSDL) at # McGill University and the University of Antwerp (http://msdl.cs.mcgill.ca/) # # 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...
Python
pypdevs/schedulers/schedulerNA.py
kdheepak89/pypdevs
apache-2.0
7,125
148
codeparrot/github-code
329a94583dad0c3409b0ddbe86d50e97df98b1746a1252620c6a126184dbf789
// Copyright 2010 Google Inc. // // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy // of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to i...
C++
Test/BindingTest.cc
Uncommon/diadem
apache-2.0
2,858
87
codeparrot/github-code
17ca61ee63d329bf09930bd4c99c46c76635c3d4e12dfe1ee2dacb3d2e550d76
#ifndef _MZ_APPLICATION_H #define _MZ_APPLICATION_H #include "mz_common.h" #include "mz_option_parser.h" #include "mz_daemon.h" #ifdef _WIN32 #include "windows.h" #endif namespace Meizhi { //app slot typedef struct { //init pFunc g_app_pre_init; pFunc g_app_init; pFunc g_app_post_init; ...
C
src/include/mz_application.h
ctrlzhang/mz_server
apache-2.0
1,913
131
codeparrot/github-code
557c838cab08f9e8d69bd06c6d9e61a97cef959ffea7aefce2391b1d11980293
using System.ComponentModel; using System.Windows.Forms; namespace BulkCrapUninstaller.Forms { partial class DebugWindow { /// <summary> /// Required designer variable. /// </summary> private IContainer components = null; /// <summary> /// Clean up...
C#
source/BulkCrapUninstaller/Forms/Helpers/DebugWindow.Designer.cs
Klocman/Bulk-Crap-Uninstaller
apache-2.0
24,729
499
codeparrot/github-code