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 |
|---|---|---|---|---|---|---|---|---|
2497684ca35e8940478323dbed62c26ddb2f06098bce23f797649742d830af60 | <!DOCTYPE html>
<meta charset="utf-8">
<style>
.axis path, .axis line {
fill: none;
stroke: #000;
shape-rendering: crispEdges;
}
</style>
<body>
<script src="../../d3.js"></script>
<script>
//svg尺寸
var width = 500,height = 500;
//数据集
var dataset=[1,2,3,4,5,6,7,8,9,10,11,12];
var color = d3.scale.category10();... | HTML | scale/quantile/quantile.html | tianxuzhang/d3-api-demo | apache-2.0 | 1,250 | 61 | codeparrot/github-code |
c55891c3932abcab6ad7087942bd07c6d7a2c1cca769615162a329c01219cb4a | /*
* Copyright (c) 2016 Intel Corporation.
* Copyright (c) 2013-2015 Wind River Systems, Inc.
*
* SPDX-License-Identifier: Apache-2.0
*/
/**
* @file
* @brief Atmel SAM3X MCU series initialization code
*
* This module provides routines to initialize and support board-level hardware
* for the Atmel SAM3X serie... | C | soc/arm/atmel_sam/sam3x/soc.c | ldts/zephyr | apache-2.0 | 5,610 | 237 | codeparrot/github-code |
ef3fd4c46620dff1271fcb05b0801a76ba4b4cb94d50ca2c57016e482110c3db | /**
* Copyright 2012-2014 eBay Software Foundation, 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 ... | Java | src/main/java/com/ebay/myriad/api/model/FlexDownClusterRequest.java | eBay/myriad | apache-2.0 | 1,183 | 47 | codeparrot/github-code |
0eb0e4df337ff78f794428654b1547bc917280e913e9af23fecac7822b47c776 | /*
* 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 | components/org.apache.stratos.messaging/src/main/java/org/apache/stratos/messaging/message/processor/application/ApplicationInstanceCreatedMessageProcessor.java | hsbhathiya/stratos | apache-2.0 | 5,140 | 111 | codeparrot/github-code |
b0a7b64343567abb88a9f7bf6c56a405633345c5a6fa3e62a284d97fcbef8f09 | package common.zeroquest.entity.projectile;
import common.zeroquest.client.particle.ParticleEffects;
import net.minecraft.entity.Entity;
import net.minecraft.entity.EntityLivingBase;
import net.minecraft.entity.monster.EntityBlaze;
import net.minecraft.entity.projectile.EntityThrowable;
import net.minecraft.ini... | Java | 1.7.10-src/common/zeroquest/entity/projectile/EntityIceball.java | NovaViper/ZeroQuest | apache-2.0 | 2,766 | 99 | codeparrot/github-code |
abb9a316c7d3c00cdf4f7c2942b10732d199953a2daffa99aec4e34ec83a064e | // Copyright 2017 PingCAP, 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... | GO | statistics/sample.go | c4pt0r/tidb | apache-2.0 | 10,558 | 329 | codeparrot/github-code |
7b5427cd57f33bb954ef656460c8879d27d0f033dddf4ac50ae3a28964a592eb | // @flow
import React from 'react';
import { useTranslation } from 'react-i18next';
import { ACTION_TRIGGER, MEDIA_STATE } from '../../constants';
import { useLobbyActions } from '../../hooks';
import ParticipantItem from './ParticipantItem';
import { ParticipantActionButton } from './styled';
type Props = {
/... | JavaScript | react/features/participants-pane/components/web/LobbyParticipantItem.js | gpolitis/jitsi-meet | apache-2.0 | 1,765 | 64 | codeparrot/github-code |
6e69f881d38b2da01d9a231f57dcea9381c388a5eee91b61611ab09394d052a4 | angular.module('mwUI.Menu')
.directive('mwMenuTopBar', function ($rootScope) {
return {
transclude: {
'brand': '?img',
'entries': '?div'
},
templateUrl: 'uikit/mw-menu/directives/templates/mw_menu_top_bar.html',
require: '^?mwUi',
link: function(scope, el, attrs, mwU... | JavaScript | src/mw-menu/directives/mw_menu_top_bar.js | mwaylabs/uikit | apache-2.0 | 1,120 | 38 | codeparrot/github-code |
4c27c3addcd1d334bd916ba729678facfaff1518622b28f4778a8d703c7558d6 | /*
* Copyright (C) 2009-2018 Lightbend Inc. <https://www.lightbend.com>
*/
package play.core.server
import java.lang.management.ManagementFactory
import java.util.Properties
/**
* Abstracts a JVM process so it can be mocked for testing or to
* isolate pseudo-processes within a VM. Code using this class
* should... | Scala | framework/src/play-server/src/main/scala/play/core/server/ServerProcess.scala | Shenker93/playframework | apache-2.0 | 2,234 | 61 | codeparrot/github-code |
97c80c540f5d3b4f20852f94b302ee4d723d76b0f30e6d4e54c75e7a43f4249c | package com.dianping.cat.report.page.system;
import java.util.Collection;
import java.util.Date;
import java.util.HashSet;
import java.util.List;
import org.unidal.web.mvc.view.annotation.EntityMeta;
import org.unidal.web.mvc.view.annotation.ModelMeta;
import com.dianping.cat.consumer.company.model.entity.ProductLin... | Java | cat-home/src/main/java/com/dianping/cat/report/page/system/Model.java | ServerStarted/cat | apache-2.0 | 2,242 | 113 | codeparrot/github-code |
a3a81c8a302d1ff73d0158b279e695349d6c4a1b563c0688c445bcb27bba971e | package FileIO.CompressIO;
/**
* Created by Defias on 2016/2/29.
*
* 文件压缩
*
*/
/*
* Java.util.zip包中提供了可对文件的压缩和解压缩进行处理的类,它们继承自字节流类OutputSteam和InputStream。
*
* ZipOutputStream: ZIP压缩输出流,把数据压缩成GZIP和Zip格式
* ZipInputStream: ZIP压缩输入流,解压缩
* ZipEntry: 在每一个压缩文件中都会存在多个子文件,那么这每一个的子文件在JAVA中就使用ZipEntry表示
*
* */
import java... | Java | InitJava/base/src/main/java/FileIO/CompressIO/TestIOCompressZip.java | gdefias/StudyJava | apache-2.0 | 2,006 | 60 | codeparrot/github-code |
3d9d93d4de87e853ce38ebf9abafdcd45cf28f55186ebe13fc0ceb8f34cec747 | /* Copyright 2011 University of Arkansas for Medical Sciences
*
* 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 | iso8601/src/main/java/edu/uams/dbmi/util/iso8601/Iso8601DateTimeFormatter.java | ufbmi/iso8601 | apache-2.0 | 2,472 | 77 | codeparrot/github-code |
7ce512c786036e81432e65df48dbc32b325321eb6913fb4496dca26e0ee511f6 | /*
* Copyright © 2017 The Diamongo 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 require... | Java | core/src/test/java/io/github/diamongo/core/migration/MigrationWrappersTest.java | diamongo/diamongo | apache-2.0 | 2,045 | 58 | codeparrot/github-code |
ce67445c890ee3d0301faeed0a3e73a26d2dfc491cabbadea3f5c81527e12498 | # Copyright (c) 2003-2014 CORE Security Technologies
#
# This software is provided under under a slightly modified version
# of the Apache Software License. See the accompanying LICENSE file
# for more information.
#
# $Id: wkst.py 1117 2014-01-25 19:04:39Z bethus $
#
# Author: Alberto Solino
#
# Description:
# [MS-W... | Python | impacket-0.9.11/impacket/dcerpc/v5/wkst.py | hecchi777/S3-SlaacSecuritySolution | apache-2.0 | 34,960 | 1,195 | codeparrot/github-code |
0ea9ecb85ada669eda4a0cdd5f3aa5c3c16270feab3bf10485d09f448613cba1 | package leetcode;
/**
* Created by Tikitoo on 2015/12/21.
*/
public class WaterMost {
public static void main(String[] args) {
int x = maxArea(new int[]{3, 6, 8, 4, 9, 23});
System.out.println("max: " + x);
}
public static int maxArea(int[] height) {
if (height == null || height.... | Java | AlogAndDataStruct/src/leetcode/WaterMost.java | Tikitoo/JavaSamples | apache-2.0 | 723 | 31 | codeparrot/github-code |
5ed847fcc4f83bb916b3326082f164e7e3533ef1f196af71058bd19ea708992a | webshims.register('form-validators', function($, webshims, window, document, undefined, options){
"use strict";
(function(){
if(webshims.refreshCustomValidityRules){
webshims.error("form-validators already included. please remove custom-validity.js");
}
var customValidityRules = {};
var formReady = false;
var... | JavaScript | js/js-webshim/dev/shims/form-validators.js | cemali/mobileFirstGraceBible | apache-2.0 | 7,966 | 249 | codeparrot/github-code |
37c48c574ab54704c2bc0f6178c74b5a5760127410c96314e3972173ea9d5ec0 | board = []
for i in range(3):
board.append(["*"] * 3)
#a function that creats the board
def print_board(board):
for row in board:
print (" ".join(row))
print("Let\'s play Tic Tac Toe! the rules are simple. you, the players, is given two choices: the row and column of your symbol. note that the numbers are between 0... | Python | TicTacToe.py | orwa1902/code-exemples | apache-2.0 | 4,091 | 130 | codeparrot/github-code |
2c21e3553d37607ba09e6ce38675fbe83ec392237f8b6154fbb1cf944b44043d | package com.darrensun.spoj.coins;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.PrintWriter;
import java.util.HashMap;
import java.util.Map;
/**
* SPOJ 346 - Bytelandian gold coins
* Created by Darren on 14-7-16.
* Optimal strategy: when n < 12, we exch... | Java | src/com/darrensun/spoj/coins/Main.java | darrensun/OJ-Solutions | apache-2.0 | 2,025 | 59 | codeparrot/github-code |
b38899f3935cf1468c6849c0a08c59dae7c6a74091623ea278f5c50393d89a45 | package com.easymargining.replication.eurex.domain.services.eurex;
import com.easymargining.replication.eurex.domain.model.Trade;
import com.easymargining.replication.eurex.domain.model.results.*;
import com.easymargining.replication.eurex.domain.repository.ITradeRepository;
import com.easymargining.replication.eurex.... | Java | Server/src/main/java/com/easymargining/replication/eurex/domain/services/eurex/EurexPrimaMarginService.java | gmarchal/easymargining | apache-2.0 | 14,321 | 298 | codeparrot/github-code |
471e800b5e7145e33859aedd91ed9163cb9b9e0278447b8e99f60e376f8ea954 | namespace SlimeSimulation.Model.Generation
{
public class EdgeConnectionShape
{
public const int EdgeConnectionShapeSquare = 1;
public const string EdgeConnectionShapeSquareDescription = "Square";
public const int EdgeConnectionShapeSquareWithDiamonds = 2;
public const string Ed... | C# | SlimeSimulation/Model/Generation/EdgeConnectionShape.cs | willb611/SlimeSimulation | apache-2.0 | 1,897 | 49 | codeparrot/github-code |
de90a7ea04be2c75dbbc5ba24888996c6e2f0d0dc526bd6e7fb624c3fcda4f8e | package com.kris.mapper;
import com.kris.pojo.TbItemCatExample;
import com.kris.pojo.TbItemCat;
import java.util.List;
import org.apache.ibatis.annotations.Param;
public interface TbItemCatMapper {
int countByExample(TbItemCatExample example);
int deleteByExample(TbItemCatExample example);
int deleteBy... | Java | src/main/java/com/kris/mapper/TbItemCatMapper.java | qwe2820435o2/market-manager | apache-2.0 | 851 | 31 | codeparrot/github-code |
ff6d4b2cd38543a71eccc2c53c9ada5b6de9da725062b51424f44dd991e9c2fc | import { Component, NgZone, OnInit } from '@angular/core';
declare var $: any;
@Component({
selector: 'row-click-event',
templateUrl: 'row-click-event.component.html'
})
export class RowClickEventComponent implements OnInit {
message: string = '';
dtOptions: any = {};
constructor(private zone: NgZone) { }
... | TypeScript | public/assets/angular-datatables/demo/src/app/advanced/row-click-event.component.ts | anuj-infiny/c1demo | apache-2.0 | 1,127 | 45 | codeparrot/github-code |
e3e945cb2618995728026b746f7428cfd3f17c3b1ecc92446c64e8e44d79e3db | package com.planet_ink.coffee_mud.Abilities.Spells;
import com.planet_ink.coffee_mud.core.interfaces.*;
import com.planet_ink.coffee_mud.core.*;
import com.planet_ink.coffee_mud.core.collections.*;
import com.planet_ink.coffee_mud.Abilities.interfaces.*;
import com.planet_ink.coffee_mud.Areas.interfaces.*;
import com.p... | Java | com/planet_ink/coffee_mud/Abilities/Spells/Spell_Disenchant.java | vjanmey/EpicMudfia | apache-2.0 | 3,402 | 88 | codeparrot/github-code |
e804c49051cf1adba30c5d0bd62e1ee0cede98995929b7cda2489d69da371433 | #include "unixy.h"
#include "common.h"
const char* tmp_create() {
char *path = mkdtemp(strdup("/tmp/orbs-XXXXXX"));
assert(path);
return path;
}
// static int tmp_remove_file(const char* fpath, const struct stat* sb, int typeflag, struct FTW* ftwbuf) {
// UNUSED(sb);
// UNUSED(typeflag);
// UNUSED(ftwbuf)... | C | src/main/unixy.c | tcurdt/orbs | apache-2.0 | 1,759 | 68 | codeparrot/github-code |
32fd4731b8e0b66a91183481f5d40c6b2a0d47251397411a1933cc278460c5e6 | package com.huntor.mscrm.app2.net.api;
import android.content.Context;
import android.text.TextUtils;
import com.google.gson.Gson;
import com.huntor.mscrm.app2.model.Response;
import com.huntor.mscrm.app2.net.BaseRequestParams;
import com.huntor.mscrm.app2.net.BaseResponse;
import com.huntor.mscrm.app2.net.HttpRequest... | Java | example/src/main/java/com/huntor/mscrm/app2/net/api/ApiReqVerifyCode.java | Hn1993/huntorScrm | apache-2.0 | 2,278 | 89 | codeparrot/github-code |
a4ab8c3b3d4c70c71ce65fd5ddd41bd187fd977a1ce79a5726b9acdc4ecc9478 | /*
* Copyright 2014 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 appli... | Java | src/test/java/com/carlomicieli/jtrains/test/AbstractJsonSerializationJUnit4Tests.java | CarloMicieli/trenako-v2 | apache-2.0 | 1,515 | 51 | codeparrot/github-code |
61dc2875ae00110b8baf7765c5004ca696fa824f2f23cb3977319e9a4000a609 | """
Copyright 2021 Google LLC
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
d... | Python | adept_envs/utils/math_utils.py | google-research/DBAP-simulation | apache-2.0 | 2,819 | 81 | codeparrot/github-code |
a59d5cce8d194b31838b24b19c80cd30b599a6c026ab41cd99bd9aca56c88694 | /*
* 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 | Source4Tomcat/src/org/apache/jasper/servlet/JspCServletContext.java | pistolove/sourcecode4junit | apache-2.0 | 14,903 | 649 | codeparrot/github-code |
bfb639fc9bac7b4f6d0d2a0782864ce12bec27b30382b49a51abbea6a5756c9d | /**
*
*/
package com.xenonteam.xenonlib.client.gui.element.impl;
import java.awt.Point;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import net.minecraft.client.gui.inventory.GuiContainer;
import com.xenonteam.xenonlib.client.gui.element.GuiElement;
import com... | Java | main/java/com/xenonteam/xenonlib/client/gui/element/impl/GuiContainerImpl.java | XenonTeam/XenonLib | apache-2.0 | 2,759 | 157 | codeparrot/github-code |
b646253a9e46576c435c32f9a00f8a52cb73305e4cadfc10d8957cccc702e183 | package com.lew.jlight.web.service.impl;
import com.lew.jlight.mybatis.ParamFilter;
import com.lew.jlight.web.dao.LoginLogDao;
import com.lew.jlight.web.entity.LoginLog;
import com.lew.jlight.web.service.LoginLogService;
import org.springframework.stereotype.Service;
import java.util.List;
import javax.annotation.R... | Java | jlight-web/src/main/java/com/lew/jlight/web/service/impl/LoginLogServiceImpl.java | HulkHou/Jlight | apache-2.0 | 1,156 | 42 | codeparrot/github-code |
df623d3779443a91753da6e518c7636d4c19506cbec32974084175bf537feefb | // Copyright 2016-2022 The Libsacloud 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... | GO | v2/helper/service/containerregistry/delete_request.go | sacloud/libsacloud | apache-2.0 | 937 | 31 | codeparrot/github-code |
4081abe140260751a28d0b5e3af4617d1fbec97adb203f0d0e96f5959eb4097d | /*
Copyright 2016 Wenhui Shen <www.webx.top>
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 | app/blog/controller/base.go | webx-top/blog | apache-2.0 | 1,038 | 45 | codeparrot/github-code |
654e65bcb7b6b0512f08a8be14a2a2f434fa13fc9c97de0d0cd9a110900a8f2f | package etcd
import (
"fmt"
"net"
"net/http"
"net/http/httputil"
"time"
newetcdclient "github.com/coreos/etcd/client"
etcdclient "github.com/coreos/go-etcd/etcd"
"github.com/golang/glog"
"golang.org/x/net/context"
client "k8s.io/kubernetes/pkg/client/unversioned"
etcdutil "k8s.io/kubernetes/pkg/storage/et... | GO | pkg/cmd/server/etcd/etcd.go | levivic/origin | apache-2.0 | 4,738 | 150 | codeparrot/github-code |
856656891c42535e8d42f1bae6ea15e337a92a875611510ba6fe71a98b706a90 | package com.planet_ink.coffee_mud.Abilities.Prayers;
import com.planet_ink.coffee_mud.core.interfaces.*;
import com.planet_ink.coffee_mud.core.*;
import com.planet_ink.coffee_mud.core.collections.*;
import com.planet_ink.coffee_mud.Abilities.interfaces.*;
import com.planet_ink.coffee_mud.Areas.interfaces.*;
import com.... | Java | com/planet_ink/coffee_mud/Abilities/Prayers/Prayer_CauseSerious.java | vjanmey/EpicMudfia | apache-2.0 | 3,919 | 100 | codeparrot/github-code |
b9a7d04daa33c4157fc076a1d2bbf293f1544c757086bc2ecb8e5d42ce34da95 | /*
* Licensed to Lolay, Inc. under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. Lolay, Inc. licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file... | Java | src/main/java/com/lolay/citygrid/content/places/detail/DetailReview.java | lolay/citygrid-java-old | apache-2.0 | 5,576 | 180 | codeparrot/github-code |
d6b9768c29a3d1b815ad46ba086dbdf46827ff407a0258ad0c017e6955d1879e | /*
Copyright 2014 The Kubernetes 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 ag... | GO | Godeps/_workspace/src/k8s.io/kubernetes/pkg/controller/node/nodecontroller.go | taimir/dashboard | apache-2.0 | 41,049 | 1,040 | codeparrot/github-code |
5a59b8da3eb33796663718ca9417a1bed9bd56cec82d402750f061f76cbf2969 | <?php
namespace App\Http\Controllers\Auth;
use App\User;
use App\Profil;
use Validator;
use App\Http\Controllers\Controller;
use Illuminate\Foundation\Auth\ThrottlesLogins;
use Illuminate\Foundation\Auth\AuthenticatesAndRegistersUsers;
class AuthController extends Controller
{
/*
|------------------------------... | PHP | app/Http/Controllers/Auth/AuthController.php | Azerom/exiaWebCV | apache-2.0 | 2,072 | 70 | codeparrot/github-code |
d8ae1776bebfc481e16c56fd55f7ad1f65e114f498138147edebc9eb5720322f | package com.cantalou.skin;
import android.annotation.SuppressLint;
import android.annotation.TargetApi;
import android.app.Activity;
import android.app.Application;
import android.app.Fragment;
import android.app.Instrumentation;
import android.app.UiAutomation;
import android.content.ComponentName;
import android.con... | Java | library/src/main/java/com/cantalou/skin/SkinInstrumentation.java | cantalou/androidSkinChange | apache-2.0 | 11,773 | 370 | codeparrot/github-code |
385549d009f2b257257a6a840493ee08664103d1fb772e9c63e0ebd248fc48db |
package io.fabric8.kubernetes.api.model.storage.v1beta1;
import java.util.HashMap;
import java.util.Map;
import com.fasterxml.jackson.annotation.JsonAnyGetter;
import com.fasterxml.jackson.annotation.JsonAnySetter;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonInclude... | Java | kubernetes-model-generator/kubernetes-model-storageclass/src/generated/java/io/fabric8/kubernetes/api/model/storage/v1beta1/TokenRequest.java | fabric8io/kubernetes-client | apache-2.0 | 3,659 | 116 | codeparrot/github-code |
ea593c27d6196c3b034e34b8fb39aaf00ab58f583ea17e5da1ad026a45798580 | /*
* Copyright 2013 Zakhar Prykhoda
*
* midao.org
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless re... | Java | midao-jdbc-core/src/test/java/org/midao/jdbc/core/handlers/output/lazy/BaseLazyOutputHandlerTest.java | pryzach/midao | apache-2.0 | 10,475 | 311 | codeparrot/github-code |
807f5e139cda1a259f686c32b6ba3e04e77b9c4fa59c054824807d171fb93bab | # -*- coding: utf-8 -*-
import warnings
from libnmap.objects.cpe import CPE
class OSFPPortUsed(object):
"""
Port used class: this enables the user of NmapOSFingerprint class
to have a common and clear interface to access portused data which
were collected and used during os fingerprint sc... | Python | app/plugin/nmap/libnmap/objects/os.py | pyphrb/myweb | apache-2.0 | 13,080 | 401 | codeparrot/github-code |
0749d62c46c47364ca7c455955ca5517552d52af5d612557dc7a5975b5aff630 | function New-VSSNSTopic {
<#
.SYNOPSIS
Adds an AWS::SNS::Topic resource to the template. The AWS::SNS::Topic resource creates a topic to which notifications can be published.
.DESCRIPTION
Adds an AWS::SNS::Topic resource to the template. The AWS::SNS::Topic resource creates a topic to which... | PowerShell | VaporShell/Public/Resource Types/New-VSSNSTopic.ps1 | scrthq/Vaporshell | apache-2.0 | 15,998 | 261 | codeparrot/github-code |
bc65c95f3ce8fa501b9f170f7f529170014f9e145706e153d85b2744ad095f68 | /*
* Copyright 2013 Zakhar Prykhoda
*
* midao.org
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless re... | Java | midao-jdbc-core/src/test/java/org/midao/jdbc/core/handlers/output/lazy/MapLazyScrollUpdateOutputHandlerTest.java | pryzach/midao | apache-2.0 | 4,157 | 112 | codeparrot/github-code |
b02e25c56c9425c74589c1dd49fd7f8b34c6b12e3982fedb2e979336c6c237de | import React from 'react'
import Modal from '../modal'
import GenericForm from '../genericform'
import { setup_fields } from '../service/utils'
import Loading from '../loading'
import rpc from 'app/rpc'
import { merge, to_map, to_list, object_is_equal } from 'app/utils'
import {i18n} from 'app/utils/i18n'
class SetupC... | JavaScript | frontend/app/js/components/service/settings.js | serverboards/serverboards | apache-2.0 | 3,610 | 123 | codeparrot/github-code |
ac7310a07b72cbac80239ec71aa7d4d6e79f9c84d4ac32bc19e4beca0045e718 | /*--
* Copyright 2016 René M. de Bloois
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable ... | Java | src/main/java/solidbase/core/plugins/ImportCBOR.java | sindicate/solidbase | apache-2.0 | 9,962 | 345 | codeparrot/github-code |
e350723172cc7fc8f84511ea430c4239769a4908655920b16ff9ea7f07929e33 | package de.gruene.haustuer.survey;
import com.fasterxml.jackson.annotation.JsonIgnore;
import de.gruene.haustuer.topic.Topic;
import java.time.Instant;
import java.util.HashSet;
import java.util.Set;
import javax.persistence.Embedded;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.pe... | Java | src/main/java/de/gruene/haustuer/survey/SurveyResponse.java | greenvault/haustuerapp-server | apache-2.0 | 2,926 | 147 | codeparrot/github-code |
1669dd19bc04758100fc731bd6cbbc600c21662ccaa63fd38382c1da21fbe2f1 | /*
* Copyright 2019 Vrije Universiteit Amsterdam
* Netherlands eScience Center
*
* 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/L... | Java | src/integrationTest/java/test/spawntest/TestLoop.java | NLeSC/Constellation | apache-2.0 | 2,916 | 101 | codeparrot/github-code |
204bae859552379deb37cd682e0c788a9f2aed179d85d6a6d31745d2129ce66a | import java.util.ArrayList;
/**
* Write a description of class ParseTxtToCSV here.
* Parses a file from txt in to a CSV file
* see methods for options
* @author BDK@BDKCreate.com
* @version May 18, 2017
*/
public class ParseTxtToCSV
{
/**
* Constructor for objects of class ParseTxtToCSV
*/
publi... | Java | ParseFile/ParseTxtToCSV.java | LingDar/CodingExamples | apache-2.0 | 1,352 | 46 | codeparrot/github-code |
7084734392b1fbf52a3a02a5180a1f74d5695160f4b89d6c02e483ba586330fb | // Copyright 2016 Aaron Longwell. All rights reserved.
// Use of this source code is governed by the Apache License
// that can be found in the LICENSE file.
/*
Package cms pertains to the CMS front-end resolver. This code handles
all URIs that aren't handled by either the admin or API components.
*/
package cms
impo... | GO | cms/cms.go | sprucecms/spruce | apache-2.0 | 1,201 | 50 | codeparrot/github-code |
d4a268ff612502710b7cdea74304e122f82d786b27c75231a4bbe02e18b89889 | CREATE TABLE #Codesets (
codeset_id int NOT NULL,
concept_id bigint NOT NULL
)
;
INSERT INTO #Codesets (codeset_id, concept_id)
SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM
(
select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (40479589)
) I
) C UNION ... | SQL | inst/40479589000/40479589003.sql | OHDSI/PhenotypeLibrary | apache-2.0 | 16,896 | 401 | codeparrot/github-code |
6956862ae12cb2fb51762acdb7ae3fbbdf64d175e12c2a4670ff3c825fcd6ab9 | import json
import urllib2
import re
class CIDRReportASNameDump(object):
"""ASNNameDump represents the full list of
registered AS Numbers on CIDR report. Acts as an iterator that
will provide tuples: (AS Number, AS Name)"""
CIDR_REPORT_URL = "http://www.cidr-report.org/as2.0/autnums.html"
ENTRY_RE... | Python | asnames/__main__.py | zmap/zannotate | apache-2.0 | 3,472 | 89 | codeparrot/github-code |
b6a55f21e7ff771071d71b06e53f4145560947c066e73497580cedd5e2389b6c | # Copyright 2017 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or a... | Python | common/ng_template.py | google/upvote_py2 | apache-2.0 | 1,657 | 53 | codeparrot/github-code |
d1ce410514fe08c43deabc2c78eea6a9cc924f5d02aa9c0c2c901811c70dc68a | package Test::Mojo;
use Mojo::Base -base;
# "Amy: He knows when you are sleeping.
# Professor: He knows when you're on the can.
# Leela: He'll hunt you down and blast your ass from here to Pakistan.
# Zoidberg: Oh.
# Hermes: You'd better not breathe, you'd better not move.
# Bender: You're better off dead, I'm te... | Perl | lib/Test/Mojo.pm | CandyAngel/mojo | artistic-2.0 | 34,926 | 1,194 | codeparrot/github-code |
217e11ab2a0d0b0649bee4b9ca2c4b1a9410ebb91bae8f8dbcc1a5d2944c7a30 | # $language = "python"
# $interface = "1.0"
# for GCCLABVM1,GCCLABVM2
import os
import csv
def main():
crt.Screen.Synchronous = True
# Create an Excel compatible spreadsheet
filename = crt.Dialog.Prompt("Enter file name to write to: ", "Show Interface Description", "intdesc.csv", False)
fileobj = open(filename... | Python | shintdesc_legacy.py | kelvinongtoronto/SecureCRT | artistic-2.0 | 1,392 | 57 | codeparrot/github-code |
450f709d54e2db4ca10b3308b53c46f3b28bd197925e6e037fca6d9c657e5327 | # @package MiGA
# @license Artistic-2.0
class MiGA::Taxonomy < MiGA::MiGA
class << self
##
# Returns cannonical rank (Symbol) for the +rank+ String
def normalize_rank(rank)
return rank.to_sym if @@_KNOWN_RANKS_H[rank.to_sym]
rank = rank.to_s.downcase
return nil if rank == 'no rank'
... | Ruby | lib/miga/taxonomy/base.rb | bio-miga/miga | artistic-2.0 | 1,627 | 68 | codeparrot/github-code |
f3b6f1ccf72cae473b0ad138bab69e7d85106fff71264c0ee78dbba0140e8719 | package com.lsilbers.apps.twitternator.models;
import com.activeandroid.Model;
import com.activeandroid.annotation.Column;
import com.activeandroid.annotation.Table;
import com.activeandroid.query.Delete;
import com.activeandroid.query.Select;
import org.json.JSONArray;
import org.json.JSONException;
import org.json.... | Java | app/src/main/java/com/lsilbers/apps/twitternator/models/Tweet.java | lsilbers/codepathTwitter | artistic-2.0 | 2,502 | 106 | codeparrot/github-code |
fedd2854a1bbcb862244d67041ce930a5fe22ad4e892e3f028e4a59694fa534d | #include <fstream>
#include <la_directory.h>
#include <la_file.h>
#include <la_message.h>
#include <la_parameter.h>
#include <la_string.h>
#include "lib.h"
using namespace std;
using namespace la::message;
using namespace la::parameter;
using namespace la::string;
const string MODULE_CFG = "prj/config/module.cfg";
co... | C++ | src/utl/create.cc | Laukien/ClientControl | bsd-2-clause | 2,499 | 97 | codeparrot/github-code |
0deeadaadc2d1aacfebce6da1e314d9eb9bf648e66e0a1171cdb006a2fcc8c5c | #pragma once
#include <type_traits> // std::underlying_type
// --------------------------------------------------------------------------------------------------------------------
// Helper class for enumerating and using enum class values in range based for loops without the need of static_cast
// In order to work ... | C | DESIRE-Engine/src/Engine/Utils/Enumerator.h | nyaki-HUN/DESIRE | bsd-2-clause | 1,367 | 48 | codeparrot/github-code |
ee46046e37ecf6de93217562615d1dc68e9fc64fc7dffaafbca1851aeb9afa56 | 'use strict';
// /auth/* routes
var user = require('../controllers/user.js');
var db = require('../models/pg-database.js');
var googleDrive = require('../controllers/google-drive.js');
var utils = require('../utils.js');
var WixWidget = utils.WixWidget;
var httpStatus = require('http-status');
var error = utils.erro... | JavaScript | server/middleware/auth.js | donataswix/send-files-tpa | bsd-2-clause | 4,412 | 165 | codeparrot/github-code |
9ed9f9199d75f01ad14e873277789c2c60bb74c2b19408f098d884385342f36d | /*
* Copyright (C) 2014 Apple Inc. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions a... | C | platform/mediastream/RTCIceServerPrivate.h | applesrc/WebCore | bsd-2-clause | 2,420 | 68 | codeparrot/github-code |
39a274b391d072d703b1d3650f3fb02d868d849b4a19f8ad9ab400b46e5a8515 | #include "Star.h"
#include "Falclib\Include\openfile.h"
#define EPSILON 1e-6f
#define elonge 278.833540f /* Ecliptic longitude of the Sun at epoch 1980.0 */
#define elongp 282.596403f /* Ecliptic longitude of the Sun at perigee */
#define eccent 0.016718f /* Eccentricity of Earth's orbit *... | C++ | src/graphics/weather/star.cpp | markbb1957/FFalconSource | bsd-2-clause | 18,969 | 701 | codeparrot/github-code |
459499e11c31aff58542145a9240806c0974c2ad8be9aa1b184876bbf6fc9b07 | <?php
if (!defined('BASEPATH'))
exit('No direct script access allowed');
class Users_m extends CI_Model {
protected $table;
protected $iduser;
protected $idcompany;
public function __construct() {
parent::__construct();
$this->setTable('users');
if (isset($this->session->... | PHP | tciapplication/models/Users_m.php | allpassos/AutoNet | bsd-2-clause | 4,567 | 158 | codeparrot/github-code |
ed6c6bcbb066642043f14cb195d6a512f43881ba2b38ad143a9717dfffa34f2c | # Makefile for Sphinx documentation
#
# You can set these variables from the command line.
SPHINXOPTS =
SPHINXBUILD = sphinx-build
PAPER =
BUILDDIR = _build
# User-friendly check for sphinx-build
ifeq ($(shell which $(SPHINXBUILD) >/dev/null 2>&1; echo $$?), 1)
$(error The '$(SPHINXBUILD)' command w... | Makefile | docs/Makefile | lingthio/SQLAlchemy-boolean-search | bsd-2-clause | 7,485 | 193 | codeparrot/github-code |
c397ed0544a36e99e7c95f1330823532e8e85ca91bcaed434737720a06574523 |
#include "rgcwriter.hpp"
#include <fstream>
#include <stdexcept>
#include <iostream>
#include "binutils.hpp"
namespace RGCCPP::RGC
{
RgcWriter::RgcWriter(std::string filePath, RgcFileData* fileData)
:m_filePath(filePath), m_fileData(fileData),
m_rgcFile(filePath, std::ios_base::binary | std::ios_base:... | C++ | rgcmidcpp/src/rgc/rgcwriter.cpp | mdsitton/RhythmGameChart | bsd-2-clause | 2,842 | 91 | codeparrot/github-code |
4a64908dbb9d861a16c057da8056168fd2c8b2a2bf55150fcc3525432ac03936 | /*
* Copyright (c) 2015, Daan Pape
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright
* notice, this list ... | C | combus/i2c.c | dptechnics/DPT-Board-SERV | bsd-2-clause | 6,489 | 223 | codeparrot/github-code |
5636d3c92d42edb1b99af82db510925c8c87203e267325e53b25fcaa1ad9f713 | @testset "Misc/MPolyFactor" begin
check_fac(esum, a) = check_fac(esum, esum, a)
function check_fac(low, hi, a)
f = factor(a)
g = f.unit
esum = 0
for i in f.fac
g *= i[1]^i[2]
esum += i[2]
end
@test g == a
@test low <= esum <= hi
end
QA, A = Polyno... | Julia | test/NumField/NfAbs/MPolyFactor.jl | thofma/Hecke.jl | bsd-2-clause | 2,111 | 65 | codeparrot/github-code |
8e12217b38b43732b2403f438be54bf1b6b281b4c859663dd1cf1d57ff8b1847 | // Copyright 1998-2015 Epic Games, Inc. All Rights Reserved.
#pragma once
#include "NavMeshRenderingComponent.generated.h"
struct FNavMeshSceneProxyData;
UCLASS(hidecategories=Object, editinlinenew)
class ENGINE_API UNavMeshRenderingComponent : public UPrimitiveComponent
{
GENERATED_UCLASS_BODY()
public:
// Begin... | C | Engine/Source/Runtime/Engine/Classes/AI/Navigation/NavMeshRenderingComponent.h | PopCap/GameIdea | bsd-2-clause | 1,209 | 44 | codeparrot/github-code |
f1665fe60570a75457c301d0f2231ea99ceebb20f05aba35cecb6d194f058535 | //
// NSAttributedString+HTML.h
// DTCoreText
//
// Created by Oliver Drobnik on 1/9/11.
// Copyright 2011 Drobnik.com. All rights reserved.
//
#import "DTCompatibility.h"
@class NSAttributedString;
/**
Methods for generating an `NSAttributedString` from HTML data. Those methods exist on Mac but have not been p... | C | Core/Source/NSAttributedString+HTML.h | Cocoanetics/DTCoreText | bsd-2-clause | 4,165 | 97 | codeparrot/github-code |
f8a01085b6491155810a2347c2c5d1130b9c3469af90e020ccc980d05d9e931b | using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Threading.Tasks;
using System.Windows.Input;
using Quickblox.Sdk.Modules.ChatXmppModule;
using Quickblox.Sdk.Modules.UsersModule.Models;
namespace Xamarin.Forms.Conference.WebRTC
{
public class VideoViewModel : ViewModel... | C# | frozen-webrtc/Forms/Xamarin.Forms.Conference.WebRTC/ViewModels/VideoViewModel.cs | QuickBlox/quickblox-xamarin-sdk | bsd-2-clause | 5,738 | 247 | codeparrot/github-code |
f0ef615c45a484841f748eeb750300a3977cc692fac37bc33d0edeb1c01fba1e | /*
* Copyright (c) 2014 Netflix, Inc.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* Redistributions of source code must retain the above copyright notice, this
* list of condition... | C | server/dial_options.h | Netflix/dial-reference | bsd-2-clause | 3,258 | 105 | codeparrot/github-code |
609d1f185fe248cded4180c765f377b4c19dfe252a4105eab3c4eed70272001a | // Wrap CGAL's Delaunay for benchmarking purposes
// Work around obscure CGAL template bugs
#define BOOST_RESULT_OF_USE_TR1 1
#define CGAL_CFG_NO_CPP0X_TUPLE 1
#define CGAL_CFG_NO_CPP0X_VARIADIC_TEMPLATES 1
#include <other/core/array/ConstantMap.h>
#include <other/core/exact/circle_csg.h>
#include <other/core/exact/c... | C++ | helper/module.cpp | otherlab/perturb | bsd-2-clause | 4,174 | 130 | codeparrot/github-code |
8450f86f657b894a05add636ccca85e5fba084c8ea2691c993ae3e8811bd1936 | /*
* Copyright (c) 2016. Real Time Genomics Limited.
*
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* 1. Redistributions of source code must retain the above copyright
* notice... | Java | src/com/rtg/simulation/genome/SequenceGenerator.java | RealTimeGenomics/rtg-tools | bsd-2-clause | 5,415 | 191 | codeparrot/github-code |
20587ecd93b28cc76ce25875824b8a4963885e2d8f8d983f128b3020820bff8c | // This typescript file provides ambient types for color.js.
//
// Please consult that file for the implementation of the script.
declare module net.brehaut {
export interface Color {
// field accessors
getRed(): number;
setRed(newRed: number): Color;
getGreen(): number;
se... | TypeScript | color.d.ts | brehaut/color-js | bsd-2-clause | 3,784 | 124 | codeparrot/github-code |
25e333a0000b9dee87cf79e3f87d800d10757b3526d0ebb328b38fc5e3cc622b | <?php
//
// Copyright (c) 2013, Zynga Inc.
// https://github.com/zynga/saigon
// Author: Matt West (https://github.com/mhwest13)
// License: BSD 2-Clause
//
class ModgearmanCfgController extends Controller
{
/**
* _fetchConfigInfo - fetch necessary information to populate the modgearman config
*
... | PHP | controllers/ModgearmanCfgController.class.php | mhwest13/saigon | bsd-2-clause | 8,401 | 196 | codeparrot/github-code |
8011f7226b60d1fbf2bd67f185cbc34725a830da72030e0c465dd359d364b861 | class Strongswan < Formula
desc "VPN based on IPsec"
homepage "https://www.strongswan.org"
url "https://download.strongswan.org/strongswan-5.6.3.tar.bz2"
sha256 "c3c7dc8201f40625bba92ffd32eb602a8909210d8b3fac4d214c737ce079bf24"
bottle do
sha256 "42a97ee1056200cba159bfd23c90b5b3f81c9d51acead0de2191f2eadb7... | Ruby | Formula/strongswan.rb | DomT4/homebrew-core | bsd-2-clause | 2,867 | 106 | codeparrot/github-code |
c00cf18c85a2ab535ff29b4a90ad9b82a05d7d50cb751373c31c13d946033f44 | import binascii
import logging
from flask import Blueprint, redirect, render_template, request, session, url_for
from functools import wraps
import ob2.config as config
from ob2.database import DbCursor
from ob2.database.helpers import (
get_photo,
get_user_by_id,
get_user_by_github,
get_user_by_studen... | Python | ob2/web/blueprints/onboarding/__init__.py | octobear2/ob2 | bsd-2-clause | 10,932 | 263 | codeparrot/github-code |
cc518f0092c0450372c9e4288c00ca1d4979533a422561b709bb0198a1bb8f62 | //! Copyright (c) 2013 ASMlover. All rights reserved.
//!
//! Redistribution and use in source and binary forms, with or without
//! modification, are permitted provided that the following conditions
//! are met:
//!
//! * Redistributions of source code must retain the above copyright
//! notice, this list ofcondit... | C | network/libnet/select.h | ASMlover/study | bsd-2-clause | 2,189 | 61 | codeparrot/github-code |
cf4a03a38ed47e7284e45dc1dec163436b4da81da3034ff5eb587d383a88227b | package joshua.phrase.search;
// PORT: done
import joshua.phrase.lm.ngram.ChartState;
public class PartialVertex {
VertexNode back;
int index;
public PartialVertex() {}
public PartialVertex(VertexNode back) {
this.back = back;
index = 0;
}
public PartialVertex(PartialVertex other) {
t... | Java | src/joshua/phrase/search/PartialVertex.java | joshua-decoder/jmtplz | bsd-2-clause | 1,271 | 71 | codeparrot/github-code |
9fcf60d4ab451b47a57ffbc52af852804927d554e8b7e8ca9c3e17d85009ab94 | /**
* @file simplecrawler's cookie jar module
*/
var EventEmitter = require("events").EventEmitter,
util = require("util");
/**
* Creates a new cookie jar
* @class
*/
var CookieJar = function() {
EventEmitter.call(this);
/**
* The actual jar that holds the cookies
* @private
* @type {... | JavaScript | lib/cookies.js | civalin/node-simplecrawler | bsd-2-clause | 12,950 | 407 | codeparrot/github-code |
ff528015705bb814c63ec511aace9268ae63e20272e687c632263909336ddb36 | package org.beanmaker.util;
import java.util.List;
public class ErrorMessage {
public ErrorMessage(final long beanId, final String fieldName, final String fieldLabel, final String message) {
this.beanId = beanId;
this.fieldName = fieldName;
this.fieldLabel = fieldLabel;
this.message = message;
}
public ... | Java | src/org/beanmaker/util/ErrorMessage.java | cpythoud/beanmaker | bsd-2-clause | 1,972 | 75 | codeparrot/github-code |
53050bfe6b0b4b48ad6bd9682fe2b63e32fde385d35d36dc143d270d08997835 | /*
* This is a file system benchmark which attempts to study bottlenecks -
* it is named 'Bonnie' after Bonnie Raitt, who knows how to use one.
*
* Commentary on Bonnie's operations may be found at
* http://www.textuality.com/bonnie/intro.html
*
* COPYRIGHT NOTICE:
* Copyright (c) Tim Bray, 1990-1996.
*
* E... | C | src/apps/bonnie/bonnie.c | wilseypa/llamaOS | bsd-2-clause | 18,405 | 617 | codeparrot/github-code |
6cf166161c63d7f9c8db08e57acef630fe8908248e4b456ed9e4e077eea13795 | class NSArray
def to_rect
if PurplishFrame.ios?
CGRect.new([self[0][0], self[0][1]], [self[1][0], self[1][1]])
else
NSRect.new([self[0][0], self[0][1]], [self[1][0], self[1][1]])
end
end
def to_size
if PurplishFrame.ios?
CGSize.new(self[0], self[1])
else
NSSize.new(sel... | Ruby | lib/purplish-frame/non-ui/ns_array.rb | hboon/purplish-frame | bsd-2-clause | 633 | 44 | codeparrot/github-code |
6e3917ca15619df6acb68af4919fb338eb1929e78dbd8280b0cf83874f54f040 | // Copyright (c) 2012 Ecma International. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
esid: sec-array.prototype.reduceright
es5id: 15.4.4.22-9-b-4
description: >
Array.prototype.reduceRight - properties added into own object in
step 8 can be visited on an ... | JavaScript | Jint.Tests.Test262/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-4.js | sebastienros/jint | bsd-2-clause | 827 | 40 | codeparrot/github-code |
96a1868c80a282babe423d5fe213ca329c3d981554d9f66a8b176f0e4a876d76 | #!/bin/bash
# A tool to enumerate netblock CIDRs by querying RIRs & BGP ASN prefix lookups
# Currently queries: ARIN, RIPE NCC, APNIC, AfriNIC, LACNIC
#
# Queries are made for the Org name, network handles, org handles, customer handles,
# BGP prefixes, PoCs with target email domain, and 'notify' email address - used ... | Shell | hardCIDR.sh | trustedsec/hardcidr | bsd-2-clause | 38,563 | 891 | codeparrot/github-code |
70ac142870e9b62f0c2b87012236cbc012f5701db4383276ac308c4907e8d539 | //(function($){
// $(document).ready(function (){
var $el = {};
$el.latitude = $('#latitude');
$el.longitude = $('#longitude');
$el.accuracy = $('#accuracy');
$el.error = $('#error');
var getPosition = function () {
geoPosition.getCurrentPosition(success_callback, error_callback, {enableHighAccuracy: true});
};
... | JavaScript | assets/js/functions.js | wushuyi/geolocation | bsd-2-clause | 900 | 39 | codeparrot/github-code |
2d666313653ac7d8a145ee07c073af9c3f5cc0151b4a1b1a4b21d1443c47f88c |
/*
* Copyright (C) Igor Sysoev
* Copyright (C) Nginx, Inc.
*/
#ifndef _NGX_PROCESS_CYCLE_H_INCLUDED_
#define _NGX_PROCESS_CYCLE_H_INCLUDED_
#include <ngx_config.h>
#include <ngx_core.h>
#define NGX_CMD_OPEN_CHANNEL 1
#define NGX_CMD_CLOSE_CHANNEL 2
#define NGX_CMD_QUIT 3 /* QUIT<-->NGX_SHUTDOWN_... | C | src/os/unix/ngx_process_cycle.h | myself659/nginx-1.8.0 | bsd-2-clause | 1,669 | 63 | codeparrot/github-code |
057edbae040d33a0fe22e91bcda8ea098b8d94f505a9e36e0b86d7df46e3e243 | <?php
namespace AthosHun\HTMLFilter;
class ConfigurationTest extends \PHPUnit_Framework_TestCase
{
private $filter_config;
public function setUp()
{
$this->filter_config = new Configuration();
}
public function testTagsCanBeAllowedOrDisallowed()
{
$this->filter_config->allowT... | PHP | AthosHun/HTMLFilter/ConfigurationTest.php | attilammagyar/html-filter | bsd-2-clause | 3,097 | 111 | codeparrot/github-code |
353c0c3bd9c2e78199ea8fc2696b1772f36a5b277c470b02722e6bbe2e8ca986 | package Sisimai::Order;
use feature ':5.10';
use strict;
use warnings;
use Sisimai::Lhost;
sub make {
# Returns an MTA Order decided by the first word of the "Subject": header
# @param [String] argv0 Subject header string
# @return [Array] Order of MTA modules
# @since v4.... | Perl | lib/Sisimai/Order.pm | sisimai/p5-Sisimai | bsd-2-clause | 8,125 | 248 | codeparrot/github-code |
5a515b71db070541b587844eb7598e6f31ddabbb2214d1f702a3bdb6ba457825 | import React from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import Divider from 'material-ui/Divider';
import Drawer from 'material-ui/Drawer';
import { toggleLeftMenu } from '../../../actions/leftMenu';
import MenuItem from '../MenuItem';
import LeftMenuHead from '../LeftMen... | JavaScript | src/components/navigation/LeftMenu/LeftMenu.js | cltk/cltk_frontend | bsd-2-clause | 2,298 | 120 | codeparrot/github-code |
18e6c1aa04e4821cde516ed4e4af68cdd12002b56799a5379c0ab6b72be1746c | <?php
include('../gadm.php');
require_once('../config.php');
// Parameter validation
if ( !isset($_GET['relation']))
{
header('HTTP/1.1 500 Internal Server Error');
header('Content-type: text/html');
die("A relation must be specified.");
}
//the relation will be checked later
$relation = $_GET[... | PHP | services/neogeo.php | aifb/ngds | bsd-2-clause | 4,759 | 102 | codeparrot/github-code |
25925f04b70e002a7d6e19d48f48a2143e016b38c90977ed904cd6aa4224f3d0 | {% extends 'flask_user/public_base.html' %}
{% block content %}
{% from "flask_user/_macros.html" import render_field, render_submit_field %}
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<title>React - Bootstrap Theme</title>
<meta name="viewport" ... | HTML | app/templates/flask_user/register.html | rcharp/Simple | bsd-2-clause | 4,876 | 163 | codeparrot/github-code |
ed96820aebba53d5289ecb0b8b87de89111a289888844a84d1bdb0b8c0e8ad63 | class Sbcl < Formula
homepage "http://www.sbcl.org/"
url "https://downloads.sourceforge.net/project/sbcl/sbcl/1.2.10/sbcl-1.2.10-source.tar.bz2"
sha256 "55243d5085278b7d0f80e5b91889f44ff66c195d801b3da26f1f4c696711f685"
head "git://sbcl.git.sourceforge.net/gitroot/sbcl/sbcl.git"
bottle do
sha256 "4b455f1... | Ruby | Library/Formula/sbcl.rb | benesch/homebrew | bsd-2-clause | 3,954 | 108 | codeparrot/github-code |
27048c24c7f70787fa1446abcb97914e53a982dd64ae3463ed8a83998ab2b902 | /* mp-a_sys.c: SWTP 6800 system interface
Copyright (c) 2005, William Beech
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 limitatio... | C | SIMH/swtp6800/swtp6800/mp-a_sys.c | alexchenfeng/UNIXV6 | bsd-2-clause | 2,622 | 86 | codeparrot/github-code |
e7db1c3470cfd2cb65f72bef2413ade589d826ed9fc979c00e50a7aa2cb17bb1 | /*
* Copyright (c) 2018, Adam <Adam@sigterm.info>
* Copyright (c) 2018, Abexlry <abexlry@gmail.com>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code mu... | Java | runelite-client/src/main/java/net/runelite/client/plugins/keyremapping/KeyRemappingListener.java | l2-/runelite | bsd-2-clause | 6,359 | 240 | codeparrot/github-code |
b1ed1a00896144a23c6dc90d93e4f6acf867e17eee750146eb00b9099e9716aa | #ifndef _DECLSTMT_H
#define _DECLSTMT_H
#include "Statement.h"
#include "Expr.h"
class DeclStmt : public Statement
{
public:
DeclStmt(const std::string &name, int lineNum) :
Statement(lineNum), _name(name)
{}
virtual DeclStmt* Clone()
{
DeclStmt *d = new DeclStmt(_name, _line);
... | C | DeclStmt.h | mattsnowboard/msu-compilers-tinyc | bsd-2-clause | 576 | 40 | codeparrot/github-code |
03796b7e19d6ca61448b871eb62461c5f73be8f37c7a50519c9ff91bbe773703 | // Boost string_algo library find_format.hpp header file ---------------------------//
// Copyright Pavol Droba 2002-2003.
//
// 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)
// See http://www.b... | C++ | Sources/liblsl/lslboost/boost/algorithm/string/detail/find_format.hpp | nihospr01/OpenSpeechPlatform-UCSD | bsd-2-clause | 7,777 | 205 | codeparrot/github-code |
7db0707494a76ebcaca86119289498b7eaf8814916f109faa319e14b7f56849f | package Mojo::Webqq::Model::Ext;
BEGIN{
eval{
require Webqq::Encryption;
};
unless($@){
$Mojo::Webqq::Model::Ext::has_webqq_encryption = 1;
}
}
our $_retcode;
our $_verifycode;
our $_md5_salt;
our $_verifysession;
our $_is_rand_salt;
our $_api_check_sig;
sub model_ext_authorize{
my ... | Perl | lib/Mojo/Webqq/Model/Ext.pm | sjdy521/Mojo-Webqq | bsd-2-clause | 4,989 | 147 | codeparrot/github-code |
dc9e3436f6acb5bcf7e64d3f20d20d11e077510ca10bd62747d20e04ea8b5cea | /* -*- mode: C++; c-basic-offset: 2; indent-tabs-mode: nil -*- */
/*
* Main authors:
* Christian Schulte <schulte@gecode.org>
*
* Copyright:
* Christian Schulte, 2012
*
* Last modified:
* $Date: 2013-02-19 13:26:08 +0100 (ti, 19 feb 2013) $ by $Author: schulte $
* $Revision: 13313 $
*
* T... | C++ | third-party/gecode/gecode/int/branch/view-sel.cpp | PetterS/easy-IP | bsd-2-clause | 12,160 | 263 | codeparrot/github-code |
b8ffbdd1f6e51e617a1ff1b4ec63ae2b3264723e899be3f401ad14d0935faa54 | /** Copyright (c) 2015, Scality * All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice, this
* list of conditions and th... | C++ | src/cpp/asyncreconstruction.cpp | scality/eclib | bsd-2-clause | 4,752 | 128 | codeparrot/github-code |
2df68725f6c0b1000989ae981b37ea91a2b6eab3eb5ab25a8b8214709a187c82 | # NOTE: version 2 is out, but it requires Bash 4, and macOS ships
# with 3.2.57. If you've upgraded bash, use bash-completion@2 instead.
class BashCompletion < Formula
desc "Programmable completion for Bash 3.2"
homepage "https://salsa.debian.org/debian/bash-completion"
url "https://src.fedoraproject.org/repo/pkg... | Ruby | Formula/bash-completion.rb | LinuxbrewTestBot/homebrew-core | bsd-2-clause | 2,606 | 65 | codeparrot/github-code |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.