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/porl/OpenTerrainGenerator/blob/master/common/src/main/java/com/pg85/otg/generator/surface/LayerChoice.java | Github Open Source | Open Source | MIT | null | OpenTerrainGenerator | porl | Java | Code | 83 | 226 | package com.pg85.otg.generator.surface;
import com.pg85.otg.common.LocalMaterialData;
public class LayerChoice implements Comparable<LayerChoice>
{
final LocalMaterialData surfaceBlock;
final LocalMaterialData groundBlock;
final float maxNoise;
LayerChoice(LocalMaterialData surfaceBlock, LocalMateria... | 48,894 |
https://github.com/googleapis/google-cloud-java/blob/master/java-translate/google-cloud-translate/src/test/java/com/google/cloud/translate/v3/TranslationServiceClientHttpJsonTest.java | Github Open Source | Open Source | LicenseRef-scancode-unknown-license-reference, Apache-2.0 | 2,023 | google-cloud-java | googleapis | Java | Code | 2,387 | 11,467 | /*
* Copyright 2023 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to... | 44,875 |
https://github.com/hmsoftwaregithub/react-node-express-mongodb-example/blob/master/mongo.js | Github Open Source | Open Source | MIT | null | react-node-express-mongodb-example | hmsoftwaregithub | JavaScript | Code | 501 | 1,452 | const MongoClient = require("mongodb").MongoClient;
const ObjectID = require("mongodb").ObjectID;
const url =
"mongodb+srv://admin:admin@cluster0.m6n2l.mongodb.net/products-potato?retryWrites=true&w=majority";
const createOrder = async (req, res, next) => {
if (req.body.params.password) {
const {
passwo... | 2,407 |
https://github.com/sauerm1/RetracTable/blob/master/src/component/utils/normalizeData.js | Github Open Source | Open Source | MIT | null | RetracTable | sauerm1 | JavaScript | Code | 82 | 208 | import capitalizeString from "./capitalizeString";
const normalizeData = (data, capitalize) => {
let keys = [];
for (const i in data) {
Object.keys(data[i]).forEach((i) => {
if (!keys.includes(i)) {
keys.push(i);
}
});
}
const normalizedData = data.map((r) => {
let row = {};
... | 51,877 |
https://github.com/luiskaco/Carnaval/blob/master/resources/views/principal/contenido.blade.php | Github Open Source | Open Source | MIT | null | Carnaval | luiskaco | PHP | Code | 63 | 388 | @extends('layouts.principalWeb')
@section('banner')
<aside id="fh5co-hero">
<div class="flexslider">
<ul class="slides">
<li style="background-image: url({{ url('carnaval/images/bg/noticias.png') }});">
<div class="overlay-gradient"></div>
<div class="container">
<div class="row">
<di... | 43,505 |
https://github.com/tulth/fs2-mqtt/blob/master/core/src/main/scala/net/sigusr/mqtt/impl/protocol/IdGenerator.scala | Github Open Source | Open Source | Apache-2.0 | null | fs2-mqtt | tulth | Scala | Code | 193 | 467 | /*
* Copyright 2020 Frédéric Cabestre
*
* 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 agre... | 23,132 |
https://github.com/kirankumar-iping/ludo_buddy/blob/master/resources/views/buy_chips.blade.php | Github Open Source | Open Source | MIT | 2,020 | ludo_buddy | kirankumar-iping | PHP | Code | 218 | 717 | @extends('layouts.app')
@section('content')
<style>
div {
color: #000000;
}
</style>
<div class="container">
<div class="row maincontent">
<div class="col l2"></div>
<div class="col l8 m12 s12">
<div class="card large white">
<div class="card-content bla... | 12,813 |
https://github.com/betrusted-io/opentitan/blob/master/hw/ip/aes/rtl/prim_assert.sv | Github Open Source | Open Source | LicenseRef-scancode-unknown-license-reference, Apache-2.0 | 2,020 | opentitan | betrusted-io | null | Spoken | 1 | 12 | ../../prim/rtl/prim_assert.sv | 6,326 |
https://github.com/snifter/grapy/blob/master/grapy/store/base/record.py | Github Open Source | Open Source | MIT | 2,020 | grapy | snifter | Python | Code | 46 | 153 | class RecordValidation(type):
def __new__(mcs, name, bases, class_dict):
if bases != (object,):
if '__iter__' not in class_dict:
raise TypeError('Record implementation has to provide __iter__ method')
return type.__new__(mcs, name, bases, class_dict)
class Record(objec... | 39,703 |
https://github.com/TheRenegadeCoder/sample-programs/blob/master/archive/r/racket/fizz-buzz.rkt | Github Open Source | Open Source | MIT | 2,023 | sample-programs | TheRenegadeCoder | null | Spoken | 44 | 136 | ;fizzbuzz in racket
;Author: Emblazion
#lang racket
(for ([i (in-range 1 101)])
(cond
[(and
(equal? 0 (modulo i 3))
(equal? 0 (modulo i 5)))
(printf "FizzBuzz\n")]
[(equal? 0 (modulo i 3)) (printf "Fizz\n")]
[(equal? 0 (modulo i 5)) (printf "Buzz\n")]
[else (printf "~a\n" i)]))
| 11,936 |
https://github.com/ably-forks/flynn/blob/master/installer/app/src/views/azure-create-app-tutorial.js.jsx | Github Open Source | Open Source | BSD-3-Clause | 2,018 | flynn | ably-forks | JavaScript | Code | 946 | 3,086 | import AssetPaths from './asset-paths';
import ExternalLink from './external-link';
import Sheet from './css/sheet';
import InputSelection from './input-selection';
var tutorialSlides = [];
tutorialSlides.push(
<div>
<img src={AssetPaths["azure-1.gif"]} style={{
width: 699,
height: 378
}} />
<p><External... | 29,389 |
https://github.com/jfrabaute/vitess/blob/master/go/vt/sqlparser/sql.go | Github Open Source | Open Source | Apache-2.0 | null | vitess | jfrabaute | Go | Code | 20,000 | 44,207 | // Code generated by goyacc -o sql.go sql.y. DO NOT EDIT. //line sql.y:18 package sqlparser import __yyfmt__ "fmt" //line sql.y:18 import "fmt" func setParseTree(yylex interface{}, stmt Statement) { yylex.(*Tokenizer).ParseTree = stmt } func setAllowComments(yylex interface{}, allow bool) { yylex.(*Tokenizer).AllowComm... | 258 |
https://github.com/doganozcan/Driving-School-Automation/blob/master/SurucuKursuOtomasyonu/SurucuKursuOtomasyonu/Kursiyer.cs | Github Open Source | Open Source | MIT | null | Driving-School-Automation | doganozcan | C# | Code | 209 | 750 | //------------------------------------------------------------------------------
// <auto-generated>
// This code was generated from a template.
//
// Manual changes to this file may cause unexpected behavior in your application.
// Manual changes to this file will be overwritten if the code is regenerated.... | 5,178 |
https://github.com/programmerjake/quick-shell/blob/master/ast/word_part.cpp | Github Open Source | Open Source | Apache-2.0 | 2,021 | quick-shell | programmerjake | C++ | Code | 170 | 406 | /*
* Copyright 2017 Jacob Lifshay
*
* 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... | 11,020 |
https://github.com/BeanGreen247/surf/blob/master/glib-2.64.0/tests/gobject/override.c | Github Open Source | Open Source | MIT | 2,021 | surf | BeanGreen247 | C | Code | 958 | 3,706 | /* GObject - GLib Type, Object, Parameter and Signal Library
* override.c: Closure override test program
* Copyright (C) 2001, James Henstridge
* Copyright (C) 2003, Red Hat, Inc.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* Lice... | 42,124 |
https://github.com/midwayjs/midway/blob/master/packages/code-dye/src/index.ts | Github Open Source | Open Source | MIT | 2,023 | midway | midwayjs | TypeScript | Code | 16 | 30 | export { CodeDyeConfiguration as Configuration } from './configuration';
export * from './middleware';
export * from './interface';
| 37,361 |
https://github.com/mikesilky/vagrant-cucumber/blob/master/Gemfile | Github Open Source | Open Source | MIT | 2,013 | vagrant-cucumber | mikesilky | Ruby | Code | 62 | 195 | source "http://rubygems.org"
source "http://gems.hashicorp.com"
# Specify your gem's dependencies in vagrant-cucumber.gemspec
gemspec
group :development do
# We depend on Vagrant for development, but we don't add it as a
# gem dependency because we expect to be installed within the
# Vagrant environment itself ... | 47,557 |
https://github.com/yafshar/oneAPI-samples/blob/master/DirectProgramming/DPC++/Jupyter/sycl-performance-portability-training/vtune_all.sh | Github Open Source | Open Source | MIT | null | oneAPI-samples | yafshar | Shell | Code | 90 | 408 | #!/bin/bash
source /opt/intel/oneapi/setvars.sh
#Vtune GPU Hotspot script
#matrix_size=("1024" "5120" "10240")
matrix_size=("5120")
wg_size="16"
device="DG1"
bin_dir="lab"
#bin_list=("mm_dpcpp_basic" "mm_dpcpp_ndrange" "mm_dpcpp_ndrange_var" "mm_dpcpp_localmem" "mm_dpcpp_mkl")
bin_list=("mm_dpcpp_localmem")
prj_dir=... | 29,867 |
https://github.com/LJMSU/NETto-_OS-JT-Architecture/blob/master/text/test.cpp | Github Open Source | Open Source | Apache-2.0 | 2,020 | NETto-_OS-JT-Architecture | LJMSU | C++ | Code | 28 | 146 | #include "sleepy_discord/sleepy_discord.h"
class MyClientClass : public SleepyDiscord::DiscordClient {
public:
using SleepyDiscord::DiscordClient::DiscordClient;
void onMessage(SleepyDiscord::Message message) override {
if(messgae.startsWith("whcg hello")){
sendMessage(message.channelID,"Hello "+message.... | 4,325 |
https://github.com/gmbeard/innodb-page-allocator/blob/master/tests/main.cpp | Github Open Source | Open Source | MIT | null | innodb-page-allocator | gmbeard | C++ | Code | 61 | 239 | #include <cstdlib>
#include "page.hpp"
int main(int, char const *[])
{
constexpr size_t PageSize = 0x01 << 16;
auto *data = std::malloc(PageSize);
gmb::page<PageSize> p{data};
auto *block1 = p.allocate(0x01 << 8);
auto *block2 = p.allocate(0x01 << 9);
auto *block3 = p.allocate(0x01 << 8);
auto *block4 ... | 16,775 |
https://github.com/ajayrawat2021/myprojetcts/blob/master/app/Http/Controllers/frontController.php | Github Open Source | Open Source | MIT | null | myprojetcts | ajayrawat2021 | PHP | Code | 74 | 326 | <?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use App\Models\Elastic;
use App\Models\Demo;
class frontController extends Controller
{
//function for home page
public function viewfront(){
$docker = Demo::select('*')->limit(6)->get();
$elastic = Elastic::select('*')->limit... | 9,451 |
https://github.com/gerardojaras/codingwithjerry/blob/master/src/templates/category.js | Github Open Source | Open Source | MIT | null | codingwithjerry | gerardojaras | JavaScript | Code | 115 | 376 | import React from "react"
import Layout from "../components/layout"
import { graphql, Link } from "gatsby"
import parse from 'html-react-parser'
import Styles from './category.module.scss'
export default ({ data }) =>{
const options = {
replace: ({ attribs, children }) => {
if (!attribs) return;
if (... | 47,545 |
https://github.com/badock/rome/blob/master/setup.py | Github Open Source | Open Source | MIT | 2,017 | rome | badock | Python | Code | 8 | 36 | from setuptools import setup, find_packages
setup(name='rome', version='0.2.0', packages=find_packages(),)
| 2,670 |
https://github.com/jdh5563/Brackey-Jam-2021.1/blob/master/Brackey-Jam-2021.1/Assets/Scripts/PlayerStats.cs | Github Open Source | Open Source | MIT | null | Brackey-Jam-2021.1 | jdh5563 | C# | Code | 192 | 548 | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
public class PlayerStats : MonoBehaviour
{
public Sprite[] heroUpgrades;
public AudioClip[] playerSounds;
public GameObject playerHUD;
private Text allyCount;
private Text playerHealth;
private Text playerAttack... | 42,147 |
https://github.com/offbeat-solutions/BitmapDiff/blob/master/Offbeat.BitmapDiff/DifferenceClusteringOptions.cs | Github Open Source | Open Source | MIT | null | BitmapDiff | offbeat-solutions | C# | Code | 16 | 37 | namespace Offbeat.BitmapDiff {
public class DifferenceClusteringOptions {
public int ClusteringThreshold { get; set; }
}
} | 49,364 |
https://github.com/roneysousa/ecfg2/blob/master/source/uPrincipalECFG2.pas | Github Open Source | Open Source | MIT | 2,016 | ecfg2 | roneysousa | Pascal | Code | 1,694 | 6,768 | unit uPrincipalECFG2;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, ExtCtrls, StdCtrls, ComCtrls, Gradient, RXShell, Menus, shellapi,
ImgList, Printers, QuickRpt, QRCtrls, Buttons;
type
TfrmMainEcFG2 = class(TForm)
pnlSuperior: TPanel;
pnlCentral:... | 45,176 |
https://github.com/taktos/dbflute-jodatime-example/blob/master/src/main/java/com/example/dbflute/jodatime/cbean/nss/ProductStatusNss.java | Github Open Source | Open Source | Apache-2.0 | 2,015 | dbflute-jodatime-example | taktos | Java | Code | 54 | 182 | package com.example.dbflute.jodatime.cbean.nss;
import com.example.dbflute.jodatime.cbean.cq.ProductStatusCQ;
/**
* The nest select set-upper of PRODUCT_STATUS.
* @author DBFlute(AutoGenerator)
*/
public class ProductStatusNss {
// ==============================================================================... | 37,165 |
https://github.com/whisher/angular-expresso/blob/master/public/modules/users/services/index.js | Github Open Source | Open Source | Apache-2.0 | 2,015 | angular-expresso | whisher | JavaScript | Code | 42 | 158 | (function() {
'use strict';
function Users($http) {
return {
isjustlogged: function() {
return $http.get('/auth/isjustlogged');
},
signin: function(data) {
return $http.post('/auth/signin', data);
},
register: function(data) {
return $http.post('/auth/register', data); ... | 5,408 |
https://github.com/jussikinnula/angular2-universal-wordpress-wp-test/blob/master/web/app/themes/test-theme/inc/register-sidebars.php | Github Open Source | Open Source | MIT | 2,019 | angular2-universal-wordpress-wp-test | jussikinnula | PHP | Code | 41 | 131 | <?php
/**
* Register widget areas
*
* @link http://codex.wordpress.org/Function_Reference/register_sidebar
* @link http://generatewp.com/sidebar/
*
* @package _frc
*/
if ( ! function_exists( 'theme_widgets_init' ) ) :
add_action( 'widgets_init', 'theme_widgets_init' );
function theme_widgets_init() {
// I... | 19,500 |
https://github.com/andersjo/any-language-frames/blob/master/preprocessed/da/da_google_twitter088.conll | Github Open Source | Open Source | CC0-1.0 | 2,015 | any-language-frames | andersjo | null | Spoken | 64 | 174 | 1 Fandt _ VERB VERB _ 0 root
2 du _ PRON PRON _ 1 nsubj
3 hvad _ PRON PRON _ 1 dobj
4 du _ PRON PRON _ 5 nsubj
5 søgte _ VERB VERB _ 3 acl:relcl
6 efter _ ADP ADP _ 8 case
7 ...? _ ADJ ADJ _ 8 amod
8 https://t.co/9R1gpWixnw _ NOUN NOUN _ 5 nmod
| 11,168 |
https://github.com/saisankargochhayat/algo_quest/blob/master/leetcode/684.RedundantConnection/soln.py | Github Open Source | Open Source | Apache-2.0 | 2,018 | algo_quest | saisankargochhayat | Python | Code | 250 | 654 | class UnionFind:
def __init__(self, n):
self.graph = [i for i in range(n+1)]
def find(self, x):
while x != self.graph[x]:
# path compression
self.graph[x] = self.graph[self.graph[x]]
x = self.graph[x]
return x
def union(self, x, y):
... | 52,466 |
https://github.com/leonard-thieu/replays-service/blob/master/src/ReplaysService/ICloudBlobClient.cs | Github Open Source | Open Source | MIT | null | replays-service | leonard-thieu | C# | Code | 82 | 217 | using System;
namespace toofz.Services.ReplaysService
{
/// <summary>
/// Represents a <see cref="Microsoft.WindowsAzure.Storage.Blob.CloudBlobClient"/>
/// </summary>
internal interface ICloudBlobClient
{
/// <summary>
/// Gets the base URI for the Blob service client at the prima... | 15,437 |
https://github.com/fbordone/frankiebordone/blob/master/wp-content/themes/frankiebordone/resources/assets/styles/02_functions/_color.scss | Github Open Source | Open Source | MIT | 2,020 | frankiebordone | fbordone | SCSS | Code | 79 | 218 | /* ==============================================================================================
// PULL COLOR FROM `$COLORS` MAP
================================================================================================= */
/**
* Helper function
*
* @see color()
*/
@function c($color, $tone: 'base') {
... | 36,310 |
https://github.com/leonetecbr/gera-numeros-mega-sena/blob/master/src/components/GeraNumeros.jsx | Github Open Source | Open Source | MIT | 2,022 | gera-numeros-mega-sena | leonetecbr | null | Spoken | 267 | 866 | import React from "react"
import Button from './Button'
import Checkbox from './Checkbox'
const TEXT_ALL = 'Gerando números aleatoriamente sem filtos, podendo ser apenas números muito baixos ou apenas muito altos.'
const TEXT_SOME = 'Gerando números aletoriamente com filtros, garantindo que haja números altos e baixo... | 51,439 |
https://github.com/jaychoumylove/idolzone-server/blob/master/application/api/model/StarRank.php | Github Open Source | Open Source | Apache-2.0 | null | idolzone-server | jaychoumylove | PHP | Code | 266 | 1,024 | <?php
namespace app\api\model;
use app\base\model\Base;
use think\Db;
class StarRank extends Base
{
public function star()
{
return $this->belongsTo('Star', 'star_id', 'id')->field('id,name,head_img_s,birthday');
}
public static function getRankList($page, $size, $rankField, $keywords = '')
... | 17,229 |
https://github.com/iteam-software/csharp-o365-client/blob/master/iTEAMConsulting.O365/O365AuthenticationOptions.cs | Github Open Source | Open Source | MIT | 2,017 | csharp-o365-client | iteam-software | C# | Code | 71 | 155 | using System;
using System.Collections.Generic;
using System.Text;
namespace iTEAMConsulting.O365
{
public class O365AuthenticationOptions
{
public string ClientId { get; set; }
public string ClientSecret { get; set; }
public string TenantName { get; set; }
public string Tenant... | 3,119 |
https://github.com/olar7/final_project/blob/master/app/Http/Controllers/Landing.php | Github Open Source | Open Source | MIT | null | final_project | olar7 | PHP | Code | 31 | 140 | <?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use App\Models\Campaign;
use App\Models\Organization;
class Landing extends Controller
{
public function index(){
$campaign = Campaign::orderBy('created_at', 'DESC')->take(3)->get();
$organization = Organization::orderBy('created_... | 42,185 |
https://github.com/arnaurf/The-Wolfs-Hunting/blob/master/VS project/src/renderer.cpp | Github Open Source | Open Source | MIT | 2,021 | The-Wolfs-Hunting | arnaurf | C++ | Code | 368 | 1,154 | #include "renderer.h"
#include "camera.h"
#include "shader.h"
#include "mesh.h"
#include "texture.h"
#include "prefab.h"
#include "material.h"
#include "utils.h"
using namespace GTR;
//renders all the prefab
void Renderer::renderPrefab(const Matrix44& model, GTR::Prefab* prefab, Camera* camera)
{
//assign the model... | 19,229 |
https://github.com/NathanKun/real-estate-scanner/blob/master/server/src/main/java/com/catprogrammer/cogedimscanner/CogedimScannerApplication.java | Github Open Source | Open Source | Unlicense, Apache-2.0, LicenseRef-scancode-unknown-license-reference | 2,023 | real-estate-scanner | NathanKun | Java | Code | 24 | 119 | package com.catprogrammer.cogedimscanner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.scheduling.annotation.EnableScheduling;
@SpringBootApplication
@EnableScheduling
public class CogedimScannerApplication {
pu... | 34,994 |
https://github.com/HessianZ/nei/blob/master/server/controller/api/ProjectController.js | Github Open Source | Open Source | MIT | 2,020 | nei | HessianZ | JavaScript | Code | 646 | 2,256 | const log = require('../../util/log');
const db = require('../../../common').db;
const NController = require('../../arch/NController');
const ProjectService = require('../../service/ProjectService');
const ProGroupService = require('../../service/ProGroupService');
class ProjectController extends NController {
const... | 45,623 |
https://github.com/huaweicloud/huaweicloudstack-ansible-modules/blob/master/library/hcs_lb_pool.py | Github Open Source | Open Source | Apache-2.0 | null | huaweicloudstack-ansible-modules | huaweicloud | Python | Code | 564 | 1,918 | #!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Copyright (C) 2019 Huawei
# GNU General Public License v3.0+ (see COPYING or
# https://www.gnu.org/licenses/gpl-3.0.txt)
from __future__ import absolute_import, division, print_function
__metaclass__ = type
ANSIBLE_METADATA = {'metadata_version': '1.1',
... | 41,348 |
https://github.com/TyrealHu/devtools-frontend/blob/master/front_end/panels/timeline/TimelinePanel.ts | Github Open Source | Open Source | BSD-3-Clause | 2,021 | devtools-frontend | TyrealHu | TypeScript | Code | 4,111 | 17,033 | // Copyright 2021 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
/*
* Copyright (C) 2012 Google Inc. All rights reserved.
* Copyright (C) 2012 Intel Inc. All rights reserved.
*
* Redistribution and use in source and... | 50,926 |
https://github.com/datnguyenit/PhoneShop/blob/master/resources/views/test.blade.php | Github Open Source | Open Source | MIT | null | PhoneShop | datnguyenit | PHP | Code | 58 | 274 | <!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title></title>
<link rel="stylesheet" href="">
</head>
<body>
<form id="form1" >
<input type='file' id="imgInp" />
<img id="blah" src="#" alt="your image" />
</form>
<script src="JavaScript/jquery... | 51,364 |
https://github.com/devsonket/devsonket.github.io/blob/master/src/components/Item/Contributors.js | Github Open Source | Open Source | MIT | 2,023 | devsonket.github.io | devsonket | JavaScript | Code | 113 | 457 | import React from "react"
import styled from "@emotion/styled"
const ContributorsContainer = styled.div`
margin-top: 25px;
text-align: center;
h4 {
font-size: 18px;
font-weight: bold;
margin-bottom: 10px;
color: ${props =>
props.islightcolor === "true"
? "var(--accentlight)"
... | 44,706 |
https://github.com/diegoferraribruno/liberation/blob/master/.import/1f937-1f3fb.png-95e67f236d87b9db847ed8ceb4416fb3.md5 | Github Open Source | Open Source | LicenseRef-scancode-public-domain | 2,021 | liberation | diegoferraribruno | null | Spoken | 2 | 50 | source_md5="4bbccf9d983bdc64227c9639270fba61"
dest_md5="1acedbabbcb5da389bd5410508c2167c"
| 17,990 |
https://github.com/hramose/admin5.8/blob/master/resources/views/admin/user/index.blade.php | Github Open Source | Open Source | MIT | 2,019 | admin5.8 | hramose | Blade | Code | 151 | 648 | @extends('admin.layouts.app')
@section('content')
<!-- ============================================================== -->
<!-- Bread crumb and right sidebar toggle -->
<!-- ============================================================== -->
<div class="row page-titles">
<div class="col-md-5 col-8 align-self-center">... | 13,687 |
https://github.com/chusopr/cloudbreak/blob/master/core/src/main/java/com/sequenceiq/cloudbreak/service/cluster/ambari/AmbariHostsWithNames.java | Github Open Source | Open Source | Apache-2.0 | null | cloudbreak | chusopr | Java | Code | 42 | 191 | package com.sequenceiq.cloudbreak.service.cluster.ambari;
import java.util.List;
import com.sequenceiq.ambari.client.AmbariClient;
import com.sequenceiq.cloudbreak.domain.stack.Stack;
import com.sequenceiq.cloudbreak.service.cluster.flow.AmbariClientPollerObject;
public class AmbariHostsWithNames extends AmbariClien... | 52,213 |
https://github.com/bibekuchiha/dataquest/blob/master/4. Working with Data Sources/sql-fundamentals/Introduction to SQL-252.sql | Github Open Source | Open Source | MIT | null | dataquest | bibekuchiha | SQL | Code | 182 | 411 | ## 3. Your First Query ##
SELECT * FROM recent_grads;
## 4. Understanding Your First Query ##
SELECT *
FROM recent_grads;
select * from recent_grads;
## 6. The LIMIT Clause ##
SELECT * FROM recent_grads LIMIT 5;
## 7. Selecting Specific Columns ##
SELECT Major, ShareWomen FROM recent_grads;
## 8. Filtering R... | 11,918 |
https://github.com/InseeFr/Magma/blob/master/src/main/java/fr/insee/rmes/modelSwagger/structure/Attribut.java | Github Open Source | Open Source | MIT | 2,023 | Magma | InseeFr | Java | Code | 448 | 1,523 |
package fr.insee.rmes.modelSwagger.structure;
import java.io.Serializable;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import javax.annotation.Generated;
import javax.validation.Valid;
import com.fasterxml.jackson.annotation.JsonAnyGetter;
import com.fasterxml.jackson.annotation.JsonAnySett... | 51,552 |
https://github.com/amzn/amzn-drivers/blob/master/userspace/dpdk/backports/v18.11.11/0071-net-ena-fix-getting-xstats-global-stats-offset.patch | Github Open Source | Open Source | BSD-3-Clause | 2,023 | amzn-drivers | amzn | null | Spoken | 149 | 564 | From 628454ef852a6cc340443df11989169ec6c8d357 Mon Sep 17 00:00:00 2001
From: Michal Krawczyk <mk@semihalf.com>
Date: Thu, 16 Jul 2020 10:55:26 +0000
Subject: [PATCH 071/107] net/ena: fix getting xstats global stats offset
There was a bug in a code, which was reading stat_offset value from the
ena_stats_rx_strings arra... | 22,321 |
https://github.com/chamini2/nutrition/blob/master/app/views/snacks/show.json.jbuilder | Github Open Source | Open Source | BSD-3-Clause | null | nutrition | chamini2 | Ruby | Code | 7 | 29 | json.extract! @snack, :id, :name, :calories, :created_at, :updated_at
| 29,178 |
https://github.com/phatblat/macOSPrivateFrameworks/blob/master/PrivateFrameworks/PhotoImaging/PIImageIO.h | Github Open Source | Open Source | MIT | 2,022 | macOSPrivateFrameworks | phatblat | C | Code | 51 | 210 | //
// Generated by class-dump 3.5 (64 bit).
//
// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by Steve Nygard.
//
#import "NSObject.h"
@interface PIImageIO : NSObject
{
}
+ (id)writeImage:(id)arg1 toDirectoryAtPath:(id)arg2 withBasename:(id)arg3;
+ (id)writeImage:(id)arg1 toTemporaryDirectory... | 32,877 |
https://github.com/DonikaChervenkova/SoftUni/blob/master/Python Fundamentals/Final Exam/Final Exam 04/Task01_2.py | Github Open Source | Open Source | MIT | null | SoftUni | DonikaChervenkova | Python | Code | 107 | 326 | def do_substitute(txt, substr, subst):
if substr in txt:
new_txt = txt.replace(substr, subst)
print(new_txt)
return new_txt
else:
print("Nothing to replace!")
return txt
def cut(txt, idx, l):
end_idx = idx + l
new_txt = text[:idx] + txt[end_idx:]
return new_... | 28,625 |
https://github.com/Saksham2514/blog/blob/master/static/gatsby-node.js | Github Open Source | Open Source | RSA-MD | null | blog | Saksham2514 | JavaScript | Code | 53 | 183 | const path = require('path')
exports.createPages = async ({ graphql,actions }) =>{
const { data } = await graphql(`
query MarkdownSlugs {
projects: allMarkdownRemark(sort: {fields: frontmatter___date, order: DESC}) {
nodes {
frontmatter {
slug
}
}
}
} `)
data.allMarkd... | 25,807 |
https://github.com/hwk1984/TypeRig/blob/master/Lib/typerig/proxy/objects/__init__.py | Github Open Source | Open Source | BSD-3-Clause | 2,020 | TypeRig | hwk1984 | Python | Code | 84 | 176 | # MODULE: TypeRig / Proxy / Objects
# -----------------------------------------------------------
# (C) Vassil Kateliev, 2017-2020 (http://www.kateliev.com)
# (C) Karandash Type Foundry (http://www.karandash.eu)
#------------------------------------------------------------
# www.typerig.com
# No warranties. By usin... | 36,142 |
https://github.com/accso/java9-jigsaw-examples/blob/master/jigsaw-examples/example_resources/src/modc/pkgc/C.java | Github Open Source | Open Source | Apache-2.0 | 2,021 | java9-jigsaw-examples | accso | Java | Code | 52 | 151 | package pkgc;
import java.io.IOException;
import java.io.InputStream;
import java.util.Properties;
public class C {
public String doIt() {
return "from C";
}
// access resources in modc!
public String getTextFromProperties() throws IOException {
final Properties properties = new Propert... | 46,511 |
https://github.com/sebaoliveri/json-schema-validation/blob/master/src/main/scala/jsonschemavalidation/JsNumericValidationBuilder.scala | Github Open Source | Open Source | MIT | 2,022 | json-schema-validation | sebaoliveri | Scala | Code | 127 | 621 | package jsonschemavalidation
import org.nulluncertainty.assertion.AssertionBuilder.assertThat
import org.nulluncertainty.expression.{ComposableAssertionExp, SuccessfulAssertionExp}
import play.api.libs.json.{JsArray, JsObject, JsValue}
object JsNumericValidationBuilder extends JsValidationBuilder {
override def bu... | 49,962 |
https://github.com/danilotiago/guardian/blob/master/database/seeds/PermissionsTableSeeder.php | Github Open Source | Open Source | MIT | null | guardian | danilotiago | PHP | Code | 291 | 1,055 | <?php
use App\Permission;
use Illuminate\Database\Seeder;
class PermissionsTableSeeder extends Seeder
{
/**
* Run the database seeds.
*
* @return void
*/
public function run()
{
$permission = Permission::create([
'name' => 'Visualizar gerentes',
'identif... | 12,495 |
https://github.com/unbornchikken/NOOOCL/blob/master/lib/clImage3D.js | Github Open Source | Open Source | MIT | 2,021 | NOOOCL | unbornchikken | JavaScript | Code | 80 | 262 | "use strict";
var util = require("util");
var CLImage = require("./clImage");
var clUtils = require("./clUtils");
var clPredef = require("./clPredef");
function CLImage3D(context, flags, format, width, height, depth, hostPtr, rowPitch, slicePitch) {
format = clUtils.asImageFormat(format);
hostPtr = hostPtr ||... | 32,019 |
https://github.com/flourishcodes/holbertonschool-higher_level_programming/blob/master/0x02-python-import_modules/4-hidden_discovery.py | Github Open Source | Open Source | MIT | null | holbertonschool-higher_level_programming | flourishcodes | Python | Code | 16 | 57 | #!/usr/bin/python3
if __name__ == "__main__":
import hidden_4
for name in dir(hidden_4):
if name[0] != '_':
print("{}".format(name))
| 44,282 |
https://github.com/AsmaLad/PFE/blob/master/resources/views/front/header.blade.php | Github Open Source | Open Source | MIT | null | PFE | AsmaLad | PHP | Code | 83 | 427 | @extends('front.layout')
@section('main')
hello
ici par exemple
cette page pour l'utilisateur {{Auth::user()->name}} est son role {{Auth::user()->role}}
<div class="col-lg-3 col-xs-6">
<!-- small box -->
<div class="small-box bg-primary">
<div class="inner">
<h3>1</h3>
<p>A... | 51,086 |
https://github.com/bitslab/CompilerInterrupts/blob/master/benchmarks/server_delegation/libfiber/src/work_stealing_deque.c | Github Open Source | Open Source | ISC, MIT | 2,021 | CompilerInterrupts | bitslab | C | Code | 474 | 1,552 | /*
* Copyright (c) 2012-2015, Brian Watling and other contributors
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVIDED... | 48,879 |
https://github.com/rongou/rmm/blob/master/tests/mr/host/mr_tests.cpp | Github Open Source | Open Source | Apache-2.0 | 2,022 | rmm | rongou | C++ | Code | 703 | 2,889 | /*
* Copyright (c) 2019-2021, NVIDIA CORPORATION.
*
* 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... | 8,486 |
https://github.com/lechium/tvOS142Headers/blob/master/System/Library/PrivateFrameworks/PassKitCore.framework/PKSearchQuery.h | Github Open Source | Open Source | MIT | 2,020 | tvOS142Headers | lechium | C | Code | 206 | 695 | /*
* This header is generated by classdump-dyld 1.5
* on Tuesday, November 10, 2020 at 10:15:03 PM Mountain Standard Time
* Operating System: Version 14.2 (Build 18K57)
* Image Source: /System/Library/PrivateFrameworks/PassKitCo... | 15,014 |
https://github.com/CESNET/glite-lb/blob/master/org.glite.lb.yaim/Makefile | Github Open Source | Open Source | Apache-2.0 | 2,013 | glite-lb | CESNET | Makefile | Code | 172 | 990 | top_srcdir=..
stagedir=.
package=glite-lb-yaim
version=0.0.0
PREFIX=/opt/glite
prefix=
default: all
-include Makefile.inc
-include ${top_srcdir}/project/version.properties
version=${module.version}
yaim_prefix=/opt/glite
ifeq (${project},emi)
yaim_project=/emi
endif
SOURCES=\
config/defaults/glite-lb.pre \
confi... | 27,825 |
https://github.com/tyardley/ggp-base/blob/master/src/org/ggp/base/util/game/CloudGameRepository.java | Github Open Source | Open Source | BSD-3-Clause | 2,019 | ggp-base | tyardley | Java | Code | 1,101 | 2,897 | package org.ggp.base.util.game;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.InputStreamReader;
import java.io.PrintWriter;
import java.security.MessageDigest;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Map... | 41,473 |
https://github.com/cloudfoundry/uaa/blob/master/uaa/src/test/java/org/cloudfoundry/identity/uaa/mock/limited/LimitedModeNegativeTests.java | Github Open Source | Open Source | LicenseRef-scancode-unknown-license-reference, Apache-2.0, LGPL-2.1-or-later, LicenseRef-scancode-unicode-mappings, GPL-1.0-or-later, LGPL-2.0-or-later, EPL-1.0, CPL-1.0, GPL-2.0-or-later, Classpath-exception-2.0, Apache-1.1, LGPL-3.0-only, LicenseRef-scancode-warranty-disclaimer, Artistic-1.0, CDDL-1.0, MIT, BSD-3-Cla... | 2,023 | uaa | cloudfoundry | Java | Code | 385 | 2,734 | package org.cloudfoundry.identity.uaa.mock.limited;
import org.cloudfoundry.identity.uaa.DefaultTestContext;
import org.cloudfoundry.identity.uaa.mock.util.MockMvcUtils;
import org.cloudfoundry.identity.uaa.util.JsonUtils;
import org.cloudfoundry.identity.uaa.web.LimitedModeUaaFilter;
import org.junit.jupiter.api.Afte... | 1,057 |
https://github.com/phatblat/dotfiles/blob/master/.config/fish/functions/xcblist.fish | Github Open Source | Open Source | MIT | 2,020 | dotfiles | phatblat | Fish | Code | 14 | 32 | function xcblist \
--description='Lists info about the first Xcode project found.'
xcb -list
end
| 39,459 |
https://github.com/sharifmehdia/CASS/blob/master/src/main/webapp/cass.manager/generated-js/cass/manager/modal/AdvancedPermissionsModal.js | Github Open Source | Open Source | Apache-2.0, BSD-3-Clause, MIT | 2,017 | CASS | sharifmehdia | JavaScript | Code | 71 | 234 | var AdvancedPermissionsModal = function(data, callback, onlyReaders) {
EcModal.call(this);
this.data = data;
this.saveCallback = callback;
if (onlyReaders == null)
this.onlyReaders = false;
else
this.onlyReaders = onlyReaders;
};
AdvancedPermissionsModal = stjs.extend(AdvancedPerm... | 51,517 |
https://github.com/eolalex/eol_old/blob/master/app/helpers/remote_link_renderer.rb | Github Open Source | Open Source | MIT | 2,012 | eol_old | eolalex | Ruby | Code | 150 | 550 | # This was a monkeypatch stolen from http://weblog.redlinesoftware.com/2008/1/30/willpaginate-and-remote-links
class RemoteLinkRenderer < WillPaginate::LinkRenderer
def prepare(collection, options, template)
@remote = options.delete(:remote) || {}
super
end
protected
def page_link(page, text, attributes ... | 33,524 |
https://github.com/leroywan/gatsby-typescript-boilerplate/blob/master/src/components/Link/index.ts | Github Open Source | Open Source | MIT | null | gatsby-typescript-boilerplate | leroywan | TypeScript | Code | 7 | 14 | import Link from './Link';
export default Link;
| 18,567 |
https://github.com/JeamayPalo/battlegrounds_2018/blob/master/lib/scraper.rb | Github Open Source | Open Source | MIT | null | battlegrounds_2018 | JeamayPalo | Ruby | Code | 258 | 1,022 | require_relative './environment'
class Battlegrounds2018::Scraper
def self.scrape_states
doc = Nokogiri::HTML(open("https://ballotpedia.org/U.S._Senate_battlegrounds,_2018"))
battleground_states = doc.css("table.bptable td").text.split("\n").map do |state|
state.split(" ").first
end
ba... | 43,938 |
https://github.com/karim/adila/blob/master/database/src/main/java/adila/db/nuclear2dd25fdeluxe_digital22ddeluxe.java | Github Open Source | Open Source | MIT | 2,016 | adila | karim | Java | Code | 34 | 97 | // This file is automatically generated.
package adila.db;
/*
* Digital2 Digital2 Deluxe
*
* DEVICE: nuclear-D2_Deluxe
* MODEL: Digital2-Deluxe
*/
final class nuclear2dd25fdeluxe_digital22ddeluxe {
public static final String DATA = "Digital2|Digital2 Deluxe|";
}
| 33,014 |
https://github.com/raidoz/sensed/blob/master/bin/system/node_editor.py | Github Open Source | Open Source | MIT | 2,014 | sensed | raidoz | Python | Code | 2,529 | 9,229 | import logging
llog = logging.getLogger(__name__) # the name 'log' is taken in sdl2
from math import sin, cos, radians, atan2
import json
import errno
import math
import random
from OpenGL.GL import *
from copenglconstants import * # import to silence opengl enum errors for pycharm. pycharm can't see pyopengl enums.
... | 46,223 |
https://github.com/elliotchance/XSD2PHP/blob/master/test/data/expected/ubl2.0/oasis/names/specification/ubl/schema/xsd/CommonAggregateComponents_2/PackageType.php | Github Open Source | Open Source | Apache-2.0 | 2,021 | XSD2PHP | elliotchance | PHP | Code | 619 | 2,049 | <?php
namespace oasis\names\specification\ubl\schema\xsd\CommonAggregateComponents_2;
/**
* @xmlNamespace urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2
* @xmlType
* @xmlName PackageType
* @var oasis\names\specification\ubl\schema\xsd\CommonAggregateComponents_2\PackageType
* @xmlCompon... | 23,052 |
https://github.com/tuan188/MGAPIService/blob/master/MGAPIService/Scenes/EventList/EventListUseCase.swift | Github Open Source | Open Source | MIT | 2,020 | MGAPIService | tuan188 | Swift | Code | 62 | 177 | //
// EventListUseCase.swift
// MGAPIService
//
// Created by Tuan Truong on 5/27/19.
// Copyright © 2019 Sun Asterisk. All rights reserved.
//
import RxSwift
import RxCocoa
import MGArchitecture
protocol EventListUseCaseType {
func getEventList(owner: String, repo: String) -> Observable<[Event]>
}
struct Ev... | 26,403 |
https://github.com/naoric/PSY/blob/master/resources/views/singles/shapah.blade.php | Github Open Source | Open Source | MIT | null | PSY | naoric | PHP | Code | 85 | 629 | @extends('app')
@section('page-title')
<h1>עמוד שפ"ח</h1>
@stop
@section('content')
<div class="row">
<label>שם השפ"ח:</label>
<span class="label-data">{{$shapah->shapah_name}}</span>
</div>
<div class="row">
<label>מנהל השפ"ח:</label>
<span class="label-data">{{$shap... | 21,847 |
https://github.com/anispy211/SurveyNative/blob/master/Example/Podfile | Github Open Source | Open Source | MIT | 2,019 | SurveyNative | anispy211 | Ruby | Code | 16 | 59 | use_frameworks!
target 'SurveyNative_Example' do
pod 'SurveyNative', :path => '../'
target 'SurveyNative_Tests' do
inherit! :search_paths
end
end
| 35,322 |
https://github.com/RubenHollevoet/SecretSanta/blob/master/src/Intracto/SecretSantaBundle/Form/Type/ContactType.php | Github Open Source | Open Source | 0BSD | 2,020 | SecretSanta | RubenHollevoet | PHP | Code | 74 | 371 | <?php
namespace Intracto\SecretSantaBundle\Form\Type;
use Intracto\SecretSantaBundle\Model\ContactSubmission;
use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\Extension\Core\Type\EmailType;
use Symfony\Component\Form\Extension\Core\Type\SubmitType;
use Symfony\Component\Form\Extension\Core\Type\Tex... | 26,683 |
https://github.com/cier-centro/saber-docentes/blob/master/lib/ionic/scss/_modal-styles.scss | Github Open Source | Open Source | CC0-1.0 | null | saber-docentes | cier-centro | SCSS | Code | 187 | 656 | /**
* Modal Styles
* --------------------------------------------------
*/
.modal-backdrop-bg {
opacity: 0.8 !important;
background-color: $warning-text-color;
}
.question-option {
border-bottom: 1px solid $question-list-separator;
.row {
min-height: 50px;
}
.bullet {
height: 8px;
width: 9p... | 6,813 |
https://github.com/Ayush0017/webiny-js/blob/master/packages/ui/rmwc/base/code/utils/index.js | Github Open Source | Open Source | MIT | 2,019 | webiny-js | Ayush0017 | JavaScript | Code | 38 | 179 | /* eslint-disable */
"use strict";
function __export(m) {
for (var p in m) {
if (!exports.hasOwnProperty(p)) {
exports[p] = m[p];
}
}
}
Object.defineProperty(exports, "__esModule", { value: true });
__export(require("./debounce"));
__export(require("./deprecation"));
__export(require... | 30,878 |
https://github.com/IvanOrellana90/CalendarioETC/blob/master/resources/views/includes/tablasEditar/tablaFacultad.blade.php | Github Open Source | Open Source | MIT | null | CalendarioETC | IvanOrellana90 | PHP | Code | 40 | 184 | <table id="tablaFacultad" class="table table-bordered table-hover" >
<thead style="cursor: pointer;">
<th>Nombre</th>
</thead>
<tbody>
@foreach($faculties as $faculty)
<tr>
<td>{{ $faculty->nombre }}</td>
<td>
<a href="{{ route('vistaEditarFacultad', [... | 33,917 |
https://github.com/hliangzhao/volcano/blob/master/hack/verify-golangci-lint.sh | Github Open Source | Open Source | Apache-2.0 | null | volcano | hliangzhao | Shell | Code | 223 | 543 | #!/bin/bash
# Copyright 2014 The Kubernetes Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law ... | 28,021 |
https://github.com/pekd/vmx86/blob/master/projects/org.graalvm.vm.trcview.arch.custom/src/org/graalvm/vm/trcview/script/ast/expr/NegNode.java | Github Open Source | Open Source | UPL-1.0, Apache-2.0 | 2,020 | vmx86 | pekd | Java | Code | 34 | 130 | package org.graalvm.vm.trcview.script.ast.expr;
import org.graalvm.vm.trcview.script.ast.Expression;
import org.graalvm.vm.trcview.script.rt.Context;
public class NegNode extends Expression {
private final Expression expr;
public NegNode(Expression expr) {
this.expr = expr;
}
@Override
p... | 2,055 |
https://github.com/FedericoCampanozzi/TecnologieWebProject/blob/master/WebSite/js/homepageUser.js | Github Open Source | Open Source | MIT | null | TecnologieWebProject | FedericoCampanozzi | JavaScript | Code | 52 | 221 | $(document).ready(function() {
$(".add-product").click(function() {
const id_parts = $(this).attr("id").split("_");
$.post("utils/insert.php", {
obj_to_insert: "rc_usr_hp",
product_id: document.getElementById("IdProdtto_" + id_parts[1]).value
}, function(response) {
... | 26,002 |
https://github.com/PacktPublishing/Vue.js-Quick-Start-Guide/blob/master/Chapter07/002-extending-the-fruit-counter/js/index.js | Github Open Source | Open Source | MIT | 2,023 | Vue.js-Quick-Start-Guide | PacktPublishing | JavaScript | Code | 159 | 530 | const store = new Vuex.Store({
state: {
count: 5,
apples: 0,
pears: 0
},
getters: {
counter(state) {
return state.count;
},
appleCount(state) {
return state.apples;
},
pearCount(state) {
return state.pears;
}
},
mutations: {
decrementWithApplesCounter(... | 20,022 |
https://github.com/qw89/liliths-throne-public/blob/master/src/com/lilithsthrone/game/character/body/abstractTypes/AbstractPenisType.java | Github Open Source | Open Source | Linux-OpenIB | 2,021 | liliths-throne-public | qw89 | Java | Code | 856 | 2,885 | package com.lilithsthrone.game.character.body.abstractTypes;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import com.lilithsthrone.game.character.GameCharacter;
import com.lilithsthrone.game.character.body.Body;
import com.lilithsthrone.game.character.body.types.B... | 6,941 |
https://github.com/chenyaxin888/php-site/blob/master/app/admin/model/AdminLog.php | Github Open Source | Open Source | Apache-2.0 | 2,021 | php-site | chenyaxin888 | PHP | Code | 40 | 120 | <?php
// +----------------------------------------------------------------------
// | 小牛Admin
// +----------------------------------------------------------------------
// | Website: www.xnadmin.cn
// +----------------------------------------------------------------------
// | Author: dav <85168163@qq.com>
// +--------... | 31,837 |
https://github.com/ImagineLearning/caliper-ts/blob/master/src/models/Events/LessonStartedEvent.test.ts | Github Open Source | Open Source | MIT | 2,021 | caliper-ts | ImagineLearning | TypeScript | Code | 191 | 1,128 | import {
createAttempt,
createDomain,
createLessonEventIndividualizedLearningPath,
createLessonStartedEvent,
createLessonStartedEventLesson,
createStudent,
} from '..';
import Caliper from '../../caliper';
import { validate } from '../../validate';
describe('LessonStartedEvent', () => {
beforeAll(() => {
Cali... | 38,018 |
https://github.com/Markoy8/Foundry/blob/master/Components/CommonCore/Source/gov/sandia/cognition/annotation/PublicationType.java | Github Open Source | Open Source | BSD-3-Clause | 2,022 | Foundry | Markoy8 | Java | Code | 276 | 548 | /*
* File: PublicationType.java
* Authors: Kevin R. Dixon
* Company: Sandia National Laboratories
* Project: Cognitive Foundry
*
* Copyright Jan 11, 2008, Sandia Corporation. Under the terms of Contract
* DE-AC04-94AL85000, there is a non-exclusive license for... | 19,259 |
https://github.com/madskonradsen/douglas-server/blob/master/src/douglas/testrunner/actions/Action.java | Github Open Source | Open Source | MIT | null | douglas-server | madskonradsen | Java | Code | 22 | 87 | package douglas.testrunner.actions;
import douglas.domain.TestStep;
import douglas.testrunner.StepException;
import org.json.simple.JSONObject;
import org.openqa.selenium.WebDriver;
public interface Action {
TestStep execute(WebDriver driver, TestStep step) throws StepException;
}
| 21,806 |
https://github.com/bbar21/BungieNetPlatform/blob/master/BungieNetPlatform/BungieNetPlatform/Enums/ForumsFlags.cs | Github Open Source | Open Source | MIT | 2,015 | BungieNetPlatform | bbar21 | C# | Code | 31 | 126 | using System.Runtime.Serialization;
using System;
namespace BungieNetPlatform.Enums {
[DataContract]
[Flags]
public enum ForumFlags {
[EnumMember]
None = 0,
[EnumMember]
BungieStaffPost = 1,
[EnumMember]
ForumNinjaPost = 2,
[EnumMember]
ForumMentorPost = 4
}
} | 47,982 |
https://github.com/hgtlzyc/DevMountainStudy/blob/master/intro/student-4/12 Instances/InstancesMethodsProperties.playground/Pages/Introduction.xcplaygroundpage/Contents.swift | Github Open Source | Open Source | MIT | 2,017 | DevMountainStudy | hgtlzyc | Swift | Code | 289 | 397 | /*:
## For Instance
You’ve learned about types in Swift and how they’re similar to types of things in the real world.
For every type in the real world, there are many actual physical instances:
- For the type “Car” there are countless individual variations on the road, each with its own mileage history, make, mo... | 8,264 |
https://github.com/dojorecifetw/tw-coding-dojo/blob/master/test/FizzBuzzSpec.hs | Github Open Source | Open Source | Apache-2.0 | 2,015 | tw-coding-dojo | dojorecifetw | Haskell | Code | 92 | 218 | import Test.Hspec
import Test.QuickCheck
import Control.Exception (evaluate)
import FizzBuzz
main :: IO()
main = hspec $ do
describe "fizzBuzzer" $ do
context "when is not divisible by 3 or 5" $ do
it "returns the number" $ do
fizzBuzzer 1 `shouldBe` "1"
context "when is divisible by 3" $ do
... | 2,078 |
https://github.com/mikewgd/cut-post-media/blob/master/src/components/organisms/Header/index.js | Github Open Source | Open Source | MIT | null | cut-post-media | mikewgd | JavaScript | Code | 30 | 79 | import React from 'react'
import { PrimaryNavigation } from 'components'
import './header.styl'
const Header = () => (
<header className="main-header">
<div className="container">
<PrimaryNavigation />
</div>
</header>
)
export default Header
| 12,438 |
https://github.com/dvsa/poc-new-selenium/blob/master/src/server/resources/queries/vehicle/VEHICLE_REG_MOT_LATEST_REINSPECTION_TEST.sql | Github Open Source | Open Source | MIT | 2,019 | poc-new-selenium | dvsa | SQL | Code | 200 | 425 | SELECT veh.registration, veh.vin, mtc.odometer_value
FROM vehicle veh, model_detail md, model mo, make ma, mot_test_current mtc
INNER JOIN (SELECT vehicle_id, max(id) AS id
FROM mot_test_current
WHERE created_on > current_date - interval '0' day -- only current certificates can be pulled
GROUP BY vehi... | 52,929 |
https://github.com/sirAgg/nebula/blob/master/code/render/coregraphics/vk/vkmeshpool.cc | Github Open Source | Open Source | BSD-2-Clause, LicenseRef-scancode-unknown-license-reference | 2,021 | nebula | sirAgg | C++ | Code | 239 | 1,001 | //------------------------------------------------------------------------------
// vkstreammeshloader.cc
// (C) 2016-2018 Individual contributors, see AUTHORS file
//------------------------------------------------------------------------------
#include "stdneb.h"
#include "vkmeshpool.h"
#include "coregraphics/mesh.h"... | 31,830 |
https://github.com/Lukermelesh/rich-content/blob/master/packages/plugin-emoji/web/src/editor.js | Github Open Source | Open Source | MIT | null | rich-content | Lukermelesh | JavaScript | Code | 43 | 150 | import { createEmojiPlugin } from './createEmojiPlugin';
import { EMOJI_TYPE, DEFAULT_CONFIG } from './constants';
//import 'https://unpkg.com/browse/wix-rich-content-plugin-emoji@6.8.4/dist/styles.min.css';
export const pluginEmoji = (config = {}) => {
return {
config: { ...DEFAULT_CONFIG, ...config },
type... | 17,971 |
https://github.com/dongryphon/todomvc/blob/master/labs/architecture-examples/extjs/js/app.js | Github Open Source | Open Source | MIT | 2,012 | todomvc | dongryphon | JavaScript | Code | 56 | 260 | Ext.Loader.setConfig({
enabled:true
});
Ext.application({
name: 'Todo',
appFolder: 'js',
stores: [ 'Tasks' ],
controllers: ['Tasks'],
launch: function() {
Ext.create('Todo.view.Main'),
this.getTasksStore().load();
Ext.History.init(function(history) {
this.setRoute(history.getToken());
}, this);
... | 24,089 |
https://github.com/microchip-pic-avr-examples/dpsk3-power-buck-peak-current-mode-control/blob/master/docs/a00532.js | Github Open Source | Open Source | ADSL | 2,021 | dpsk3-power-buck-peak-current-mode-control | microchip-pic-avr-examples | JavaScript | Code | 85 | 683 | var a00532 =
[
[ "buckADC_ChannelInitialize", "a00532.html#gac2bfd6c3ccd9ec11b8e91322ea9354d2", null ],
[ "buckADC_ModuleInitialize", "a00532.html#ga44f537d9ad5dcb0e744480802cfbf170", null ],
[ "buckADC_Start", "a00532.html#gab089e35bcd5d68072aa53298ee276959", null ],
[ "buckDAC_ChannelInitialize", "a00... | 24,507 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.