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/zakinomiya/dbtc/blob/master/utils.ts
Github Open Source
Open Source
Apache-2.0
null
dbtc
zakinomiya
TypeScript
Code
17
33
export const ntob = (n: number | bigint) => typeof n == "bigint" ? n : BigInt(n)
861
https://github.com/nlsdfnbch/qgjoin/blob/master/qgjoin.py
Github Open Source
Open Source
MIT
2,017
qgjoin
nlsdfnbch
Python
Code
828
2,244
from collections import defaultdict encoding_table = { # Punctuation ' ': 28, '-': 28, '_': 28, # Numbers '0': ord("O") - ord('@'), '1': ord("I") - ord('@'), '2': ord("Z") - ord('@'), '3': 27, '4': ...
31,169
https://github.com/Diez37/elastic-migrate/blob/master/settings/log_level.go
Github Open Source
Open Source
MIT
null
elastic-migrate
Diez37
Go
Code
124
358
package settings type LogLevel struct { warn *int8 trace *int8 debug *int8 info *int8 } func NewLogLevel() *LogLevel { return &LogLevel{} } func (logLevel *LogLevel) SetWarn(warn int8) *LogLevel { logLevel.warn = &warn return logLevel } func (logLevel *LogLevel) SetTrace(trace int8) *LogLevel { logLevel....
18,468
https://github.com/lindagaw/Emotion-Detection/blob/master/Digit_Classification/DFAMCD/datasets/base_data_loader.py
Github Open Source
Open Source
MIT
2,022
Emotion-Detection
lindagaw
Python
Code
22
93
class BaseDataLoader(): def __init__(self): pass def initialize(self,batch_size): self.batch_size = batch_size self.serial_batches = 0 self.nThreads = 2 self.max_dataset_size=float("inf") pass def load_data(): return None
30,901
https://github.com/guillep/Spec/blob/master/src/Spec2-Core/SpCompositeIconProvider.class.st
Github Open Source
Open Source
MIT
2,022
Spec
guillep
null
Spoken
144
338
" A composite icon provider. Users can compose icon providers to define different ways to find icons. A typical usage would be: ``` (SpLocationIconProvider newLocation: './icons' asFileReference), SpPharoThemeIconProvider new ``` " Class { #name : #SpCompositeIconProvider, #superclass : #SpIconProvider, #instVars ...
37,356
https://github.com/endeavourhealth/Transforms/blob/master/src/main/java/org/endeavourhealth/transform/common/PublishedFileAuditHelper.java
Github Open Source
Open Source
Apache-2.0
2,021
Transforms
endeavourhealth
Java
Code
929
2,735
package org.endeavourhealth.transform.common; import org.apache.commons.io.FilenameUtils; import org.endeavourhealth.common.utility.FileHelper; import org.endeavourhealth.common.utility.FileInfo; import org.endeavourhealth.common.utility.ThreadPool; import org.endeavourhealth.common.utility.ThreadPoolError; import org...
50,936
https://github.com/ddfreyne/ddbencode/blob/master/include/test/ddbencode_test_dictionary.h
Github Open Source
Open Source
MIT
2,021
ddbencode
ddfreyne
C
Code
2
9
void BETestDictionary(void);
28,823
https://github.com/willFederer/taichi/blob/master/python/examples/rendering/paper_cut.py
Github Open Source
Open Source
MIT
2,021
taichi
willFederer
Python
Code
322
1,454
import taichi as tc import colorsys def create_scene(): downsample = 1 width, height = 960 / downsample, 540 / downsample camera = tc.Camera('pinhole', width=width, height=height, fov=90, origin=(0, 0, 10), look_at=(0, 0, 0), up=(0, 1, 0)) scene = tc.Scene() with scene: ...
44,807
https://github.com/nelz9999/go-sentinel/blob/master/pkg/sentinel/error.go
Github Open Source
Open Source
MIT
null
go-sentinel
nelz9999
Go
Code
464
713
// Copyright © 2017 Nelz // // 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, publish, distribute...
47,806
https://github.com/googleapis/google-cloud-dotnet/blob/master/apis/Google.Cloud.Dialogflow.V2/Google.Cloud.Dialogflow.V2.Snippets/ContextsClientSnippets.g.cs
Github Open Source
Open Source
Apache-2.0, LicenseRef-scancode-unknown-license-reference
2,023
google-cloud-dotnet
googleapis
C#
Code
2,572
6,988
// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in ...
36,498
https://github.com/nkoppe/tf_Transformer_SerieseData/blob/master/src/utils/ConstructDataset.py
Github Open Source
Open Source
MIT
null
tf_Transformer_SerieseData
nkoppe
Python
Code
81
476
import tensorflow as tf def LoadCsv(path): """ CSVファイルのロードを行う 戻り値:値配列 """ import pandas as pd csv_frame = pd.read_csv(path) data = csv_frame.values return data def ConvertWindowDataset(series, window_size, batch_size, shuffle_buffer=1000): """ WindowDatasetを作成する """ dataset = tf.data.Dataset.from_tensor_s...
27,367
https://github.com/3313148636/vue-project/blob/master/src/util/axios.js
Github Open Source
Open Source
MIT
null
vue-project
3313148636
JavaScript
Code
54
153
import axios from 'axios' const ajax = (options) => { let _react = options.react === undefined ? true : options.react return axios(options) .then(res => { if (res.statusText === 'OK') { if (_react) console.log('数据获取成功') } else { if (_react) consol...
31,817
https://github.com/CallumCarmicheal/Facebook_like_website/blob/master/Node.JS/server/auth.js
Github Open Source
Open Source
MIT
2,016
Facebook_like_website
CallumCarmicheal
JavaScript
Code
214
599
var bindObjects; // For imports, to get the functions in another file module.exports = { init : function(binds) { bindObjects = binds; console.log("WebServer - Loaded"); }, setBinding : function(binds) { bindObjects = binds; }, validUsername : function(username) ...
23,317
https://github.com/arx-deidentifier/arx/blob/master/src/example/org/deidentifier/arx/examples/Example58.java
Github Open Source
Open Source
Apache-2.0
2,023
arx
arx-deidentifier
Java
Code
612
2,224
/* * ARX Data Anonymization Tool * Copyright 2012 - 2023 Fabian Prasser and contributors * * 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...
26,091
https://github.com/nextreports/nextreports-server/blob/master/src/ro/nextreports/server/service/StorageService.java
Github Open Source
Open Source
Apache-2.0
2,023
nextreports-server
nextreports
Java
Code
424
1,107
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may ...
9,569
https://github.com/DemocraciaEnRed/gobabiertoar-notifier/blob/master/lib/templates/lib/comment-reply.jade
Github Open Source
Open Source
MIT
2,016
gobabiertoar-notifier
DemocraciaEnRed
null
Spoken
19
151
extends wrapper.jade block content table(width='100%', cellpadding='0', cellspacing='0') tr td.content-block p=t('templates.email.greeting',{USERNAME:USERNAME}) p!=t('templates.comment-reply.body', {TOPIC_TITLE:TOPIC_TITLE}) tr td.content-block p!=t('templates.comment-rep...
293
https://github.com/kjnckelly/XorTagCore/blob/master/XorTag/Domain/PlayerRepository.cs
Github Open Source
Open Source
MIT
2,021
XorTagCore
kjnckelly
C#
Code
161
495
using System.Collections.Generic; using System.Linq; namespace XorTag.Domain { public interface IPlayerRepository { IEnumerable<Player> GetAllPlayers(); void UpdatePlayerPosition(Player player); void SavePlayerAsIt(int playerId); void SavePlayerAsNotIt(int playerId); voi...
32,976
https://github.com/armaninspace/HIPS/blob/master/hips/man/pictranspose.n
Github Open Source
Open Source
LicenseRef-scancode-public-domain, MIT
2,019
HIPS
armaninspace
null
Spoken
152
358
.TH PICTRANSPOSE 1 "6/23/91" "Version 2" "HIPS Manual" .SH NAME pictranspose \- reflect an image about its main diagonal .SH SYNOPSIS .B pictranspose .SH DESCRIPTION .I Pictranspose reflects an image about its main (upper-left to lower-right) diagonal. .SH "PIXEL FORMATS HANDLED DIRECTLY" byte, integer, float .SH "REG...
79
https://github.com/chromium/chromium/blob/master/content/browser/network/network_service_util_internal.cc
Github Open Source
Open Source
BSD-3-Clause
2,023
chromium
chromium
C++
Code
172
734
// 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. #include "content/browser/network/network_service_util_internal.h" #include "base/check.h" #include "base/command_line.h" #include "build/build_config.h" #include "content/bro...
48,527
https://github.com/Avans/WEBS2/blob/master/Week 2/KalenderOO/calendar.php
Github Open Source
Open Source
MIT
2,019
WEBS2
Avans
PHP
Code
193
829
<?php namespace Calendar; require __DIR__ . DIRECTORY_SEPARATOR . 'Month.php'; class Calendar { private $days; private $calenderEntryWeekdayClasses; private $widthRenderedCalendarInDays; public function __construct($days) { $this->days = $days; $this->widthRenderedCalendarInDays...
13,452
https://github.com/miykael/workshop_pybrain/blob/master/.gitignore
Github Open Source
Open Source
BSD-3-Clause
2,023
workshop_pybrain
miykael
Ignore List
Code
6
28
.ipynb_checkpoints .DS_Store adhd ds000114 nilearn_cache results
11,538
https://github.com/sjklipp/automol/blob/master/automol/graph/embed.py
Github Open Source
Open Source
Apache-2.0
null
automol
sjklipp
Python
Code
3,624
11,233
""" geometry embedding using the distance geometry algorithm This algorithm generates approximate geometries by a randomized guess at the distance matrix, within heuristic distance bounds, which is then converted to an approximate geometry that satifies these distances. Blaney, J. M.; Dixon, J. S. “Distance Geometry ...
31,374
https://github.com/rustkas/error-index/blob/master/main_tests/tests/e0389.rs
Github Open Source
Open Source
MIT
null
error-index
rustkas
Rust
Code
200
555
/* An attempt was made to mutate data using a non-mutable reference. This commonly occurs when attempting to assign to a non-mutable reference of a mutable reference (&(&mut T)). */ // cargo test --test e0389 with_error1 -- --nocapture // cargo test --test e0389 without_error1 -- --nocapture #[allow(dead_code)] #[cfg(...
50,961
https://github.com/JohnyIrush/softwarescares-superblog/blob/master/src/superblog-vue-components/Plugins/Editor/TextEditor/Editor.vue
Github Open Source
Open Source
MIT
2,022
softwarescares-superblog
JohnyIrush
Vue
Code
38
154
<template> <div id="Teditor" class="row p-0 responsive-page editor-height bg-color-darkblue"> <div class="col-4"> <Sidebar></Sidebar> </div> <div class="col-8"> <Body></Body> </div> </div> </template> <script> import Body from './widgets/Body' import...
9,485
https://github.com/alexandonian/ptutils/blob/master/ptutils/datasource/datasource/data.py
Github Open Source
Open Source
MIT
2,017
ptutils
alexandonian
Python
Code
500
1,325
from __future__ import division, print_function, absolute_import import h5py import torchvision.datasets as dsets import torchvision.transforms as transforms from torch.utils.data import Dataset as dset from ptutils.base import Base from ptutils.datasource.dataloader import DataLoader class Datasource(Base): "...
16,287
https://github.com/anonytics/anonytics/blob/master/packages/viewer/src/index.ts
Github Open Source
Open Source
MIT
2,019
anonytics
anonytics
TypeScript
Code
9
24
/* eslint-disable no-console */ console.log('LOG: Hello from the viewer');
27,471
https://github.com/notaz/ia32rtools/blob/master/tests/reg_call7.expect.c
Github Open Source
Open Source
BSD-3-Clause
2,022
ia32rtools
notaz
C
Code
165
595
int __fastcall sub_test(int a1) { u32 ecx = (u32)a1; u32 eax; u32 ebx; u32 s_a1; u32 s1_a1; u32 s1_a2; u32 s1_a3; u32 s1_a4; u32 s1_a5; ecx += 1; s1_a5 = ecx; ebx = ecx; s1_a4 = ebx; ebx += 1; if (ebx == 0) goto l4; if ((s32)ebx >= 0) goto l2; sub_test1(s1_a4); s1_a4 = ebx; ...
14,178
https://github.com/endeavourhealth/Transforms/blob/master/src/main/java/org/endeavourhealth/transform/bhrut/cache/PasIdtoGPCache.java
Github Open Source
Open Source
Apache-2.0
2,021
Transforms
endeavourhealth
Java
Code
96
363
package org.endeavourhealth.transform.bhrut.cache; import org.endeavourhealth.transform.common.CsvCell; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import java.util.Map; import java.util.concurrent.ConcurrentHashMap; public class PasIdtoGPCache { // Basic org code or org name cache private stati...
16,368
https://github.com/amykhar/obsidian-day-planner-with-templates/blob/master/src/settings.ts
Github Open Source
Open Source
MIT
null
obsidian-day-planner-with-templates
amykhar
TypeScript
Code
114
331
export class DayPlannerSettings { customFolder = 'Day Planners'; noteTemplate = ''; fileNamePrefix = 'Day Planner-'; fileNameDateFormat = 'YYYYMMDD'; mode: DayPlannerMode = DayPlannerMode.File; mermaid = false; notesToDates: NoteForDate[] = []; completePastItems = true; circularProgr...
5,258
https://github.com/hiparker/system-monitor/blob/master/src/main/java/com/parker/monitor/system/service/CpuTotalService.java
Github Open Source
Open Source
Apache-2.0
2,022
system-monitor
hiparker
Java
Code
141
928
package com.parker.monitor.system.service; import com.google.common.collect.Lists; import com.parker.monitor.system.entity.CpuInfo; import com.parker.monitor.system.entity.CpuSingleInfo; import com.parker.monitor.system.utils.BigDecimalUtil; import lombok.extern.slf4j.Slf4j; import org.hyperic.sigar.Cpu; import org.hy...
44,344
https://github.com/Domiii/dbux/blob/master/dbux-common/src/util/prettyLogs.js
Github Open Source
Open Source
Apache-2.0
2,022
dbux
Domiii
JavaScript
Code
139
369
/* eslint no-console: 0 */ /** * TODO: use something that works in browser as well as in Node (currently only works properly in Node) */ import colors from 'colors/safe'; // const inspectOptions = { depth: 0, colors: true }; // function _inspect(arg) { // const f = typeof window !== 'undefined' && window.inspec...
8,474
https://github.com/PSP-Archive/MacroFire/blob/master/include/file/inimgr/inimgrReadEntry.c
Github Open Source
Open Source
BSD-3-Clause
2,021
MacroFire
PSP-Archive
C
Code
145
496
/* inimgrReadEntry.c */ #include "inimgr_types.h" bool inimgrReadEntry( InimgrContext context, char **key, char **value ) { struct inimgr_context *ctx = (struct inimgr_context *)context; char *entry, *delim; if( ctx->mode != INIMGR_OP_LOAD ) return false; do { if( fiomgrTell( ctx->params->ini ) >= ctx->sect...
39,767
https://github.com/rahulyhg/elections-api/blob/master/sdk/cli.js
Github Open Source
Open Source
MIT
2,019
elections-api
rahulyhg
JavaScript
Code
750
2,579
#! /usr/bin/env node const sdk = require('./index.js') const program = require('commander'); let adminClient; let publicClient; const validateEnv = () => { let errors = false; if (!process.env.NETVOTE_API_KEY) { console.error("NETVOTE_API_KEY environment variable must be set") errors = true; ...
7,718
https://github.com/michaelperrin/randonavigo/blob/master/components/hike/Header/index.tsx
Github Open Source
Open Source
MIT
2,023
randonavigo
michaelperrin
TSX
Code
124
487
import Image from "next/image"; import { Hike } from "@/lib/types"; import getHikePicturePath from "@/lib/getHikePicturePath"; import Date from "@/components/date"; type HikeHeaderProps = { hike: Hike; }; const HikeHeader = ({ hike }: HikeHeaderProps) => ( <header> <div className="flex flex-col justify-...
19,923
https://github.com/AsahiOcean/Pikabu/blob/master/Pikabu/Pikabu/Source code/API/API.swift
Github Open Source
Open Source
MIT
2,021
Pikabu
AsahiOcean
Swift
Code
370
1,072
import Foundation struct API: GETPOST { static private let storage = APIStorage.shared static func get(to urlStr: String, with completion: @escaping NetworkResult) { let (queue,group) = (Dispatcher.queues.self,Dispatcher.groups.self) group.get.enter() queue.get.async(group: Di...
48,525
https://github.com/tasadar2/Rawr/blob/master/Rawr-4.3/Rawr.Feral/Abilities/AbilityFeral_FurySwipe.cs
Github Open Source
Open Source
Apache-2.0
2,015
Rawr
tasadar2
C#
Code
196
662
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace Rawr.Feral { class AbilityFeral_FurySwipe : AbilityFeral_Base { /// <summary> /// When you autoattack while in Cat Form or Bear Form, you have a chance to cause a Fury Swipe dealing /// 310...
52,956
https://github.com/bsdphk/AardWARC/blob/master/tests/gcov_report.py
Github Open Source
Open Source
BSD-2-Clause
2,021
AardWARC
bsdphk
Python
Code
139
395
import sys r1 = [] r2 = [] for i in sys.stdin: j = i.replace(':', ' ').split() if not j: continue if j[0] in ('File', 'Function'): subj = j elif j[0] == 'Lines': assert j[2][-1] == '%' j[2] = j[2][:-1] p = float(j[2]) l = int(j[4]) m = (100.0 - p) * l * .01 if subj[0] == 'File': r1.append([m,...
10,241
https://github.com/encosoftware/ifps/blob/master/ButorRevolutionWebAPI/src/backend/factory/IFPS.Factory.EF/EntityConfigurations/OrderAggregate/ConcreteApplianceMaterialConfiguration.cs
Github Open Source
Open Source
MIT
null
ifps
encosoftware
C#
Code
43
216
using ENCO.DDD.EntityFrameworkCore.Relational.Configuration; using IFPS.Factory.Domain.Model; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Metadata.Builders; namespace IFPS.Factory.EF.EntityConfigurations { public class ConcreteApplianceMaterialConfiguration : EntityTypeConfiguration<C...
30,051
https://github.com/nlko/stoRyX/blob/master/src/objlist.ts
Github Open Source
Open Source
MIT
2,018
stoRyX
nlko
TypeScript
Code
547
1,128
import { List } from './list'; import { Informer } from './informer'; import { uuidv4 } from './uuidv4'; import { IContainerById } from './ifs'; import { Observable } from 'rxjs'; import { map } from 'rxjs/operators'; /** A generic list of anything * * The T type can be an object or a any literal. * * The list is ...
152
https://github.com/vacaly/Alink/blob/master/core/src/main/java/com/alibaba/alink/operator/local/feature/BaseCrossTrainLocalOp.java
Github Open Source
Open Source
Apache-2.0
2,023
Alink
vacaly
Java
Code
614
3,003
package com.alibaba.alink.operator.local.feature; import org.apache.flink.api.common.typeinfo.TypeInformation; import org.apache.flink.api.common.typeinfo.Types; import org.apache.flink.api.java.tuple.Tuple2; import org.apache.flink.api.java.tuple.Tuple3; import org.apache.flink.ml.api.misc.param.Params; import org.ap...
21,263
https://github.com/shamrickus/Reborn-Mod-Manager/blob/master/Core/Steam/AppIDs.cs
Github Open Source
Open Source
Apache-2.0
2,022
Reborn-Mod-Manager
shamrickus
C#
Code
68
234
using System.Collections.Generic; namespace Core { public class AppIDs { public const string DOTA2_ID = "570"; // Contains vpk_linux32 public const string SOURCE_SDK_2013_MP_ID = "244310"; public const string SOURCE_SDK_2013_DS_ID = "243750"; public static IEnumerable<...
34,394
https://github.com/GameCreators-Cie/koajs-api-analytics/blob/master/tests/auth-utils.test.ts
Github Open Source
Open Source
MIT
2,021
koajs-api-analytics
GameCreators-Cie
TypeScript
Code
339
1,078
import { expect } from "chai"; import "mocha"; import { Server } from "./../src/server"; import { AuthUtils } from "./../src/utils/auth-utils"; import { UserUtils } from "./../src/utils/user-utils"; let server: any; let creadtedUserId: string = ""; describe("Start server", () => { it("should start the server", asyn...
50,478
https://github.com/PHPExpertsInc/Zuora-API-Client/blob/master/src/DTOs/Write/PaymentMethods/DebitMemoItemDTO.php
Github Open Source
Open Source
MIT
null
Zuora-API-Client
PHPExpertsInc
PHP
Code
124
328
<?php declare(strict_types=1); /** * This file is part of the Zuora PHP API Client, a PHP Experts, Inc., Project. * * Copyright © 2019 PHP Experts, Inc. * Author: Theodore R. Smith <theodore@phpexperts.pro> * GPG Fingerprint: 4BF8 2613 1C34 87AC D28F 2AD8 EB24 A91D D612 5690 * https://www.phpexperts.pro/ * ...
52,575
https://github.com/altanai/webrtc/blob/master/test/test.js
Github Open Source
Open Source
MIT
2,019
webrtc
altanai
JavaScript
Code
254
1,091
const expect = require('chai').expect; const http = require('http'); require('dotenv').config({ path: `.env.${process.env.NODE_ENV}` }); console.log('.env.' + process.env.NODE_ENV); console.log(`Your serverkey is ${process.env.key}`); describe('Websocket server tests', function () { var server = null; var cli...
5,314
https://github.com/dengly/mpush-client-java/blob/master/src/main/java/com/mpush/handler/AckHandler.java
Github Open Source
Open Source
Apache-2.0
null
mpush-client-java
dengly
Java
Code
193
487
/* * (C) Copyright 2015-2016 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by...
52,258
https://github.com/iproduct/intro-python/blob/master/sdp-2022-03-oop/student.py
Github Open Source
Open Source
Apache-2.0
2,023
intro-python
iproduct
Python
Code
205
646
from datetime import datetime class Person: def __init__(self, fname, lname, email, age): self.id = 0 self.fname = fname self.lname = lname self.email = email self.age = age def __str__(self): return f"| {self.id:>3} | {self.fname + ' ' + self.lname:<25} | {sel...
15,502
https://github.com/demisto/content/blob/master/Packs/ExpanseV2/Scripts/ExpanseAggregateAttributionDevice/ExpanseAggregateAttributionDevice_test.py
Github Open Source
Open Source
MIT
2,023
content
demisto
Python
Code
196
732
import demistomock as demisto # noqa import ExpanseAggregateAttributionDevice INPUT = [ {"serial_number": "serialA", "count": 2, "src": "1.1.1.1"}, {"serial": "serialB", "src": "8.8.8.8", "vsys": "vsys1"}, {"log_source_id": "serialB", "src_ip": "10.0.0.1", "vsys": "vsys1", "count": 5}, {"serial_numb...
36,549
https://github.com/fireWinters/lugia-web/blob/master/src/widgets/window/components/Four.js
Github Open Source
Open Source
Apache-2.0
2,020
lugia-web
fireWinters
JavaScript
Code
775
2,298
/* * @flow */ import React from 'react'; import DragLine from './DragLine'; import DragPiece from './DragPiece'; import { directions } from '../initialState'; import { onMouseMoveEvent } from '../function/event'; import { getLimitPosition, getXY, getDownXY } from '../function/utils'; type TypeProps = { x: number...
21,822
https://github.com/janotav/ali-idea-plugin/blob/master/ali-plugin-main/src/test/java/com/hp/alm/ali/idea/IntellijTest.java
Github Open Source
Open Source
Apache-2.0
2,018
ali-idea-plugin
janotav
Java
Code
478
1,594
/* * Copyright 2013 Hewlett-Packard Development Company, L.P * * 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...
5,306
https://github.com/debel27/react-form/blob/master/devtools/react-form-devtools/TopBar.js
Github Open Source
Open Source
MIT
null
react-form
debel27
JavaScript
Code
543
1,642
// @flow import * as React from "react"; import type { DevToolsDataType } from "../../src/devtools-integration"; import "./TopBar.css"; type TopBarPropsType = {| data: DevToolsDataType, selectedFormId: string | null, onSelectedFormIdChange: string => void |}; export function TopBar(props: TopBarPropsType): Reac...
45,407
https://github.com/sapolio/react-chat-api/blob/master/models/Message.js
Github Open Source
Open Source
MIT
2,018
react-chat-api
sapolio
JavaScript
Code
52
158
const mongoose = require('mongoose'); const ignoreEmpty = val => (val !== '' ? val : undefined); const messageSchema = new mongoose.Schema( { sender: { type: mongoose.Schema.Types.ObjectId, ref: 'User', set: ignoreEmpty, }, chatId: { type: mongoose.Schema.Types.ObjectId, re...
44,847
https://github.com/team-up/gs-teamup-bot/blob/master/src/main/java/gs/teamup/bot/scheduler/FeedScheduler.java
Github Open Source
Open Source
MIT
2,018
gs-teamup-bot
team-up
Java
Code
70
337
package gs.teamup.bot.scheduler; import gs.teamup.bot.component.EventQueue; import gs.teamup.bot.pojo.event.TeamupEventFeed; import gs.teamup.bot.template.teamup.EdgeTemplate; import lombok.extern.apachecommons.CommonsLog; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans....
51,579
https://github.com/cbaxter/infrastructure/blob/master/src/Core.Tests/Logging/LogicalOperationScopeTests.cs
Github Open Source
Open Source
MIT
null
infrastructure
cbaxter
C#
Code
522
1,697
using System.Linq; using Spark.Logging; using Spark.Resources; using System; using System.Diagnostics; using System.Reflection; using Xunit; /* Copyright (c) 2015 Spark Software Ltd. * * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files...
4,159
https://github.com/jasonayre/trax_core/blob/master/spec/trax/core/ext/hash_spec.rb
Github Open Source
Open Source
MIT
2,022
trax_core
jasonayre
Ruby
Code
36
97
require 'spec_helper' describe Hash do subject { {:one => :two, :three => :four } } describe "#assert_required_keys" do it { expect { subject.assert_required_keys(:five) }.to raise_error(ArgumentError) } it { expect { subject.assert_required_keys(:one) }.not_to raise_error } end end
45,482
https://github.com/gabrieldominguezduran/blog-uoc-project-api/blob/master/src/users/user.entity.ts
Github Open Source
Open Source
MIT
null
blog-uoc-project-api
gabrieldominguezduran
TypeScript
Code
196
623
import * as bcrypt from 'bcrypt'; import { CategoryEntity } from 'src/categories/category.entity'; import { PostEntity } from 'src/posts/post.entity'; import { BaseEntity, BeforeInsert, BeforeUpdate, Column, Entity, OneToMany, PrimaryGeneratedColumn, } from 'typeorm'; @Entity('users') export class UserEn...
14,179
https://github.com/SimonDarksideJ/XNAGameStudio/blob/master/Samples/DynamicMenu_4_0/DynamicMenu/Controls/PhoneScreen.cs
Github Open Source
Open Source
MIT
2,022
XNAGameStudio
SimonDarksideJ
C#
Code
465
1,379
#region File Information //----------------------------------------------------------------------------- // PhoneScreen.cs // // Microsoft XNA Community Game Platform // Copyright (C) Microsoft Corporation. All rights reserved. //----------------------------------------------------------------------------- #endregion ...
23,668
https://github.com/sbenavid/wwcha/blob/master/webapps/CI_Sample_Website/OfferWebChat.jsp
Github Open Source
Open Source
Apache-2.0
null
wwcha
sbenavid
null
Spoken
173
754
<%-- Document : OfferWebChat.jsp --%> <!-- Avaya Aura Contact Center Multimedia Copyright © 2014 Avaya Inc. All Rights Reserved --> <%@page contentType="text/html" pageEncoding="UTF-8"%> <!DOCTYPE html> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <link rel="sty...
11,825
https://github.com/jovian-od/Dreamtime-ng/blob/master/src/app/dream-post.ts
Github Open Source
Open Source
MIT
null
Dreamtime-ng
jovian-od
TypeScript
Code
13
38
export interface DreamPost { description: string; durationInHours: number; username: string; tags: string[]; }
51,442
https://github.com/magefree/mage/blob/master/Mage.Sets/src/mage/cards/s/SearchTheCity.java
Github Open Source
Open Source
MIT
2,023
mage
magefree
Java
Code
554
1,779
package mage.cards.s; import mage.abilities.Ability; import mage.abilities.common.EntersBattlefieldTriggeredAbility; import mage.abilities.common.PlayCardTriggeredAbility; import mage.abilities.effects.OneShotEffect; import mage.cards.Card; import mage.cards.CardImpl; import mage.cards.CardSetInfo; import mage.constan...
46,871
https://github.com/chriamue/ornithology-pi/blob/master/ornithology/Devices.qml
Github Open Source
Open Source
MIT
null
ornithology-pi
chriamue
null
Spoken
153
563
import QtQuick import QtQuick.Controls 2 Rectangle { width: 300 height: 600 SearchMenu { id: menu anchors.top: parent.top menuWidth: parent.width menuHeight: (parent.height/6) menuText: device.update onButtonClick: { if (device.state) { ...
11,729
https://github.com/eburtsev/react-js-course-game-of-life/blob/master/src/Cell.test.tsx
Github Open Source
Open Source
MIT
null
react-js-course-game-of-life
eburtsev
TypeScript
Code
84
257
import React from "react"; import { mount } from "enzyme"; import renderer from "react-test-renderer"; import { Cell } from "./Cell"; describe("Cell tests", () => { const x = 4; const y = 7; test("Default cell", () => { const tree = renderer.create(<Cell x={x} y={y} clicked={false} onClick={jest.fn...
9,633
https://github.com/AndreyBLR/Other/blob/master/Viewer/Viewer/Viewer/OpenCalais_PHP_09Feb19/src/public/ViewerStandard/js/clfframeattributes.js
Github Open Source
Open Source
BSD-3-Clause
2,017
Other
AndreyBLR
JavaScript
Code
353
1,198
var clfAllTerms = null; function CLFFrameAttributes(category, attributes) { if (clfAllTerms == null) calculateClfTermsByCSS(); this.allTerms = clfAllTerms; this.category = category; this.attrs = new Object(); if (typeof attributes == "string") { var atvl = /"([^"]*)".*?"([^"]*)"/g; var result; while((resu...
37,471
https://github.com/mrpool404/cloudsplaining/blob/master/test/shared/test_exclusions.py
Github Open Source
Open Source
BSD-3-Clause
2,022
cloudsplaining
mrpool404
Python
Code
316
1,495
import unittest import os import json from cloudsplaining.shared.exclusions import is_name_excluded, Exclusions from cloudsplaining.scan.authorization_details import AuthorizationDetails class ExclusionsNewTestCase(unittest.TestCase): def test_new_exclusions_approach(self): exclusions_cfg = { ...
7,618
https://github.com/BowlOfSoup/NormalizerBundle/blob/master/tests/assets/ProxySocial.php
Github Open Source
Open Source
MIT
2,020
NormalizerBundle
BowlOfSoup
PHP
Code
43
149
<?php declare(strict_types=1); namespace BowlOfSoup\NormalizerBundle\Tests\assets; use Doctrine\Common\Persistence\Proxy; class ProxySocial extends Social implements Proxy { /** * {@inheritdoc} */ public function __load() { } /** * {@inheritdoc} */ public function __isIn...
40,131
https://github.com/daniel-chan/blog_demos/blob/master/spring-cloud-tutorials/jaeger-service-provider/src/main/java/com/bolingcavalry/jaeger/provider/aop/SpanAspect.java
Github Open Source
Open Source
Apache-2.0
2,021
blog_demos
daniel-chan
Java
Code
107
470
package com.bolingcavalry.jaeger.provider.aop; import io.opentracing.Scope; import io.opentracing.Span; import io.opentracing.Tracer; import org.apache.commons.lang3.StringUtils; import org.aspectj.lang.ProceedingJoinPoint; import org.aspectj.lang.Signature; import org.aspectj.lang.annotation.Around; import org.aspect...
48,651
https://github.com/osteele/p5-runner/blob/master/p5-server/src/server/Server.ts
Github Open Source
Open Source
MIT
2,022
p5-runner
osteele
TypeScript
Code
1,210
3,151
import chalk from 'chalk'; import express from 'express'; import fs from 'fs'; import path from 'path'; import pug from 'pug'; import { EventEmitter } from 'stream'; import { assertError } from '../ts-extras'; import { attachBrowserScriptRelay, BrowserScriptRelay } from './browserScriptEventRelay'; import { cdnProx...
11,084
https://github.com/orangezeit/leetcode/blob/master/CPP/0401-0500/0466-Count-the-Repetitions.cpp
Github Open Source
Open Source
BSD-3-Clause
2,020
leetcode
orangezeit
C++
Code
249
506
class Solution { public: int getMaxRepetitions(string s1, int n1, string s2, int n2) { vector<int> repeatCount(n1 + 1, 0); vector<int> nextIndex(n1 + 1, 0); int j = 0, cnt = 0; for (int k = 1; k <= n1; ++k) { for (int i = 0; i < s1.size(); ++i) { if (s1[i]...
8,896
https://github.com/Spiritfaer/miwok/blob/master/app/src/main/java/com/example/android/miwok/CategoriesFragmentPagerAdapter.java
Github Open Source
Open Source
Apache-2.0
null
miwok
Spiritfaer
Java
Code
96
320
package com.example.android.miwok; import android.support.v4.app.Fragment; import android.support.v4.app.FragmentManager; import android.support.v4.app.FragmentPagerAdapter; import android.util.Log; import android.view.View; public class CategoriesFragmentPagerAdapter extends FragmentPagerAdapter { private final...
4,830
https://github.com/gorjan-mishevski/YouTube-React-Client/blob/master/client/src/index.js
Github Open Source
Open Source
Apache-2.0
2,018
YouTube-React-Client
gorjan-mishevski
JavaScript
Code
36
145
import React from 'react' import ReactDOM from 'react-dom' import './index.css' import App from './App' import registerServiceWorker from './registerServiceWorker' import fontawesome from '@fortawesome/fontawesome' import faCheckSquare from '@fortawesome/fontawesome-free-solid/faCheckSquare' import faSearch from '@for...
41,530
https://github.com/flynn/flynn-dashboard/blob/master/src/ReleaseHistory.tsx
Github Open Source
Open Source
Apache-2.0
2,021
flynn-dashboard
flynn
TypeScript
Code
2,405
8,427
import * as React from 'react'; import { Route } from 'react-router-dom'; import * as timestamp_pb from 'google-protobuf/google/protobuf/timestamp_pb'; import styled from 'styled-components'; import { Grid, Box, BoxProps, Text } from 'grommet'; import ifDev from './ifDev'; import ProcessScale from './ProcessScale'; i...
21,022
https://github.com/hariramakrishna/GM-Stegapp/blob/master/app/sms/index.php
Github Open Source
Open Source
MIT
null
GM-Stegapp
hariramakrishna
PHP
Code
88
227
<?php require 'class-Clockwork.php'; try { $API_KEY = 'b8ddad30e9debb25bba2aae59f167bb8879d38f2'; // Create a Clockwork object using your API key $clockwork = new Clockwork( $API_KEY ); // Setup and send a message $message = array( 'to' => '18167459286', 'message' => ' :<>' ); $result = $clock...
34,467
https://github.com/vfbsilva/docker/blob/master/dpgan/src/main.py
Github Open Source
Open Source
MIT
2,018
docker
vfbsilva
Python
Code
2,141
8,235
# Copyright 2016 The TensorFlow Authors. All Rights Reserved. # Modifications Copyright 2017 Abigail See # # 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...
18,482
https://github.com/nikneem/f1manager-app/blob/master/src/src/app/pages/admin/teams/pages/team-list-page/team-list-page.component.ts
Github Open Source
Open Source
MIT
2,021
f1manager-app
nikneem
TypeScript
Code
252
971
import { Component, OnDestroy, OnInit } from '@angular/core'; import { MatDialog } from '@angular/material/dialog'; import { ConfirmationDialogComponent } from '@components/confirmation-dialog/confirmation-dialog.component'; import { Store } from '@ngrx/store'; import { TranslateService } from '@ngx-translate/core'; im...
51,405
https://github.com/rentianhua/surfboard/blob/master/Source/Sites/CCN.Resource/Areas/Car/Views/Car/CarLoanList.cshtml
Github Open Source
Open Source
MIT
null
surfboard
rentianhua
C#
Code
283
1,118
 @{ //ViewBag.Title = "carloanlist"; //Layout = "~/Views/Shared/_Layout.cshtml"; } <script type="text/javascript"> $(function () { QueryList(); }); function QueryList() { var json = { mobile: $("#mobile").val() }; $("#carloanlist").getPageList(20, "/api/Car/GetCarLoanList", jso...
49,548
https://github.com/appolloford/enzo-dev/blob/master/src/enzo/Grid_CopyZonesFromGridCountOnly.C
Github Open Source
Open Source
NCSA, BSD-3-Clause, BSD-2-Clause
2,021
enzo-dev
appolloford
C
Code
173
473
/*********************************************************************** / / GRID CLASS (CHECK FOR OVERLAPPING ZONES FROM GRID IN ARGUMENT TO THIS GRID) / / written by: Greg Bryan / date: April, 1996 / modified1: / / PURPOSE: / / RETURNS: FAIL or SUCCESS / ***************************************************...
7,415
https://github.com/doc22940/uno-game/blob/master/packages/unoenty/src/components/LoadingScene/styles.tsx
Github Open Source
Open Source
MIT
2,022
uno-game
doc22940
TypeScript
Code
76
296
import { makeStyles } from "@material-ui/core" import colors from "@/styles/colors" const useStyles = makeStyles((theme) => ({ container: { position: "fixed", width: "100%", height: "100%", backgroundColor: colors.grayScale[1], top: 0, left: 0, zIndex: 99999, }, logo: { maxWidth: 160, width: "100...
45,789
https://github.com/gnoliyil/fuchsia/blob/master/tools/fidlcat/command_line_options.h
Github Open Source
Open Source
BSD-2-Clause
2,022
fuchsia
gnoliyil
C++
Code
290
1,034
// Copyright 2019 The Fuchsia Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef TOOLS_FIDLCAT_COMMAND_LINE_OPTIONS_H_ #define TOOLS_FIDLCAT_COMMAND_LINE_OPTIONS_H_ #include <optional> #include <string> #include <vector> #incl...
21,631
https://github.com/reels-research/iOS-Private-Frameworks/blob/master/PassKitUI.framework/PKDashboardPresentationTimingCurveProvider.h
Github Open Source
Open Source
MIT
2,022
iOS-Private-Frameworks
reels-research
C
Code
75
292
/* Generated by RuntimeBrowser Image: /System/Library/PrivateFrameworks/PassKitUI.framework/PassKitUI */ @interface PKDashboardPresentationTimingCurveProvider : NSObject <UITimingCurveProvider> { double _fractionComplete; unsigned long long _type; } @property (nonatomic, readonly) UICubicTimingParameter...
21,249
https://github.com/karensmolermiller/incubator-geode/blob/master/gemfire-core/src/test/java/com/gemstone/gemfire/management/internal/cli/commands/DeployCommandsDUnitTest.java
Github Open Source
Open Source
Apache-2.0
null
incubator-geode
karensmolermiller
Java
Code
1,363
5,901
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may ...
26,598
https://github.com/RArielVillalobos/carrera/blob/master/views/encuesta/triviacompleta.php
Github Open Source
Open Source
2,019
carrera
RArielVillalobos
PHP
Code
11
49
<br><br><br> <div class="container reglamento-container"> <div class="jumbotron"> <?= $mensaje; ?> </div> </div>
30,945
https://github.com/flatychen/flaty-ruoyi-admin/blob/master/ruoyi-admin-web/src/main/java/cn/aylives/ruoyi/admin/modules/activity/controller/AppActivityController.java
Github Open Source
Open Source
MIT
null
flaty-ruoyi-admin
flatychen
Java
Code
276
1,293
package cn.aylives.ruoyi.admin.modules.activity.controller; import cn.aylives.ruoyi.admin.modules.activity.domain.AppActivity; import cn.aylives.ruoyi.admin.modules.activity.service.IAppActivityService; import cn.aylives.ruoyi.admin.core.dept.DeptData; import cn.aylives.ruoyi.common.annotation.Log; import cn.aylives.r...
32,640
https://github.com/iPlon-org/esp-idf/blob/master/examples/bluetooth/esp_ble_mesh/ble_mesh_coex_test/components/case/ble_unit.c
Github Open Source
Open Source
Apache-2.0
2,022
esp-idf
iPlon-org
C
Code
619
2,958
/* * ESP BLE Mesh Example * * SPDX-FileCopyrightText: 2021 Espressif Systems (Shanghai) CO LTD * * SPDX-License-Identifier: Unlicense OR CC0-1.0 */ #include "ble_unit.h" #include "sync.h" #define TAG "BLE_UINT" #define GAP_TRANS_DEFAULT_SHORT_TO 50 // 50ms for events expected to reported as soon as API ca...
16,888
https://github.com/WebFlight/LowCodeQualityChecker/blob/master/script.js
Github Open Source
Open Source
Apache-2.0
2,018
LowCodeQualityChecker
WebFlight
JavaScript
Code
142
464
"use strict"; var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { return new (P || (P = Promise))(function (resolve, reject) { function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } function rejected(value) { try { step(gene...
39,787
https://github.com/Hide-Fun/metabarcode/blob/master/R/label_extract.R
Github Open Source
Open Source
MIT
2,021
metabarcode
Hide-Fun
R
Code
70
257
#' Extracting label number. #' #' this function extraxt number from chracter. #' accepting number type is "2-10", "1-9-3", "1-9-10", "3" ...etc. #' @param string A character #' @export #' @examples #' label_extract("ABC_2-1-10_DE") label_extract = function(string) { stopifnot(length(string) == 1) if (!is.character(...
51,645
https://github.com/velazcorenier/events-operator/blob/master/pkg/managers/managers_test.go
Github Open Source
Open Source
Apache-2.0
null
events-operator
velazcorenier
Go
Code
108
575
package managers import ( "testing" "github.com/kabanero-io/events-operator/pkg/apis/events/v1alpha1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" . "github.com/onsi/ginkgo" . "github.com/onsi/gomega" ) func TestEventManager(t *testing.T) { RegisterFailHandler(Fail) RunSpecs(t, "Event Manager Suite") } va...
52,954
https://github.com/flyhero/flyapi2.x/blob/master/flyapi-dao/src/main/java/com/flyhero/flyapi/dao/ModuleMapper.java
Github Open Source
Open Source
Apache-2.0
2,018
flyapi2.x
flyhero
Java
Code
32
134
package com.flyhero.flyapi.dao; import java.util.List; import com.flyhero.flyapi.entity.Module; public interface ModuleMapper { List<Module> findModule(Integer projectId); int deleteByPrimaryKey(Integer moduleId); int insert(Module record); int insertSelective(Module record); Module selectByP...
43,459
https://github.com/stephanskim/2DFighter/blob/master/Assets/Scripts/Game.cs
Github Open Source
Open Source
MIT
null
2DFighter
stephanskim
C#
Code
71
236
using System.Collections; using System.Collections.Generic; using UnityEngine; public class Game : MonoBehaviour { [SerializeField] private GameObject fighterPrefab; [SerializeField] private Transform Fighters; [SerializeField] private Vector2 startPos1 = new Vector2(-5.0f, -3.0f); [SerializeField] p...
26,919
https://github.com/notanengineercom/wotan/blob/master/baselines/packages/wotan/api/src/di/default.module.d.ts
Github Open Source
Open Source
Apache-2.0
2,022
wotan
notanengineercom
TypeScript
Code
11
24
import { ContainerModule } from 'inversify'; export declare function createDefaultModule(): ContainerModule;
4,890
https://github.com/maltesermailo/Mitternacht-NEW/blob/master/src/NadekoBot/Program.cs
Github Open Source
Open Source
MIT
2,018
Mitternacht-NEW
maltesermailo
C#
Code
52
184
namespace NadekoBot { public class Program { public static void Main(string[] args) { if (args.Length == 3 && int.TryParse(args[0], out int shardId) && int.TryParse(args[1], out int parentProcessId)) { int? port = null; if (int.TryParse(ar...
15,981
https://github.com/agile-lab-dev/wasp/blob/master/whitelabel/docker/vanilla-hadoop2/docker-entrypoint-one.sh
Github Open Source
Open Source
Apache-2.0
2,023
wasp
agile-lab-dev
Shell
Code
100
770
#!/usr/bin/env bash source $BUILD_INSTALL_SCRIPTS_DIR/common/bash-defaults.sh bash $BUILD_TEMPLATES_DIR/resolve-templates.sh hadoop-daemon.sh start namenode hadoop-daemon.sh start datanode yarn-daemon.sh start resourcemanager yarn-daemon.sh start nodemanager zookeeper-server-start.sh -daemon $KAFKA_HOME/config/zoo...
37,417
https://github.com/ZhydraBook/zhydrabook/blob/master/app/components/DownloadList/Download.js
Github Open Source
Open Source
MIT
2,017
zhydrabook
ZhydraBook
JavaScript
Code
165
914
// @flow import React, { Component } from 'react'; import { Progress, Segment, Button, Item, Icon, Statistic } from 'semantic-ui-react'; export default class Home extends Component { componentDidMount() { const { client } = this.props; const torrentId = 'magnet:?xt=urn:btih:6a9759bffd5c0af65319979fb7832189f...
20,477
https://github.com/Ajuaman/bot/blob/master/util/frozen_list.py
Github Open Source
Open Source
BSD-3-Clause
2,022
bot
Ajuaman
Python
Code
425
1,620
from __future__ import annotations from typing import Any, List, Iterator, Callable, Iterable, Union, Generic, TypeVar T = TypeVar("T") class FrozenList(Generic[T]): """ Immutable list. Doesn't actually store the underlying list as a field, instead its methods are closed over the underlying list object. ...
30,132
https://github.com/tuananh/corona-time-series-map/blob/master/src/map/calculations.js
Github Open Source
Open Source
Apache-2.0
2,020
corona-time-series-map
tuananh
JavaScript
Code
58
128
import { easeOutCirc } from "js-easing-functions"; const minRadius = 5000; const maxRadius = 500000; const diffRadius = maxRadius - minRadius; const rangeMax = 50000; // max out radius at this count export const computeCircleRadius = count => { // elapsed: number, initialValue: number, amountOfChange: number, dura...
13,314
https://github.com/alafgani1000/TodoApp/blob/master/app/Http/Controllers/TodoController.php
Github Open Source
Open Source
MIT
null
TodoApp
alafgani1000
PHP
Code
263
1,111
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use Illuminate\Http\File; use Illuminate\Support\Facades\Storage; use Illuminate\Support\Facades\Auth; use App\Todo; use App\TodoAttachment; use App\TodoDetail; use App\User; use Datatables; class TodoController extends Controller { public functi...
25,456
https://github.com/DubulaBonga/Bonga/blob/master/steps/buying_item_steps.py
Github Open Source
Open Source
Apache-2.0
null
Bonga
DubulaBonga
Python
Code
268
793
# -*- coding: utf-8 -*- u""" Copyright 2015 Telefónica Investigación y Desarrollo, S.A.U. This file is part of Toolium. 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/lic...
28,861
https://github.com/ehabibov/jagger/blob/master/chassis/core/src/main/java/com/griddynamics/jagger/engine/e1/reporting/ScenarioSummaryExtractor.java
Github Open Source
Open Source
Apache-2.0
2,018
jagger
ehabibov
Java
Code
305
1,221
package com.griddynamics.jagger.engine.e1.reporting; import static com.griddynamics.jagger.util.StandardMetricsNamesUtil.extractDisplayNameFromGenerated; import static com.griddynamics.jagger.util.StandardMetricsNamesUtil.extractIdsFromGeneratedIdForScenarioComponents; import com.griddynamics.jagger.util.StandardMetr...
38,649
https://github.com/JetBrains/resharper-ultimate-whatsnew/blob/master/Older/ReSharper20172TypeScript/MappedTypeUsages.js
Github Open Source
Open Source
Apache-2.0
2,023
resharper-ultimate-whatsnew
JetBrains
JavaScript
Code
8
39
function f(o) { console.log(o.id, o.name); } //# sourceMappingURL=MappedTypeUsages.js.map
45,035
https://github.com/jasondenton/UniversalContainer/blob/master/ucio.h
Github Open Source
Open Source
BSD-3-Clause
null
UniversalContainer
jasondenton
C
Code
128
416
/* * UniversalContainer library. * Copyright Jason Denton, 2008,2010. * Made available under the new BSD license, as described in LICENSE * * Send comments and bug reports to jason.denton@gmail.com * http://www.greatpanic.com/code.html */ /* Serializiation and deserializiation declarations, and convinence wrap...
30,002
https://github.com/MarkusSN/designsystem/blob/master/packages/ffe-form/less/radio-switch.less
Github Open Source
Open Source
MIT
null
designsystem
MarkusSN
Less
Code
449
1,918
// Radio switch // // Markup: // <fieldset class="ffe-fieldset ffe-input-group"> // <legend class="ffe-form-label">Vil bilen bli kjørt av sjåfører under 23 år?</legend> // <input type="radio" aria-invalid="false" class="ffe-radio-input" id="radio-switch-1" // value="true" name="under23"> // <label f...
26,782
https://github.com/olivivian/Show/blob/master/Tmall/js/script.js
Github Open Source
Open Source
MIT
2,017
Show
olivivian
JavaScript
Code
133
784
// $(function(){ // $("div.productsAsideCategorys div.row a").each(function(){ // var v = Math.round(Math.random() *6); // if(v == 1) // $(this).css("color","#EB698C"); // }); // }); // $(function(){ $("div.productsAsideCategorys div.rowColor1 a").each(function(){ var v...
1,317