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/maiha/rubyist/blob/master/src/main/scala/sc/ala/rubyist/Methods.scala
Github Open Source
Open Source
MIT
2,016
rubyist
maiha
Scala
Code
66
176
package sc.ala.rubyist object Methods { class Methods[A](a: => A) { // write methods logic here def methods = List("Not","Implemnted","Yet") } /* expected for "1.methods" List( , %, &, *, + , -, /, >, >= , >>, >>>, ^, asInstanceOf , isInstanceOf, toByte, toChar, toDouble , toFloat, toInt, to...
3,930
https://github.com/OpenSRDK/autodiff-rs/blob/master/src/expression/matrix_expression/operations/t.rs
Github Open Source
Open Source
Apache-2.0
null
autodiff-rs
OpenSRDK
Rust
Code
39
142
use crate::MatrixExpression; impl MatrixExpression { pub fn t(self) -> MatrixExpression { if let MatrixExpression::Constant(v) = self { return MatrixExpression::Constant(v.t()); } MatrixExpression::T(self.into()) } } impl MatrixExpression { pub(crate) fn diff_t(symbols...
29,622
https://github.com/dvs99/OpenSilver/blob/master/src/Tests/TestApplication/TestApplication/Tests/DataGrids/DataGrid1Test.xaml.cs
Github Open Source
Open Source
MIT
2,022
OpenSilver
dvs99
C#
Code
262
1,011
using System; using System.Collections.Generic; using System.Linq; using System.Net; using System.Windows; using System.Windows.Controls; using System.Windows.Documents; using System.Windows.Input; using System.Windows.Media; using System.Windows.Media.Animation; using System.Windows.Shapes; using System.Windows.Navig...
4,854
https://github.com/Jam-cpu/Masters-Project---Final/blob/master/build/ros_control/transmission_interface/CMakeFiles/simple_transmission_test.dir/cmake_clean.cmake
Github Open Source
Open Source
BSD-3-Clause-Clear
null
Masters-Project---Final
Jam-cpu
CMake
Code
17
137
file(REMOVE_RECURSE "CMakeFiles/simple_transmission_test.dir/test/simple_transmission_test.cpp.o" "/workspace/devel/lib/transmission_interface/simple_transmission_test.pdb" "/workspace/devel/lib/transmission_interface/simple_transmission_test" ) # Per-language clean rules from dependency scanning. foreach(lang C...
15,756
https://github.com/Cheren/apiato/blob/master/app/Containers/AppSection/User/Mails/UserRegisteredMail.php
Github Open Source
Open Source
MIT
null
apiato
Cheren
PHP
Code
129
370
<?php /** * Beauty application system * * This file is part of the Beauty application system package. * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * * @license Proprietary * @copyright Copyright (C) kalistratov.ru, All rights r...
26,396
https://github.com/jain-nikunj/packet-parsing/blob/master/scripts/pcap2info.py
Github Open Source
Open Source
MIT
null
packet-parsing
jain-nikunj
Python
Code
295
1,065
from collections import defaultdict import numpy as np import sys import matplotlib matplotlib.use('Agg') import matplotlib.pyplot as plt def get_delivered_load(inputFile, curSrn, dx=1): ''' ''' dictTime2Load = defaultdict(lambda : 0) with open(inputFile, 'r') as inFile: lines = inFile.readlin...
18,182
https://github.com/MassTransit/MassTransit/blob/master/src/MassTransit/SagaStateMachine/Configuration/MessageCorrelationIdEventCorrelationBuilder.cs
Github Open Source
Open Source
Apache-2.0, LicenseRef-scancode-free-unknown
2,023
MassTransit
MassTransit
C#
Code
73
284
namespace MassTransit.Configuration { using System; public class MessageCorrelationIdEventCorrelationBuilder<TInstance, TData> : IEventCorrelationBuilder where TData : class where TInstance : class, SagaStateMachineInstance { readonly MassTransitEventCorrelationConfigurator...
10,975
https://github.com/xjcooo/demo/blob/master/demo_parent/demo_web/src/test/java/org/xjc/demo/web/test/JDKTest.java
Github Open Source
Open Source
Apache-2.0
2,019
demo
xjcooo
Java
Code
51
153
package org.xjc.demo.web.test; import java.util.Deque; import java.util.Queue; /** * Created by xjc on 2018-12-13. */ public class JDKTest { public void testQueue() { Queue queue; Deque deque; } static StringBuilder sb = new StringBuilder(); public static void test(){ sb.app...
46,767
https://github.com/Lungaville/game-pedia/blob/master/models/transaction.js
Github Open Source
Open Source
BSD-2-Clause
null
game-pedia
Lungaville
JavaScript
Code
37
113
'use strict'; module.exports = (sequelize, DataTypes) => { const transaction = sequelize.define('transaction', { id_user: DataTypes.INTEGER, status: DataTypes.INTEGER, expired_at: DataTypes.DATE, transaction_id: DataTypes.STRING, }, {}); transaction.associate = function(models) { // associatio...
1,185
https://github.com/sssasdsadasdad/jyerp_plus/blob/master/export/module/tender/sql/uninstall.sql
Github Open Source
Open Source
FSFAP
null
jyerp_plus
sssasdsadasdad
SQL
Code
98
328
-- ----------------------------- -- 导出时间 `2018-06-20 13:57:13` -- ----------------------------- DROP TABLE IF EXISTS `dp_tender_obj`; DROP TABLE IF EXISTS `dp_tender_hire`; DROP TABLE IF EXISTS `dp_tender_hire_detail`; DROP TABLE IF EXISTS `dp_tender_lease`; DROP TABLE IF EXISTS `dp_tender_lease_detail`; DROP TABLE IF ...
26,300
https://github.com/hpi-swa/Squot/blob/master/src/Squot.package/SquotDecorator.class/instance/comeFullyUpOnReload..st
Github Open Source
Open Source
MIT
2,022
Squot
hpi-swa
null
Spoken
10
46
keeping decoration comeFullyUpOnReload: aDataStream ^ self squotSameDecorationOn: (decoratedObject comeFullyUpOnReload: aDataStream)
40,627
https://github.com/jet2jet/stream-connector/blob/master/source/util/wsl_util.cpp
Github Open Source
Open Source
BSD-3-Clause
2,021
stream-connector
jet2jet
C++
Code
1,519
6,151
#include "../framework.h" #include "functions.h" #include "event_handler.h" #include "wsl_util.h" #ifdef _WIN64 static PWSTR s_pszWslExePath = nullptr; static PWSTR s_pszWslPathPath = nullptr; static void __cdecl _CleanupWsl() { if (s_pszWslPathPath) { free(s_pszWslPathPath); s_pszWslPathPa...
9,433
https://github.com/ZJCRT/drishti/blob/master/src/lib/drishti/testlib/sugar.cmake
Github Open Source
Open Source
BSD-3-Clause
2,022
drishti
ZJCRT
CMake
Code
30
165
# This file generated automatically by: # generate_sugar_files.py # see wiki for more info: # https://github.com/ruslo/sugar/wiki/Collecting-sources if(DEFINED LIB_TESTLIB_TESTLIB_SUGAR_CMAKE_) return() else() set(LIB_TESTLIB_TESTLIB_SUGAR_CMAKE_ 1) endif() include(sugar_files) sugar_files( DRISHTI_TESTLIB...
24,873
https://github.com/meteocat/pymica/blob/master/pymica/multiregression.py
Github Open Source
Open Source
MIT
2,023
pymica
meteocat
Python
Code
750
2,206
"""Calculates a multiple linear regression recursively adding variables, until the score is under a threshold For more information, see :ref:`Multiple Linear Regression`. """ from numpy import array, std from sklearn.linear_model import LinearRegression from sklearn.metrics import mean_absolute_error, mean_squared_err...
30,231
https://github.com/comprakt/comprakt-fuzz-tests/blob/master/output/6dc937cb3ef34accba4977478b14612b.java
Github Open Source
Open Source
Apache-2.0, MIT
null
comprakt-fuzz-tests
comprakt
Java
Code
4
17
class axu4ebY0NeH1gg { }
32,914
https://github.com/alexkuk/magento_liqpay/blob/master/app/code/local/Loomy/Liqpay/Block/Info.php
Github Open Source
Open Source
MIT
2,014
magento_liqpay
alexkuk
PHP
Code
28
123
<?php class Loomy_Liqpay_Block_Info extends Mage_Payment_Block_Info { protected function _construct() { parent::_construct(); $this->setTemplate('lliqpay/info.phtml'); } public function getMethodCode() { return $this->getInfo()->getMethodInstance()->getCode(); } ...
12,587
https://github.com/wechat-miniprogram/j-component/blob/master/src/tool/utils.js
Github Open Source
Open Source
MIT
2,023
j-component
wechat-miniprogram
JavaScript
Code
827
2,888
/** * 获取随机 id,生成 15 位 */ let seed = 1e14 + Math.floor(Math.random() * 9e14) const charString = 'abcdefghij' function getId(notNumber) { const id = ++seed return notNumber ? id.toString().split('').map(item => charString[+item]).join('') : id } /** * 复制对象 */ function copy(src) { if (typeof src === 'object' &&...
577
https://github.com/BeeMargarida/yonius/blob/master/test/api/api.js
Github Open Source
Open Source
Apache-2.0
2,020
yonius
BeeMargarida
JavaScript
Code
432
2,094
const assert = require("assert"); const yonius = require("../.."); const httpbinHost = process.env.HTTPBIN ? process.env.HTTPBIN : "httpbin.stage.hive.pt"; const httpbinUrl = `https://${httpbinHost}/`; describe("API", function() { this.timeout(30000); describe("#constructor()", function() { it("should...
49,205
https://github.com/bgoonz/UsefulResourceRepo2.0/blob/master/GIT-USERS/lydia/react-virtualized/source/Grid/Grid.jest.js
Github Open Source
Open Source
MIT
2,022
UsefulResourceRepo2.0
bgoonz
JavaScript
Code
6,368
21,691
import React from 'react'; import {findDOMNode} from 'react-dom'; import {Simulate} from 'react-dom/test-utils'; import {render} from '../TestUtils'; import Grid, {DEFAULT_SCROLLING_RESET_TIME_INTERVAL} from './Grid'; import {CellMeasurer, CellMeasurerCache} from '../CellMeasurer'; import { SCROLL_DIRECTION_BACKWARD,...
42,441
https://github.com/franciscolopezsancho/akkaserverless-java-sdk/blob/master/sdk/scala-sdk/src/main/scala/com/akkaserverless/scalasdk/impl/replicatedentity/ReplicatedEntityAdapters.scala
Github Open Source
Open Source
Apache-2.0
2,022
akkaserverless-java-sdk
franciscolopezsancho
Scala
Code
659
3,172
/* * Copyright 2021 Lightbend Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed ...
43,481
https://github.com/ZenMX/elasticsearch/blob/master/x-pack/plugin/security/src/main/java/org/elasticsearch/xpack/security/authc/ldap/ActiveDirectoryGroupsResolver.java
Github Open Source
Open Source
Apache-2.0
2,020
elasticsearch
ZenMX
Java
Code
285
1,323
/* * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one * or more contributor license agreements. Licensed under the Elastic License; * you may not use this file except in compliance with the Elastic License. */ package org.elasticsearch.xpack.security.authc.ldap; import com.unboundid.lda...
47,385
https://github.com/rdkcmf/meta-rdk-ext/blob/master/recipes-extended/wpe-webkit/files/2.22/0216-Accessibility.patch
Github Open Source
Open Source
MIT
null
meta-rdk-ext
rdkcmf
null
Spoken
2,191
10,722
From 0cfa19a8b9e462e3eaacfe1cc4b7d7e0179d9266 Mon Sep 17 00:00:00 2001 From: "Vivek.A" <Vivek_Arumugam@comcast.com> Date: Thu, 19 Nov 2020 13:32:54 +0000 Subject: [PATCH 2/3] accessibility changes Change-Id: I149b1e59541f60c24b99145aedfc4e3e13e40241 --- Source/WebCore/CMakeLists.txt | 1 + Source/Web...
1,489
https://github.com/WertherHu/Orc.Toolkit/blob/master/src/Controls/Orc.Toolkit.SL/PinnableTooltip/LinkTooltipItem.cs
Github Open Source
Open Source
MS-PL
2,014
Orc.Toolkit
WertherHu
C#
Code
73
176
// -------------------------------------------------------------------------------------------------------------------- // <copyright file="LinkTooltipItem.cs" company="ORC"> // MS-PL // </copyright> // <summary> // The pinnable tooltip control. // </summary> // ----------------------------------------------------...
49,895
https://github.com/alextu/micronaut-serialization/blob/master/serde-bson/src/main/java/io/micronaut/serde/bson/custom/CustomBsonSerdes.java
Github Open Source
Open Source
Apache-2.0
2,022
micronaut-serialization
alextu
Java
Code
233
874
/* * Copyright 2017-2021 original 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 * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agr...
34,803
https://github.com/Shaelex/pimp-my-pr/blob/master/libs/server/repository/infrastructure/src/lib/typeorm/schema/repository.schema.ts
Github Open Source
Open Source
MIT
2,022
pimp-my-pr
Shaelex
TypeScript
Code
108
324
import { RepositoryEntity } from '@pimp-my-pr/server/repository/core/domain'; import { EntitySchema } from 'typeorm'; interface RepositoryRelations { user: undefined; } export const schema = new EntitySchema<RepositoryEntity | RepositoryRelations>({ name: 'RepositoryEntity', target: RepositoryEntity, columns:...
30,481
https://github.com/dustin2906/PracticalTrainingApp/blob/master/php/supervisors.php
Github Open Source
Open Source
MIT
2,020
PracticalTrainingApp
dustin2906
PHP
Code
104
519
<?php /* file: php/supervisors.php desc: Displays a list of supervisors. Add New -link on a page */ include('dbConnect.php'); $sql="SELECT * FROM supervisor WHERE supervisorID ORDER BY supervisorID,firstname,lastname"; $result=$conn->query($sql); ?> <div class="text-center"> <h1 class="h3 mb-3 font-weight-normal tit...
35,408
https://github.com/arturkow2000/rust-psutil/blob/master/src/cpu/sys/windows/cpu_times.rs
Github Open Source
Open Source
MIT
null
rust-psutil
arturkow2000
Rust
Code
211
988
use std::ffi::c_void; use std::mem::{size_of, zeroed}; use std::ptr; use std::time::Duration; use ntapi::ntexapi::{ NtQuerySystemInformation, SystemProcessorPerformanceInformation, SYSTEM_PROCESSOR_PERFORMANCE_INFORMATION, }; use winapi::shared::minwindef::FILETIME; use winapi::shared::ntstatus::STATUS_SUCCESS; use ...
465
https://github.com/Altinn/altinn-studio/blob/master/src/Altinn.Platform/Altinn.Platform.PDF/src/main/java/altinn/platform/pdf/models/AltinnOrg.java
Github Open Source
Open Source
BSD-3-Clause
2,023
altinn-studio
Altinn
Java
Code
31
93
package altinn.platform.pdf.models; import java.util.HashMap; public class AltinnOrg { private HashMap<String, String> name; public HashMap<String, String> getName() { return name; } public void setName(HashMap<String, String> name) { this.name = name; } }
16,437
https://github.com/saserr/simple-actors/blob/master/testing/src/test/java/simple/actor/testing/SpyChannelTest.java
Github Open Source
Open Source
Apache-2.0
null
simple-actors
saserr
Java
Code
241
562
/* * Copyright 2017 Sanjin Sehic * * 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...
7,635
https://github.com/ZGoriely/cbmc/blob/master/src/cbmc/bv_cbmc.cpp
Github Open Source
Open Source
BSD-4-Clause
null
cbmc
ZGoriely
C++
Code
218
1,106
/*******************************************************************\ Module: Author: Daniel Kroening, kroening@kroening.com \*******************************************************************/ #include "bv_cbmc.h" #include <util/arith_tools.h> #include <util/replace_expr.h> bvt bv_cbmct::convert_waitfor(const e...
8,261
https://github.com/lyn-boyu/x6/blob/master/packages/x6/src/route/loop.ts
Github Open Source
Open Source
MIT
null
x6
lyn-boyu
TypeScript
Code
308
734
import { Point } from '../geometry' import { State } from '../core/state' export function loop( edgeState: State, sourceState: State | null, targetState: State | null, points: Point[], result: Point[], ) { const pts = edgeState.absolutePoints const p0 = pts[0] const pe = pts[pts.length - 1] if (p0 !...
45,988
https://github.com/ordinary-developer/education/blob/master/books/tech/cpp/std-14/n_m_josuttis-cpp_std_library-2_ed/ch_18-concurrency/05-std_threads/main.cpp
Github Open Source
Open Source
MIT
2,017
education
ordinary-developer
C++
Code
166
498
#include <thread> #include <chrono> #include <random> #include <iostream> #include <exception> void doSomething(int number, char c) { try { std::default_random_engine randomEngine{c}; std::uniform_int_distribution<int> distribution{ 10, 1000 }; for (int i{0}; i < number; ++i) { ...
38,476
https://github.com/trevor-crowley/mylab/blob/master/projects/mandel/video_mandel_gen/Video_Mandelbrot_Generator/solution2_dataflow/impl/misc/drivers/video_mandelbrot_generator_v1_0/src/xvideo_mandelbrot_generator.h
Github Open Source
Open Source
MIT
2,021
mylab
trevor-crowley
C
Code
275
1,524
// ============================================================== // Vivado(TM) HLS - High-Level Synthesis from C, C++ and SystemC v2019.1 (64-bit) // Copyright 1986-2019 Xilinx, Inc. All Rights Reserved. // ============================================================== #ifndef XVIDEO_MANDELBROT_GENERATOR_H #define XVI...
688
https://github.com/Specy/genshin-music/blob/master/src/pages/App.tsx
Github Open Source
Open Source
MIT
2,022
genshin-music
Specy
TypeScript
Code
423
1,471
import { useCallback, useEffect, useState } from 'react'; import Analytics from 'lib/Analytics'; import Home from 'components/Index/Home'; import HomeStore from 'stores/HomeStore'; import LoggerStore from 'stores/LoggerStore'; import { delay } from "lib/Tools" import { APP_NAME, APP_VERSION, UPDATE_MESSAGE } from "appC...
4,390
https://github.com/luisedudiaz/rubik-cube-threejs/blob/master/js/Cube.js
Github Open Source
Open Source
MIT
2,020
rubik-cube-threejs
luisedudiaz
JavaScript
Code
165
377
//This class loads the elements and creates each cube per cube. class Cube { #COLORS = ['#FFE200', '#FFFFFF', '#00a239', '#0052A2','#EF7C00' ,'#E50026'] //This constructor, specifies cube size, space, and movement. constructor(canvas) { //This element it is obtained from the canvas and receives the 3 x 3 sel...
29,531
https://github.com/Yilong94/50.002-1D-game-design/blob/master/work/verilog/movefinal_8.v
Github Open Source
Open Source
MIT
2,018
50.002-1D-game-design
Yilong94
Verilog
Code
885
3,441
/* This file was generated automatically by the Mojo IDE version B1.3.6. Do not edit this file directly. Instead edit the original Lucid source. This is a temporary file and any changes made to it will be destroyed. */ module move_8 ( input clk, input rst, input [48:0] selectedpositionfromselect, ...
6,114
https://github.com/glitchassassin/screeps/blob/master/src/Minions/minionTypes.ts
Github Open Source
Open Source
Unlicense
2,022
screeps
glitchassassin
TypeScript
Code
507
1,493
import { memoize } from "utils/memoizeFunction"; declare global { interface CreepMemory { type: MinionTypes, office: string, } } export interface Minion { body: BodyPartConstant[], name: string, memory: CreepMemory } export enum MinionTypes { ACCOUNTANT = 'ACCOUNTANT', ENG...
38,225
https://github.com/Raven-sfl/learning-laravel-5/blob/master/resources/views/articles/index.blade.php
Github Open Source
Open Source
MIT
null
learning-laravel-5
Raven-sfl
PHP
Code
58
411
@extends('layouts.app') {{--@section('title')--}} {{--{{$articles->meta_title}} / Агентство недвижимости в Крыму - Top-City--}} {{--@stop--}} {{--@section('description')--}} {{--{{$articles->meta_description}}--}} {{--@stop--}} {{--@section('keywords')--}} {{--{{$articles->meta_keywords}}--}} {{--@stop--}} @section...
46,255
https://github.com/aliakbarRashidi/accelerate/blob/master/accelerate-core/src/main/java/co/pishfa/accelerate/async/ExecutorAsyncStrategy.java
Github Open Source
Open Source
Apache-2.0
2,017
accelerate
aliakbarRashidi
Java
Code
303
1,097
/** * */ package co.pishfa.accelerate.async; import co.pishfa.accelerate.cdi.CdiUtils; import co.pishfa.accelerate.schedule.ScheduleDelay; import co.pishfa.accelerate.schedule.ScheduleInterval; import co.pishfa.accelerate.schedule.ScheduleStart; import org.apache.deltaspike.cdise.api.ContextControl; import javax.en...
33,489
https://github.com/halmd-org/h5xx/blob/master/h5xx/dataspace/dataspace.hpp
Github Open Source
Open Source
BSD-3-Clause
null
h5xx
halmd-org
C++
Code
1,183
3,908
/* * Copyright © 2014 Felix Höfling * Copyright © 2014 Manuel Dibak * Copyright © 2014-2016 Klaus Reuter * All rights reserved. * * This file is part of h5xx — a C++ wrapper for the HDF5 library. * * This software may be modified and distributed under the terms of the * 3-clause BSD license. See acc...
41,528
https://github.com/htsai51/beginner_tutorials/blob/master/src/talker.cpp
Github Open Source
Open Source
MIT
2,017
beginner_tutorials
htsai51
C++
Code
364
800
/******************************************************************** * MIT License * * Copyright (c) 2017 Huei-Tzu Tsai * * 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 wi...
25,954
https://github.com/amolenaar/gaphor/blob/master/gaphor/plugins/autolayout/pydot.py
Github Open Source
Open Source
Apache-2.0
2,023
gaphor
amolenaar
Python
Code
870
3,578
from __future__ import annotations from functools import singledispatch from typing import Iterable, Iterator import pydot from gaphas.connector import ConnectionSink, Connector from gaphas.geometry import Point, Rect from gaphas.item import NW from gaphas.matrix import Matrix from gaphas.segment import Segment impo...
32,760
https://github.com/manojmo/pic_micro/blob/master/read_pin_durations.c
Github Open Source
Open Source
MIT
null
pic_micro
manojmo
C
Code
468
1,169
/* * File: read_pin_durations.c * Author: manoj * reading durations of ON/OFFs on a pin * Created on March 5, 2015, 6:01 PM */ #include <xc.h> #include <string.h> #include <stdint.h> #include <stdio.h> #include <conio.h> #include <generic_uart.h> // PLL with pre-scaler and post-scale options is a way to deriv...
30,113
https://github.com/kave-cc/java-cc-kave/blob/master/cc.kave.commons/src/test/java/cc/kave/commons/model/ssts/impl/visitor/ToStringVisitorTest.java
Github Open Source
Open Source
Apache-2.0
2,018
java-cc-kave
kave-cc
Java
Code
198
515
/** * Copyright 2016 Technische Universität Darmstadt * * 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...
36,631
https://github.com/Hakeemmidan/OSUChat/blob/master/app/channels/chat_channel.rb
Github Open Source
Open Source
MIT
2,020
OSUChat
Hakeemmidan
Ruby
Code
67
261
class ChatChannel < ApplicationCable::Channel def subscribed stream_for 'chat_channel' end def speak(data) message = Message.create( body: data['message']['body'], author_id: data['message']['authorId'], author_username: data['message']['authorUsername']) socket = { message: message...
19,830
https://github.com/OpenTOSCA/ui/blob/master/src/app/application-management/application-instance-detail/application-instance-detail-resolver.service.ts
Github Open Source
Open Source
Apache-2.0, BSD-3-Clause, MIT, OFL-1.1, EPL-1.0, EPL-2.0
2,023
ui
OpenTOSCA
TypeScript
Code
151
419
/* * Copyright (c) 2018 University of Stuttgart. * * See the NOTICE file(s) distributed with this work for additional * information regarding copyright ownership. * * This program and the accompanying materials are made available under the * terms of the Eclipse Public License 2.0 which is available at * http:/...
24,905
https://github.com/PacktPublishing/Clojure-Programming-Cookbook/blob/master/Chapter 05 Code/clojure-scala/src/scala/chapter05/Main.scala
Github Open Source
Open Source
MIT
2,021
Clojure-Programming-Cookbook
PacktPublishing
Scala
Code
59
133
package chapter05 object Main { def hello(txt: String) = { "hello from Scala: " + txt + " !" } } class Calculation { def factorial(n: BigInt): BigInt = { if (n <= 1) 1 else n * factorial(n - 1) } def add(a:Int, b:Int):Int = a + b } class MyTuple { def tuple(x:Int, y:Int) = (x,y) }
31,996
https://github.com/llfrometa89/tagless-final-styles/blob/master/build.sbt
Github Open Source
Open Source
MIT
2,021
tagless-final-styles
llfrometa89
Scala
Code
76
319
name := "tagless-final-style" version := "0.1" scalaVersion := "2.12.8" lazy val V = new { val cats = "1.5.0" val catsEffect = "1.0.0" val logger4s = "0.3.1" val scalatest = "3.0.0" val monocleVersion = "1.5.0" val paradiseVe...
7,144
https://github.com/compumike08/GitHub_Status_API_GUI/blob/master/src/styles/main.scss
Github Open Source
Open Source
MIT
2,017
GitHub_Status_API_GUI
compumike08
SCSS
Code
85
340
$BS_SM_MIN_WIDTH: 768px; $BS_MD_MIN_WIDTH: 992px; $BS_LG_MIN_WIDTH: 1200px; $BS_XS_MAX_WIDTH: 767px; $BS_SM_MAX_WIDTH: 991px; $BS_MD_MAX_WIDTH: 1199px; //Panel Formatting .panel > .panel-heading { @extend .bold; font-size: 16px; } .panel > .panel-heading.panel-heading-small { font-size: 14px; } .panel .panel....
22,167
https://github.com/mod-john/ionic-atom-plugin/blob/master/snippets/range.cson
Github Open Source
Open Source
MIT
2,018
ionic-atom-plugin
mod-john
CoffeeScript
Code
208
976
".text.html": 'Range': 'prefix':'ionic-css-range' 'body' : """ <div class="range"> <i class="icon ion-ios7-ionic-outline"></i> <input type="range" name="${1:name}"> <i class="icon ion-ionic"></i> </div> """ 'Range Light Theme': 'prefix':'ionic-css-ra...
2,406
https://github.com/bonventre/Offline/blob/master/GeomPrimitives/inc/ExtrudedSolid.hh
Github Open Source
Open Source
Apache-2.0
2,021
Offline
bonventre
C++
Code
110
439
#ifndef EXTRUDEDSOLID_HH #define EXTRUDEDSOLID_HH #include <vector> #include "CLHEP/Vector/ThreeVector.h" #include "CLHEP/Vector/TwoVector.h" namespace mu2e { class ExtrudedSolid { public: ExtrudedSolid() : yHalfThickness_() {} ExtrudedSolid( const std::string& name, const std::string& mat, C...
6,974
https://github.com/MallikarjunTirlapur/JavaCard-Binary-Parser/blob/master/capParser/ConstantPool.py
Github Open Source
Open Source
MIT
null
JavaCard-Binary-Parser
MallikarjunTirlapur
Python
Code
587
1,972
# -*- coding: utf-8 -*- """ Created on Tue Apr 23 10:51:46 2019 @author: Mallikarjun Tirlapur """ ##todo: dont return length, this info is not important from MyUtil import Util class ConstantPoolComp: def __init__(self): self.binData = 0 self.constantPoolTable = dict() def setBinaD...
51,701
https://github.com/luizcelso80/trabalhoPhp/blob/master/js/teste.php
Github Open Source
Open Source
MIT
2,017
trabalhoPhp
luizcelso80
PHP
Code
6
27
<?php if(isset($_POST['nome'])){ return $_POST['nome']; } ?>
18,018
https://github.com/plume-design/opensync/blob/master/src/vpnm/inc/vpnm.h
Github Open Source
Open Source
BSD-3-Clause, BSD-2-Clause
2,023
opensync
plume-design
C
Code
690
1,326
/* Copyright (c) 2015, Plume Design Inc. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the...
10,438
https://github.com/KarolNowakk/dietapp/blob/master/app/Http/Controllers/ProductController.php
Github Open Source
Open Source
MIT
null
dietapp
KarolNowakk
PHP
Code
167
606
<?php namespace App\Http\Controllers; use App\Product; use Illuminate\Http\Request; //use App\Http\Request; use App\Http\Resources\Product as ProductResource; class ProductController extends Controller { /** * Display a listing of the resource. * * @return \Illuminate\Http\Response */ pub...
54,183
https://github.com/ttc0702/shiguang/blob/master/pages/book_detail/components/info/info.js
Github Open Source
Open Source
MIT
null
shiguang
ttc0702
JavaScript
Code
27
104
// pages/book_detail/components/info/info.js Component({ /** * 组件的属性列表 */ properties: { detail: Object }, /** * 组件的初始数据 */ data: { }, /** * 组件的方法列表 */ methods: { } })
31,548
https://github.com/CarloSucameli/Openfast-noise/blob/master/modules/aerodyn/src/AeroAcoustics/TNO/oldtno/qk61.f90
Github Open Source
Open Source
Apache-2.0
null
Openfast-noise
CarloSucameli
null
Spoken
951
3,430
subroutine qk61 ( f, a, b, result, abserr, resabs, resasc ) !*****************************************************************************80 ! !! QK61 carries out a 61 point Gauss-Kronrod quadrature rule. ! ! Discussion: ! ! This routine approximates ! I = integral ( A <= X <= B ) F(X) dx ! with an error ...
43,601
https://github.com/jsyspk/imap/blob/master/lib/mail-box.php
Github Open Source
Open Source
MIT
null
imap
jsyspk
PHP
Code
19
69
<?php declare(strict_types=1); namespace J\Imap; class MailBox { private $mailBox; public function __construct(string $mailBoxName) { $this->mailBox = $mailBoxName; } }
44,106
https://github.com/Sharma117555448/enpm808x_inspection_robot/blob/master/build/CMakeFiles/enpm808x_inspection_robot_generate_messages_lisp.dir/cmake_clean.cmake
Github Open Source
Open Source
MIT
null
enpm808x_inspection_robot
Sharma117555448
CMake
Code
19
221
file(REMOVE_RECURSE "CMakeFiles/enpm808x_inspection_robot_generate_messages_lisp" "devel/share/common-lisp/ros/enpm808x_inspection_robot/msg/array.lisp" "devel/share/common-lisp/ros/enpm808x_inspection_robot/msg/location.lisp" "devel/share/common-lisp/ros/enpm808x_inspection_robot/msg/flag.lisp" "devel/share/...
45,578
https://github.com/qiuchili/ggnn_graph_classification/blob/master/program_data/JavaProgramData/37/1468.java
Github Open Source
Open Source
MIT
2,018
ggnn_graph_classification
qiuchili
Java
Code
125
422
package <missing>; public class GlobalMembers { /* * 1.cpp * * Created on: 2012-11-25 * Author: Administrator */ public static int Main() { int t; int i; int j = 0; int[] b = new int[125]; String a = new String(new char[100050]); t = Integer.parseInt(ConsoleInput.readToWhiteSpace(true));...
45,284
https://github.com/malloryerik/rfx-stack/blob/master/src/shared/components/AuthModal.jsx
Github Open Source
Open Source
MIT
2,016
rfx-stack
malloryerik
JavaScript
Code
373
1,458
import React from 'react'; import { connect } from '../state/context'; import { dispatch } from '../state/dispatcher'; import cx from 'classnames'; // components import Modal from 'react-modal'; // styles const buttonGroup = cx('btn', 'left', 'x-group-item'); const authSection = cx('center', 'fit', 'col-8', 'px2', 'm...
9,229
https://github.com/staltz/kotlin/blob/master/compiler/container/tests/org/jetbrains/kotlin/container/tests/ComponentContainerTest.kt
Github Open Source
Open Source
Apache-2.0
2,015
kotlin
staltz
Kotlin
Code
500
1,518
/* * Copyright 2010-2015 JetBrains s.r.o. * * 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 agre...
49,912
https://github.com/swordev/suid/blob/master/packages/icons-material/lib/RememberMeTwoTone.jsx
Github Open Source
Open Source
MIT
2,023
suid
swordev
JavaScript
Code
63
560
import $ from "./utils/createSvgIcon"; export default $( () => ( <> <g> <path d="M0,0h24v24H0V0z" fill="none" /> </g> <g> <g> <rect height="1" opacity=".3" width="10" x="7" y="20" /> <path d="M7,17.52V18h10v-0.48C15.53,16.53,13.78,16,12,16S8.47,16...
23,167
https://github.com/pygamma-mrs/gamma/blob/master/src/Matrix/n_matrix.cc
Github Open Source
Open Source
BSD-3-Clause
2,022
gamma
pygamma-mrs
C++
Code
20,000
46,211
/* n_matrix.cc **************************************************-*-c++-*- ** ** ** G A M M A ** ** ** ** General Matrix Implementation ** ** ** ** Copyright (c) 1990, 1997 ** ** Tilo Levante, Scott A. Smith ** ** Eidgenoessische Technische Hochschule ** ** Labor fuer physikalische Chemie ** ** 8092 Zuerich / Switzerla...
43,848
https://github.com/idiazroncero/spice-must-flow/blob/master/vue/src/scss/settings.scss
Github Open Source
Open Source
MIT
null
spice-must-flow
idiazroncero
SCSS
Code
25
122
$rojo: #a01714; $rojo-oscuro: #600F0C; $negro: #000; $blanco:#fff; $verde: #7EE39F; $rosa: #DA1C5C; $base-line-height: 1.5; $gutter: 1.5rem; $mobile: 320px; $small: 480px; $medium: 760px; $large: 900px; $screen: 1200px;
45,688
https://github.com/pmodels/mpe/blob/master/src/slog2sdk/src/viewer/common/LabeledFloatSlider.java
Github Open Source
Open Source
mpich2, LicenseRef-scancode-other-permissive
2,015
mpe
pmodels
Java
Code
455
1,319
/* * (C) 2001 by Argonne National Laboratory * See COPYRIGHT in top-level directory. */ /* * @author Anthony Chan */ package viewer.common; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.awt.Component; import javax.swing.JLabel; import javax.swing.JSlider; import ja...
51,065
https://github.com/asapbuddy/neovim-flake/blob/master/lib/neovimBuilder.nix
Github Open Source
Open Source
MIT
2,022
neovim-flake
asapbuddy
null
Spoken
65
212
{ pkgs, lib ? pkgs.lib, config, ...}: let neovimPlugins = pkgs.neovimPlugins; vimOptions = lib.evalModules { modules = [ { imports = [../modules]; } config ]; specialArgs = { inherit pkgs; }; }; vim = vimOptions.config.vim; in pkgs.wrapNeovim pkgs.neovim-nightly { viAli...
32,033
https://github.com/mxhieu/test/blob/master/application/views/admin/product/add.php
Github Open Source
Open Source
MIT
null
test
mxhieu
PHP
Code
392
2,176
<div class="graphs"> <h3 class="blank1">Thêm thuốc</h3> <p> <a style="margin:5px" href="<?echo admin_url("product/add")?>" class="btn btn-success">Thêm danh mục</a> <a style="margin:5px 0px" href="<?echo admin_url("product")?>" class="btn btn-success">Quản lý chung</a> </p> <form role="form" action="" method="post"...
18,379
https://github.com/Kotkovvv/horror/blob/master/documentation/html/search/all_4.js
Github Open Source
Open Source
MIT
null
horror
Kotkovvv
JavaScript
Code
5
116
var searchData= [ ['exi_23',['exi',['../_g_u_i_8hpp.html#a9baed6916c10c19ece99add0783cb34b',1,'exi():&#160;GUI.hpp'],['../textures_8hpp.html#a96b56b9b10f9855b8d372b4f4ea2d234',1,'exi():&#160;textures.hpp']]] ];
42,782
https://github.com/theodorepringle/freecell-pro-0fc-deals/blob/master/patsolve-solutions/7563478.sol
Github Open Source
Open Source
MIT
2,019
freecell-pro-0fc-deals
theodorepringle
Solidity
Code
616
1,044
AD out 2D out AC out 3D out 7H to 8C 4H to 5C 6H to 7S 6C to 7H TS to JH AH out 4H to empty pile 5C to 6H 7C to 8H AS out 5H to 6C 4H to 5C TS to empty pile JH to QS 9S to TD 7C to 8D TS to JH 4H to empty pile 7C to 8H 8D to 9S 5C to empty pile 6H to 7C 5C to 6H 8D to empty pile 4H to 5C 9S to empty pile 8D to 9S 7S to...
19,353
https://github.com/AdamZink/frequency-finder/blob/master/finder/candidate.py
Github Open Source
Open Source
MIT
null
frequency-finder
AdamZink
Python
Code
197
973
import json from signal_util import generate_signal_from_obj, generate_bucketed_signal from finder.fitness.frequency.values import get_frequency_value_scores from finder.fitness.frequency.count import get_frequency_count_score import numpy as np class Candidate: def __init__(self): self.frequencies = [] ...
19,688
https://github.com/leginee/netbeans/blob/master/cnd/cnd.repository/test/unit/src/org/netbeans/modules/cnd/repository/impl/ReopenRepositoryValidationFinal.java
Github Open Source
Open Source
Apache-2.0
null
netbeans
leginee
Java
Code
405
782
/* * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. * * Copyright 2011 Oracle and/or its affiliates. All rights reserved. * * Oracle and Java are registered trademarks of Oracle and/or its affiliates. * Other names may be trademarks of their respective owners. * * The contents of this file are subject...
39,964
https://github.com/bluetsys/MemMapCache/blob/master/MemMapCache.sln
Github Open Source
Open Source
Apache-2.0
2,010
MemMapCache
bluetsys
null
Spoken
234
1,848
 Microsoft Visual Studio Solution File, Format Version 11.00 # Visual Studio 2010 Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MemMapCache", "MemMapCache\MemMapCache.csproj", "{534BD00C-F32E-4BE7-8152-1E4B446E7052}" EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MemMapCacheLib", "MemMapCacheLi...
49,770
https://github.com/binzcodes/firebase-module/blob/master/docs/nuxt.config.js
Github Open Source
Open Source
MIT
2,022
firebase-module
binzcodes
JavaScript
Code
12
31
import { withDocus } from 'docus' export default withDocus({ rootDir: __dirname, })
1,932
https://github.com/amazon-research/multimodal-neuralslam/blob/master/ET/alfred/gen/constants.py
Github Open Source
Open Source
MIT-0
2,022
multimodal-neuralslam
amazon-research
Python
Code
2,082
10,818
import os from collections import OrderedDict ######################################################################################################################## # General Settings DEBUG = True EVAL = False ET_ROOT = os.environ['ET_ROOT'] ET_DATA = os.environ['ET_DATA'] ET_LOGS = os.environ['ET_LOGS'] RECORD_VI...
47,489
https://github.com/Gab-Metzger/PiOS/blob/master/source/main.s
Github Open Source
Open Source
MIT
2,014
PiOS
Gab-Metzger
Unix Assembly
Code
52
212
.section .init .globl _start _start: ldr r0,=0x20200000 loop$: mov r1,#1 lsl r1,#18 str r1,[r0,#4] mov r1,#1 lsl r1,#16 str r1,[r0,#40] wait1$: mov r2,#0x3F0000 sub r2,#1 cmp r2,#0 bne wait1$ mov r1,#1 lsl r1,#18 str r1,[r0,#4] mov r1,#1 lsl r1,#16 str r1,[r0,#28] wait2$: mov r2,#0x3F0000 sub r2,#1 cmp r2,#0 bne wait2...
29,379
https://github.com/hyj1991/aliyun-openapi-nodejs-sdk/blob/master/Yundun-ds-2018-08-22/lib/client.js
Github Open Source
Open Source
MIT
2,022
aliyun-openapi-nodejs-sdk
hyj1991
JavaScript
Code
1,566
3,899
'use strict'; const { RPCClient } = require('@alicloud/pop-core'); function hasOwnProperty(obj, key) { return Object.prototype.hasOwnProperty.call(obj, key); } class Client extends RPCClient { constructor(config) { config.apiVersion = '2018-08-22'; super(config); } /** * @param {String} SourceIp...
45,852
https://github.com/bayuindra091191GMG/carefast/blob/master/app/Transformer/ProjectActivityTransformer.php
Github Open Source
Open Source
MIT
null
carefast
bayuindra091191GMG
PHP
Code
168
742
<?php namespace App\Transformer; use App\Models\Action; use App\Models\Employee; use App\Models\Project; use App\Models\ProjectActivitiesDetail; use App\Models\ProjectActivitiesHeader; use App\Models\ProjectActivity; use App\Models\ProjectEmployee; use App\Models\ProjectShift; use App\Models\Schedule; use Carbon\Ca...
40,245
https://github.com/EnderDeveloper/AdvancedRocketry/blob/master/src/main/java/zmaster587/advancedRocketry/api/StatsRocket.java
Github Open Source
Open Source
MIT
null
AdvancedRocketry
EnderDeveloper
Java
Code
1,771
7,299
package zmaster587.advancedRocketry.api; import net.minecraft.nbt.CompoundNBT; import net.minecraft.nbt.FloatNBT; import net.minecraft.nbt.IntNBT; import net.minecraft.util.ResourceLocation; import zmaster587.advancedRocketry.api.fuel.FuelRegistry; import zmaster587.advancedRocketry.api.fuel.FuelRegistry.FuelType; imp...
33,269
https://github.com/lenevor/appstarter/blob/master/app/Providers/AppServiceProvider.php
Github Open Source
Open Source
BSD-3-Clause
2,021
appstarter
lenevor
PHP
Code
180
376
<?php /** * Lenevor Framework * * LICENSE * * This source file is subject to the new BSD license that is bundled * with this package in the file license.md. * It is also available through the world-wide-web at this URL: * https://lenevor.com/license * If you did not receive a copy of the license and are unab...
48,125
https://github.com/Azeirah/zs-flash/blob/master/main.c
Github Open Source
Open Source
CC0-1.0
2,021
zs-flash
Azeirah
C
Code
179
580
#include <stdio.h> #include <stdlib.h> #include "errors.h" #include "flash_io.h" #include "zs_data.h" int main(int argc, char* argv[]) { long file_size; unsigned int section_ID; register int i; if (argc < 2) { my_error(ERR_FLASHRAM_LOCATION_UNKNOWN); return ERR_FLASHRAM_LOCATION_UNKNO...
37,150
https://github.com/1Crazymoney/wasmtime/blob/master/cranelift/filetests/src/runtest_environment.rs
Github Open Source
Open Source
LLVM-exception, Apache-2.0
2,021
wasmtime
1Crazymoney
Rust
Code
379
1,055
use anyhow::anyhow; use cranelift_codegen::data_value::DataValue; use cranelift_codegen::ir::Type; use cranelift_reader::parse_heap_command; use cranelift_reader::{Comment, HeapCommand}; /// Stores info about the expected environment for a test function. #[derive(Debug, Clone)] pub struct RuntestEnvironment { pub ...
48,611
https://github.com/deepcoder42/mongo-data/blob/master/test/unit/mongo_db_data/run_program.py
Github Open Source
Open Source
MIT
2,021
mongo-data
deepcoder42
Python
Code
512
2,579
#!/usr/bin/python # Classification (U) """Program: run_program.py Description: Unit testing of run_program in mongo_db_data.py. Usage: test/unit/mongo_db_data/run_program.py Arguments: """ # Libraries and Global Variables # Standard import sys import os if sys.version_info < (2, 7): im...
48,367
https://github.com/acuza/spring-boot-training/blob/master/d04/d04s01-async-processing/d04s01e01-async-presentation-layer/src/main/java/net/safedata/springboot/training/d04/s01/service/ProductService.java
Github Open Source
Open Source
Apache-2.0
2,020
spring-boot-training
acuza
Java
Code
58
227
package net.safedata.springboot.training.d04.s01.service; import net.safedata.springboot.training.d04.s01.model.Product; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.stereotype.Service; @Service public class ProductService { private static final Logger LOGGER = LoggerFactor...
26,684
https://github.com/corvus-dotnet/Corvus.DotLiquidAsync/blob/master/Solutions/Corvus.DotLiquidAsync/DotLiquid/FileSystems/EmbeddedFileSystem.cs
Github Open Source
Open Source
Apache-2.0, LicenseRef-scancode-unknown-license-reference, MS-PL
2,023
Corvus.DotLiquidAsync
corvus-dotnet
C#
Code
223
697
// <copyright file="EmbeddedFileSystem.cs" company="Endjin Limited"> // Copyright (c) Endjin Limited. All rights reserved. // </copyright> // Derived from code under the Apache 2 License from https://github.com/dotliquid/dotliquid namespace DotLiquid.FileSystems { using System.IO; using System.Text.RegularExpr...
47,732
https://github.com/Wavesonics/RingMyPhoneAndroid/blob/master/RingMyPhone/src/main/java/com/darkrockstudios/apps/ringmyphone/AboutFragment.java
Github Open Source
Open Source
MIT
2,015
RingMyPhoneAndroid
Wavesonics
Java
Code
241
908
package com.darkrockstudios.apps.ringmyphone; import android.app.Activity; import android.app.Dialog; import android.app.DialogFragment; import android.content.Intent; import android.content.pm.PackageInfo; import android.content.pm.PackageManager; import android.net.Uri; import android.os.Bundle; import android.text....
11,095
https://github.com/LukaszNowakPL/react-bootstrap-tools/blob/master/src/lib/components/DescribedComponent/functions.ts
Github Open Source
Open Source
MIT
null
react-bootstrap-tools
LukaszNowakPL
TypeScript
Code
145
365
import { DescribedComponentProps, OverlayTriggerProps, TooltipProps } from "./interfaces"; import config from "./config"; /** * Returns props used by OverlayTrigger component * @param props */ export const getOverlayTriggerProps = (props: DescribedComponentProps) => { const overlayTriggerProps: OverlayTrigg...
4,884
https://github.com/hesusruiz/Canispy/blob/master/app/static/assets/Page404.e0ef746d.js
Github Open Source
Open Source
Apache-2.0
null
Canispy
hesusruiz
JavaScript
Code
21
136
import{r as s,A as r}from"./app.a68c96d4.js";import"./vendor.f8864ac5.js";s("Page404",class extends r{constructor(e){super(e)}enter(e){let t=this.html` <div class="w3-container"> <h1>The requested page does not exist!: ${e}</h1> </div> `;this.render(t)}}); //# sourceMappingURL=Page40...
47,387
https://github.com/0xc22b/thai-accounting/blob/master/src/gwt/client/ui/CustomIntBox.java
Github Open Source
Open Source
MIT
2,013
thai-accounting
0xc22b
Java
Code
153
538
package gwt.client.ui; import gwt.shared.InvalidValueException; import com.google.gwt.event.dom.client.KeyUpEvent; import com.google.gwt.event.dom.client.KeyUpHandler; import com.google.gwt.user.client.ui.TextBox; public class CustomIntBox extends TextBox { public interface CustomIntBoxCallback { vo...
47,219
https://github.com/OlgaMinyaeva/jsonwire-grid/blob/master/jsonwire/jsonwire.go
Github Open Source
Open Source
MIT
2,022
jsonwire-grid
OlgaMinyaeva
Go
Code
209
597
package jsonwire import ( "encoding/json" ) // Message - common protocol message structure. type Message struct { SessionID string `json:"sessionId"` Status int `json:"status"` Value interface{} `json:"value"` } // NewSession - message structure for the creation of a new session type NewSessi...
31,654
https://github.com/catalinboja/cts-2021/blob/master/1087/Laborator10 - Chain si Command/src/ro/ase/csie/cts/g1087/dp/chain/ModulChatGlobal.java
Github Open Source
Open Source
MIT
2,022
cts-2021
catalinboja
Java
Code
40
184
package ro.ase.csie.cts.g1087.dp.chain; public class ModulChatGlobal extends NodChainAbstract{ public ModulChatGlobal() { super("Modul Chat Global"); } @Override public void procesareMesajChat(MesajChat mesaj) { if(mesaj.getDestinatie().isEmpty() || mesaj.getDestinatie().equals("@Everyone")) { System.out....
13,736
https://github.com/Mariefay/final-project/blob/master/components/UsersTab/UserPlaces.js
Github Open Source
Open Source
MIT
2,020
final-project
Mariefay
JavaScript
Code
261
917
import React from "react"; import { StyleSheet, Text, View, FlatList } from "react-native"; import StarRating from "react-native-star-rating"; import Spinner from "../Spinner"; import * as api from "../../utils/utils"; import BeeSafeButton from "../BeeSafeButton"; import { connect } from "react-redux"; class UserPlace...
48,157
https://github.com/Galazka/lab-c-14.11/blob/master/1.c
Github Open Source
Open Source
MIT
null
lab-c-14.11
Galazka
C
Code
24
58
#include <stdio.h> int main() { int y = 1; while ( y <= 2010) { printf("%d\n", y); y = y * 2; } }
12,079
https://github.com/wxstars/arcanist/blob/master/src/lint/linter/xhpast/rules/ArcanistClosingDeclarationParenthesesXHPASTLinterRule.php
Github Open Source
Open Source
Apache-2.0
null
arcanist
wxstars
PHP
Code
87
366
<?php final class ArcanistClosingDeclarationParenthesesXHPASTLinterRule extends ArcanistXHPASTLinterRule { const ID = 38; public function getLintName() { return pht('Declaration Formatting'); } public function getLintSeverity() { return ArcanistLintSeverity::SEVERITY_WARNING; } public functio...
14,826
https://github.com/EduardoSP6/laravel-nextjs-frontend/blob/master/src/pages/index.tsx
Github Open Source
Open Source
MIT
null
laravel-nextjs-frontend
EduardoSP6
TypeScript
Code
56
151
import React from 'react' import Head from 'next/head' import NextLogo from '../assets/nextjs.svg' import { Container } from '../styles/pages/Home' const Home: React.FC = () => { return ( <Container> <Head> <title>Home Page</title> </Head> <NextLogo /> <h1>Wellcome to Nex...
53,360
https://github.com/jotamaster/AppLaravel/blob/master/public/css/style.scss
Github Open Source
Open Source
MIT
2,019
AppLaravel
jotamaster
SCSS
Code
241
920
*{ margin: 0; padding: 0; } body{ background: url(http://eskipaper.com/images/mountain-landscape-2.jpg); font-family: 'PT Sans'; } button:hover{ cursor: pointer; } .hide{ display: none; } .wrapper{ background: rgba(0,0,0,0.6); position: relative; width: 800px; height: 300px; margin: 0 auto; marg...
53,232
https://github.com/AAI-USZ/FixJS/blob/master/input/50/after/5be4b879f0b7dabfd7178986e8a913286db5ce4e_0_1.js
Github Open Source
Open Source
MIT
2,022
FixJS
AAI-USZ
JavaScript
Code
7
25
function(newValue) { return new Context(newValue, this.doc); }
3,117
https://github.com/g2vinay/azure-sdk-for-java/blob/master/sdk/spring/azure-spring-boot/src/main/java/com/azure/spring/autoconfigure/b2c/AADB2CAutoConfiguration.java
Github Open Source
Open Source
LicenseRef-scancode-generic-cla, MIT, LicenseRef-scancode-warranty-disclaimer, BSD-3-Clause, CC0-1.0, Apache-2.0, LicenseRef-scancode-public-domain, BSD-2-Clause, LicenseRef-scancode-unknown-license-reference, LGPL-2.1-or-later
2,021
azure-sdk-for-java
g2vinay
Java
Code
141
619
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. package com.azure.spring.autoconfigure.b2c; import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean; import org.springframework.boot.autoconfigure.condition.ConditionalOnResource; import org.springf...
46,457
https://github.com/zhengangyang/joyplus-tv/blob/master/joytv/src/com/joyplus/tv/Main1.java
Github Open Source
Open Source
BSD-3-Clause
2,013
joyplus-tv
zhengangyang
Java
Code
4,405
24,022
package com.joyplus.tv; import java.io.IOException; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; import org.json.JSONObject; import android.app.Activity; import android.app.AlertDialog; import android.app.Dialog; import android.content.BroadcastReceiver; import a...
43,607
https://github.com/ride-austin/android/blob/master/app/src/driver/java/com/rideaustin/ui/drawer/documents/license/UpdateLicenseViewModel.java
Github Open Source
Open Source
MIT
2,021
android
ride-austin
Java
Code
381
1,634
package com.rideaustin.ui.drawer.documents.license; import android.support.annotation.NonNull; import android.support.annotation.Nullable; import android.text.TextUtils; import com.rideaustin.App; import com.rideaustin.api.model.Document; import com.rideaustin.api.model.driver.Driver; import com.rideaustin.api.model....
42,428