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/Tibelian/votation/blob/master/src/java/Model/Parameter.java | Github Open Source | Open Source | MIT | null | votation | Tibelian | Java | Code | 138 | 498 |
package Model;
import java.time.LocalDate;
import java.time.format.DateTimeFormatter;
public class Parameter {
String circumscription;
String typeQuery;
String scrutiny;
int numCandidates;
LocalDate dateQuery;
public Parameter(){}
public Parameter(String circumscription, String typ... | 28,518 |
https://github.com/ahupowerdns/mcounter/blob/master/mtests-multi.cc | Github Open Source | Open Source | MIT | 2,018 | mcounter | ahupowerdns | C++ | Code | 158 | 615 | #include "ext/doctest.h"
#include "mcounter.hh"
#include <thread>
#include <unistd.h>
namespace {
struct mystruct
{
uint64_t a,b;
};
}
TEST_CASE("Mcounter multiple basic") {
UnsharedCounterStructParent<mystruct> ucp;
auto func = [](UnsharedCounterStructParent<mystruct>* ucp) {
UnsharedCounterStr... | 21,994 |
https://github.com/dorisverria/FlowerShop/blob/master/resources/views/shop/checkout.blade.php | Github Open Source | Open Source | MIT | 2,021 | FlowerShop | dorisverria | PHP | Code | 12 | 59 | @extends('layouts.master')
@section('title')
Shopping Cart
@endsection
@section('content')
<div class="alert alert-success"><h4>Checkout was successful</h4></div>
@endsection
| 35,070 |
https://github.com/sinch/verification-ios-sdk/blob/master/Verification/Verification/Classes/MatadataCollector/IOSMetadataFactory.swift | Github Open Source | Open Source | Apache-2.0 | null | verification-ios-sdk | sinch | Swift | Code | 89 | 299 | //
// IOSMetadataFactory.swift
// Verification
//
// Created by Aleksander Wojcik on 22/07/2020.
// Copyright © 2020 Sinch. All rights reserved.
//
class IOSMetadataFactory: PhoneMetadataFactory {
private let osVersionCollector = OSMetadataCollector()
private let deviceMetadataCollector = DeviceMetada... | 30,834 |
https://github.com/vladem/tsar/blob/master/test/analysis/canonical_loop/canonical_loop_7.c | Github Open Source | Open Source | Apache-2.0, NCSA | 2,020 | tsar | vladem | C | Code | 33 | 69 | void foo() {
for (int I = 0; I < I + 1 ; ++I);
}
//CHECK: Printing analysis 'Canonical Form Loop Analysis' for function 'foo':
//CHECK: loop at canonical_loop_7.c:2:3 is syntactically canonical
| 42,107 |
https://github.com/nolink/algorithm/blob/master/training/006travel_agent.c | Github Open Source | Open Source | MIT | null | algorithm | nolink | C | Code | 106 | 424 |
#include <stdio.h>
int paths[5][5] = {{0,2,4,3,6}, {2,0,1,5,7}, {4,1,0,8,9}, {3,5,8,0,4}, {6,4,9,7,0}};
int all_visited(int* visited, int size){
int i=0;
for(i=0;i<size;i++){
if(visited[i] == -1){
return 0;
}
}
return 1;
}
long shortest(int* visited, int size, long current, int last){
int i=0; lon... | 8,621 |
https://github.com/redroostertech/AppDesignKit/blob/master/Travel/Classes/21_Tour/TourCell1.swift | Github Open Source | Open Source | MIT | null | AppDesignKit | redroostertech | Swift | Code | 140 | 274 | //
// Copyright (c) 2020 Related Code - http://relatedcode.com
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
// AUTHORS OR COPYRIG... | 37,160 |
https://github.com/mvegaca/Identity/blob/master/ForcedLogInApp/ForcedLogInApp.sln | Github Open Source | Open Source | MIT | 2,019 | Identity | mvegaca | null | Spoken | 213 | 1,902 |
Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 15
VisualStudioVersion = 15.0.26206.0
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ForcedLogInApp", "ForcedLogInApp\ForcedLogInApp.csproj", "{035C380D-360B-4AA9-8B29-1738E7FF7258}"
EndProject
... | 28,447 |
https://github.com/bkfrye/Locus/blob/master/src/plugins/all-in-one-seo-pack/app/Common/Tools/BadBotBlocker.php | Github Open Source | Open Source | GPL-2.0-or-later, MIT | 2,022 | Locus | bkfrye | PHP | Code | 1,190 | 4,399 | <?php
namespace AIOSEO\Plugin\Common\Tools;
// Exit if accessed directly.
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
class BadBotBlocker {
/**
* Holds the logger.
*
* @since 4.0.0
*
* @var mixed
*/
private $log = null;
/**
* An array of bad referers.
*
* @since 4.0.0
*
* @var array
*/
priva... | 18,757 |
https://github.com/swimmadude66/movienight/blob/master/src/client/scss/_mixins.scss | Github Open Source | Open Source | MIT | 2,021 | movienight | swimmadude66 | SCSS | Code | 39 | 113 | @import '_variables';
@mixin shadow() {
box-shadow: 0 0.1rem 0.2rem 0 rgba(0, 0, 0, 0.31), 0 0.1rem 0.2rem 0 rgba(0, 0, 0, 0.04), 0 0.2rem 0.6rem 0 rgba(0, 0, 0, 0.16), 0 0.1rem 2rem 0 rgba(0, 0, 0, 0.31);
}
| 9,362 |
https://github.com/roukell/natours/blob/master/sass/layout/_grid.scss | Github Open Source | Open Source | MIT | 2,020 | natours | roukell | SCSS | Code | 177 | 541 | .row {
max-width: $grid-width;
margin: 0 auto;
// select everything except the last child
&:not(:last-child) {
margin-bottom: $gutter-vertical;
@include respond(tab-port) {
margin-bottom: $gutter-vertical-small;
}
}
@include respond(tab-port) {
max-width: 50rem;
padding: 0 3rem... | 20,417 |
https://github.com/ThomasYeoLab/CBIG/blob/master/external_packages/matlab/non_default_packages/palm/palm-alpha109/palm_dpxwrite.m | Github Open Source | Open Source | MIT | 2,023 | CBIG | ThomasYeoLab | MATLAB | Code | 392 | 702 | function palm_dpxwrite(varargin)
% Write a curvature file (DPV or DPF), in ASCII format.
%
% palm_dpxwrite(filename,dpx)
% palm_dpxwrite(filename,dpx,crd,idx)
%
% - fname is the file name to be created
% - dpx contains the values for each vertex or face
% - crd contains the vertex coordinates or face indices
% - idx co... | 17,308 |
https://github.com/Lax/iOS-Swift-Demos/blob/master/AccessibilityUIExamples/AccessibilityUIExamples/Slider/CustomSliderView.swift | Github Open Source | Open Source | Apache-2.0 | 2,019 | iOS-Swift-Demos | Lax | Swift | Code | 728 | 2,000 | /*
See LICENSE folder for this sample’s licensing information.
Abstract:
An example demonstrating adding accessibility to an NSView subclass that behaves like a slider by implementing the NSAccessibilitySlider protocol.
*/
import Cocoa
/*
IMPORTANT: This is not a template for developing a custom control.
This samp... | 19,904 |
https://github.com/seqan/seqan/blob/master/include/seqan/index/index_fm.h | Github Open Source | Open Source | BSD-3-Clause | 2,023 | seqan | seqan | C++ | Code | 2,362 | 5,956 | // ==========================================================================
// SeqAn - The Library for Sequence Analysis
// ==========================================================================
// Copyright (c) 2006-2021, Knut Reinert, FU Berlin
// Copyright (c) 2013 NVIDIA Corporation
// All rig... | 30,729 |
https://github.com/the-haive/em/blob/master/lib/generators/view.js | Github Open Source | Open Source | MIT | null | em | the-haive | JavaScript | Code | 150 | 425 | var Generator = em.Generator;
var path = require('path');
var _ = require('underscore');
Generator.create({
name: 'view',
aliases: ['v'],
usage: 'em {generate, g}:{view, v} [path/]<name> [--where] [--dir]',
description: 'Generate scaffolding for a View.',
examples: [
'em g:view todos/todos_item',
'em... | 9,835 |
https://github.com/Qianzhuli/qianzhuli/blob/master/frontend/messages/zh-CN/common.php | Github Open Source | Open Source | BSD-3-Clause | 2,019 | qianzhuli | Qianzhuli | PHP | Code | 353 | 1,243 | <?php
return [
'Qianzhuli' => '钱助理',
'Qianzhuli-a trusted loan rating website' => '钱助理-一个值得信赖的网贷评级网站',
'About' => '关于我们',
'PayForUs' => '打赏我们',
'Signup' => '注册',
'Login' => '登录',
'Logout' => '退出账号',
'This username has already been taken.' => '该用户名已经被注册。',
'This email address has already been taken.' => '该邮箱已经被... | 39,507 |
https://github.com/vishalmanohar/betamax/blob/master/betamax-core/src/main/java/co/freeside/betamax/tape/RequestMatcher.java | Github Open Source | Open Source | Apache-2.0 | 2,015 | betamax | vishalmanohar | Java | Code | 196 | 469 | /*
* Copyright 2011 Rob Fletcher
*
* Converted from Groovy to Java by Sean Freitag
*
* 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
... | 26,171 |
https://github.com/marco-brandizi/ondex-knet-builder/blob/master/ondex-knet-builder/scripting/src/main/java/net/sourceforge/ondex/scripting/ProxyTemplateBuilder.java | Github Open Source | Open Source | MIT | 2,022 | ondex-knet-builder | marco-brandizi | Java | Code | 850 | 2,883 | package net.sourceforge.ondex.scripting;
import java.lang.reflect.Constructor;
import java.lang.reflect.Method;
import java.util.ArrayList;
import java.util.Collection;
import java.util.HashMap;
import java.util.HashSet;
import java.util.LinkedList;
import java.util.List;
import java.util.Map;
import java.util.Set;
i... | 35,105 |
https://github.com/gembin/anysafe/blob/master/src/macros.rs | Github Open Source | Open Source | MIT, LicenseRef-scancode-unknown-license-reference, Apache-2.0 | 2,020 | anysafe | gembin | Rust | Code | 181 | 734 | /// 理论上不可达用这个, 返回默认值
#[macro_export]
macro_rules! unreachable {
() => (
$crate::unreachable_with!(Default::default())
);
($msg:expr) => (
$crate::unreachable_with!(Default::default(), $msg)
);
($msg:expr,) => (
$crate::unreachable_with!(Default::default(), $msg)
);
($... | 49,707 |
https://github.com/kevinmtian/pytorchvideo/blob/master/pytorchvideo/models/accelerator/mobile_cpu/residual_blocks.py | Github Open Source | Open Source | Apache-2.0 | 2,021 | pytorchvideo | kevinmtian | Python | Code | 610 | 2,299 | # Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
from collections import OrderedDict
from typing import Optional, Tuple
import torch.nn as nn
from pytorchvideo.accelerator.efficient_blocks.efficient_block_base import (
EfficientBlockBase,
)
from pytorchvideo.layers.accelerator.mobile_cpu.ac... | 45,602 |
https://github.com/juniorjesus/Colegionet/blob/master/colegionet/application/modules/personas/views/representante/_dataRepresentante.php | Github Open Source | Open Source | MIT, LicenseRef-scancode-unknown-license-reference | 2,021 | Colegionet | juniorjesus | PHP | Code | 145 | 683 | <div class="table-responsive col-md-8 inline">
<?php
$template = array(
'table_open' => '<table class="table table-striped table-condensed table-hover">',
'thead_open' => '<thead class="thead-header">'
);
$this->table->set_template($template);
$this->table->set_empty('<i>Sin información</i>');
$columns[0] = ... | 42,849 |
https://github.com/look4regev/posey/blob/master/client/components/Config.js | Github Open Source | Open Source | MIT | 2,021 | posey | look4regev | JavaScript | Code | 25 | 41 | export const timeToPlay = 31;
export const width = 600;
export const height = 720;
export const posePicsCount = 5;
export const frequency = 10;
| 50,087 |
https://github.com/KDSBest/service-fabric/blob/master/src/prod/src/Transport/MessageHeaderId.h | Github Open Source | Open Source | MIT | 2,020 | service-fabric | KDSBest | C++ | Code | 495 | 1,448 | // ------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License (MIT). See License.txt in the repo root for license information.
// ------------------------------------------------------------
#pragma once
namespace Transp... | 279 |
https://github.com/ElementAI/bytesteady/blob/master/bytesteady/data-inl.hpp | Github Open Source | Open Source | Apache-2.0 | 2,022 | bytesteady | ElementAI | C++ | Code | 697 | 1,737 | /*
* Copyright 2021 ServiceNow
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0
* Unless required by applicable law or agreed to in writing, s... | 39,250 |
https://github.com/psaluja/python-forensics-handbook-ps/blob/master/pyforhandbook/version.py | Github Open Source | Open Source | MIT | 2,020 | python-forensics-handbook-ps | psaluja | Python | Code | 21 | 65 | __author__ = "Chapin Bryce"
__authors__ = ["Chapin Bryce", "Brittney Argirakis"]
__license__ = "MIT"
__version__ = "0.1.2"
__copyright__ = "2020, Chapin Bryce"
| 36,351 |
https://github.com/nkinbox/irsbatch/blob/master/app/Models/User.php | Github Open Source | Open Source | MIT | null | irsbatch | nkinbox | PHP | Code | 64 | 235 | <?php
namespace App\Models;
use Illuminate\Notifications\Notifiable;
use Illuminate\Foundation\Auth\User as Authenticatable;
class User extends Authenticatable
{
use Notifiable;
public $timestamps = false;
protected $hidden = [
'password', 'remember_token', 'api_token'
];
public function ... | 38,246 |
https://github.com/yxUED/vh5demo/blob/master/src/api/axios.config.js | Github Open Source | Open Source | MIT | null | vh5demo | yxUED | JavaScript | Code | 32 | 138 | // axios配置
// import axios from '../vues/axios';
import axios from 'axios';
axios.defaults.headers['X-Requested-With'] = 'XMLHttpRequest';
axios.defaults.headers['x-app-version'] = '1.0'; // 应用版本
axios.defaults.headers['x-client'] = 'H5'; // 客户端类型
axios.defaults.headers['x-access-token'] = ''; // 认证令牌
export default... | 24,282 |
https://github.com/sky-s/physical-units-for-matlab/blob/master/@DimVar/histcounts.m | Github Open Source | Open Source | BSD-2-Clause | 2,023 | physical-units-for-matlab | sky-s | MATLAB | Code | 80 | 286 | function [n,v,bin] = histcounts(v,varargin)
% Same as histcounts where returned edges have same units as X.
%
% See also histcounts.
% [N,edges] = histcounts(X)
% [N,edges] = histcounts(X,edges)
% histcounts(...,'BinWidth',BW)
% histcounts(...,'BinLimits',[BMIN,BMAX]))
numArgInd = cellfun(@isnumeric,varargin);
%... | 46,472 |
https://github.com/redgush/flycatcher/blob/master/compiler/src/lexer/token.rs | Github Open Source | Open Source | MIT | 2,021 | flycatcher | redgush | Rust | Code | 429 | 843 | use std::ops::Range;
/// The reason why a string is invalid.
#[derive(Clone, Debug, PartialEq)]
pub enum InvalidStrType {
/// The end of the file was found before a closing quote.
UnclosedEOF,
/// The end of the line was found before a closing quote.
UnclosedLine,
/// There was no opening brace i... | 17,440 |
https://github.com/wallingTACC/CBRAIN-CAM/blob/master/cbrain/cam_constants.py | Github Open Source | Open Source | MIT | 2,022 | CBRAIN-CAM | wallingTACC | Python | Code | 166 | 448 | """
All CAM specific (and other) constants are defined here.
Created on 2019-01-23-14-51
Author: Stephan Rasp, raspstephan@gmail.com
"""
DT = 1800.
L_V = 2.501e6 # Latent heat of vaporization
L_I = 3.337e5 # Latent heat of freezing
L_F = L_I
L_S = L_V + L_I # Sublimation
C_P = 1.00464e3 # Specific heat capacity o... | 14,066 |
https://github.com/zealoussnow/chromium/blob/master/ios/chrome/browser/url_loading/url_loading_observer_bridge.mm | Github Open Source | Open Source | BSD-3-Clause-No-Nuclear-License-2014, BSD-3-Clause | 2,022 | chromium | zealoussnow | Objective-C++ | Code | 203 | 921 | // Copyright 2019 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.
#import "ios/chrome/browser/url_loading/url_loading_observer_bridge.h"
#if !defined(__has_feature) || !__has_feature(objc_arc)
#error "This file requires... | 51,849 |
https://github.com/KalindaJ-debug/AIMS-Web-Application/blob/master/resources/views/auth/login.blade.php | Github Open Source | Open Source | MIT | null | AIMS-Web-Application | KalindaJ-debug | PHP | Code | 316 | 1,684 | <!DOCTYPE html>
<html lang="en" dir="ltr">
<head>
<meta charset="utf-8">
<title>Language</title>
<!--google fonts-->
<link href="https://fonts.googleapis.com/css2?family=Poppins:wght@100&display=swap" rel="stylesheet">
<!-- scrool reveal api-->
<script src="https://unpkg.com/scrollreveal"></s... | 43,155 |
https://github.com/haanme/DWIProstateMotionCorrection/blob/master/motioncorrection_3rd.py | Github Open Source | Open Source | MIT | 2,014 | DWIProstateMotionCorrection | haanme | Python | Code | 592 | 2,171 | #!/usr/bin/env python
experiment_dir = '/Users/eija/Desktop/prostate_MR/pipelinedata'
param_rigid = 'Par0001translation.txt'
param_BSpline = 'Par0001bspline08.txt'
#mask_matfile_basedir = '/Users/eija/Desktop/prostate_MR/PET_MR_dwis/Carimas27projectfiles_Hb_work_all_noGS/ROI_mat_files'
mask_matfile_basedir_hB = '/User... | 37,414 |
https://github.com/sreshtha10/CC/blob/master/others/Linked List/splitMiddle.java | Github Open Source | Open Source | MIT | 2,021 | CC | sreshtha10 | Java | Code | 154 | 501 | class LinkedList{
class Node{
int data;
Node next;
}
Node head;
public void insert(int data){
Node p = new Node();
p.data = data;
p.next = null;
if(head == null){
head = p;
}
else{
... | 25,631 |
https://github.com/fr33land/spring-boot-microservices-architecture/blob/master/ms-common-libs/src/main/java/lt/freeland/common/exceptions/GlobalExceptionHandler.java | Github Open Source | Open Source | Apache-2.0 | null | spring-boot-microservices-architecture | fr33land | Java | Code | 359 | 1,401 | package lt.freeland.common.exceptions;
import com.fasterxml.jackson.databind.ObjectMapper;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
import javax.servlet.http.HttpServletResponse;
import javax.validation.ConstraintViolationException;
import javax.validation.ValidationException;
imp... | 14,664 |
https://github.com/ProSvizraRumantscha/pledari.ch/blob/master/mypledari/pledari.scss | Github Open Source | Open Source | MIT | 2,021 | pledari.ch | ProSvizraRumantscha | SCSS | Code | 2 | 8 | @import "../pledari";
| 28,790 |
https://github.com/ho-oo/unity/blob/master/PixelCup/Assets/Tiled2Unity/Imported/huone2.tiled2unity.xml.meta | Github Open Source | Open Source | MIT | 2,020 | unity | ho-oo | Unity3D Asset | Code | 12 | 65 | fileFormatVersion: 2
guid: 041a0fa29f921a144acbe45fbee05cf8
timeCreated: 1473919515
licenseType: Free
TextScriptImporter:
userData:
assetBundleName:
assetBundleVariant:
| 45,023 |
https://github.com/alinaveed123/NyTimes/blob/master/NyTimes/Modals/NyTimesModalClass/BaseClass.h | Github Open Source | Open Source | MIT | null | NyTimes | alinaveed123 | C | Code | 58 | 184 | //
// BaseClass.h
//
// Created by Union Coop on 5/15/19
// Copyright (c) 2019 __MyCompanyName__. All rights reserved.
//
#import <Foundation/Foundation.h>
@interface BaseClass : NSObject <NSCoding, NSCopying>
@property (nonatomic, strong) NSString *status;
@property (nonatomic, strong) NSArray *results;
@prope... | 30,832 |
https://github.com/ScalablyTyped/SlinkyTyped/blob/master/u/uniq/src/main/scala/typingsSlinky/uniq/package.scala | Github Open Source | Open Source | MIT | 2,021 | SlinkyTyped | ScalablyTyped | Scala | Code | 27 | 113 | package typingsSlinky
import org.scalablytyped.runtime.StObject
import scala.scalajs.js
import scala.scalajs.js.`|`
import scala.scalajs.js.annotation.{JSGlobalScope, JSGlobal, JSImport, JSName, JSBracketAccess}
package object uniq {
type Uniq = js.Function1[/* ip */ js.Array[js.Any], js.Array[js.Any]]
}
| 27,610 |
https://github.com/insoul/raml_ruby/blob/master/lib/raml.rb | Github Open Source | Open Source | MIT | 2,014 | raml_ruby | insoul | Ruby | Code | 148 | 727 | require_relative 'raml/version'
require_relative 'raml/mixin/documentable'
require_relative 'raml/mixin/parent'
require_relative 'raml/parameter/abstract_parameter'
require_relative 'raml/parameter/form_parameter'
require_relative 'raml/parameter/query_parameter'
require_relative 'raml/parameter/uri_parameter'
requir... | 47,325 |
https://github.com/sawantaditi24/Competitive-Programming/blob/master/LeetCode/3SumClosest.cpp | Github Open Source | Open Source | MIT | 2,021 | Competitive-Programming | sawantaditi24 | C++ | Code | 91 | 227 | class Solution {
public:
int threeSumClosest(vector<int>& nums, int target) {
int ans = nums[0] + nums[1] + nums[2];
sort(nums.begin(), nums.end());
int size = nums.size();
for(int i = 0; i < size; i++){
int start = i + 1;
int end = size - 1;
while... | 24,308 |
https://github.com/Tpman/face-detection-ane/blob/master/ios/FaceDetection/Utils/FaceDetectionHelper.m | Github Open Source | Open Source | Apache-2.0 | 2,018 | face-detection-ane | Tpman | Objective-C | Code | 626 | 2,132 | /**
* Copyright 2016 Marcel Piestansky (http://marpies.com)
*
* 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 appl... | 1,172 |
https://github.com/guozanhua/AnimationCurveTools/blob/master/Unity4/Assets/AnimationCurveTools/Editor/AnimationCurveExtractor.cs | Github Open Source | Open Source | MIT | 2,013 | AnimationCurveTools | guozanhua | C# | Code | 294 | 951 | using System;
using UnityEngine;
using UnityEditor;
public class AnimationCurveExtractor : EditorWindow
{
public void Init( SerializedProperty inTargetProperty )
{
//keep the iterator in its current state...
_PopupTargetAnimationCurveProperty = inTargetProperty;
}
void OnGUI()
{
AnimationClip anim = E... | 45,923 |
https://github.com/telluz/metagodoc/blob/master/indexer/repository/data.go | Github Open Source | Open Source | BSD-3-Clause | 2,018 | metagodoc | telluz | Go | Code | 687 | 4,547 | package repository
// This was all copied from https://github.com/golang/gddo/blob/master/gosrc/data.go
const (
goRepoPath = 1
packagePath = 2
)
var pathFlags = map[string]int{
"C": 2,
"archive": 1,
"archive/t... | 25,987 |
https://github.com/itkSource/lorhammer/blob/master/src/orchestrator/checker/kafka_test.go | Github Open Source | Open Source | Apache-2.0 | 2,019 | lorhammer | itkSource | Go | Code | 887 | 3,484 | package checker
import (
"encoding/json"
"errors"
"testing"
"time"
"github.com/Shopify/sarama"
"github.com/Shopify/sarama/mocks"
)
func TestNewKafka(t *testing.T) {
k, err := newKafka(json.RawMessage([]byte(`{"address": ["127.0.0.1:9092"]}`)), nil)
if err != nil {
t.Fatalf("Good config should not return er... | 12,615 |
https://github.com/esensar/neovim-java/blob/master/neovim-api/src/main/java/com/ensarsarajcic/neovim/java/api/buffer/NeovimBufferApi.java | Github Open Source | Open Source | MIT | 2,023 | neovim-java | esensar | Java | Code | 833 | 3,024 | /*
* MIT License
*
* Copyright (c) 2018 Ensar Sarajčić
*
* 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, m... | 38,126 |
https://github.com/RodrigoHolztrattner/Wonderland/blob/master/Wonderland/Wonderland/Editor/Modules/VulkanWrapper/Shader/VWShaderSortingBase.h | Github Open Source | Open Source | MIT | 2,017 | Wonderland | RodrigoHolztrattner | C++ | Code | 256 | 753 | ////////////////////////////////////////////////////////////////////////////////
// Filename: VWShaderRenderingBase.h
////////////////////////////////////////////////////////////////////////////////
#pragma once
//////////////
// INCLUDES //
//////////////
#define GLFW_INCLUDE_VULKAN
#include <GLFW/glfw3.h>
#include ... | 17,881 |
https://github.com/likeleon/ZangSiSee/blob/master/ZangSiSee/ViewModels/BookmarkViewModel.cs | Github Open Source | Open Source | MIT | null | ZangSiSee | likeleon | C# | Code | 38 | 103 | using ZangSiSee.Models;
namespace ZangSiSee.ViewModels
{
public class BookmarkViewModel : BaseViewModel
{
public Bookmark Bookmark { get; }
public BookInfo BookInfo { get; }
public BookmarkViewModel(Bookmark bookmark, BookInfo bookInfo)
{
Bookmark = bookmark;
... | 27,524 |
https://github.com/baconadmiral/baconadmiral.github.io/blob/master/js/lane.js | Github Open Source | Open Source | MIT | 2,019 | baconadmiral.github.io | baconadmiral | JavaScript | Code | 109 | 546 | function Lane(sketch, xLoc, divider)
{
this.xLoc = xLoc;
this.carQueue = [];
this.carsInLane = 0;
this.tollBothSprite;
this.tollBoothSprite = sketch.createSprite(this.xLoc-35, divider.yLoc);
this.tollBoothSprite.addAnimation("open", "images/game/gate_open.png");
this.tollBoothSprite.addAnimation("closed"... | 23,863 |
https://github.com/itsmyway/weather-pwa/blob/master/step-05/service-worker.js | Github Open Source | Open Source | Apache-2.0 | 2,017 | weather-pwa | itsmyway | JavaScript | Code | 398 | 917 | // Copyright 2016 Google Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in... | 11,181 |
https://github.com/jnterry/treeploy/blob/master/bin/treeploy | Github Open Source | Open Source | MIT | 2,019 | treeploy | jnterry | JavaScript | Code | 18 | 98 | #!/usr/bin/env node
let treeploy_cli = require('../dist/cli.js').default;
treeploy_cli(process.argv.slice(2))
.then((exit_code) => {
process.exit(exit_code);
})
.catch((err) => {
console.log(err);
process.exit(100);
});
| 39,348 |
https://github.com/Jack477/TwisterOSPatcher/blob/master/src/gui.py | Github Open Source | Open Source | MIT | null | TwisterOSPatcher | Jack477 | Python | Code | 349 | 1,484 | #!/usr/bin/python
import sys
import os
import checkversion as cv
import resources as rs
import update as up
import tkinter as tk
import importlib
import webbrowser
from tkinter import messagebox as msb
from tkinter import *
from tkinter import ttk
from PIL import Image, ImageTk
home_path = sys.argv[1]
### Use in window... | 23,755 |
https://github.com/surpher/PactSwiftMockServer/blob/master/Tests/VerifierTests.swift | Github Open Source | Open Source | MIT | 2,021 | PactSwiftMockServer | surpher | Swift | Code | 228 | 542 | //
// Created by Marko Justinek on 21/8/21.
// Copyright © 2021 Marko Justinek. All rights reserved.
//
// 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 ... | 15,200 |
https://github.com/tvgtu/telegram-bot-admin/blob/master/src/main/java/ru/tstu/telegrambotadmin/repositories/TelegramMessageRepository.java | Github Open Source | Open Source | MIT | null | telegram-bot-admin | tvgtu | Java | Code | 22 | 94 | package ru.tstu.telegrambotadmin.repositories;
import org.springframework.data.repository.CrudRepository;
import ru.tstu.telegrambotadmin.model.TelegramMessage;
/**
* Created by user on 29.11.17.
*/
public interface TelegramMessageRepository extends CrudRepository<TelegramMessage, Long> {
}
| 34,513 |
https://github.com/sayamiky/sewain/blob/master/app/Http/Controllers/PenyewaController.php | Github Open Source | Open Source | MIT | 2,017 | sewain | sayamiky | PHP | Code | 209 | 1,241 | <?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use App\Models\User;
use App\Models\Barang;
use App\Models\Statustransaksi;
use App\Models\Transaksi;
use App\Models\Notifikasi;
use Redirect;
use Auth;
//use Barryvdh\Snappy\Facades as PDF
use PDF;
use Intervention\Image\Facades\Image as Image;
use... | 14,042 |
https://github.com/Michaelangel007/6502bench/blob/master/PluginCommon/VisBitmap8.cs | Github Open Source | Open Source | Apache-2.0 | 2,022 | 6502bench | Michaelangel007 | C# | Code | 608 | 1,352 | /*
* Copyright 2019 faddenSoft
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... | 36,123 |
https://github.com/mdilshan/ng-cron/blob/master/libs/e2e-shared/src/lib/cron-type.ts | Github Open Source | Open Source | MIT | 2,021 | ng-cron | mdilshan | TypeScript | Code | 87 | 399 | import { CronType } from '@sbzen/cron-core';
import { getSharedHelper } from './helpers';
export const testCronType = (type: string) => {
const { findInContainer } = getSharedHelper(type);
describe(`Should be able to change cron type`, () => {
beforeEach(() => {
cy.visit('/');
});
it(`by default should be... | 7,024 |
https://github.com/piotrkowalczuk/auth-service/blob/master/internal/session/session_test.go | Github Open Source | Open Source | MIT | 2,022 | auth-service | piotrkowalczuk | Go | Code | 104 | 424 | package session_test
import (
"testing"
"github.com/piotrkowalczuk/charon/internal/session"
)
func TestUserIDFromSessionActorID(t *testing.T) {
success := map[string]int64{
"charon:user:1": 1,
"charon:user:0": 0,
"charon:user:12312412512512": 12312412512512,
}
for given, expecte... | 35,631 |
https://github.com/adamvent/googlesitemapgenerator/blob/master/src/sitemapservice/httplanguageheaderparser.cc | Github Open Source | Open Source | Apache-2.0 | 2,015 | googlesitemapgenerator | adamvent | C++ | Code | 410 | 1,178 | // Copyright 2009 Google Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in... | 9,563 |
https://github.com/AbelNHM/laravel-8-bootstrap-5/blob/master/resources/sass/app.scss | Github Open Source | Open Source | MIT | null | laravel-8-bootstrap-5 | AbelNHM | SCSS | Code | 33 | 132 | // Fonts
@import url('https://fonts.googleapis.com/css?family=Nunito');
// Variables
@import 'variables';
// Bootstrap
@import '~bootstrap/scss/bootstrap';
// Style Project
.navbar-collapse {
justify-content: flex-end;
}
@media (min-width: 992px){
.navbar-expand-lg .navbar-nav .dropdown-menu {
left:... | 27,518 |
https://github.com/neilhewitt/Z80_Emulator/blob/master/src/Zem80_Core/Instructions/Metadata/InstructionElement.cs | Github Open Source | Open Source | MIT | null | Z80_Emulator | neilhewitt | C# | Code | 296 | 638 | namespace Zem80.Core.Instructions
{
// DO NOT RE-ORDER OR INSERT / REMOVE VALUES - order and ordinal values are relied upon in the code for performance reasons
public enum InstructionElement
{
None,
ByteValue,
DisplacementValue,
WordValue,
PortNumberFromByteValue,
... | 46,896 |
https://github.com/METACEO/xlayers/blob/master/src/app/editor/code-editor/editor-container/codegen/react/react.service.ts | Github Open Source | Open Source | Apache-2.0 | 2,018 | xlayers | METACEO | TypeScript | Code | 83 | 265 | import { Injectable } from '@angular/core';
import { CodeGenFacade, XlayersNgxEditorModel } from '../codegen.service';
@Injectable({
providedIn: 'root'
})
export class ReactCodeGenService implements CodeGenFacade {
constructor() {}
generate(ast: SketchMSLayer): Array<XlayersNgxEditorModel> {
return [{
... | 9,416 |
https://github.com/jisantuc/raster-foundry/blob/master/app-frontend/src/assets/styles/sass/settings/_colors.scss | Github Open Source | Open Source | Apache-2.0 | 2,021 | raster-foundry | jisantuc | SCSS | Code | 109 | 395 | // Brand Colors:
$brand-primary: #738FFC !default; // purple
$brand-secondary: #2FC1D0 !default; // green
$brand-tertiary: #53B1E0 !default; // blue
// Base Colors:
$shade-light: #959CAC !default; // slightly lighter then $text-base
$shade-normal: #465076 !default; // deep purple
$shade-dark: #353C58 !default; /... | 29,802 |
https://github.com/fczbkk/css-selector-generator/blob/master/types/constants.d.ts | Github Open Source | Open Source | MIT | 2,023 | css-selector-generator | fczbkk | TypeScript | Code | 32 | 82 | export declare const SELECTOR_SEPARATOR = ", ";
export declare const INVALID_ID_RE: RegExp;
export declare const INVALID_CLASS_RE: RegExp;
export declare const SELECTOR_PATTERN: ("id" | "class" | "tag" | "attribute" | "nthchild" | "nthoftype")[];
| 15,033 |
https://github.com/gojutin/tailwindcss-playground/blob/master/src/components/Header/AvatarButton.tsx | Github Open Source | Open Source | MIT | 2,020 | tailwindcss-playground | gojutin | TypeScript | Code | 77 | 254 | import React from 'react';
export type AvatarButtonProps = {
className?: string;
style?: React.CSSProperties;
onClick: () => void;
imageUrl: string;
isExpanded: boolean;
};
export const AvatarButton = ({
className = '',
style = {},
onClick,
imageUrl,
isExpanded,
}: AvatarButtonProps) => {
const ... | 40,495 |
https://github.com/PadawanBreslau/gss-web/blob/master/app/containers/RegisterContainer/index.js | Github Open Source | Open Source | MIT | null | gss-web | PadawanBreslau | JavaScript | Code | 117 | 374 | import React from 'react';
import PropTypes from 'prop-types';
import { injectIntl } from 'react-intl';
import { reduxForm } from 'redux-form/immutable';
import withAuth from 'hoc/withAuth';
import { validateForm } from 'helpers/Validators';
import Register from 'components/Register/RegisterPage';
const RegisterConta... | 54,381 |
https://github.com/aniuta383/vadvilsa/blob/master/fuel/app/classes/controller/main.php | Github Open Source | Open Source | MIT | 2,013 | vadvilsa | aniuta383 | PHP | Code | 94 | 319 | <?php
class Controller_Main extends Controller_Template
{
public function action_index()
{
/*
//var_dump(mail('igors@c4.lv', 'fesefs', 'sefes'));
// die;
// Create an instance
$email = Email::forge();
// Set the from address
$email->from('filinka@inbox.lv', 'My Name');
/... | 52,170 |
https://github.com/i-RIC/prepost-gui/blob/master/libs/guibase/widget/itemselectingdialog.cpp | Github Open Source | Open Source | MIT | 2,023 | prepost-gui | i-RIC | C++ | Code | 64 | 298 | #include "ui_itemselectingdialog.h"
#include "itemselectingdialog.h"
ItemSelectingDialog::ItemSelectingDialog(QWidget* parent) :
QDialog(parent),
ui(new Ui::ItemSelectingDialog)
{
ui->setupUi(this);
}
ItemSelectingDialog::~ItemSelectingDialog()
{
delete ui;
}
void ItemSelectingDialog::setMessage(const QString& ... | 33,713 |
https://github.com/herdani/snowcap-website/blob/master/src/Snowcap/SiteBundle/Controller/WidgetController.php | Github Open Source | Open Source | MIT | 2,011 | snowcap-website | herdani | PHP | Code | 93 | 420 | <?php
namespace Snowcap\SiteBundle\Controller;
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Method;
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route;
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Template;
use Snowcap\SiteBundle\Entity... | 38,285 |
https://github.com/ioulaki/MaxieKeyboard/blob/master/Android/obj/local/armeabi-v7a/objs/aspell/lib/error-c.o.d | Github Open Source | Open Source | Apache-2.0 | 2,017 | MaxieKeyboard | ioulaki | Makefile | Code | 5 | 58 | obj/local/armeabi-v7a/objs/aspell/lib/error-c.o: jni/lib/error-c.cpp \
jni/common/error.hpp
jni/common/error.hpp:
| 33,812 |
https://github.com/victorpereiradepaula/empresas-ios/blob/master/empresas-ios/features/utils/extensions/UITextFieldExtension.swift | Github Open Source | Open Source | MIT | 2,021 | empresas-ios | victorpereiradepaula | Swift | Code | 164 | 449 | //
// UITextFieldExtension.swift
// empresas-ios
//
// Created by Victor Pereira on 31/03/20.
// Copyright © 2020 Victor Pereira. All rights reserved.
//
import UIKit
import RxSwift
import RxGesture
extension UITextField {
func setPadding() {
let height = frame.size.height
leftView = UIVi... | 25,944 |
https://github.com/FlukeyNZ/wearbox-theme/blob/master/resources/less/flat-ui-pro/modules/bottom-menu.less | Github Open Source | Open Source | MIT | 2,022 | wearbox-theme | FlukeyNZ | Less | Code | 247 | 934 | //
// Bottom Menu
// --------------------------------------------------
.bottom-menu {
background-color: @bottom-menu-bg;
color: @bottom-menu-color;
padding-top: 42px;
padding-bottom: 42px;
line-height: 1;
.bottom-menu-brand {
display: inline-block;
font-size: floor((@component-font-size-base * 1.... | 28,391 |
https://github.com/jazminmatos/drawing_client/blob/master/src/line.js | Github Open Source | Open Source | MIT | null | drawing_client | jazminmatos | JavaScript | Code | 112 | 394 | class Line {
static canvas = document.getElementById('canvas');
static ctx = Line.canvas.getContext("2d"); // leads to creation of a CanvasRenderingContext2d object
static drawingBoard = document.getElementsByClassName('drawing-board');
static drawing = false;
static colorPicker = document.que... | 24,790 |
https://github.com/freddy1h/SwiftUIPager/blob/master/Sources/SwiftUIPager/Page.swift | Github Open Source | Open Source | MIT | 2,022 | SwiftUIPager | freddy1h | Swift | Code | 412 | 874 | //
// Pager.swift
// SwiftUIPager
//
// Created by Fernando Moya de Rivas on 19/01/2020.
// Copyright © 2020 Fernando Moya de Rivas. All rights reserved.
//
import SwiftUI
import Combine
/// Encapsulates `Pager` state.
///
/// Initialize with one of its convenience methods:
/// - `firstPage()`
/// - `withIndex(_:... | 5,001 |
https://github.com/muarifgustiar/regas/blob/master/application/modules/k3/views/form_hse.php | Github Open Source | Open Source | MIT, LicenseRef-scancode-unknown-license-reference | 2,015 | regas | muarifgustiar | PHP | Code | 49 | 245 | <div class="progressBar">
<ul>
<li>
CSMS
</li>
<li class="active">
HSE Plan
</li>
</ul>
</div>
<div class="formDashboard">
<form method="POST" enctype="multipart/form-data">
<table>
<tr class="input-form">
<td>Upload HSE Plan</td>
</tr>
<tr class="input-form">
<td>
<input type="... | 51,585 |
https://github.com/sauleddy/HomePortal/blob/master/common/actions/ActionAuth.js | Github Open Source | Open Source | MIT | null | HomePortal | sauleddy | JavaScript | Code | 34 | 101 | import { createAction } from 'redux-actions';
import { ActionJobAuthIns } from '../actions_job';
import {
AUTH_START
} from '../constants/ActionTypes';
const AuthStart = createAction(AUTH_START, ActionJobAuthIns.Login.bind(ActionJobAuthIns));
const ActionAuth = {
AuthStart: AuthStart
};
export { ActionAuth }
| 3,331 |
https://github.com/willisplummer/draft-js-import-html/blob/master/typings/draft-js-import-html-tests.ts | Github Open Source | Open Source | BSD-3-Clause, ISC | 2,017 | draft-js-import-html | willisplummer | TypeScript | Code | 46 | 129 | import { ContentState } from 'draft-js';
import { stateFromHTML } from 'draft-js-import-html';
const html = '<div>testing</div>';
const resultWithOutOptions: ContentState = stateFromHTML(html);
const parser = (html: string) => {
let doc = document.implementation.createHTMLDocument('');
doc.documentElement.innerH... | 8,289 |
https://github.com/csellis/dev-docs/blob/master/.gitpod.Dockerfile | Github Open Source | Open Source | MIT | 2,021 | dev-docs | csellis | Dockerfile | Code | 5 | 9 | RUN npm install --global np
| 29,408 |
https://github.com/lundco/silvershop-webshipper/blob/master/code/dataextensions/WebshipperProductExtension.php | Github Open Source | Open Source | BSD-3-Clause-No-Nuclear-License-2014, BSD-3-Clause | null | silvershop-webshipper | lundco | PHP | Code | 90 | 392 | <?php
namespace Silvershop\Webshipper;
class WebshipperProductExtension extends \DataExtension
{
private static $db = array(
'IsShippable' => 'Boolean(1)'
);
private static $defaults = array(
'IsShippable' => true
);
public function updateCMSFields(\FieldList $fields)
{
$fields->addFieldsToT... | 35,632 |
https://github.com/josephcsible/EvilCraft/blob/master/src/main/java/org/cyclops/evilcraft/event/EntityStruckByLightningEventHook.java | Github Open Source | Open Source | CC-BY-4.0 | 2,017 | EvilCraft | josephcsible | Java | Code | 124 | 654 | package org.cyclops.evilcraft.event;
import net.minecraft.entity.item.EntityItem;
import net.minecraft.entity.passive.EntityVillager;
import net.minecraftforge.event.entity.EntityStruckByLightningEvent;
import net.minecraftforge.fml.common.eventhandler.EventPriority;
import net.minecraftforge.fml.common.eventhandler.S... | 7,669 |
https://github.com/JennieJi/ast-lab/blob/master/packages/es-stats/test/__fixtures__/exports/exportFuncAlias.js | Github Open Source | Open Source | MIT | 2,022 | ast-lab | JennieJi | JavaScript | Code | 9 | 17 | function a () {
}
export {a as b};
| 25,297 |
https://github.com/GistIcon/Gfycat.Net/blob/master/src/Gfycat.Net/AccountTokenType.cs | Github Open Source | Open Source | MIT | 2,017 | Gfycat.Net | GistIcon | C# | Code | 19 | 70 | #pragma warning disable CS1591
namespace Gfycat
{
public enum AccountTokenType
{
FacebookAuthCode,
FacebookAccessToken,
TwitterToken,
TwitterVerifier,
TwitterOauthToken,
TwitterOauthTokenSecret
}
}
| 1,921 |
https://github.com/n-dw/goodseeds/blob/master/craft/plugins/customerpoints/elementtypes/CustomerPoints_UserElementType.php | Github Open Source | Open Source | MIT | null | goodseeds | n-dw | PHP | Code | 522 | 1,535 | <?php
/**
* Customer Referral Program plugin for Craft CMS
*
* CustomerReferralProgram_Referral ElementType
*
* --snip--
* Element Types are the classes used to identify each of these types of elements in Craft. There’s a
* “UserElementType”, there’s an “AssetElementType”, and so on. If you’ve ever developed a c... | 17,684 |
https://github.com/luozhengchao/daydayup/blob/master/resource_code/spring/spring-context/src/main/java/context/ApplicationEvent.java | Github Open Source | Open Source | Apache-2.0 | 2,021 | daydayup | luozhengchao | Java | Code | 30 | 80 | package context;
/**
* @author luozhengchao
* @date 2021/7/10 10:03 下午
*/
public abstract class ApplicationEvent {
private final long timestamp;
public ApplicationEvent(Object source) {
this.timestamp = System.currentTimeMillis();
}
}
| 451 |
https://github.com/phetsims/rosetta/blob/master/src/client/components/TranslationReportTable.jsx | Github Open Source | Open Source | 2,023 | rosetta | phetsims | JavaScript | Code | 449 | 1,243 | // Copyright 2022, University of Colorado Boulder
/**
* Create a component that contains a sortable table of translated sims and their string statistics.
*
* @author Liam Mulhall <liammulh@gmail.com>
*/
/* eslint-disable indent */
import { useContext, useState } from 'react';
import useTranslatedAndUntranslatedS... | 53,262 | |
https://github.com/FahmidAnabi/RoXtar-Tools/blob/master/Picta/vendor/stil/gd-text/tests/ColorTest.php | Github Open Source | Open Source | MIT | 2,019 | RoXtar-Tools | FahmidAnabi | PHP | Code | 171 | 619 | <?php
namespace GDText\Tests;
use GDText\Color;
class ColorTest extends TestCase
{
public function testPaletteImage()
{
$im = $this->openImageResource('owl.gif');
$color = new Color(0, 0, 255);
$index = $color->getIndex($im);
$this->assertNotEquals(-1, $index);
}
pub... | 38,622 |
https://github.com/datagovsg/doculens-sg/blob/master/frontend/src/pages/login/components/LoginForm.tsx | Github Open Source | Open Source | MIT | null | doculens-sg | datagovsg | TypeScript | Code | 196 | 621 | import { FC } from 'react'
import { useForm } from 'react-hook-form'
import {
Button,
FormControl,
FormErrorMessage,
FormLabel,
HStack,
Input,
Text,
VStack,
} from '@chakra-ui/react'
interface LoginFormProps {
email: string
onLogin: () => void
}
export const LoginForm: FC<LoginFormProps> = ({ emai... | 19,705 |
https://github.com/higherkindness/mu-scala-examples/blob/master/todolist/server/src/main/scala/ServerApp.scala | Github Open Source | Open Source | Apache-2.0 | 2,021 | mu-scala-examples | higherkindness | Scala | Code | 157 | 448 | /*
* Copyright 2020 47 Degrees, LLC. <http://www.47deg.com>
*
* 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 ... | 2,875 |
https://github.com/Liou1991/flutter_dojo/blob/master/lib/category/widgets/dialogsalertspanels/alertdialog.dart | Github Open Source | Open Source | MIT | null | flutter_dojo | Liou1991 | Dart | Code | 551 | 2,109 | import 'package:flutter/material.dart';
import 'package:flutter_dojo/common/main_title_widget.dart';
import 'package:flutter_dojo/common/subtitle_widget.dart';
class AlertDialogWidget extends StatelessWidget {
@override
Widget build(BuildContext context) {
return ListView(
children: <Widget>[
Mai... | 49,635 |
https://github.com/cruisetravel/zf2/blob/master/library/Zend/Serializer/Adapter/PythonPickleOptions.php | Github Open Source | Open Source | BSD-3-Clause | 2,015 | zf2 | cruisetravel | PHP | Code | 159 | 408 | <?php
/**
* Zend Framework (http://framework.zend.com/)
*
* @link http://github.com/zendframework/zf2 for the canonical source repository
* @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @package Z... | 24,485 |
https://github.com/PapamichMarios/GameOfLife/blob/master/timer.h | Github Open Source | Open Source | MIT | 2,020 | GameOfLife | PapamichMarios | C | Code | 133 | 285 | /* File: timer.h
*
* Purpose: Define a macro that returns the number of seconds that
* have elapsed since some point in the past. The timer
* should return times with microsecond accuracy.
*
* Note: The argument passed to the GET_TIME macro should be
* a double, *not* a p... | 18,123 |
https://github.com/charij/PlanetWars/blob/master/Submission-FaneVu/Program.cs | Github Open Source | Open Source | BSD-3-Clause | null | PlanetWars | charij | C# | Code | 80 | 227 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace CSharpAgent
{
class Program
{
static void Main(string[] args)
{
// Arg parsing
var endpointIndex = args.ToList().Select(a => a.ToLower()).ToList... | 42,746 |
https://github.com/SpaceIm/conan-pcl/blob/master/test_package/test_package.cpp | Github Open Source | Open Source | MIT | null | conan-pcl | SpaceIm | C++ | Code | 57 | 265 | #include <pcl/point_types.h>
#include <pcl/point_cloud.h>
#include <pcl/surface/convex_hull.h>
#include <iostream>
using PointCloud = pcl::PointCloud<pcl::PointXYZ>;
int main() {
auto cloud = PointCloud::Ptr(new PointCloud);
cloud->emplace_back(-1, -1, 0);
cloud->emplace_back(1, -1, 0);
cloud->emplac... | 48,888 |
https://github.com/MFransen69/rdkservices/blob/master/WebKitBrowser/cmake/FindWPEWebKit.cmake | Github Open Source | Open Source | BSD-2-Clause | null | rdkservices | MFransen69 | CMake | Code | 354 | 1,862 | # If not stated otherwise in this file or this component's license file the
# following copyright and licenses apply:
#
# Copyright 2020 RDK Management
#
# 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 Lice... | 2,741 |
https://github.com/nasyxx/THULAC-Python/blob/master/thulac/base/AlphaBeta.py | Github Open Source | Open Source | MIT | 2,022 | THULAC-Python | nasyxx | Python | Code | 208 | 628 | import time
class AlphaBeta:
value = 0
nodeId = 0
labelId = 0
def __init__(self):
self.value = 0
self.nodeId = -2
self.labelId = 0
def dbDecode(self, l_size, llWeights, nodeCount, nodes, values, alphas, result, preLabels, allowedLabelLists):
nodeId = 0
pNod... | 13,392 |
https://github.com/sandpipes/NBTBrowser/blob/master/src/main/java/dev/calibur/nbtbrowser/Icon.java | Github Open Source | Open Source | MIT | 2,020 | NBTBrowser | sandpipes | Java | Code | 26 | 102 | package dev.calibur.nbtbrowser;
import javafx.scene.Node;
import javafx.scene.image.Image;
import javafx.scene.image.ImageView;
public class Icon {
public static final Node editIcon = new ImageView(new Image(NBTBrowser.class.getResourceAsStream("/icons/selection-input-24.png"), 15, 15, false, false));
}
| 53,281 |
https://github.com/erbrito/aws-java-sdk/blob/master/aws-java-sdk-cognitoidp/src/main/java/com/amazonaws/services/cognitoidp/model/transform/CreateUserPoolRequestMarshaller.java | Github Open Source | Open Source | Apache-2.0 | 2,017 | aws-java-sdk | erbrito | Java | Code | 420 | 1,888 | /*
* Copyright 2012-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
* the License. A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "licen... | 28,672 |
https://github.com/onkibot/onkibot-backend/blob/master/src/main/java/com/onkibot/backend/database/repositories/ResourceRepository.java | Github Open Source | Open Source | MIT | 2,017 | onkibot-backend | onkibot | Java | Code | 22 | 104 | package com.onkibot.backend.database.repositories;
import com.onkibot.backend.database.entities.Resource;
import java.util.Optional;
import org.springframework.data.repository.CrudRepository;
import org.springframework.stereotype.Repository;
@Repository
public interface ResourceRepository extends CrudRepository<Resou... | 16,501 |
https://github.com/deeplearning4j/deeplearning4j/blob/master/deeplearning4j/deeplearning4j-nlp-parent/deeplearning4j-nlp/src/main/java/org/deeplearning4j/text/tokenization/tokenizer/preprocessor/StringCleaning.java | Github Open Source | Open Source | Apache-2.0, MIT, BSD-3-Clause | 2,023 | deeplearning4j | deeplearning4j | Java | Code | 171 | 370 | /*
* ******************************************************************************
* *
* *
* * This program and the accompanying materials are made available under the
* * terms of the Apache License, Version 2.0 which is available at
* * https://www.apache.org/licenses/LICENSE-2.0.
* *
* * See the NO... | 22,573 |
https://github.com/sarincr/JavaScript-for-Front-End-Development-/blob/master/JS LIBRARIES/MarkoJS/node_modules/@marko/translator-default/dist/taglib/core/translate-while.js | Github Open Source | Open Source | MIT | 2,022 | JavaScript-for-Front-End-Development- | sarincr | JavaScript | Code | 59 | 302 | "use strict";var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");exports.__esModule = true;exports.exit = exit;var _compiler = require("@marko/compiler");
var _babelUtils = require("@marko/babel-utils");
var _withPreviousLocation = _interopRequireDefault(require("../../util/with-pre... | 31,597 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.