identifier stringlengths 42 383 | collection stringclasses 1
value | open_type stringclasses 1
value | license stringlengths 0 1.81k | date float64 1.99k 2.02k ⌀ | title stringlengths 0 100 | creator stringlengths 1 39 | language stringclasses 157
values | language_type stringclasses 2
values | word_count int64 1 20k | token_count int64 4 1.32M | text stringlengths 5 1.53M | __index_level_0__ int64 0 57.5k |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
https://github.com/ericthewry/prads4/blob/master/switch/set_switch.sh | Github Open Source | Open Source | MIT | 2,021 | prads4 | ericthewry | Shell | Code | 5 | 19 | ./simple_switch_CLI --thrift-port 22222 < $1
| 33,345 |
https://github.com/ArghaRay00/SnakeAndLadderGame/blob/master/DiceService.cs | Github Open Source | Open Source | MIT | null | SnakeAndLadderGame | ArghaRay00 | C# | Code | 25 | 60 | using System;
namespace snake_ladder
{
class DiceService
{
public static int roll()
{
Random random = new Random();
return random.Next(6) + 1;
}
}
} | 36,005 |
https://github.com/zsoltmazlo/indoor-controller2/blob/master/hal/src/gcc/device_config.cpp | Github Open Source | Open Source | MIT | null | indoor-controller2 | zsoltmazlo | C++ | Code | 592 | 1,986 | /**
Copyright (c) 2015 Particle Industries, Inc. All rights reserved.
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation, either
version 3 of the License, or (at your option) any later ... | 47,183 |
https://github.com/AkashBabu/NearBy/blob/master/public/js/index/app.es6 | Github Open Source | Open Source | MIT | null | NearBy | AkashBabu | JavaScript | Code | 108 | 509 | import * as angular from "angular"
import {} from "angular-animate"
import {} from "angular-aria"
import {} from "angular-resource"
import {} from "angular-material"
import {} from 'angular-messages'
import {} from 'angular-route'
import {} from 'angular-jk-rating-stars'
require("angular-material/angular-material.css"... | 25,846 |
https://github.com/Vanzhel/Kukyboutiqueweb/blob/master/app/Models/Venta.php | Github Open Source | Open Source | MIT | null | Kukyboutiqueweb | Vanzhel | PHP | Code | 34 | 174 | <?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
class Venta extends Model
{
use HasFactory;
protected $fillable = [
'fecha',
'comprobante_id',
'numero_serie',
'numero_comprobante',
'descuento',
... | 37,661 |
https://github.com/hayatoy/gcpml-book/blob/master/Part3/Chapter8.4.ipynb | Github Open Source | Open Source | Apache-2.0 | 2,019 | gcpml-book | hayatoy | Jupyter Notebook | Code | 345 | 1,617 | {
"cells": [
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## Chapter8.4 TensorFlowで2層CNNを実装"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"collapsed": true
},
"outputs": [],
"source": [
"import tensorflow as tf\n",
"from tensorflow.ex... | 29,807 |
https://github.com/dongnnd/NLP_XLNNTN/blob/master/library/src/main/java/com/tom_roush/pdfbox/pdmodel/graphics/shading/PDShadingType2.java | Github Open Source | Open Source | Apache-2.0 | null | NLP_XLNNTN | dongnnd | Java | Code | 309 | 934 | package com.tom_roush.pdfbox.pdmodel.graphics.shading;
import com.tom_roush.pdfbox.cos.COSArray;
import com.tom_roush.pdfbox.cos.COSDictionary;
import com.tom_roush.pdfbox.cos.COSName;
/**
* Resources for an axial shading.
*/
public class PDShadingType2 extends PDShading
{
private COSArray coords = null;
pr... | 50,949 |
https://github.com/BlueObelisk/jumbo-converters/blob/master/jumbo-converters-cif/src/test/java/org/xmlcml/cml/converters/cif/MoreExamplesTest.java | Github Open Source | Open Source | Apache-2.0 | 2,022 | jumbo-converters | BlueObelisk | Java | Code | 40 | 142 | package org.xmlcml.cml.converters.cif;
import org.junit.Test;
/** mainly for consuming by JumboConvertersMolecule.
*
* @author pm286
*
*/
public class MoreExamplesTest {
@Test
public void testMoreFile() {
CIF2CMLConverter converter = new CIF2CMLConverter();
String[] args = {"-i", "src/test/res... | 48,910 |
https://github.com/udibagas/salwa/blob/master/resources/views/pertanyaan/mobile/index.blade.php | Github Open Source | Open Source | MIT | null | salwa | udibagas | PHP | Code | 51 | 266 | @extends('layouts.main')
@section('title', 'Tanya Ustadz')
@section('content')
<h4 class="title">TANYA USTADZ</h4>
<div id="post-list">
@each('pertanyaan.mobile._list', $pertanyaans, 'a')
</div>
@if ($pertanyaans->lastPage() > 1)
<div class="text-center text-bold">
<br /><img src="/images/loading.png" alt="" c... | 29,767 |
https://github.com/Maikol98/SoftwareFinal/blob/master/resources/views/Contactanos.blade.php | Github Open Source | Open Source | MIT | null | SoftwareFinal | Maikol98 | PHP | Code | 341 | 1,477 | @extends('layout')
@section('content')
<div class="row py-4" style="background-color:#33383b;">
<div class="col-lg-6" style="padding-left: 5%">
<div id="map-canvas" class="mapa" style="width: 100%; height: 600px;"></div>
</div>
<div class="col-lg-6 text-white">
<div s... | 170 |
https://github.com/saltcorn/saltlearn/blob/master/pred_run.sql | Github Open Source | Open Source | MIT | null | saltlearn | saltcorn | SQL | Code | 54 | 194 | CREATE or replace FUNCTION predict_Product_price (xs "Product", model_id integer)
RETURNS double precision
AS $$
import pickle
import pandas
import json
rv = plpy.execute("SELECT fitdump, definition FROM _sl_models where id = {0}".format(model_id), 1)
clf2 = pickle.loads(rv[0]["fitdump"])
ddict = {}
def... | 24,669 |
https://github.com/ferhrosa/godot-platformer-csharp-test/blob/master/src/Player/Player.cs | Github Open Source | Open Source | MIT | null | godot-platformer-csharp-test | ferhrosa | C# | Code | 324 | 918 | using Godot;
using System;
public class Player : KinematicBody2D
{
private static readonly Vector2 Gravity = new Vector2(0, 1200);
private static readonly Vector2 FloorNormal = new Vector2(0, -1);
private static readonly Vector2 FaceLeftScale = new Vector2(-1, 1);
private static readonly Vector2 FaceRi... | 37,081 |
https://github.com/CoderFreeMan/trunk/blob/master/basic-utils/src/main/java/com/ydj/LicenseNumberUtil.java | Github Open Source | Open Source | Apache-2.0 | 2,018 | trunk | CoderFreeMan | Java | Code | 220 | 826 | package com.ydj;
import org.apache.commons.lang3.StringUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
/**
*
* <p> Date : 2018/11/27 </p >
* <p> Module : </p >
* <p> Description : 证件号打码 </p >
* <p> Remark : </p >
* @author yangdj
* @versio... | 21,416 |
https://github.com/memerr/Street-Smart/blob/master/client/views/bower_components/polymer/gulpfile.js | Github Open Source | Open Source | Unlicense | 2,020 | Street-Smart | memerr | JavaScript | Code | 373 | 1,221 | /**
* @license
* Copyright (c) 2014 The Polymer Project Authors. All rights reserved.
* This code may only be used under the BSD style license found at http:polymer.github.io/LICENSE.txt
* The complete set of authors may be found at http:polymer.github.io/AUTHORS.txt
* The complete set of contributors may be found... | 32,837 |
https://github.com/ds-modules/COGSCI-C131-PSYCH-123-FA20/blob/master/EC4-MDS/util.py | Github Open Source | Open Source | BSD-3-Clause | 2,023 | COGSCI-C131-PSYCH-123-FA20 | ds-modules | Python | Code | 172 | 407 | import os
import scipy.io
import requests
import zipfile
from IPython.display import clear_output
from io import BytesIO
def download_similarity_datasets():
"""Downloads human similarity judgment datasets from the URL
http://www.socsci.uci.edu/~mdlee/all.zip, unzips the file, and
then returns the path whe... | 12,754 |
https://github.com/adityasharma263/tts_ci/blob/master/resource/agroxa/assets/scss/_widgets.scss | Github Open Source | Open Source | MIT | 2,021 | tts_ci | adityasharma263 | SCSS | Code | 192 | 730 | /* ==============
Widgets
===================*/
.widget-chart li {
width: 31.5%;
display: inline-block;
padding: 0;
i {
font-size: 22px;
}
}
.mini-stat{
overflow: hidden;
.mini-stat-desc{
.verti-label{
transform: rotate(-90deg);
position: absolute;... | 29,800 |
https://github.com/ebagli/bcpy/blob/master/tests/test_flat_file.py | Github Open Source | Open Source | MIT | 2,020 | bcpy | ebagli | Python | Code | 77 | 320 | import bcpy
import os
def test_flat_file_to_sql():
sql_config = {
'server': 'mssql',
'database': 'bcpy',
'username': 'SA',
'table': 'test',
'password': os.environ['MSSQL_SA_PASSWORD']
}
sql_table_name = 'test_data1'
schema = 'my_test_schema'
csv_file_path = ... | 47,484 |
https://github.com/Evil1991/bitrixdock/blob/master/www/html/bitrix/modules/socialnetwork/install/components/bitrix/socialnetwork.subscribe_list/lang/ru/ajax.php | Github Open Source | Open Source | MIT | null | bitrixdock | Evil1991 | PHP | Code | 65 | 432 | <?
$MESS["SUBSCRIBE_NAME_forum"] = "Форум";
$MESS["SUBSCRIBE_NAME_blog"] = "Блог";
$MESS["SUBSCRIBE_NAME_calendar"] = "Календарь";
$MESS["SUBSCRIBE_NAME_tasks"] = "Задачи";
$MESS["SUBSCRIBE_NAME_files"] = "Файлы";
$MESS["SUBSCRIBE_NAME_photo"] = "Фото";
$MESS["SUBSCRIBE_NAME1_forum"] = "Общение";
$MESS["SUBSCRIBE_NAME1... | 8,522 |
https://github.com/msrLi/portingSources/blob/master/live555/live.2019.03.06/testProgs/ite_auto_test_rtsp.cpp | Github Open Source | Open Source | GPL-3.0-only, LGPL-3.0-only, Apache-2.0 | 2,019 | portingSources | msrLi | C++ | Code | 2,808 | 7,034 | /**********
This library is free software; you can redistribute it and/or modify it under
the terms of the GNU Lesser General Public License as published by the
Free Software Foundation; either version 3 of the License, or (at your
option) any later version. (See <http://www.gnu.org/copyleft/lesser.html>.)
This librar... | 28,399 |
https://github.com/PeterVoronov/ioBroker.lovelace/blob/master/lib/converters/sensor.test.js | Github Open Source | Open Source | Apache-2.0 | 2,022 | ioBroker.lovelace | PeterVoronov | JavaScript | Code | 112 | 440 | const convertSensor = require('./sensor');
const utils = require('./utils');
const {Types} = require('iobroker.type-detector');
const expect = require('chai').expect;
const sinon = require('sinon');
describe('converters/sensor', function () {
it('windowTilt', function () {
const id = 'test.window_with_til... | 36,096 |
https://github.com/bio2bel/pubchem/blob/master/src/bio2bel_pubchem/parser/cid_sid.py | Github Open Source | Open Source | MIT | 2,022 | pubchem | bio2bel | Python | Code | 107 | 400 | # -*- coding: utf-8 -*-
import logging
import os
from urllib.request import urlretrieve
import pandas as pd
from ..constants import CID_SID_DATA_PATH, CID_SID_URL
log = logging.getLogger(__name__)
def download_cid_sid_data(force_download=False):
"""Downloads the CID SID Info
:param bool force_download: I... | 41,662 |
https://github.com/lennokiki/hc-materials/blob/master/lib/layouts/basicLayout.js | Github Open Source | Open Source | MIT | 2,019 | hc-materials | lennokiki | JavaScript | Code | 611 | 1,749 | "use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.BasicLayout = void 0;
var _react = _interopRequireDefault(require("react"));
var _propTypes = _interopRequireDefault(require("prop-types"));
var _getComponent2 = require("./getComponent");
function _interopRequireDefault(obj) { ... | 49,545 |
https://github.com/pierratono/MyReads/blob/master/src/components/App.js | Github Open Source | Open Source | 0BSD | null | MyReads | pierratono | JavaScript | Code | 172 | 509 | import React from 'react'
import { Route, Switch } from 'react-router-dom';
import * as BooksAPI from '../data/BooksAPI';
import '../css/App.css'
import BookList from './BookList';
import { Link } from 'react-router-dom';
import Search from './Search';
import NotFound from './NotFound';
class BooksApp extends React.Co... | 42,108 |
https://github.com/tmpfs/trucks/blob/master/packages/resolver-core/test/spec/core-resolver.js | Github Open Source | Open Source | MIT | 2,016 | trucks | tmpfs | JavaScript | Code | 117 | 434 | var expect = require('chai').expect
, State = require('../../../../packages/trucks-compiler/src/state')
, Resolver = require('../../src');
describe('resolver:', function() {
it('should create resolver with href', function(done) {
const href = 'file.html'
, resolver = new Resolver(new State({}), href... | 37,590 |
https://github.com/yswenli/WEF/blob/master/WEF/Expressions/OrderByOperation.cs | Github Open Source | Open Source | Apache-2.0 | 2,021 | WEF | yswenli | C# | Code | 442 | 1,740 | /*****************************************************************************************************
* 本代码版权归Wenli所有,All Rights Reserved (C) 2015-2019
*****************************************************************************************************
* 所属域:WENLI-PC
* 登录用户:yswenli
* CLR版本:4.0.30319.17929
* 唯一... | 37,115 |
https://github.com/Hexilee/LMS-backend/blob/master/src/main/java/com/zjuqsc/library/bookclass/dto/CreateBookClassDto.java | Github Open Source | Open Source | MIT | null | LMS-backend | Hexilee | Java | Code | 89 | 346 | package com.zjuqsc.library.bookclass.dto;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.ISBN;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Past;
import javax.validation.co... | 7,299 |
https://github.com/jeremija/snake/blob/master/src/js/math/random.js | Github Open Source | Open Source | MIT | 2,017 | snake | jeremija | JavaScript | Code | 19 | 52 | define([], function() {
var exports = {
generate: function(max) {
return Math.floor(Math.random() * max);
}
};
return exports;
}); | 22,563 |
https://github.com/Justice-love/stockAnalysis/blob/master/foundation/src/main/java/org/eddy/exception/JsoupException.java | Github Open Source | Open Source | BSD-3-Clause | 2,018 | stockAnalysis | Justice-love | Java | Code | 56 | 170 | package org.eddy.exception;
/**
* Created by admin on 2016/12/4.
*/
public class JsoupException extends Exception{
public JsoupException() {
}
public JsoupException(String message) {
super(message);
}
public JsoupException(String message, Throwable cause) {
super(message, cause)... | 30,372 |
https://github.com/boogie-org/boogie/blob/master/Test/test1/Arrays.bpl | Github Open Source | Open Source | MIT, LicenseRef-scancode-unknown-license-reference | 2,023 | boogie | boogie-org | null | Spoken | 637 | 1,907 | // RUN: %parallel-boogie -noVerify "%s" > "%t"
// RUN: %diff "%s.expect" "%t"
var one: [int]int;
var two: [int, int]int;
procedure Good0(x: int, y: int)
requires one[x] == two[x,y];
modifies one, two;
{
start:
one[x] := two[x,y];
two[x,y] := one[x];
return;
}
procedure Bad0(x: int, y: int)
require... | 28,079 |
https://github.com/anilkrsd/cody-samples/blob/master/instadeal/views/time-tags.ejs | Github Open Source | Open Source | BSD-2-Clause | 2,015 | cody-samples | anilkrsd | EJS | Code | 33 | 199 | <span class="day-val"></span><span class="time-tag day-tag"><%-render({name: 'day tag'})%></span>
<span class="days-val"></span><span class="time-tag days-tag"><%-render({name: 'days tag'})%></span>
<span class="hour-val"></span><span class="time-tag hour-tag"><%-render({name: 'hour tag'})%></span>
<span class="min-val... | 44,605 |
https://github.com/X-DataInitiative/SCALPEL-Extraction/blob/master/src/test/scala/fr/polytechnique/cmap/cnam/util/ColumnUtilitiesSuite.scala | Github Open Source | Open Source | BSD-3-Clause | 2,020 | SCALPEL-Extraction | X-DataInitiative | Scala | Code | 743 | 3,275 | // License: BSD 3 clause
package fr.polytechnique.cmap.cnam.util
import java.sql.Timestamp
import org.apache.spark.sql.functions._
import org.apache.spark.sql.{Column, DataFrame}
import fr.polytechnique.cmap.cnam.SharedContext
import fr.polytechnique.cmap.cnam.util.functions._
class ColumnUtilitiesSuite extends Shar... | 14,712 |
https://github.com/Maxzor/CP77Tools/blob/master/CP77.CR2W/Types/cp77/meshMeshParamGarmentSupport.cs | Github Open Source | Open Source | MIT | 2,021 | CP77Tools | Maxzor | C# | Code | 96 | 317 | using System;
using System.Collections.Generic;
using System.IO;
using System.Runtime.Serialization;
using System.Text;
using FastMember;
using WolvenKit.CR2W.Reflection;
namespace WolvenKit.CR2W.Types
{
[REDMeta]
public class meshMeshParamGarmentSupport : CVariable
{
[Ordinal(1)] [RED("chunkCapVe... | 34,499 |
https://github.com/wyrover/node-webkit-builder/blob/master/lib/downloader.js | Github Open Source | Open Source | MIT | 2,014 | node-webkit-builder | wyrover | JavaScript | Code | 218 | 764 | var Promise = require('bluebird');
var request = require('request');
var fs = require('fs');
var path = require('path');
var zlib = require('zlib');
var tar = require('tar-fs');
var temp = require('temp');
var DecompressZip = require('decompress-zip');
// Automatically track and cleanup files at exit
temp.track();
mo... | 24,648 |
https://github.com/jnester/AutoMerge/blob/master/src/AutoMerge/Branches/FileMergeInfo.cs | Github Open Source | Open Source | Apache-2.0 | 2,022 | AutoMerge | jnester | C# | Code | 32 | 82 | using Microsoft.TeamFoundation.VersionControl.Client;
namespace AutoMerge
{
public class FileMergeInfo
{
public string SourceFile { get; set; }
public string TargetFile { get; set; }
public ChangesetVersionSpec ChangesetVersionSpec { get; set; }
}
} | 27,621 |
https://github.com/mahugnon/SmaCC/blob/master/SmaCC-Generic-Smalltalk-Parser.package/GstProgramNodeVisitor.class/instance/visitArrayLiteral..st | Github Open Source | Open Source | MIT | 2,018 | SmaCC | mahugnon | null | Spoken | 7 | 20 | generated
visitArrayLiteral: anArrayLiteral
^ self visitLiteral: anArrayLiteral | 30,742 |
https://github.com/Flipkart/foxtrot/blob/master/foxtrot-core/src/test/java/com/flipkart/foxtrot/core/querystore/actions/GroupActionTest.java | Github Open Source | Open Source | Apache-2.0 | 2,022 | foxtrot | Flipkart | Java | Code | 1,138 | 5,387 | /**
* Copyright 2014 Flipkart Internet Pvt. Ltd.
* <p>
* 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
* <p>
* http://www.apache.org/licenses/LICENSE-2.0
* <p>
* Unless required by app... | 44,450 |
https://github.com/hummingbird-me/kitsu-mobile/blob/master/src/screens/Profiles/components/InfoRow/component.tsx | Github Open Source | Open Source | Apache-2.0 | 2,023 | kitsu-mobile | hummingbird-me | TSX | Code | 100 | 308 | import React from 'react';
import { StyleSheet, View } from 'react-native';
import { StyledText } from 'kitsu/components/StyledText';
import { scenePadding } from 'kitsu/screens/Profiles/constants';
const styles = StyleSheet.create({
row: {
padding: scenePadding,
backgroundColor: '#FFFFFF',
},
});
interf... | 44,798 |
https://github.com/luke-titley/usd-sys/blob/master/thirdparty/include/pxr/usd/usdVol/volume.h | Github Open Source | Open Source | Apache-2.0 | null | usd-sys | luke-titley | C | Code | 1,409 | 2,714 | #line 1 "/Volumes/src/usd-rs/usd-cpp/thirdparty/USD/pxr/usd/usdVol/volume.h"
//
// Copyright 2016 Pixar
//
// Licensed under the Apache License, Version 2.0 (the "Apache License")
// with the following modification; you may not use this file except in
// compliance with the Apache License and the following modification... | 41,681 |
https://github.com/sentinel-hub/EOBrowser/blob/master/src/Tools/SearchPanel/dataSourceHandlers/DatasourceRenderingComponents/dataSourceTooltips/Sentinel2Tooltip.js | Github Open Source | Open Source | MIT | 2,023 | EOBrowser | sentinel-hub | JavaScript | Code | 257 | 685 | import React from 'react';
import ReactMarkdown from 'react-markdown';
import { t } from 'ttag';
import ExternalLink from '../../../../../ExternalLink/ExternalLink';
import logoCopernicus from './images/logo-tooltips-copernicus.png';
const getMarkdown = () => t`
**Sentinel-2** provides high-resolution images in the vi... | 20,798 |
https://github.com/samskalicky/CoLoRaBLE/blob/master/app/CoLoRaBLE/MapView.swift | Github Open Source | Open Source | Apache-2.0 | null | CoLoRaBLE | samskalicky | Swift | Code | 588 | 1,622 | //
// MapView.swift
// CoLoRaBLE
//
// Created by Skalicky, Sam on 7/2/21.
//
import SwiftUI
import UIKit
import MapKit
// MapView design
struct MapKitView: UIViewRepresentable {
let locationManager: CLLocationManager = CLLocationManager()
var annotations: [Position]
var authStatus: CLAuthorizationStat... | 10,792 |
https://github.com/Mageric0412/openstack4j/blob/master/core/src/main/java/org/openstack4j/openstack/gbp/internal/PolicyRuleSetServiceImpl.java | Github Open Source | Open Source | Apache-2.0 | 2,017 | openstack4j | Mageric0412 | Java | Code | 280 | 1,043 | /*******************************************************************************
* Copyright 2016 ContainX and OpenStack4j
*
* Licensed under the Apache License, Version 2.0 (the "License");... | 20,509 |
https://github.com/bpn1/ingestion/blob/master/src/main/scala/de/hpi/ingestion/textmining/nel/HtmlGenerator.scala | Github Open Source | Open Source | Apache-2.0 | 2,021 | ingestion | bpn1 | Scala | Code | 399 | 1,008 | /*
Copyright 2016-17, Hasso-Plattner-Institut fuer Softwaresystemtechnik GmbH
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicab... | 18,354 |
https://github.com/locationtech/geomesa/blob/master/geomesa-tools/src/test/scala/org/locationtech/geomesa/tools/export/DelimitedExportImportTest.scala | Github Open Source | Open Source | Apache-2.0, BSD-3-Clause, ODbL-1.0 | 2,023 | geomesa | locationtech | Scala | Code | 340 | 1,295 | /***********************************************************************
* Copyright (c) 2013-2023 Commonwealth Computer Research, Inc.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Apache License, Version 2.0
* which accompanies this distribution and... | 17,764 |
https://github.com/wil-j-wil/audio_lfm/blob/master/gppad/PlottingCode/PlotLikelihood.m | Github Open Source | Open Source | MIT | 2,018 | audio_lfm | wil-j-wil | MATLAB | Code | 55 | 321 | function PlotLikelihood(Lens,Objs)
% Finding local optima
K = length(Objs);
if Objs(1)>Objs(2)
LenMax = Lens(1);
ObjMax = Objs(1);
else
LenMax = [];
ObjMax = [];
end
for k=2:K-1
if Objs(k)>Objs(k-1)&Objs(k)>Objs(k+1)
LenMax = [LenMax;Lens(k)];
ObjMax = [ObjMax;Objs(k)];
end
end
... | 23,375 |
https://github.com/calibro/calibro.github.io/blob/master/src/app.scss | Github Open Source | Open Source | 2,022 | calibro.github.io | calibro | SCSS | Code | 42 | 257 | @font-face {
font-family: 'Switzer';
src: url('./fonts/Switzer-Variable.woff2') format('woff2'),
url('./fonts/Switzer-Variable.woff') format('woff'),
url('./fonts/Switzer-Variable.ttf') format('truetype');
font-weight: 100 900;
font-display: swap;
font-style: normal;
}
@font-face {
font-family: 'Switzer';
... | 17,967 | |
https://github.com/javaxiu-com/store/blob/master/gyh-common/src/main/java/com/gyhqq/common/advice/BasicExceptionAdvice.java | Github Open Source | Open Source | MIT | 2,020 | store | javaxiu-com | Java | Code | 53 | 309 | package com.gyhqq.common.advice;
import com.gyhqq.common.Exception.GyhException;
import com.gyhqq.common.vo.ExceptionResult;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.ControllerAdvice;
import org.springframework.web.bind.a... | 31,105 |
https://github.com/vmthunder/packages/blob/master/python-voltclient/voltclient/v1/members.py | Github Open Source | Open Source | Apache-2.0 | 2,018 | packages | vmthunder | Python | Code | 194 | 460 | # Copyright 2012 OpenStack 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 requ... | 16,566 |
https://github.com/dvoegeli/webmistc/blob/master/imports/api/appState.js | Github Open Source | Open Source | MIT | 2,018 | webmistc | dvoegeli | JavaScript | Code | 346 | 1,111 | // example: set value
// note: nested objects, e.g. buzz.ding
//
// state.insert({
// buzz: {
// ding: true
// }
// });
// state.update( { buzz: { $exists: true } }, { $set: { 'buzz.ding': true } } );
// example: select field
// note: ignores nested objects, e.g. foo.bar.baz
// http://docs.meteor.com/api/colle... | 3,718 |
https://github.com/xopr/gigatron-rom/blob/master/Contrib/at67/image.cpp | Github Open Source | Open Source | BSD-2-Clause | null | gigatron-rom | xopr | C++ | Code | 2,442 | 8,442 | #include <string>
#include <fstream>
#include <iomanip>
#include <iostream>
#include <algorithm>
#include "cpu.h"
#include "image.h"
#include "graphics.h"
namespace Image
{
const int _gtRgbFormatSize[] = {1, 1, 1, 2, 2, 2, 3, 4};
bool _hostIsBigEndian = false;
double _gammaInput = 1.0;
double _gamm... | 21,888 |
https://github.com/brielmayer/bitcoin-lottery/blob/master/BitcoinLottery/Output/IOutput.cs | Github Open Source | Open Source | Unlicense | null | bitcoin-lottery | brielmayer | C# | Code | 16 | 60 | using BitcoinLottery.Model;
namespace BitcoinLottery.Output
{
internal interface IOutput
{
void SanityCheck();
void Submit(LotteryTicket lotteryTicket);
}
} | 21,978 |
https://github.com/sutter/hello-gatsby/blob/master/gatsby-config.js | Github Open Source | Open Source | MIT | 2,019 | hello-gatsby | sutter | JavaScript | Code | 283 | 986 | /**
* Configuration
*/
const appConfig = {
// Language Tag on <html> and localized elements
language: 'en-US',
// Domain of your site. No trailing slash!
siteUrl: 'https://hello-gatsby-starter.netlify.com',
// Prefix for all links. If you deploy your site to example.com/portfolio your pathPrefix should be ... | 39,346 |
https://github.com/JiuWeiAhri/AlbumPicker/blob/master/HKAlbumPicker/Pods/YXKitOC/YXKitOC/YXKitOC/YXTools/YXRefresh/UIScrollView+YXRefresh.m | Github Open Source | Open Source | MIT | 2,021 | AlbumPicker | JiuWeiAhri | Objective-C | Code | 178 | 848 | //
// UIScrollView+YXRefresh.m
// YXKitOC
//
// Created by 张鑫 on 2020/1/13.
// Copyright © 2020 张鑫. All rights reserved.
//
#import "UIScrollView+YXRefresh.h"
#import <MJRefresh/MJRefresh.h>
#import "YXColor.h"
@implementation UIScrollView (YXRefresh)
#pragma mark - Setter
- (void)setYx_headerRefresh:(void (^)(... | 31,543 |
https://github.com/oxone-999/algorithms/blob/master/C++/tests/problems/0152_sequential_digits_test.cpp | Github Open Source | Open Source | MIT | 2,020 | algorithms | oxone-999 | C++ | Code | 33 | 181 | #include "../../problems/0152_sequential_digits.hpp"
#include <bits/stdc++.h>
#include "../../frameworks/catch.hpp"
#include "../../frameworks/asserts.hpp"
using namespace std;
TEST_CASE( "Sequential Digits" ) {
Solution sol;
vector<int> result1 = {123,234};
REQUIRE( areVectorsEqual(sol.sequentialDig... | 50,368 |
https://github.com/ladike/912_project/blob/master/6 复试/2 笔试/4 编译原理/编原/hw/2015_刘智峰_PA/PA3/src/decaf/error/BadOverrideError.java | Github Open Source | Open Source | MIT | 2,022 | 912_project | ladike | Java | Code | 76 | 193 | package decaf.error;
import decaf.Location;
/**
* example:overriding method 'tooold' doesn't match the type signature in class
* 'duckyaya'<br>
* PA2
*/
public class BadOverrideError extends DecafError {
private String funcName;
private String parentName;
public BadOverrideError(Location location, String fu... | 41,169 |
https://github.com/LukasLiss/i5-Toolkit-for-Unity/blob/master/Assets/i5 Toolkit for Unity/Tests/Editor/ServiceCore/ServiceManagerTests.cs | Github Open Source | Open Source | MIT | 2,022 | i5-Toolkit-for-Unity | LukasLiss | C# | Code | 580 | 1,861 | using FakeItEasy;
using i5.Toolkit.Core.Editor.TestHelpers;
using i5.Toolkit.Core.ServiceCore;
using NUnit.Framework;
using System;
using System.Reflection;
using System.Text.RegularExpressions;
using UnityEngine;
using UnityEngine.TestTools;
namespace i5.Toolkit.Core.Tests.ServiceCore
{
/// <summary>
/// Tes... | 38,053 |
https://github.com/ack43/rails_admin_simplemde/blob/master/app/assets/javascripts/rails_admin/ra.simplemde.coffee | Github Open Source | Open Source | MIT | null | rails_admin_simplemde | ack43 | CoffeeScript | Code | 17 | 101 | #= require 'simplemde/simplemde.min'
$(document).on "rails_admin.dom_ready", ->
$('.form-group.simplemde_type textarea[data-simplemde]').each ->
unless $(this).data('rails_admin_simplemde')
$(this).data('rails_admin_simplemde', new SimpleMDE({ element: this }))
| 21,395 |
https://github.com/e-green/pilbox/blob/master/provisioning/files/usr/local/bin/varnish.sh | Github Open Source | Open Source | Apache-2.0 | null | pilbox | e-green | Shell | Code | 78 | 199 | #!/bin/sh
# Include varnish defaults if available
if [ -f /etc/default/varnish ] ; then
. /etc/default/varnish
fi
# Open files (usually 1024, which is way too small for varnish)
ulimit -n ${NFILES:-131072}
# Maxiumum locked memory size for shared memory log
ulimit -l ${MEMLOCK:-82000}
# If $DAEMON_OPTS is n... | 9,329 |
https://github.com/DailyDreaming/azul/blob/master/webservice/action.py | Github Open Source | Open Source | Apache-2.0 | 2,018 | azul | DailyDreaming | Python | Code | 167 | 585 | from flask import Flask, jsonify, request, session, Blueprint
from flask_login import LoginManager, login_required, \
current_user, UserMixin
# import json
# from flask_sqlalchemy import SQLAlchemy
from flask_cors import CORS, cross_origin
from flask import redirect
# from flask_migrate import Migrate
# import fla... | 25,108 |
https://github.com/meinside/gtmx/blob/master/go.mod | Github Open Source | Open Source | MIT | 2,023 | gtmx | meinside | Go Module | Code | 7 | 41 | module github.com/meinside/gtmx
go 1.20
require github.com/meinside/version-go v0.0.2
| 11,830 |
https://github.com/pigmonchu-personal/Parse-SDK-dotNET/blob/master/ParseCore/Test/FileControllerTests.cs | Github Open Source | Open Source | BSD-3-Clause | 2,019 | Parse-SDK-dotNET | pigmonchu-personal | C# | Code | 304 | 1,152 | using Moq;
using NUnit.Framework;
using Parse;
using Parse.Core.Internal;
using System;
using System.Collections.Generic;
using System.IO;
using System.Net;
using System.Runtime.CompilerServices;
using System.Threading;
using System.Threading.Tasks;
namespace ParseTest {
[TestFixture]
public class FileControllerTe... | 47,143 |
https://github.com/0x53A/Fable/blob/master/src/Fable.Core/Fable.Core.JS.fs | Github Open Source | Open Source | MIT | 2,021 | Fable | 0x53A | null | Spoken | 3,122 | 8,083 | namespace Fable.Import
[<System.Obsolete("Use Fable.Core.JS")>]
module JS =
/// Use Fable.Core.JS
let obsolete<'T> : 'T = failwith "Use Fable.Core.JS"
namespace Fable.Core
open System
open System.Text.RegularExpressions
module JS =
type [<AllowNullLiteral>] PropertyDescriptor =
abstract configur... | 32,873 |
https://github.com/angganegara/foodorder/blob/master/app/Models/Component.php | Github Open Source | Open Source | MIT | null | foodorder | angganegara | PHP | Code | 19 | 53 | <?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
class Component extends Model
{
protected $casts = [
'id' => 'integer'
];
}
| 15,897 |
https://github.com/samhays/aws-daleks/blob/master/archive/src/main/scala/aws/daleks/networking/Route53Dalek.scala | Github Open Source | Open Source | Apache-2.0 | null | aws-daleks | samhays | Scala | Code | 47 | 249 | package aws.daleks.networking
import scala.collection.JavaConverters._
import com.amazonaws.services.route53.AmazonRoute53Client
import com.amazonaws.services.route53.model.HostedZone
import com.amazonaws.services.route53.model.DeleteHostedZoneRequest
import aws.daleks.RxDalek
import com.amazonaws.services.route53.Ama... | 36,665 |
https://github.com/netarch/batfish/blob/master/projects/batfish/src/main/java/org/batfish/z3/state/visitors/DefaultTransitionGenerator.java | Github Open Source | Open Source | Apache-2.0 | 2,021 | batfish | netarch | Java | Code | 2,284 | 10,125 | package org.batfish.z3.state.visitors;
import static org.batfish.common.util.CommonUtil.forEachWithIndex;
import com.google.common.collect.ImmutableList;
import com.google.common.collect.ImmutableMap;
import com.google.common.collect.ImmutableSet;
import java.util.List;
import java.util.Map;
import java.util.Map.Entr... | 40,431 |
https://github.com/synuwxy/service-mesh-hub/blob/master/pkg/csr/certgen/secrets/interfaces.go | Github Open Source | Open Source | Apache-2.0 | null | service-mesh-hub | synuwxy | Go | Code | 68 | 153 | package cert_secrets
import (
corev1 "k8s.io/api/core/v1"
)
//go:generate mockgen -destination ./mocks/mock_interfaces.go -source ./interfaces.go
/*
CertSecretBuilder is meant as an interface function to expose the ability to transform itself into a secret
representing the underlying data
For instance: the Inte... | 8,693 |
https://github.com/AxolotGames/mygui/blob/master/Tools/EditorFramework/SharedPtr.h | Github Open Source | Open Source | MIT | 2,021 | mygui | AxolotGames | C++ | Code | 459 | 1,251 | /*!
@file
@author Albert Semenov
@date 07/2012
*/
#ifndef _e34f5767_b55f_4017_bcb3_634673f41b2b_
#define _e34f5767_b55f_4017_bcb3_634673f41b2b_
namespace tools
{
#if __cplusplus >= 201103L
template <typename T> using weak_ptr = std::weak_ptr<T>;
template <typename T> using shared_ptr = std::shared_ptr<T>;
#el... | 10,595 |
https://github.com/phanviet/admino/blob/master/spec/spec_helper.rb | Github Open Source | Open Source | MIT | 2,017 | admino | phanviet | Ruby | Code | 169 | 635 | require 'simplecov'
require 'coveralls'
SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter[
SimpleCov::Formatter::HTMLFormatter,
Coveralls::SimpleCov::Formatter
]
SimpleCov.start do
add_filter 'spec'
end
require 'admino'
require 'pry'
require 'rspec-html-matchers'
I18n.enforce_available_locales = true... | 2,990 |
https://github.com/abbiepopa/DPTB_pupillometry/blob/master/PupilDxAnalysis.R | Github Open Source | Open Source | MIT | 2,016 | DPTB_pupillometry | abbiepopa | R | Code | 544 | 6,033 | rm(list=ls())
setwd("/Users/abbiepopa/Documents/Lab/DPTB")
e<-read.csv("everyone_demo.csv")
setwd("/Users/abbiepopa/Documents/Lab/DPTB/RT and Overall Eye Gaze/Data")
Dx<-read.csv("DxCodes.csv")
###################
###Overall Pupil###
###################
setwd("/Users/abbiepopa/Documents/Lab/DPTB/Pupilometry/Data")
... | 16,270 |
https://github.com/Draveness/MetaModel/blob/master/lib/metamodel/template/association/belongs_to_association.swift | Github Open Source | Open Source | MIT | 2,021 | MetaModel | Draveness | Swift | Code | 131 | 423 | //
// <%= association.class_name %>.swift
// MetaModel
//
// Created by MetaModel.
// Copyright © 2016 metamodel. All rights reserved.
//
import Foundation
extension <%= association.class_name %> {
@discardableResult static func create(<%= association.major_model_id %>: Int, <%= association.secondary_model_id... | 42,146 |
https://github.com/stephensmitchell-forks/Silk.NET/blob/master/src/Vulkan/Silk.NET.Vulkan/Structs/SurfacePresentScalingCapabilitiesEXT.gen.cs | Github Open Source | Open Source | MIT, LicenseRef-scancode-unknown-license-reference | 2,023 | Silk.NET | stephensmitchell-forks | C# | Code | 272 | 1,112 | // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
using System;
using System.Runtime.InteropServices;
using System.Runtime.CompilerServices;
using System.Text;
using Silk.NET.Core;
using Silk.NET.Core.Native;
using Silk.NET.Core.At... | 13,357 |
https://github.com/jmhodges/nokogiri/blob/master/ext/nokogiri/xml_processing_instruction.h | Github Open Source | Open Source | Unlicense, MIT | 2,016 | nokogiri | jmhodges | C | Code | 12 | 75 | #ifndef NOKOGIRI_XML_PROCESSING_INSTRUCTION
#define NOKOGIRI_XML_PROCESSING_INSTRUCTION
#include <native.h>
void init_xml_processing_instruction();
extern VALUE cNokogiriXmlProcessingInstruction;
#endif
| 19,160 |
https://github.com/JosmanPS/Optimizacion-Numerica/blob/master/ampl-models/catena.nl | Github Open Source | Open Source | MIT | 2,015 | Optimizacion-Numerica | JosmanPS | null | Spoken | 606 | 1,422 | g3 0 1 0 # problem catena
32 11 1 0 11 # vars, constraints, objectives, ranges, eqns
11 0 # nonlinear constraints, objectives
0 0 # network constraints: nonlinear, linear
32 0 0 # nonlinear vars in constraints, objectives, both
0 0 0 1 # linear network variables; functions; arith, flags
0 0 0 0 0 # discrete varia... | 47,970 |
https://github.com/analysis-tools-dev/static-analysis/blob/master/data/render/src/lints.rs | Github Open Source | Open Source | MIT, CC0-1.0, GPL-3.0-only, LicenseRef-scancode-free-unknown, LicenseRef-scancode-unknown-license-reference | 2,023 | static-analysis | analysis-tools-dev | Rust | Code | 78 | 216 | use anyhow::{anyhow, Result};
use crate::types::ParsedEntry;
use crate::types::Tag;
pub fn name(entry: &ParsedEntry, _: &[Tag]) -> Result<()> {
match entry.name.len() <= 50 {
true => Ok(()),
false => Err(anyhow!(
"Name of entry may be at most 50 characters long, but {} is {} long",
... | 25,453 |
https://github.com/TravisJB89/facesjs/blob/master/.gitignore | Github Open Source | Open Source | Apache-2.0 | 2,022 | facesjs | TravisJB89 | Ignore List | Code | 7 | 39 | build
node_modules
viewer/build
src/svgs.ts
src/svgs-index.ts
test.html
yarn-error.log
| 50,602 |
https://github.com/Azure-Samples/azure-cli-samples/blob/master/azure-signalr/create-signalr-service-and-group/create-signalr-service-and-group.sh | Github Open Source | Open Source | MIT | 2,023 | azure-cli-samples | Azure-Samples | Shell | Code | 112 | 327 | #!/bin/bash
# Passed validation in Cloud Shell on 3/30/2022
# <FullScript>
# Create a SignalR Service
# Variable block
let "randomIdentifier=$RANDOM*$RANDOM"
location="East US"
resourceGroup="msdocs-azure-signalr-rg-$randomIdentifier"
tag="create-signal-service-and-group"
signalRSvc=msdocs-signalr-svc-$randomIdentifi... | 6,607 |
https://github.com/marcin-brumer/portfolio-gatsby/blob/master/src/components/Header/Menu/MenuNavigation/MenuNavigation.js | Github Open Source | Open Source | MIT | null | portfolio-gatsby | marcin-brumer | JavaScript | Code | 165 | 498 | import React from "react";
import styled from "styled-components";
import NavigationLink from "./NavigationLink/NavigationLink";
import posed from "react-pose";
const PosedNavigation = posed.ul({
visible: {
x: 0,
delayChildren: 200,
staggerChildren: 50,
transition: {
default: { duration: 300 },... | 50,273 |
https://github.com/PDUBB3/gym-guru-client/blob/master/src/components/SignUpAccordion/index.js | Github Open Source | Open Source | FTL | null | gym-guru-client | PDUBB3 | JavaScript | Code | 656 | 2,595 | import { useState } from "react";
import { useMutation } from "@apollo/client";
import { Controller } from "react-hook-form";
import { makeStyles } from "@material-ui/core/styles";
import { useForm } from "react-hook-form";
import { useHistory } from "react-router-dom";
import Loader from "react-loader-spinner";
import... | 21,701 |
https://github.com/EmmaEwert/modlr/blob/master/Assets/Prefabs/Box.prefab | Github Open Source | Open Source | CC-BY-4.0 | 2,015 | modlr | EmmaEwert | Unity3D Asset | Code | 1,343 | 5,620 | %YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!1 &109944
GameObject:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 100100000}
serializedVersion: 4
m_Component:
- 4: {fileID: 439486}
- 33: {fileID: 3300758}
- 64: {fileID: 6498556}
- 23: {fileID: 2378796}
m_Layer: ... | 40,324 |
https://github.com/PacktPublishing/Mastering-ASP.NET-Core-3.0-Second-Edition/blob/master/Chapter13/UnitTests/MyTests.cs | Github Open Source | Open Source | MIT | 2,022 | Mastering-ASP.NET-Core-3.0-Second-Edition | PacktPublishing | C# | Code | 44 | 122 | using System;
using System.Collections.Generic;
using System.Text;
using Xunit;
namespace UnitTests
{
public class MyTests : IClassFixture<SharedData>
{
private readonly SharedData _data;
public MyTests(SharedData data)
{
this._data = data;
}
[Fact(Skip = ... | 29,212 |
https://github.com/guitarrapc/DirectoryPropSwitch/blob/master/src/DirectoryPropSwitch/DirectoryPropSwitch.cs | Github Open Source | Open Source | MIT | null | DirectoryPropSwitch | guitarrapc | C# | Code | 684 | 2,503 | using Microsoft.Extensions.Logging;
using DirectoryPropSwitch.internals;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;
using System.Threading.Tasks;
namespace DirectoryPropSwitch
{
public class DirectoryPropSwitchSetting... | 18,416 |
https://github.com/tonjohn/jampad/blob/master/database/migrations/2020_11_25_181042_create_user_homes_table.php | Github Open Source | Open Source | MIT | null | jampad | tonjohn | PHP | Code | 65 | 308 | <?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateUserHomesTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::disableForeignKeyCons... | 30,452 |
https://github.com/OSUCartography/MapComposer/blob/master/src/main/resources/.metadata/.plugins/com.aptana.syncing.core/defaultConnection.3 | Github Open Source | Open Source | Apache-2.0 | 2,015 | MapComposer | OSUCartography | null | Spoken | 9 | 57 | <?xml version="1.0" encoding="UTF-8"?>
<connection>
<connection>
<name>Default</name>
<source>file:/C:/Users/darbyshj</source>
</connection>
</connection> | 50,111 |
https://github.com/LefterisJP/rotkehlchen/blob/master/frontend/app/src/components/import/BitcoinImport.vue | Github Open Source | Open Source | AGPL-3.0-only, AGPL-3.0-or-later, LicenseRef-scancode-unknown-license-reference | 2,023 | rotkehlchen | LefterisJP | Vue | Code | 43 | 243 | <script setup lang="ts">
const { t } = useI18n();
</script>
<template>
<ImportSource source="bitcoin_tax">
<template #upload-title>
<i18n tag="span" path="import_data.bitcoin_tax.import">
<strong>{{ t('import_data.bitcoin_tax.import_types') }}</strong>
</i18n>
</template>
<i18n tag="s... | 46,506 |
https://github.com/Aidan63/clay_ecs/blob/master/clay/core/EntityManager.hx | Github Open Source | Open Source | MIT | 2,020 | clay_ecs | Aidan63 | Haxe | Code | 366 | 1,321 | package clay.core;
import clay.ds.Int32RingBuffer;
import clay.ds.BitVector;
import clay.containers.EntityVector;
import clay.Entity;
class EntityManager {
public var capacity (default, null):Int; // 16384, 65536
public var used (default, null): Int;
public var available(get, never):Int;
var oncreate:Entity... | 30,126 |
https://github.com/ess-dmsc/nexus-geometry-constructor/blob/master/nexus_constructor/transformations_list.py | Github Open Source | Open Source | BSD-2-Clause | 2,022 | nexus-geometry-constructor | ess-dmsc | Python | Code | 133 | 432 | from nexus_constructor.model.transformation import Transformation
class TransformationsList(list):
"""
Holds a list of (component) local transformations and, the parent component
and weather any of the transformations has an external link (depends_on to
a transformation outside of the current componen... | 9,021 |
https://github.com/lena1687/furniture-store/blob/master/bitrix/modules/bizproc/install/activities/bitrix/taskactivity/properties_dialog.php | Github Open Source | Open Source | MIT | null | furniture-store | lena1687 | PHP | Code | 356 | 1,884 | <?
if (!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED!==true)die();
?>
<tr>
<td align="right" width="40%"><span class="adm-required-field"><?= GetMessage("BPTA1A_TASK_TYPE") ?>:</span></td>
<td width="60%">
<select name="task_type" onchange="document.getElementById('id_task_owner_id').disabled = (this.selected... | 29,498 |
https://github.com/Max1811/Sports_Store/blob/master/Store/Program.cs | Github Open Source | Open Source | Unlicense | null | Sports_Store | Max1811 | C# | Code | 111 | 411 | using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Hosting;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Hosting;
using Mi... | 33,054 |
https://github.com/jetty-project/sourceforge-archive/blob/master/Jetty/extra/plus/src/org/mortbay/jaas/JAASUserPrincipal.java | Github Open Source | Open Source | Apache-2.0 | 2,020 | sourceforge-archive | jetty-project | Java | Code | 704 | 1,812 | // ========================================================================
// $Id$
// Copyright 2002-2004 Mort Bay Consulting Pty. Ltd.
// ------------------------------------------------------------------------
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in c... | 13,196 |
https://github.com/jwstl/SharePoint3VM/blob/master/dsc/ConfigureSharePointServer.ps1/SharePointServer.psm1 | Github Open Source | Open Source | MIT | null | SharePoint3VM | jwstl | PowerShell | Code | 1,635 | 4,959 | function DisableLoopbackCheck
{
# See KB896861 for more information about why this is necessary.
Write-Verbose -Message "Disabling Loopback Check ..."
New-ItemProperty HKLM:\System\CurrentControlSet\Control\Lsa -Name 'DisableLoopbackCheck' -value '1' -PropertyType dword -Force | Out-Null
}
function AddSha... | 22,692 |
https://github.com/shadywafik887/sms/blob/master/start.sh | Github Open Source | Open Source | MIT | 2,020 | sms | shadywafik887 | Shell | Code | 209 | 494 | #!/bin/bash
#A plug n' play kind of backend
#Just enter the phone number and the delay
#
#Idk if this is easier but i want to try bash programming
#Text colors
white='\033[0m'
black='\033[30m'
green='\033[32m'
red='\033[31m'
yellow='\033[93m'
warning='\033[1;4;91m'
display_usage () {
echo -e "${green}spammer.py${w... | 51,905 |
https://github.com/rafiandria23/solveware-test/blob/master/middlewares/authenticator.js | Github Open Source | Open Source | MIT | null | solveware-test | rafiandria23 | JavaScript | Code | 256 | 775 | 'use strict';
const createError = require('http-errors');
const jwt = require('jsonwebtoken');
const { User, Admin } = require('../models');
class Authenticator {
static async user(req, res, next) {
try {
const accessToken =
req.headers.authorization?.split(' ')[1] ||
req.headers['X-ACCES... | 38,983 |
https://github.com/qhenkart/aws-sdk-go-v2/blob/master/service/cognitoidentityprovider/doc.go | Github Open Source | Open Source | Apache-2.0 | 2,021 | aws-sdk-go-v2 | qhenkart | Go | Code | 87 | 135 | // Code generated by smithy-go-codegen DO NOT EDIT.
// Package cognitoidentityprovider provides the API client, operations, and
// parameter types for Amazon Cognito Identity Provider.
//
// Using the Amazon Cognito User Pools API, you can create a user pool to manage
// directories and users. You can authenticate a u... | 35,407 |
https://github.com/manfeel/android_vendor_lewa/blob/master/packages/apps/LewaStore/src/com/lewa/store/extras/GooglePackages.java | Github Open Source | Open Source | Apache-2.0 | 2,013 | android_vendor_lewa | manfeel | Java | Code | 198 | 817 | package com.lewa.store.extras;
import java.io.StringReader;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import javax.xml.parsers.SAXParserFactory;
import org.xml.sax.InputSource;
import org.xml.sax.XMLReader;
import com.lewa.store.activity.AppListActivity;
impo... | 37,785 |
https://github.com/neolithos/neolua/blob/master/NeoLua.Test/Lua/Runtime12.lua | Github Open Source | Open Source | Apache-2.0 | 2,023 | neolua | neolithos | Lua | Code | 41 | 87 | local s = "from=world, to=Lua"
local i = 0;
local t = "";
for k, v in string.gmatch(s, "(%w+)=(%w+)") do
print(k .. "=" .. v);
i = i + 1;
t = t .. k .. v;
end;
return i, t; | 6,967 |
https://github.com/funkeyfreak/msgraph-sdk-go/blob/master/model_microsoft_graph_threat_assessment_request_source.go | Github Open Source | Open Source | MIT | null | msgraph-sdk-go | funkeyfreak | Go | Code | 56 | 229 | /*
* Partial Graph API
*
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* API version: v1.0
* Generated by: OpenAPI Generator (https://openapi-generator.tech)
*/
package msgraph
// MicrosoftGraphThreatAssessmentRequestSource the model 'MicrosoftGr... | 30,966 |
https://github.com/CrackerCat/burp-api-drops/blob/master/src/custom/JsonParser.java | Github Open Source | Open Source | Apache-2.0 | 2,022 | burp-api-drops | CrackerCat | Java | Code | 84 | 378 | package custom;
import java.lang.reflect.Field;
import java.util.HashMap;
import java.util.Map;
public class JsonParser {
public static Map<String, String> parseJson(Object object) {
Map<String, String> fieldMap = new HashMap<String, String>();
Field[] fields = object.getClass().getDeclaredFields... | 16,585 |
https://github.com/vabalcar/NetworkOperator/blob/master/Sources/Core/UIMessanging/UIUpdater.cs | Github Open Source | Open Source | MIT | null | NetworkOperator | vabalcar | C# | Code | 84 | 274 | using NetworkOperator.Core.UIMessanging.UIMessages;
namespace NetworkOperator.Core.UIMessanging
{
public class UIUpdater
{
private static UIUpdater current;
public static UIUpdater Current
{
get
{
if (current == null)
{
... | 29,588 |
https://github.com/vimal-sivasubramanian/kafka-streams-dotnet/blob/master/core/Kafka/IKafkaSupplier.cs | Github Open Source | Open Source | MIT | 2,021 | kafka-streams-dotnet | vimal-sivasubramanian | C# | Code | 220 | 605 | using Confluent.Kafka;
using Streamiz.Kafka.Net.State;
using Streamiz.Kafka.Net.Table;
namespace Streamiz.Kafka.Net.Kafka
{
/// <summary>
/// <see cref="IKafkaSupplier"/> can be used to provide custom Kafka clients to a <see cref="KafkaStream"/> instance.
/// </summary>
public interface IKafkaSupplier... | 30,544 |
https://github.com/chkui/combineAntD/blob/master/dev/src/componentLib/list/searchItem/select/standard.scss | Github Open Source | Open Source | MIT | 2,018 | combineAntD | chkui | SCSS | Code | 10 | 32 | .standard-select{
width: 100%;
}
.span{
width: 100%;
height: 100%;
} | 30,333 |
https://github.com/homosaur/firelink/blob/master/api/index.js | Github Open Source | Open Source | 0BSD | 2,020 | firelink | homosaur | JavaScript | Code | 47 | 145 | import express from 'express'
const app = express()
import create from './component/create'
import find from './component/find'
import trash from './component/trash'
import recover from './component/recover'
// component API
app.use('/api/component/create', create)
app.use('/api/component/find', find)
app.use('/api/c... | 45,851 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.