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/kimtc/SO/blob/master/so-serviceprocessor/src/main/java/com/pineone/icbms/so/serviceprocessor/processor/orchestrationservice/messagequeue/producer/OrchestrationServiceProducerHandlerFactory.java | Github Open Source | Open Source | BSD-2-Clause | 2,017 | SO | kimtc | Java | Code | 41 | 167 | package com.pineone.icbms.so.serviceprocessor.processor.orchestrationservice.messagequeue.producer;
/**
* SpringKafkaOrchestrationServiceProducerHandler factory.<BR/>
*
* Created by uni4love on 2017. 1. 4..
*/
public class OrchestrationServiceProducerHandlerFactory {
/**
* return SpringKafkaOrchestrationS... | 1,329 |
https://github.com/ahartmanns/qcomp/blob/master/benchmarks/script.js | Github Open Source | Open Source | CC-BY-4.0 | 2,023 | qcomp | ahartmanns | JavaScript | Code | 851 | 2,628 | 'use strict';
function modelTypeToLongString(modelType)
{
if(modelType === "ctmc") return "continuous-time Markov chain";
else if(modelType === "dtmc") return "discrete-time Markov chain";
else if(modelType === "ma") return "Markov automaton";
else if(modelType === "mdp") return "Markov decision process";
else if(... | 11,281 |
https://github.com/xgrommx/RelaX/blob/master/examples/RelaXExample/js/ui-components/web.js | Github Open Source | Open Source | MIT | 2,015 | RelaX | xgrommx | JavaScript | Code | 148 | 480 | /*global document
* @flow
* @typechecks
*/
const React = require('react');
const ReactDOM = require('react-dom');
import type { UIComponents } from './types';
const create = (styles) => {
const Button = (props) => (
<button onClick={props.onClick} disabled={props.disabled}>
{ props.children }
</b... | 3,811 |
https://github.com/gabrielNetto94/semana-omnistack-10/blob/master/web/src/App.js | Github Open Source | Open Source | MIT | null | semana-omnistack-10 | gabrielNetto94 | JavaScript | Code | 175 | 468 | import React, { useEffect, useState } from 'react';
import api from './services/api';
import './global.css';
import './App.css';
import './Sidebar.css';
import './Main.css';
import DevItem from './components/DevItem';
import DevForm from './components/DevForm';
//Componente: Bloco isolado de HTML,CSS,JS o qual não i... | 41,280 |
https://github.com/jrsavs21/nibrs/blob/master/tools/nibrs-staging-data/src/main/java/org/search/nibrs/stagingdata/model/segment/OffenseSegment.java | Github Open Source | Open Source | Apache-2.0 | null | nibrs | jrsavs21 | Java | Code | 949 | 3,600 | /*
* Copyright 2016 SEARCH-The National Consortium for Justice Information and Statistics
*
* 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-... | 19,308 |
https://github.com/KAVTARA13/midterm/blob/master/resources/views/guest/index.blade.php | Github Open Source | Open Source | MIT | null | midterm | KAVTARA13 | PHP | Code | 273 | 1,331 |
@extends("layouts.main")
@section('content')
<!-- header area start -->
@include("inc.header")
<!-- header area end -->
<!-- main wrapper start -->
<div class="home2-main-wrapper mt-30">
<div class="container-fluid">
<div class="row">
<div class="col-lg-9 order-fi... | 56,256 |
https://github.com/wtf-php/json-api-errors/blob/master/src/Services/JsonApiErrorService.php | Github Open Source | Open Source | MIT | 2,021 | json-api-errors | wtf-php | PHP | Code | 361 | 1,444 | <?php
namespace WtfPhp\JsonApiErrors\Services;
use Lukasoppermann\Httpstatus\Httpstatus;
use Lukasoppermann\Httpstatus\Httpstatuscodes as Status;
use Psr\Http\Message\ResponseInterface;
use Throwable;
use WtfPhp\JsonApiErrors\Exceptions\JsonApiErrorException;
use WtfPhp\JsonApiErrors\Factories\JsonApiErrorFactory;
us... | 6,025 |
https://github.com/milek/fancy-menu/blob/master/fancymenu/src/main/java/pl/khrone/libraries/fancymenu/FancyMenu.kt | Github Open Source | Open Source | Apache-2.0 | null | fancy-menu | milek | Kotlin | Code | 432 | 1,442 | /*
* Copyright (C) 2017 Łukasz Milewski
*
* 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... | 2,971 |
https://github.com/GGui/gravitee-repository-redis/blob/master/src/main/java/io/gravitee/repository/redis/management/RedisDictionaryRepository.java | Github Open Source | Open Source | Apache-2.0 | null | gravitee-repository-redis | GGui | Java | Code | 436 | 1,653 | /**
* Copyright (C) 2015 The Gravitee team (http://gravitee.io)
*
* 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... | 40,268 |
https://github.com/SAP/openui5/blob/master/src/sap.uxap/src/sap/uxap/themes/base/BreadCrumbs.less | Github Open Source | Open Source | Apache-2.0, LicenseRef-scancode-unknown-license-reference | 2,023 | openui5 | SAP | Less | Code | 162 | 712 | /* ===================================== */
/* CSS for control sap.uxap/BreadCrumbs */
/* Base theme */
/* ===================================== */
.sapUxAPBreadCrumbs {
margin: 0 0 0.5rem 0;
height: 1.25rem;
.sapMLnk, .sapMText, .sapUxAPTubeIcon, .sapMSlt {
vertical-align: middle;
}... | 20,968 |
https://github.com/Woodpecker0/ergodox-firmware/blob/master/src/keyboard/ergodox/layout/alswl-layout.c | Github Open Source | Open Source | MIT | 2,019 | ergodox-firmware | Woodpecker0 | C | Code | 3,096 | 11,540 | /* ----------------------------------------------------------------------------
* ergoDOX layout : QWERTY (modified from the Kinesis layout)
* -----------------------------------------------------------------------------
* Copyright (c) 2012 Ben Blazak <benblazak.dev@gmail.com>
* Released under The MIT License (MIT) (s... | 48,335 |
https://github.com/mlzboy/python/blob/master/old/learn_jieba_to_analysis_the_part_of_speech.py | Github Open Source | Open Source | Apache-2.0 | 2,018 | python | mlzboy | Python | Code | 93 | 409 | import jieba # 分词模块
from collections import OrderedDict as order
'''
# 分词
with open("D:\\Users\\YeahKun\\Desktop\\play\\new_分词材料.txt","r") as file_material:
file_material = file_material.read()
seg_list = jieba.lcut(file_material)# 分词系统默认为精确模式
seg_list = str(seg_list)
with open("D:\\Users\\YeahKun\\Desktop\\play\\... | 23,055 |
https://github.com/sadiqmmm/gdpr_rails/blob/master/test/system/portability_requests_test.rb | Github Open Source | Open Source | MIT | 2,018 | gdpr_rails | sadiqmmm | Ruby | Code | 24 | 74 | require "application_system_test_case"
class PortabilityRequestsTest < ApplicationSystemTestCase
# test "visiting the index" do
# visit portability_requests_url
#
# assert_selector "h1", text: "PortabilityRequest"
# end
end
| 9,912 |
https://github.com/qixianchuan/SpringBootQD/blob/master/war/src/main/java/com/qi/war/controller/ChasesunEdiOrderReceiptMainController.java | Github Open Source | Open Source | Apache-2.0 | null | SpringBootQD | qixianchuan | Java | Code | 65 | 371 | package com.qi.war.controller;
import com.qi.war.domain.ChasesunEdiOrderReceiptMain;
import com.qi.war.domain.ChasesunEdiOrderReceiptMainExample;
import com.qi.war.service.ChasesunEdiOrderReceiptMainService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller... | 22,176 |
https://github.com/trinayanbhatt/_del_blockchain-ekyc-sawtooth/blob/master/sawtooth-ekyc-member/jsclient/views/register.handlebars | Github Open Source | Open Source | Apache-2.0 | 2,019 | _del_blockchain-ekyc-sawtooth | trinayanbhatt | null | Spoken | 252 | 1,079 | <div class="container">
<div class="header clearfix">
<h3 class="text-muted">Primechain Technologies</h3>
</div>
</div>
<hr>
<div class="container"> {{#if error_msg}}
<div class="alert alert-danger">{{error_msg}}</div>
{{/if}} {{#if errors}} {{#each errors}}
<div class="alert alert-danger">{... | 14,096 |
https://github.com/UL-SnT-Serval/SimSG/blob/master/server/ws/src/main/java/creos/simsg/api/server/ws/message/RequestMessage.java | Github Open Source | Open Source | Apache-2.0 | 2,020 | SimSG | UL-SnT-Serval | Java | Code | 27 | 53 | package creos.simsg.api.server.ws.message;
/**
* Interface that should be implemented by message that request information or result from the server.
*/
public interface RequestMessage {
Message process();
}
| 27,252 |
https://github.com/Spikef/web-apis-cli/blob/master/libs/fs-more.js | Github Open Source | Open Source | MIT | 2,016 | web-apis-cli | Spikef | JavaScript | Code | 317 | 1,122 | /**
* Usage: 针对fs的一些操作
* Author: Spikef < Spikef@Foxmail.com >
* Copyright: Envirs Team < http://envirs.com >
*/
var fs = require('fs');
var path = require('path');
var BUF_LENGTH = 64 * 1024;
var BUF_EMPTY = new Buffer(BUF_LENGTH);
exports.copyFileSync = function(source, target, options) {
options = options ... | 43,452 |
https://github.com/ChromeDevTools/devtools-frontend/blob/master/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.proxy.d.ts | Github Open Source | Open Source | MIT, BSD-3-Clause | 2,023 | devtools-frontend | ChromeDevTools | TypeScript | Code | 15 | 50 | import type { ImplicitLibVariableOptions } from '../variable';
export declare const es2015_proxy: Record<string, ImplicitLibVariableOptions>;
//# sourceMappingURL=es2015.proxy.d.ts.map | 49,548 |
https://github.com/cdli-gh/mtaac_cdli_ur3_corpus/blob/master/ur3_corpus_data/annotated/morph/P332/P332125.conll | Github Open Source | Open Source | CC0-1.0, LicenseRef-scancode-public-domain | 2,022 | mtaac_cdli_ur3_corpus | cdli-gh | null | Spoken | 361 | 1,460 | #new_text=P332125
FORM SEGM XPOSTAG XPOSTAG POS
1(disz) 1(disz)[one] NU NU D
udu udu[sheep] N N D
niga niga[fattened][-ø] V NF.V.ABS D
u4-sakar usakar[crescent_moon][-sze] N N.TERM D
gu-la gal[big][-ø][-sze] PN NF.V.ABS D
1(disz) 1(disz)[one] NU NU D
udu udu[sheep] N N D
niga niga[fattened][-ø] V NF.V.ABS D
1(disz) 1(d... | 23,332 |
https://github.com/aron/npm-lookup/blob/master/bin/check_dependencies.js | Github Open Source | Open Source | MIT | null | npm-lookup | aron | JavaScript | Code | 128 | 372 | #!/usr/bin/env node
// Usage:
// $ ./check_dependencies.js <name>
import { fetchPackageDependencies } from "../lib/list_dependencies.js";
import assert from "assert";
let pkg = process.argv[2];
let version = "latest";
assert.ok(pkg, "Package name is required eg. react");
const versionIndex = pkg.lastIndexOf("@");
i... | 49,068 |
https://github.com/hyeongmokoo/SAAR/blob/master/VisUncertainty/frmAttUncernwithLocation.cs | Github Open Source | Open Source | MIT | 2,020 | SAAR | hyeongmokoo | C# | Code | 1,068 | 4,358 | using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using ESRI.ArcGIS.Carto;
using ESRI.ArcGIS.Geodatabase;
using ESRI.ArcGIS.Geometry;
using ESRI.ArcGIS.esriSystem;
using ESRI.ArcGIS.Ca... | 22,650 |
https://github.com/jcoreio/iron-pi-webapp/blob/master/src/server/mqtt/graphql/query/addQueryFields.js | Github Open Source | Open Source | Apache-2.0 | 2,021 | iron-pi-webapp | jcoreio | JavaScript | Code | 155 | 517 | // @flow
import * as graphql from 'graphql'
import {defaultArgs, resolver} from 'graphql-sequelize'
import requireUserId from '../../../graphql/requireUserId'
import MQTTConfig from '../../models/MQTTConfig'
import MQTTChannelConfig from '../../models/MQTTChannelConfig'
import type {GraphQLContext} from '../../../grap... | 19,053 |
https://github.com/zoogie/seedminer_toolbox/blob/master/builder.py | Github Open Source | Open Source | MIT | 2,020 | seedminer_toolbox | zoogie | Python | Code | 284 | 1,746 | import os,sys,struct,glob,binascii
def byteSwap4(n):
return n[3]+n[2]+n[1]+n[0]
def backup(fn,buf):
g=open(fn,"wb")
g.write(buf)
g.close()
############################################################### dupe checks
f=open("lfcs.dat","rb")
buf0=f.read()
f.close()
lfcs_len=len(buf0)/8
f=open("lfcs_new.dat","rb... | 46,749 |
https://github.com/EmilHvitfeldt/prismatic/blob/master/man/clr_rotate.Rd | Github Open Source | Open Source | MIT | 2,022 | prismatic | EmilHvitfeldt | R | Code | 155 | 391 | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/rotate.R
\name{clr_rotate}
\alias{clr_rotate}
\title{Rotate the colors around the hue wheel}
\source{
\url{https://en.wikipedia.org/wiki/HCL_color_space}
}
\usage{
clr_rotate(col, degrees = 0)
}
\arguments{
\item{col}{a color object or vector... | 53,255 |
https://github.com/vera-gloria/SGE/blob/master/application/views/login/v_recuperarsenha.php | Github Open Source | Open Source | LicenseRef-scancode-unknown-license-reference, MIT | 2,022 | SGE | vera-gloria | PHP | Code | 97 | 474 | <div class="container-fluid">
<div id="loginbox" style="margin-top:50px;" class="mainbox col-md-6 col-md-offset-3 col-sm-8 col-sm-offset-2">
<div class="panel panel-info" >
<div class="panel-heading">
<div class="panel-title">Recuperação de Senha</div>
... | 22,421 |
https://github.com/rafaelcaricio/jsonschema-rs/blob/master/jsonschema/src/keywords/property_names.rs | Github Open Source | Open Source | MIT | 2,021 | jsonschema-rs | rafaelcaricio | Rust | Code | 389 | 1,451 | use crate::{
compilation::{compile_validators, context::CompilationContext, JSONSchema},
error::{error, no_error, ErrorIterator, ValidationError},
keywords::CompilationResult,
paths::{InstancePath, JSONPointer},
schema_node::SchemaNode,
validator::{format_validators, PartialApplication, Validate... | 14,980 |
https://github.com/livehybrid/addonfactory-ucc-generator/blob/master/splunk_add_on_ucc_framework/UCC-UI-lib/bower_components/SplunkWebCore/search_mrsparkle/source/flash/libraries/jasongatt/src/com/jasongatt/graphics/brushes/CameraFillBrush.as | Github Open Source | Open Source | Apache-2.0 | null | addonfactory-ucc-generator | livehybrid | null | Spoken | 234 | 965 | package com.jasongatt.graphics.brushes
{
import com.jasongatt.core.ObservableProperty;
import flash.events.Event;
import flash.events.StatusEvent;
import flash.media.Camera;
import flash.media.Video;
import flash.system.Security;
import flash.system.SecurityPanel;
public class CameraFillBrush extends VisualFi... | 43,752 |
https://github.com/m2nnari/learn-docs/blob/master/node_modules/@vuepress/client/lib/types/clientAppEnhance.js | Github Open Source | Open Source | MIT | 2,021 | learn-docs | m2nnari | JavaScript | Code | 4 | 19 | export {};
//# sourceMappingURL=clientAppEnhance.js.map | 3,060 |
https://github.com/sahrohit/gotrip/blob/master/components/ContactUs/ContactIcons.jsx | Github Open Source | Open Source | MIT | 2,022 | gotrip | sahrohit | null | Spoken | 278 | 995 | import React from "react";
import {
createStyles,
ThemeIcon,
Text,
Group,
SimpleGrid,
Box,
} from "@mantine/core";
import { BsSun, BsTelephone, BsPinMap, BsAt } from "react-icons/bs";
const useStyles = createStyles((theme, { variant }) => ({
wrapper: {
display: "flex",
alignItems: "center",
color: theme.w... | 22,502 |
https://github.com/imsdolta/Stories/blob/master/views/layouts/main.hbs | Github Open Source | Open Source | MIT | 2,021 | Stories | imsdolta | null | Spoken | 184 | 1,307 | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/materialize/1.0.0/css/materialize.min.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com... | 33,332 |
https://github.com/johnpauldickie/whitehall/blob/master/app/models/edition/first_image_pulled_out.rb | Github Open Source | Open Source | MIT | null | whitehall | johnpauldickie | Ruby | Code | 35 | 107 | module Edition::FirstImagePulledOut
extend ActiveSupport::Concern
included do
validates :body, format: {
without: /^!!1([^\d]|$)/,
message: "cannot have a reference to the first image in the text",
multiline: true
}
end
def image_disallowed_in_body_text?(index)
index == 1
end
e... | 31,801 |
https://github.com/djkovrik/YapTalker/blob/master/app/src/main/java/com/sedsoftware/yaptalker/presentation/extensions/RecyclerViewExt.kt | Github Open Source | Open Source | Apache-2.0 | 2,019 | YapTalker | djkovrik | Kotlin | Code | 21 | 97 | package com.sedsoftware.yaptalker.presentation.extensions
import androidx.recyclerview.widget.LinearLayoutManager
import androidx.recyclerview.widget.RecyclerView
fun RecyclerView.visibleItemPosition(): Int {
val layoutManager = this.layoutManager as? LinearLayoutManager
return layoutManager?.findFirstVisible... | 4,425 |
https://github.com/Quee-io/clef-workflow/blob/master/clef-workflow-api/clef-workflow-api-usecase/clef-workflow-api-usecase-action/src/main/kotlin/io/quee/clef/workflow/api/usecase/action/main/CreateTaskActionUseCase.kt | Github Open Source | Open Source | Apache-2.0 | null | clef-workflow | Quee-io | Kotlin | Code | 162 | 963 | package io.quee.clef.workflow.api.usecase.action.main
import io.quee.api.develop.action.usecase.validation.ValidationFunctionalUseCase
import io.quee.clef.workflow.api.common.response.ViewIdentify
import io.quee.clef.workflow.api.domain.workflow.stage.action.TaskActionParameter
import io.quee.clef.workflow.api.domain.... | 11,475 |
https://github.com/bzquan/GherkinEditor/blob/master/GherkinEditor/GherkinEditor/Model/TableManipulator/GherkinTable.cs | Github Open Source | Open Source | MIT | 2,021 | GherkinEditor | bzquan | C# | Code | 311 | 1,001 | using ICSharpCode.AvalonEdit.Document;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Gherkin.Model
{
public class GherkinTableCell
{
public GherkinTableCell(string text)
{
Text = text.Trim();
}
public string Text { ... | 16,538 |
https://github.com/id-igv/openfintech/blob/master/etc/doc-build/src/Enums/AbstractEnum.php | Github Open Source | Open Source | MIT | 2,022 | openfintech | id-igv | PHP | Code | 29 | 85 | <?php
namespace Oft\Generator\Enums;
abstract class AbstractEnum
{
/* @var string */
protected $value;
public function __construct($value)
{
$this->value = $value;
}
public function getValue()
{
return $this->value;
}
} | 20,259 |
https://github.com/saumya66/HashnodeHome-Clone/blob/master/src/components/main-feed/post-article/PostArticle.component.js | Github Open Source | Open Source | MIT | 2,021 | HashnodeHome-Clone | saumya66 | JavaScript | Code | 215 | 1,217 | import "./post-article.scss";
import profilePic from "../../../assets/saumya.png";
const PostArticle = () => {
return (
<div className="post-article">
<div className="container row-1">
<div className="user">
<img
src="https://cdn.hashnode.com/res/hashnode/image/upload/v1613401149888/9BJqXHjYg.png?w... | 19,919 |
https://github.com/aaronbeall/handsontable/blob/master/handsontable/types/helpers/date.d.ts | Github Open Source | Open Source | LicenseRef-scancode-proprietary-license, LicenseRef-scancode-unknown-license-reference | 2,023 | handsontable | aaronbeall | TypeScript | Code | 5 | 16 | export function getNormalizedDate(dateString: string): Date;
| 42,931 |
https://github.com/masteraamie/SchoolManager/blob/master/application/views/frontend/admission_contact.php | Github Open Source | Open Source | MIT, LicenseRef-scancode-unknown-license-reference | 2,020 | SchoolManager | masteraamie | PHP | Code | 471 | 2,863 | <!DOCTYPE html>
<html lang="en-US">
<head>
<meta charset="UTF-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<link rel="icon" type="image/x-icon" href="<?= base_url(); ?>assets/assets/images/favicon.ico"/>
<title>Contact Us | Srinagar British School</title>
... | 36,933 |
https://github.com/Rohit484/Distribution/blob/master/s/stylable__core/src/main/scala/typings/stylableCore/stylableMetaMod/StylableSymbol.scala | Github Open Source | Open Source | MIT | 2,020 | Distribution | Rohit484 | Scala | Code | 213 | 959 | package typings.stylableCore.stylableMetaMod
import typings.postcss.mod.Node
import typings.stylableCore.stylableCoreStrings.`class`
import typings.stylableCore.stylableCoreStrings.`import`
import typings.stylableCore.stylableCoreStrings.`var`
import typings.stylableCore.stylableCoreStrings.cssVar
import typings.styla... | 41,469 |
https://github.com/QuickPixel/quickboot/blob/master/compile/sass/_config.scss | Github Open Source | Open Source | MIT | 2,014 | quickboot | QuickPixel | SCSS | Code | 632 | 2,306 | // =============================================================================
// TITLE: Configuration
// DESCRIPTION: Base variables for the project.
//
// TOC
// 1. Global
// 2. Modules
// 1. Singularity
// 2. Breakpoint
// =====================================================================... | 18,081 |
https://github.com/nay27/GatorGoods/blob/master/frontend/components/Message.js | Github Open Source | Open Source | MIT | 2,019 | GatorGoods | nay27 | JavaScript | Code | 193 | 644 | /*
* Component for messaging seller about specific item
* Loads item title into message box
*/
import styled from "styled-components";
import Router from "next/router";
import Centered from "./styles/Centered";
import Form from "./styles/Form";
import api from "../api";
import SuccessMessage from "./styles/Message... | 40,128 |
https://github.com/dongy6/type-inference/blob/master/soot-reim-definite/bench/eclipsec/org/eclipse/jdt/internal/compiler/ast/SwitchStatement.java | Github Open Source | Open Source | Apache-2.0 | 2,019 | type-inference | dongy6 | Java | Code | 1,459 | 4,537 | /*******************************************************************************
* Copyright (c) 2000, 2004 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, an... | 37,321 |
https://github.com/MyOwnClone/minko/blob/master/src/aerys/minko/type/parser/obj/ObjDocument.as | Github Open Source | Open Source | MIT | 2,013 | minko | MyOwnClone | null | Spoken | 1,800 | 6,402 | package aerys.minko.type.parser.obj
{
import aerys.minko.Minko;
import aerys.minko.render.geometry.Geometry;
import aerys.minko.render.geometry.GeometrySanitizer;
import aerys.minko.render.geometry.stream.IVertexStream;
import aerys.minko.render.geometry.stream.IndexStream;
import aerys.minko.render.geometry.stre... | 16,798 |
https://github.com/LaudateCorpus1/RosettaCodeData/blob/master/Task/Levenshtein-distance/Python/levenshtein-distance-2.py | Github Open Source | Open Source | Info-ZIP | 2,022 | RosettaCodeData | LaudateCorpus1 | Python | Code | 63 | 289 | def levenshteinDistance(str1, str2):
m = len(str1)
n = len(str2)
lensum = float(m + n)
d = []
for i in range(m+1):
d.append([i])
del d[0][0]
for j in range(n+1):
d[0].append(j)
for j in range(1,n+1):
for i in range(1,m+1):
if str1[i-1] == str2[j-1]:
... | 19,942 |
https://github.com/kyuumeitai/ai2react/blob/master/src/make_ai2react.js | Github Open Source | Open Source | ISC | null | ai2react | kyuumeitai | JavaScript | Code | 66 | 161 | import React from "react";
import styled from "styled-components";
import camelCase from "camelcase";
export function makeAi2React(opts = {}) {
const { html, styles, containerId, name = containerId } = opts;
const Wrapper = styled.div`
${styles}
`;
function Component(props) {
const __html = typeof ht... | 35,282 |
https://github.com/rakiduam/BasemapTutorial/blob/master/code_examples/projections/aeqd.py | Github Open Source | Open Source | CC0-1.0 | 2,020 | BasemapTutorial | rakiduam | Python | Code | 21 | 102 | from mpl_toolkits.basemap import Basemap
import matplotlib.pyplot as plt
map = Basemap(projection='aeqd', lon_0 = 10, lat_0 = 50)
map.drawmapboundary(fill_color='aqua')
map.fillcontinents(color='coral',lake_color='aqua')
map.drawcoastlines()
plt.show() | 34,313 |
https://github.com/DaMatrix/CubicChunksConverter/blob/master/src/main/java/net/daporkchop/rocksmc/converter/data/RocksLocalVanillaColumnData.java | Github Open Source | Open Source | MIT | null | CubicChunksConverter | DaMatrix | Java | Code | 389 | 853 | /*
* Adapted from The MIT License (MIT)
*
* Copyright (c) 2021-2021 DaPorkchop_
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation
* files (the "Software"), to deal in the Software without restriction, including without limitation the rig... | 53,644 |
https://github.com/NGLPteam/wdp-api/blob/master/app/operations/mutations/contracts/create_page.rb | Github Open Source | Open Source | MIT | 2,022 | wdp-api | NGLPteam | Ruby | Code | 26 | 127 | # frozen_string_literal: true
module Mutations
module Contracts
class CreatePage < ApplicationContract
json do
required(:entity).value(AppTypes.Instance(HierarchicalEntity))
required(:slug).filled("coercible.string")
end
rule(:entity, :slug) do
key(:slug).failure(:must_... | 20,398 |
https://github.com/thunsaker/droplet/blob/master/before_install.sh | Github Open Source | Open Source | MIT | 2,020 | droplet | thunsaker | Shell | Code | 76 | 280 | #!/bin/bash
# Install NPM 3
npm install npm@3 -g
set -e
echo 'pBuild 1.5'
echo 'Installing Pebble SDK and its Dependencies...'
cd ~
mkdir -p ~/pebble-dev
mkdir -p ~/.pebble-sdk
touch ~/.pebble-sdk/ENABLE_ANALYTICS
# Get the Pebble SDK and toolchain
if [ ! -d $HOME/pebble-dev/${PEBBLE_SDK} ]; then
wget https://s3.... | 43,941 |
https://github.com/Larz60p/TrulyDynamicDictionary/blob/master/CreateDict.py | Github Open Source | Open Source | MIT | null | TrulyDynamicDictionary | Larz60p | Python | Code | 301 | 799 | Copyright 2018 Larz60+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, an... | 5,151 |
https://github.com/tiachopvn/weborder/blob/master/database/seeders/DatabaseSeeder.php | Github Open Source | Open Source | MIT | 2,021 | weborder | tiachopvn | PHP | Code | 47 | 189 | <?php
namespace Database\Seeders;
use App\Models\Market;
use App\Models\Order;
use App\Models\Product;
use App\Models\User;
use App\Models\Vendor;
use Illuminate\Database\Seeder;
class DatabaseSeeder extends Seeder
{
/**
* Seed the application's database.
*
* @return void
*/
public functi... | 40,182 |
https://github.com/ariva-dev/react-native-ionicons/blob/master/src/Icons/easel.js | Github Open Source | Open Source | MIT | 2,020 | react-native-ionicons | ariva-dev | JavaScript | Code | 93 | 315 | import * as React from "react";
import Svg, { Rect, Path } from "react-native-svg";
function SvgEasel(props) {
return (
<Svg width="1em" height="1em" viewBox="0 0 512 512" {...props}>
<Rect x={80} y={112} width={352} height={208} rx={12} ry={12} />
<Path d="M432 64H272V48a16 16 0 00-32 0v16H80a48.05... | 40,102 |
https://github.com/pixie-io/pixie-blog/blob/master/src/components/mdxComponents/tabs.tsx | Github Open Source | Open Source | Apache-2.0 | 2,021 | pixie-blog | pixie-io | TypeScript | Code | 312 | 717 | /*
* Copyright 2018- The Pixie Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or ag... | 44,649 |
https://github.com/stas-dovgodko/project5/blob/master/lib/Propel/Cli/Command.php | Github Open Source | Open Source | MIT | null | project5 | stas-dovgodko | PHP | Code | 144 | 573 | <?php
namespace project5\Propel\Cli;
use project5\Propel\Exception\EntityNotFoundException;
use project5\Propel\Platform\MysqlPlatform;
use Propel\Generator\Config\GeneratorConfig;
use Symfony\Component\Console\Input\InputInterface;
trait Command
{
protected $tmp;
protected $connections;
protected funct... | 11,888 |
https://github.com/anthonycanino1/entbench/blob/master/batik/classes/org/apache/batik/dom/svg/AbstractSVGLengthList.java | Github Open Source | Open Source | Apache-2.0 | 2,016 | entbench | anthonycanino1 | Java | Code | 1,828 | 33,140 | package org.apache.batik.dom.svg;
public abstract class AbstractSVGLengthList extends org.apache.batik.dom.svg.AbstractSVGList implements org.w3c.dom.svg.SVGLengthList {
protected short direction;
public static final java.lang.String SVG_LENGTH_LIST_SEPARATOR = " ";
protected java.lang.String getItemSeparat... | 1,650 |
https://github.com/Group-10-Studios/Mission-Control/blob/master/src/main/java/nz/ac/vuw/engr300/gui/components/LaunchParameterInputField.java | Github Open Source | Open Source | MIT | 2,021 | Mission-Control | Group-10-Studios | Java | Code | 716 | 2,089 | package nz.ac.vuw.engr300.gui.components;
import javafx.geometry.Pos;
import javafx.scene.control.CheckBox;
import javafx.scene.control.Control;
import javafx.scene.control.Label;
import javafx.scene.control.TextField;
import javafx.scene.layout.GridPane;
import javafx.scene.layout.HBox;
import nz.ac.vuw.engr300.gui.u... | 744 |
https://github.com/kerker00/SpaceStateBackEnd/blob/master/.gitignore | Github Open Source | Open Source | MIT | 2,015 | SpaceStateBackEnd | kerker00 | Ignore List | Code | 9 | 42 | *.sublime-project
*.sublime-workspace
*.pem
*.cert
deps
*.beam
.rebar/
commands.md
notes.md
| 20,208 |
https://github.com/jkschneider/kanal/blob/master/src/main/kotlin/io/pivotal/kanal/model/Pipeline.kt | Github Open Source | Open Source | Apache-2.0 | null | kanal | jkschneider | Kotlin | Code | 833 | 1,818 | /*
* Copyright 2018 Pivotal Software, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License")
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or ag... | 26,255 |
https://github.com/infoconsole/slf4j/blob/master/logback/logback-examples/src/main/java/chapters/onJoran/newRule/NewRuleCalculator.java | Github Open Source | Open Source | MIT | null | slf4j | infoconsole | Java | Code | 236 | 632 | /**
* Logback: the reliable, generic, fast and flexible logging framework.
* Copyright (C) 1999-2015, QOS.ch. All rights reserved.
*
* This program and the accompanying materials are dual-licensed under
* either the terms of the Eclipse Public License v1.0 as published by
* the Eclipse Foundation
*
* or (per ... | 22,802 |
https://github.com/fetus-hina/stat.ink/blob/master/components/jobs/JobPriority.php | Github Open Source | Open Source | MIT, BSD-3-Clause, CC-BY-4.0 | 2,023 | stat.ink | fetus-hina | PHP | Code | 83 | 269 | <?php
/**
* @copyright Copyright (C) 2015-2023 AIZAWA Hina
* @license https://github.com/fetus-hina/stat.ink/blob/master/LICENSE MIT
* @author AIZAWA Hina <hina@fetus.jp>
*/
declare(strict_types=1);
namespace app\components\jobs;
trait JobPriority
{
public static function getJobPriority(): int
{
... | 55,965 |
https://github.com/wso2-incubator/device-cloud-appliances/blob/master/Arduino Robot/RestService/ConnectedDevices/src/main/java/org/wso2/iot/platform/devices/ConnectedDevice.java | Github Open Source | Open Source | Apache-2.0 | null | device-cloud-appliances | wso2-incubator | Java | Code | 424 | 1,643 | package org.wso2.iot.platform.devices;
import java.io.File;
import java.net.MalformedURLException;
import javax.ws.rs.*;
import org.apache.log4j.Logger;
import org.wso2.carbon.databridge.agent.thrift.DataPublisher;
import org.wso2.carbon.databridge.agent.thrift.exception.AgentException;
import org.wso2.carbon.databr... | 26,033 |
https://github.com/zhy19712/fengning/blob/master/app/Progress/controller/Yearplan.php | Github Open Source | Open Source | Apache-2.0 | 2,018 | fengning | zhy19712 | PHP | Code | 58 | 175 | <?php
/**
* Created by PhpStorm.
* User: 19113
* Date: 2018/4/19
* Time: 11:03
*/
/**
* 进度管理-年度计划
* Class Progressversion
* @package app\quality\controller
*/
namespace app\progress\controller;
use app\admin\controller\Permissions;
use \think\Session;
use think\exception\PDOException;
use think\Loader;
use thi... | 45,552 |
https://github.com/driivz/worldpay-lib-ios/blob/master/Worldpay/Worldpay/ThreeDSController.h | Github Open Source | Open Source | MIT | 2,019 | worldpay-lib-ios | driivz | Objective-C | Code | 60 | 204 | //
// ThreeDSController.h
// Worldpay
//
// Copyright (c) 2015 Worldpay. All rights reserved.
//
@import UIKit;
@interface ThreeDSController : UIViewController
typedef void (^threeDSOrderSuccess)(NSDictionary *responseDictionary);
typedef void (^threeDSOrderFailure)(NSDictionary *responseDictionary, NSArray *erro... | 24,413 |
https://github.com/im286er/Framework-3/blob/master/src/Webiny/Component/Bootstrap/BootstrapException.php | Github Open Source | Open Source | MIT, LicenseRef-scancode-warranty-disclaimer | 2,016 | Framework-3 | im286er | PHP | Code | 32 | 100 | <?php
/**
* Webiny Framework (http://www.webiny.com/framework)
*
* @copyright Copyright Webiny LTD
*/
namespace Webiny\Component\Bootstrap;
use Webiny\Component\StdLib\Exception\ExceptionAbstract;
/**
* Bootstrap exception class.
*
* @package Webiny\Component\Bootstrap
*/
class BootstrapException extends... | 14,614 |
https://github.com/tanhauhau/tanhauhau.github.io/blob/master/src/routes/slides/demystifying-transitions/_/examples/lifecycle/with-intro-outro-block-item-0.js | Github Open Source | Open Source | 2,022 | tanhauhau.github.io | tanhauhau | JavaScript | Code | 79 | 228 | // <div transition:fade />
function create_each_block(ctx) { /*... */ }
// {#each array as item}
function create_fragment(ctx) {
let each_block = create_each_block(ctx);
return {
// ...
p(ctx, dirty) {
// add new item
transition_in(each_block);
},
i(local) {
transition_in(each_b... | 7,504 | |
https://github.com/Micro-PHP/plugin-redis/blob/master/src/Configuration/RedisClientConfigurationInterface.php | Github Open Source | Open Source | MIT | null | plugin-redis | Micro-PHP | PHP | Code | 117 | 322 | <?php
namespace Micro\Plugin\Redis\Configuration;
interface RedisClientConfigurationInterface
{
public const CONNECTION_TYPE_UNIX = 'unix';
public const CONNECTION_TYPE_NET = 'network';
/**
* @return bool
*/
public function reuseConnection(): bool;
/**
* @return string
*/
... | 55,699 |
https://github.com/arangates/Kcteee/blob/master/Software/testing/esp test/esp_intial_config.ino | Github Open Source | Open Source | MIT | null | Kcteee | arangates | null | Spoken | 165 | 355 | /*
In this program ,When a AT command is entered in to the serial monitor of the computer
the Arduino will send it to the ESP8266 and also reads back
Arduino pin 2 (RX) to ESP8266 TX
Arduino pin 3 to voltage divider then to ESP8266 RX
Connect GND from the Arduiono to GND on the ESP8266
ESP8266 CH_PD HIGH ---> 3.... | 34,873 |
https://github.com/rdsites/web-api-boilerplate/blob/master/src/hr.domain/contracts/endereco.interface.ts | Github Open Source | Open Source | MIT | 2,019 | web-api-boilerplate | rdsites | TypeScript | Code | 5 | 11 | export interface IEndereco {
} | 10,381 |
https://github.com/nug-/amk/blob/master/main/drivers/is31fl3731.c | Github Open Source | Open Source | BSD-3-Clause | 2,021 | amk | nug- | C | Code | 500 | 2,241 | /**
* is31fl3731.c
* driver implementation for is31fl3731
*/
#include <stdbool.h>
#include <string.h>
#include "is31fl3731.h"
#include "rgb_common.h"
#include "i2c.h"
#include "wait.h"
#define PWM_BUFFER_SIZE 144
#define CONTROL_BUFFER_SIZE 18
#define COMMAND_REG 0xFD
#define CONFIG_REG 0
#d... | 5,052 |
https://github.com/daybaryour/my-banking-asst-repo/blob/master/client/app/services/conversation.service.ts | Github Open Source | Open Source | MIT | 2,017 | my-banking-asst-repo | daybaryour | TypeScript | Code | 213 | 785 | import { Injectable } from '@angular/core';
import { Http, Headers } from '@angular/http';
import 'rxjs/add/operator/map';
@Injectable()
export class ConversationService {
constructor(private _http:Http) {
}
startConversation() {
return this._http.get('/api/v1/conversation')
.map(res ... | 13,173 |
https://github.com/hailongz/uikit/blob/master/ts/IEventEmitter.ts | Github Open Source | Open Source | MIT | null | uikit | hailongz | TypeScript | Code | 33 | 93 |
namespace kk {
export interface IEventEmitter {
on(name: string, func: (event: IEvent) => void): void;
off(name?: string, func?: (event: IEvent) => void): void;
emit(name: string, event: IEvent): void;
has(name: string): boolean;
}
}
| 4,394 |
https://github.com/xing1357/LedControl/blob/master/blink.ino | Github Open Source | Open Source | MIT | null | LedControl | xing1357 | null | Spoken | 16 | 48 | #include <LedControl.h>
void setup() {
}
void loop() {
blinkLED(13, 500); //pin, frequency in milliseconds
}
| 20,514 |
https://github.com/yiqing95/bpmn/blob/master/test/integration/SignalThrowingTest.php | Github Open Source | Open Source | MIT | 2,018 | bpmn | yiqing95 | PHP | Code | 118 | 567 | <?php
/*
* This file is part of KoolKode BPMN.
*
* (c) Martin Schröder <m.schroeder2007@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace KoolKode\BPMN;
use KoolKode\BPMN\Delegate\DelegateExecutionInterface;
u... | 35,971 |
https://github.com/tidwall/geometry/blob/master/queue.go | Github Open Source | Open Source | MIT | 2,022 | geometry | tidwall | Go | Code | 339 | 707 | // Copyright 2021 Joshua J Baker. All rights reserved.
// Use of this source code is governed by an MIT-style
// license that can be found in the LICENSE file.
package geometry
// Priority Queue ordered by dist (smallest to largest)
type qkind int
const (
qrect qkind = 1
qseg qkind = 2
)
type qnode struct {
di... | 44,252 |
https://github.com/WeLogix/welogix-saas-web/blob/master/client/apps/home/user/activityList.jsx | Github Open Source | Open Source | Apache-2.0 | null | welogix-saas-web | WeLogix | null | Spoken | 103 | 323 | import React from 'react';
import { connect } from 'react-redux';
import { List } from 'antd';
import { intlShape, injectIntl } from 'react-intl';
import { loadRecentActivities } from 'common/reducers/operationLog';
import Activity from 'client/components/Activity';
import { formatMsg } from '../message.i18n';
@inject... | 35,977 |
https://github.com/int3dev/faustctf-2017-smartmeter/blob/master/Makefile | Github Open Source | Open Source | ISC, LicenseRef-scancode-unknown-license-reference | 2,017 | faustctf-2017-smartmeter | int3dev | Makefile | Code | 242 | 1,075 | #!/usr/bin/make -f
USER ?= smartmeter
INST_HOME ?= /srv/$(USER)
DEBS = dpkg/libbsd0_0.8.3-1_amd64.deb dpkg/libbsd-dev_0.8.3-1_amd64.deb
build: pubkey_rfc5114.pem dpkg.stamp
$(MAKE) -C src build
%.deb:
(cd dpkg; wget -q https://ctf00.informatik.uni-erlangen.de/dl/smartmeter/$@)
dpkg.stamp: $(DEBS)
sha256su... | 6,323 |
https://github.com/Captain4LK/random_code/blob/master/qoi/linux.sh | Github Open Source | Open Source | CC0-1.0 | null | random_code | Captain4LK | Shell | Code | 11 | 36 | #!/bin/sh
gcc qoi.c -o qoi -std=c99 -Wall -Wextra -pedantic -Wshadow -lm
| 18,598 |
https://github.com/MANSHALAMBA/PlacementPredictionFrontEnd/blob/master/src/views/Project/components/Overview/index.jsx | Github Open Source | Open Source | MIT | null | PlacementPredictionFrontEnd | MANSHALAMBA | null | Spoken | 153 | 558 | import React, { Component } from "react";
import Grid from "@material-ui/core/Grid";
import { withStyles } from "@material-ui/styles";
import styles from "./styles.jsx";
import { Typography } from "@material-ui/core";
import { connect } from "react-redux";
class Overview extends Component {
constructor(props) {
su... | 54,280 |
https://github.com/xatkit-bot-platform/xatkit-chat-widget/blob/master/src/components/Widget/components/Conversation/components/Messages/components/Loader/index.js | Github Open Source | Open Source | MIT | 2,021 | xatkit-chat-widget | xatkit-bot-platform | JavaScript | Code | 39 | 157 | import React from 'react';
import PropTypes from 'prop-types';
import './styles.scss';
const Loader = props =>
<div className={`xatkit-loader ${props.typing && 'active'}`}>
<div className="xatkit-loader-container">
<span className="xatkit-loader-dots"></span>
<span className="xatki... | 34,910 |
https://github.com/marpit19/dsckiit-website-2.0/blob/master/src/playground/lib/api/score/checkSubmission.ts | Github Open Source | Open Source | MIT | 2,021 | dsckiit-website-2.0 | marpit19 | TypeScript | Code | 48 | 133 | import type { ScoreDataType } from '@/types/index';
import apiCall from '../apiCall';
export default async function checkSubmission(currentQid: number, scoreId: number) {
return apiCall({ method: 'GET', url: 'scores', particularId: scoreId }).then(
(data: ScoreDataType) => {
if (data?.quizzes.some((quiz) => quiz... | 54,795 |
https://github.com/jeanlucasps395/ebook/blob/master/style/scss/mixin/_btn-scroll.scss | Github Open Source | Open Source | MIT, LicenseRef-scancode-unknown-license-reference | 2,021 | ebook | jeanlucasps395 | SCSS | Code | 42 | 168 | @mixin btn-scroll {
width: 68px;
height: 68px;
background: $color-detalhes;
color: white;
display: flex;
align-items: center;
justify-content: center;
border-radius: 50%;
cursor: pointer;
font-size: 42px;
padding-top: 10px;
transition: 0.3s all ease-in-out;
&:hover {
background: $color-detalhes-darken;
... | 45,701 |
https://github.com/ChristopherKnight/volttron-applications/blob/master/kisensum/Simulation/SimulationDriverAgent/simulation_driver/agent.py | Github Open Source | Open Source | 2,020 | volttron-applications | ChristopherKnight | Python | Code | 1,486 | 4,632 | # -*- coding: utf-8 -*- {{{
# vim: set fenc=utf-8 ft=python sw=4 ts=4 sts=4 et:
# Copyright (c) 2017, SLAC National Laboratory / Kisensum 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:
#
... | 9,856 | |
https://github.com/IhInspiration/finderway/blob/master/app/Http/Controllers/IntroduceController.php | Github Open Source | Open Source | MIT | 2,016 | finderway | IhInspiration | PHP | Code | 30 | 79 | <?php
/**
* Created by PhpStorm.
* User: wdmzj
* Date: 2016/9/16
* Time: 17:28
*/
namespace App\Http\Controllers;
class IntroduceController extends Controller
{
public function showIndex(){
return 'introduce';
}
} | 2,032 |
https://github.com/chamerling/one-more-gitlab-cli/blob/master/src/commands/issue/get.js | Github Open Source | Open Source | MIT | 2,017 | one-more-gitlab-cli | chamerling | JavaScript | Code | 185 | 528 | const { Client, getProjectConfiguration, constants, format } = require('../../lib');
const ora = require('ora');
const opn = require('opn');
module.exports = {
command: 'get',
desc: 'get issue',
builder: {
id: {
alias: 'i',
describe: 'Issue ID',
type: 'number',
demandOption: true
... | 26,617 |
https://github.com/awesomebytes/pipol_tracker/blob/master/src/pipol_tracker_lib/random/simpleRnd.h | Github Open Source | Open Source | MIT | 2,014 | pipol_tracker | awesomebytes | C | Code | 66 | 216 |
/*Antonio Larrosa Jimenez, antlarr@arrakis.es, 6-9-98*/
#ifndef simpleRnd_h
#define simpleRnd_h
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#define RAND_UNIFORME (double)rand()/(double)RAND_MAX
double random_exp(double landa);
double random_normal(double esp,double var);
//unsigned long random_poiss... | 36,137 |
https://github.com/PsychoMark/PettingZoo/blob/master/PettingZoo/UI/Tab/ITabHostProvider.cs | Github Open Source | Open Source | Unlicense | 2,022 | PettingZoo | PsychoMark | C# | Code | 19 | 54 | namespace PettingZoo.UI.Tab
{
public interface ITabHostProvider
{
public ITabHost Instance { get; }
public void SetInstance(ITabHost instance);
}
}
| 50,972 |
https://github.com/ricmrodrigues/acss/blob/master/codeeval/codeeval_52.js | Github Open Source | Open Source | MIT | 2,013 | acss | ricmrodrigues | JavaScript | Code | 106 | 405 | var number = 4561342563,
numberArray = number.toString().split('');
var NUMBER2TEXT = {
ones: ['', 'One', 'Two', 'Three', 'Four', 'Five', 'Six', 'Seven', 'Eight', 'Nine', 'Ten', 'Eleven', 'Twelve', 'Thirteen', 'Fourteen', 'Fifteen', 'Sixteen', 'Seventeen', 'Eighteen', 'Nineteen'],
tens: ['', '', 'Twenty', ... | 50,398 |
https://github.com/kofj/go.jwp/blob/master/session.go | Github Open Source | Open Source | MIT | 2,017 | go.jwp | kofj | Go | Code | 386 | 1,144 | package jwp
import (
"bytes"
"encoding/json"
"io/ioutil"
"net/http"
)
type Client struct {
Server string
SessionID string
Capabilities ApiCapabilities
}
func (s *Client) NewSession(dc *ApiDesiredCapabilities) (err error) {
var (
req *http.Request
res *http.Response
body []byte
buf = new(b... | 45,959 |
https://github.com/shangliyun/lu_xing_xiang_one_os/blob/master/thirdparty/esp32/esp-idf-port/esp-idf/components/app_trace/component.mk | Github Open Source | Open Source | Apache-2.0 | 2,022 | lu_xing_xiang_one_os | shangliyun | Makefile | Code | 38 | 172 | #
# Component Makefile
#
COMPONENT_SRCDIRS := .
COMPONENT_ADD_INCLUDEDIRS := include
COMPONENT_ADD_LDFLAGS := -lapp_trace
ifdef CONFIG_SYSVIEW_ENABLE
#COMPONENT_EXTRA_INCLUDES := freertos
COMPONENT_ADD_INCLUDEDIRS += \
sys_view/Config \
sys_view/SEGGER \
sys_view/Sample/OS
COMPONENT_SRCDIRS += \
sys_view/SEG... | 12,173 |
https://github.com/joeleyu/coc/blob/master/application/controllers/admin/denied.php | Github Open Source | Open Source | LicenseRef-scancode-unknown-license-reference, MIT | 2,016 | coc | joeleyu | PHP | Code | 31 | 100 | <?php
defined('BASEPATH') OR exit('No direct script access allowed');
class Denied extends Admin_Controller
{
var $data;
function __construct()
{
parent::__construct();
}
public function index()
{
$this->data['page_title'] = 'Access Denied';
$this->render('admin/denied... | 6,767 |
https://github.com/seifubini/ODMS_School/blob/master/app/Http/Controllers/DoctorController.php | Github Open Source | Open Source | MIT | null | ODMS_School | seifubini | PHP | Code | 99 | 432 | <?php
namespace App\Http\Controllers;
use App\Models\User;
use App\Models\Donation;
use App\Models\Post;
use App\Models\Feedback;
use App\Models\Doctor;
use App\Http\Controllers\HospitalController;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\DB;
class DoctorController extends Controller
{
public ... | 8,022 |
https://github.com/Romantic-LiXuefeng/audiolat/blob/master/scripts/find_transient.py | Github Open Source | Open Source | BSD-3-Clause | 2,021 | audiolat | Romantic-LiXuefeng | Python | Code | 377 | 1,307 | #!/usr/bin/env python3
# (c) Facebook, Inc. and its affiliates. Confidential and proprietary.
import soundfile as sf
import pandas as pd
import argparse
import numpy as np
import common as cm
def main():
parser = argparse.ArgumentParser(description='')
parser.add_argument('files', nargs='+', help='file(s) to ... | 2,349 |
https://github.com/Haufe-Lexware/octane-gocd-plugin/blob/master/src/main/java/com/haufelexware/report/nunit/v30/dom/NUnitTestCase.java | Github Open Source | Open Source | Apache-2.0 | 2,017 | octane-gocd-plugin | Haufe-Lexware | Java | Code | 28 | 121 | package com.haufelexware.report.nunit.v30.dom;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
/**
* A culture info.
*/
@XmlAccessorType(XmlAccessType.FIELD)
public class NUnitTestCase extends NUnitTest {
@XmlAttribut... | 44,911 |
https://github.com/uk-gov-mirror/hmcts.bulk-scan-processor/blob/master/src/main/java/uk/gov/hmcts/reform/bulkscanprocessor/controllers/SasTokenController.java | Github Open Source | Open Source | MIT | 2,021 | hmcts.bulk-scan-processor | uk-gov-mirror | Java | Code | 78 | 375 | package uk.gov.hmcts.reform.bulkscanprocessor.controllers;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiResponse;
import org.springframework.http.MediaType;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframew... | 44,547 |
https://github.com/Lafayette-FSAE/PacManFirmware/blob/master/PacMan_CANOpen/docs/html/navtreeindex18.js | Github Open Source | Open Source | MIT, GPL-2.0-or-later, GPL-2.0-only, Apache-2.0 | 2,022 | PacManFirmware | Lafayette-FSAE | JavaScript | Code | 255 | 14,859 | var NAVTREEINDEX18 =
{
"group___c_o___c_a_nopen.html#gga01dd35ae53fd2209ceccabdc8bf8dd06a0ab4be02961987ad817a99a4ef379517":[5,0,4,0,22],
"group___c_o___c_a_nopen.html#gga01dd35ae53fd2209ceccabdc8bf8dd06a0ab4be02961987ad817a99a4ef379517":[3,0,17,22],
"group___c_o___c_a_nopen.html#gga01dd35ae53fd2209ceccabdc8bf8dd06a0ab4... | 3,396 |
https://github.com/UWIT-IAM/uw-iam-pronouns-test-data/blob/master/dev/release.sh | Github Open Source | Open Source | MIT | null | uw-iam-pronouns-test-data | UWIT-IAM | Shell | Code | 255 | 721 | #!/usr/bin/env bash
# This script is only to be used after the data in `latest.json` has been published
# to Identity Registry.
DATADIR=pronouns_test_data/data
BUCKET_NAME=uwit-iam-identity-static
UPLOAD_DIR="${BUCKET_NAME}/pronouns/test-data"
GCLOUD_PROJECT=uwit-mci-iam
VERSION=
CMD_PREFIX=
DRY_RUN=
while (( $# ))
... | 26,929 |
https://github.com/danilovl/final-work-system/blob/master/tests/Cypress/fixtures/user/user.js | Github Open Source | Open Source | MIT | null | final-work-system | danilovl | JavaScript | Code | 82 | 297 | const successUserData = {
degreeBefore: {
id: '#user_degreeBefore',
text: 'Degree before ' + Math.random().toString(36).substring(2, 5)
},
firstName: {
id: '#user_firstName',
text: 'First name ' + Math.random().toString(36).substring(2, 6)
},
lastName: {
id: '... | 34,477 |
https://github.com/adlerjohn/ech-cpp-dev/blob/master/benchmark/signing.hpp | Github Open Source | Open Source | Apache-2.0 | 2,020 | ech-cpp-dev | adlerjohn | C++ | Code | 130 | 361 | #pragma once
// System includes
#include <thread>
#include <vector>
// Project includes
#include "bench.hpp"
#include "crypto/signature.hpp"
namespace ech::benchmark
{
class SigningData
{
private:
const crypto::SecretKey _secretKey;
const crypto::PublicKey _publicKey;
const std::string _msg;
const crypto::Signa... | 20,655 |
https://github.com/P79N6A/behaviac3.6/blob/master/integration/unity/Assets/behaviac/workspace/behaviors/node_test/repeat/repeat_ut_1.xml.meta | Github Open Source | Open Source | NCSA, BSD-3-Clause, MIT, LicenseRef-scancode-unknown-license-reference, BSD-2-Clause | 2,018 | behaviac3.6 | P79N6A | Unity3D Asset | Code | 6 | 39 | fileFormatVersion: 2
guid: d4b342d41c6eb57438ab52f244257945
TextScriptImporter:
userData:
| 9,239 |
https://github.com/galericms/galeri/blob/master/frontend/src/index.js | Github Open Source | Open Source | MIT | 2,019 | galeri | galericms | JavaScript | Code | 168 | 546 | import ReactDOM from "react-dom";
import React, { Component } from "react";
import { BrowserRouter as Router, Route, Switch } from "react-router-dom";
import "./index.scss";
import Home from "./components/home";
import About from "./components/static/About";
import Contact from "./components/static/Contact";
import He... | 7,087 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.