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/cunningt/teiid-komodo/blob/master/ui/beetle-lib/src/dataservices/odata-control/odata.model.ts | Github Open Source | Open Source | Apache-2.0 | null | teiid-komodo | cunningt | TypeScript | Code | 1,862 | 4,597 | /**
* @license
* Copyright 2017 JBoss Inc
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law o... | 40,316 |
https://github.com/geoff-phan/indexer/blob/master/cmd/block-generator/generator/server.go | Github Open Source | Open Source | MIT | null | indexer | geoff-phan | Go | Code | 296 | 966 | package generator
import (
"fmt"
"net/http"
"os"
"strings"
"github.com/spf13/viper"
"github.com/geoff-phan/indexer/util"
)
func initializeConfigFile(configFile string) (config GenerationConfig, err error) {
f, err := os.Open(configFile)
if err != nil {
return
}
viper.SetConfigType("yaml")
viper.AddCon... | 50,794 |
https://github.com/claudelmp/projetLaravel/blob/master/resources/views/index.blade.php | Github Open Source | Open Source | MIT | null | projetLaravel | claudelmp | PHP | Code | 154 | 675 | @extends('template_form')
@section('css')
<style>
.card-footer {
justify-content: center;
align-items: center;
padding: 0.4em;
}
select, .is-info {
margin: 0.3em;
}
</style>
@endsection
@section('content')
@if(session()->has('info'))
<div class="notification is-success">
... | 15,953 |
https://github.com/fredliang44/Valine-Admin/blob/master/cloud.js | Github Open Source | Open Source | MIT | null | Valine-Admin | fredliang44 | JavaScript | Code | 55 | 238 | const AV = require('leanengine');
const mail = require('./utilities/send-mail');
const spam = require('./utilities/check-spam');
AV.Cloud.afterSave('Comment', function (request) {
let currentComment = request.object;
// 检查垃圾评论
spam.checkSpam(currentComment);
// 发送博主通知邮件
mail.notice(currentComment)... | 41,132 |
https://github.com/cwardell97/learn-hippo-1/blob/master/src/train-sl-ms.py | Github Open Source | Open Source | MIT | null | learn-hippo-1 | cwardell97 | Python | Code | 1,555 | 9,021 | import os
import time
import torch
import argparse
import numpy as np
import matplotlib.pyplot as plt
import seaborn as sns
import pdb
import copy
from models import LCALSTM as Agent
from task import SequenceLearning
from exp_ms import run_ms
from analysis import compute_stats, compute_behav_metrics, compute_acc, \
... | 25,563 |
https://github.com/tomelam/gambit/blob/master/lib/_kernel#.scm | Github Open Source | Open Source | Apache-2.0, LGPL-2.1-only | 2,019 | gambit | tomelam | Scheme | Code | 904 | 4,927 | ;;;============================================================================
;;; File: "_kernel#.scm"
;;; Copyright (c) 1994-2019 by Marc Feeley, All Rights Reserved.
;;;============================================================================
;;; Representation of modules.
(##define-macro (macro-make-module... | 12,610 |
https://github.com/li5414/RPGCore/blob/master/RPGCore/Assets/RPGCore/Scripts/Item/Nodes/DestroyItemNode.cs | Github Open Source | Open Source | Apache-2.0 | 2,019 | RPGCore | li5414 | C# | Code | 74 | 252 | using RPGCore.Behaviour;
using RPGCore.Behaviour.Connections;
using System;
using UnityEngine;
namespace RPGCore
{
[NodeInformation ("Item/Destroy", "Inventory")]
public class DestroyItemNode : BehaviourNode
{
public EventInput Event;
public ItemInput Item;
public IntInput Count;
protected override void O... | 10,208 |
https://github.com/chrisbetz/static-http-kit/blob/master/src/templates/landing.tpl | Github Open Source | Open Source | MIT | null | static-http-kit | chrisbetz | null | Spoken | 116 | 484 | <!DOCTYPE html>
<html>
<!-- http://mustache.github.com/mustache.5.html -->
<head>
<!-- partial is just like copy and paste the template here -->
{{>partials/header}}
</head>
<body>
<div class="navbar navbar-inverse navbar-fixed-top">
<div class="navbar-inner">
<div class="container">
... | 25,388 |
https://github.com/toyteam/Stunixv6/blob/master/signal.h | Github Open Source | Open Source | MIT-0 | null | Stunixv6 | toyteam | C | Code | 100 | 362 |
enum Sig{
SIGALRM,
SIGHUP,
SIGINT,
SIGKILL
};
enum SiCode{
SI_USER,
SI_KERNEL,
SI_QUEUE,
SI_TIMER,
SI_ASYNCIO,
SI_TKILL
};
#define SIGRTMIN 0
#define SIGRTMAX 32
#define SIGMAX 64
typedef struct{
unsigned long sig[2];
}sigset_t;
typedef struct{
uint si_signo;
uin... | 38,930 |
https://github.com/JohnPKosh/IODataBlock/blob/master/IODataBlock/Business.Templates/RazorTemplateExtensions.cs | Github Open Source | Open Source | MIT | 2,016 | IODataBlock | JohnPKosh | C# | Code | 1,946 | 5,880 | //using Fasterflect;
using RazorEngine.Templating;
using System;
using System.Collections.Generic;
using System.Data;
using System.Dynamic;
using System.IO;
using System.Linq;
namespace Business.Templates
{
public static class RazorTemplateExtensions
{
#region Parse From Files
public static s... | 8,226 |
https://github.com/RichardQZeng/Regard3D/blob/master/src/R3DProject.cpp | Github Open Source | Open Source | MIT | 2,022 | Regard3D | RichardQZeng | C++ | Code | 5,330 | 24,628 | /**
* Copyright (C) 2015 Roman Hiestand
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of this software
* and associated documentation files (the "Software"), to deal in the Software without restriction,
* including without limitation the rights to use, copy, modify, merge, publi... | 6,686 |
https://github.com/HigorSnt/sismed/blob/master/src/controllers/AppointmentController.js | Github Open Source | Open Source | MIT | null | sismed | HigorSnt | JavaScript | Code | 301 | 906 | const connection = require('../database/connection');
module.exports = {
async create(request, response) {
if (request.category === 'patient') {
const patient_id = request.userId;
const { doctor, date } = request.body;
const d = await connection('doctor')
.where('crm', doctor.crm)
... | 5,338 |
https://github.com/Syedmaisam/Onar/blob/master/app/Http/Controllers/Seller/DomainController.php | Github Open Source | Open Source | MIT | 2,021 | Onar | Syedmaisam | PHP | Code | 482 | 2,269 | <?php
namespace App\Http\Controllers\Seller;
use App\Http\Controllers\Controller;
use Illuminate\Http\Request;
use Auth;
use App\Domain;
use App\Models\Userplan;
use App\Models\Requestdomain;
use App\Option;
use Carbon\Carbon;
use Http;
class DomainController extends Controller
{
public function index()
{
... | 7,207 |
https://github.com/banksbestrates/BankFx/blob/master/news/wp-content/plugins/wordfence/crypto/vendor/paragonie/sodium_compat/src/Core32/Salsa20.php | Github Open Source | Open Source | ISC, GPL-2.0-or-later, GPL-1.0-or-later, GPL-2.0-only, LicenseRef-scancode-unknown-license-reference, MIT | 2,020 | BankFx | banksbestrates | PHP | Code | 954 | 4,368 | <?php
// phpcs:ignoreFile -- compatibility library for PHP 5-7.1
if (class_exists('ParagonIE_Sodium_Core32_Salsa20', false)) {
return;
}
/**
* Class ParagonIE_Sodium_Core32_Salsa20
*/
abstract class ParagonIE_Sodium_Core32_Salsa20 extends ParagonIE_Sodium_Core32_Util
{
const ROUNDS = 20;
/**
* Cal... | 52,136 |
https://github.com/lilinji/azure-quickstart-templates/blob/master/101-azure-dns-new-zone/AzureDNSExample.ps1 | Github Open Source | Open Source | MIT | 2,019 | azure-quickstart-templates | lilinji | PowerShell | Code | 91 | 262 | # parameters
$rgName = "AzureDNSExample"
# set ARM mode
Switch-AzureMode AzureResourceManager
# login and select subscription context
Add-AzureAccount
# create the resource from the template - pass names as parameters
$scriptDir = Split-Path $MyInvocation.MyCommand.Path
New-AzureResourceGroup -Verbose -Force -N... | 26,952 |
https://github.com/kgudel/hmda-platform/blob/master/submission-errors/src/test/scala/hmda/submissionerrors/repositories/PostgresSubmissionErrorRepositorySpec.scala | Github Open Source | Open Source | CC0-1.0 | 2,022 | hmda-platform | kgudel | Scala | Code | 92 | 398 | package hmda.submissionerrors.repositories
import akka.actor.ActorSystem
import akka.testkit.TestKit
import hmda.model.filing.submission.SubmissionId
import hmda.utils.EmbeddedPostgres
import hmda.utils.YearUtils.Period
import monix.execution.Scheduler
import org.scalatest.{ FlatSpecLike, Matchers }
class PostgresSub... | 43,937 |
https://github.com/jridgewell/amp-react-prototype/blob/master/ampjsx/src/index.js | Github Open Source | Open Source | Apache-2.0 | 2,019 | amp-react-prototype | jridgewell | JavaScript | Code | 43 | 153 | import React from 'react';
import ReactDOM from 'react-dom';
import App from './App';
console.log('QQQQ: index.js');
ReactDOM.render(
<React.StrictMode>
<App />
</React.StrictMode>,
document.getElementById('root')
);
// import React from 'react';
// import SparseDoc from './stories/doc1.sparse';
// import ... | 8,665 |
https://github.com/kyleaton/great_expectations/blob/master/great_expectations/core/usage_statistics/anonymizers/datasource_anonymizer.py | Github Open Source | Open Source | Apache-2.0 | 2,020 | great_expectations | kyleaton | Python | Code | 64 | 373 | from great_expectations.core.usage_statistics.anonymizers.anonymizer import Anonymizer
from great_expectations.datasource import Datasource, PandasDatasource, SqlAlchemyDatasource, SparkDFDatasource
class DatasourceAnonymizer(Anonymizer):
def __init__(self, salt=None):
super(DatasourceAnonymizer, self).__... | 10,940 |
https://github.com/GsDevKit/Cryptography/blob/master/repository/Cryptography-MSCerts.package/MSCertificate.class/instance/privateExponent_d.st | Github Open Source | Open Source | MIT | 2,015 | Cryptography | GsDevKit | null | Spoken | 16 | 48 | accessing
privateExponent_d
"Answer the value of privateExponent_d"
| pText |
pText := self decrypt: privateExponent_d.
^pText | 33,887 |
https://github.com/xychen2022/3DFasterRCNN/blob/master/landmark_detection_group1_size24.py | Github Open Source | Open Source | BSD-2-Clause | 2,022 | 3DFasterRCNN | xychen2022 | Python | Code | 9,080 | 31,479 | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Fri Dec 14 15:24:23 2018
@author: xiaoyangchen
"""
import os
import random
import datetime
import re
import math
import h5py
import logging
import SimpleITK as sitk
from collections import OrderedDict
import multiprocessing
import numpy as np
import tenso... | 32,867 |
https://github.com/yezhongqiang/parallec/blob/master/src/main/java/io/parallec/core/actor/message/type/ExecutionManagerMsgType.java | Github Open Source | Open Source | Apache-2.0 | 2,020 | parallec | yezhongqiang | Java | Code | 24 | 70 | package io.parallec.core.actor.message.type;
/**
* The Enum ExecutionManagerMsgType.
*/
public enum ExecutionManagerMsgType {
/** The operation timeout. */
OPERATION_TIMEOUT,
/** The cancel. */
CANCEL
} | 20,845 |
https://github.com/estringana/mybet/blob/master/database/factories/ModelFactory.php | Github Open Source | Open Source | MIT | null | mybet | estringana | PHP | Code | 318 | 1,261 | <?php
/*
|--------------------------------------------------------------------------
| Model Factories
|--------------------------------------------------------------------------
|
| Here you may define all of your model factories. Model factories give
| you a convenient way to create models for testing and seeding yo... | 31,317 |
https://github.com/miniupnp/miniupnp/blob/master/miniupnpd/bsd/getroute.c | Github Open Source | Open Source | BSD-3-Clause | 2,023 | miniupnp | miniupnp | C | Code | 491 | 1,718 | /* $Id: getroute.c,v 1.15 2020/05/10 22:24:11 nanard Exp $ */
/* MiniUPnP project
* http://miniupnp.free.fr/ or http://miniupnp.tuxfamily.org/
* (c) 2006-2020 Thomas Bernard
* This software is subject to the conditions detailed
* in the LICENCE file provided within the distribution */
#include <stdio.h>
#include <... | 2,712 |
https://github.com/JetBrains/phpstorm-stubs/blob/master/xdiff/xdiff.php | Github Open Source | Open Source | Apache-2.0, CC-BY-3.0, LicenseRef-scancode-unknown-license-reference | 2,023 | phpstorm-stubs | JetBrains | PHP | Code | 1,429 | 3,085 | <?php
use JetBrains\PhpStorm\ExpectedValues;
/**
* Read a size of file created by applying a binary diff
* @link https://www.php.net/manual/en/function.xdiff-file-bdiff-size.php
* @param string $file The path to the binary patch created by xdiff_string_bdiff() or xdiff_string_rabdiff() function
* @return int the ... | 38,257 |
https://github.com/JamesWatling/loomio/blob/master/db/migrate/20120326091356_make_existing_groups_private.rb | Github Open Source | Open Source | MIT | 2,012 | loomio | JamesWatling | Ruby | Code | 19 | 61 | class MakeExistingGroupsPrivate < ActiveRecord::Migration
def up
Group.all.each do |group|
group.viewable_by = :members
group.save
end
end
def down
end
end
| 48,336 |
https://github.com/jussijartamo/docs-editor/blob/master/dist/tryInsertAtomicBlock.js | Github Open Source | Open Source | MIT | 2,021 | docs-editor | jussijartamo | JavaScript | Code | 79 | 216 | 'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _warn = require('./warn');
var _warn2 = _interopRequireDefault(_warn);
var _draftJs = require('draft-js');
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
// Core helper function.
// ... | 40,179 |
https://github.com/zhangshaohua001/wechat/blob/master/common/models/routes/Routes.php | Github Open Source | Open Source | BSD-3-Clause | null | wechat | zhangshaohua001 | PHP | Code | 154 | 599 | <?php
namespace common\models\routes;
use yii\db\ActiveRecord;
/**
* Created by PhpStorm.
* User: zsh
* Date: 17-2-26
* Time: 下午4:14
*/
class Routes extends ActiveRecord
{
public static function tableName()
{
return 'routes';
}
public static function tableDesc(){
return '路由';
... | 47,031 |
https://github.com/eyecreate/robotnix/blob/master/pkgs/diffoscope/0002-libguestfs-mount-readonly.patch | Github Open Source | Open Source | MIT | 2,020 | robotnix | eyecreate | null | Spoken | 79 | 298 | From 981df6e92ba00102be8b3dc49b876f94ed726529 Mon Sep 17 00:00:00 2001
From: Daniel Fullmer <danielrf12@gmail.com>
Date: Fri, 29 May 2020 18:14:35 -0400
Subject: [PATCH 2/3] libguestfs: mount readonly
---
diffoscope/comparators/fsimage.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/diffoscope/... | 5,918 |
https://github.com/MichaelMahn/c3t2c3b/blob/master/Classes/src/readers/FbxConverter.h | Github Open Source | Open Source | MIT | 2,021 | c3t2c3b | MichaelMahn | C | Code | 4,626 | 16,288 | /*******************************************************************************
* Copyright 2011 See AUTHORS file.
*
* 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.a... | 18,288 |
https://github.com/fu896448817/mmorpg/blob/master/gameserver/src/main/java/com/wan37/gameServer/game/gameSceneObject/model/NPC.java | Github Open Source | Open Source | MIT | 2,018 | mmorpg | fu896448817 | Java | Code | 49 | 199 | package com.wan37.gameServer.game.gameSceneObject.model;
import lombok.Data;
import com.wan37.gameServer.game.sceneObject.model.SceneObject;
import java.text.MessageFormat;
/**
* @author gonefuture gonefuture@qq.com
* time 2018/9/29 16:25
* @version 1.00
* Description: NPC
*/
@Data
public class NPC extends ... | 2,084 |
https://github.com/efulet/pca/blob/master/pca/lib/pca_lda.py | Github Open Source | Open Source | MIT | null | pca | efulet | Python | Code | 546 | 1,885 | """
@created_at 2014-07-19
@author Exequiel Fuentes <efulet@gmail.com>
@author Brian Keith <briankeithn@gmail.com>
"""
# Se recomienda seguir los siguientes estandares:
# 1. Para codificacion: PEP 8 - Style Guide for Python Code (http://legacy.python.org/dev/peps/pep-0008/)
# 2. Para documentacion: PEP 257 - Docst... | 40,272 |
https://github.com/GlennCavarle/Walrus/blob/master/src/Walrus-Metadata/WRMetadataClassMethodLoader.class.st | Github Open Source | Open Source | MIT | 2,019 | Walrus | GlennCavarle | null | Spoken | 26 | 81 | Class {
#name : #WRMetadataClassMethodLoader,
#superclass : #WRAbstractMetadataLoader,
#category : #'Walrus-Metadata-Loader'
}
{ #category : #public }
WRMetadataClassMethodLoader >> loadClassMetadataForClass: aClass [
^ aClass walrusMetadata
]
| 42,020 |
https://github.com/contentful/markdown-to-jsx/blob/master/index.js | Github Open Source | Open Source | MIT | 2,020 | markdown-to-jsx | contentful | JavaScript | Code | 4,779 | 15,002 | /* @jsx h */
/**
* markdown-to-jsx@6 is a fork of [simple-markdown v0.2.2](https://github.com/Khan/simple-markdown)
* from Khan Academy. Thank you Khan devs for making such an awesome and extensible
* parsing infra... without it, half of the optimizations here wouldn't be feasible. 🙏🏼
*/
import React from 'react'... | 50,671 |
https://github.com/lickey10/Unity/blob/master/WaterBalloonDrop/Assets/ZRNAssets/PQAssets/Prefabs/effect/Materials/effect_star1.mat.meta | Github Open Source | Open Source | CC-BY-4.0 | 2,019 | Unity | lickey10 | Unity3D Asset | Code | 6 | 40 | fileFormatVersion: 2
guid: 826b7571f78896b44b6746c144b5acec
NativeFormatImporter:
userData:
| 32,255 |
https://github.com/vdor/tkmp-api/blob/master/core/features/day/repository/memory_test.go | Github Open Source | Open Source | Apache-2.0 | 2,021 | tkmp-api | vdor | Go | Code | 26 | 148 | package repository
import (
"github.com/stretchr/testify/assert"
"github.com/vdor/tkmp-api/core/domain"
"github.com/vdor/tkmp-api/core/domain/repository"
"testing"
)
func TestMemoryRepo_List(t *testing.T) {
repo := NewMemoryRepo(repository.MemoryEntitiesMocked)
days, err := repo.List(&domain.DayFilter{})
asse... | 15,297 |
https://github.com/fengcode-git/GAsk/blob/master/GAsk/GAsk/Library/Enums/FilterType.cs | Github Open Source | Open Source | MIT | null | GAsk | fengcode-git | C# | Code | 60 | 214 | using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Threading.Tasks;
namespace GAsk.Library.Enums
{
/// <summary>
/// 过滤类型
/// </summary>
public enum FilterType
{
/// <summary>
/// 所有最新
/// </summary>
[Descrip... | 21,029 |
https://github.com/jason-math/HackBot/blob/master/cogs/peripheral.py | Github Open Source | Open Source | MIT | 2,021 | HackBot | jason-math | Python | Code | 125 | 465 | import discord
from discord.ext import commands
from discord.utils import get
from utils import *
class Peripheral(commands.Cog):
def __init__(self, bot):
self.bot = bot
@commands.Cog.listener()
async def on_raw_reaction_add(self, payload):
message_id = 839627125577351168
user = p... | 45,137 |
https://github.com/IceForgTW/DepthSenseGrabber/blob/master/DepthSenseGrabberDump/DepthSenseGrabberPostProcess.cxx | Github Open Source | Open Source | MIT | 2,016 | DepthSenseGrabber | IceForgTW | C++ | Code | 1,159 | 4,201 | // DepthSenseGrabber
// http://github.com/ph4m
#ifdef _MSC_VER
#include <windows.h>
#endif
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#define _USE_MATH_DEFINES
#include <math.h>
#include <vector>
#include <exception>
#include "DepthSenseGrabberPostProcess.hxx"
#include "../DepthSenseGrabberCore/DepthSe... | 12,974 |
https://github.com/gerashegalov/aardpfark/blob/master/src/test/scala/com/ibm/aardpfark/spark/ml/feature/IDFSuite.scala | Github Open Source | Open Source | Apache-2.0 | 2,022 | aardpfark | gerashegalov | Scala | Code | 109 | 466 | package com.ibm.aardpfark.spark.ml.feature
import com.ibm.aardpfark.pfa.{Result, SparkFeaturePFASuiteBase}
import org.apache.spark.sql.functions.{col, udf}
import org.apache.spark.ml.feature._
import org.apache.spark.ml.linalg.Vector
class IDFSuite extends SparkFeaturePFASuiteBase[IDFResult] {
val sentenceData = s... | 8,183 |
https://github.com/chipfunk/nomios-web-uikit/blob/master/stories/text-input.js | Github Open Source | Open Source | MIT | 2,020 | nomios-web-uikit | chipfunk | JavaScript | Code | 189 | 510 | import React from 'react';
import { storiesOf } from '@storybook/react';
import { withKnobs, select, text, number, boolean } from '@storybook/addon-knobs';
import { withReadme } from 'storybook-readme';
import { TextInput } from '../src';
import readme from '../src/components/text-input/README.md';
storiesOf('TextInpu... | 36,523 |
https://github.com/OpenConext/OpenConext-Teams-NG/blob/master/teams-gui/src/components/SearchBar.scss | Github Open Source | Open Source | Apache-2.0 | 2,023 | OpenConext-Teams-NG | OpenConext | SCSS | Code | 77 | 254 | @import "../styles/vars.scss";
.search-bar {
border: 1px solid $primary-grey;
color: black;
width: 300px;
background-color: white;
border-radius: 4px;
padding: 10px 8px 8px;
vertical-align: middle;
position: relative;
&:hover {
border: 1px solid #050e1d;
}
&.focus ... | 44,447 |
https://github.com/ucbtheatre/dcm-ios/blob/master/DCM/DCMPerformerScheduleViewController.h | Github Open Source | Open Source | MIT | 2,018 | dcm-ios | ucbtheatre | Objective-C | Code | 39 | 114 | //
// DCMPerformerScheduleViewController.h
// DCM
//
// Created by Benjamin Ragheb on 6/8/15.
// Copyright (c) 2015 Upright Citizens Brigade LLC. All rights reserved.
//
#import "DCMScheduleViewController.h"
@class Performer;
@interface DCMPerformerScheduleViewController : DCMScheduleViewController
@property (no... | 27,393 |
https://github.com/sh-khashimov/dmswift/blob/master/Sources/DMSwift/Downloader/Models/DownloadError.swift | Github Open Source | Open Source | MIT | 2,020 | dmswift | sh-khashimov | Swift | Code | 236 | 514 | //
// DownloadError.swift
// DMSwift
//
// Created by Sherzod Khashimov on 12/12/19.
// Copyright © 2019 Sherzod Khashimov. All rights reserved.
//
import Foundation
enum DownloadError: Error {
case cannotLoadFromNetwork(statusCode: Int)
case invalidFilename(path: String?)
case fileLocalURLCannotBeCre... | 21,299 |
https://github.com/JetBrains/resharper-unity/blob/master/debugger/ios-list-usb-devices/src/Program.cs | Github Open Source | Open Source | Apache-2.0 | 2,022 | resharper-unity | JetBrains | C# | Code | 175 | 544 | using System;
using System.Net.Sockets;
using System.Threading;
namespace JetBrains.Rider.Plugins.Unity.iOS.ListUsbDevices
{
internal static class Program
{
private static bool ourFinished;
private static int Main(string[] args)
{
if (args.Length != 2)
{
... | 24,890 |
https://github.com/massbrowser/android/blob/master/components/spellcheck/renderer/spellcheck_panel.h | Github Open Source | Open Source | BSD-3-Clause | 2,017 | android | massbrowser | C++ | Code | 125 | 504 | // Copyright 2017 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.
#ifndef COMPONENTS_SPELLCHECK_RENDERER_SPELLCHECK_PANEL_H
#define COMPONENTS_SPELLCHECK_RENDERER_SPELLCHECK_PANEL_H
#include "base/macros.h"
#include "co... | 40,777 |
https://github.com/SlothKun/AdventOfCode2020_Solutions/blob/master/5/part1/part1.cpp | Github Open Source | Open Source | MIT | 2,020 | AdventOfCode2020_Solutions | SlothKun | C++ | Code | 307 | 705 | #include <iostream>
#include <list>
#include <fstream>
#include <string>
#include <cstring>
#include <vector>
#include <cmath>
using namespace std;
int main() {
fstream my_file;
my_file.open("input/input.txt", ios::in);
string line;
float highest_id = 0;
float actual_id = 0;
float actual_... | 7,837 |
https://github.com/adevinta/vulcan-checks-bsys/blob/master/config/config.go | Github Open Source | Open Source | MIT | null | vulcan-checks-bsys | adevinta | Go | Code | 182 | 691 | /*
Copyright 2019 Adevinta
*/
package config
import (
"io/ioutil"
"os"
"path/filepath"
"fmt"
"github.com/BurntSushi/toml"
"os/user"
)
// Cfg contains the loaded confing.
var Cfg Config
// Config stores the configuration needed by the build system.
type Config struct {
DockerAPIBaseURL string `toml:"... | 46,165 |
https://github.com/zakariapermana/pemilu/blob/master/pemilu.sql | Github Open Source | Open Source | BSD-3-Clause | 2,018 | pemilu | zakariapermana | SQL | Code | 485 | 1,661 | -- phpMyAdmin SQL Dump
-- version 4.5.1
-- http://www.phpmyadmin.net
--
-- Host: 127.0.0.1
-- Generation Time: Jan 15, 2018 at 07:22 AM
-- Server version: 10.1.8-MariaDB
-- PHP Version: 5.6.14
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLI... | 8,950 |
https://github.com/ezilocchi/iBee/blob/master/Source/WeatherService/src/controller/alarma/GestorHistorialAlarma.java | Github Open Source | Open Source | Unlicense | 2,014 | iBee | ezilocchi | Java | Code | 566 | 2,569 | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package controller.alarma;
import controller.*;
import alarma.Alarma;
import alarma.Criticidad;
import alarma.EstadoAlarma;
import alarma.HistorialAlarma;
import alarma.Periodicidad;
import alarma.TipoAlarma;
import ja... | 45,302 |
https://github.com/ThePHPGuys/extjs-php-wrapper/blob/master/src/Grid/Filters/Filter/String.php | Github Open Source | Open Source | MIT | 2,015 | extjs-php-wrapper | ThePHPGuys | PHP | Code | 9 | 27 | <?php
namespace Ext\Grid\Filters\Filter;
class String extends SingleFilter
{
} | 1,556 |
https://github.com/amdhacks/Cirq/blob/master/cirq/circuits/text_diagram_drawer_test.py | Github Open Source | Open Source | Apache-2.0 | 2,020 | Cirq | amdhacks | Python | Code | 268 | 930 | # Copyright 2018 The Cirq Developers
#
# 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 in ... | 3,072 |
https://github.com/zendesk/sunshine-conversations-javascript/blob/master/src/sunshine-conversations-client/sunshine-conversations-client.model/MessageWebhook.js | Github Open Source | Open Source | Apache-2.0 | 2,022 | sunshine-conversations-javascript | zendesk | JavaScript | Code | 758 | 2,260 | /**
* Sunshine Conversations API
*
* The version of the OpenAPI document: 9.4.5
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
*
* OpenAPI Generator version: 4.3.1
*
* Do not edit the class manually.
*
*/
import ApiClient from '... | 2,842 |
https://github.com/wapalxj/GraduationDesign/blob/master/GraduationDesign/eIM/src/main/java/csdn/shimiso/eim/util/TimestampTool.java | Github Open Source | Open Source | Apache-2.0 | null | GraduationDesign | wapalxj | Java | Code | 1,612 | 5,605 | package csdn.shimiso.eim.util;
import java.sql.Timestamp;
import java.text.ParseException;
import java.text.ParsePosition;
import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Date;
import java.util.GregorianCalendar;
public class TimestampTool {
/**
* 将毫秒转成时间
*/
public static String ... | 44,614 |
https://github.com/wowsomeco/unity_wowcore/blob/master/Runtime/twodee/scripts/particles/WParticleObject.cs | Github Open Source | Open Source | MIT | 2,022 | unity_wowcore | wowsomeco | C# | Code | 111 | 355 | using UnityEngine;
using Wowsome.Generic;
namespace Wowsome.TwoDee {
public class WParticleObject : IPoolObject {
public bool IsPlaying => _particle.isPlaying;
public string ObjId => _id;
public Vector3 Position {
get => _particle.transform.position;
set {
_particle.transform.positio... | 51,059 |
https://github.com/dmail/dev-server/blob/master/old/test/execution/process_disconnect/process_disconnect_launch_node.test.js | Github Open Source | Open Source | MIT | null | dev-server | dmail | JavaScript | Code | 122 | 434 | import { assert } from "@jsenv/assert"
import { resolveUrl, urlToRelativeUrl } from "@jsenv/filesystem"
import { execute, nodeRuntime } from "@jsenv/core"
import { jsenvCoreDirectoryUrl } from "@jsenv/core/src/jsenv_file_urls.js"
import {
EXECUTE_TEST_PARAMS,
LAUNCH_TEST_PARAMS,
} from "@jsenv/core/test/TEST_PARA... | 19,535 |
https://github.com/Shifatullah/shoestore-products-django/blob/master/shoestore-products-django/shoestore_products_django/__init__.py | Github Open Source | Open Source | MIT | null | shoestore-products-django | Shifatullah | Python | Code | 5 | 17 | """
Package for shoestore_products_django.
"""
| 1,610 |
https://github.com/tdzhang/cs140/blob/master/src/.gitignore | Github Open Source | Open Source | MIT-Modern-Variant, LicenseRef-scancode-unknown-license-reference, MIT | 2,014 | cs140 | tdzhang | Ignore List | Code | 14 | 42 | cscope.files
cscope.out
# tags
*.TAGS*
*.tags*
# object files
*.o
# subline text
*.sublime-*
| 24,932 |
https://github.com/zizoumgs/sarung/blob/master/app/views/sarung/admin/pelanggaran/nama_pelanggaran/edit.blade.php | Github Open Source | Open Source | MIT | null | sarung | zizoumgs | PHP | Code | 123 | 531 | @extends('layouts.admin')
@section('title')
Nama Pelanggaran | Edit
@stop
@section('content')
<h1 class="title">Edit Nama Pelanggaran
<a href="{{ root::get_url_admin_nama_pelanggaran()}}" class="btn btn-primary btn-xs" >View</a>
</h1>
<hr class="mar_25">
@if( Session::has('message') )
... | 42,224 |
https://github.com/prabhjyotsingh/cloudbreak/blob/master/core-api/src/main/java/com/sequenceiq/cloudbreak/api/endpoint/v4/kerberos/requests/AmbariKerberosDescriptor.java | Github Open Source | Open Source | Apache-2.0 | null | cloudbreak | prabhjyotsingh | Java | Code | 86 | 382 | package com.sequenceiq.cloudbreak.api.endpoint.v4.kerberos.requests;
import static com.sequenceiq.cloudbreak.doc.ModelDescriptions.StackModelDescription.DESCRIPTOR;
import static com.sequenceiq.cloudbreak.doc.ModelDescriptions.StackModelDescription.KRB_5_CONF;
import com.sequenceiq.cloudbreak.type.KerberosType;
impor... | 50,854 |
https://github.com/milo/github-api/blob/master/tests/Github/OAuth/Login.phpt | Github Open Source | Open Source | MIT, Unlicense | 2,022 | github-api | milo | PHP | Code | 372 | 1,908 | <?php
declare(strict_types=1);
/**
* @author Miloslav Hůla
*
* @testCase
*/
require __DIR__ . '/../../bootstrap.php';
class MockClient implements Milo\Github\Http\IClient
{
/** @var callable */
public $onRequest;
public function request(Milo\Github\Http\Request $request): Milo\Github\Http\Response
{
re... | 36,807 |
https://github.com/monax/peptide/blob/master/cmd/protoc-gen-go-peptide/testdata/imports/fmt/m.pb.go | Github Open Source | Open Source | BSD-3-Clause | null | peptide | monax | Go | Code | 478 | 2,372 | // Copyright 2018 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// Code generated by protoc-gen-go-peptide. DO NOT EDIT.
// source: cmd/protoc-gen-go-peptide/testdata/imports/fmt/m.proto
package fmt
import (
protoreflect ... | 22,549 |
https://github.com/ken0621/pressIQ/blob/master/public/assets/member/sass/item_add_v2.scss | Github Open Source | Open Source | MIT | 2,018 | pressIQ | ken0621 | SCSS | Code | 119 | 542 | .section-title
{
font-weight: bold !important;
font-size: 14px !important;
text-transform: uppercase;
text-align: center;
margin-top: 30px;
&.first
{
margin-top: 0;
}
}
.item-type-picker
{
.tp-picker
{
padding: 10px;
border-bottom: 1px solid #eee;
cursor: pointer;
.tp-icon
{
font-size: 30px;
... | 32,799 |
https://github.com/ardeshir/gohazel/blob/master/code-samples/distributed-primitives/atomiclong-functions/src/main/java/Member.java | Github Open Source | Open Source | Apache-2.0, MIT | null | gohazel | ardeshir | Java | Code | 111 | 466 | import com.hazelcast.core.Hazelcast;
import com.hazelcast.core.HazelcastInstance;
import com.hazelcast.core.IAtomicLong;
import com.hazelcast.core.IFunction;
public class Member {
public static void main(String[] args) {
HazelcastInstance hz = Hazelcast.newHazelcastInstance();
IAtomicLong atomicLo... | 22,536 |
https://github.com/aticu/VeOS/blob/master/kernel/src/arch/x86_64/vga_buffer.rs | Github Open Source | Open Source | MIT | 2,018 | VeOS | aticu | Rust | Code | 739 | 1,874 | //! Handles IO using VGA.
//!
//! This module is used to handle IO with the basic VGA interface usually
//! located at 0xb8000;
use boot;
use core::fmt;
use core::ptr::Unique;
use memory::VirtualAddress;
use sync::Mutex;
use volatile::Volatile;
/// Represents a color in the buffer.
#[allow(dead_code)]
#[repr(u8)]
#[d... | 829 |
https://github.com/dvasin/JavaRush/blob/master/src/com/javarush/test/level32/lesson08/home01/Solution.java | Github Open Source | Open Source | Apache-2.0 | null | JavaRush | dvasin | Java | Code | 140 | 471 | package com.javarush.test.level32.lesson08.home01;
import java.lang.reflect.Proxy;
/* Создание прокси-объекта
1) В отдельном файле создать публичный класс CustomInvocationHandler, который будет хэндлером при создании прокси-объекта.
2) CustomInvocationHandler должен иметь один публичный конструктор с одним агументом ... | 39,265 |
https://github.com/rfranzke/gardener-extension-shoot-cert-service/blob/master/go.mod | Github Open Source | Open Source | BSD-3-Clause, MIT, Apache-2.0 | 2,020 | gardener-extension-shoot-cert-service | rfranzke | Go Module | Code | 80 | 764 | module github.com/gardener/gardener-extension-shoot-cert-service
go 1.13
require (
github.com/ahmetb/gen-crd-api-reference-docs v0.1.5
github.com/gardener/gardener v0.35.1-0.20200128130120-5b69a02f511a
github.com/gardener/gardener-extensions v1.3.0
github.com/go-logr/logr v0.1.0
github.com/gobuffalo/packr/v2 v2.... | 26,435 |
https://github.com/Alfresco/generator-alfresco-adf-app/blob/master/__tests__/app.js | Github Open Source | Open Source | Apache-2.0 | 2,021 | generator-alfresco-adf-app | Alfresco | JavaScript | Code | 345 | 1,872 | 'use strict';
const path = require('path');
const assert = require('yeoman-assert');
const helpers = require('yeoman-test');
describe('Alfresco component generator', () => {
describe('Content Service', () => {
beforeEach(() => {
return helpers.run(path.join(__dirname, '../app'))
.withPrompts({
... | 24,695 |
https://github.com/SystemFiles/SQL-SpecialtyImports-Case-Study/blob/master/Inquire_Forms_Views.sql | Github Open Source | Open Source | Apache-2.0 | null | SQL-SpecialtyImports-Case-Study | SystemFiles | SQL | Code | 2,463 | 7,602 | -- User Interaction Script for database for Specialty Imports --
-- By: Benjamin D. Sykes (991487635), Amar Khan, Liam Stickney
-- Desc: A Program to create views and Interaction from user
-- TODO: NONE WE DONE --
-- Create Entry Sales Invoice --
VARIABLE g_output VARCHAR2(32000)
ACCEPT p_saleinv PROMPT 'Enter sale... | 6,333 |
https://github.com/barend-erasmus/shipping-system/blob/master/src/commands/cancel-order.ts | Github Open Source | Open Source | MIT | 2,018 | shipping-system | barend-erasmus | TypeScript | Code | 20 | 44 | import { ICommand } from '../interfaces/command';
export class CancelOrderCommand implements ICommand {
constructor(public id: string, public orderId: string) {}
}
| 33,847 |
https://github.com/gromstone/prm-headless_react/blob/master/src/Components/BlogView/BlogView.js | Github Open Source | Open Source | MIT | null | prm-headless_react | gromstone | JavaScript | Code | 233 | 768 | import React from 'react';
import { Link } from 'react-router-dom';
import { graphql } from 'react-apollo';
import gql from 'graphql-tag';
const POSTS_PER_PAGE = 4;
const blog = ({data:{loading, error, posts, postsConnection, networkStatus}, loadMorePosts }) => {
if (error) return <h1>Error fetching posts!</h1>;
... | 6,584 |
https://github.com/EmreKeskin47/laundrativeMobile/blob/master/src/assets/scss/ion-chip.scss | Github Open Source | Open Source | MIT | 2,021 | laundrativeMobile | EmreKeskin47 | SCSS | Code | 114 | 456 | //ION-CHIP IN PROFILE
.ion-chip-label {
font-size: 0.85rem;
font-family: "Avenir";
margin-top: 0.3rem;
margin-left: 0.6rem;
}
.ion-chip-container {
width: 97%;
height: 3rem;
background-color: whitesmoke;
justify-content: space-between;
margin-left: 5px;
margin-top: 0.5rem;
margin-bottom: 0.5rem;
... | 25,698 |
https://github.com/nayanshah/BuildXL/blob/master/Public/Src/Cache/ContentStore/Grpc/Messages/RequestHeader.cs | Github Open Source | Open Source | MIT | 2,020 | BuildXL | nayanshah | C# | Code | 72 | 140 | // Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
using System;
// We can't rename the Protobuff namespace so we'll have to keep these old global namespaces around.
namespace ContentStore.Grpc
{
/// <nodoc />
... | 38,895 |
https://github.com/blakebrannon/OEAM/blob/master/Project/awAcmeNotes/MenuViewController.h | Github Open Source | Open Source | MIT | 2,013 | OEAM | blakebrannon | Objective-C | Code | 59 | 189 | //
// MenuViewController.h
// awAcmeNotes
//
// Created by Bill DeWeese on 8/26/13.
// Copyright (c) 2013 AirWatch. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface MenuViewController : UIViewController<UITableViewDataSource, UITableViewDelegate>
@property (nonatomic, weak) IBOutlet UITableView* tableV... | 31,540 |
https://github.com/wulinyun/lumify/blob/master/web/war/src/main/webapp/js/util/retina.js | Github Open Source | Open Source | Apache-2.0 | 2,022 | lumify | wulinyun | JavaScript | Code | 180 | 636 |
define([], function() {
'use strict';
function Retina() {
var self = this,
properties = 'x y z w h'.split(' '),
zoomSvg,
getZoomRatio = function() {
if (!zoomSvg) {
zoomSvg = document.createElementNS('http://www.w3.org/2000/svg',... | 18,015 |
https://github.com/gdewald/Spacefrog/blob/master/jni/external/zenilib/zeni_audio/Sound_Stream_AL.cpp | Github Open Source | Open Source | BSD-2-Clause | null | Spacefrog | gdewald | C++ | Code | 629 | 2,898 | #include <zeni_audio.h>
#include <iostream>
#ifndef DISABLE_AL
#include <Zeni/Define.h>
namespace Zeni {
Sound_Stream_AL::Sound_Stream_AL(const String &path, const bool &looping_, const float &time_)
: buffers_used(0),
looping(looping_)
{
if(!dynamic_cast<Sound_Renderer_AL *>(&get_Sound().get_Rende... | 35,955 |
https://github.com/SvetozarLd/AcntServer/blob/master/AccentBase/AccentBase/Ftp/FtpPreviewRecieve.cs | Github Open Source | Open Source | Apache-2.0 | null | AcntServer | SvetozarLd | C# | Code | 736 | 2,413 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Collections.Concurrent;
using System.IO;
using System.Diagnostics;
using System.Threading;
namespace AccentBase.Ftp
{
static class FtpPreviewRecieve
{
public static Concurren... | 32,321 |
https://github.com/RomanCPodolski/notizverwaltung/blob/master/INSTALL.rdoc | Github Open Source | Open Source | MIT | 2,014 | notizverwaltung | RomanCPodolski | RDoc | Code | 234 | 433 | = Install instructions for Notizverwaltung
== Components
=== Rails
==== Windows / OsX
We recomment to use Railsinstaller - http://railsinstaller.org - to set up Ruby On Rails on Windows or OsX
===== contents of Railsinstaller
* Ruby 1.9.3
* Rails 3.2
* Bundler
* Git
* Sqlite
* TinyTDS
* SQL Server Support
*... | 46,765 |
https://github.com/ace53thntu/test-gatsby/blob/master/src/components/Home/monitor/index.js | Github Open Source | Open Source | MIT | null | test-gatsby | ace53thntu | JavaScript | Code | 270 | 624 | import React from 'react'
import Img from 'gatsby-image'
import { useStaticQuery, graphql } from 'gatsby'
export default function Montior() {
const data = useStaticQuery(graphql`
query {
ourDashboard: file(relativePath: { eq: "our-dashboard-img.jpg" }) {
childImageSharp {
fluid(maxWidth: ... | 31,385 |
https://github.com/luglio/hpx5/blob/master/libhpx/network/pwc/lco_get.cpp | Github Open Source | Open Source | BSD-3-Clause | 2,019 | hpx5 | luglio | C++ | Code | 1,054 | 2,720 | // =============================================================================
// High Performance ParalleX Library (libhpx)
//
// Copyright (c) 2013-2017, Trustees of Indiana University,
// All rights reserved.
//
// This software may be modified and distributed under the terms of the BSD
// license. See the C... | 16,316 |
https://github.com/OlivierCoue/Minock/blob/master/src/myGame/Lever.java | Github Open Source | Open Source | MIT | null | Minock | OlivierCoue | Java | Code | 430 | 1,641 | package myGame;
import java.awt.Graphics;
import java.awt.event.KeyEvent;
import java.awt.image.BufferedImage;
import java.io.File;
import java.io.IOException;
import javax.imageio.ImageIO;
import javax.swing.JLayeredPane;
public class Lever {
private JLayeredPane leverImg;
private BufferedImage img = null;
pri... | 8,203 |
https://github.com/Chris-Otey/rbtools/blob/master/rbtools/commands/tests/test_main.py | Github Open Source | Open Source | MIT | null | rbtools | Chris-Otey | Python | Code | 273 | 894 | """Tests for RBTools help command and rbt command help options."""
from __future__ import unicode_literals
from rbtools.utils.process import execute
from rbtools.utils.testbase import RBTestBase
class HelpCommandTests(RBTestBase):
"""Tests for RBT help command and rbt command help options."""
def test_help... | 15,693 |
https://github.com/ian-skinny-welsh/snooker-o/blob/master/app/helpers/scorers/AdultsScorer.scala | Github Open Source | Open Source | CC0-1.0 | null | snooker-o | ian-skinny-welsh | Scala | Code | 220 | 799 | package helpers.scorers
import helpers.BallControlsInUse
import models.BallColour._
import models._
object AdultsScorer extends Scorer {
def calcScoresForAllPunches(punchedControls: PunchedControls): PunchResults = {
def processList(previous: List[PunchResult], remaining: List[ControlCode], requiredColour: Ba... | 35,200 |
https://github.com/RekingZhang/fetch-s/blob/master/test/core/jsonp.spec.js | Github Open Source | Open Source | MIT | 2,022 | fetch-s | RekingZhang | JavaScript | Code | 64 | 268 | import fetchs from './../../src/fetchs';
// See http://doc.jsfiddle.net/use/echo.html
let url = 'http://jsfiddle.net/echo/jsonp/';
describe('JSONP单元测试', () => {
let originalTimeout;
beforeEach(function () {
originalTimeout = jasmine.DEFAULT_TIMEOUT_INTERVAL;
jasmine.DEFAULT_TIMEOUT_INTERVAL = 10000;
});
afte... | 33,098 |
https://github.com/etclabscore/evm_llvm/blob/master/test/MC/Mips/memory-offsets.s | Github Open Source | Open Source | NCSA, LLVM-exception, Apache-2.0 | 2,020 | evm_llvm | etclabscore | null | Spoken | 361 | 1,287 | # RUN: llvm-mc -arch=mips -mcpu=mips32 -show-encoding %s | FileCheck %s
# Check that parseMemOperand handles expressions such as <int>, (<int>),
# <expr>, <expr> op <expr>, (<expr>) op (<expr>).
.global __start
.ent __start
__start:
lw $31, ($29) # CHECK: lw $ra, 0($sp) # en... | 4,327 |
https://github.com/paeybu/ud839_Miwok/blob/master/app/src/main/java/com/example/android/miwok/NumbersFragment.java | Github Open Source | Open Source | Apache-2.0 | null | ud839_Miwok | paeybu | Java | Code | 637 | 1,970 | package com.example.android.miwok;
import android.content.Context;
import android.media.AudioManager;
import android.media.MediaPlayer;
import android.net.Uri;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
... | 35,136 |
https://github.com/lcostantino/mistral/blob/master/mistral/tests/unit/actions/test_std_adhoc_action.py | Github Open Source | Open Source | Apache-2.0 | 2,014 | mistral | lcostantino | Python | Code | 307 | 1,021 | # -*- coding: utf-8 -*-
#
# Copyright 2014 - Mirantis, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless requir... | 1,047 |
https://github.com/ar-android/lwjgl-dynamic-terrain/blob/master/src/terrain/TerrainGenerator.java | Github Open Source | Open Source | MIT | null | lwjgl-dynamic-terrain | ar-android | Java | Code | 891 | 2,147 | package terrain;
import org.lwjgl.util.vector.Vector3f;
/**
* Using noise generates and holds the terrain height map as 2D array
* @author smid
*
*/
public class TerrainGenerator {
// - amp 150, heightShigt 100, billow type, smooth 1
// - amp 200, heightShift 0, rigidMulti, smooth 7
private int xSize = 2048;... | 51,368 |
https://github.com/steveclown/cst_teams-main/blob/master/application/views/hroemployeetransfer/edittransactionalemployeetransfer_view.php | Github Open Source | Open Source | MIT | null | cst_teams-main | steveclown | PHP | Code | 554 | 2,906 | <script>
function ulang(){
document.getElementById("employee_id").value = "<?php echo $result['employee_id'] ?>";
document.getElementById("employee_transfer_date").value = "<?php echo $result['employee_transfer_date'] ?>";
document.getElementById("employee_transfer_remark").value = "<?php echo $result['employee_... | 23,048 |
https://github.com/Eumaser/testadata/blob/master/backend/web/assets/bootstrap/js/inventory.js | Github Open Source | Open Source | BSD-3-Clause | null | testadata | Eumaser | JavaScript | Code | 394 | 2,192 | var domain ="http://"+document.domain;
$('#btnChkBox').click(function(){
$('#btnUnChkBox').removeClass('hidden');
$('.partsChkbox').prop('checked',true);
$('#btnChkBox').addClass('hidden');
});
$('#btnUnChkBox').click(function(){
$('#btnChkBox').removeClass('hidden');
$('.partsChkbox').prop('checked',false);
$(... | 6,582 |
https://github.com/all-in-one-of/OpenWalter/blob/master/vfx_platform_builder/patches/Alembic/0005-AbcGeom-ability-to-add-replace-metadata-to-UVs.patch | Github Open Source | Open Source | libtiff | 2,022 | OpenWalter | all-in-one-of | null | Spoken | 128 | 420 | From 0c84b1e50a2e740d064cd9bb497ee3384d94eabc Mon Sep 17 00:00:00 2001
From: Victor Yudin <victor@rodeofx.com>
Date: Tue, 25 Apr 2017 16:25:02 -0400
Subject: [PATCH 05/10] AbcGeom: ability to add replace metadata to UVs
It matches the behavior of XForm. If the object is marked to write out some
properties only, we nee... | 49,291 |
https://github.com/codelobber/disquse/blob/master/Disgooseion/Classes/ModelLayer/DeckModel.swift | Github Open Source | Open Source | Apache-2.0 | null | disquse | codelobber | Swift | Code | 55 | 146 | //
// DeckModel.swift
// Disgooseion
//
// Created by allBeFine on 07.07.2020.
// Copyright © 2020 Codelobber. All rights reserved.
//
struct DeckModel {
let id: String
let text: LocalizebleString
let descript: LocalizebleString?
}
extension DeckModel {
func cardViewModel() -> CardViewModel {... | 46,817 |
https://github.com/JuliaIO/HDF5.jl/blob/master/src/filters/builtin.jl | Github Open Source | Open Source | MIT | 2,023 | HDF5.jl | JuliaIO | Julia | Code | 522 | 1,659 | """
Deflate(level=5)
Deflate/ZLIB lossless compression filter. `level` is an integer between 0 and 9,
inclusive, denoting the compression level, with 0 being no compression, 9 being the
highest compression (but slowest speed).
# External links
- $(h5doc("H5P_SET_DEFLATE"))
- [_Deflate_ on Wikipedia](https://en.wi... | 3,929 |
https://github.com/aurodev/UnrealCS/blob/master/Script/UnrealEngine/GeneratedScriptFile/FCompositeSubFont.cs | Github Open Source | Open Source | LicenseRef-scancode-unknown-license-reference, MIT | 2,018 | UnrealCS | aurodev | C# | Code | 68 | 143 | using System;
namespace UnrealEngine
{
public partial struct FCompositeSubFont
{
/// <summary>Typeface data for this sub-font</summary>
public FTypeface Typeface;
/// <summary>Amount to scale this sub-font so that it better matches the size of the default font</summary>
public float ScalingFactor;
/// <summ... | 22,459 |
https://github.com/bakgat/api.np/blob/master/app/Domain/Model/Reporting/FlatIAC.php | Github Open Source | Open Source | MIT | null | api.np | bakgat | PHP | Code | 250 | 875 | <?php
/**
* Created by PhpStorm.
* User: karlvaniseghem
* Date: 7/11/16
* Time: 18:08
*/
namespace App\Domain\Model\Reporting;
use App\Domain\Model\Time\DateRange;
use App\Domain\NtUid;
use DateTime;
use JMS\Serializer\Annotation\Accessor;
use Doctrine\ORM\Mapping AS ORM;
/**
* @ORM\Entity
*
* Class FlatIAC
... | 551 |
https://github.com/bfierz/conan-index/blob/master/utils/build.ps1 | Github Open Source | Open Source | MIT | null | conan-index | bfierz | PowerShell | Code | 13 | 214 | $env:CONAN_LOGIN_USERNAME_UPSTREAM=""
$env:CONAN_PASSWORD_UPSTREAM=""
$env:CONAN_UPLOAD="@True@upstream"
$env:CONAN_ARCHS="x86_64"
$env:CONAN_BUILD_TYPES="Debug,Release"
$env:CONAN_VISUAL_VERSIONS="16"
$env:CONAN_VISUAL_RUNTIMES="MD,MDd"
$env:CONAN_USERNAME="b4z"
$env:CONAN_CHANNEL="testing"
$env:CONAN_REFERENCE="v... | 51,309 |
https://github.com/free-stardust/LeetCode/blob/master/leetcode-c/36.有效的数独.c | Github Open Source | Open Source | MIT | 2,021 | LeetCode | free-stardust | C | Code | 311 | 1,495 | /*
* @lc app=leetcode.cn id=36 lang=c
*
* [36] 有效的数独
*
* https://leetcode-cn.com/problems/valid-sudoku/description/
*
* algorithms
* Medium (62.14%)
* Likes: 481
* Dislikes: 0
* Total Accepted: 124.2K
* Total Submissions: 199.8K
* Testcase Example: '[["5","3",".",".","7",".",".",".","."],["6",".",".... | 8,737 |
https://github.com/microsoft/aerial_wildlife_detection/blob/master/modules/Database/app.py | Github Open Source | Open Source | LicenseRef-scancode-generic-cla, MIT | 2,022 | aerial_wildlife_detection | microsoft | Python | Code | 440 | 1,486 | '''
Database connection functionality.
2019-21 Benjamin Kellenberger
'''
from contextlib import contextmanager
import psycopg2
from psycopg2.pool import ThreadedConnectionPool
from psycopg2.extras import RealDictCursor, execute_values
psycopg2.extras.register_uuid()
from util.helpers import LogDecorator
cla... | 26,460 |
https://github.com/dipokray/Production-Managmaent/blob/master/database/migrations/2019_05_15_050257_create_work_sections_table.php | Github Open Source | Open Source | MIT | 2,019 | Production-Managmaent | dipokray | PHP | Code | 64 | 361 | <?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateWorkSectionsTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('work_secti... | 37,158 |
https://github.com/RJTaylor8286/ruby-objects-has-many-through-readme-online-web-pt-110419/blob/master/lib/waiter.rb | Github Open Source | Open Source | LicenseRef-scancode-unknown-license-reference, LicenseRef-scancode-public-domain | 2,019 | ruby-objects-has-many-through-readme-online-web-pt-110419 | RJTaylor8286 | Ruby | Code | 56 | 208 | class Waiter
attr_accessor :name, :yrs_experience
@@all = []
def initialize(name, yrs_experience)
@name = name
@yrs_experience = yrs_experience
@@all << self
end
def self.all
@@all
end
end
def new_meal(customer, total, tip=0)
Meal.new(self, customer, total, tip)
end
s... | 50,384 |
https://github.com/zennit-technologies/taxyee/blob/master/resources/views/admin/request/index.blade.php | Github Open Source | Open Source | MIT | null | taxyee | zennit-technologies | PHP | Code | 241 | 1,126 | @extends('admin.layout.base')
@section('title', 'Ride History')
@section('content')
<div class="content-area py-1">
<div class="container-fluid">
<div class="box box-block bg-white">
<h5 class="mb-1"> <i class="fa fa-recycle"></i> Ride History</h5>
<hr/>
@if(count($req... | 21,956 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.