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/peter-janssen/finagle/blob/master/finagle-core/src/main/scala/com/twitter/finagle/pushsession/SentinelSession.scala | Github Open Source | Open Source | Apache-2.0 | 2,022 | finagle | peter-janssen | Scala | Code | 161 | 398 | package com.twitter.finagle.pushsession
import com.twitter.finagle.Status
import com.twitter.util.{Future, Time}
import com.twitter.logging.Logger
private[finagle] object SentinelSession {
private[this] val log = Logger.get
/** Build a sentinel `PushSession`
*
* The resulting `PushSession` is only a place ... | 3,923 |
https://github.com/maxpark/ultra96-v2_design_mipicamera/blob/master/src/linux/headers/linux-headers-4.19.0-xlnx-v2019.1-zynqmp-fpga/arch/arm/mach-meson/Makefile | Github Open Source | Open Source | MIT, GPL-2.0-only | 2,020 | ultra96-v2_design_mipicamera | maxpark | Makefile | Code | 6 | 32 | obj-$(CONFIG_ARCH_MESON) += meson.o
obj-$(CONFIG_SMP) += platsmp.o
| 22,915 |
https://github.com/hasancse91/weather-app-android-mvp-dagger/blob/master/app/src/main/java/com/hellohasan/weatherappmvpdagger/features/weather_info_show/presenter/WeatherInfoShowPresenterImpl.kt | Github Open Source | Open Source | MIT | 2,020 | weather-app-android-mvp-dagger | hasancse91 | Kotlin | Code | 265 | 951 | package com.hellohasan.weatherappmvpdagger.features.weather_info_show.presenter
import android.view.View
import com.hellohasan.weatherappmvpdagger.common.RequestCompleteListener
import com.hellohasan.weatherappmvpdagger.utils.kelvinToCelsius
import com.hellohasan.weatherappmvpdagger.utils.unixTimestampToDateTimeStrin... | 26,311 |
https://github.com/Hanul/SkyEngine-Canvas/blob/master/SkyEngine/BROWSER/Node/Image/Background.js | Github Open Source | Open Source | MIT | null | SkyEngine-Canvas | Hanul | JavaScript | Code | 513 | 1,648 | /*
* 배경 노드
*/
SkyEngine.Background = CLASS({
preset : () => {
return SkyEngine.FixedNode;
},
init : (inner, self, params) => {
//REQUIRED: params
//REQUIRED: params.src
//OPTIONAL: params.isNotToRepeatX
//OPTIONAL: params.isNotToRepeatY
//OPTIONAL: params.leftMargin
//OPTIONAL: params.rightMargin... | 4,392 |
https://github.com/DeepLinkCode/GithubToGitlab/blob/master/mirror.php | Github Open Source | Open Source | MIT | 2,021 | GithubToGitlab | DeepLinkCode | PHP | Code | 201 | 785 | <?php
/**
* Github to Gitlab mirror
*
* Author: Deepender Choudhary
*
* License Mit https://choosealicense.com/licenses/mit
*/
ini_set('max_execution_time', INF); //SET EXECUTION TIME HERE IT'S INIFINITE
date_default_timezone_set('Asia/Kolkata'); // SET Your Timezone
$__DIR = str_replace('\\', '/', realpath(_... | 43,852 |
https://github.com/achunpeace/free/blob/master/App/Admin/Controller/CateController.class.php | Github Open Source | Open Source | BSD-2-Clause | 2,021 | free | achunpeace | PHP | Code | 211 | 1,390 | <?php
namespace Admin\Controller;
use Think\Controller;
class CateController extends PublicController{
public function index(){
$this->view();
}
public function add(){
//从提交的post里获取菜单的id
$id = I('post.id');
//
$pid = !empty($id)?$id:0;
//查询菜单
... | 50,012 |
https://github.com/Kichiru69/Java_Course/blob/master/src/SecondCourse/Collections/Iterators.java | Github Open Source | Open Source | Apache-2.0 | null | Java_Course | Kichiru69 | Java | Code | 81 | 279 | package SecondCourse.Collections;
import java.util.*;
public class Iterators {
public static void main(String[] args) {
ArrayList<Integer> integerList = new ArrayList<>();
integerList.add(1);
integerList.add(5);
integerList.add(156);
Iterator<Integer> integerIterator = integerList.iterator();
... | 20,657 |
https://github.com/gilles-stragier/quickmon/blob/master/src/main/java/be/fgov/caamihziv/services/quickmon/domain/samplers/ssh/JschSamplerBuilder.java | Github Open Source | Open Source | Apache-2.0 | 2,017 | quickmon | gilles-stragier | Java | Code | 65 | 299 | package be.fgov.caamihziv.services.quickmon.domain.samplers.ssh;
import be.fgov.caamihziv.services.quickmon.domain.samplers.SamplerBuilder;
import be.fgov.caamihziv.services.quickmon.domain.samplers.http.HttpSampler;
import be.fgov.caamihziv.services.quickmon.domain.samplers.http.HttpSamplerBuilder;
import com.fasterx... | 30,891 |
https://github.com/rafan/vespa/blob/master/searchlib/src/vespa/searchlib/diskindex/fusion.cpp | Github Open Source | Open Source | Apache-2.0 | 2,018 | vespa | rafan | C++ | Code | 1,376 | 5,143 | // Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#include "fusion.h"
#include "fieldreader.h"
#include "dictionarywordreader.h"
#include <vespa/vespalib/util/stringfmt.h>
#include <vespa/searchlib/util/filekit.h>
#include <vespa/searchlib/util/dirtr... | 15,449 |
https://github.com/zhmz90/MINIGATK/blob/master/gatk-utils/src/main/java/org/broadinstitute/gatk/utils/sam/SimplifyingSAMFileWriter.java | Github Open Source | Open Source | MIT | 2,016 | MINIGATK | zhmz90 | Java | Code | 343 | 728 | /*
* Copyright 2012-2015 Broad Institute, Inc.
*
* 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,... | 50,313 |
https://github.com/gadsbytom/docker_sentiment_etl/blob/master/tweet_collector/get_tweets.py | Github Open Source | Open Source | MIT | 2,021 | docker_sentiment_etl | gadsbytom | Python | Code | 114 | 410 | from tweepy import OAuthHandler, Cursor, API
from tweepy.streaming import StreamListener
import logging
import time
import pymongo
import os
conn = 'mongodb'
client = pymongo.MongoClient(conn)
db = client.tweets
API_KEY = os.getenv('API_KEY')
API_SECRET = os.getenv('API_SECRET')
def authenticate():
"""function ... | 41,975 |
https://github.com/danielft11/SGNWebCore/blob/master/Domain/Models/ModeloBase.cs | Github Open Source | Open Source | MIT | null | SGNWebCore | danielft11 | C# | Code | 66 | 181 | using System;
using System.ComponentModel;
namespace Domain.Models
{
public abstract class ModeloBase
{
public int Id { get; set; }
[DisplayName("Data de Criação")]
public DateTime DataCriacao { get; set; } = DateTime.Now;
[DisplayName("Data de Alteração")]
public Dat... | 27,039 |
https://github.com/Amebus/flink/blob/master/flink-streaming-java/src/main/java/org/apache/flink/streaming/api/ocl/engine/builder/plugins/reduce/DeserializationBPlugin.java | Github Open Source | Open Source | Apache-2.0 | null | flink | Amebus | Java | Code | 35 | 161 | package org.apache.flink.streaming.api.ocl.engine.builder.plugins.reduce;
import org.apache.flink.streaming.api.ocl.engine.builder.plugins.DeserializationPlugin;
public class DeserializationBPlugin extends DeserializationPlugin
{
@Override
protected String getInputLogicalVarsKey()
{
return "input-logical-b-vars"... | 9,604 |
https://github.com/Paulo09/core-jcloudbpmn/blob/master/src/war/js/menu.js | Github Open Source | Open Source | Apache-2.0 | null | core-jcloudbpmn | Paulo09 | JavaScript | Code | 27 | 125 | <script type="text/javascript">
$(document).ready(
function()
{
$('#dock').Fisheye(
{
maxWidth: 50,
items: 'a',
itemsText: 'span',
container: '.dock-container',
itemWidth: 40,
proximity: 90,
halign : 'center'
}
)
}
);
</script> | 2,426 |
https://github.com/stefanodgr/recadm/blob/master/app/Http/Controllers/ReporteController.php | Github Open Source | Open Source | MIT | 2,021 | recadm | stefanodgr | PHP | Code | 1,458 | 6,264 | <?php
namespace App\Http\Controllers;
use Barryvdh\DomPDF\PDF;
use Illuminate\Support\Arr;
use Faker\Provider\DateTime;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\DB;
use App\Http\Controllers\Controller;
use App\Estado; //IMPORTANTE NOMBRE DE LA CLASE
use App\Person; //IMP... | 29,266 |
https://github.com/RobinK2/FRC/blob/master/FRC-FencingResultConverter/FRC-FencingResultConverter/FRCPouleRound.cs | Github Open Source | Open Source | MIT | null | FRC | RobinK2 | C# | Code | 1,443 | 4,015 | #region PDFsharp - A .NET library for processing PDF
//
// Copyright (c) 2005-2012 empira Software GmbH, Troisdorf (Germany)
//
// 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
// ... | 23,703 |
https://github.com/WallysonGalvao/meals-to-go/blob/master/src/services/index.tsx | Github Open Source | Open Source | LicenseRef-scancode-unknown-license-reference, MIT | 2,021 | meals-to-go | WallysonGalvao | TSX | Code | 56 | 194 | import React from 'react';
import { AuthenticationProvider } from './authentication/authentication.context';
import { FavouritesProvider } from './favourites/favourites.context';
import { LocationProvider } from './location/location.context';
import { RestaurantsProvider } from './restaurants/restaurants.context';
imp... | 16,677 |
https://github.com/zihui89w/leigun/blob/master/modules/softgun/devices/i2c/pca9544.h | Github Open Source | Open Source | Apache-2.0 | 2,020 | leigun | zihui89w | C | Code | 24 | 80 | /*
**********************************************************************************
*
* Interface definition for Emulation of PCA9544 4-channel I2C-Multiplexer
*
**********************************************************************************
*/
#include "i2c.h"
I2C_Slave *PCA9544_New(char *name);
typedef st... | 35,577 |
https://github.com/TimWhiting/commons/blob/master/lib/html.dart | Github Open Source | Open Source | Apache-2.0 | null | commons | TimWhiting | Dart | Code | 191 | 597 | //Copyright (C) 2015 Potix Corporation. All Rights Reserved.
//History: Sat Jun 27 23:11:53 CST 2015
// Author: tomyeh
library rikulo_html;
import "dart:html";
import "util.dart" show XmlUtil;
///An allow-everyting [NodeValidator].
class NullNodeValidator implements NodeValidator {
const NullNodeValidator();
@... | 12,553 |
https://github.com/huangfeng19820712/hfast/blob/master/core/js/editors/TouchSpinEditor.js | Github Open Source | Open Source | MIT | null | hfast | huangfeng19820712 | JavaScript | Code | 131 | 573 | /**
* @author: * @date: 2016/2/26
*/
define([
"core/js/CommonConstant",
"core/js/editors/Editor",
"bootstrap.touchspin"
], function ( CommonConstant, Editor) {
var TouchSpinEditor = Editor.extend({
xtype: $Component.TOUCHSPINEDITOR,
type: "component",
decimals: null,
... | 4,210 |
https://github.com/ronjb/float_column/blob/master/lib/src/wrappable_text.dart | Github Open Source | Open Source | MIT | 2,022 | float_column | ronjb | Dart | Code | 749 | 1,668 | // Copyright (c) 2021 Ron Booth. All rights reserved.
// Use of this source code is governed by a license that can be found in the
// LICENSE file.
import 'dart:ui' as ui show TextHeightBehavior;
import 'package:flutter/foundation.dart';
import 'package:flutter/material.dart';
import 'package:flutter/rendering.dart';... | 21,496 |
https://github.com/Solace-RND-Demo-Team1/demo-app/blob/master/Assets/Prefabs/MonsterTruckPlayerDamage.prefab | Github Open Source | Open Source | MIT | 2,018 | demo-app | Solace-RND-Demo-Team1 | Unity3D Asset | Code | 6,324 | 28,369 | %YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!1001 &100100000
Prefab:
m_ObjectHideFlags: 1
serializedVersion: 2
m_Modification:
m_TransformParent: {fileID: 0}
m_Modifications: []
m_RemovedComponents: []
m_ParentPrefab: {fileID: 0}
m_RootGameObject: {fileID: 1857226130382042}
m_IsPrefabParent: ... | 26,062 |
https://github.com/kutschke/KinKal/blob/master/Trajectory/ClosestApproachData.cc | Github Open Source | Open Source | Apache-1.1 | null | KinKal | kutschke | C++ | Code | 23 | 118 | #include "KinKal/Trajectory/ClosestApproachData.hh"
namespace KinKal {
const std::vector<std::string> ClosestApproachData::statusNames_ = { "converged", "unconverged", "oscillating", "diverged","pocafailed", "invalid"};
std::string const& ClosestApproachData::statusName(TPStat status) { return statusNames_[static_c... | 14,674 |
https://github.com/stangelandcl/dataframe/blob/master/include/dataframe/types.h | Github Open Source | Open Source | MIT | 2,022 | dataframe | stangelandcl | C | Code | 22 | 211 | #ifndef GUARD_72537C46_7CA7_44D3_B5B1_7DB27ACA5EA5
#define GUARD_72537C46_7CA7_44D3_B5B1_7DB27ACA5EA5
typedef enum
{
DataFrame_Type_DataFrame,
DataFrame_Type_ColumnInt8,
DataFrame_Type_ColumnInt16,
DataFrame_Type_ColumnInt32,
DataFrame_Type_ColumnInt64,
DataFrame_Type_ColumnUInt8,
DataFram... | 41,641 |
https://github.com/CodeMonkeySteve/dht/blob/master/server/views/application.sass | Github Open Source | Open Source | MIT | 2,020 | dht | CodeMonkeySteve | Sass | Code | 18 | 71 | body
font-family: verdana, sans-serif
.ui-button-text-only .ui-button-text
padding: 0 1em
input.ui-button
padding: 1px 1em
span.key
font-size: smaller
color: #888 | 45,529 |
https://github.com/statgen/demuxlet/blob/master/Makefile.am | Github Open Source | Open Source | Apache-2.0 | 2,021 | demuxlet | statgen | Makefile | Code | 111 | 387 | ## Additional flags to pass to aclocal when it is invoked automatically at
## make time. The ${ACLOCAL_FLAGS} variable is picked up from the environment
## to provide a way for the user to supply additional arguments.
ACLOCAL_AMFLAGS = -I m4 ${ACLOCAL_FLAGS}
AM_CPPFLAGS = -I ../htslib/ -I ../../htslib/htslib -pipe -D_... | 16,693 |
https://github.com/MxBromelia/Miscelanea/blob/master/C++/CodePit/Contest0812/probH.cpp | Github Open Source | Open Source | MIT | null | Miscelanea | MxBromelia | C++ | Code | 55 | 167 | #include <iostream>
using namespace std;
int mdc(int a, int b)
{
return (a%b ? mdc(b, a%b): b);
}
int main()
{
int i;
int nums[2], num;
ios::sync_with_stdio(false);
cin.tie(NULL);
cin >> nums[0] >> nums[1] >> num;
for(i=0; num > 0; i = (i+1)%2)
num -= mdc(num, nums[i]);
cout << ! i << '\n';
return 0;... | 5,863 |
https://github.com/Leonidas-from-XIV/dune/blob/master/test/blackbox-tests/test-cases/env/env-link_flags.t/run.t | Github Open Source | Open Source | MIT | 2,018 | dune | Leonidas-from-XIV | Perl | Code | 55 | 140 | $ cat >> dune-project <<EOF
> (lang dune 3.0)
> EOF
$ cat >> dune << EOF
> (library (name a)(modules a))
> (executable (name main) (modules main) (libraries a))
> (env (linkall-profile (link_flags (:standard -linkall))))
> EOF
$ dune exec ./main.exe
Starting main
$ dune exec ./main.exe --profil... | 38,167 |
https://github.com/rud9321/CoreAuth/blob/master/src/CoreAuth.Web/Views/Home/Authenticate.cshtml | Github Open Source | Open Source | MIT | null | CoreAuth | rud9321 | C# | Code | 2 | 15 | <h1>Authenticate page..</h1> | 2,162 |
https://github.com/SnehaSingh-8299/ONE-STATION-ALL-SOLUTION/blob/master/admin/admin.php | Github Open Source | Open Source | CC-BY-3.0 | null | ONE-STATION-ALL-SOLUTION | SnehaSingh-8299 | PHP | Code | 250 | 1,555 | <html>
<head><title>ADMIN PANEL</title></head>
</html>
<?php
session_start();
$admin=$_SESSION['sid'];
if(empty($admin))
{
header("location:aindex.php");
}
include("connect.php");
?>
<html>
<head>
<title>Dashboard</title>
<link href="boot/bootstrap.min.css" rel="stylesheet">
<script src="boot/jquery.min.js"></... | 9,612 |
https://github.com/michielkalle/platform/blob/master/src/Storefront/Framework/Cache/CacheTracer.php | Github Open Source | Open Source | MIT | null | platform | michielkalle | PHP | Code | 93 | 400 | <?php declare(strict_types=1);
namespace Shopware\Storefront\Framework\Cache;
use Shopware\Core\Framework\Adapter\Cache\AbstractCacheTracer;
use Shopware\Storefront\Theme\ThemeConfigValueAccessor;
/**
* @extends AbstractCacheTracer<mixed|null>
*/
class CacheTracer extends AbstractCacheTracer
{
/**
* @var ... | 2,137 |
https://github.com/koenw/fullstack-hello/blob/master/frontend/node_modules/.pnpm/@rsuite+icons@1.0.2_react-dom@17.0.2+react@17.0.2/node_modules/@rsuite/icons/es/utils/inBrowserEnv.js | Github Open Source | Open Source | Apache-2.0, MIT | 2,021 | fullstack-hello | koenw | JavaScript | Code | 21 | 34 | export default function () {
return typeof document !== 'undefined' && typeof window !== 'undefined' && typeof document.createElement === 'function';
} | 26,175 |
https://github.com/aduranil/django-channels-react-multiplayer/blob/master/app/models.py | Github Open Source | Open Source | MIT | 2,019 | django-channels-react-multiplayer | aduranil | Python | Code | 525 | 2,294 | # Create your models here.
import json
import random
from collections import defaultdict
from django.core.serializers.json import DjangoJSONEncoder
from django.db import models
from django.contrib.auth.models import User
class GetOrNoneManager(models.Manager):
"""Adds get_or_none method to objects"""
def ge... | 38,438 |
https://github.com/kbaseattic/ui-common/blob/master/functional-site/communities/Retina/widgets/widget.login.js | Github Open Source | Open Source | MIT | 2,016 | ui-common | kbaseattic | JavaScript | Code | 898 | 3,967 | (function () {
widget = Retina.Widget.extend({
about: {
title: "MG-RAST Login",
name: "login",
author: "Tobias Paczian",
requires: [ 'jquery.cookie.js' ]
}
});
widget.setup = function () {
return [];
};
widget.callback = null;
... | 39,159 |
https://github.com/fingoweb/react-custom-scrollbars/blob/master/.gitignore | Github Open Source | Open Source | MIT | 2,019 | react-custom-scrollbars | fingoweb | Ignore List | Code | 7 | 32 | node_modules
*.log
.DS_Store
coverage
examples/simple/static
.idea/
package-lock.json
| 42,200 |
https://github.com/Sn1KeRs385/school/blob/master/www/laravel/resources/js/components/Header/Header.vue | Github Open Source | Open Source | MIT | 2,020 | school | Sn1KeRs385 | Vue | Code | 95 | 545 | <template>
<header class="app-header navbar">
<button class="navbar-toggler mobile-sidebar-toggler d-lg-none" type="button" @click="mobileSidebarToggle">
<span class="navbar-toggler-icon"></span>
</button>
<b-link class="navbar-brand d-flex justify-content-center align-items-center" to="#">MintAdmin... | 25,954 |
https://github.com/GreenHill0/Rhino-X/blob/master/Assets/Demo/DemoScenes/GrabableDemo.unity | Github Open Source | Open Source | BSD-2-Clause | 2,019 | Rhino-X | GreenHill0 | Unity3D Asset | Code | 4,458 | 19,579 | %YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!29 &1
OcclusionCullingSettings:
m_ObjectHideFlags: 0
serializedVersion: 2
m_OcclusionBakeSettings:
smallestOccluder: 5
smallestHole: 0.25
backfaceThreshold: 100
m_SceneGUID: 00000000000000000000000000000000
m_OcclusionCullingData: {fileID: 0}
--- !u!... | 22,512 |
https://github.com/ScalablyTyped/Distribution/blob/master/m/material-ui__core/src/main/scala/typings/materialUiCore/badgeBadgeMod.scala | Github Open Source | Open Source | MIT | 2,023 | Distribution | ScalablyTyped | Scala | Code | 485 | 2,703 | package typings.materialUiCore
import org.scalablytyped.runtime.Shortcut
import typings.materialUiCore.anon.AnchorOrigin
import typings.materialUiCore.materialUiCoreStrings.bottom
import typings.materialUiCore.materialUiCoreStrings.div
import typings.materialUiCore.materialUiCoreStrings.left
import typings.materialUiC... | 30,544 |
https://github.com/ToanDao2612/Sholo.HomeAssistant/blob/master/Source/Sholo.HomeAssistant.Mqtt/Entities/Climate/IClimate.cs | Github Open Source | Open Source | MIT | 2,020 | Sholo.HomeAssistant | ToanDao2612 | C# | Code | 13 | 42 | namespace Sholo.HomeAssistant.Mqtt.Entities.Climate
{
public interface IClimate : IEntity
{
// TODO
}
}
| 37,492 |
https://github.com/spidasoftware/apply/blob/master/test/01-start-server.js | Github Open Source | Open Source | MIT | 2,018 | apply | spidasoftware | JavaScript | Code | 50 | 168 | restify = require('restify');
assert = require('assert');
mongojs = require('mongojs');
console.log("FYI: You need a mongodb server running for these tests to work.")
before(function(done) {
require('../lib/apply').Apply("test");
var collections = ["jobs", "applications"]
var db = mongojs("test", collecti... | 15,880 |
https://github.com/benmalartre/STK/blob/master/projects/Tests/FourSine.cpp | Github Open Source | Open Source | TCL, DOC | null | STK | benmalartre | C++ | Code | 1,122 | 3,391 | // foursine.cpp STK tutorial program
#include "Stk.h"
#include "BeeThree.h"
#include "Messager.h"
#include "Voicer.h"
#include "SKINImsg.h"
#include <algorithm>
#include "RtAudio.h"
using std::min;
using namespace stk;
#include "SineWave.h"
#include "Blit.h"
#include "BlitSquare.h"
#include "BlitSaw.h"
#include "Asymp... | 45,731 |
https://github.com/Asana/DefinitelyTyped/blob/master/angular-material/angular-material-0.8.3.d.ts | Github Open Source | Open Source | MIT | 2,021 | DefinitelyTyped | Asana | TypeScript | Code | 437 | 1,653 | // Type definitions for Angular Material 0.8.3+ (angular.material module)
// Project: https://github.com/angular/material
// Definitions by: Matt Traynham <https://github.com/mtraynham>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
/// <reference path="../angularjs/angular.d.ts" />
declare namespa... | 29,664 |
https://github.com/Squidex/squidex/blob/master/frontend/src/app/framework/angular/forms/error-validator.spec.ts | Github Open Source | Open Source | MIT | 2,023 | squidex | Squidex | TypeScript | Code | 418 | 1,442 | /*
* Squidex Headless CMS
*
* @license
* Copyright (c) Squidex UG (haftungsbeschränkt). All rights reserved.
*/
import { UntypedFormArray, UntypedFormControl, UntypedFormGroup } from '@angular/forms';
import { ErrorDto } from '@app/framework/internal';
import { ErrorValidator } from './error-validator';
describe... | 35,370 |
https://github.com/johnblakey/ASCII-Bug-World/blob/master/PredatorVsPrey/src/com/github/johnblakey/bug/world/Plant.java | Github Open Source | Open Source | MIT | null | ASCII-Bug-World | johnblakey | Java | Code | 149 | 390 | package com.github.johnblakey.bug.world;
import java.util.HashSet;
import java.util.Iterator;
public class Plant extends Organism {
Plant(int x, int y) {
// TODO refactor to not have to enter a dummy value of 0
super(".", x, y, 15, 100, 0);
eatBehavior = new NoEat();
}
public bool... | 27,280 |
https://github.com/soyacen/goutils/blob/master/stringutils/blank.go | Github Open Source | Open Source | MIT | 2,021 | goutils | soyacen | Go | Code | 120 | 254 | package stringutils
import "strings"
// IsBlank Checks if a string is empty ("") or whitespace only.
func IsBlank(s string) bool {
return len(strings.TrimSpace(s)) == 0
}
// IsNotBlank Checks if a string is not empty ("") and not whitespace only.
func IsNotBlank(s string) bool {
return !IsBlank(s)
}
// IsAllBlank... | 34,293 |
https://github.com/piscesdk/kglb/blob/master/kglb/control_plane/balancer.go | Github Open Source | Open Source | Apache-2.0 | 2,022 | kglb | piscesdk | Go | Code | 1,880 | 6,122 | package control_plane
import (
"context"
"fmt"
"net"
"sync"
"sync/atomic"
"time"
"github.com/gogo/protobuf/proto"
"dropbox/dlog"
"dropbox/exclog"
"dropbox/kglb/common"
"dropbox/kglb/utils/discovery"
"dropbox/kglb/utils/dns_resolver"
"dropbox/kglb/utils/fwmark"
"dropbox/kglb/utils/health_manager"
pb "d... | 48,706 |
https://github.com/BryanYen0619/MyKotlinExample/blob/master/app/src/main/java/com/example/bryanyen/kotlintest/model/PublicUtilityManagementItem.kt | Github Open Source | Open Source | MIT | 2,017 | MyKotlinExample | BryanYen0619 | Kotlin | Code | 173 | 589 | package com.example.bryanyen.kotlintest.model
import android.os.Parcel
import android.os.Parcelable
/**
* Created by bryan.yen on 2017/5/8.
*/
class PublicUtilityManagementItem : Parcelable {
var id: String? = null
var name: String? = null
var description: String? = null
var img: String? = null
... | 2,492 |
https://github.com/blackbaud/skyux/blob/master/libs/components/ag-grid/src/lib/modules/ag-grid/types/cell-editor-currency-params.ts | Github Open Source | Open Source | MIT | 2,023 | skyux | blackbaud | TypeScript | Code | 25 | 70 | import { ICellEditorParams } from 'ag-grid-community';
import { SkyAgGridCurrencyProperties } from './currency-properties';
/**
* @internal
*/
export interface SkyCellEditorCurrencyParams extends ICellEditorParams {
skyComponentProperties?: SkyAgGridCurrencyProperties;
}
| 35,579 |
https://github.com/chenyg1119/fluid-simulation/blob/master/Fluid2d/experiments/Vortex/vortex.py | Github Open Source | Open Source | MIT | null | fluid-simulation | chenyg1119 | Python | Code | 882 | 2,750 | """
Vortex dynamics
Several initial states are provided: select one with 'vortex_config'
"""
import sys
try:
from param import Param
except:
print("[ERROR] unable to import the param module")
print("[INFO] you likely forgot to set $PYTHONPATH")
print("[INFO] depending on your shell")
print("> so... | 27,309 |
https://github.com/pulumi/pulumi-alicloud/blob/master/sdk/java/src/main/java/com/pulumi/alicloud/cdn/outputs/GetRealTimeLogDeliveriesDelivery.java | Github Open Source | Open Source | Apache-2.0, MPL-2.0, BSD-3-Clause | 2,023 | pulumi-alicloud | pulumi | Java | Code | 474 | 1,190 | // *** WARNING: this file was generated by pulumi-java-gen. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
package com.pulumi.alicloud.cdn.outputs;
import com.pulumi.core.annotations.CustomType;
import java.lang.String;
import java.util.Objects;
@CustomType
public final class G... | 37,355 |
https://github.com/LightSun/android-study/blob/master/Study/app/src/main/java/study/heaven7/com/android_study/hybrid/action/ForwardHybridAction.java | Github Open Source | Open Source | Apache-2.0 | null | android-study | LightSun | Java | Code | 34 | 118 | package study.heaven7.com.android_study.hybrid.action;
import android.content.Context;
import study.heaven7.com.android_study.hybrid.HybridAction;
/**
* Created by heaven7 on 2017/8/25 0025.
*/
public class ForwardHybridAction implements HybridAction{
@Override
public void onAction(Context context, Strin... | 17,865 |
https://github.com/soemsri/HeroMining/blob/master/ApplicationCore/Rig.cs | Github Open Source | Open Source | Apache-2.0 | null | HeroMining | soemsri | C# | Code | 33 | 104 | using System;
using System.Collections.Generic;
using System.Text;
using System.Runtime.Serialization;
namespace CryptoMining.ApplicationCore
{
[Serializable]
public class Rig
{
public Rig()
{
Chipsets = new List<GpuInfo>(5);
}
public List<GpuInfo> Chipsets { ge... | 112 |
https://github.com/ilomilo98/aremi-tmy/blob/master/src/Tmy/Common.hs | Github Open Source | Open Source | Apache-2.0 | 2,017 | aremi-tmy | ilomilo98 | Haskell | Code | 818 | 1,691 | {-# LANGUAGE OverloadedStrings #-}
module Tmy.Common where
import Data.ByteString (ByteString, empty)
import Data.Csv
import Data.Maybe (fromMaybe)
import Data.Semigroup (Semigroup, Min(..), Max(..), (<>))
import Data.Text ... | 32,821 |
https://github.com/paulooosrj/-khiledin-chat/blob/master/packages/utils/__tests__/utils.test.js | Github Open Source | Open Source | MIT | null | -khiledin-chat | paulooosrj | JavaScript | Code | 235 | 842 | 'use strict';
let sessionStorage, utils, document, $;
describe('khiledin-chat-utils', () => {
beforeEach(() => {
sessionStorage = {};
utils = require('..');
});
test('funcao gen_id()', () => {
expect(typeof utils.gen_id()).toBe('number');
});
test('funcao session(string, any) nula', () => {
... | 40,198 |
https://github.com/akyei/html-sketchapp/blob/master/build/html2asketch/helpers/utils.js | Github Open Source | Open Source | MIT | 2,019 | html-sketchapp | akyei | JavaScript | Code | 646 | 1,839 | 'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.RESIZING_CONSTRAINTS = exports.calculateResizingConstraintValue = exports.makeImageFill = exports.makeColorFill = exports.makeColorFromCSS = undefined;
exports.generateID = generateID;
var _normalizeCssColor = require('normalize-cs... | 25,834 |
https://github.com/richexp/XamarinComponents/blob/master/Android/VectorCompat/source/VectorCompat/VectorDrawable.cs | Github Open Source | Open Source | MIT | 2,016 | XamarinComponents | richexp | C# | Code | 25 | 89 | using Android.Graphics;
using Android.Runtime;
namespace VectorCompat
{
abstract partial class DrawableCompatInvoker
{
[Register ("setColorFilter", "(Landroid/graphics/ColorFilter;)V", "GetSetColorFilter_Landroid_graphics_ColorFilter_Handler")]
public abstract override void SetColorFilter (ColorFilter cf);
}
}... | 27,754 |
https://github.com/kudchikarsk/SudokuSharp/blob/master/Tests/SolutionCreation/Program.cs | Github Open Source | Open Source | MIT | 2,017 | SudokuSharp | kudchikarsk | C# | Code | 257 | 578 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
/*
* Output on my laptop running 10x10_000:
Timing the creation of 100,000 boards.
10,000 boards created in 0.73 seconds for 13707 boards per second.
10,000 boards created in 0.72 seconds for 13832 boa... | 24,843 |
https://github.com/clahrc-wish/wish-core-src/blob/master/resources/sql/clahrc2_core_db.sql | Github Open Source | Open Source | LicenseRef-scancode-warranty-disclaimer, LicenseRef-scancode-unknown-license-reference, Apache-2.0 | 2,014 | wish-core-src | clahrc-wish | SQL | Code | 2,067 | 7,281 | -- MySQL dump 10.13 Distrib 5.1.41, for debian-linux-gnu (x86_64)
--
-- Host: localhost Database: clahrc2
-- ------------------------------------------------------
-- Server version 5.1.41-3ubuntu12.7
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARAC... | 49,231 |
https://github.com/taoyuan/srpit/blob/master/src/index.ts | Github Open Source | Open Source | MIT | 2,020 | srpit | taoyuan | TypeScript | Code | 27 | 61 | import * as bn from "./bignum";
import {computeVerifier, genKey} from "./srp";
export {bn, genKey, computeVerifier};
export * from "./client";
export * from "./server";
export * from "./params";
| 50,839 |
https://github.com/alex625051/-/blob/master/index-js.js | Github Open Source | Open Source | MIT | null | - | alex625051 | JavaScript | Code | 254 | 1,105 | var availableTags = [
"ActionScript",
"AppleScript",
"Asp",
"BASIC",
"C",
"C++",
"Clojure",
"COBOL",
"ColdFusion",
"Erlang",
"Fortran",
"Groovy",
"Haskell",
"Java",
"JavaScript",
"Lisp",
"Perl",
"PHP",
"Python",
"Ruby",
"Scala",
"Scheme"
];
$.widget("custom.search_terms", $.ui.autocomplete, {
_r... | 50,176 |
https://github.com/zalf-rpm/csharpfbp/blob/master/MonicaFlow/Components/capnproto/CreateModelEnv2.cs | Github Open Source | Open Source | Artistic-2.0 | null | csharpfbp | zalf-rpm | C# | Code | 145 | 479 | using System;
using System.Linq;
using Climate = Mas.Rpc.Climate;
using Soil = Mas.Rpc.Soil;
using Mgmt = Mas.Rpc.Management;
using Model = Mas.Rpc.Model;
using ST = Mas.Rpc.Common.StructuredText;
using Capnp.Rpc;
using FBPLib;
using System.Collections.Generic;
namespace Components
{
[InPort("IN", description = "... | 4,557 |
https://github.com/infinitecoder1729/maths-with-python/blob/master/Max and Min Number.py | Github Open Source | Open Source | MIT | 2,021 | maths-with-python | infinitecoder1729 | Python | Code | 81 | 180 | '''Finding the Smallest and the Largest Number out of the Numbers given by the user (Doesn't Use inbuilt functions'''
n=int(input("Enter number of Numbers you want to compare : "))
if n > 1 :
p=eval(input("Enter a Number : "))
mn,mx=p,p
for a in range (1,n):
p=eval(input("Enter a Number : "))
... | 20,989 |
https://github.com/PickavetAndreas/Grafana-PRTG-app/blob/master/Grafana-PRTG-app/src/datasource/ConfigEditor.tsx | Github Open Source | Open Source | Apache-2.0 | 2,020 | Grafana-PRTG-app | PickavetAndreas | TSX | Code | 139 | 537 | import React from 'react';
import { LegacyForms } from '@grafana/ui';
import { DataSourcePluginOptionsEditorProps } from '@grafana/data';
import { PrtgDataSourceOptions } from './types';
const { FormField } = LegacyForms;
interface OptionProps extends DataSourcePluginOptionsEditorProps<PrtgDataSourceOptions> {}
expo... | 26,455 |
https://github.com/AbeJLazaro/SeguimientoPacientes/blob/master/Disenio/Proyecto.mm | Github Open Source | Open Source | MIT | 2,021 | SeguimientoPacientes | AbeJLazaro | Objective-C++ | Code | 178 | 938 | <map version="1.1.0">
<!-- To view this file, download free mind mapping software FreeMind from http://freemind.sourceforge.net -->
<node CREATED="1576705902201" ID="ID_999461569" MODIFIED="1576705955818" TEXT="Proyecto">
<edge COLOR="#8300ff" WIDTH="2"/>
<node CREATED="1576705969637" ID="ID_1374736834" MODIFIED="15767... | 35,103 |
https://github.com/jejacks0n/teaspoon/blob/master/spec/features/hooks_spec.rb | Github Open Source | Open Source | MIT, BSD-3-Clause | 2,023 | teaspoon | jejacks0n | Ruby | Code | 76 | 264 | require "spec_helper"
describe "Calling hooks" do
let(:app) { Dummy::Application }
before do
@expected = nil
set_teaspoon_suite do |c|
c.javascripts = [""]
c.hook(:before) { @expected = "before" }
c.hook(:after) { @expected = "after" }
c.hook(:with_params) { |params| @expected = "w... | 1,311 |
https://github.com/lechium/tvOS135Headers/blob/master/usr/libexec/locationd/TRANSITPbTransitMacTile.h | Github Open Source | Open Source | MIT | 2,020 | tvOS135Headers | lechium | C | Code | 219 | 840 | //
// Generated by classdumpios 1.0.1 (64 bit) (iOS port by DreamDevLost)(Debug version compiled Jun 10 2020 10:03:13).
//
// Copyright (C) 1997-2019 Steve Nygard.
//
#import <ProtocolBuffer/PBCodable.h>
#import "NSCopying-Protocol.h"
@class NSMutableArray;
@interface TRANSITPbTransitMacTile : PBCodable <NSCop... | 33,269 |
https://github.com/rainleo/react-node-cms/blob/master/client/src/container/admin/user/UserIndex.tsx | Github Open Source | Open Source | MIT | 2,016 | react-node-cms | rainleo | TSX | Code | 29 | 75 | /**
* Created by XD on 2016/9/12.
*/
import * as React from 'react';
import {connect} from 'react-redux';
import RegistUser from "./RegistUser";
export default connect(
(state)=>{
return{};
}
)(RegistUser); | 45,377 |
https://github.com/BGTCapital/hummingbot/blob/master/hummingbot/connector/exchange/digifinex/digifinex_global.py | Github Open Source | Open Source | Apache-2.0 | 2,022 | hummingbot | BGTCapital | Python | Code | 51 | 216 | import aiohttp
from hummingbot.connector.exchange.digifinex.digifinex_auth import DigifinexAuth
from hummingbot.connector.exchange.digifinex.digifinex_rest_api import DigifinexRestApi
class DigifinexGlobal:
def __init__(self, key: str, secret: str):
self.auth = DigifinexAuth(key, secret)
self.res... | 14,741 |
https://github.com/lhm7877/aws-sdk-java/blob/master/aws-java-sdk-appflow/src/main/java/com/amazonaws/services/appflow/model/CreateConnectorProfileRequest.java | Github Open Source | Open Source | Apache-2.0 | 2,020 | aws-sdk-java | lhm7877 | Java | Code | 1,835 | 4,070 | /*
* Copyright 2015-2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
* the License. A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "licen... | 4,059 |
https://github.com/androidx/androidx/blob/master/camera/camera-camera2/src/main/java/androidx/camera/camera2/internal/compat/workaround/PreviewPixelHDRnet.java | Github Open Source | Open Source | Apache-2.0 | 2,023 | androidx | androidx | Java | Code | 237 | 732 | /*
* Copyright 2020 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | 45,795 |
https://github.com/dance-show/fe/blob/master/src/pages/monitor/object/metricViews/graphStandardOptions/Hexbin.tsx | Github Open Source | Open Source | Apache-2.0 | 2,023 | fe | dance-show | TSX | Code | 393 | 1,232 | /*
* Copyright 2022 Nightingale Team
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to... | 49,374 |
https://github.com/artnum/kairos/blob/master/widgets/countList.js | Github Open Source | Open Source | BSD-2-Clause | null | kairos | artnum | JavaScript | Code | 1,256 | 4,474 | /* eslint-env amd, browser */
/* global Artnum, Address, DoWait, sjcl */
/* eslint no-template-curly-in-string: "off" */
define([
'dojo/_base/declare',
'dijit/_WidgetBase',
'dojo/Evented',
'artnum/Doc',
'location/count'
], function (
djDeclare,
_dtWidgetBase,
djEvented,
Doc,
Count
) {
return ... | 12,123 |
https://github.com/Imohamedgabr/laravel-advanced-cart/blob/master/ext/ai-admin-jqadm/admin/jqadm/templates/common/partials/columns-default.php | Github Open Source | Open Source | MIT | 2,019 | laravel-advanced-cart | Imohamedgabr | PHP | Code | 198 | 519 | <?php
/**
* @license LGPLv3, http://opensource.org/licenses/LGPL-3.0
* @copyright Aimeos (aimeos.org), 2017
*/
/**
* Renders the drop down for the available columns in the list views
*
* Available data:
* - data: Associative list of keys (e.g. "product.id") and translated names (e.g. "ID")
* - fields: List of... | 7,225 |
https://github.com/SMG233/Undertale-Battle-Engine/blob/master/mod/dummy/Dummy/Draw.lua | Github Open Source | Open Source | MIT | 2,020 | Undertale-Battle-Engine | SMG233 | Lua | Code | 28 | 182 | return function (self)
love.graphics.setColor(1, 1, 1, 1-self.Alpha)
love.graphics.push()
love.graphics.translate(self.x, self.y)
love.graphics.rotate(love.timer.getTime())
love.graphics.draw(self.Image, -self.Width/2, -self.Height/2)
love.graphics.pop()
love.graphics.setColor(.3, .3, .3, self.Alpha)
lo... | 48,118 |
https://github.com/MigueAJM/PruebaSymfony3/blob/master/src/ProductBundle/Resources/views/Default/create.html.twig | Github Open Source | Open Source | MIT | null | PruebaSymfony3 | MigueAJM | Twig | Code | 76 | 270 |
{% extends '::base.html.twig' %}
{% block title %}
Products || Home
{% endblock %}
{% block stitle %}
<h1 class="container">Agregar Productos</h1>
{% endblock %}
{% block body %}
<form class="container">
<div class="mb-3">
<label for="key" class="form-label">Clave Producto</label>
<input type="numeric" c... | 27,912 |
https://github.com/golshidb93/sif-innsyn-api/blob/master/src/main/kotlin/no/nav/sifinnsynapi/dokument/DokumentService.kt | Github Open Source | Open Source | MIT | 2,021 | sif-innsyn-api | golshidb93 | Kotlin | Code | 29 | 132 | package no.nav.sifinnsynapi.dokument
import no.nav.sifinnsynapi.http.DocumentNotFoundException
import org.springframework.stereotype.Service
import java.util.*
@Service
class DokumentService(
private val repo: DokumentRepository
) {
fun hentDokument(søknadId: UUID): DokumentDAO? {
return repo.fin... | 46,760 |
https://github.com/morpheyesh/happy-mood-score/blob/master/spec/models/company_spec.rb | Github Open Source | Open Source | MIT | 2,021 | happy-mood-score | morpheyesh | Ruby | Code | 401 | 1,082 | # frozen_string_literal: true
require 'rails_helper'
RSpec.describe Company, type: :model do
subject { build(:company) }
it { is_expected.to belong_to :language }
it { is_expected.to have_many :rewards }
it { is_expected.to have_many :events }
it { is_expected.to have_many :employees }
it { is_expected.t... | 26,913 |
https://github.com/casionone/linkis-0225/blob/master/linkis-engineconn-plugins/linkis-engineconn-plugin-framework/linkis-engineconn-plugin-loader/src/main/java/org/apache/linkis/manager/engineplugin/manager/loaders/EngineConnPluginsLoader.java | Github Open Source | Open Source | ECL-2.0, Apache-2.0 | 2,022 | linkis-0225 | casionone | Java | Code | 216 | 418 | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may ... | 43,591 |
https://github.com/MTrop/WadMerge/blob/master/src/main/java/net/mtrop/doom/tools/gui/DoomToolsGUIMain.java | Github Open Source | Open Source | MIT | null | WadMerge | MTrop | Java | Code | 751 | 2,893 | package net.mtrop.doom.tools.gui;
import java.awt.Rectangle;
import java.awt.event.WindowAdapter;
import java.awt.event.WindowEvent;
import java.io.File;
import java.io.IOException;
import java.net.InetAddress;
import java.net.ServerSocket;
import java.util.Map;
import javax.swing.JFrame;
import net.mtrop.doom.tools... | 38,666 |
https://github.com/Ashok-matrix/talent4startups/blob/master/tests/functional/Registration/StartUpSignUpCept.php | Github Open Source | Open Source | MIT | 2,014 | talent4startups | Ashok-matrix | PHP | Code | 116 | 425 | <?php
$I = new FunctionalTester($scenario);
$I->am('a guest');
$I->wantTo('sign up for a Talent4Startups account');
$I->amOnPage('/');
$I->click('Sign Up');
$I->click('#startup');
$I->click('#agree');
$I->click('Or sign up with email instead');
$I->sendAjaxPostRequest('/register',array('user_type'=>'S')); // send user... | 50,721 |
https://github.com/electric-eloquence/fepper-drupal/blob/master/backend/drupal/core/modules/file/tests/src/Kernel/MoveTest.php | Github Open Source | Open Source | GPL-2.0-only, LicenseRef-scancode-unknown-license-reference, LicenseRef-scancode-other-permissive, LicenseRef-scancode-other-copyleft, GPL-2.0-or-later, MIT | 2,023 | fepper-drupal | electric-eloquence | PHP | Code | 850 | 2,583 | <?php
namespace Drupal\Tests\file\Kernel;
use Drupal\Component\Render\FormattableMarkup;
use Drupal\Core\Entity\EntityStorageException;
use Drupal\Core\Entity\EntityTypeManager;
use Drupal\Core\File\Exception\FileExistsException;
use Drupal\Core\File\Exception\InvalidStreamWrapperException;
use Drupal\Core\File\FileS... | 32,664 |
https://github.com/HengeSense/buddycloud-android/blob/master/src/com/buddycloud/utils/TextUtils.java | Github Open Source | Open Source | Apache-2.0 | 2,015 | buddycloud-android | HengeSense | Java | Code | 93 | 586 | package com.buddycloud.utils;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import android.text.Html;
import android.text.Spanned;
public class TextUtils {
private static final String LINKS_REGEX = new StringBuilder()
.append("(?:")
.append("\\b((?:[a-z][\\w-]+:(?:/{1,3}|[a-z0-9%])|www\\d{0... | 32,750 |
https://github.com/ansonauhk/keda/blob/master/pkg/scalers/aws_sqs_queue_test.go | Github Open Source | Open Source | Apache-2.0 | null | keda | ansonauhk | Go | Code | 379 | 1,867 | package scalers
import (
"testing"
)
const (
testAWSSQSRoleArn = "none"
testAWSSQSAccessKeyID = "none"
testAWSSQSSecretAccessKey = "none"
testAWSSQSProperQueueURL = "https://sqs.eu-west-1.amazonaws.com/account_id/DeleteArtifactQ"
testAWSSQSImproperQueueURL1 = "https://sqs.eu-west-1.amazonaws.com... | 20,513 |
https://github.com/dagood/roslyn/blob/master/src/Compilers/Core/RebuildTest/OptionRoundTripTests.cs | Github Open Source | Open Source | MIT | 2,021 | roslyn | dagood | C# | Code | 427 | 1,609 | // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
using System;
using System.Collections.Immutable;
using System.IO;
using System.Linq;
using System.Reflection;
usin... | 13,711 |
https://github.com/wtgodbe/wcf/blob/master/src/System.Private.ServiceModel/src/System/ServiceModel/OperationContractAttribute.cs | Github Open Source | Open Source | MIT | null | wcf | wtgodbe | C# | Code | 343 | 982 | // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
using System.Net.Security;
using System.Reflection;
using System.ServiceModel.Description;
using System.ServiceMode... | 29,959 |
https://github.com/yarnaimo/reinainfo-next/blob/master/src/utils/html.tsx | Github Open Source | Open Source | MIT | 2,021 | reinainfo-next | yarnaimo | TypeScript | Code | 28 | 63 | import React from 'react'
export const bool = (value: any) => (value ? <b>{'*'}</b> : '')
export const textarea = {
textarea: true,
outlined: true,
rows: 2,
}
| 20,697 |
https://github.com/ahansb/homework/blob/master/Text-Files/P2-Concatenate-Text-Files/ConcatenateTextFiles.cs | Github Open Source | Open Source | MIT | null | homework | ahansb | C# | Code | 89 | 282 | //Problem 2. Concatenate text files
//Write a program that concatenates two text files into another text file.
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.IO;
class ConcatenateTextFiles
{
static void Main()
{
... | 34,968 |
https://github.com/SRI-CSL/Bliss/blob/master/ntt_variants/ntt_red256.c | Github Open Source | Open Source | MIT | 2,022 | Bliss | SRI-CSL | C | Code | 527 | 1,920 | /*
* NTT for Q=12289, n=256, using the Longa/Naehrig reduction method.
*/
#include "ntt_red256.h"
/*
* Input: two arrays a and b in standard order
*
* Result:
* - the product is stored in array c, in standard order.
* - arrays a and b are modified
*
* The input arrays must contain elements in the range [0, ... | 22,973 |
https://github.com/manix84/utils/blob/master/src/string/upperCaseFirst.js | Github Open Source | Open Source | MIT | 2,012 | utils | manix84 | JavaScript | Code | 51 | 133 | /**
* @author Rob Taylor [manix84@gmail.com]
*/
define('string/upperCaseFirst', function () {
/**
* Capitalise the first letter of the string.
* @exports string/upperCaseFirst
*
* @param {String} string - String to be capitalised
* @returns {String}
*/
var upperCaseFirst = funct... | 17,324 |
https://github.com/ElenaTrehub/well-fed-home/blob/master/database/migrations/2020_02_21_174926_create_ingredients.php | Github Open Source | Open Source | MIT | 2,020 | well-fed-home | ElenaTrehub | PHP | Code | 58 | 260 | <?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateIngredients extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('ingredients', fu... | 8,762 |
https://github.com/venbacodes/AuctionSystem/blob/master/Tests/Application.UnitTests/Items/Queries/GetItemDetailsQueryHandlerTests.cs | Github Open Source | Open Source | MIT | 2,022 | AuctionSystem | venbacodes | C# | Code | 102 | 514 | namespace Application.UnitTests.Items.Queries
{
using System;
using System.Threading;
using System.Threading.Tasks;
using Application.Items.Queries.Details;
using AutoMapper;
using Common.Exceptions;
using Common.Interfaces;
using Common.Models;
using FluentAssertions;
using Set... | 42,628 |
https://github.com/mekanism/Mekanism/blob/master/src/main/java/mekanism/common/content/miner/MinerTagFilter.java | Github Open Source | Open Source | MIT | 2,023 | Mekanism | mekanism | Java | Code | 199 | 772 | package mekanism.common.content.miner;
import java.util.Objects;
import mekanism.api.NBTConstants;
import mekanism.common.base.TagCache;
import mekanism.common.content.filter.FilterType;
import mekanism.common.content.filter.ITagFilter;
import mekanism.common.lib.WildcardMatcher;
import mekanism.common.network.BasePac... | 47,957 |
https://github.com/buession/buession-springboot/blob/master/buession-springboot-captcha/src/main/java/com/buession/springboot/captcha/autoconfigure/ImageCaptchaFactoryBuilder.java | Github Open Source | Open Source | Apache-2.0 | 2,020 | buession-springboot | buession | Java | Code | 402 | 1,405 | /*
* Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements.
* See the NOTICE file distributed with this work for additional information regarding copyright ownership.
* The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not
* ... | 29,194 |
https://github.com/SammyBloom/Nekome/blob/master/features/login/src/main/java/com/chesire/nekome/app/login/details/DetailsFragment.kt | Github Open Source | Open Source | Apache-2.0 | 2,022 | Nekome | SammyBloom | Kotlin | Code | 257 | 1,173 | package com.chesire.nekome.app.login.details
import android.os.Bundle
import android.view.View
import android.view.inputmethod.EditorInfo
import androidx.annotation.StringRes
import androidx.core.widget.addTextChangedListener
import androidx.fragment.app.Fragment
import androidx.fragment.app.viewModels
import androidx... | 32,949 |
https://github.com/throneteki/throneteki/blob/master/test/server/cards/23-AHaH/AnyaWaynwood.spec.js | Github Open Source | Open Source | MIT | 2,023 | throneteki | throneteki | JavaScript | Code | 232 | 1,484 | describe('Anya Waynwood', function() {
integration(function() {
beforeEach(function() {
const deck = this.buildDeck('greyjoy', [
'Time of Plenty',
'Anya Waynwood', 'Lannisport Merchant', 'Lannisport Merchant', 'Lannisport Merchant', 'The Kingsroad'
]);... | 9,912 |
https://github.com/RichardMShaw/Unity-Experimental-Project/blob/master/Assets/__Scripts/Targets/Subclasses/AllTargetAlliesTarget.cs | Github Open Source | Open Source | MIT | null | Unity-Experimental-Project | RichardMShaw | C# | Code | 29 | 93 | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
[CreateAssetMenu(menuName = "Project/Targets/All Target Allies")]
public class AllTargetAlliesTarget : Target
{
public override List<BattleCharacter> GetTargets(BattleCharacter caster, BattleCharacter target)
{
return target.allies;... | 9,822 |
https://github.com/PeterShevchuk/shop-react/blob/master/src/Components/Success/Success.js | Github Open Source | Open Source | MIT | null | shop-react | PeterShevchuk | JavaScript | Code | 89 | 252 | import React from "react";
import { useDispatch, useSelector } from "react-redux";
// Material UI
import Snackbar from "@material-ui/core/Snackbar";
import MuiAlert from "@material-ui/lab/Alert";
import { setSuccess } from "../../Redux/Slice";
function Alert(props) {
return <MuiAlert elevation={6} variant="filled" ... | 40,055 |
https://github.com/DigiArea/closurefx-builder/blob/master/src/com/digiarea/closure/model/controller/JSSourceSectionController.java | Github Open Source | Open Source | Apache-2.0 | 2,015 | closurefx-builder | DigiArea | Java | Code | 452 | 2,681 | package com.digiarea.closure.model.controller;
import java.io.File;
import java.net.URL;
import java.util.ResourceBundle;
import javafx.collections.ObservableList;
import javafx.event.ActionEvent;
import javafx.event.EventHandler;
import javafx.fxml.FXML;
import javafx.fxml.Initializable;
import javafx.geometry.Inset... | 19,743 |
https://github.com/ottomossei/my-dart-lang-learning/blob/master/dart/class/basic.dart | Github Open Source | Open Source | MIT | null | my-dart-lang-learning | ottomossei | Dart | Code | 212 | 557 | // class
class Car {
// propaty
// late needs from Car.empty()
late String name;
late String year;
late String color;
// constructor
// Automatic field initialization
Car(this.name, this.year, this.color) {
print("Generate instance !");
// Assign parameters to property.
// The following can... | 29,465 |
https://github.com/czllfy/configcenter/blob/master/configcenter-biz/src/main/java/org/antframework/configcenter/biz/service/ComputeBranchMergenceService.java | Github Open Source | Open Source | Apache-2.0 | 2,021 | configcenter | czllfy | Java | Code | 263 | 1,406 | /*
* 作者:钟勋 (e-mail:zhongxunking@163.com)
*/
/*
* 修订记录:
* @author 钟勋 2019-09-05 23:36 创建
*/
package org.antframework.configcenter.biz.service;
import lombok.AllArgsConstructor;
import org.antframework.common.util.facade.BizException;
import org.antframework.common.util.facade.CommonResultCode;
import org.antfram... | 33,785 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.