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/itblingfeng/pdown-core/blob/master/src/main/java/io/pdown/core/util/HttpDownUtil.java
Github Open Source
Open Source
MIT
2,018
pdown-core
itblingfeng
Java
Code
1,099
4,747
package io.pdown.core.util; import io.netty.bootstrap.Bootstrap; import io.netty.channel.Channel; import io.netty.channel.ChannelFuture; import io.netty.channel.ChannelFutureListener; import io.netty.channel.ChannelHandlerContext; import io.netty.channel.ChannelInboundHandlerAdapter; import io.netty.channel.ChannelIni...
47,001
https://github.com/233moutian/spring-boot-vue-admin/blob/master/api/src/main/java/com/zoctan/api/util/DateUtils.java
Github Open Source
Open Source
Apache-2.0
null
spring-boot-vue-admin
233moutian
Java
Code
718
3,006
package com.zoctan.api.util; import org.apache.commons.lang3.StringUtils; import org.joda.time.Seconds; import java.text.ParseException; import java.text.SimpleDateFormat; import java.util.Calendar; import java.util.Date; /* * 时间操作类 * */ public class DateUtils extends DateUtilsZXW{ /** * 获取传入时间+-n天的date */ p...
31,806
https://github.com/theexplay/unit_tests_presentation/blob/master/examples/spec/html.spec.js
Github Open Source
Open Source
MIT
null
unit_tests_presentation
theexplay
JavaScript
Code
41
135
var MyHtml = require('../src/html'); describe('MyHtml', () => { var myhtml; beforeEach(function() { myhtml = new MyHtml(); }); it('Проверяем имеет ли элемент класс или нет, ожидаем получить bool', () => { var el = setFixture('<div class="my-component active">hello world!</div>') ...
46,073
https://github.com/xxxcoder-ui/siaprime-ui-master/blob/master/app/components/atoms/StyledTag.tsx
Github Open Source
Open Source
MIT
2,022
siaprime-ui-master
xxxcoder-ui
TypeScript
Code
46
144
import { Icon } from 'antd' import styled from 'styled-components' import { color, ColorProps, themeGet } from 'styled-system' import { IconProps } from 'antd/lib/icon' import Tag, { TagProps } from 'antd/lib/tag' export const StyledTag = styled(Tag)` background: ${themeGet('colors.tag-bg')} !important; border-col...
34,013
https://github.com/DavisNicholas04/CSC480-22S/blob/master/backend/student-assignment-microservice/src/main/java/edu/oswego/cs/rest/database/AssignmentInterface.java
Github Open Source
Open Source
MIT
2,022
CSC480-22S
DavisNicholas04
Java
Code
322
1,155
package edu.oswego.cs.rest.database; import com.mongodb.client.MongoCollection; import com.mongodb.client.MongoCursor; import com.mongodb.client.MongoDatabase; import edu.oswego.cs.rest.daos.AssignmentDAO; import edu.oswego.cs.rest.daos.FileDAO; import org.apache.commons.io.FileUtils; import org.bson.Document; import...
33,548
https://github.com/evilC/AutoHotStreamDeck/blob/master/C#/AutoHotStreamDeck/Wrapper.cs
Github Open Source
Open Source
MIT
2,022
AutoHotStreamDeck
evilC
C#
Code
146
490
using System; using System.Collections.Concurrent; using System.Collections.Generic; using System.Linq; using System.Runtime.InteropServices; using System.Text; using System.Threading; using System.Threading.Tasks; using System.Windows.Controls; using System.Windows.Media.Imaging; using OpenMacroBoard.SDK; using Strea...
48,427
https://github.com/silenseHK/hongli-api/blob/master/app/Http/Controllers/Admin/agent/AgentStaffController.php
Github Open Source
Open Source
MIT
null
hongli-api
silenseHK
PHP
Code
48
239
<?php namespace App\Http\Controllers\Admin\agent; use App\Http\Controllers\Controller; use App\Services\Admin\agent\AgentStaffService; class AgentStaffController extends Controller { private $AgentStaffService; public function __construct ( AgentStaffService $agentStaffService ) { ...
18,902
https://github.com/piebits-org/easeauth-js/blob/master/src/store.ts
Github Open Source
Open Source
Apache-2.0
null
easeauth-js
piebits-org
TypeScript
Code
48
109
import { makeAutoObservable } from "mobx"; import { CONFIG, TOKENS } from "./types"; export class STORE { public _config: CONFIG | undefined = undefined public loggedin = false public tokens: TOKENS = { access_token: undefined, refresh_token: undefined } public user: any = undefined constructor() ...
22,065
https://github.com/denoland/deno/blob/master/cli/tests/testdata/npm/require_json/main.js
Github Open Source
Open Source
MIT
2,023
deno
denoland
JavaScript
Code
5
27
import globals from "npm:globals@13.17.0"; console.log(globals);
33,524
https://github.com/mohebifar/expo/blob/master/ios/versioned-react-native/ABI16_0_0/React/Base/ABI16_0_0RCTTouchEvent.h
Github Open Source
Open Source
MIT, BSD-3-Clause, CC-BY-4.0, Apache-2.0
2,017
expo
mohebifar
Objective-C
Code
108
323
/** * Copyright (c) 2015-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. */ #import <F...
33,727
https://github.com/MedvedTaike/laravel-admin/blob/master/resources/views/users/edit.blade.php
Github Open Source
Open Source
MIT
null
laravel-admin
MedvedTaike
PHP
Code
240
1,214
@extends('layouts.main') @section('special_css') <link rel="stylesheet" href="/plugins/icheck-bootstrap/icheck-bootstrap.min.css"> @endsection @section('content') <div class="container"> <section class="content-header"> <div class="container-fluid"> <div class="row mb-2"> <div class="col-s...
18,435
https://github.com/ingef/conquery/blob/master/backend/src/main/resources/com/bakdata/conquery/resources/admin/ui/templates/groupHandler.html.ftl
Github Open Source
Open Source
MIT
2,023
conquery
ingef
Fluent
Code
131
698
<#macro groupHandler c adminPathBase> <div class="col bg-light pt-3 pb-3 rounded"> <form> <h4>Add Group</h4> <div class="form-group"> <label for="group_id">Group:</label> <select class="form-control" id="group_id" name="group_id"> <#list c.availableGroups as group> <option value="${group.id}">${...
2,299
https://github.com/facebookexperimental/r8/blob/master/src/test/java/com/android/tools/r8/ir/analysis/sideeffect/PutObjectWithFinalizeTest.java
Github Open Source
Open Source
BSD-3-Clause, MIT, Apache-2.0
2,019
r8
facebookexperimental
Java
Code
357
1,357
// Copyright (c) 2019, the R8 project authors. Please see the AUTHORS file // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. package com.android.tools.r8.ir.analysis.sideeffect; import static com.android.tools.r8.utils.codeinspect...
30,570
https://github.com/xochy/VeoNegocios/blob/master/resources/views/users/formCreate.blade.php
Github Open Source
Open Source
MIT
null
VeoNegocios
xochy
PHP
Code
188
884
<div class="form-group row"> <label for="name" class="col-md-4 col-form-label text-md-right">Tipo de Usuario</label> <div class="col-md-6"> <select name="roles" id="rol" class="form-control"> @foreach ($roles as $role) <option @isset($selectedRole) @if ($...
33,025
https://github.com/HarryCn/vpnServer/blob/master/pptp/pptp-client.sh
Github Open Source
Open Source
Apache-2.0
2,016
vpnServer
HarryCn
Shell
Code
65
293
#!/bin/bash #install packages echo -e "install system packages" apt-get -y install pptpd mysql-client libmysqlclient-dev #apt-get -y install apache2 mknod /dev/ppp c 108 0 #/etc/init.d/freeradius stop /etc/init.d/pptpd stop #/etc/init.d/apache2 stop mkdir -p /usr/local/etc/radiusclient cp -raf etc-ppp/* /et...
49,343
https://github.com/samuelpedrini/mercadolibre/blob/master/lib/mercadolibre/core/metrics.rb
Github Open Source
Open Source
MIT
2,016
mercadolibre
samuelpedrini
Ruby
Code
9
24
module Mercadolibre module Core module Metrics end end end
7,874
https://github.com/izyrtm/izyrtm-cms-server/blob/master/src/main/java/com/izyrtm/vo/RtmVO.java
Github Open Source
Open Source
MIT
2,019
izyrtm-cms-server
izyrtm
Java
Code
232
756
package com.izyrtm.vo; import java.sql.Date; import java.util.ArrayList; import java.util.List; public class RtmVO { int seq_no; String bot_key; String bot_token; String bot_type; String bot_title; String topic_name; String user_list; String use_yn; String code_value; Date reg_dt; Date mod_dt; List li...
29,924
https://github.com/ShikaSD/RIBs/blob/master/sandbox/src/main/java/com/badoo/ribs/sandbox/rib/big/builder/BigComponent.kt
Github Open Source
Open Source
Apache-2.0
2,020
RIBs
ShikaSD
Kotlin
Code
48
232
package com.badoo.ribs.sandbox.rib.big.builder import com.badoo.ribs.core.modality.BuildParams import com.badoo.ribs.sandbox.rib.big.Big import com.badoo.ribs.sandbox.rib.big.BigNode import com.badoo.ribs.sandbox.rib.small.Small import dagger.BindsInstance @BigScope @dagger.Component( modules = [BigModule::class]...
21,906
https://github.com/Laodeus/LiscenceManagementApi/blob/master/auth/authverif.js
Github Open Source
Open Source
Naumen, Condor-1.1, MS-PL
null
LiscenceManagementApi
Laodeus
JavaScript
Code
155
443
const jsonWebToken = require("jsonwebtoken"); const sequelmiseConnectionObject = require("./../query/database-connection"); const Authverif = async (req, res, passphrase, role) => { try { if (!req.headers.authorization) { throw new Error("Must provide a token"); } if(req.headers.authorization.subs...
30,294
https://github.com/bakerb845/rtseis/blob/master/include/rtseis/enums.hpp
Github Open Source
Open Source
MIT
2,022
rtseis
bakerb845
C++
Code
392
969
#ifndef RTSEIS_ENUMS_HPP #define RTSEIS_ENUMS_HPP 1 enum rtseisPrecision_enum { /*!< Unknown precision. */ RTSEIS_UNKNOWN = 0, /*!< Floating precision. */ RTSEIS_FLOAT = 1, /*!< Double precision. */ RTSEIS_DOUBLE = 2 }; enum rtseisVerbosityLevel_enum { /*!< Don't write anything. */ RTS...
25,461
https://github.com/yutayamazaki/Machine-Learning-Scratch/blob/master/tests/test_losses.py
Github Open Source
Open Source
MIT
null
Machine-Learning-Scratch
yutayamazaki
Python
Code
52
251
import unittest import numpy as np from mlscratch.models import losses class TestBinaryCrossEntropy(unittest.TestCase): def setUp(self): self.y_true = np.array([0, 1, 0.5]) self.y_pred = np.array([0, 1, 0.5]) def test_return(self): bce = losses.binary_cross_entropy(self.y_true, sel...
42,039
https://github.com/keine1lust/comextech-import/blob/master/resources/views/admin/clients/table.blade.php
Github Open Source
Open Source
MIT
null
comextech-import
keine1lust
PHP
Code
138
695
<div class="w-full overflow-x-auto"> <table id="table" class="w-full whitespace-nowrap"> <thead> <tr class="text-xs text-center font-semibold tracking-wide text-left text-white border-b dark:border-gray-700 bg-blue-1300 dark:text-gray-400 dark:bg-gray-800"> <th c...
1,423
https://github.com/souldreamer/OneForm/blob/master/packages/react/src/useGroupValidationsState.js
Github Open Source
Open Source
Apache-2.0
2,022
OneForm
souldreamer
JavaScript
Code
1,199
4,212
import { useCallback, useMemo, useRef, } from 'react' import useItemGroupState from './useItemGroupState' import useStrippedIdentifer from './useStrippedIdentifer' import useFilteredValuesState from './useFilteredValuesState' import useSymbolFunctionStore from './useSymbolFunctionStore' import useUpdateEffect fr...
45,639
https://github.com/hliu45/Projects/blob/master/jassistant/map/map.php
Github Open Source
Open Source
MIT
null
Projects
hliu45
PHP
Code
66
343
<?php session_start(); require 'verify.php'; $username = $_SESSION['user_name']; ?> <!DOCTYPE html> <html> <body> <link href="map.css" type="text/css" rel="stylesheet"> <div class="personal-session"> <span id="account">hello <?php echo $username; ?> |</span> <span id="account"><a href="../login.php">Home</a> |<...
26,418
https://github.com/ayltai/hknews-android/blob/master/app/src/main/java/com/github/ayltai/hknews/data/model/Image.java
Github Open Source
Open Source
Apache-2.0
2,020
hknews-android
ayltai
Java
Code
38
146
package com.github.ayltai.hknews.data.model; import io.realm.RealmObject; import lombok.EqualsAndHashCode; import lombok.Getter; import lombok.NoArgsConstructor; import lombok.ToString; @ToString @EqualsAndHashCode( callSuper = true, onlyExplicitlyIncluded = true ) @NoArgsConstructor public clas...
2,159
https://github.com/bagustris/two-stage-ser/blob/master/code/improv_loso/ser_mspin_loso.py
Github Open Source
Open Source
BSD-3-Clause, LicenseRef-scancode-unknown-license-reference, MIT
2,021
two-stage-ser
bagustris
Python
Code
445
1,659
# Speech emotion recognition on MSP-IMPROV dataset # feature: egemaps # Algorithm: as described in Bagus TA et al., "RNN-based dimenisional SER", # ASJ Autumn 2019. # 2012-12-24: Modified from ser_improv_egamaps, change input to HFS # Filter only natural interaction and improvisat...
3,555
https://github.com/Reality-Virtually-Hackathon/Bought-Broken/blob/master/Assets/Plugins/iVidCapPro/iVidCapProVideo.cs
Github Open Source
Open Source
MIT
null
Bought-Broken
Reality-Virtually-Hackathon
C#
Code
1,503
2,868
// iVidCapPro Copyright (c) 2012-2014 James Allen and eccentric Orbits entertainment (eOe) // /* Permission is hereby granted, free of charge, to any person or organization obtaining a copy of the software and accompanying documentation covered by this license (the "Software") to use and prepare derivative works of th...
5,088
https://github.com/KennyHammerlund/tripRecApp/blob/master/imports/ui/pages/CreateTrip/oldTripStop.js
Github Open Source
Open Source
MIT
null
tripRecApp
KennyHammerlund
JavaScript
Code
88
320
import React, { Component } from "react"; import TextField from "@material-ui/core/TextField"; import Select from "@material-ui/core/Select"; import MenuItem from "@material-ui/core/MenuItem"; import { selectSeries } from "../../../../node_modules/@types/async"; class oldTripStop extends Component { constructor(props...
33,249
https://github.com/sergey-didenko/spring-generic-experiment/blob/master/src/main/java/com/sergey/didenko/spring/generic/criteria/model/EconomicSectorCriteria.java
Github Open Source
Open Source
Apache-2.0
null
spring-generic-experiment
sergey-didenko
Java
Code
167
406
/* Copyright 2019 Sergey Didenko <sergey.didenko.dev@gmail.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 applicable law or ag...
41,205
https://github.com/yufeifly/migrator/blob/master/container/start.go
Github Open Source
Open Source
MIT
null
migrator
yufeifly
Go
Code
59
183
package container import ( "context" "github.com/docker/docker/api/types" "github.com/sirupsen/logrus" ) // StartOpts ... type StartOpts struct { ContainerID string CStartOpts types.ContainerStartOptions } // StartContainer start a container with opts func StartContainer(opts StartOpts) error { header := "con...
29,740
https://github.com/jkeen/ember-stereo/blob/master/tests/dummy/app/services/audio.js
Github Open Source
Open Source
MIT
2,022
ember-stereo
jkeen
JavaScript
Code
38
120
import Service, { inject as service } from '@ember/service'; export default class Audio extends Service { @service stereo async playGood() { return this.stereo.play('/good/1252/ok.mp3'); } async playBad() { return this.stereo.play('/bad/1252/ok.mp3'); } async playBlank() { return await this.s...
50,241
https://github.com/almccon/mapgardening/blob/master/userstats/output_userstatsbydate_crimea_raster_1000m.tsv
Github Open Source
Open Source
MIT
2,022
mapgardening
almccon
TSV
Code
20,000
44,410
user_name date count v1count blankcount -James- 2014-04-14 10 2 0 -off- 2015-05-22 517 514 0 -off- 2015-09-25 1 1 0 -off- 2015-09-29 49 7 0 -off- 2015-09-30 3 3 0 -off- 2015-10-05 4 0 0 -off- 2016-01-11 439 383 0 -off- 2016-01-12 713 698 0 -raul 2012-01-30 1 0 0 000777cc 2015-07-29 3 3 0 0_0 2013-08-08 58 55 0 0_0 2013...
36,752
https://github.com/deepcloudlabs/dcl210-2022-mar-28/blob/master/study-javase-new-features/src/com/example/javase14/StudyIntanceOf.java
Github Open Source
Open Source
MIT
2,022
dcl210-2022-mar-28
deepcloudlabs
Java
Code
94
248
package com.example.javase14; import java.util.Objects; public class StudyIntanceOf { public static void main(String[] args) { Pet garfield = new Cat(); if (garfield instanceof Cat) { var evcil = garfield; evcil.play(); } if (garfield instanceof Spider) { // Guard var evcil1 = (Spider) garfield; ...
29,943
https://github.com/JacekLach/conjure-java/blob/master/conjure-java/src/main/java/com/palantir/conjure/java/cli/ConjureJavaCli.java
Github Open Source
Open Source
Apache-2.0
2,019
conjure-java
JacekLach
Java
Code
534
1,747
/* * (c) Copyright 2018 Palantir Technologies Inc. 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. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless ...
38,667
https://github.com/ivandev0/kmath/blob/master/kmath-geometry/src/commonTest/kotlin/space/kscience/kmath/geometry/Euclidean2DSpaceTest.kt
Github Open Source
Open Source
ECL-2.0, Apache-2.0
2,019
kmath
ivandev0
Kotlin
Code
177
783
/* * Copyright 2018-2021 KMath contributors. * Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file. */ package space.kscience.kmath.geometry import kotlin.math.sqrt import kotlin.test.Test import kotlin.test.assertEquals internal class Euclidean2DSpaceTe...
30,132
https://github.com/thuntm123/tensorflow_chatbot/blob/master/app/src/main/java/thuntm/uet/drowsywarning/Instruction.java
Github Open Source
Open Source
Apache-2.0
null
tensorflow_chatbot
thuntm123
Java
Code
135
591
package thuntm.uet.drowsywarning; import android.Manifest; import android.app.Activity; import android.content.Context; import android.content.Intent; import android.content.pm.ActivityInfo; import android.content.pm.PackageManager; import android.support.v4.app.ActivityCompat; import android.support.v7.app.AppCompatA...
33,343
https://github.com/repausmedia/buffer/blob/master/client/src/DelaySVG.js
Github Open Source
Open Source
MIT
2,019
buffer
repausmedia
JavaScript
Code
408
1,578
// Copyright (c) 2018 Alexandre Storelli import React, { Component } from "react"; import PropTypes from "prop-types"; //import styled from "styled-components"; //import classNames from 'classnames'; import { colors } from "./colors.js"; import loading from "./img/loading.svg"; const TICKS_INTERVAL = 60000; class De...
16,481
https://github.com/paganotoni/oxer/blob/master/go.mod
Github Open Source
Open Source
Apache-2.0
2,021
oxer
paganotoni
Go Module
Code
11
50
module oxer go 1.16 require ( github.com/markbates/refresh v1.11.1 golang.org/x/mod v0.4.2 )
11,539
https://github.com/Mike111177/OWLib/blob/master/TankLib/STU/Types/STUDataFlowType_EntityID.cs
Github Open Source
Open Source
MIT
2,019
OWLib
Mike111177
C#
Code
22
83
// Instance generated by TankLibHelper.InstanceBuilder // ReSharper disable All namespace TankLib.STU.Types { [STUAttribute(0x26A4CEF1, "STUDataFlowType_EntityID")] public class STUDataFlowType_EntityID : STUDataFlowType { } }
16,087
https://github.com/lidonis/kotlin-native/blob/master/build-tools/src/main/kotlin/org/jetbrains/kotlin/CollisionDetector.kt
Github Open Source
Open Source
Apache-2.0
null
kotlin-native
lidonis
Kotlin
Code
363
984
/* * Copyright 2010-2019 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the license/LICENSE.txt file. */ package org.jetbrains.kotlin import org.gradle.api.DefaultTask import org.gradle.api.tasks.TaskAction import org.gradle.api.artifacts.Configuration import ...
19,256
https://github.com/pkangowski/ModelicaStandardLibrary/blob/master/Modelica/Clocked/Types/Resolution.mo
Github Open Source
Open Source
BSD-3-Clause
2,022
ModelicaStandardLibrary
pkangowski
Modelica
Code
131
568
within Modelica.Clocked.Types; type Resolution = enumeration( y "y (year)", d "d (day)", h "h (hour)", m "min (minutes)", s "s (seconds)", ms "ms (milli seconds)", us "us (micro seconds)", ns "ns (nano seconds)") "Enumeration defining the resolution of a clocked signal" annotation (D...
13,411
https://github.com/afeys/backupmysql/blob/master/backupmysql.sh
Github Open Source
Open Source
MIT
null
backupmysql
afeys
Shell
Code
1,219
4,673
#!/bin/bash ############################################################## # Script: backupmysql.sh # Author: Andy Feys (andy@feys.be) # Date: Sunday April 25th 2021 #####################################################...
25,643
https://github.com/lk0606/wya_demo1/blob/master/src/pages/components/layout/layout.vue
Github Open Source
Open Source
MIT
null
wya_demo1
lk0606
Vue
Code
234
1,008
<template> <div class="c-layout"> <div class="_header-bar g-flex-ac"> <img> <span class="g-fs-20">后台管理中心</span> <vc-select v-model="curModule" style="width:200px" @on-change="handleChangeModule" > <vc-option v-for="item in modules" :value="item.value" :key="item.value" ...
20,923
https://github.com/1248/liblwm2m/blob/master/core/objects.c
Github Open Source
Open Source
BSD-3-Clause
2,017
liblwm2m
1248
C
Code
676
1,923
/* Copyright (c) 2013, Intel Corporation Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaime...
31,830
https://github.com/mandreyel/beast-asio-standalone/blob/master/include/beast/zlib/zlib.hpp
Github Open Source
Open Source
BSL-1.0
2,021
beast-asio-standalone
mandreyel
C++
Code
716
1,385
// // Copyright (c) 2016-2017 Vinnie Falco (vinnie dot falco at gmail dot com) // // Distributed under the Boost Software License, Version 1.0. (See accompanying // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) // // Official repository: https://github.com/boostorg/beast // #ifndef BEAST_ZLIB_Z...
6,545
https://github.com/Kymeric/Direct3DHook/blob/master/Capture/Interface/MessageType.cs
Github Open Source
Open Source
MIT
2,022
Direct3DHook
Kymeric
C#
Code
21
65
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace Capture.Interface { public enum MessageType { Debug, Information, Warning, Error } }
40,956
https://github.com/tamaslang/ninetynine-coding-problems/blob/master/scala-ninetynine/src/test/scala-2.11/org/talangsoft/codingtests/p01LastElementInListSpec.scala
Github Open Source
Open Source
Adobe-Glyph
2,015
ninetynine-coding-problems
tamaslang
Scala
Code
77
219
package org.talangsoft.codingtests import org.scalatest.{ShouldMatchers, WordSpecLike} class p01LastElementInListSpec extends WordSpecLike with ShouldMatchers{ "last element" should { "return first element for list with 1 item" in { p01LastElementInList.last(List(1)) shouldBe 1 } } "last element"...
47,651
https://github.com/angelobreuer/Butler/blob/master/tests/MultiRegistrationTests.cs
Github Open Source
Open Source
MIT
2,022
Butler
angelobreuer
C#
Code
419
1,296
namespace Butler.Tests { using System; using System.Collections.Generic; using System.Linq; using System.Text; using Butler.Registration; using Butler.Tests.Dummy; using Xunit; /// <summary> /// Contains tests for the <see cref="MultiRegistration"/> class. /// </summary> ...
47,766
https://github.com/opl-/baklavajs/blob/master/packages/baklavajs-plugin-renderer-vue/src/components/Editor.vue
Github Open Source
Open Source
MIT
2,019
baklavajs
opl-
Vue
Code
644
2,370
<template> <div tabindex="-1" :class="['node-editor', { 'ignore-mouse': !!temporaryConnection }]" @mousemove.self="mouseMoveHandler" @mousedown="mouseDown" @mouseup="mouseUp" @wheel.self="mouseWheel" @keydown="keyDown" @contextmenu.self.prevent="openContextMen...
4,643
https://github.com/dargirov/rtos/blob/master/main.c
Github Open Source
Open Source
Apache-2.0
2,016
rtos
dargirov
C
Code
103
420
/* Library includes */ #include "stm32F10x.h" /* OS includes */ #include "kernel.h" #include "queue.h" #include "mutex.h" void TaskBoardInit() { RCC_APB2PeriphClockCmd(RCC_APB2Periph_GPIOC, ENABLE); GPIO_InitTypeDef led; led.GPIO_Pin = GPIO_Pin_7 | GPIO_Pin_5 | GPIO_Pin_12; led.GPIO_Speed = GPIO_Speed_10MHz; l...
46,618
https://github.com/perrymant/CodeWarsKataStuff/blob/master/CodeWarsKataStuff/Palindrome Chain Length.py
Github Open Source
Open Source
MIT
null
CodeWarsKataStuff
perrymant
Python
Code
20
69
def palindrome_chain_length(n): s = 0 while True: if str(n) == str(n)[::-1]: return s else: n = n+int(str(n)[::-1]) s += 1
8,283
https://github.com/wawesomeNOGUI/datachannel/blob/master/go.mod
Github Open Source
Open Source
MIT, LicenseRef-scancode-unknown-license-reference
2,021
datachannel
wawesomeNOGUI
Go Module
Code
15
94
module github.com/pion/datachannel require ( github.com/pion/logging v0.2.2 github.com/pion/sctp v1.7.12 github.com/pion/transport v0.12.3 github.com/stretchr/testify v1.7.0 ) go 1.13
17,415
https://github.com/Xiaodongsuper/SCALE_code/blob/master/examples/SCALE/eval/extract_features_cls.py
Github Open Source
Open Source
MIT
2,022
SCALE_code
Xiaodongsuper
Python
Code
443
2,035
import argparse import json import logging import os import random from io import open import numpy as np import sys sys.path.append("../../../") from tensorboardX import SummaryWriter from tqdm import tqdm from bisect import bisect import yaml from easydict import EasyDict as edict import sys import torch import to...
34,426
https://github.com/ntbrock/iwphys/blob/master/java-version4/src/edu/ncssm/iwp/exceptions/TimeIndexMismatchException.java
Github Open Source
Open Source
MIT
2,020
iwphys
ntbrock
Java
Code
46
117
package edu.ncssm.iwp.exceptions; public class TimeIndexMismatchException extends Exception { private static final long serialVersionUID = 1L; public TimeIndexMismatchException ( ) { } public TimeIndexMismatchException ( String message ) { super ( message ); } public TimeIndexMismatchException ( Throwable t ...
15,179
https://github.com/gilmrjc/generator-django-reload/blob/master/app/templates/app/settings/base.py
Github Open Source
Open Source
MIT
2,017
generator-django-reload
gilmrjc
Python
Code
162
850
import os from django.core.exceptions import ImproperlyConfigured def get_env_setting(setting): """ Get the environment setting or return exception """ try: return os.environ[setting] except KeyError: error_msg = "Set the %s env variable" % setting raise ImproperlyConfigured(error_...
28,933
https://github.com/terrorsl/waterboard/blob/master/src/updater.h
Github Open Source
Open Source
MIT
null
waterboard
terrorsl
C
Code
102
473
#ifndef UPDATER_FILE #define UPDATER_FILE #include<ESP_OTA_GitHub.h> #include<CertStoreBearSSL.h> #define GHOTA_USER "terrorsl" #define GHOTA_REPO "waterboard" #define GHOTA_CURRENT_TAG "v0.2" #define GHOTA_BIN_FILE "waterboard_esp8266_home.bin" #define GHOTA_ACCEPT_PRERELEASE 0 class Updater { public: Updater():ot...
50,138
https://github.com/AlinaKalyakina/neoml/blob/master/NeoML/include/NeoML/Dnn/DnnSparseMatrix.h
Github Open Source
Open Source
ECL-2.0, Apache-2.0
null
neoml
AlinaKalyakina
C
Code
278
616
/* Copyright © 2017-2020 ABBYY Production LLC Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing...
9,993
https://github.com/facebook/buck/blob/master/test/com/facebook/buck/features/d/testdata/test/passing_test.d
Github Open Source
Open Source
Apache-2.0
2,023
buck
facebook
D
Code
12
31
import lib; unittest { assert(add(1, 1) == 2); } void main() {}
5,398
https://github.com/ThePerfectApp/TPA-SDK-Android/blob/master/AndroidLibraryDistribution/tpalib-distribution/src/main/java/io/tpa/tpalib/distribution/DialogCheckUpdateTask.java
Github Open Source
Open Source
MIT
2,020
TPA-SDK-Android
ThePerfectApp
Java
Code
365
1,067
package io.tpa.tpalib.distribution; import android.app.Activity; import android.os.Build; import android.util.Log; /** * Updater that displays a in-app dialog that leads to a Update page with * additional information. * <p> * Note: Requires the android.permission.WRITE_EXTERNAL_STORAGE permission */ public class...
35,929
https://github.com/wednesdaydeveloper/vue-vuex-ts-counter/blob/master/src/components/Todo.vue
Github Open Source
Open Source
MIT
null
vue-vuex-ts-counter
wednesdaydeveloper
Vue
Code
110
412
<template> <div> <ul> <li v-for="item in items" :key="item.id"> <label :class="{ done: item.checked }"> <input type="checkbox" :checked="item.checked" @change="toggleAsync({id: item.id})">...
11,479
https://github.com/zac11235/IS_student/blob/master/src/lib/LoginAction1.java
Github Open Source
Open Source
MulanPSL-1.0
2,020
IS_student
zac11235
Java
Code
82
400
package lib; import com.opensymphony.xwork2.*; import org.apache.struts2.ServletActionContext; import java.sql.Connection; import java.sql.DriverManager; import java.sql.PreparedStatement; import java.sql.ResultSet; import static DB.Datab.getcon; public class LoginAction1 extends ActionSupport implements ModelDriven...
7,765
https://github.com/vadixidav/phitron/blob/master/p3.h
Github Open Source
Open Source
BSD-2-Clause
null
phitron
vadixidav
C
Code
197
523
#ifndef P3_H #define P3_H #include "v3.h" namespace phi { struct P3 { double inertia; V3 position; V3 velocity; V3 acceleration; P3() : acceleration(V3(0, 0, 0)) {} P3(double inertia) : inertia(inertia), acceleration(V3(0, 0, 0)) {} P3(double inerti...
28,616
https://github.com/orpopoola/linux_system_monitor/blob/master/src/format.cpp
Github Open Source
Open Source
MIT
2,020
linux_system_monitor
orpopoola
C++
Code
90
352
#include <string> #include <math.h> #include "format.h" #include <stdexcept> using std::string; using std::to_string; // Helper function that takes in input and produces a formatted output as shown below // INPUT: Long int measuring seconds // OUTPUT: HH:MM:SS string Format::ElapsedTime(long seconds) { try{ ...
40,887
https://github.com/thanpolas/crude/blob/master/test/e2e/readOne.test.js
Github Open Source
Open Source
MIT
2,021
crude
thanpolas
JavaScript
Code
151
528
/** * @fileOverview Read One OP tests. */ var chai = require('chai'); var expect = chai.expect; var crude = require('../..'); var testCase = require('crude-test-case'); testCase.setCrude(crude); var Web = testCase.Web; var testerLocal = require('../lib/tester.lib'); describe('Read One OP', function() { this.tim...
51,060
https://github.com/LightTag/sequence-labeling-with-transformers/blob/master/sequence_aligner/labelset.py
Github Open Source
Open Source
MIT
2,022
sequence-labeling-with-transformers
LightTag
Python
Code
84
280
import itertools from typing import List from .alignment import align_tokens_and_annotations_bilou class LabelSet: def __init__(self, labels: List[str]): self.labels_to_id = {} self.ids_to_label = {} self.labels_to_id["O"] = 0 self.ids_to_label[0] = "O" num = 0 # in case ...
4,985
https://github.com/pymor/docker/blob/master/minimal_cibase/bullseye/entrypoint.sh
Github Open Source
Open Source
BSD-2-Clause
null
docker
pymor
Shell
Code
38
141
#!/bin/bash USER_ID=${LOCAL_USER_ID:-1000} echo "Starting with UID : $USER_ID" useradd --shell /bin/bash -u $USER_ID -o -c "" -m pymor && \ adduser pymor sudo &&\ echo '%sudo ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers export HOME=/home/pymor export CCACHE_DIR=/home/pymor/.ccache/ exec gosu pymor "$@"
7,387
https://github.com/darenr/python-docker-run/blob/master/jobs/job_factory.py
Github Open Source
Open Source
MIT
2,021
python-docker-run
darenr
Python
Code
406
1,690
import os from typing import List, Set, Dict, Tuple, Optional, Type from .job_driver import create_job as inproc_create_job from .job_driver import run_job as inproc_run_job from .client_job import create_job as remote_create_job from .client_job import run_job as remote_run_job __SECRET__ = object() class Job(ob...
32,991
https://github.com/Craftint/accounts_report/blob/master/accounts_report/accounts_report/report/accounts_receivable/test_accounts_receivable.py
Github Open Source
Open Source
MIT
null
accounts_report
Craftint
Python
Code
315
1,208
from __future__ import unicode_literals import frappe import frappe.defaults import unittest from frappe.utils import today, getdate, add_days from erpnext.accounts.report.accounts_receivable.accounts_receivable import execute from erpnext.accounts.doctype.sales_invoice.test_sales_invoice import create_sales_invoice fr...
12,628
https://github.com/itkg-cpaparas/lykion-paris/blob/master/src/Lykion/LykionBundle/Form/Type/SpectacleType.php
Github Open Source
Open Source
MIT
2,013
lykion-paris
itkg-cpaparas
PHP
Code
51
237
<?php namespace Lykion\LykionBundle\Form\Type; use Symfony\Component\Form\AbstractType; use Symfony\Component\Form\FormBuilderInterface; /** * Class SpectacleType * * Form for Spectacle * */ class SpectacleType extends AbstractType { public function buildForm(FormBuilderInterface $builder, array $options) ...
21,407
https://github.com/Jessegao/cs61b_2016/blob/master/proj3/src/main/java/QuadTree.java
Github Open Source
Open Source
MIT
null
cs61b_2016
Jessegao
Java
Code
166
600
import java.util.ArrayList; /** * Created by Jesse on 4/13/2016. */ public class QuadTree { private QuadTreeNode root; private static final int DEPTH_ROOT = 0; public QuadTree(double rootullat, double rootullon, double rootlrat, double rootlrlon, int rootFile) { root = new Qu...
48,278
https://github.com/mat-kap/M-Flow/blob/master/M-Flow.Tests/CategoryManagement/WhenManagingCategories.cs
Github Open Source
Open Source
MIT
null
M-Flow
mat-kap
C#
Code
149
496
using MFlow.Integration; using Xunit; namespace M_Flow.Tests.CategoryManagement { public class WhenManagingCategories { [Fact] public void ShouldBeCategoriesGotRight() { var eventStore = TestFactory.CreateEventStore(); var timeServer = TestFactory.CreateTimeServ...
32,122
https://github.com/xurent/cloud-room/blob/master/src/main/java/com/shelgon/nopage/service/consumer/RedisServiceFallback.java
Github Open Source
Open Source
Apache-2.0
null
cloud-room
xurent
Java
Code
109
528
package com.shelgon.nopage.service.consumer; import java.util.List; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.cloud.client.ServiceInstance; import org.springframework.cloud.client.discovery.DiscoveryClient; import org.springframework.stereotype.Service; import com.shel...
27,539
https://github.com/liangyongxiang/vsf-all-in-one/blob/master/source/component/3rd-party/evm/raw/components/httpclient/inc/webclient.h
Github Open Source
Open Source
Apache-2.0
2,022
vsf-all-in-one
liangyongxiang
C
Code
466
1,740
/* * Copyright (c) 2006-2018, RT-Thread Development Team * * SPDX-License-Identifier: Apache-2.0 * * Change Logs: * Date Author Notes * 2013-05-05 Bernard the first version * 2013-06-10 Bernard fix the slow speed issue when download file. * 2015-11-14 aozima add cont...
48,517
https://github.com/jlreiter/Moria/blob/master/exploit/42275.c
Github Open Source
Open Source
MIT
null
Moria
jlreiter
C
Code
3,896
11,873
/* * Linux_ldso_hwcap_64.c for CVE-2017-1000366, CVE-2017-1000379 * Copyright (C) 2017 Qualys, Inc. * * my_important_hwcaps() adapted from elf/dl-hwcaps.c, * part of the GNU C Library: * Copyright (C) 2012-2017 Free Software Foundation, Inc. * * This program is free software: you can redistribute it and/or modi...
45,031
https://github.com/d0scoo1/naga_contracts/blob/master/mainnet/contracts/0x5766c392ECC8DeeF0A1FaD6286591D67414a58E2_SingleAssetVaultV2/contracts/libraries/VaultUtils.sol
Github Open Source
Open Source
MIT
2,023
naga_contracts
d0scoo1
Gerber Image
Code
811
2,713
// SPDX-License-Identifier: MIT pragma solidity =0.8.9; import "@openzeppelin/contracts-upgradeable/interfaces/IERC20Upgradeable.sol"; import "@openzeppelin/contracts/utils/math/Math.sol"; import "../interfaces/IStaking.sol"; import "../interfaces/IVault.sol"; import "../interfaces/IHealthCheck.sol"; import "../interfa...
34,351
https://github.com/peterkulik/ois_api_client/blob/master/ois_api_client/v3_0/dto/Software.py
Github Open Source
Open Source
MIT
2,022
ois_api_client
peterkulik
Python
Code
100
264
from typing import Optional from dataclasses import dataclass from .SoftwareOperation import SoftwareOperation @dataclass class Software: """Billing software data :param software_id: Billing software ID :param software_name: Billing software name :param software_operation: Billing software operation ...
31,039
https://github.com/emacalvofrias/emacalvofrias.github.io/blob/master/DigitalHouse/Materias_CertifiedTechDeveloper/Backend/clase8/src/Cuadrado.java
Github Open Source
Open Source
MIT
2,021
emacalvofrias.github.io
emacalvofrias
Java
Code
27
66
public class Cuadrado extends Figura{ private Double lado; public Cuadrado(Double lado) { this.lado = lado; } @Override public Double calcularPerimetro() { return 4 * lado; } }
33,304
https://github.com/vasiltatarov/Street-Workout/blob/master/StreetWorkout.Test/Routing/TrainersControllerTest.cs
Github Open Source
Open Source
MIT
2,021
Street-Workout
vasiltatarov
C#
Code
28
139
namespace StreetWorkout.Test.Routing { using MyTested.AspNetCore.Mvc; using StreetWorkout.Controllers; using StreetWorkout.ViewModels.Trainers; using Xunit; public class TrainersControllerTest { [Fact] public void AllShouldBeMapped() => MyRouting .Co...
50,584
https://github.com/tmdoit/corteza-docs/blob/master/src/modules/ROOT/pages/user/service-cloud/entitlement-templates.adoc
Github Open Source
Open Source
Apache-2.0
null
corteza-docs
tmdoit
AsciiDoc
Code
117
159
include::../../variables.adoc[] = Entitlement templates A product or service normally comes with a entitlement to support. For example, a software license may allow the client to contact you by phone when they have issues or questions. Or, when you sell hardware, you may need to offer a period of guarantee, allowing ...
46,984
https://github.com/McGameJam/LikeASir/blob/master/McGameJam2016/Assets/VictoryScript.cs
Github Open Source
Open Source
MIT
null
LikeASir
McGameJam
C#
Code
62
212
using UnityEngine; using UnityEngine.UI; using System.Collections; public class VictoryScript : MonoBehaviour { public GameObject[] playerHeads; public int[] playerPlaces; public Color[] playerColors; public int playerNumber; // Use this for initialization void Start() { ...
11,959
https://github.com/prolificinteractive/DevKit/blob/master/ios/DevKit/DevKit/Classes/Views/LoadingIndicator/LoadingIndicator.swift
Github Open Source
Open Source
MIT
2,018
DevKit
prolificinteractive
Swift
Code
412
1,027
// // LoadingIndicator.swift // TheWing // // Created by Jonathan Samudio on 4/9/18. // Copyright © 2018 Prolific Interactive. All rights reserved. // import UIKit /// Displays and hides a loading indicator in the center of the view. /// /// **Subspec: View/LoadingIndicator** /// /// ``` /// private lazy var load...
45,786
https://github.com/dapplion/benchmark/blob/master/src/github/octokit.ts
Github Open Source
Open Source
Apache-2.0
null
benchmark
dapplion
TypeScript
Code
127
432
import {getContext} from "./context"; const commentTag = "benchmarkbot/action"; export async function commetToPrUpdatable(prNumber: number, body: string): Promise<void> { const {repo, octokit} = getContext(); // Append tag so the comment is findable latter const bodyWithTag = `${body}\n\n\n> by ${commentTag}`;...
20,553
https://github.com/eheitherd/pulpunte/blob/master/src/Pulpunte/Cache.purs
Github Open Source
Open Source
MIT
null
pulpunte
eheitherd
PureScript
Code
66
163
module Pulpunte.Cache ( cacheRootDir , cleanCache , withTemporary ) where import Prelude import Effect.Aff (Aff, bracket) import Node.FS.Extra (remove) import Node.Path (FilePath, concat) cacheRootDir ∷ FilePath cacheRootDir = ".pulpunte" cleanCache ∷ Aff Unit cleanCache = remove cacheRootDir withTemporar...
18,819
https://github.com/thilux/ssh_metro_client/blob/master/sshmetroclient/main.py
Github Open Source
Open Source
Apache-2.0
null
ssh_metro_client
thilux
Python
Code
797
2,217
import requests import pexpect import getpass import argparse import json import time import signal import struct import fcntl import termios import sys parser = argparse.ArgumentParser() parser.add_argument('target_connection_string', help='The connection string to the target machine. Can be provided in ' ...
3,128
https://github.com/chooklii/Bootlii/blob/master/src/util/moves/halfFlip.py
Github Open Source
Open Source
MIT
2,021
Bootlii
chooklii
Python
Code
31
199
from util.sequence import Sequence, ControlStep from rlbot.agents.base_agent import SimpleControllerState def halfFlip() -> Sequence: return Sequence([ ControlStep(duration=0.75, controls=SimpleControllerState(throttle=-1)), ControlStep(duration=0.25, controls=SimpleControllerState(jump=True)), ...
42,590
https://github.com/saxlbeckett/Scott-Beckett-Breakable-Toy/blob/master/server/src/middlewares/webpackMiddlewares.js
Github Open Source
Open Source
Unlicense
2,021
Scott-Beckett-Breakable-Toy
saxlbeckett
JavaScript
Code
35
121
import webpack from "webpack"; import devMiddleware from "webpack-dev-middleware"; import hotMiddleware from "webpack-hot-middleware"; import webpackConfig from "../../../client/webpack.config.js"; const compiler = webpack(webpackConfig); export default () => { return [ devMiddleware(compiler, { publicPath...
40,443
https://github.com/mbacuiz/RxMarkdown/blob/master/markdown-processor/src/main/java/com/yydcdut/markdown/syntax/text/ImageSyntax.java
Github Open Source
Open Source
Apache-2.0
2,022
RxMarkdown
mbacuiz
Java
Code
760
2,649
/* * Copyright (C) 2016 yydcdut (yuyidong2015@gmail.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 ap...
45,681
https://github.com/tyates/moonpig-app-android-mvi-viewmodel-sample/blob/master/domain/src/main/java/com/moonpig/mvisample/domain/productdetail/ProductDetailUseCase.kt
Github Open Source
Open Source
Apache-2.0
2,021
moonpig-app-android-mvi-viewmodel-sample
tyates
Kotlin
Code
92
441
package com.moonpig.mvisample.domain.productdetail import com.moonpig.mvisample.domain.mvibase.BaseUseCase import io.reactivex.Observable class ProductDetailUseCase(private val productDetailRepository: ProductDetailRepository) : BaseUseCase<ProductDetailAction, ProductDetailResult> { override fun resultF...
14,870
https://github.com/PAChain/IOS/blob/master/VoteDemo/Ballot Result/ResultBallotViewController.h
Github Open Source
Open Source
Apache-2.0
null
IOS
PAChain
C
Code
20
103
// // ResultBallotViewController.h // VoteDemo // #import <UIKit/UIKit.h> NS_ASSUME_NONNULL_BEGIN @class BallotListModel; @interface ResultBallotViewController : UIViewController @property (nonatomic,retain)BallotListModel *ballotModel; @end NS_ASSUME_NONNULL_END
882
https://github.com/SiFiveGregS/mri/blob/master/tests/tests/mriTests.cpp
Github Open Source
Open Source
Apache-2.0
null
mri
SiFiveGregS
C++
Code
463
2,587
/* Copyright 2014 Adam Green (http://mbed.org/users/AdamGreen/) 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 app...
43,686
https://github.com/software-capital/GPUOpen-Effects.FidelityFX-CACAO/blob/master/sample/src/DX12/Sample.cpp
Github Open Source
Open Source
MIT
2,022
GPUOpen-Effects.FidelityFX-CACAO
software-capital
C++
Code
2,016
7,771
// AMD SampleDX12 sample code // // Copyright(c) 2021 Advanced Micro Devices, Inc.All rights reserved. // 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...
7,542
https://github.com/csmith/DMDirc/blob/master/src/main/java/com/dmdirc/ui/input/InputHandler.java
Github Open Source
Open Source
MIT
null
DMDirc
csmith
Java
Code
2,545
6,373
/* * Copyright (c) 2006-2017 DMDirc Developers * * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated * documentation files (the "Software"), to deal in the Software without restriction, including without limitation the * rights to use, copy, modify, merge,...
24,040
https://github.com/RobertTheNerd/sc2geeks/blob/master/web-api/app/replayUtility/src/main/java/com/sc2geeks/replayUtility/MainWorker.java
Github Open Source
Open Source
MIT
null
sc2geeks
RobertTheNerd
Java
Code
226
937
package com.sc2geeks.replayUtility; import com.sc2geeks.replayUtility.crawler.CrawlerBase; import com.sc2geeks.replayUtility.crawler.CrawlerFactory; import com.sc2geeks.replayUtility.downloader.DownloadWorker; import com.sc2geeks.replayUtility.mapWorker.MapWorker; import com.sc2geeks.replayUtility.parser.ParseWorker; ...
22,880
https://github.com/alexzimakov/draft-components/blob/master/src/components/radio/radio.tsx
Github Open Source
Open Source
MIT
2,023
draft-components
alexzimakov
TSX
Code
175
690
import { ComponentPropsWithRef, ComponentPropsWithoutRef, JSX, forwardRef } from 'react'; import { classNames } from '../../lib/react-helpers'; type RadioHTMLProps = ComponentPropsWithRef<'input'>; type RadioBaseProps = Omit<RadioHTMLProps, 'type'>; export type RadioIcon = 'dot' | 'check'; export type RadioToggleHandl...
26,811
https://github.com/Qorthony/Sistem-Informasi-Keuangan/blob/master/app/Views/data_akun.php
Github Open Source
Open Source
MIT
2,020
Sistem-Informasi-Keuangan
Qorthony
PHP
Code
506
2,254
<?= $this->extend('layout/app_layout.php') ?> <!-- Sidebar --> <?= $this->section('sidebar-menu') ?> <li class="menu-item-has-children"> <a href="/"><img src="/img/icons/icon-menu-dashboard.png" alt="">Dashboard</a> </li> <?php if (session('user_role') == '1') { ?> <li class="menu-item-has-children"> ...
10,205
https://github.com/EgorDm/electra-sentiment/blob/master/run_eval.py
Github Open Source
Open Source
Apache-2.0
null
electra-sentiment
EgorDm
Python
Code
413
1,617
from __future__ import absolute_import from __future__ import division from __future__ import print_function import argparse import collections import json import os import re import textwrap import pandas as pd import tensorflow.compat.v1 as tf from tqdm import tqdm import configure_finetuning from finetune import ...
22,163
https://github.com/Antoskin/Leitz/blob/master/scripts/feelResult/autoSwitch.js
Github Open Source
Open Source
MIT
null
Leitz
Antoskin
JavaScript
Code
48
152
export default function() { const delay = 3000 let num = 0 function timer() { {num >= $(`.slick-dots li`).length -1 ? num = 0 : num++ } $(`.slick-dots li:eq(${num})`).click() } var interv = null $(`.quatro-normal`).hover(function(ev) { interv = setInterval( timer, delay ) }, function(ev){ clearIn...
9,033
https://github.com/BuildingBridge/biznet/blob/master/bitrix/modules/tasks/install/public/js/tasks/tasks.js
Github Open Source
Open Source
Unlicense
2,020
biznet
BuildingBridge
JavaScript
Code
689
2,689
/** * The file contains functionality that is used very often */ BX.namespace('Tasks'); BX.mergeEx(BX.Tasks, { // todo: accept also a plain string and dom element as errors argument // todo: make option to disable BX.reload(); by default alert: function(errors, params) { var p = new BX.Promise(); if(BX.Ta...
45,889
https://github.com/jaredpar/roslyn/blob/master/src/EditorFeatures/Core/Extensibility/Completion/PresentationItem.cs
Github Open Source
Open Source
Apache-2.0
2,016
roslyn
jaredpar
C#
Code
67
155
// Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using System.Threading; using System.Threading.Tasks; using Microsoft.CodeAnalysis.Completion; namespace Microsoft.CodeAnalysis.Editor { internal abstra...
24,752
https://github.com/liujianhuanzz/vueAdmin/blob/master/src/sidebarData/charts.js
Github Open Source
Open Source
MIT
2,021
vueAdmin
liujianhuanzz
JavaScript
Code
30
100
export default { name: 'Charts', path: '/charts', meta: { icon: 'fa-bar-chart-o', expanded: false }, children: [ { name: 'Column', path: 'column' }, { name: 'Scatter', path: 'scatter' } ] }
18,380