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 |
|---|---|---|---|---|---|---|---|---|
418164037ad9147549ce7f3be6b132168203f1089df6125ef35313214ee22925 | import * as path from "path";
import * as semver from "semver";
import * as npm from "npm";
import * as constants from "./constants";
import {sleep} from "../lib/common/helpers";
export class NpmInstallationManager implements INpmInstallationManager {
private static NPM_LOAD_FAILED = "Failed to retrieve data from npm... | TypeScript | lib/npm-installation-manager.ts | tsvetie/nativescript-cli | apache-2.0 | 9,159 | 229 | codeparrot/github-code |
821e8c59203dbece9c9578c171d07b1b7345f5be72081459e763ad047399f861 | package com.flytxt.tp.translator;
import static org.junit.Assert.assertEquals;
import org.junit.Assert;
import org.junit.Test;
import com.flytxt.tp.marker.Marker;
import com.flytxt.tp.marker.Router;
public class TpStringTest extends TpAbsTest {
TpString tpString = new TpString();
@Test
public void testToUpperC... | Java | translator/src/test/java/com/flytxt/tp/translator/TpStringTest.java | arunsoman/text-processor | apache-2.0 | 10,823 | 349 | codeparrot/github-code |
1ef9011ce6a0a8fde1c7c64d9172f0ae57d387992ec6a8ac15c636cd1aac1360 | /*
* Copyright 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by ... | Java | commons/ihe/fhir/stu3/qedm/src/main/java/org/openehealth/ipf/commons/ihe/fhir/pcc44/EncounterSearchParameters.java | oehf/ipf | apache-2.0 | 1,754 | 55 | codeparrot/github-code |
acdaeb3ee1f64527e00be4c14128d43a21d099b85114565117dcb3fde9e6b9e9 | //===--- GenCast.cpp - Swift IR Generation for dynamic casts --------------===//
//
// This source file is part of the Swift.org open source project
//
// Copyright (c) 2014 - 2017 Apple Inc. and the Swift project authors
// Licensed under Apache License v2.0 with Runtime Library Exception
//
// See https://swift.org/L... | C++ | lib/IRGen/GenCast.cpp | apple/swift | apache-2.0 | 39,261 | 1,046 | codeparrot/github-code |
d64de097453b3faf2463609f4bc84c407188a5f21db217c5ddb9af43656ab869 | // Copyright 2018 Esri.
//
// 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 ... | C# | src/WPF/ArcGISRuntime.WPF.Viewer/Samples/Data/GenerateGeodatabase/GenerateGeodatabase.xaml.cs | Esri/arcgis-runtime-samples-dotnet | apache-2.0 | 11,484 | 277 | codeparrot/github-code |
ead5750ecb91e0cde4fd20890d1af1b234adb208d48f3ec099835b23468987fc | package info.izumin.android.sunazuri.presentation.activity.oauth;
import android.app.Activity;
import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
import android.support.customtabs.CustomTabsIntent;
import android.support.v7.app.AppCompatActivity;
import info.izumin.android.sunazuri.R;
imp... | Java | app/src/main/java/info/izumin/android/sunazuri/presentation/activity/oauth/OauthActivity.java | izumin5210/Sunazuri | apache-2.0 | 2,084 | 65 | codeparrot/github-code |
285a2d3544ff9f4eb8ecda8cc2c89d788156e154ee2f1ccf7e18f5e8741fb9cf |
# !/usr/bin/env python
# -*- coding: utf-8 -*-
import sys
import logging
from PyQt4.QtCore import SIGNAL, QString
from basecontroller import BaseController, singleton
# from user_controller import UserController
# sys.path.append('../')
from util.util import print_trace_exception, log_callback
SEND_MSG_ID = 'SEND_... | Python | client/controller/chat_controller.py | dyf102/Gomoku-online | apache-2.0 | 3,149 | 98 | codeparrot/github-code |
d43d925f1fa69673713bf93fc3699c74eb02bc130a91f60929617edd4c02cb3f | package org.apache.marmotta.knowledge.vis.dao;
import java.util.HashSet;
import java.util.Locale;
import java.util.Set;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonInclude.Include;
@JsonInclude(Include.NON_EMPTY)
public class Graph extends Instance<GraphType> {
p... | Java | libs/marmotta-vis/src/main/java/org/apache/marmotta/knowledge/vis/dao/Graph.java | nimble-platform/catalog-service-backend | apache-2.0 | 778 | 40 | codeparrot/github-code |
0390722d9756a641a22c43ad4178c68ff86fb05213e8438fef3f6a4fef71f082 | #include <eeros/core/Executor.hpp>
#include <eeros/control/Constant.hpp>
#include <eeros/control/TimeDomain.hpp>
#include <eeros/safety/SafetySystem.hpp>
#include <eeros/logger/Logger.hpp>
#include <eeros/logger/StreamLogWriter.hpp>
#include <eeros/control/ros/RosPublisherDoubleArray.hpp>
#include <eeros/control/ros/Ro... | C++ | examples/ros/RosTest1.cpp | eeros-project/eeros-framework | apache-2.0 | 3,830 | 124 | codeparrot/github-code |
d45160d00359b895948d3800ee5eb86a52dcd885b7537d544d4b58796a89d8a1 | /**
* UI-Router Extras: Sticky states, Future States, Deep State Redirect, Transition promise
* @version v0.0.11
* @link http://christopherthielen.github.io/ui-router-extras/
* @license MIT License, http://www.opensource.org/licenses/MIT
*/
(function (window, angular, undefined) {
angular.module("ct.ui.router.ext... | JavaScript | araqne-webconsole/src/main/resources/WEB-INF/lib/angular/ct-ui-router-extras.js | araqne/webfx | apache-2.0 | 64,634 | 1,443 | codeparrot/github-code |
8ef8a0dfc0ac6b956b3b47cd9029883505f1e970261f4b68ddc2155157d10ba6 | """Webhook handlers for mobile_app."""
import asyncio
from functools import wraps
import logging
import secrets
from aiohttp.web import HTTPBadRequest, Request, Response, json_response
from nacl.secret import SecretBox
import voluptuous as vol
from homeassistant.components import notify as hass_notify, tag
from homea... | Python | homeassistant/components/mobile_app/webhook.py | tchellomello/home-assistant | apache-2.0 | 18,676 | 580 | codeparrot/github-code |
1e8b25b3214803af9a6723c01d90d78fc43f785e5a15b5e9166b43b85720e5e9 | using System;
using System.Data;
using System.Text;
using System.Configuration;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.HtmlControls;
using TravelAgent.Tool;
namespace TravelAgent.Web
{
public partial class Co... | C# | src/TravelAgent.Web/TravelAgent.Web/Common.Master.cs | huahuajjh/yueyouyuebei | apache-2.0 | 15,739 | 299 | codeparrot/github-code |
f32db239612eb3df9d62a23a4bb260028c41a6da5a3b432b513ad7540f9fffad | # @Author: Manuel Rodriguez <valle>
# @Date: 10-May-2017
# @Email: valle.mrv@gmail.com
# @Last modified by: valle
# @Last modified time: 13-Sep-2017
# @License: Apache license vesion 2.0
from kivy.uix.modalview import ModalView
from kivy.uix.button import Button
from kivy.properties import ObjectProperty, String... | Python | tpv_for_eetop/tpv/modals/sugerencias.py | vallemrv/tpvB3 | apache-2.0 | 1,333 | 46 | codeparrot/github-code |
226b096378f2b1a9bb9bb118f0e8a3ce917beee4caf271fcedadb9eebf1ada13 | /* 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/test/fc3d_test300.c | siconos/siconos-deb | apache-2.0 | 1,596 | 49 | codeparrot/github-code |
2c5352bdff39fe40e8a20130d533008859d3c467c1ae3a95bbfa1a536454c025 | var test = require('ava')
var indy = require('../')
var cuid = require('cuid')
var initTestPool = require('./helpers/initTestPool')
var tempy = require('tempy')
function sleep (ms) {
return new Promise(function (resolve) {
setTimeout(resolve, ms)
})
}
async function waitUntilApplied (ph, req, cond) {
for (l... | JavaScript | wrappers/nodejs/test/ledger.js | peacekeeper/indy-sdk | apache-2.0 | 8,832 | 227 | codeparrot/github-code |
b4e4d0c129d67db062a73024f6cc377eb72e32db50a1230c6b0a5df57c7d5a25 | ###############################################################################
# Copyright 2013 - 2018 Software AG, Darmstadt, Germany and/or its licensors
#
# SPDX-License-Identifier: Apache-2.0
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compli... | PowerShell | bootstrap/install.ps1 | SoftwareAG/sagdevops-antcc | apache-2.0 | 4,670 | 125 | codeparrot/github-code |
fab435326684b49f3b64359dbdcff839d0abe0723c1fd5d03060e0aad8bf7db8 | #!/usr/bin/env ruby
# Encoding: utf-8
#
# Copyright:: Copyright 2012, Google Inc. All Rights Reserved.
#
# License:: 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
#
# ... | Ruby | dfp_api/examples/v201502/custom_field_service/set_line_item_custom_field_value.rb | ramdanplusplus/google-api-ads-ruby | apache-2.0 | 6,250 | 179 | codeparrot/github-code |
f85f4fb26a36fcf7a3dde03f9ff45c0f159b417f26e5bf0a6d6deb5e4703d7d6 | /**
* 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 n... | Java | hadoop-yarn-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/api/records/ContainerStatus.java | DislabNJU/Hadoop | apache-2.0 | 4,122 | 128 | codeparrot/github-code |
1196fcd84e24b6825123969bde69a8363f8b1afa07799fc03f558447c079f922 | package com.shanbay.words.model;
public class ReviewStat {
private int failure;
private int init;
private int recognition;
private int success;
private int total;
public void clear() {
this.total = 0;
this.init = 0;
this.success = 0;
this.failure = 0;
this.recognition = 0;
}
public void decLevelByR... | Java | src/com/shanbay/words/model/ReviewStat.java | AndyGu/ShanBay | apache-2.0 | 1,828 | 112 | codeparrot/github-code |
34482596d28823921ae944ac2a1481a215ea4bae87577dd99486b2f9ce6be855 | # Dependency checking
declare -A DEPENDENCIES=(
["ssh -V"]="ssh is not installed"
["parallel --version"]="parallel is not installed"
)
source "${PREFIX}/lib/deps.bash"
function build_payload {
mkdir "payload"
if [[ ! -t 0 ]]; then
cat > "payload/upload"
fi
cat > "payload/runner.bash" <<EOF
set -o errexit
if ... | Shell | lib/remote.bash | divoxx/do.bash | apache-2.0 | 1,223 | 60 | codeparrot/github-code |
5e5fa4620ebf401d9e711bb8c2d47529d3e5519297a1d1b11ab03bedcabda8b7 | /*
* Copyright 2013 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 | data/orm/src/main/java/leap/orm/sql/ast/ParamPlaceholder.java | leapframework/framework | apache-2.0 | 2,699 | 86 | codeparrot/github-code |
cdda8c4dd084af7b4c54549e9738ec208e4c620e47f53ce54a9ee14e2f26c66e | /*
*
* * Copyright 2014 Orient Technologies.
* *
* * Licensed under the Apache License, Version 2.0 (the "License");
* * you may not use this file except in compliance with the License.
* * You may obtain a copy of the License at
* *
* * http://www.apache.org/licenses/LICENSE-2.0
* *
* * Unless ... | Java | src/main/java/com/orientechnologies/spatial/shape/OComplexShapeBuilder.java | orientechnologies/orientdb-spatial | apache-2.0 | 4,674 | 174 | codeparrot/github-code |
9a668bedd6d27292ba0ec287e91add53570d703f55eecb1d2c9f287280184ed8 | package com.chen.config;
import com.chen.jdbc.dao.ForumDao;
import org.apache.tomcat.jdbc.pool.DataSource;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.core.env.... | Java | src/main/java/com/chen/config/JdbcConfig.java | leifchen/hello-spring | apache-2.0 | 1,190 | 42 | codeparrot/github-code |
e3a8d39b05d06dceb9c01701ee1516f5885912fbc09b924f6fe8073f534394e1 | package cn.neolo.app.ireach.adapter;
import android.content.Context;
import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentPagerAdapter;
import cn.neolo.app.ireach.R;
import cn.neolo.app.ireach.model.CallRecordFragment;
import cn.neolo.app.ireach.... | Java | app/src/main/java/cn/neolo/app/ireach/adapter/HomeTeacherAdapter.java | neolocn/iReach | apache-2.0 | 1,936 | 68 | codeparrot/github-code |
fce9834528f4eec3b0af1dc1b00b8803a527420edfc05c75d4704ad8f62ea1c8 | // Copyright © 2017 The Keen Eye Developers
//
// 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... | GO | cmd/logout.go | keeneyetech/ecli | apache-2.0 | 1,568 | 56 | codeparrot/github-code |
457bab42d341655d8045fb4cfbe5f751ef041153a96f4ddeed40d717c54979b0 | // 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/util/store/Store.java | ataylor4/codeu_project_2017 | apache-2.0 | 4,298 | 127 | codeparrot/github-code |
bf64dfbdc64918df13007d06d9c0c270cadeb778c28bc4750e8458c428774cc2 | /*
* File: ASTDefNamespaceDecl.cpp
* Copyright (C) 2009 The Institute for System Programming of the Russian Academy of Sciences (ISP RAS)
*/
#include "tr/xqp/serial/deser.h"
#include "tr/xqp/visitor/ASTVisitor.h"
#include "ASTDefNamespaceDecl.h"
ASTDefNamespaceDecl::~ASTDefNamespaceDecl()
{
delete uri;
}
vo... | C++ | kernel/tr/xqp/ast/ASTDefNamespaceDecl.cpp | sedna/sedna | apache-2.0 | 1,057 | 46 | codeparrot/github-code |
1e263099ba24218310f7b6310861ec63c57a8f4deeef705e51a48448a31a2e7c | /*
* Copyright 2013
*
* 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 writin... | Java | domino/design-impl/src/main/java/org/openntf/domino/design/impl/DesignOutline.java | rPraml/org.openntf.domino | apache-2.0 | 1,096 | 41 | codeparrot/github-code |
bf863776a3f05ca0052595a4a84016f8f24458051c982b506bc6ef92195f1d80 | #!/usr/bin/env pypy
# Libreria di funzioni sui grafi.
#
# classe astratta graph, derivate ugraph (grafo non diretto) e dgraph(grafo diretto).
#
# costruttore:
# graph(G[,w]) grafo copia di G
# graph(N[,w]) grafo vuoto con N nodi
# graph(N,E[,w]) grafo con lista di archi assegnata
# graph(N,[M=...],type=... | Python | legacy/legacy.py | algorithm-ninja/konig | apache-2.0 | 21,057 | 588 | codeparrot/github-code |
9f6f5d7ab7ca2b6493c7978ee54f930830467ab31a770ac9eb799713071520fc | package main
import (
"bufio"
"encoding/hex"
"fmt"
"io/ioutil"
"net"
"net/http"
"net/url"
"os"
"strconv"
"strings"
"time"
"golang.org/x/crypto/ssh/terminal"
"github.com/Sirupsen/logrus"
"github.com/docker/distribution/registry/client/auth"
"github.com/docker/distribution/registry/client/transport"
"g... | GO | cmd/notary/tuf.go | andrewhsu/notary | apache-2.0 | 30,420 | 1,037 | codeparrot/github-code |
8dff15d3debad2fc7068628d480b6cda09d237d6940603bead1416875d7f9132 | package net.odbogm.security;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import java.util.logging.Logger;
import java.util.stream.Collectors;
import net.odbogm.LogginProperties;
import net.odbogm.annotations.Entity;
import net.odbogm.annotations.Indexed;
import net.odbogm.annotatio... | Java | src/main/java/net/odbogm/security/UserSID.java | mdre/odbogm | apache-2.0 | 2,955 | 104 | codeparrot/github-code |
325ab6fcba14c381b00605f59668e2f954eafb5b7302a804b396283032d58688 | /**
*
*/
package org.crazyit.service;
import android.os.Parcel;
import android.os.Parcelable;
/**
* Description:
* <br/>ÍøÕ¾: <a href="http://www.crazyit.org">·è¿ñJavaÁªÃË</a>
* <br/>Copyright (C), 2001-2014, Yeeku.H.Lee
* <br/>This program is protected by copyright laws.
* <br/>Program Name:
* <br/>Date:
* ... | Java | W_eclipse1_2/ComplexClient/src/org/crazyit/service/Person.java | 00wendi00/MyProject | apache-2.0 | 2,350 | 130 | codeparrot/github-code |
70ce19ead186566b4836e691ef3643b766a5506566ccdfd5ae87bd3dbdf43319 | package com.sksamuel.elastic4s
import com.sksamuel.elastic4s.definitions.DefinitionRouting
import com.sksamuel.elastic4s.source.{DocumentSource, Indexable}
import org.elasticsearch.action.WriteConsistencyLevel
import org.elasticsearch.action.update.{UpdateAction, UpdateRequest, UpdateRequestBuilder, UpdateResponse}
im... | Scala | elastic4s-core/src/main/scala/com/sksamuel/elastic4s/UpdateDsl.scala | k4200/elastic4s | apache-2.0 | 4,864 | 170 | codeparrot/github-code |
21fcb43b9ff92c6c55200207bdc1d661d6aac14b001cabb56199763435720b30 | /*
* Licensed to The Apereo Foundation under one or more contributor license
* agreements. See the NOTICE file distributed with this work for additional
* information regarding copyright ownership.
*
* The Apereo Foundation licenses this file to you under the Apache License,
* Version 2.0, (the "License"); you ma... | Java | Source/Plugins/Core/com.equella.core/src/com/tle/web/api/collection/interfaces/beans/CollectionSecurityBean.java | equella/Equella | apache-2.0 | 1,942 | 56 | codeparrot/github-code |
0e05a4d34c36a2f513dc30796b51a3d50c5cd0aa216214ccae3a72beb2888e65 | package cs.pub.activity.model;
import java.sql.Timestamp;
import java.util.Set;
import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.EnumType;
import javax.persistence.Enumerated;
import javax.persistence.FetchType;
import javax.persistence.G... | Java | src/main/java/cs/pub/activity/model/Activity.java | lstefan/Activity | apache-2.0 | 3,144 | 164 | codeparrot/github-code |
5c12c681279d3df540b9ce164222c043b7ebfabbafc3ae536700910e2cc4e583 | package sttp.client3.asynchttpclient
import java.util.concurrent.atomic.AtomicBoolean
import io.netty.util.concurrent.{Future, FutureListener}
import org.asynchttpclient.ws.{WebSocket => AHCWebSocket, WebSocketListener => AHCWebSocketListener}
import sttp.client3.internal.ws.{SimpleQueue, WebSocketEvent}
import sttp.... | Scala | async-http-client-backend/src/main/scala/sttp/client3/asynchttpclient/WebSocketImpl.scala | softwaremill/sttp | apache-2.0 | 5,035 | 122 | codeparrot/github-code |
a10a672054f7933109850ca6a026905b37c3886dfe6d6b67c41872397a6be729 | package ca.firstvoices.maintenance.services;
import ca.firstvoices.core.io.utils.PropertyUtils;
import ca.firstvoices.core.io.utils.SessionUtils;
import ca.firstvoices.maintenance.Constants;
import ca.firstvoices.maintenance.common.CommonConstants;
import java.util.HashSet;
import java.util.Set;
import org.nuxeo.ecm.c... | Java | modules/common/firstvoices-maintenance/src/main/java/ca/firstvoices/maintenance/services/MaintenanceLoggerImpl.java | First-Peoples-Cultural-Council/fv-web-ui | apache-2.0 | 4,436 | 117 | codeparrot/github-code |
7a80934d22c05a13b045b605efe96102d856abc3f49e05296b5c939a2ca15154 | /*
* Copyright 2012 Happy-Camper Street.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or a... | Java | src/main/java/org/ensime/maven/plugins/ensime/model/EnsimeModule.java | ensime/ensime-maven | apache-2.0 | 2,792 | 76 | codeparrot/github-code |
91dce30f43266f48027769e8a75315df3bb4fb7079f15496d8251c984164caa4 | /**
* Copyright 2017 Google Inc. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by appli... | Java | ailib/src/main/java/ai/api/android/SessionIdStorage.java | dialogflow/dialogflow-android-client | apache-2.0 | 1,903 | 51 | codeparrot/github-code |
008dad2bdc95a8bcf04d19d36b75367252d2a9ea967323eeb0837b8b65b1ec73 | package com.epam.rft.atsy.web.configuration;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Configuration;
import org.springframework.security.config.annotation.authentication.builders.AuthenticationManagerBuilder;
import org.springframework.security.config... | Java | web/src/main/java/com/epam/rft/atsy/web/configuration/SecurityConfiguration.java | epam-debrecen-rft-2015/atsy | apache-2.0 | 1,587 | 37 | codeparrot/github-code |
adbec36cfc5eb31cf19ae56d04b0231d5def95ae655b457d4c69e3cc7eaaba57 | # -*- coding: utf-8 -*-
# Copyright (C) 2012 Yahoo! Inc. All Rights Reserved.
# Copyright (C) 2013 Rackspace Hosting 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 ... | Python | taskflow/utils/misc.py | pombredanne/taskflow-1 | apache-2.0 | 20,033 | 584 | codeparrot/github-code |
c50d650a4ba6250642f06df697d35d21d9b0814637e07cba4b95aa39823f6d99 | /*
* Copyright 2010-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" fil... | C | aws-cpp-sdk-pinpoint/include/aws/pinpoint/model/GetImportJobsResult.h | svagionitis/aws-sdk-cpp | apache-2.0 | 1,942 | 66 | codeparrot/github-code |
be4224e1abacb954c041975956eccca15369c2f5cc89cf2d5f9b40376de254f2 | #pragma once
#include "il2cpp-config.h"
#ifndef _MSC_VER
# include <alloca.h>
#else
# include <malloc.h>
#endif
#include <stdint.h>
#include "mscorlib_System_Object2689449295.h"
// System.Collections.Generic.IList`1<UnityEngine.UI.Dropdown/OptionData>
struct IList_1_t2961208101;
#ifdef __clang__
#pragma clang... | C | Unity_Code/DinoRun_Final/Temp/il2cppOutput/il2cppOutput/mscorlib_System_Collections_ObjectModel_ReadOnlyCo2606053192.h | BPenzar/SuperDinoBros. | apache-2.0 | 1,196 | 48 | codeparrot/github-code |
1a4bed6a0ddd82da21144e0b392bd52dd6789ece0d4c453f42fdc0f3b5e67700 | /* jshint unused: false */
'use strict';
// //////////////////////////////////////////////////////////////////////////////
// / DISCLAIMER
// /
// / Copyright 2016 ArangoDB GmbH, Cologne, Germany
// / Copyright 2013 triAGENS GmbH, Cologne, Germany
// /
// / Licensed under the Apache License, Version 2.0 (the "License"... | JavaScript | js/client/modules/@arangodb/foxx/manager.js | baslr/ArangoDB | apache-2.0 | 23,381 | 740 | codeparrot/github-code |
a848df31758451273b9639027b89021e64e9915fe2fd4b1ac9c064ac3f2ea90f | /*
* Copyright 2016 Jacopo Urbani
*
* 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, V... | C++ | src/kognac/utils/lz4io.cpp | karmaresearch/kognac | apache-2.0 | 8,416 | 271 | codeparrot/github-code |
00e759a149641baa78bfb3449aa425d1c5117752a464cdab99d12e7907304a41 | /*
* Copyright 2014-2018 JKOOL, 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... | Java | tnt4j-streams-ws/src/main/java/com/jkoolcloud/tnt4j/streams/inputs/CmdStream.java | Nastel/tnt4j-streams | apache-2.0 | 5,517 | 163 | codeparrot/github-code |
a657e54e08e97dc4d19c400f7a1b10709dc085e65ee124a362207adcedc5f2dd | /*******************************************************************************
* Copyright (c) 2015, 2016 Automation RockStars Ltd.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Apache License v2.0
* which accompanies this distribution, and is avail... | Java | design/gir-mobile/src/main/java/com/automationrockstars/gir/mobile/ByTextInBetween.java | AutomationRockstars/Design | apache-2.0 | 2,876 | 95 | codeparrot/github-code |
fb1a6b0b671e71651fd3553c347e1107ed26d5cd57c47fa0c9f9e3b7d34b3e40 |
require('dotenv').config();
/* Uses the slack button feature to offer a real time bot to multiple teams */
var Botkit = require('botkit'),
redisConfig = {"url": process.env.REDIS_URL},
redisStorage = require('botkit/lib/storage/redis_storage')(redisConfig);
if(process.env.local_redis){
// is this a hack? maybe... | JavaScript | mondobot.js | parisandmilo/mondobot | apache-2.0 | 11,987 | 354 | codeparrot/github-code |
fb95b0c20b9985e26ad8f4412c49695cec672aa36f5b8bec6501e49f437a623d | /*
* This file is a part of the ACT: Algorithm Comparison Tool Project
*
* Copyright 2013-2014 Pavel Fischer (rubbiroid@gmail.com)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*... | C | plugins/xilinx_tools/xdlrcparser.h | Rubbiroid/ACT | apache-2.0 | 4,737 | 174 | codeparrot/github-code |
17b72d7aa2bebae15721f45accab880f4383af661da91d1d3149a847bec74768 | package cgeo.geocaching.ui.logs;
import cgeo.geocaching.Image;
import cgeo.geocaching.ImagesActivity;
import cgeo.geocaching.LogEntry;
import cgeo.geocaching.R;
import cgeo.geocaching.activity.AbstractActivity;
import cgeo.geocaching.activity.Progress;
import cgeo.geocaching.list.StoredList;
import cgeo.geocaching.net... | Java | main/src/cgeo/geocaching/ui/logs/LogsViewCreator.java | eric-stanley/cgeo | apache-2.0 | 6,515 | 177 | codeparrot/github-code |
accf191b80f7a2b14421e33f4fde077aac7a9cfbb717ad82354c53b4a6cccc8e | package com.gentics.mesh.etc.config;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collection;
import java.util.List;
import java.util.Set;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonPropertyDescription;
import com.gentics.mesh.annotation.... | Java | api/src/main/java/com/gentics/mesh/etc/config/S3Options.java | gentics/mesh | apache-2.0 | 10,541 | 282 | codeparrot/github-code |
d443af79c145928bcf62d09a478dd1bead909eb782d98cf8540b2334526c69e8 | package org.ihtsdo.sct.drugmatch.match;
import java.util.ArrayList;
import java.util.List;
import java.util.Locale;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import org.apache.commons.lang3.StringUtils;
import org.ihtsdo.sct.drugmatch.model.Component;
import org.ihtsdo.sct.drugmatch.model.Pharma... | Java | src/main/java/org/ihtsdo/sct/drugmatch/match/MatchTermHelper.java | IHTSDO/drugMatch | apache-2.0 | 23,271 | 560 | codeparrot/github-code |
6ce72f522ceb6d066a9756fd3fe6d614a0490cf02d63b6aef2833b882b7b8f1e | package com.kenai.function.meizu;
import com.kenai.function.state.XState;
import android.os.Build;
public class MeizuSetting {
public final static int TYPE_ALARM = 1, TYPE_MMS = 2, TYPE_CALEDAR = 3,
TYPE_CUSTOM = 4, TYPE_EMAIL = 5;
private final static int RING_TYPE_ALARM = 4, RING_TYPE_MMS = 32,
R... | Java | src/main/java/com/kenai/function/meizu/MeizuSetting.java | kenaiX/kenai-common-android | apache-2.0 | 1,143 | 45 | codeparrot/github-code |
a539f69c1fbd54a4a59af6f60521a4f97834b42f16e30350c6fef5fcf961b881 |
# vim: et
require_relative 'backprint'
require_relative 'table'
module Io::Creat::Slipstick
module Backprints
class ConstantsBackprint < Backprint
MATH = [ [ 'imaginary', 'i²', "-1" ],
[ 'meissel_mertens', 'M₁', "\u00a00.26149721284764278376" ],
[ 'omega',... | Ruby | src/backprints/constants.rb | giorno/slipstick | apache-2.0 | 4,614 | 103 | codeparrot/github-code |
bbe48606d7ca9cbded3c5b53e5986cf795e571fbb683f41c05ffa49983273169 | /*
* 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 | asterix-external-data/src/main/java/org/apache/asterix/external/dataset/adapter/HiveAdapter.java | amoudi87/asterixdb | apache-2.0 | 1,804 | 50 | codeparrot/github-code |
60ac2167c8ddd6f8e2ea65177e8ee64876dbfc5dd7336c7d9f2702a66e6dd0a0 | const express = require('express');
const router = express.Router();
const chromeLauncher = require('chrome-launcher');
const lighthouse = require('lighthouse');
const ReportGenerator = require('lighthouse/lighthouse-core/report/report-generator.js');
function launchChromeAndRunLighthouse(url, flags = {}, config = nul... | JavaScript | routes/lighthouse.js | frocher/bnb_probe | apache-2.0 | 2,157 | 53 | codeparrot/github-code |
e8fdacb3198f282dd9434af850dd33272d2748e58a92d9511602933c3800db21 | package java.util;
/*
* #%L
* Matos
* $Id:$
* $HeadURL:$
* %%
* Copyright (C) 2010 - 2014 Orange SA
* %%
* 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... | Java | matos-android/src/main/java/java/util/LinkedHashMap.java | Orange-OpenSource/matos-profiles | apache-2.0 | 1,639 | 65 | codeparrot/github-code |
8f8cee113d5e255584d0a434cde09a9027c49063d2816482a499d2c0fb9b9e2b | # -*- coding: utf-8 -*-
from django.db import models
from datetime import datetime
__author__ = 'AlexStarov'
class Manager(models.Manager):
def location_date_time_gte_today(self):
aaa = self.location_date_time.filter(date_start__gte=datetime.today(), )
print(self, )
print(aaa, )
... | Python | applications/mycalendar/managers.py | AlexStarov/Shop | apache-2.0 | 893 | 35 | codeparrot/github-code |
e4729cb2e710a83bce6d5ef79985232b3150b249639ee448b13ed0a67c1c4886 | package pe.asomapps.popularmovies.ui.utils;
import pe.asomapps.popularmovies.ui.adapters.SortOptionsAdapter;
public class SortOptionItem implements SortOptionsAdapter.Sortable{
private CharSequence label;
private Sort value;
private boolean visible;
public SortOptionItem(CharSequence label, Sort valu... | Java | app/src/main/java/pe/asomapps/popularmovies/ui/utils/SortOptionItem.java | Danihelsan/PopularMovies | apache-2.0 | 1,000 | 46 | codeparrot/github-code |
6f40d804bce9dd2fb17dac4a3cf98cdf0a29a8fb61377ee5df43186b3ec52b4a | package com.obrero.cmycountry.fragments;
import android.app.Fragment;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ListView;
import com.obrero.cmycountry.R;
import com.obrero.cmycountry.adapter.PathAdapter;
import com.obrer... | Java | src/com/obrero/cmycountry/fragments/PlaceFragment.java | BlaShadow/forrum-hack | apache-2.0 | 1,165 | 41 | codeparrot/github-code |
37aeb54846cb16e10c040cff84bc9bdabc16c2d6a1e5ef3e3950fb37274b90e6 | /*
* Copyright (c) 2017 The Microbule Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or... | Java | spring/config/src/main/java/org/microbule/spring/config/SpringEnvironmentConfigProvider.java | Microbule/microbule | apache-2.0 | 1,963 | 57 | codeparrot/github-code |
36cf4274326ded9d1fa60cd777ceb9e68e0d0e3348b60eefc585b0e3591676d5 | /* Copyright (c) 2012 Nordic Semiconductor. All Rights Reserved.
*
* The information contained herein is property of Nordic Semiconductor ASA.
* Terms and conditions of usage are described in detail in NORDIC
* SEMICONDUCTOR STANDARD SOFTWARE LICENSE AGREEMENT.
*
* Licensees are granted free, non-transferable use... | C | sw/nRF51_SDK_10.0.0_dc26b5e/components/ble/ble_services/ble_ans_c/ble_ans_c.c | kevin-ledinh/banana-tree | apache-2.0 | 39,326 | 1,050 | codeparrot/github-code |
ea5b68b73c0bfe59cfdc89aceafd57f27517ca246ee9edc1dab343571dc8e826 | /*-------------------------------------------------------------------------------------------------------------------*\
| Copyright (C) 2014 PayPal |
| ... | Java | client/src/main/java/com/paypal/selion/internal/reports/runtimereport/ConfigMethodInfo.java | ILikeToNguyen/SeLion | apache-2.0 | 2,800 | 52 | codeparrot/github-code |
6c853301a1f3f9e5eb33cef0ed31c2f468e4b33e90f1107927d67e19b2ca38d8 | /*
* Copyright (c) 2017 Otávio Santana and others
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* and Apache License v2.0 which accompanies this distribution.
* The Eclipse Public License is available at http://ww... | Java | redis-driver/src/test/java/org/jnosql/diana/redis/key/RedisBucketManagerTest.java | JNOSQL/diana-driver | apache-2.0 | 4,440 | 119 | codeparrot/github-code |
d0fce4c50c57bd3e8628b6cc1658f6d594f1ba0650bc6ab220346b78472efc83 | /* Public domain */
#ifdef _XBOX
# include <agar/core/queue_close.h> /* Naming conflicts */
# include <xtl.h>
# include <agar/core/queue_close.h> /* Naming conflicts */
# include <agar/core/queue.h>
typedef LONG NTSTATUS;
typedef struct {
USHORT Length;
USHORT MaximumLength;
PSTR Buffer;
} ANSI_STRING, *PANSI_... | C | dependencies/agar/include/agar/core/xbox.h | LiberatorUSA/GUCEF | apache-2.0 | 2,883 | 79 | codeparrot/github-code |
6f7d570bfc0e3c55afb307cf88ad0c7f22ab8451e42be5de604242e2331619e9 | #pragma once
/*
* Covariant Mozart Utility Library: Memory
*
* 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... | C++ | mozart/memory.hpp | mikecovlee/mozart | apache-2.0 | 12,022 | 534 | codeparrot/github-code |
bc067076358f956bc451285c16413be7b366b5a966ed16b3e9327353e9dc70ca | // Copyright (c) 2019 Uber Technologies, Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or a... | JavaScript | ui/src/plugins/built-in/panel/jaeger-panel/TraceView/JaegerComponents/common/CopyIcon.test.js | teamsaas/meq | apache-2.0 | 2,176 | 71 | codeparrot/github-code |
34e5ffc25437dc6b33108325a6e9a31211c4779436bc3ea95e793e24c57e851f | /**
*
*/
package me.learn.personal.month5;
import java.util.ArrayDeque;
import java.util.Deque;
import me.learn.utli.TreeNode;
/**
* Title 449 :
*
* Date : Dec 29, 2020
*
* @author bramanarayan
*
*/
public class SerializeAndDeserializeBST {
/**
* @param args
*/
public static void main(String[] arg... | Java | src/me/learn/personal/month5/SerializeAndDeserializeBST.java | balajiboggaram/algorithms | apache-2.0 | 1,861 | 98 | codeparrot/github-code |
e8b6bfdb63711844a78046ecf25fdcf98d1260000fcc2e962d7893fa3970f25d | /*
* Copyright (C) 2014-2022 Philip Helger (www.helger.com)
* philip[at]helger[dot]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/LICEN... | Java | ph-xml/src/main/java/com/helger/xml/microdom/MicroDocumentType.java | phax/ph-commons | apache-2.0 | 3,128 | 113 | codeparrot/github-code |
367bb19a783732efda3333fe788b12252b6147b0790fbfe86ba211c29bfebf48 | =head1 LICENSE
Copyright (c) 1999-2011 The European Bioinformatics Institute and
Genome Research Limited. All rights reserved.
This software is distributed under a modified Apache license.
For license details, please see
http://www.ensembl.org/info/about/code_licence.html
=head1 CONTACT
Please email... | Perl | EnsemblAPI/ensembl/modules/Bio/EnsEMBL/DBSQL/SupportingFeatureAdaptor.pm | adamsardar/perl-libs-custom | apache-2.0 | 7,513 | 259 | codeparrot/github-code |
c7039477d317467c15bc978b7107661517321b181b1c16270c0304af822a5e95 | <?php
namespace Addons\UserCenter;
use Common\Controller\Addon;
/**
* 微信用户中心插件
*
* @author 无名
*/
class UserCenterAddon extends Addon {
public $info = array (
'name' => 'UserCenter',
'title' => '微信用户中心',
'description' => '实现3G首页、微信登录,微信用户绑定,微信用户信息初始化等基本功能',
'status' => 1,
'author' => '贝贝',
've... | PHP | Addons/UserCenter/UserCenterAddon.class.php | gooraye/gurui | apache-2.0 | 527 | 32 | codeparrot/github-code |
adc842039f69c3fb4eeb1152e9f702609b48e2b704e50d00c155174069270807 | #
# Author:: John Keiser (<jkeiser@chef.io>)
# Copyright:: Copyright (c) Chef Software Inc.
# License:: Apache License, Version 2.0
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# htt... | Ruby | lib/chef/chef_fs/file_system/repository/file_system_entry.rb | chef/chef | apache-2.0 | 4,778 | 154 | codeparrot/github-code |
2782da738474ad28ad082b16cd91de71a311795209ce141d0d6c91d37a106010 | <!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>Dreams</title>
<meta name="viewport" content="width=device-width">
<meta name="description" content="In a private consultation with Kathy Rose, you'll discover the gift... | HTML | _site/blog/2014/07/18/blogExmpl-1/index.html | winber1/rose | apache-2.0 | 61,082 | 1,293 | codeparrot/github-code |
c3c8cdf1ba0ebbb92682e1a162060dbc79188f392c43b0e7754406715610eeab | /*
* Copyright 2017 The Pulp 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 ... | Java | pulp-api-ut/src/main/java/com/github/i49/pulp/api/metadata/DublinCoreTest.java | i49/pulp | apache-2.0 | 1,872 | 67 | codeparrot/github-code |
0217b655d552ca409730c889c2834305fc5592998678d4758f910d5f57f7d2fd | <?php
namespace ke;
class Verification
{
private $id=0;
private $src=[];
private $width=64;
private $height=64;
private $error='';
public function __construct($id='',$len=4,$height=25){
if($id!=''){
mt_srand();
for ($i = 0; $i < $len; $i++) {
$th... | PHP | src/extends/Verification.php | wdaglb/keframework | apache-2.0 | 1,770 | 65 | codeparrot/github-code |
1179d6174a63db3e7c7824b5b18f4a0b2176cc9a8763bba4f99d7cf466c19d95 | package main
import (
"fmt"
"io/ioutil"
"os"
"os/exec"
"path/filepath"
"regexp"
)
type SystemClient interface {
EnvironmentDirs() ([]string, error)
EnsureEnvironmentDir(envName string, keys SSHKey) (string, error)
RemoveEnvironmentDir(envName string) error
EnsureSSHKey() (SSHKey, error)
Username() string
... | GO | system.go | justone/ddc-go | apache-2.0 | 3,118 | 157 | codeparrot/github-code |
32c1377f13421547e1dd4c3210776bf94669cf6c82d8f5792b811b8aa1136039 | let fs = require('fs'),
crypto = require('crypto'),
exec = require('child_process').exec,
express = require('express'),
redis = require('redis'),
kue = require('kue'),
request = require('request'),
mkdirp = require('mkdirp'),
... | JavaScript | judge/agent/linuxcontainer/index.js | grapecity/codespark | apache-2.0 | 11,388 | 272 | codeparrot/github-code |
473dc31f1a7adc747ce1b134be1e30809378c72ee4d35f08126e3cff407a9b6e | /*
* 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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... | JavaScript | packages/story-editor/src/app/story/useStoryReducer/reducers/deletePage.js | GoogleForCreators/web-stories-wp | apache-2.0 | 1,970 | 69 | codeparrot/github-code |
24bca085426494d2d7fae97b2bcb30e8d27fb2d83d9185511d86dec9f62d0ca5 | /*
* Copyright 1999-2012 Alibaba Group.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by appl... | Java | cobar-parser/src/main/java/com/alibaba/cobar/parser/recognizer/lexer/SymbolTable.java | lostdragon/cobar | apache-2.0 | 6,509 | 211 | codeparrot/github-code |
cad6204cf945d0faa7ff21e50577fd39c9daa524740a95ddcc6c37c49ae6d143 | <?php
/*
* $Id: ResultSetCommon.php,v 1.1 2007/01/03 20:10:14 rpm Exp $
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
* A PARTICULAR PURPOSE... | PHP | creole/common/ResultSetCommon.php | rodrigoprestesmachado/whiteboard | apache-2.0 | 13,890 | 448 | codeparrot/github-code |
22ce8a270804897cb503eeccfe12b662eca469ee2561fbbf6fdd2e0ceeb9af0e | /* Clientside Database Helpers
-------------------------------------------------- */
var nsp = require('socket.io-client')('/api'),
_ = require("lodash"),
api = require('socket.io-client')('/api');
/* Scoped Module Globals
-------------------------------------------------- */
var col... | JavaScript | client/src/js/database.helpers.js | alexjstubbs/ignition-dev | apache-2.0 | 1,528 | 58 | codeparrot/github-code |
cee85fb96f1aa4c8c03473ebb81973a9c08342637700f97aa901be3fe8c17c30 | import json
import random
import time
import urllib
import re
from scrapy.utils.misc import load_object
from scrapy.http import Request
from scrapy.conf import settings
import redis
from crawler.schedulers.redis.dupefilter import RFPDupeFilter
from crawler.schedulers.redis.queue import RedisPriorityQueue
try:
im... | Python | crawler/schedulers/kafka/scheduler.py | openslack/openslack-crawler | apache-2.0 | 6,484 | 198 | codeparrot/github-code |
87760ee34dd15aa6ca28a680dffbf8ef29d94e771cb218f15f6db1df55d071c4 | ---
layout: default
---
<!-- Page Header -->
<header class="intro-header" style="background-image: url('{{ site.baseurl }}/{% if page.header-img %}{{ page.header-img }}{% else %}{{ site.header-img }}{% endif %}')">
<div class="container">
<div class="row">
<div class="col-lg-8 col-lg-offset-2 co... | HTML | _layouts/trip.html | leon90dm/leon90dm.github.io | apache-2.0 | 1,974 | 59 | codeparrot/github-code |
e515f2f3c05090a73063c101e104189e2e8b0a30a5f75e67852b6c5f6cec8aaf | <!DOCTYPE html>
<html lang="en">
<head>
<title>Kunal Sarkhel</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="">
<meta name="author" content="">
<!-- Bootstrap Core CSS -->
<link rel="stylesheet" href="/... | HTML | gmu/spring2016/math477/proj6.html | techwizrd/techwizrd.github.io | apache-2.0 | 13,388 | 390 | codeparrot/github-code |
198bd1438b25c12d0ac343a8553d19bc1e37508e229625e7bf038406ddea9ae4 | import chai from 'chai';
import chaiAsPromised from 'chai-as-promised';
import _ from 'lodash';
import sinon from 'sinon';
import ADB from 'appium-adb';
import os from 'os';
import AndroidDriver from '../../..';
chai.should();
chai.use(chaiAsPromised);
describe('commands - logging', function () {
let driver;
bef... | JavaScript | test/unit/commands/log-specs.js | vmaxim/appium-android-driver | apache-2.0 | 1,622 | 48 | codeparrot/github-code |
7e2e98ae014f88b878188edae2baa0d536c658f22110a102edc0f967e1958258 | package org.gradle.test.performance.mediummonolithicjavaproject.p231;
import org.junit.Test;
import static org.junit.Assert.*;
public class Test4624 {
Production4624 objectUnderTest = new Production4624();
@Test
public void testProperty0() {
String value = "value";
objectUnderTest.... | Java | my-app/src/test/java/org/gradle/test/performance/mediummonolithicjavaproject/p231/Test4624.java | oehme/analysing-gradle-performance | apache-2.0 | 2,111 | 79 | codeparrot/github-code |
b355ded7f4dbdbdce69080e69bf53a0a3f08661d40d6bc19beeb28b36462a504 | /*=========================================================================
*
* Copyright Insight Software Consortium
*
* 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
*
* h... | C | Modules/Filtering/ImageLabel/include/itkChangeLabelImageFilter.h | GEHC-Surgery/ITK | apache-2.0 | 5,109 | 178 | codeparrot/github-code |
1c2804155c78db09f24e90c94340ee1856f0ead1a6f5058b32c3b825be8f91c8 | /**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you... | Java | src/mapred/org/apache/hadoop/mapred/MapTask.java | wzhuo918/release-1.1.2-MDP | apache-2.0 | 59,526 | 1,705 | codeparrot/github-code |
214fb37fcbae40206a9b4159ec3804a519ee0304ed997ddf1bf8e0ccb732f5d1 | /*!The Treasure Box Library
*
* 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 ... | C | core/src/tbox/src/tbox/container/element/long.c | tboox/xmake | apache-2.0 | 3,859 | 122 | codeparrot/github-code |
0909a4a31cae8cc87290be826447ae4c718e667471edf3fe3f26c2b3bb8a1cc5 | /*
* 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-inspector/src/main/java/com/amazonaws/services/inspector/model/GetTelemetryMetadataRequest.java | aws/aws-sdk-java | apache-2.0 | 4,158 | 125 | codeparrot/github-code |
deed75e07f481f6de800b17fb406a345ebd7650fe5e9f154f35358bbad94434f | <!DOCTYPE html>
<html class="theme-next mist use-motion" lang="zh-Hans">
<head>
<meta charset="UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"/>
<meta name="theme-color" content="#222">
<meta http-eq... | HTML | archives/2016/index.html | JUSTQINGQING/JUSTQINGQING.github.io | apache-2.0 | 29,406 | 1,152 | codeparrot/github-code |
520615a8670f9e237fcbadaceaa75f8747a8b5cd8e1d92d2a28f97c3296ae81c | <?php
/*.
require_module 'standard';
.*/
require_once(__DIR__."/../functions/functions.inc");
require_once(__DIR__."/neon_members_lib.inc");
require_once(__DIR__."/neon_sync_tools.inc");
$SILENCE_LOG = true;
function _Neon_import_members($fields)
{
/* When really ready switch to true */
$page = 1;
... | PHP | tools/sync_neon_members_to_db.php | CON-In-A-Box/ConComSignIn | apache-2.0 | 1,095 | 52 | codeparrot/github-code |
cb4fcf38bdd072df292184f03239ae2d0e7d7a4c74db1c9f330b3d36a0ecc842 | jest.mock('mongodb');
jest.mock('../database');
const { getMongoDatabase } = require('../database');
const insertHotSearchKeywords = require('../hotSearchKeywords').default;
describe('insertHotSearchKeywords', () => {
let defaultDate;
beforeEach(() => {
defaultDate = Date;
const constantDate = new Date('2... | JavaScript | src/models/__tests__/hotSearchKeywords.spec.js | PPAV-inc/telegram-bot | apache-2.0 | 1,387 | 55 | codeparrot/github-code |
cd6991e4e86a6b2911785c726a4d3dd3225776d97c6e1dc59238754c51f04e3e | /*
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); y... | Java | modules/ws-messenger/messagebox/src/main/java/org/apache/airavata/wsmg/msgbox/util/MsgBoxUtils.java | glahiru/airavata | apache-2.0 | 2,581 | 72 | codeparrot/github-code |
1e194fc67feabfd4b2b6b5e58e5f085f9b7ab8f9631251fb0cb12ba88f7e1f32 | /***************************************************************************
* Copyright 2021 Kieker Project (http://kieker-monitoring.net)
*
* 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 a... | Java | kieker-tools/opad/test/kieker/test/tools/junit/opad/filter/RecordConverterTest.java | kieker-monitoring/kieker | apache-2.0 | 6,251 | 184 | codeparrot/github-code |
dfc2f4a4295312387db46951e6634947efe70bbd2147d3c44f369c88b250904a | # Copyright (c) 2015 Rackspace
# 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... | Python | neutron/extensions/dns.py | cloudbase/neutron | apache-2.0 | 9,551 | 265 | codeparrot/github-code |
fe21b10695a81f6c4a7d54f822830331f516dba99f6facd76f3fc1a8bcf008e0 | /*
* Copyright 2011 Aevum Software aevum @ aevumlab.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 b... | C++ | src/gdx-cpp/backends/android/AndroidGLU.hpp | aevum/libgdx-cpp | apache-2.0 | 1,845 | 57 | codeparrot/github-code |
46491a512ff7147d67c1c4c776ef9657a06edd6f9204ec60d26e6b9756aaca49 | // /*
// * Copyright (c) 2016, Alachisoft. 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
// *
// * Unl... | C# | Src/Core/Storage/Collections/BaseCollection.cs | Alachisoft/NosDB | apache-2.0 | 66,541 | 1,680 | codeparrot/github-code |
3263f6c5508def598c24925b19d36b99a20745f93421e15f1803af6bbb7d8649 | #!/bin/bash
set -exo pipefail
# Modified from bootstrap-conda.sh script, see:
# https://bitbucket.org/bombora-datascience/bootstrap-conda
# Run on BOTH 'Master' and 'Worker' nodes
#ROLE=$(/usr/share/google/get_metadata_value attributes/dataproc-role)
#if [[ "${ROLE}" == 'Master' ]]; then
MINICONDA_VARIANT=$(/usr/sh... | Shell | conda/bootstrap-conda.sh | dennishuo/dataproc-initialization-actions | apache-2.0 | 7,087 | 162 | codeparrot/github-code |
d90a98b8502619a5bf17a67f6f19a1a9233e6fd54f5dd9d6c6957b0adcc431c3 | --[[
LuCI - Lua Configuration Interface
Copyright 2008 Steven Barth <steven@midlink.org>
Copyright 2008 Jo-Philipp Wich <xm@leipzig.freifunk.net>
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
h... | Lua | modules/admin-full/luasrc/model/cbi/admin_system/sshkeys.lua | mzguanglin/LuCI | apache-2.0 | 993 | 36 | codeparrot/github-code |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.