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/dengg88/ExpressCraft/blob/master/ExpressCraft/controls/TextInput.cs
Github Open Source
Open Source
Apache-2.0
2,018
ExpressCraft
dengg88
C#
Code
1,177
3,732
using static Retyped.dom; using System; using System.Text; namespace ExpressCraft { public class TextInput : Control { private string prevText = ""; public Action<TextInput> OnTextChanged = null; public Action<TextInput, KeyboardEvent> OnKeyDown = null; public Action<TextInput...
36,623
https://github.com/ByoungilYoun/Brandingdong_iOS/blob/master/Brandingdong/Brandingdong/Controller/Category/Category/FirstCategory/FirstCategoryView.swift
Github Open Source
Open Source
MIT
null
Brandingdong_iOS
ByoungilYoun
Swift
Code
258
829
// // FirstCategoryView.swift // Brandingdong // // Created by 윤병일 on 2020/09/07. // Copyright © 2020 jwlee. All rights reserved. // import UIKit class FirstCategoryView : UIView { //MARK: - Properties private let collectionView : UICollectionView = { let layout = UICollectionViewFlowLayout() layou...
10,168
https://github.com/favclip/qbg/blob/master/misc/fixture/f/model.go
Github Open Source
Open Source
MIT
2,022
qbg
favclip
Go
Code
19
52
//go:generate qbg -output model_query.go . package f // +qbg type Sample struct { Kind string `goon:"kind,sample_kind"` Foo string }
47,681
https://github.com/innovativemedicine/vcfimp/blob/master/vcfimp/src/test/scala/ca/innovativemedicine/vcf/parsers/VcfValueParsersTest.scala
Github Open Source
Open Source
BSD-2-Clause
2,015
vcfimp
innovativemedicine
Scala
Code
137
851
package ca.innovativemedicine.vcf.parsers import ca.innovativemedicine.vcf._ import org.scalatest.FunSuite class VcfValueParsersTest extends FunSuite { val parser = new VcfValueParsers {} test("repNsep") { assert(parser.parseAll(parser.repNsep(3, parser.vcfInteger, parser.elem(',')), "123,-245,367").succe...
40,277
https://github.com/asia-expeditions-co-ltd/takemetoburma/blob/master/resources/views/admin/subscribe/subscribe.blade.php
Github Open Source
Open Source
MIT
null
takemetoburma
asia-expeditions-co-ltd
PHP
Code
154
901
@extends('layout.backend') @section('subscribe', 'active') @section('title', 'subscribe List') <?php use App\component\Content; ?> @section('content') <div class="wrapper"> @include('admin.include.header') @include('admin.include.leftMenu') <script type="text/javascript" src="{{ asset('adminlte/js/lib/jquery...
30,609
https://github.com/GarPit/spree_bank_transfer/blob/master/app/helpers/spree/admin/banks_helper.rb
Github Open Source
Open Source
BSD-3-Clause
null
spree_bank_transfer
GarPit
Ruby
Code
25
85
module Spree module Admin module BanksHelper def bank_status(bank) bank.active? ? 'Active' : 'Inactive' end def action_to_toggle_bank_status(bank) bank.active? ? 'Deactivate' : 'Activate' end end end end
50,583
https://github.com/sagarnikam123/learnNPractice/blob/master/codingBat/python/logic1/in1To10.py
Github Open Source
Open Source
MIT
2,023
learnNPractice
sagarnikam123
Python
Code
110
264
####################################################################################################################### # # in1To10 # # Given a number n, return true if n is in the range 1..10, inclusive. Unless "outsideMode" # is true, in which case return true if the number is less or equal to 1, or greater ...
40,966
https://github.com/pin062788/spring-cloud/blob/master/example-platform/src/main/java/com/cloud/example/platform/aop/aspect/ServiceAspect.java
Github Open Source
Open Source
Apache-2.0
2,019
spring-cloud
pin062788
Java
Code
415
1,394
/* * Copyright 2019 https://github.com/romeoblog/spring-cloud.git Group. * * 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 * * ...
34,291
https://github.com/ZWboy97/react-xrplayer/blob/master/src/controls/InnerViewControls.js
Github Open Source
Open Source
MIT
2,021
react-xrplayer
ZWboy97
JavaScript
Code
1,344
5,039
/** * 在球体中的全景视角控制 * Three.js自带的Controls控制效果不理想,所以自己实现控制器 */ import * as THREE from 'three'; import DeviceOrientationControls from './DeviceOrientationControls'; class InnerViewControls { constructor(camera) { this.camera = camera; this.isConnected = true; this.isUserInteracting = false;...
14,128
https://github.com/lamu-ai/beatrice/blob/master/beatrice/frontend/src/components/Sidebar.vue
Github Open Source
Open Source
MIT
2,022
beatrice
lamu-ai
Vue
Code
92
337
<script setup lang="ts"> interface Props { side?: "left" | "right"; sideWidth?: string; contentMin?: string; space?: string; noStretch?: boolean; } withDefaults(defineProps<Props>(), { side: "left", sideWidth: "auto", contentMin: "50%", space: "var(--s1)", noStretch: false, }); </script> <template...
13,842
https://github.com/robertfeldt/DataGenerators.jl/blob/master/test/internals/_constrain_parameters_sampler.jl
Github Open Source
Open Source
MIT
2,018
DataGenerators.jl
robertfeldt
Julia
Code
244
1,219
include("sampler_test_utils.jl") describe("Constrain Parameters Sampler") do describe("construction") do subsA = DataGenerators.CategoricalSampler(2) test("numparams, paramranges, getparams") do cprs = [(0.2, 0.7), (0.3, 0.6)] s = DataGenerators.ConstrainParametersSampler(subsA, cprs) @check DataGen...
21,755
https://github.com/DanAddison/da-boilerplate/blob/master/wp-content/themes/da_boilerplate/assets/js/modules/_dropdownMenu.js
Github Open Source
Open Source
MIT
null
da-boilerplate
DanAddison
JavaScript
Code
192
683
/* * Module: DropdownMenu * * create dropdown menu with different behaviour at different screen widths * * (Revealing Module Pattern - https://toddmotto.com/mastering-the-module-pattern/) */ var DropdownMenu = (function($) { var settings = { $submenus: $('.sub-menu'), triggerClass: 'sub-menu__trigger', brea...
3,880
https://github.com/Saeris/graphql-scalars/blob/master/src/__TEST__/range.spec.ts
Github Open Source
Open Source
MIT
2,021
graphql-scalars
Saeris
TypeScript
Code
1,101
3,900
import { Kind } from "graphql/language" import { rangeFactory } from "../" describe(`rangeFactory`, () => { const NOT_FINITE = /Value is not a finite number:/ const NOT_NUMBER = /Value is not a number:/ const NOT_INTEGER = /Value is not an integer:/ const OUTSIDE_RANGE = /Value is (less|greater) than limit: [0...
6,429
https://github.com/githork/Corehaven/blob/master/DungeonHubWorld/.core_backup/version_0_2020.08.18-11.16.31/Materials/Custom Base Material from Fantasy Human Guy.pbt
Github Open Source
Open Source
Apache-2.0
2,021
Corehaven
githork
Protocol Buffer Text Format
Code
83
292
Assets { Id: 3616345089643719536 Name: "Custom Base Material from Fantasy Human Guy" PlatformAssetType: 13 SerializationVersion: 62 CustomMaterialAsset { BaseMaterialId: 15152287732364962420 ParameterOverrides { Overrides { Name: "emissive_boost" Float: 0 } Overrides ...
23,048
https://github.com/BugGirls/camprecruit/blob/master/out/artifacts/camprecruit_war_exploded/fe/assets/js/toast.js
Github Open Source
Open Source
Apache-2.0
2,021
camprecruit
BugGirls
JavaScript
Code
271
1,539
'use strict'; (function($,window){ //动态加载animate var loadStyles = function(url) { var hasSameStyle = false; var links = $('link'); for(var i = 0;i<links.length;i++){ if(links.eq(i).attr('href') == url){ hasSameStyle = true; return } } if(!hasSameStyle){ var link = document.createElement("...
982
https://github.com/htbkoo/hey-hkul-hours/blob/master/src/service/HoursConverter.ts
Github Open Source
Open Source
MIT
2,019
hey-hkul-hours
htbkoo
TypeScript
Code
106
352
import Hours from "./hour/model/Hours"; import {areEqualIgnoringCase} from "../utils/StringUtils"; import HourParser from "./hour/HourParser"; import HoursSplitter from "./hour/HoursSplitter"; import MomentConverter from "./hour/MomentConverter"; const CLOSED = "Closed"; export default class HoursConverter { priv...
30,443
https://github.com/heymajor/learning-python/blob/master/edX/MIT6001x/wk1/wk_1_for2.py
Github Open Source
Open Source
Unlicense
null
learning-python
heymajor
Python
Code
12
32
x = 10 print('Hello!') for i in range(5): print(x) x -= 2
17,310
https://github.com/neder-land/jww/blob/master/src/main/java/com/github/neder_land/jww/packet/Packet.java
Github Open Source
Open Source
MIT
null
jww
neder-land
Java
Code
124
434
package com.github.neder_land.jww.packet; import com.google.gson.*; public class Packet<T extends PacketContent> { public static final Gson GSON = new GsonBuilder().setPrettyPrinting().excludeFieldsWithoutExposeAnnotation().create(); private String action; private T content; /* Preserved for fu...
7,832
https://github.com/FanJups/lyonBicyclesMap/blob/master/js/mapLyon.js
Github Open Source
Open Source
MIT
2,019
lyonBicyclesMap
FanJups
JavaScript
Code
823
2,996
/* Remarques générales : 1- Les coordonées fournies par google maps sont plus précises 2- Il y'a une légère différence entre les coordonnées de la station et du marqueur pour le même point. les lng des stations ont 6 chiffres après la virgule alors que la map c'est 15 ! pour les lat , pareil 6 chiffres après la v...
16,230
https://github.com/guyang66/gy-ejs-ecoco/blob/master/script/filter/initFilter.sh
Github Open Source
Open Source
MIT
2,022
gy-ejs-ecoco
guyang66
Shell
Code
52
178
#!/bin/sh echo "============== initFilter ==================" cd `dirname $0` cd .. echo $PWD ENTRY_FILTER=$1 RESULT="var entryFilters = ["; if [ "x$ENTRY_FILTER" = "x" ]; then RESULT=${RESULT}"'ALL_FILE'," else for i in `echo ${ENTRY_FILTER} | sed 's/,/ /g'` do echo "${i}"; RESULT=${RESULT}"'${i}'," ...
23,846
https://github.com/wutdydev/Mprojext/blob/master/assets/auto_complete/auto_recieve.php
Github Open Source
Open Source
MIT
2,019
Mprojext
wutdydev
PHP
Code
193
1,070
<?php @session_start(); $type_user = $_SESSION["type_user"]; $company_user = $_SESSION["company_user"]; if($type_user == 1 or $type_user == 7){ $bu_fix = "1','2','3','4','5','6"; }else if($company_user == 6){ $bu_fix = "1"; }else{ $bu_fix = $company_user; } header("Content-type:text/html; charset=UTF-8");...
11,133
https://github.com/mehmadi/mmw-geoprocessing/blob/master/summary/src/main/scala/SummaryJob.scala
Github Open Source
Open Source
Apache-2.0
2,016
mmw-geoprocessing
mehmadi
Scala
Code
558
1,890
package org.wikiwatershed.mmw.geoprocessing import com.typesafe.config.Config import org.apache.spark._ import org.apache.spark.SparkContext._ import spark.jobserver._ import geotrellis.raster._ import geotrellis.spark._ import geotrellis.spark.io.s3._ import geotrellis.spark.io.avro.codecs._ import geotrellis.spark...
28,978
https://github.com/ahwillia/tensor-demo/blob/master/.gitignore
Github Open Source
Open Source
MIT
2,022
tensor-demo
ahwillia
Ignore List
Code
1
10
data/ofc-1/*/
44,116
https://github.com/yusufwardana/Jateng7Apps/blob/master/grab.php
Github Open Source
Open Source
MIT
null
Jateng7Apps
yusufwardana
PHP
Code
143
489
<?php function erDebug($var, $title='', $return=false) { if ($return) return highlight_string($title.': '.print_r($var, true), true); highlight_string($title.': '.print_r($var, true)); } $DATABASE_HOST = 'localhost'; $DATABASE_USER = 'centrumt_jt7'; $DATABASE_PASS = '1@$21%jXXfVv'; $DATABASE_NAME = 'centrumt_jt7'; /...
2,543
https://github.com/jcs090218/Prevo/blob/master/Assets/Prevo/Editor/Preview/PreviewObject.cs
Github Open Source
Open Source
MIT
null
Prevo
jcs090218
C#
Code
831
2,370
#if UNITY_EDITOR /** * Copyright (c) 2021 Jen-Chieh Shen * * Permission is hereby granted, free of charge, to any person obtaining a copy of this software/algorithm and associated * documentation files (the "Software"), to use, copy, modify, merge or distribute copies of the Software, and to permit * persons to w...
12,062
https://github.com/pollen-solutions/wp-kernel/blob/master/src/Media/Media.php
Github Open Source
Open Source
MIT
null
wp-kernel
pollen-solutions
PHP
Code
383
1,339
<?php declare(strict_types=1); namespace Pollen\WpKernel\Media; use Pollen\Support\Img; use Pollen\Support\MimeTypes; class Media implements MediaInterface { /** * CONSTRUCTEUR. * * @return void */ public function __construct() { MimeTypes::setAllowedMapping( func...
36,323
https://github.com/chromium/chromium/blob/master/remoting/host/crash/crash_file_uploader.h
Github Open Source
Open Source
BSD-3-Clause
2,023
chromium
chromium
C++
Code
140
470
// Copyright 2023 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef REMOTING_HOST_CRASH_CRASH_FILE_UPLOADER_H_ #define REMOTING_HOST_CRASH_CRASH_FILE_UPLOADER_H_ #include <memory> #include <string> #include "base/files/file_path.h" #i...
50,466
https://github.com/zhangkn/iOS14Header/blob/master/usr/lib/libacmobileshim.dylib/ACFHTTPMethodInvocationInternal.h
Github Open Source
Open Source
MIT
2,020
iOS14Header
zhangkn
C
Code
170
615
/* * This header is generated by classdump-dyld 1.0 * on Sunday, September 27, 2020 at 12:32:54 PM Mountain Standard Time * Operating System: Version 14.0 (Build 18A373) * Image Source: /usr/lib/libacmobileshim.dylib * classdump-dyld is licensed under GPLv3, Copyright © 2013-2016 by Elias Limneos. */ @class NSRecursi...
22,069
https://github.com/cea-trust-platform/trust-code/blob/master/src/P1NCP1B/Zones/VEFPreP1B.cpp
Github Open Source
Open Source
BSD-3-Clause
2,022
trust-code
cea-trust-platform
C++
Code
1,406
4,028
/**************************************************************************** * Copyright (c) 2019, CEA * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * 1. Redistributions of source code must retai...
20,670
https://github.com/arogant7000/spr/blob/master/resources/views/admin/user/change-password.blade.php
Github Open Source
Open Source
MIT
null
spr
arogant7000
PHP
Code
151
730
@extends('admin.master') @section('title') Change Password @endsection @section('content') <div class="container"> <div class="login-wrap"> <div class="login-content"> ...
4,883
https://github.com/akoken/onion-architecture/blob/master/src/Core/DomainService/CommandBase/ICommandExecutor.cs
Github Open Source
Open Source
MIT
2,022
onion-architecture
akoken
C#
Code
14
57
using System.Collections.Generic; namespace OnionArchitecture.Core.DomainService.CommandBase { public interface ICommandExecutor { void Execute(IEnumerable<ICommand> commands); } }
38,618
https://github.com/orbitbot/mithril-underpants/blob/master/gulpfile.js
Github Open Source
Open Source
0BSD
2,015
mithril-underpants
orbitbot
JavaScript
Code
350
1,250
var gulp = require('gulp-help')(require('gulp'), { hideDepsMessage: true }); var $ = require('gulp-load-plugins')(); var KarmaServer = require('karma').Server; var _ = require('lodash'); var browserSync = require('browser-sync').create(); var at = require('gulp-asset-transform'); v...
20,950
https://github.com/kr056/Softuni/blob/master/Java OOP Basics October 2017/a_Defining_Classes_Exercises/DefiningClassesExercises/p08_PokemonTrainer/Trainer.java
Github Open Source
Open Source
MIT
null
Softuni
kr056
Java
Code
92
342
package DefiningClassesExercises.p08_PokemonTrainer; import java.util.List; import java.util.stream.Collectors; public class Trainer { private static final int DEFAULT_BADGES = 0; private String name; private int numberOfBadges = DEFAULT_BADGES; private List<Pokemon> pokemons; Trainer(String name...
22,098
https://github.com/miguelvazq/HPCC-Platform/blob/master/ecl/regress/joinproject.ecl
Github Open Source
Open Source
Apache-2.0
2,022
HPCC-Platform
miguelvazq
ECL
Code
197
499
/*############################################################################## HPCC SYSTEMS software Copyright (C) 2012 HPCC Systems®. 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...
15,710
https://github.com/hendrasob/kotlin/blob/master/compiler/testData/diagnostics/tests/functionAsExpression/ReceiverByExpectedType.kt
Github Open Source
Open Source
LicenseRef-scancode-unknown-license-reference, Apache-2.0
2,021
kotlin
hendrasob
Kotlin
Code
17
108
// !WITH_NEW_INFERENCE fun foo(<!UNUSED_PARAMETER!>f<!>: String.() -> Int) {} val test = foo(<!TYPE_MISMATCH{NI}, TYPE_MISMATCH{NI}, TYPE_MISMATCH!>fun <!EXPECTED_PARAMETERS_NUMBER_MISMATCH{NI}!>()<!> = <!UNRESOLVED_REFERENCE!>length<!><!>)
21,069
https://github.com/N0tExpectErr0r/GDUT-ClassTimeTable/blob/master/app/src/main/java/com/n0texpecterr0r/classtimetable/ui/CourseDialog.java
Github Open Source
Open Source
Apache-2.0
2,021
GDUT-ClassTimeTable
N0tExpectErr0r
Java
Code
135
716
package com.n0texpecterr0r.classtimetable.ui; import android.app.Dialog; import android.content.Context; import android.os.Bundle; import android.support.annotation.NonNull; import android.view.View; import android.widget.ImageView; import android.widget.TextView; import com.n0texpecterr0r.classtimetable.R; import com...
5,583
https://github.com/colaplate/ofxLiveSet/blob/master/webapp/ofxliveset/src/components/Session.js
Github Open Source
Open Source
MIT
2,019
ofxLiveSet
colaplate
JavaScript
Code
73
204
import React, { Component } from "react"; import { connect } from "react-redux"; const mapStateToProps = (state) => { return { tracks: state.session.tracks, counter: state.session.counter }; }; class Session extends Component { render(){ console.log(this.props.tracks) const...
49,294
https://github.com/ridwannaruto/NVS/blob/master/src/Ridwan/SiteBundle/Resources/views/Authentication/login.html.twig
Github Open Source
Open Source
MIT
null
NVS
ridwannaruto
Twig
Code
659
2,478
{% extends '::base.html.twig' %} {% block pageInfo %} <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> {% endblock %} {% block stylesheets %} <link type="text/css" href="{{ asset('bundles/ridwansite/css/anime.css') }}"/> <link type="text/css" href="{{ asset('...
6,574
https://github.com/Zhekbland/job4j/blob/master/chapter_001/src/main/java/ru/job4j/array/Check.java
Github Open Source
Open Source
Apache-2.0
2,019
job4j
Zhekbland
Java
Code
85
186
package ru.job4j.array; /** * Class Check checks how the array is filled. * @author Evgeny Shpytev (mailto:eshpytev@mail.ru) * @version $Id$ * @since 0.1 */ public class Check { /** * What does array have, true or false?. * @param data array of elements true, false. * @return true or false. ...
1,742
https://github.com/Bit-Nation/BITNATION-Pangea-desktop/blob/master/src/renderer/actions/user.ts
Github Open Source
Open Source
MIT
2,018
BITNATION-Pangea-desktop
Bit-Nation
TypeScript
Code
189
602
import { IUserType } from '../types/user'; export const SHOW_USER_SPINNER = 'SHOW_USER_SPINNER'; export const HIDE_USER_SPINNER = 'HIDE_USER_SPINNER'; export const USER_LOGIN = 'USER_LOGIN'; export const USER_LOGIN_SUCCESS = 'USER_LOGIN_SUCCESS'; export const USER_LOGIN_ERROR = 'USER_LOGIN_ERROR'; export const USER_LOG...
26,244
https://github.com/JohnPokorski/Social-Network-Analysis-of-Abbaye-aux-Bois/blob/master/setup.py
Github Open Source
Open Source
MIT
null
Social-Network-Analysis-of-Abbaye-aux-Bois
JohnPokorski
Python
Code
84
266
#Build on windows with #> python setup.py build #> python setup.py bdist_msi import sys import os from cx_Freeze import setup, Executable # Dependencies are automatically detected, but it might need fine tuning. build_exe_options = {"packages": ["os"]} # GUI applications require a different base on Windows (the def...
35,179
https://github.com/huntinator7/use-socketio/blob/master/example/src/components/Profile.js
Github Open Source
Open Source
MIT
2,019
use-socketio
huntinator7
JavaScript
Code
23
63
import React from "react"; import "./Profile.css"; export const Profile = () => ( <div className="profile"> <div className="profile-banner" /> <div className="profile-avatar" /> </div> );
10,785
https://github.com/ammarsyatbi/Data-Analytics-Project/blob/master/PPZ/js/gender.js
Github Open Source
Open Source
MIT
2,018
Data-Analytics-Project
ammarsyatbi
JavaScript
Code
209
726
function drawGender(lelaki,perempuan,tak_tahu) { var dom = document.getElementById("genderpie"); var myChart = echarts.init(dom); myChart.showLoading(); var app = {}; option = null; option = { title : { text: 'Bilangan Pembayar Mengikut Jantina', x:'center' }, tooltip : ...
20,512
https://github.com/pdv-ru/ClickHouse/blob/master/src/AggregateFunctions/AggregateFunctionTTest.h
Github Open Source
Open Source
Apache-2.0
2,020
ClickHouse
pdv-ru
C
Code
547
1,953
#pragma once #include <AggregateFunctions/IAggregateFunction.h> #include <AggregateFunctions/StatCommon.h> #include <Columns/ColumnVector.h> #include <Columns/ColumnTuple.h> #include <Common/assert_cast.h> #include <Core/Types.h> #include <DataTypes/DataTypesNumber.h> #include <DataTypes/DataTypeTuple.h> #include <cma...
26,083
https://github.com/michaelneu/mi-band-broadcast-receiver/blob/master/app/src/main/java/eu/michaeln/mibandbroadcastreceiver/MainActivity.java
Github Open Source
Open Source
MIT
2,019
mi-band-broadcast-receiver
michaelneu
Java
Code
268
1,217
package eu.michaeln.mibandbroadcastreceiver; import android.content.Context; import android.content.DialogInterface; import android.content.Intent; import android.os.Bundle; import android.support.design.widget.FloatingActionButton; import android.support.v7.app.ActionBar; import android.support.v7.app.AlertDialog; im...
27,574
https://github.com/YuanWenqing/shopify4j/blob/master/graphql-storefront-api/src/main/java/codemeans/shopify4j/graphql/storefront/DefaultGraphqlStorefront.java
Github Open Source
Open Source
Apache-2.0
2,022
shopify4j
YuanWenqing
Java
Code
216
869
package codemeans.shopify4j.graphql.storefront; import codemeans.shopify4j.core.exception.GraphqlApiException; import codemeans.shopify4j.graphql.GraphqlInvoker; import codemeans.shopify4j.graphql.storefront.exception.GraphqlStorefrontMutationException; import codemeans.shopify4j.graphql.storefront.exception.GraphqlSt...
49,875
https://github.com/ThaisaMirely/SimpleLang/blob/master/plp-master/src/plp/orientadaObjetos3/declaracao/modulo/DecModulo.java
Github Open Source
Open Source
MIT
null
SimpleLang
ThaisaMirely
Java
Code
176
1,028
package plp.orientadaObjetos3.declaracao.modulo; import plp.expressions2.memory.VariavelJaDeclaradaException; import plp.expressions2.memory.VariavelNaoDeclaradaException; import plp.orientadaObjetos1.declaracao.Declaracao; import plp.orientadaObjetos1.declaracao.procedimento.DecProcedimento; import plp.orientadaObjet...
2,716
https://github.com/madisona/django-registration/blob/master/registration/views.py
Github Open Source
Open Source
BSD-3-Clause
2,015
django-registration
madisona
Python
Code
81
339
from django import http from django.views.generic import TemplateView from django.views.generic.edit import FormView from django.core.urlresolvers import reverse from registration import forms from registration import models class Register(FormView): template_name = 'registration/register.html' form_class = ...
25,950
https://github.com/vulture990/Portofolio-2.0/blob/master/tailwind.config.js
Github Open Source
Open Source
MIT
2,022
Portofolio-2.0
vulture990
JavaScript
Code
124
542
/* eslint-disable */ module.exports = { purge: ["./components/**/*.tsx", "./pages/**/*.tsx"], theme: { backgroundColor: theme => ({ ...theme('colors'), 'primary': '#3490dc', 'secondary': '#ffed4a', 'danger': '#e3342f', 'white':'#FFFFFF', 'footer': '#EAFAFB', 'icons':'#...
13,144
https://github.com/garmin/ActiveCaptainCommunitySDK-common/blob/master/DTO/MapMarkerFilter.cpp
Github Open Source
Open Source
Apache-2.0
null
ActiveCaptainCommunitySDK-common
garmin
C++
Code
317
892
/*------------------------------------------------------------------------------ Copyright 2021 Garmin Ltd. or its subsidiaries. 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.apach...
44,859
https://github.com/PlantandFoodResearch/irods/blob/master/iRODS/clients/icommands/test/rules3.0/rulemsiQuota.r
Github Open Source
Open Source
BSD-3-Clause
2,019
irods
PlantandFoodResearch
R
Code
23
78
myTestRule { #Administrator command to cause update to iCAT quota tables delay("<PLUSET>30s</PLUSET><EF>24h</EF>") { msiQuota; writeLine("serverLog","Updated quota check"); } } INPUT null OUTPUT ruleExecOut
28,977
https://github.com/gryf/fs-uae-wrapper/blob/master/tests/test_message.py
Github Open Source
Open Source
BSD-3-Clause, LicenseRef-scancode-unknown-license-reference
2,022
fs-uae-wrapper
gryf
Python
Code
127
658
from unittest import TestCase import os try: from unittest import mock except ImportError: import mock from fs_uae_wrapper import message if os.environ.get('DISPLAY'): try: import tkinter as tk from tkinter import ttk except ImportError: import Tkinter as tk import ttk...
8,692
https://github.com/3lyalvarado/Metodos-basicos/blob/master/Prototipo avl/PRUEBASS.py
Github Open Source
Open Source
MIT
null
Metodos-basicos
3lyalvarado
Python
Code
44
212
from PIL import Image idDictionary= {'1': ['Python','Django','JavaScript']} #print(idDictionary.keys()) if 'carate' < 'carate': print("false") else: print("True") lista = [1,1,2] print(len(lista)) print(len(lista)) from graphviz import render nombre = "xd" ###### node1 [label="df...
7,887
https://github.com/ourobouros/startup-os/blob/master/tools/local_server/run.sh
Github Open Source
Open Source
Apache-2.0
2,018
startup-os
ourobouros
Shell
Code
103
291
# Run LocalHttpGateway and LocalServer # Usage: # run.sh --root_path <root_path> # Build and exit on fail: bazel build //tools/local_server:local_http_gateway if [ $? -ne 0 ]; then exit $? fi bazel build //tools/local_server:local_server if [ $? -ne 0 ]; then exit $? fi # Kill previous: if [ "$(uname)" = "Darwin"...
24,328
https://github.com/cloudify-cosmo/cloudify-stage/blob/master/test/cypress/integration/widgets/service_button_spec.ts
Github Open Source
Open Source
Apache-2.0
2,023
cloudify-stage
cloudify-cosmo
TypeScript
Code
157
572
describe('Service Button widget', () => { const widgetId = 'serviceButton'; const widgetSelector = `.${widgetId}Widget`; const clickServiceButton = () => { cy.get(`${widgetSelector} button`).click(); }; before(() => cy.activate().useWidgetWithDefaultConfiguration(widgetId)); beforeEach...
5,033
https://github.com/elky84/ArchaicQuest-II/blob/master/ArchaicQuestII.GameLogic/Item/ItemList.cs
Github Open Source
Open Source
MIT
2,020
ArchaicQuest-II
elky84
C#
Code
93
300
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace ArchaicQuestII.GameLogic.Item { public class ItemList: List<Item>, IItemList { public string Name { get; set; } public int CountOfItems { get; set; } public IEnumerable<string> List(bo...
41,304
https://github.com/raymundcat/AnongBago/blob/master/AnongBago/Source/Cells/AnongBagoBulletedCardCell.swift
Github Open Source
Open Source
MIT
2,018
AnongBago
raymundcat
Swift
Code
100
347
// // AnongBagoBulletedCardCell.swift // AnongBago // // Created by John Raymund Catahay on 27/05/2018. // Copyright © 2018 John Raymund Catahay. All rights reserved. // import UIKit class AnongBagoBulletedCardCell: UICollectionViewCell { lazy var cardView: AnongBagoBulletedCardView = { let view ...
33,047
https://github.com/nandha007/tnbooks.in/blob/master/app/Models/Book.php
Github Open Source
Open Source
MIT
null
tnbooks.in
nandha007
PHP
Code
108
319
<?php namespace App\Models; use Illuminate\Database\Eloquent\Model; use Illuminate\Database\Eloquent\SoftDeletes; class Book extends Model { use SoftDeletes; /** * The database table used by the model. * * @var string */ protected $table = 'books'; /** * The database table used by the model. * * ...
4,698
https://github.com/igrep/vim-iced/blob/master/autoload/iced/component/selector.vim
Github Open Source
Open Source
MIT
2,021
vim-iced
igrep
Vim Script
Code
90
389
let s:save_cpo = &cpoptions set cpoptions&vim let s:selector = { \ 'ctrlp': {'runtimepath': 'plugin/ctrlp.vim', \ 'run': {config -> ctrlp#iced#start(config)}}, \ 'fzf': {'runtimepath': 'plugin/fzf.vim', \ 'run': {config -> fzf#iced#start(config)}}, \ 'clap': {'runtimepa...
36,220
https://github.com/IBM/openshift-workshop-was-admins/blob/master/labs/Openshift/RuntimeModernization/app/CustomerOrderServicesWeb/src/org/pwte/example/resources/CustomerOrderResource.java
Github Open Source
Open Source
Apache-2.0
2,020
openshift-workshop-was-admins
IBM
Java
Code
694
3,252
package org.pwte.example.resources; import java.net.URI; import java.text.SimpleDateFormat; import java.util.Date; import java.util.HashMap; import java.util.List; import java.util.Set; import javax.ejb.TransactionAttribute; import javax.ejb.TransactionAttributeType; import javax.enterprise.context.ApplicationScoped;...
44,905
https://github.com/conrad-kronos/zeus/blob/master/zeus/db/types/__init__.py
Github Open Source
Open Source
Apache-2.0
2,021
zeus
conrad-kronos
Python
Code
24
41
from .enum import * # NOQA from .file import * # NOQA from .guid import * # NOQA from .json import * # NOQA
35,821
https://github.com/ydb-platform/ydb-php-sdk/blob/master/protos/Ydb/Scripting/ExplainYqlRequest/Mode.php
Github Open Source
Open Source
Apache-2.0
2,023
ydb-php-sdk
ydb-platform
PHP
Code
164
480
<?php # Generated by the protocol buffer compiler. DO NOT EDIT! # source: protos/ydb_scripting.proto namespace Ydb\Scripting\ExplainYqlRequest; use UnexpectedValueException; /** * Protobuf type <code>Ydb.Scripting.ExplainYqlRequest.Mode</code> */ class Mode { /** * Generated from protobuf enum <code>MODE...
14,402
https://github.com/durai-23/blinkid-flutter/blob/master/BlinkID/lib/overlays/blinkid_overlays.g.dart
Github Open Source
Open Source
MIT
2,021
blinkid-flutter
durai-23
Dart
Code
337
1,522
// GENERATED CODE - DO NOT MODIFY BY HAND part of 'blinkid_overlays.dart'; // ************************************************************************** // JsonSerializableGenerator // ************************************************************************** DocumentOverlaySettings _$DocumentOverlaySettingsFromJson...
10,641
https://github.com/dylanmaryk/InsanityRadio-iOS/blob/master/InsanityRadio/DataModel.swift
Github Open Source
Open Source
MIT
2,020
InsanityRadio-iOS
dylanmaryk
Swift
Code
591
1,841
// // DataModel.swift // InsanityRadio // // Created by Dylan Maryk on 31/05/2015. // Copyright (c) 2015 Insanity Radio. All rights reserved. // import Foundation class DataModel { static func getCurrentShow() -> (day: String, name: String, presenters: String, link: String, imageURL: String) { if let ...
35,248
https://github.com/vita-ps/vita-headers/blob/master/include/psp2/pss.h
Github Open Source
Open Source
MIT
2,018
vita-headers
vita-ps
C
Code
38
196
/** * \usergroup{ScePss} * \usage{psp2/pss.h,SceLibMonoBridge_stub} */ #ifndef _PSP2_PSS_H_ #define _PSP2_PSS_H_ #include <psp2/types.h> #ifdef __cplusplus extern "C" { #endif void *pss_code_mem_alloc(SceSize *); void pss_code_mem_flush_icache(const void *, SceSize); void pss_code_mem_lock(void); void pss_code_...
6,857
https://github.com/threestone-analytics/jamxio-web/blob/master/src/components/Panel/style.js
Github Open Source
Open Source
Apache-2.0
2,018
jamxio-web
threestone-analytics
JavaScript
Code
138
439
import styled from 'styled-components'; export const Space = styled.div` height: 57px; width: 100%; `; export const PanelContainer = styled.div` position: relative; top: 0; right: 0; width: 315px; max-width: 320px; font-size: 13px; line-height: 2; outline: none; color: #fff; vertical-align: mid...
27,317
https://github.com/DanielGrech/WeatherDemo/blob/master/WeatherDemo/src/main/java/com/dgsd/android/weatherdemo/util/ReleaseLogger.java
Github Open Source
Open Source
Apache-2.0
2,015
WeatherDemo
DanielGrech
Java
Code
100
275
package com.dgsd.android.weatherdemo.util; import android.util.Log; import timber.log.Timber; /** * Logger used in the release flavour of the application */ public class ReleaseLogger extends Timber.HollowTree { private String mTag; public ReleaseLogger(String tag) { this.mTag = tag; } @O...
19,451
https://github.com/lovyan03/esp-idf/blob/master/components/lwip/include/apps/sntp/sntp.h
Github Open Source
Open Source
Apache-2.0
2,022
esp-idf
lovyan03
C
Code
150
268
// Copyright 2020 Espressif Systems (Shanghai) PTE LTD // // 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 applicab...
25,216
https://github.com/jvamvas/sacrerouge/blob/master/sacrerouge/tests/metrics/docker/lite3pyramid_test.py
Github Open Source
Open Source
Apache-2.0
2,022
sacrerouge
jvamvas
Python
Code
187
1,214
import pytest from repro.common.docker import image_exists from repro.models.zhang2021 import DEFAULT_IMAGE from sacrerouge.common.testing.metric_test_cases import ReferenceBasedMetricTestCase from sacrerouge.common.testing.util import sacrerouge_command_exists, get_gpu_device from sacrerouge.metrics.docker import Doc...
30,932
https://github.com/mozartvn/intro-systems-biology/blob/master/lectures/Lecture 13 - Simple Negative Feedback Loop; Nyquist Criterion for Stability/compare_nyquist_and_zeros.m
Github Open Source
Open Source
MIT
2,016
intro-systems-biology
mozartvn
MATLAB
Code
82
262
function [] = compare_nyquist_and_zeros() k = 1; G = tf([1 0],[1 6 18]); figure subplot(1, 2, 1); pzmap(G) axis([-4 1 -4 4]) title('Poles (x) and roots (o) of G(s)') subplot(1, 2, 2); pzmap(G - 1) axis([-4 1 -4 4]) title('Poles (x) and roots (o) of 1 + kG(s)') figure ...
41,872
https://github.com/jinal--shah/packer_base_centos/blob/master/.gitignore
Github Open Source
Open Source
MIT
2,016
packer_base_centos
jinal--shah
Ignore List
Code
34
70
# ... if user installed pip locally **/get-pip.py # ... if user storing vars to export to run make locally .env_vars # ... ignore the assets from the build process **/*.pem **/*.gz **/*.swp **/packer_includes
31,640
https://github.com/aliyun/alibabacloud-php-sdk/blob/master/aligenie-ip_1_0/src/Models/UpdateTicketRequest.php
Github Open Source
Open Source
Apache-2.0
2,023
alibabacloud-php-sdk
aliyun
PHP
Code
154
496
<?php // This file is auto-generated, don't edit it. Thanks. namespace AlibabaCloud\SDK\AliGenie\Vip_1_0\Models; use AlibabaCloud\Tea\Model; class UpdateTicketRequest extends Model { /** * @example 2023***93975 * * @var string */ public $groupKey; /** * @example 520a0c0***5eb ...
25,135
https://github.com/sayari-analytics/falcor-router/blob/master/src/types/RoutedToken.js
Github Open Source
Open Source
Apache-2.0
2,021
falcor-router
sayari-analytics
JavaScript
Code
18
40
/** * @typedef {Object} RoutedToken * @property {String} type * @property {Boolean} named * @property {String} name */
22,710
https://github.com/DomenART/stroydrevgroup/blob/master/src/components/Articles/ArticlesLongBox.module.sass
Github Open Source
Open Source
MIT
2,019
stroydrevgroup
DomenART
Sass
Code
267
945
@import '../App/variables' .headline line-height: 1 margin-bottom: 15px width: 100% display: flex justify-content: space-between align-items: center .tags margin-bottom: 7px svg display: inline-block width: 16px height: 16px margin-right: 9px fil...
4,108
https://github.com/onap/appc/blob/master/appc-dispatcher/appc-dispatcher-common/domain-model-lib/src/test/java/org/onap/appc/domainmodel/lcm/TestVNFContext.java
Github Open Source
Open Source
Apache-2.0, CC-BY-4.0
2,022
appc
onap
Java
Code
192
608
/* * ============LICENSE_START======================================================= * ONAP : APPC * ================================================================================ * Copyright 2018 TechMahindra *================================================================================= * Licensed under the Apa...
842
https://github.com/HEEV/motor-controller-2018-sw/blob/master/motor-controller-nucleo/tmc/ic/TMC2224/TMC2224.c
Github Open Source
Open Source
MIT
2,019
motor-controller-2018-sw
HEEV
C
Code
597
1,883
/* * TMC2224.c * * Created on: 07.07.2017 * Author: LK */ #include "TMC2224.h" // Default Register values #define R00 0x00000141 // GCONF #define R10 0x00001F00 // IHOLD_IRUN #define R11 0x00000014 // TPOWERDOWN #define R6C 0x10000053 // CHOPCONF #define R70 0xC10D0024 // PWMCONF /* Register access p...
36,801
https://github.com/nya3jp/tast/blob/master/src/go.chromium.org/tast/core/cmd/tast/internal/symbolize/breakpad/crash_report.go
Github Open Source
Open Source
CC-BY-3.0, BSD-3-Clause
2,023
tast
nya3jp
Go
Code
622
1,363
// Copyright 2018 The ChromiumOS Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. package breakpad import ( "bufio" "bytes" "fmt" "io" "strconv" ) const ( crashReportMaxKeyLen = 128 // max length of crash report keys crashReportMaxValueSize...
28,923
https://github.com/Bringsy/Kooboo.CMS/blob/master/Kooboo.CMS/Kooboo.CMS.Web/Areas/Sites/Controllers/PagePluginController.cs
Github Open Source
Open Source
BSD-3-Clause
2,015
Kooboo.CMS
Bringsy
C#
Code
64
208
#region License // // Copyright (c) 2013, Kooboo team // // Licensed under the BSD License // See the file LICENSE.txt for details. // #endregion using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.Mvc; namespace Kooboo.CMS.Web.Areas.Sites.Controllers { public ...
42,027
https://github.com/trinity-1686a/icebox/blob/master/src/icebox/icebox_py/examples/ndis.py
Github Open Source
Open Source
MIT
2,021
icebox
trinity-1686a
Python
Code
32
174
import icebox vm = icebox.attach("win10") vm.symbols.load_drivers() proc = vm.processes.current() addr = proc.symbols.address("ndis!NdisSendNetBufferLists") phy = proc.memory.physical_address(addr) def on_break(): p = vm.processes.current() p.symbols.load_modules() p.symbols.dump_type("ndis!_NET_BUFFER_LI...
40,329
https://github.com/arkitik/clef-workflow/blob/master/clef-workflow-deploy/clef-workflow-deploy-app/src/main/java/io/arkitik/clef/workflow/deploy/app/ClefWorkflowApplication.kt
Github Open Source
Open Source
Apache-2.0
null
clef-workflow
arkitik
Kotlin
Code
40
213
package io.arkitik.clef.workflow.deploy.app import org.springframework.boot.autoconfigure.SpringBootApplication import org.springframework.boot.runApplication /** * Created By [**Ibrahim Al-Tamimi **](https://www.linkedin.com/in/iloom/)<br></br> * Created At **18**, **Wed Mar, 2020** * Project **clef-workflow** [...
5,196
https://github.com/petrhop/este/blob/master/app/client/js/react/pages/todos.coffee
Github Open Source
Open Source
MIT
2,015
este
petrhop
CoffeeScript
Code
123
502
goog.provide 'app.react.pages.Todos' goog.require 'app.todos.Todo' class app.react.pages.Todos ###* @param {app.Actions} actions @param {app.todos.Store} todosStore @param {este.react.Element} element @constructor ### constructor: (actions, todosStore, element) -> {div, ul, li, button, form...
6,788
https://github.com/zapdos26/Sub4Sub/blob/master/.dockerignore
Github Open Source
Open Source
MIT
2,020
Sub4Sub
zapdos26
Ignore List
Code
6
32
.env .env.example .eslintignore .eslintrc .gitignore README.md
4,835
https://github.com/anapau95/memory_admin_simulator/blob/master/src/algorithm.rs
Github Open Source
Open Source
MIT
2,020
memory_admin_simulator
anapau95
Rust
Code
76
258
use clap::ArgMatches; #[derive(Debug)] pub enum PageReplacementAlgorithm { FIFO, LRU, Random, } impl PageReplacementAlgorithm { pub fn as_str(&self) -> &'static str { match self { PageReplacementAlgorithm::FIFO => "fifo", PageReplacementAlgorithm::LRU => "lru", ...
19,338
https://github.com/alibabacloud-sdk-php/dts-20200101/blob/master/src/Models/ConfigureSubscriptionInstanceRequest.php
Github Open Source
Open Source
Apache-2.0
null
dts-20200101
alibabacloud-sdk-php
PHP
Code
348
1,325
<?php // This file is auto-generated, don't edit it. Thanks. namespace AlibabaCloud\SDK\Dts\V20200101\Models; use AlibabaCloud\SDK\Dts\V20200101\Models\ConfigureSubscriptionInstanceRequest\sourceEndpoint; use AlibabaCloud\SDK\Dts\V20200101\Models\ConfigureSubscriptionInstanceRequest\subscriptionDataType; use Alibaba...
48,071
https://github.com/robbinmathew/centbunk/blob/master/java/BunkAccountingApplication/BunkAccountingLogic/src/main/java/bronz/accounting/bunk/tankandmeter/model/MeterClosingReading.java
Github Open Source
Open Source
Unlicense
null
centbunk
robbinmathew
Java
Code
270
718
package bronz.accounting.bunk.tankandmeter.model; import java.math.BigDecimal; /** * Business model for Meter closing reading. */ public class MeterClosingReading { private int slNo; private int meterId; private int tankId; private int productId; private int date; private String meterName; private BigDeci...
2,109
https://github.com/kanzeparov/NuCypher/blob/master/nucypher/tests/blockchain/eth/contracts/main/miners_escrow/test_miners_escrow.py
Github Open Source
Open Source
FTL, CNRI-Python
null
NuCypher
kanzeparov
Python
Code
1,595
6,453
""" This file is part of nucypher. nucypher is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. nucypher is distributed in the hope that it wil...
21,099
https://github.com/koshtinikhilesh/botium/blob/master/botium/actions.py
Github Open Source
Open Source
Apache-2.0
2,021
botium
koshtinikhilesh
Python
Code
1,316
4,297
""" Contains bot's actions. author: Deniss Stepanovs """ from .config import config from .entities import Signal from .signals import Trigger, Response, NamedEntity, Matcher, Message, Event from .conditions import CountCondition, IntervalCondition from .utils import * class Action(Signal): """Action is just a Si...
38,682
https://github.com/thewoodknight/MakerResources/blob/master/MakerResources/Models/FilesWrapper.cs
Github Open Source
Open Source
MIT
null
MakerResources
thewoodknight
C#
Code
16
36
namespace MakerResources.Models { public class FilesWrapper { public string[] Files { get; set; } } }
45,140
https://github.com/shashiirk/javascript20/blob/master/drag-and-drop/assets/scripts/script.js
Github Open Source
Open Source
MIT
2,021
javascript20
shashiirk
JavaScript
Code
266
979
const draggableList = document.getElementById('draggable-list'); const checkBtn = document.getElementById('btn'); // List of top 10 richest people stored in correct order const richestPeople = [ 'Jeff Bezos', 'Bill Gates', 'Bernard Arnault', 'Warren Buffett', 'Larry Ellison', 'Amancio Ortega', 'Mark Zuck...
46,699
https://github.com/algorithmia-algorithms/qa-algorithm-scripts/blob/master/algorithms/classification_albert/src/classification_albert.py
Github Open Source
Open Source
MIT
null
qa-algorithm-scripts
algorithmia-algorithms
Python
Code
370
1,433
import Algorithmia import time import zipfile from os import walk import tensorflow as tf from transformers import AlbertTokenizer, AlbertConfig from transformers.modeling_tf_albert import TFAlbertForSequenceClassification from transformers.data.processors.utils import InputFeatures PAD_TOKEN = 0 NUM_LABELS = 2 DEFA...
46,512
https://github.com/ifzup/orange-talents-07-template-proposta/blob/master/src/main/java/br/com/zupacademy/ifzup/proposta/cartoes/aviso/AvisoViagemRepository.java
Github Open Source
Open Source
Apache-2.0
null
orange-talents-07-template-proposta
ifzup
Java
Code
12
68
package br.com.zupacademy.ifzup.proposta.cartoes.aviso; import org.springframework.data.jpa.repository.JpaRepository; public interface AvisoViagemRepository extends JpaRepository<Aviso, Long> { }
31,046
https://github.com/redis-field-engineering/redis-enterprise-rest/blob/master/subprojects/redis-enterprise-admin/src/main/java/com/redis/enterprise/Database.java
Github Open Source
Open Source
Apache-2.0
null
redis-enterprise-rest
redis-field-engineering
Java
Code
946
3,430
package com.redis.enterprise; import java.util.ArrayList; import java.util.Arrays; import java.util.List; import java.util.Objects; import java.util.stream.Collectors; import org.apache.hc.core5.util.Asserts; import org.springframework.util.unit.DataSize; import com.fasterxml.jackson.annotation.JsonIgnoreProperties;...
15,849
https://github.com/chuck-h/seeds_light_wallet/blob/master/lib/datasource/remote/model/serialization_helpers.dart
Github Open Source
Open Source
MIT
2,022
seeds_light_wallet
chuck-h
Dart
Code
44
101
/// Convert a string that matches one of the values ​​of the enum of type [T]. T enumFromString<T>(Iterable<T> values, String value) { return values.singleWhere((i) => i.toString().split(".").last == value, orElse: () { print('Not value found in enum: $T for string: $value'); return values.first; }); }
16,093
https://github.com/SamirBoulil/slub/blob/master/tests/Acceptance/Context/ReviewContext.php
Github Open Source
Open Source
MIT
2,022
slub
SamirBoulil
PHP
Code
422
1,907
<?php namespace Tests\Acceptance\Context; use PHPUnit\Framework\Assert; use Slub\Application\NewReview\NewReview; use Slub\Application\NewReview\NewReviewHandler; use Slub\Application\Notify\NotifyAuthor; use Slub\Application\Notify\NotifySquad; use Slub\Domain\Entity\Channel\ChannelIdentifier; use Slub\Domain\Entity...
26,432
https://github.com/devangnithin/automium/blob/master/automium/src/main/java/com/nithind/automium/xmlsupport/Test.java
Github Open Source
Open Source
MIT
2,019
automium
devangnithin
Java
Code
278
757
package com.nithind.automium.xmlsupport; import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessorType; import javax.xml.bind.annotation.XmlAttribute; import javax.xml.bind.annotation.XmlType; /** * <p>Java class for anonymous complex type. * * <p>The following schema fragment sp...
36,207
https://github.com/SachioKuro/UniSimpleGameEngine/blob/master/Core/Graphics/BlockContext.cpp
Github Open Source
Open Source
MIT
2,016
UniSimpleGameEngine
SachioKuro
C++
Code
1,791
9,437
#include "BlockContext.hpp" namespace Core { namespace Graphics { BlockContext::BlockContext() { using namespace glm; // Define texturemap texture.load2D("Textures/texturemap128.png"); texture.setCubeBoxParam(); texture.defineTextureInfo(vec2(8, 8), vec2(128, 128)); mesh = new vec3[36]; normals =...
1,296
https://github.com/thelabfinance/marketplace_ui/blob/master/dist/components/Mana/Mana.js
Github Open Source
Open Source
Apache-2.0
null
marketplace_ui
thelabfinance
JavaScript
Code
341
893
"use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (Object.protot...
16,609
https://github.com/MelvinWang/NewShare/blob/master/NewShare/app/src/main/java/com/melvin/share/adapter/CategoryAdapter.java
Github Open Source
Open Source
Apache-2.0
2,016
NewShare
MelvinWang
Java
Code
151
614
package com.melvin.share.adapter; import android.content.Context; import android.databinding.DataBindingUtil; import android.support.v7.widget.RecyclerView; import android.view.LayoutInflater; import android.view.ViewGroup; import com.melvin.share.R; import com.melvin.share.databinding.CategoryItemBinding; import com...
4,192
https://github.com/Automedon/CodeWars-7-kyu-Soluitions/blob/master/Naughty or Nice.js
Github Open Source
Open Source
MIT
2,022
CodeWars-7-kyu-Soluitions
Automedon
JavaScript
Code
106
278
/* Description: Santa is coming to town and he needs your help finding out who's been naughty or nice. You will be given an entire year of JSON data following this format: { January: { '1': 'Naughty','2': 'Naughty', ..., '31': 'Nice' }, February: { '1': 'Nice','2': 'Naughty', ..., '28': 'Ni...
40,917
https://github.com/mhmahmoodalam/upgradasssignments/blob/master/src/main/java/org/upgrad/upstac/testrequests/TestRequestQueryService.java
Github Open Source
Open Source
MIT
null
upgradasssignments
mhmahmoodalam
Java
Code
187
912
package org.upgrad.upstac.testrequests; import java.util.List; import java.util.Optional; import java.util.stream.Collectors; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import org.springframework...
15,084