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/chromium/chromium/blob/master/remoting/client/feedback_data.cc | Github Open Source | Open Source | BSD-3-Clause | 2,023 | chromium | chromium | C++ | Code | 211 | 1,076 | // Copyright 2018 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "remoting/client/feedback_data.h"
#include "base/values.h"
#include "remoting/base/name_value_map.h"
namespace remoting {
namespace {
const NameMapElement<Feedback... | 3,693 |
https://github.com/hiremani/gearpump/blob/master/version.sbt | Github Open Source | Open Source | Apache-2.0 | 2,015 | gearpump | hiremani | Scala | Code | 5 | 21 | version in ThisBuild := "0.3.0-rc2-SNAPSHOT" | 23,533 |
https://github.com/AdrianMarceau/mmrpg-prototype/blob/master/api/v2/scripts/robots/tokens.php | Github Open Source | Open Source | MIT | 2,023 | mmrpg-prototype | AdrianMarceau | PHP | Code | 107 | 342 | <?php
// Define the for the API cache file, then include API functionality
$api_request_path = 'robots';
require(MMRPG_CONFIG_API_ROOTDIR.'api-common.php');
// Include the database file for robots and then parse necessary data
$mmrpg_database_robots_filter = "AND robot_flag_published = 1 ";
if (!$api_include_hidden){... | 1,887 |
https://github.com/abhatia25/Computer-Programming-2/blob/master/IO_fileInfo_Ex/IO_fileInfo_Ex/Form1.Designer.cs | Github Open Source | Open Source | MIT | 2,019 | Computer-Programming-2 | abhatia25 | C# | Code | 192 | 645 | namespace IO_fileInfo_Ex
{
partial class Form1
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
/// <par... | 18,861 |
https://github.com/kirisaki/prototype-B/blob/master/prototype-B.cabal | Github Open Source | Open Source | BSD-3-Clause | 2,019 | prototype-B | kirisaki | null | Spoken | 110 | 434 | -- Initial prototype-B.cabal generated by cabal init. For further
-- documentation, see http://haskell.org/cabal/users-guide/
name: prototype-B
version: 0.1.0.0
-- synopsis:
-- description:
license: BSD3
license-file: LICENSE
author: Akihito KIRISAKI
maintain... | 2,854 |
https://github.com/mrwacky42/emacs.d/blob/master/lisp/init-gpg.el | Github Open Source | Open Source | BSD-3-Clause | 2,017 | emacs.d | mrwacky42 | null | Spoken | 25 | 122 | (defun wg/kludge-gpg-agent ()
"Pinentry where I am.
From https://www.emacswiki.org/emacs/EasyPG#toc5"
(if (display-graphic-p)
(setenv "DISPLAY" (terminal-name))
(setenv "GPG_TTY" (terminal-name))
(setenv "DISPLAY")))
(provide 'init-gpg)
;;; init-gpg.el ends here
| 10,343 |
https://github.com/ActiveLearningStudio/h5p-hub-client/blob/master/src/entries/dev.js | Github Open Source | Open Source | MIT | 2,021 | h5p-hub-client | ActiveLearningStudio | JavaScript | Code | 2 | 19 | require('./dist');
require('../../test/mock/api/api-get'); | 46,836 |
https://github.com/brktopcu/education-platform-client/blob/master/src/main/java/com/education/client/data/CourseCategory.java | Github Open Source | Open Source | Unlicense | 2,020 | education-platform-client | brktopcu | Java | Code | 91 | 367 | package com.education.client.data;
import com.fasterxml.jackson.annotation.*;
import java.util.HashMap;
import java.util.Map;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonPropertyOrder({
"courseCategoryId",
"courseCategoryName"
})
public class CourseCategory {
@JsonProperty("courseCategoryId")... | 6,376 |
https://github.com/microsoft/Oryx/blob/master/src/BuildServer/Services/IBuildRunner.cs | Github Open Source | Open Source | MIT | 2,023 | Oryx | microsoft | C# | Code | 47 | 144 | // --------------------------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT license.
// --------------------------------------------------------------------------------------------
using System.Threading.Tasks;
... | 9,712 |
https://github.com/presjednik/selenate/blob/master/code/Server/src/main/scala/net/selenate/server/sessions/actions/NavigateBackAction.scala | Github Open Source | Open Source | BSD-3-Clause | null | selenate | presjednik | Scala | Code | 40 | 149 | package net.selenate
package server
package sessions
package actions
import common.comms.res._
import common.comms.req._
import org.openqa.selenium.firefox.FirefoxDriver
import scala.collection.JavaConversions._
class NavigateBackAction(val d: FirefoxDriver) extends IAction[SeReqNavigateBack, SeResNavigateBack] {
p... | 43,169 |
https://github.com/mohammed-softordi/node-ngdoc-md/blob/master/doc/mockups/angular-module-mockup/angular-module-mockup.js | Github Open Source | Open Source | MIT | 2,017 | node-ngdoc-md | mohammed-softordi | JavaScript | Code | 22 | 50 | (function (ng) {
/**
* @ngdoc module
* @module Foo
* @name Foo
* @description This is example module foo.
*/
})(angular); | 21,951 |
https://github.com/MalcolmScoffable/openapi-generator/blob/master/samples/server/petstore/java-vertx-web/rx/src/main/java/org/openapitools/vertxweb/server/api/StoreApiHandler.java | Github Open Source | Open Source | Apache-2.0 | 2,022 | openapi-generator | MalcolmScoffable | Java | Code | 279 | 1,235 | package org.openapitools.vertxweb.server.api;
import org.openapitools.vertxweb.server.model.Order;
import org.openapitools.vertxweb.server.ParameterCast;
import org.openapitools.vertxweb.server.ApiException;
import com.fasterxml.jackson.core.type.TypeReference;
import io.vertx.core.json.Json;
import io.vertx.core.Ha... | 8,295 |
https://github.com/lymeo/apollon/blob/master/src/common/resolvers.js | Github Open Source | Open Source | Apache-2.0 | 2,021 | apollon | lymeo | JavaScript | Code | 212 | 564 | import path from "path";
import helperBootstrap from "../common/helpers.js";
import logger from "../common/logger.js";
import { pathToFileURL } from "url";
export default async function() {
/*
### Resolvers
*/
logger.debug("-- Created the schema for the resolvers from the types file");
let resolvers = { Q... | 30,878 |
https://github.com/imzhhl/source-seeking-multi-robot-team-simulator/blob/master/SceneConstruction/MiniMap.py | Github Open Source | Open Source | Apache-2.0 | 2,021 | source-seeking-multi-robot-team-simulator | imzhhl | Python | Code | 321 | 1,231 | import pygame
from Config import Config
class MiniMap:
def __init__(self, win_surface, dividing_line_color, scene_window_size, scene_size, cell_size):
self.dividing_line_color = dividing_line_color # dividing_line color between mini-map and active window
self.scene_window_size = scene_window_siz... | 28,684 |
https://github.com/openworm/org.geppetto.recording/blob/master/org/geppetto/recording/creators/tests/wormsim_recordings/transformations/matrix_anchored_31S_01812.mat | Github Open Source | Open Source | MIT | 2,015 | org.geppetto.recording | openworm | Unity3D Asset | Code | 496 | 2,122 | 1 0 0 0
0 1 0 0
0 0 1 0
4.31372 42.0755 1.77601 1
0.907492 -0.444739 0.0295969 0
0.340842 0.689006 -0.0974409 0
0.028963 0.124362 0.980677 0
-55.1833 127.125 18.406 1
1.00675 0.0751969 -0.0549602 0
-0.0593463 0.771959 -0.0308878 0
0.0506266 0.0433724 0.986706 0
20.8483 83.8138 9.30716 1
1.0024 0.347433 -... | 6,812 |
https://github.com/talkowski-lab/rCNV2/blob/master/data_curation/gene/parse_cosmic_genes.R | Github Open Source | Open Source | LicenseRef-scancode-unknown-license-reference, MIT | 2,023 | rCNV2 | talkowski-lab | R | Code | 139 | 531 | #!/usr/bin/env Rscript
######################
# rCNV Project #
######################
# Copyright (c) 2020 Ryan L. Collins and the Talkowski Laboratory
# Distributed under terms of the MIT License (see LICENSE)
# Contact: Ryan L. Collins <rlcollins@g.harvard.edu>
# Parse COSMIC gene census list
# Set paramete... | 15,362 |
https://github.com/susuman/susuman.github.io/blob/master/speech.js | Github Open Source | Open Source | MIT | 2,019 | susuman.github.io | susuman | JavaScript | Code | 41 | 167 | document.getElementById("id_logic_version").innerHTML = "Logic version: 2018.12.11.3";
var speech = new webkitSpeechRecognition();
speech.onresult = on_result;
speech.onspeechend = on_speech_end;
speech.lang = "en-US";
function speak()
{
speech.start();
}
function on_speech_end()
{
speech.stop();
}
function on_... | 13,974 |
https://github.com/Kasugalex/ScriptAndShaders/blob/master/Assets/Shader/ComputeShader/3.CubeExplode/ExplosionGPUParticle/Scripts/ExplosionManager.cs | Github Open Source | Open Source | MIT | 2,019 | ScriptAndShaders | Kasugalex | C# | Code | 106 | 334 | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class ExplosionManager : MonoBehaviour
{
public static ExplosionManager Instance;
public bool explode = false;
public float ShootSpeed = 10;
public float maxZ = -4.35f;
private Transform bullet;
private bool ... | 37,998 |
https://github.com/lavon321/Kunlun-M/blob/master/web/index/migrations/0003_rules_level.py | Github Open Source | Open Source | MIT | 2,022 | Kunlun-M | lavon321 | Python | Code | 30 | 117 | # Generated by Django 3.0.7 on 2021-07-08 07:45
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('index', '0002_auto_20210701_1655'),
]
operations = [
migrations.AddField(
model_name='rules',
name='level',
... | 6,208 |
https://github.com/achristensen6/tvOS10Headers/blob/master/Applications/Podcasts/MTCollectionViewCell.h | Github Open Source | Open Source | MIT | 2,017 | tvOS10Headers | achristensen6 | Objective-C | Code | 364 | 1,637 | //
// Generated by class-dump 3.5 (64 bit).
//
// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by Steve Nygard.
//
#import "UICollectionViewCell.h"
#import "UIScrollViewDelegate.h"
@class MTActionButtonContainerView, MTCollectionView, NSString, UIButton, UIImageView, UIScrollView, UITapGesture... | 15,109 |
https://github.com/a-menshchikov/phan/blob/master/tests/rasmus_files/src/0009_method_call.php | Github Open Source | Open Source | BSD-3-Clause, 0BSD, Apache-2.0, MIT | 2,022 | phan | a-menshchikov | PHP | Code | 16 | 46 | <?php
class A {
function test($arg1, $arg2, $arg3=0) { }
}
$a = new A;
$a->test(1);
| 51,825 |
https://github.com/jgfoster/pharo/blob/master/src/Fuel-Tests-Core/FLSingletonTest.class.st | Github Open Source | Open Source | MIT | 2,019 | pharo | jgfoster | null | Spoken | 231 | 579 | "
SUnit tests for fuel serialization of singletons
"
Class {
#name : #FLSingletonTest,
#superclass : #FLSerializationTest,
#category : #'Fuel-Tests-Core-Base'
}
{ #category : #running }
FLSingletonTest >> setUp [
super setUp.
FLSingletonMock reset
]
{ #category : #tests }
FLSingletonTest >> testSingletonMaterial... | 44,492 |
https://github.com/RecherJ/SwiftUIViewsMasteryDemo/blob/master/SwiftUIViewsMasteryDemo/SwiftUIViewsMasteryDemo/Hidden/HiddenIntroduction.swift | Github Open Source | Open Source | MIT | 2,021 | SwiftUIViewsMasteryDemo | RecherJ | Swift | Code | 207 | 504 | //
// HiddenIntroduction.swift
// SwiftUIViewsMasteryDemo
//
// Created by RecherJ on 2021/7/17.
//
import SwiftUI
// You may have situations where you want to show or hide a view depending on a condition.
// There are a few ways to do this. If you do not want your screen adjusting or moving when
// hiding a view ... | 19,525 |
https://github.com/landonb/home-fries/blob/master/bin/happy4j.sh | Github Open Source | Open Source | MIT | null | home-fries | landonb | Shell | Code | 478 | 1,398 | #!/usr/bin/env bash
# vim:tw=0:ts=4:sw=4:noet:norl:ft=sh
# Author: https://www.linuxjournal.com/content/fireworks-command-line
# Titled: "Fireworks from the Command Line" by Mitch Frazier, 2009-07-02.
# License: n/a [this file only; Frazier has (c) because no License specified]
# ++++++++++++++++++++++++++++++++++++++... | 26,515 |
https://github.com/Wikia/athena_alerter/blob/master/bin/query_dao.py | Github Open Source | Open Source | MIT | 2,021 | athena_alerter | Wikia | Python | Code | 123 | 519 | from dataclasses import asdict
from datetime import datetime
from boto3.dynamodb.conditions import Key, Attr
from .model import AthenaQuery, TIMESTAMP_FORMAT
class QueryDao:
def __init__(self, config, dynamodb):
self.config = config
self.dynamodb = dynamodb
def insert_query(self, query):
... | 9,902 |
https://github.com/dgn/xns-informer/blob/master/pkg/generated/kube/extensions/v1beta1/deployment.go | Github Open Source | Open Source | Apache-2.0 | null | xns-informer | dgn | Go | Code | 71 | 375 | // Code generated by xns-informer-gen. DO NOT EDIT.
package v1beta1
import (
xnsinformers "github.com/maistra/xns-informer/pkg/informers"
v1beta1 "k8s.io/api/extensions/v1beta1"
informers "k8s.io/client-go/informers/extensions/v1beta1"
listers "k8s.io/client-go/listers/extensions/v1beta1"
"k8s.io/client-go/tools... | 6,851 |
https://github.com/liji15865292551/dce/blob/master/.gitignore | Github Open Source | Open Source | BSD-3-Clause | 2,019 | dce | liji15865292551 | Ignore List | Code | 36 | 94 | .*
*.o
*.d
*.o.*
*.a
*.s
*.so
*.so.dbg
*.tar
*.gz
*.patch
*.gcno
*.dwo
bin/
/tags
/TAGS
# git files that we don't want to ignore even if they are dot-files
!.gitignore
# cscope files
cscope.*
ncscope.*
| 46,806 |
https://github.com/6299481145/Neha-bharti/blob/master/CPP/DynamicObjects.cpp | Github Open Source | Open Source | MIT | null | Neha-bharti | 6299481145 | C++ | Code | 46 | 137 | #include<iostream>
using namespace std;
class A
{
private:
int a;
public:
A()
{
a=10;
}
void displayA()
{
cout<<"a="<<a<<endl;
}
};
int main()
{
//A obA; //statically or compile time
A *obA= new A(); //Dynamica... | 19,670 |
https://github.com/hasipon/icfpc2020/blob/master/app/lib.py | Github Open Source | Open Source | MIT | null | icfpc2020 | hasipon | Python | Code | 467 | 1,210 | from typing import *
def modulate(o: Any) -> str:
if isinstance(o, int):
n = int(o)
if n == 0:
return "010"
elif n > 0:
head = "01"
else:
head = "10"
n = -n
width = 1 + (n.bit_length() - 1) // 4
return head + "1" * wid... | 14,182 |
https://github.com/DatabaseStratum/py-stratum-mssql/blob/master/test/FunctionTest.py | Github Open Source | Open Source | MIT | 2,016 | py-stratum-mssql | DatabaseStratum | Python | Code | 57 | 163 | from test.StratumTestCase import StratumTestCase
class FunctionTest(StratumTestCase):
# ------------------------------------------------------------------------------------------------------------------
def test1(self):
"""
Stored routine with designation type function executes a stored functi... | 23,266 |
https://github.com/kwosingyu/SimPla/blob/master/src/numeric/simplex_distribution.h | Github Open Source | Open Source | BSD-3-Clause | 2,016 | SimPla | kwosingyu | C++ | Code | 170 | 600 | /**
* @file simplex_distribution.h
*
* created on: 2013-10-23
* Author: salmon
*/
#ifndef SIMPLEX_DISTRIBUTION_H_
#define SIMPLEX_DISTRIBUTION_H_
#include "../gtl/nTuple.h"
#include <vector>
#include <random>
#include <numeric>
namespace simpla
{
/** @ingroup numeric
* \brief Sampling Uniformly from the U... | 2,868 |
https://github.com/plathir/my-yii-adv/blob/master/backend/controllers/SiteController.php | Github Open Source | Open Source | BSD-3-Clause | null | my-yii-adv | plathir | PHP | Code | 321 | 1,188 | <?php
namespace backend\controllers;
use Yii;
use yii\filters\AccessControl;
use yii\web\Controller;
use plathir\user\common\models\security\LoginForm;
use yii\filters\VerbFilter;
use yii\helpers\Url;
/**
* Site controller
*/
class SiteController extends Controller {
/**
* @inheritdoc
*/
public f... | 1,373 |
https://github.com/xiphirx/RxLifecycle/blob/master/rxlifecycle-navi/src/main/java/com/trello/rxlifecycle/navi/ActivityLifecycleProviderImpl.java | Github Open Source | Open Source | Apache-2.0 | 2,021 | RxLifecycle | xiphirx | Java | Code | 101 | 495 | package com.trello.rxlifecycle.navi;
import android.support.annotation.CheckResult;
import android.support.annotation.NonNull;
import com.trello.navi.Event;
import com.trello.navi.NaviComponent;
import com.trello.navi.rx.RxNavi;
import com.trello.rxlifecycle.ActivityEvent;
import com.trello.rxlifecycle.ActivityLifecyc... | 232 |
https://github.com/abbychau/spike/blob/master/src/Client/Client.php | Github Open Source | Open Source | MIT | 2,020 | spike | abbychau | PHP | Code | 780 | 2,626 | <?php
/*
* This file is part of the slince/spike package.
*
* (c) Slince <taosikai@yeah.net>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Spike\Client;
use Doctrine\Common\Collections\ArrayCollection;
use Doctrine\C... | 32,507 |
https://github.com/jdkoren/sqlite-parser/blob/master/src/test/resources/schema2.test_8.sql | Github Open Source | Open Source | MIT | 2,022 | sqlite-parser | jdkoren | SQL | Code | 19 | 46 | -- schema2.test
--
-- execsql {
-- CREATE INDEX abc_index ON abc(a);
-- }
CREATE INDEX abc_index ON abc(a); | 29,452 |
https://github.com/srotya/kafka-lag-monitor/blob/master/src/main/java/com/srotya/monitoring/kafka/collectd/KafkaLagMonitor.java | Github Open Source | Open Source | Apache-2.0 | 2,017 | kafka-lag-monitor | srotya | Java | Code | 544 | 2,330 | /**
* Copyright 2017 Ambud Sharma
*
* 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 ... | 29,408 |
https://github.com/tynutsu/Digital-Platform/blob/master/modules/meta-nycsss-units/client/meta-nycsss-units.client.module.js | Github Open Source | Open Source | MIT | 2,021 | Digital-Platform | tynutsu | JavaScript | Code | 11 | 92 | (function (app) {
'use strict';
app.registerModule('meta-nycsss-units');
app.registerModule('meta-nycsss-units.services');
//app.registerModule('meta-nycsss-units.routes', ['ui.router', 'meta-nycsss-units.services']);
})(ApplicationConfiguration);
| 17,523 |
https://github.com/ade1705/lynx/blob/master/resources/views/dashboard/orders.blade.php | Github Open Source | Open Source | MIT | 2,021 | lynx | ade1705 | Blade | Code | 9 | 56 | @extends('layouts.admin')
@section('content')
<div>
@include('dashboard.header')
<h1>{{ \Auth::user()->id }}</h1>
</div>
@endsection
| 11,059 |
https://github.com/l-ross/satisfactorysave/blob/master/save/data/write.go | Github Open Source | Open Source | MIT | null | satisfactorysave | l-ross | Go | Code | 424 | 1,134 | package data
import (
"encoding/binary"
"io"
"strings"
"unicode"
)
func (d *Data) Write(p []byte) (int, error) {
return d.sws.Write(p)
}
func (d *Data) WriteByte(b byte) error {
_, err := d.sws.Write([]byte{b})
return err
}
func (d *Data) WriteBytes(b []byte) error {
_, err := d.sws.Write(b)
return err
}
... | 34,171 |
https://github.com/JSitter/basic-drupal8-docker/blob/master/drupal-src/core/tests/Drupal/KernelTests/Core/Entity/EntityUUIDTest.php | Github Open Source | Open Source | MIT | 2,020 | basic-drupal8-docker | JSitter | PHP | Code | 301 | 1,168 | <?php
namespace Drupal\KernelTests\Core\Entity;
/**
* Tests creation, saving, and loading of entity UUIDs.
*
* @group Entity
*/
class EntityUUIDTest extends EntityKernelTestBase {
protected function setUp() {
parent::setUp();
foreach (entity_test_entity_types() as $entity_type_id) {
// The entit... | 50,825 |
https://github.com/jeremyknight-me/guildwars2tome/blob/master/src/JK.GuildWars2Api/V2/GuildInventory.cs | Github Open Source | Open Source | MIT | 2,020 | guildwars2tome | jeremyknight-me | C# | Code | 27 | 87 | using System.Text.Json.Serialization;
namespace JK.GuildWars2Api.V2
{
public class GuildInventory
{
[JsonPropertyName("id")]
public int Id { get; set; }
[JsonPropertyName("count")]
public int Count { get; set; }
}
}
| 25,121 |
https://github.com/jchallenger/nodemcu_ledstrip/blob/master/src/LEDStrip.h | Github Open Source | Open Source | MIT | null | nodemcu_ledstrip | jchallenger | C | Code | 47 | 180 | #ifndef __MY_LEDStrip__
#define __MY_LEDStrip__
#include <FastLED.h>
#include <vector>
#include "led_animation.h"
#include "led_animation_blink.h"
#include "led_animation_rainbow.h"
class LEDStrip {
private:
std::vector<led_animation *> *lights;
public:
LEDStrip();
~LEDStrip() {}
void addLight(led_animatio... | 8,536 |
https://github.com/M04alka/MedicalDB_laravel/blob/master/app/Models/Entities/PillType.php | Github Open Source | Open Source | MIT | null | MedicalDB_laravel | M04alka | PHP | Code | 21 | 74 | <?php
namespace App\Models\Entities;
use Illuminate\Database\Eloquent\Model;
class PillType extends Model
{
protected $fillable = ['pill_name', 'pill_recipe', 'pill_price'];
public $timestamps = false;
}
| 46,779 |
https://github.com/SiswoHandoko/pandu_api/blob/master/app/Model/PackageDetail.php | Github Open Source | Open Source | MIT | null | pandu_api | SiswoHandoko | PHP | Code | 90 | 270 | <?php
namespace App\Model;
use Illuminate\Database\Eloquent\Model;
class PackageDetail extends Model
{
/**
* Table database
*/
protected $table = 'package_details';
/**
* The attributes that are mass assignable.
*
* @var array
*/
protected $fillable = [
'package_i... | 33,106 |
https://github.com/bububa/wechat/blob/master/product/doc.go | Github Open Source | Open Source | Apache-2.0 | 2,021 | wechat | bububa | Go | Code | 4 | 13 | // 小商店接口.
package product
| 32,056 |
https://github.com/alqvia/layer0/blob/master/vendor/github.com/hashicorp/terraform/builtin/providers/google/resource_compute_image.go | Github Open Source | Open Source | Apache-2.0 | null | layer0 | alqvia | Go | Code | 470 | 1,587 | package google
import (
"fmt"
"log"
"github.com/hashicorp/terraform/helper/schema"
"google.golang.org/api/compute/v1"
"google.golang.org/api/googleapi"
)
func resourceComputeImage() *schema.Resource {
return &schema.Resource{
Create: resourceComputeImageCreate,
Read: resourceComputeImageRead,
Delete: r... | 35,084 |
https://github.com/kac2016/oliverbenns.com/blob/master/src/pages/work/click-childcare/index.jsx | Github Open Source | Open Source | MIT | null | oliverbenns.com | kac2016 | null | Spoken | 212 | 502 | import React from 'react';
import projects from '../../../data/projects';
import Carousel from '../../../components/carousel';
import Iphone from '../../../components/iphone';
import OutboundLink from '../../../components/outbound-link';
import { ProjectDescription, ProjectIntro, ProjectPage } from '../../../component... | 6,647 |
https://github.com/zjuandroid/onethink/blob/master/Application/Home/Controller/BaseController.class.php | Github Open Source | Open Source | Apache-2.0 | null | onethink | zjuandroid | PHP | Code | 56 | 248 | <?php
namespace Home\Controller;
use Think\Controller;
/**
* 如果某个控制器必须用户登录才可以访问
* 请继承该控制器
*/
class BaseController extends Controller {
public function _initialize(){
if(!IS_POST){
exit(wrapResult('CM0001'));
}
$userid = I('post.userid');
$token = I('post.token');
... | 46,541 |
https://github.com/jaswindersingh2/RNAcmap2/blob/master/datasets/cdhit_processing/SPOT-RNA-dataset/bpRNA_dataset/TR0/bpRNA_RFAM_26874.st | Github Open Source | Open Source | MIT | 2,022 | RNAcmap2 | jaswindersingh2 | null | Spoken | 71 | 418 | CACGCGGGCAGGAACGUGGCAGGCCGCAGAGGGUUGCCAUUCAUUCCUCGUGCGGUUCAACAACAUGGUCCAAGA
..........(((.((((....(((((.(((((...........)))))..))))).......)))).)))....
EEEEEEEEEESSSISSSSIIIISSSSSISSSSSHHHHHHHHHHHSSSSSIISSSSSIIIIIIISSSSISSSEEEE
NNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN
S1 11..13 "GGA" ... | 2,404 |
https://github.com/lffg/gh-followback-ts/blob/master/src/utils/human.ts | Github Open Source | Open Source | Apache-2.0 | 2,021 | gh-followback-ts | lffg | TypeScript | Code | 102 | 247 | import { AnyApplicationError } from '../core/types/errors';
import { assertNever } from './assertions';
export function humanizeBool(bool: boolean, ucfirst = true): string {
const out = bool ? 'Yes' : 'No';
return ucfirst ? out : out.toLowerCase();
}
export function mapApplicationErrorToUserMessage(
error: AnyA... | 45,412 |
https://github.com/serfend/Project.Web.SfMVC.TrainSchdule.1903/blob/master/DAL/Entities/ApplyInfo/IApplyRequestBase.cs | Github Open Source | Open Source | MIT | 2,020 | Project.Web.SfMVC.TrainSchdule.1903 | serfend | C# | Code | 93 | 267 | using DAL.Entities.ApplyInfo;
using System;
namespace DAL.Entities
{
/// <summary>
///
/// </summary>
public interface IApplyRequestBase
{
/// <summary>
///
/// </summary>
public DateTime? StampLeave { get; set; }
/// <summary>
///
/// </s... | 16,241 |
https://github.com/t184256/lorsource/blob/master/docker/docker-entrypoint.sh | Github Open Source | Open Source | Apache-2.0 | 2,022 | lorsource | t184256 | Shell | Code | 6 | 34 | #!/bin/sh
mvn liquibase:update -Dliquibase.promptOnNonLocalDatabase=false
mvn jetty:run | 46,165 |
https://github.com/amco/ratchet-sass/blob/master/Gemfile | Github Open Source | Open Source | MIT | 2,014 | ratchet-sass | amco | Ruby | Code | 10 | 36 | source 'https://rubygems.org'
# Specify your gem's dependencies in ratchet-sass-sass.gemspec
gemspec
| 42,244 |
https://github.com/SeelabFhdo/lemma/blob/master/de.fhdo.lemma.data.intermediate.metamodel/src-gen/de/fhdo/lemma/data/intermediate/IntermediateFactory.java | Github Open Source | Open Source | MIT | 2,023 | lemma | SeelabFhdo | Java | Code | 715 | 1,856 | /**
*/
package de.fhdo.lemma.data.intermediate;
import org.eclipse.emf.ecore.EFactory;
/**
* <!-- begin-user-doc -->
* The <b>Factory</b> for the model.
* It provides a create method for each non-abstract class of the model.
* <!-- end-user-doc -->
* @see de.fhdo.lemma.data.intermediate.IntermediatePackage
* @... | 19,283 |
https://github.com/bilus/kawaii/blob/master/lib/kawaii/route_handler.rb | Github Open Source | Open Source | MIT | 2,015 | kawaii | bilus | Ruby | Code | 184 | 469 | module Kawaii
# Creates context for execution of route handler block provided by the user
# with {#params} and other objects.
#
# @example Route handler block
# get '/users/:id' do
# if params[:id] ...
# end
class RouteHandler
include MethodChain
include RenderMethods
include FormatM... | 18,949 |
https://github.com/Faruk3040/first-blog/blob/master/resources/views/pages/products/view_product.blade.php | Github Open Source | Open Source | MIT | null | first-blog | Faruk3040 | PHP | Code | 205 | 926 | @extends('welcome')
@section('content')
<div class="row">
<div class="col-8 ">
<h3>Products</h3>
<div class="col-6 pt-2 mt-0">
<a href="{{ route('products.add_new_product') }}" class="btn btn-info text-white">Add New</a>
<a href="/export" class="btn b... | 29,343 |
https://github.com/quarkusio/quarkus/blob/master/extensions/container-image/deployment/src/test/java/io/quarkus/container/image/deployment/ContainerImageInfoTest.java | Github Open Source | Open Source | Apache-2.0 | 2,023 | quarkus | quarkusio | Java | Code | 363 | 1,469 | package io.quarkus.container.image.deployment;
import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertThrows;
import static org.junit.jupiter.api.Assertions.assertTrue;
import java.util.Collections;
import java.util.Optional;
import java.util.Properties;
imp... | 39,199 |
https://github.com/imaro/FileWall/blob/master/Test.Driver/Test.Driver.h | Github Open Source | Open Source | Apache-2.0 | 2,015 | FileWall | imaro | C | Code | 12 | 65 | #pragma once
#include <ntifs.h>
#include <cfix.h>
#include "..\Driver\ProtectedEntry.h"
#include "..\Driverlib\Common.h"
PRTL_GENERIC_TABLE g_pGenericTable; | 4,136 |
https://github.com/plugint/primary-information-identity-plugin-v1/blob/master/src/PidPlugin/Dtos/EntityFullData.cs | Github Open Source | Open Source | MIT | 2,021 | primary-information-identity-plugin-v1 | plugint | C# | Code | 27 | 80 | using System.Collections.Generic;
namespace PidPlugin.Dtos
{
public class EntityFullData : EntityBasicData
{
public IEnumerable<Exclusion> Exclusions { get; set; }
public IEnumerable<SpecialRecordEntry> SpecialRecordEntries { get; set; }
}
}
| 48,131 |
https://github.com/mbe24/sius/blob/master/src/main/java/org/beyene/sius/unit/composition/speed/SpeedUnit.java | Github Open Source | Open Source | Apache-2.0 | 2,014 | sius | mbe24 | Java | Code | 145 | 384 | /*
* Copyright 2014 Mikael Beyene
*
* 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 t... | 19,732 |
https://github.com/x-b-e/ember-spreadsheet-export/blob/master/addon/services/csv.js | Github Open Source | Open Source | MIT | null | ember-spreadsheet-export | x-b-e | JavaScript | Code | 307 | 851 | import Service from '@ember/service';
import { saveAs } from 'file-saver';
import optionize from "../utils/utils";
const defaultConfig = {
fileName: 'export.csv',
raw: false,
separator: ',',
withSeparator: true,
autoQuote: false,
};
const needsQuoteRE = /[",\r\n]/;
export default Service.extend({
export:... | 51,995 |
https://github.com/andreapatri/cms_journal/blob/master/node_modules/react-intl/dist/formatters/list.js | Github Open Source | Open Source | MIT | null | cms_journal | andreapatri | JavaScript | Code | 199 | 607 | "use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var utils_1 = require("../utils");
var intl_messageformat_1 = require("intl-messageformat");
var error_1 = require("../error");
var LIST_FORMAT_OPTIONS = [
'localeMatcher',
'type',
'style',
];
var now = Date.now();
function generat... | 19,674 |
https://github.com/sylmorin-gbif/nifi/blob/master/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/js/nf/canvas/nf-label.js | Github Open Source | Open Source | Apache-2.0 | 2,021 | nifi | sylmorin-gbif | JavaScript | Code | 1,725 | 4,838 | /*
* 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 ... | 52,488 |
https://github.com/ardirama/catat-uang/blob/master/resources/views/transaksi/tambah.blade.php | Github Open Source | Open Source | MIT | null | catat-uang | ardirama | PHP | Code | 125 | 600 | <!doctype html>
<html lang="{{ str_replace('_', '-', app()->getLocale()) }}">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- CSRF Token -->
<meta name="csrf-token" content="{{ csrf_token() }}">
<title>{{ config('app.name', 'Laravel') }}</tit... | 1,349 |
https://github.com/lrbtech/well_well_web/blob/master/resources/views/user/payments_in.blade.php | Github Open Source | Open Source | MIT | null | well_well_web | lrbtech | PHP | Code | 329 | 1,677 | @extends('user.layouts')
@section('extra-css')
<link rel="stylesheet" type="text/css" href="/assets/app-assets/css/datatables.css">
<link rel="stylesheet" type="text/css" href="/assets/app-assets/css/pe7-icon.css">
@endsection
@section('section')
<!-- Right sidebar Ends-->
<div class="page-body"... | 46,425 |
https://github.com/zhorton34/authorize-slim-4/blob/master/app/Http/Requests/FormRequest.php | Github Open Source | Open Source | MIT | 2,022 | authorize-slim-4 | zhorton34 | PHP | Code | 13 | 39 | <?php
namespace App\Http\Requests;
use App\Support\FormRequest as Request;
class FormRequest extends Request
{
}
| 41,207 |
https://github.com/mike-neck/haskell-til/blob/master/first-eta-sample/src/Java/Util/Stream.hs | Github Open Source | Open Source | Apache-2.0 | 2,017 | haskell-til | mike-neck | Haskell | Code | 72 | 185 | {-# LANGUAGE MagicHash #-}
module Java.Util.Stream where
import Java
import Java.Util.Function
-- ---- import java.util.stream.Stream
data {-# CLASS "java.util.stream.Stream" #-} Stream a = Stream (Object# (Stream a)) deriving Class
-- ---- import java.util.stream.IntStream
data {-# CLASS "java.util.stream.IntSt... | 48,370 |
https://github.com/williambl/asmr-processor-prototype/blob/master/src/main/java/org/quiltmc/asmr/tree/insn/AsmrHandleNode.java | Github Open Source | Open Source | Apache-2.0 | 2,021 | asmr-processor-prototype | williambl | Java | Code | 231 | 866 | package org.quiltmc.asmr.tree.insn;
import org.jetbrains.annotations.ApiStatus;
import org.jetbrains.annotations.Nullable;
import org.objectweb.asm.Opcodes;
import org.quiltmc.asmr.tree.AsmrNode;
import org.quiltmc.asmr.tree.AsmrValueNode;
import java.util.Arrays;
import java.util.List;
public class AsmrHandleNode e... | 30,456 |
https://github.com/tbicr/django-pg-zero-downtime-migrations/blob/master/tests/settings_make_migrations.py | Github Open Source | Open Source | MIT | 2,023 | django-pg-zero-downtime-migrations | tbicr | Python | Code | 26 | 280 | from .settings import * # noqa: F401, F403
INSTALLED_APPS += [ # noqa: F405
'tests.apps.good_flow_alter_table_with_same_name_db_table',
'tests.apps.good_flow_app',
'tests.apps.good_flow_app_concurrently',
'tests.apps.bad_rollback_flow_drop_column_with_notnull_default_app',
'tests.apps.bad_rollbac... | 19,448 |
https://github.com/nomadfy/nomadfy.github.io/blob/master/src/css/components/_details.scss | Github Open Source | Open Source | MIT | null | nomadfy.github.io | nomadfy | SCSS | Code | 441 | 1,872 | .details {
position: absolute;
display: flex;
width: 100%;
height: calc(100% - 85px);
bottom: 0;
margin: 0;
&__container {
position: relative;
height: 100%;
width: 475px;
min-width: 450px;
padding: 20px 2em;
background-color: white;
z-index: 2;
overflow-y: auto;
overf... | 10,655 |
https://github.com/kamil-triscik/pbs-middleware/blob/master/pbs-middleware-server/src/main/java/com/pbs/middleware/server/common/storage/event/EventStorage.java | Github Open Source | Open Source | Apache-2.0 | null | pbs-middleware | kamil-triscik | Java | Code | 32 | 144 | package com.pbs.middleware.server.common.storage.event;
import com.pbs.middleware.server.common.domain.MiddlewareEvent;
import com.pbs.middleware.server.common.storage.EventRepository;
import java.util.Set;
public interface EventStorage<ID, EVENT extends MiddlewareEvent<ID>> extends EventRepository<EVENT, ID> {
... | 21,982 |
https://github.com/Geant-RnD/GeantExascalePilot/blob/master/source/Geant/core/VectorTypes.hpp | Github Open Source | Open Source | Apache-2.0 | 2,020 | GeantExascalePilot | Geant-RnD | C++ | Code | 324 | 1,158 | //===------------------ GeantX --------------------------------------------===//
//
// Geant Exascale Pilot
//
// For the licensing terms see LICENSE file.
// For the list of contributors see CREDITS file.
// Copyright (C) 2019, Geant Exascale Pilot team, All rights reserved.
//===-------------------------------------... | 4,102 |
https://github.com/slaclab/surf/blob/master/protocols/srp/tb/AxiLiteSrpV0Tb.vhd | Github Open Source | Open Source | BSD-2-Clause, LicenseRef-scancode-unknown-license-reference | 2,023 | surf | slaclab | VHDL | Code | 781 | 2,858 | -------------------------------------------------------------------------------
-- Company : SLAC National Accelerator Laboratory
-------------------------------------------------------------------------------
-- Description: Simulation testbed for AxiLiteSrpV0
-------------------------------------------------------... | 3,389 |
https://github.com/BeiJiaan/ace/blob/master/examples/Log_Msg/test_callback.cpp | Github Open Source | Open Source | DOC | 2,022 | ace | BeiJiaan | C++ | Code | 434 | 1,336 |
//=============================================================================
/**
* @file test_callback.cpp
*
* $Id$
*
* This program tests the <ACE_Log_Msg> class wrt writing to user
* defined callback objects. In particular, it tests to make sure
* that nested callbacks don't deadlock.
*
*
* ... | 19,371 |
https://github.com/mohammad-agung/absensi-mikrokontroller/blob/master/web/application/controllers/Academics.php | Github Open Source | Open Source | LicenseRef-scancode-unknown-license-reference, MIT | 2,021 | absensi-mikrokontroller | mohammad-agung | PHP | Code | 403 | 2,241 | <?php
defined('BASEPATH') or exit('No direct script access allowed');
class Academics extends CI_Controller
{
public function __construct()
{
parent::__construct();
is_logged_in();
$this->db_api = $this->load->database('db_api', TRUE);
}
public function classtimetable()
{
... | 21,110 |
https://github.com/im6705/csgo_full/blob/master/csgo-crow/AntiCheatServer/NoCheatZ/server-plugin/SourceSdk/Interfaces/Protobuf/cstrike15_usermessage_helpers.cpp | Github Open Source | Open Source | Apache-2.0 | 2,019 | csgo_full | im6705 | C++ | Code | 319 | 1,171 |
#include "cstrike15_usermessage_helpers.h"
CCstrike15UsermessageHelpers g_Cstrike15UsermessageHelpers;
#define SETUP_MESSAGE( msgname ) \
m_NameIndexMap.Insert( #msgname, CS_UM_##msgname ); \
m_IndexNameMap[CS_UM_##msgname] = #msgname; \
m_Prototypes[CS_UM_##msgname] = &CCSUsr... | 46,800 |
https://github.com/johncheckmail/sprealtors/blob/master/public/dist/js/validation.js | Github Open Source | Open Source | MIT | null | sprealtors | johncheckmail | JavaScript | Code | 1,029 | 4,505 | function validation()
{
var first_name = $('#first_name').val();
var last_name = $('#last_name').val();
var email = $('#email').val();
var gender = $('#gender').val();
var username = $('#username').val();
var password = $('#password').val();
var confirmPassword = $('#confirmPassword').val();
var phone = $('#pho... | 51,857 |
https://github.com/JanekV/Learn2Play/blob/master/Learn2Play/WebApp/Views/Tabs/PartialCreateEdit.cshtml | Github Open Source | Open Source | MIT | null | Learn2Play | JanekV | C# | Code | 85 | 520 |
@using Domain
@using Domain.Enums
@model WebApp.ViewModels.TabCreateEditViewModel
<div asp-validation-summary="ModelOnly" class="text-danger"></div>
<div class="form-group">
<label asp-for="Tab.SongPart" class="control-label"></label>
<select asp-for="Tab.SongPart" asp-items="Html.GetEnumSelectList<SongPart>(... | 35,050 |
https://github.com/jineyne/afreecatv_chat_game/blob/master/afreeca_SDK/elpi/Ball/Ball.h | Github Open Source | Open Source | MIT | 2,014 | afreecatv_chat_game | jineyne | C | Code | 80 | 347 | #ifndef _BALL_LPI_HEADER_FILE_
#define _BALL_LPI_HEADER_FILE_
/*
* definition
*/
#ifdef BALL_EXPORTS
# define BALL_API __declspec(dllexport)
#else
# define BALL_API __declspec(dllimport)
#endif
//
#ifdef __cplusplus
extern "C" {
#endif
/*
* plugin intefaces
*/
BALL_API
bool_t
LPI_Identify(
OUT PLPI_IDENIT... | 436 |
https://github.com/vuongxang/hkthon-game/blob/master/app/Http/Controllers/Organizer/RoundController.php | Github Open Source | Open Source | MIT | null | hkthon-game | vuongxang | PHP | Code | 354 | 1,303 | <?php
namespace App\Http\Controllers\Organizer;
use App\Helpers\Helper;
use App\Http\Controllers\Controller;
use App\Models\Location;
use App\Models\Round;
use App\Repositories\Contracts\GameRepository;
use App\Repositories\Contracts\LocationRepository;
use App\Repositories\Contracts\QuestionRepository;
use App\Repos... | 34,069 |
https://github.com/Sanaxen/cpp_torch/blob/master/cpp_torch/test/rnn5/rnn5.cpp | Github Open Source | Open Source | MIT | 2,022 | cpp_torch | Sanaxen | C++ | Code | 1,095 | 4,603 | /*
Copyright (c) 2019, Sanaxen
All rights reserved.
Use of this source code is governed by a MIT license that can be found
in the LICENSE file.
*/
#include "cpp_torch.h"
#include "../test/include/seqence_data.h"
#define TEST //cpp_torch
#define USE_CUDA
#define ZERO_TOL 0.0001
const char* kDataRoot = "./data";... | 8,906 |
https://github.com/ashawley/guard-jasmine/blob/master/lib/guard/jasmine/server.rb | Github Open Source | Open Source | MIT | 2,020 | guard-jasmine | ashawley | Ruby | Code | 731 | 1,888 | # coding: utf-8
require 'socket'
require 'timeout'
require 'childprocess'
require 'jasmine'
require 'guard/compat/plugin'
module Guard
class Jasmine < Plugin
# Start and stop a Jasmine test server for requesting the specs
# from PhantomJS.
#
module Server
class << self
attr_accessor :... | 35,280 |
https://github.com/austindimmer/AWSRetriever/blob/master/CloudOps/Generated/EC2/DescribeStoreImageTasksOperation.cs | Github Open Source | Open Source | MIT | null | AWSRetriever | austindimmer | C# | Code | 247 | 524 | using Amazon;
using Amazon.EC2;
using Amazon.EC2.Model;
using Amazon.Runtime;
namespace CloudOps.EC2
{
public class DescribeStoreImageTasksOperation : Operation
{
public override string Name => "DescribeStoreImageTasks";
public override string Description => "Describes the progress of the AMI ... | 43,395 |
https://github.com/yuweijun/shufabeitie/blob/master/public/angularjs-requirejs/js/main.js | Github Open Source | Open Source | MIT | 2,017 | shufabeitie | yuweijun | JavaScript | Code | 67 | 319 | 'use strict';
require.config({
paths: {
jquery: 'bower_components/jquery/dist/jquery',
bootstrap: 'bower_components/bootstrap/dist/js/bootstrap',
angular: 'bower_components/angular/angular',
angularRoute: 'bower_components/angular-route/angular-route',
angularMocks: 'bower_c... | 23,728 |
https://github.com/CodingMilitia/Grpc/blob/master/samples/CodingMilitia.Grpc.GeneratedClientInterop/Service/SampleResponse.cs | Github Open Source | Open Source | MIT | 2,018 | Grpc | CodingMilitia | C# | Code | 18 | 63 | namespace CodingMilitia.Grpc.GeneratedClientInterop.Service
{
[ProtoBuf.ProtoContract]
public class SampleResponse
{
[ProtoBuf.ProtoMember(1)]
public int Value { get; set; }
}
} | 39,408 |
https://github.com/realitycollective/com.xrtk.core/blob/master/Editor/Profiles/LocomotionSystem/SmoothLocomotionProviderProfileInspector.cs | Github Open Source | Open Source | MIT | null | com.xrtk.core | realitycollective | C# | Code | 73 | 263 | // Copyright (c) XRTK. All rights reserved.
// Licensed under the MIT License. See LICENSE in the project root for license information.
using RealityToolkit.Definitions.LocomotionSystem;
using UnityEditor;
using UnityEngine;
namespace RealityToolkit.Editor.Profiles.LocomotionSystem
{
[CustomEditor(typeof(Smooth... | 1,343 |
https://github.com/bennychao/ZProRx.Lib/blob/master/ZP.Lib/ZP.Lib.NetCore/Tools/ZPWebHostExtensions.cs | Github Open Source | Open Source | MIT | 2,020 | ZProRx.Lib | bennychao | C# | Code | 58 | 237 | using System;
using Microsoft.AspNetCore.Hosting;
using Microsoft.AspNetCore;
using ZP.Lib.NetCore.Domain;
using System.Threading;
using System.Threading.Tasks;
using ZP.Lib.CoreEx;
using UniRx;
namespace ZP.Lib.NetCore
{
static public class ZPWebHostExtensions
{
static public async Task RunAsync(this... | 49,943 |
https://github.com/microsoft/onnxruntime/blob/master/onnxruntime/core/framework/func_kernel.cc | Github Open Source | Open Source | MIT | 2,023 | onnxruntime | microsoft | C++ | Code | 82 | 240 | #include "core/common/safeint.h"
#include "core/framework/func_kernel.h"
#include "core/framework/allocator.h"
namespace onnxruntime {
void* allocate_helper_func(void* allocator, size_t alignment, size_t size) {
// Here we only align the size, we expect the underline device allocator will
// guarantee the address ... | 16,588 |
https://github.com/drcircuit/BlockChain/blob/master/BlockChain.NET/Program.cs | Github Open Source | Open Source | MIT | 2,018 | BlockChain | drcircuit | C# | Code | 379 | 1,295 | using System;
using static System.Text.Encoding;
using System.Security.Cryptography;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace BlockChain.NET
{
class Block{
public Block(string data, byte[] previousHash, int difficulty)
{
this.Data = data;
... | 45,225 |
https://github.com/MichelMichels/MaterialDesignInXaml.Examples/blob/master/TreeView/TreeView.SingleClickExpand/SingleClickTreeViewItem.cs | Github Open Source | Open Source | MIT | 2,022 | MaterialDesignInXaml.Examples | MichelMichels | C# | Code | 53 | 206 | using System.Windows;
using System.Windows.Controls;
using System.Windows.Input;
namespace TreeView.SingleClickExpand
{
public class SingleClickTreeViewItem : TreeViewItem
{
static SingleClickTreeViewItem()
{
DefaultStyleKeyProperty.OverrideMetadata(typeof(SingleClickTreeViewItem),... | 16,472 |
https://github.com/MarcusEddie/Heimdallr/blob/master/src/main/java/org/iman/Heimdallr/controller/ApisController.java | Github Open Source | Open Source | MIT | null | Heimdallr | MarcusEddie | Java | Code | 793 | 3,435 | /**
*
*/
package org.iman.Heimdallr.controller;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Iterator;
import java.util.List;
import java.util.Optional;
import javax.annotation.Resource;
import org.apache.commons.collections4.CollectionUtils;
import org.apache.commons.lang3.StringUti... | 43,243 |
https://github.com/n-b/Bicyclette/blob/master/Files/Station+Update.h | Github Open Source | Open Source | BSD-2-Clause | 2,021 | Bicyclette | n-b | C | Code | 45 | 126 | //
// Station+Update.h
// Bicyclette
//
// Created by Nicolas on 14/12/12.
// Copyright (c) 2012 Nicolas Bouilleaud. All rights reserved.
//
#import "Station.h"
#pragma mark -
@interface Station (Update) <LocalUpdatePoint>
@property (readonly) BOOL updating;
@property (readonly) BOOL statusDataIsFresh;
@end
exte... | 37,379 |
https://github.com/inthiyazbasha9876/obs_v2/blob/master/zuul-auth-ojas-parent/ui-parent/ui-web/src/main/web/src/app/home/personaldetails/personaldetails.component.scss | Github Open Source | Open Source | MIT | 2,020 | obs_v2 | inthiyazbasha9876 | SCSS | Code | 7 | 34 | .undlne{
text-decoration: none;
color:#212529;
font-size: 16px;
} | 18,037 |
https://github.com/NetherlandsMetabolomicsCentre/SAM/blob/master/grails-app/views/measurement/nofeatures.gsp | Github Open Source | Open Source | Apache-2.0 | 2,013 | SAM | NetherlandsMetabolomicsCentre | null | Spoken | 89 | 235 | <html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<meta name="layout" content="main"/>
<title>You have no features</title>
</head>
<body>
<content tag="contextmenu">
<g:render template="contextmenu" />
</content>
<... | 14,685 |
https://github.com/delrodie/sygesca2/blob/master/src/AppBundle/Controller/EpurationController.php | Github Open Source | Open Source | MIT | null | sygesca2 | delrodie | PHP | Code | 88 | 424 | <?php
namespace AppBundle\Controller;
use AppBundle\Entity\Scout;
use AppBundle\Utilities\GestionEpuration;
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route;
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Method;
/**
* Class EpurationControll... | 51,219 |
https://github.com/bobbylight/random-acts-of-kinase/blob/master/service/src/main/frontend/src/admin/import-nanobret.vue | Github Open Source | Open Source | MIT | 2,022 | random-acts-of-kinase | bobbylight | Vue | Code | 150 | 384 | <template>
<abstract-import-data
header="Import NanoBRET"
:details="details"
:importFunction="importFunction"
:previewGridColumnInfos="previewGridColumnInfos">
</abstract-import-data>
</template>
<script lang="ts">
import Vue from 'vue';
import Component from 'vue-class-componen... | 48,763 |
https://github.com/PNNL-Comp-Mass-Spec/OWL-Data-Converter/blob/master/clsOwlEntry.cs | Github Open Source | Open Source | Apache-2.0 | 2,021 | OWL-Data-Converter | PNNL-Comp-Mass-Spec | C# | Code | 266 | 713 | using System.Collections.Generic;
namespace OWLDataConverter
{
public class OwlEntry
{
public enum eParentType
{
Unknown = 0,
IsA = 1,
HasDomain = 2,
HasOrder = 3,
HasRegExp = 4,
HasUnits = 5,
PartOf = 6,
... | 4,401 |
https://github.com/LukeSamkharadze/js-practices/blob/master/17-Promises and Asynchronous Programming/01-topics/01-promises/source/example-3.js | Github Open Source | Open Source | MIT | 2,021 | js-practices | LukeSamkharadze | JavaScript | Code | 40 | 100 | function Async() {
const promise = new Promise(function (resolve, reject) {
console.log('Promise init'); // 1) Promise init
setTimeout(function() {
console.log('rejecting...'); // 3) rejecting...
reject();
}, 2000);
});
return promise;
}
const promise = Async... | 27,147 |
https://github.com/celeritas-project/celeritas/blob/master/test/corecel/data/ObserverPtr.test.cc | Github Open Source | Open Source | MIT, Apache-2.0 | 2,023 | celeritas | celeritas-project | C++ | Code | 200 | 859 | //----------------------------------*-C++-*----------------------------------//
// Copyright 2023 UT-Battelle, LLC, and other Celeritas developers.
// See the top-level COPYRIGHT file for details.
// SPDX-License-Identifier: (Apache-2.0 OR MIT)
//-------------------------------------------------------------------------... | 33,942 |
https://github.com/seek-concert/ts_rms/blob/master/app/Http/Model/Householdmembercrowd.php | Github Open Source | Open Source | MIT | 2,018 | ts_rms | seek-concert | PHP | Code | 133 | 713 | <?php
/*
|--------------------------------------------------------------------------
| 项目-被征收户 家庭成员 特殊人群 模型
|--------------------------------------------------------------------------
*/
namespace App\Http\Model;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;
class Householdmemb... | 25,026 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.