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/basitol/VesiCash-Senior-PHP-Developer-Take-Home-Assessment/blob/master/app/Http/Controllers/EscrowTransactionsController.php
Github Open Source
Open Source
MIT
2,019
VesiCash-Senior-PHP-Developer-Take-Home-Assessment
basitol
PHP
Code
387
1,226
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use Illuminate\Support\Facades\{Validator, DB}; use App\EscrowTransactions; class EscrowTransactionsController extends Controller { public function all() { return app('db')->select("SELECT * FROM escrow_transactions"); } /* *...
2,984
https://github.com/ludovicc/testng-debian/blob/master/test/src/test/jar/JarTest.java
Github Open Source
Open Source
Apache-2.0
2,009
testng-debian
ludovicc
Java
Code
121
439
package test.jar; import org.testng.Assert; import org.testng.TestListenerAdapter; import org.testng.TestNG; import org.testng.annotations.Test; import test.SimpleBaseTest; import java.io.File; public class JarTest extends SimpleBaseTest { private TestListenerAdapter init(String jarFile) { TestNG tng = create...
16,492
https://github.com/Chgv99/Portal2Bot/blob/master/src/utils/structures/Entry.js
Github Open Source
Open Source
MIT
null
Portal2Bot
Chgv99
JavaScript
Code
25
74
const Message = require('../events/message.js'); const StateManager = require('../../utils/StateManager'); const { MessageEmbed } = require('discord.js'); const parseSubmission = require('../SubmissionParser.js'); module.exports = function (client, message) { }
45,308
https://github.com/jfallaire/generator-ps-boilerplate-project/blob/master/generators/simple/templates/.gitignore
Github Open Source
Open Source
MIT
2,020
generator-ps-boilerplate-project
jfallaire
Ignore List
Code
17
72
node_modules bin dist .vscode/setting.json .env *.key *.csr *.crt .DS_Store .sfdx .forceCode _build *.TASSE resource-bundles *.resource iow-jekyll platform-client.log
35,388
https://github.com/magicfoo/cycles/blob/master/src/device/device.cpp
Github Open Source
Open Source
Apache-2.0
null
cycles
magicfoo
C++
Code
1,238
4,696
/* * Copyright 2011-2013 Blender Foundation * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or ag...
50,452
https://github.com/sharathkmr/Interview-Assessments/blob/master/src/SmoothArray.java
Github Open Source
Open Source
MIT
null
Interview-Assessments
sharathkmr
Java
Code
93
296
import java.io.IOException; import java.util.Arrays; import java.util.Scanner; public class SmoothArray { public static void main(String[] args) throws IOException { Scanner sc = new Scanner(System.in); int n = Integer.parseInt(sc.nextLine()); int input[] = new int[n]; for (int i = 0; i < n; i++) { input[...
10,105
https://github.com/GordonWang/spark-ec2/blob/master/ephemeral-hdfs/init.sh
Github Open Source
Open Source
Apache-2.0
2,015
spark-ec2
GordonWang
Shell
Code
93
498
#!/bin/bash pushd /root > /dev/null if [ -d "ephemeral-hdfs" ]; then echo "Ephemeral HDFS seems to be installed. Exiting." return 0 fi case "$HADOOP_MAJOR_VERSION" in 1) wget http://s3.amazonaws.com/spark-related-packages/hadoop-1.0.4.tar.gz echo "Unpacking Hadoop" tar xvzf hadoop-1.0.4.tar.gz > /t...
12,958
https://github.com/sambaas/Up3date/blob/master/core/prop.py
Github Open Source
Open Source
MIT
2,022
Up3date
sambaas
Python
Code
28
188
import bpy class UP3DATE_CityjsonfyProperties(bpy.types.PropertyGroup): LOD: bpy.props.IntProperty(name="LOD", default=2) LOD_version: bpy.props.IntProperty(name="LODSubversion", default=0) feature_type: bpy.props.StringProperty(name="feature_type", default="Building") geometry_type: bpy.props.EnumProp...
46,936
https://github.com/jcstr/ISIC-2010-224/blob/master/SDC1008/funcline.cpp
Github Open Source
Open Source
MIT
2,022
ISIC-2010-224
jcstr
C++
Code
87
173
// Funcion inline // hacer el codigo mas eficiente // parametro por referencia*** // inline void inc(int '''''&i''''') { ++i; } // parametro por argumento // inline int select('''int a, int b''') { return a > b ? a : b; } # include <cstdio> inline void inc(int &i) { ++i; } inline int select(int a, int b) { return a...
34,683
https://github.com/RealVincentBerthet/Kubic/blob/master/Kubic/Assets/Scenes/Level1/Scripts/GameController.cs
Github Open Source
Open Source
Apache-2.0
null
Kubic
RealVincentBerthet
C#
Code
188
635
using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; using UnityEngine.AI; using UnityEngine.SceneManagement; public class GameController : MonoBehaviour { public Camera cam; public Ennemy_AI[] tab_ai; public Canvas myCanvas; private Vector3 pos_cam;...
51,583
https://github.com/leuher/admin/blob/master/application/admin/lang/zh-cn/data/giftconfig.php
Github Open Source
Open Source
Apache-2.0
2,018
admin
leuher
PHP
Code
34
151
<?php return [ 'Id' => 'ID', 'Name' => '名称', 'Icon' => '图标', 'Platformprice' => '平台价格', 'Realprice' => '实际价格', 'Status' => '状态', 'Pid' => '平台主键', 'Platform.id' => 'ID', 'Platform.name' => '平台名称', 'Platform.status' => '状态' ];
37,982
https://github.com/Cingozzz/Distribution/blob/master/a/ansi-fragments/src/main/scala/typings/ansiFragments/ifragmentMod.scala
Github Open Source
Open Source
MIT
2,021
Distribution
Cingozzz
Scala
Code
64
209
package typings.ansiFragments import org.scalablytyped.runtime.StObject import scala.scalajs.js import scala.scalajs.js.annotation.{JSGlobalScope, JSGlobal, JSImport, JSName, JSBracketAccess} object ifragmentMod { trait IFragment extends StObject { def build(): String } object IFragment { i...
13,129
https://github.com/personal-site/blog/blob/master/assets/styles/components/_social.scss
Github Open Source
Open Source
MIT
2,019
blog
personal-site
SCSS
Code
96
272
// ----------------------------------------------------------------------------- // This file contains all styles related to the SOCIAL component. // ----------------------------------------------------------------------------- #social { text-align: center; padding: 0; a { color: #cecece; } ...
5,186
https://github.com/ecsark/care-advisor/blob/master/app/messages/MCheckup.java
Github Open Source
Open Source
Apache-2.0
null
care-advisor
ecsark
Java
Code
43
173
package messages; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; /** * User: ecsark * Date: 12/31/14 * Time: 02:34 */ @JsonInclude(JsonInclude.Include.NON_NULL) public class MCheckup { @JsonProperty("name") public String name; @JsonProperty...
28,639
https://github.com/nicmaes/RvtBcfApiExampleClient/blob/master/RvtBcfApiExampleClient/OAuthModule.cs
Github Open Source
Open Source
MIT
null
RvtBcfApiExampleClient
nicmaes
C#
Code
77
278
using Kayak.Framework; using System; using System.Threading; namespace RvtBcfApiExampleClient { public class OAuthModule : KayakService { public static ServerLoginUI ServerLoginUIObj { get; set; } private static SynchronizationContext m_SyncContext; static OAuthModule() { m_SyncConte...
22,503
https://github.com/danuta-terraria/ZenithItems/blob/master/ZenithItems.cs
Github Open Source
Open Source
CC0-1.0
null
ZenithItems
danuta-terraria
C#
Code
13
33
using Terraria.ModLoader; namespace ZenithItems { public class ZenithItems : Mod { } }
28,106
https://github.com/frozar/roughcljs/blob/master/shadow-cljs.edn
Github Open Source
Open Source
MIT
null
roughcljs
frozar
Edoid
Code
50
234
;; shadow-cljs configuration {:source-paths ["src/main" "src/test" "src/dev"] :dependencies [[hiccup "1.0.5"] [hickory "0.7.1"] [com.rpl/specter "1.1.3"] ;; development dependancies [reagent "0.10.0"] [reagent-utils "0.3.3"] ] :builds { :ci {:target :karma :output-to "target/ci.js" } ...
38,656
https://github.com/Sqazine/ComputeDuck/blob/master/cpp/Compiler.h
Github Open Source
Open Source
Apache-2.0
2,022
ComputeDuck
Sqazine
C
Code
173
585
#pragma once #include <vector> #include <string> #include "Ast.h" #include "Frame.h" #include "Object.h" enum ObjectState { INIT, READ, WRITE, STRUCT_READ, STRUCT_WRITE }; class Compiler { public: Compiler(); ~Compiler(); Frame Compile(std::vector<Stmt *> stmts); void ResetStatus(); private: void CompileS...
220
https://github.com/steve-calcott/lobjical-php-parser/blob/master/tests/ComparisonTest.php
Github Open Source
Open Source
Apache-2.0
null
lobjical-php-parser
steve-calcott
PHP
Code
291
1,259
<?php require_once __DIR__."/../vendor/autoload.php"; class comparisonTest extends PHPUnit_Framework_TestCase { /* Tests to be added: * getValueFromPath * */ public function testEquality () { $jsonStr = <<<jsonstr { "eq": { "property": "enabled", "value": true ...
23,511
https://github.com/seanpm2001/TXL_TAG/blob/master/translate.sh
Github Open Source
Open Source
BSD-3-Clause
2,017
TXL_TAG
seanpm2001
Shell
Code
377
737
# BSD 3-Clause License # # Copyright (c) 2017, Ali ElShakankiry # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # # * Redistributions of source code must retain the above copyright not...
31,027
https://github.com/hersh-kat/stocky-trading-chatbot/blob/master/frontend/server/db/parameters.js
Github Open Source
Open Source
MIT
2,020
stocky-trading-chatbot
hersh-kat
JavaScript
Code
261
878
const db = require('./db'); const logger = require('../util/logger'); function getExpressionParametersQuery(req, res, next) { logger.winston.info('parameters.getExpressionParametersQuery'); const expressionIds = req.query.expression_ids; var array_expressionIds = expressionIds.split(","); //Very hacky due to the...
49,313
https://github.com/amitpmloginworks/CordovaPlugin/blob/master/src/android/com/gttronics/ble/blelibrary/BleDeviceCallback.java
Github Open Source
Open Source
Apache-2.0
null
CordovaPlugin
amitpmloginworks
Java
Code
43
221
package com.gttronics.ble.blelibrary; import android.bluetooth.BluetoothGattCharacteristic; import android.nfc.Tag; import android.util.Log; public interface BleDeviceCallback { enum BLE_DEV_STATE { IDLE, CONNECTING, CONNECTED_NOT_SVC_RDY, DISCONNECTING, DISCONNECTED, CONNECTED_SVC_RDY, DLGE_META } ...
9,341
https://github.com/weijietong/noisepage/blob/master/sample_tpl/loop.tpl
Github Open Source
Open Source
MIT
2,022
noisepage
weijietong
null
Spoken
36
58
// Expected output: 45 fun main() -> int { var c = 0 for (var i = 0; i < 10; i = i + 1) { c = c + i } return c }
13,940
https://github.com/Bronuh/Bronhomunal-Redux/blob/master/RPGCore/Gameplay/Inventory.cs
Github Open Source
Open Source
MIT
null
Bronhomunal-Redux
Bronuh
C#
Code
107
321
using RPGCore.Entities; using System; using System.Collections.Generic; namespace RPGCore.Gameplay { [Serializable] public class Inventory { public List<Item> Items = new List<Item>(); public bool Limited = false; public bool Droppable = false; public int Size = 1; public bool PutItem(Item item) { ...
8,101
https://github.com/robertoles/spree_taxonomy_purpose/blob/master/app/overrides/admin/add_taxonomy_purpose_selector.rb
Github Open Source
Open Source
BSD-3-Clause
2,013
spree_taxonomy_purpose
robertoles
Ruby
Code
9
82
Deface::Override.new( virtual_path: "spree/admin/taxonomies/_form", partial: 'spree/admin/taxonomies/purpose_selector', insert_bottom: "[data-hook='admin_inside_taxonomy_form']", name: 'add_taxonomy_purpose_selector')
24,582
https://github.com/snake-biscuits/bsp_tool/blob/master/bsp_tool/branches/id_software/quake3.py
Github Open Source
Open Source
MIT
2,022
bsp_tool
snake-biscuits
Python
Code
1,060
3,059
# https://www.mralligator.com/q3/ # https://github.com/zturtleman/spearmint/blob/master/code/qcommon/bsp_q3.c import enum from typing import List import struct from .. import base from .. import shared FILE_MAGIC = b"IBSP" BSP_VERSION = 46 GAME_PATHS = ["Quake 3 Arena", "Quake Live", "Soldier of Fortune", ...
2,439
https://github.com/lwk205/hex/blob/master/src/datapost.f
Github Open Source
Open Source
MIT
2,016
hex
lwk205
null
Spoken
329
1,237
subroutine datapost(ix) !!! !!! parameter (nume=40000) !!! parameter (nume2=20000) !!! common/bk06/nprnt,mprint,itmpop,numelt,jprint,idump,locstr !!! common/bk17/dn1,dn2,nwebuf,ntime,numnp,neq,ibar,mthsol !!! common /stressflag/ ElemFractCode(nume),ElemDecayCount(nume) !!! common /crackline/ ncleav...
3,647
https://github.com/wisdark/pypykatz/blob/master/pypykatz/alsadecryptor/win_datatypes.py
Github Open Source
Open Source
MIT
2,022
pypykatz
wisdark
Python
Code
2,845
9,947
#!/usr/bin/env python3 # # Author: # Tamas Jos (@skelsec) # # https://msdn.microsoft.com/en-us/library/windows/desktop/aa383751(v=vs.85).aspx import enum class POINTER: def __init__(self): self.location = None self.value = None self.finaltype = None @staticmethod async def loadvalue(reader, finaltype = Non...
14,950
https://github.com/backwardn/bigslice/blob/master/sortio/reader.go
Github Open Source
Open Source
Apache-2.0
2,022
bigslice
backwardn
Go
Code
464
1,403
// Copyright 2018 GRAIL, Inc. All rights reserved. // Use of this source code is governed by the Apache 2.0 // license that can be found in the LICENSE file. package sortio import ( "container/heap" "context" "reflect" "github.com/grailbio/bigslice/frame" "github.com/grailbio/bigslice/internal/defaultsize" "gi...
13,227
https://github.com/anudeep26/rudix/blob/master/Ports/libintl/lion-stpncpy.patch
Github Open Source
Open Source
BSD-3-Clause
null
rudix
anudeep26
null
Spoken
43
157
--- gettext-tools/gnulib-lib/stpncpy.c.orig 2010-05-24 06:42:47.000000000 -0300 +++ gettext-tools/gnulib-lib/stpncpy.c 2011-08-04 19:59:36.000000000 -0300 @@ -25,7 +25,7 @@ #include <string.h> #ifndef weak_alias -# define __stpncpy stpncpy +# define __stpncpy gnu_stpncpy #endif /* Copy no more than N bytes of S...
33,692
https://github.com/datitran/PySpark-App-CF/blob/master/spark_app.py
Github Open Source
Open Source
LicenseRef-scancode-unknown-license-reference, MIT
2,017
PySpark-App-CF
datitran
Python
Code
125
537
import os import sys from flask import Flask, request, jsonify from pyspark import SparkConf from pyspark.sql import SparkSession from pyspark.ml.regression import LinearRegressionModel from pyspark.ml.linalg import Vectors app = Flask(__name__) def create_spark_connection(): conf = SparkConf() conf.set("spa...
29,857
https://github.com/jsuereth/intro-to-fp/blob/master/src/main/scala/futures/service.scala
Github Open Source
Open Source
CC-BY-3.0, BSD-2-Clause
2,019
intro-to-fp
jsuereth
Scala
Code
64
163
package futures import concurrent._ import model._ class SpecificStatisticsService(api: GhApi)(implicit ctx: ExecutionContext) { def projectStatistics(project: Project): Future[ProjectStatistics] = { val pullRequests = api pullrequests project val collaborators = api collaborators project pullRequests ...
19,778
https://github.com/oosd2015/term1/blob/master/Server/backbone/globalExtensions.php
Github Open Source
Open Source
MIT
2,015
term1
oosd2015
PHP
Code
41
168
<?php /**************************************************************************** Title: Global Extensions Author: Dylan Harty and Heidi Cantalejo (pairProgramming) Class: OOSD FALL 2015 Date: 2015-11-18 Description: This file is to be included in global.php to define global vari...
49,866
https://github.com/ironarmchad/depths_char_sheet_frontend/blob/master/src/sass/styles.scss
Github Open Source
Open Source
MIT
2,020
depths_char_sheet_frontend
ironarmchad
SCSS
Code
62
241
/*! * Bootstrap v4.3.1 (https://getbootstrap.com/) * Copyright 2011-2019 The Bootstrap Authors * Copyright 2011-2019 Twitter, Inc. * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) */ // Tools @import "~modularscale-sass/stylesheets/modularscale"; // Abstracts @import "abstracts/functi...
29,723
https://github.com/busraltun/.NetCore-Patika/blob/master/Pratikler/FluentValidation/ModelUse/BookOperations/UpdateBook/UpdateBookCommandValidator.cs
Github Open Source
Open Source
MIT
null
.NetCore-Patika
busraltun
C#
Code
34
147
using FluentValidation; using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; namespace ModelUse.BookOperations.UpdateBook { public class UpdateBookCommandValidator : AbstractValidator<UpdateBookCommand> { public UpdateBookCommandValidator() { ...
46,954
https://github.com/slimaEduardo/sysmap-front/blob/master/src/app/pages/user/user.component.ts
Github Open Source
Open Source
MIT
null
sysmap-front
slimaEduardo
TypeScript
Code
355
1,291
import { Component, EventEmitter, OnInit, Output, ViewChild } from '@angular/core'; import { FormGroup, FormControl, Validators } from '@angular/forms'; import { MatPaginator } from '@angular/material/paginator'; import { MatSort } from '@angular/material/sort'; import { MatTableDataSource } from '@angular/material/tab...
44,129
https://github.com/Prastiwar/UnrealArcheryShooter/blob/master/UnrealArcheryShooter/Source/UnrealArcheryShooter/Public/BeamAttacher.h
Github Open Source
Open Source
MIT
2,018
UnrealArcheryShooter
Prastiwar
C++
Code
74
336
// Authored by Tomasz Piowczyk. MIT License. Repository: https://github.com/Prastiwar/UnrealArcheryShooter #pragma once #include "Toggle.h" #include "GameFramework/Actor.h" #include "BeamAttacher.generated.h" UCLASS() class UNREALARCHERYSHOOTER_API ABeamAttacher : public AActor { GENERATED_BODY() public: ABeamAtt...
15,096
https://github.com/tjmonsi/ffc-pwdo/blob/master/app/pages/page-sessions/style.scss
Github Open Source
Open Source
MIT
2,018
ffc-pwdo
tjmonsi
SCSS
Code
16
75
@import '../../styles/global/_typography.scss'; @import '../../styles/global/_pages.scss'; @import '../../styles/components/_anchor.scss'; @import '../../styles/components/_button.scss'; .main { padding: 0 0 120px 0; }
13,901
https://github.com/edilaine-as/java-script/blob/master/relogio/script.js
Github Open Source
Open Source
MIT
2,022
java-script
edilaine-as
JavaScript
Code
127
465
function carregar(){ var data = new Date() var hora = data.getHours() var minutos = data.getMinutes() var segundos = data.getSeconds() var saudar = document.querySelector('#msg') var imagem = document.querySelector('#img') var corpo = document.querySelector('body') if(hora...
36,765
https://github.com/mardukbp/robotframework-lsp/blob/master/robocorp-python-ls-core/src/robocorp_ls_core/libs/robotidy_lib/robotidy/files.py
Github Open Source
Open Source
ECL-2.0, Apache-2.0
2,022
robotframework-lsp
mardukbp
Python
Code
424
1,382
from typing import Iterable, Dict, Any, List, Iterator, Tuple, Pattern, Optional from pathlib import Path import toml from functools import lru_cache import click from pathspec import PathSpec DEFAULT_EXCLUDES = r"/(\.direnv|\.eggs|\.git|\.hg|\.nox|\.tox|\.venv|venv|\.svn)/" INCLUDE_EXT = (".robot", ".resource") @...
10,092
https://github.com/fengjixuchui/DumpVTable/blob/master/DumpVTable/DumpVTable/stdafx.h
Github Open Source
Open Source
MIT, LicenseRef-scancode-unknown-license-reference
2,021
DumpVTable
fengjixuchui
C++
Code
136
407
#pragma once #include "targetver.h" // C/C++ standard headers #include <cassert> #include <cstdint> #include <iostream> #include <string> #include <memory> #include <vector> #include <fstream> // Other external headers // Windows headers #include <tchar.h> #include <objbase.h> #include <TlHelp32.h> #include <Strsaf...
1,210
https://github.com/spring-architecture/spring-content/blob/master/spring-content-s3/src/test/java/internal/org/springframework/content/s3/store/DefaultS3StoreImplTest.java
Github Open Source
Open Source
Apache-2.0
2,019
spring-content
spring-architecture
Java
Code
2,122
8,237
package internal.org.springframework.content.s3.store; import com.amazonaws.AmazonClientException; import com.amazonaws.services.s3.AmazonS3; import com.amazonaws.services.s3.model.S3ObjectId; import com.github.paulcwarren.ginkgo4j.Ginkgo4jRunner; import internal.org.springframework.content.s3.config.DefaultAssociativ...
21,711
https://github.com/magefree/mage/blob/master/Mage.Sets/src/mage/cards/d/DorotheasRetribution.java
Github Open Source
Open Source
MIT
2,023
mage
magefree
Java
Code
259
1,081
package mage.cards.d; import mage.abilities.Ability; import mage.abilities.common.AttacksTriggeredAbility; import mage.abilities.common.PutIntoGraveFromAnywhereSourceAbility; import mage.abilities.common.SimpleStaticAbility; import mage.abilities.common.delayed.AtTheEndOfCombatDelayedTriggeredAbility; import mage.abil...
8,097
https://github.com/autoScript964/script/blob/master/app_new_mhzx/src/main/java/com/script/fairy/Abnormal.java
Github Open Source
Open Source
MIT
2,022
script
autoScript964
Java
Code
452
2,965
package com.script.fairy; import com.script.framework.AtFairyImpl; import com.script.opencvapi.AtFairyConfig; import com.script.opencvapi.FindResult; import com.script.opencvapi.LtLog; /** * Created by Administrator on 2019/3/22 0022. */ public class Abnormal { AtFairyImpl mFairy; FindResult result; Gam...
20,357
https://github.com/rfoel/dev/blob/master/src/.vuepress/config.js
Github Open Source
Open Source
MIT
null
dev
rfoel
JavaScript
Code
731
3,226
const { description } = require('../../package') module.exports = { /** * Ref:https://v1.vuepress.vuejs.org/config/#title */ title: 'Meteostat Developers', /** * Ref:https://v1.vuepress.vuejs.org/config/#description */ description: description, /** * Extra tags to be injected to the page HTML...
36,522
https://github.com/des256/e/blob/master/old/shader_compiler/shader/stdlib.rs
Github Open Source
Open Source
MIT
2,023
e
des256
Rust
Code
1,089
7,665
use { super::*, super::ast::*, std::{ collections::HashMap, fmt::{ Display, Formatter, Result, }, }, }; pub struct StandardLib { pub tuples: HashMap<String,Tuple>, pub tuple_structs: HashMap<String,Struct>, pub structs: HashMap<Str...
51,297
https://github.com/kant/ddlmig/blob/master/src/com/ibm/migr/data/AnalyzeLog.java
Github Open Source
Open Source
Apache-2.0
2,021
ddlmig
kant
Java
Code
164
682
/** * Author Vikram Khatri */ package com.ibm.migr.data; import static com.ibm.migr.utils.Log.*; import java.util.HashMap; import java.util.Map; import java.util.regex.Matcher; import java.util.regex.Pattern; import com.ibm.migr.utils.Args; import com.ibm.migr.utils.U; public class AnalyzeLog { private Map<Strin...
34,014
https://github.com/magicLaLa/RSSHub/blob/master/lib/v2/chaoxing/radar.js
Github Open Source
Open Source
MIT
2,018
RSSHub
magicLaLa
JavaScript
Code
26
127
module.exports = { 'chaoxing.com': { _name: '超星', '.': [ { title: '期刊', docs: 'https://docs.rsshub.app/reading.html#chao-xing-qi-kan', source: ['/'], target: (params, url) => `/chaoxing/qk/${new URL(url).searchParams.get('ma...
5,384
https://github.com/exradr/skip-silence/blob/master/background.js
Github Open Source
Open Source
MIT
null
skip-silence
exradr
JavaScript
Code
159
457
/** * Skip Silence Browser Extension: * Skip silent parts in videos and audio files. * * Background script: Enable and disable browser popup based on if there * are source elements availiable * * @author vantezzen (https://github.com/vantezzen) * @license MIT License */ chrome.runtime.onMessage.addListener((...
15,978
https://github.com/baitcenter/arete/blob/master/src/plugins/survey/sqlite/up.sql
Github Open Source
Open Source
MIT
2,020
arete
baitcenter
SQL
Code
236
642
CREATE TABLE survey_forms( id INTEGER PRIMARY KEY NOT NULL, user_id INTEGER NOT NULL, title VARCHAR(255) NOT NULL, description TEXT NOT NULL, type TEXT NOT NULL, nbf DATE NOT NULL, exp DATE NOT NULL, version INTEGER NOT NULL DEFAULT 0, created_at TIMESTAMP NOT NULL DEFAULT CURRENT_TI...
40,343
https://github.com/dalehenrich/Cypress-reference/blob/master/repository/Cypress-Definitions.package/CypressClassDefinition.class/instance/stringForVariables..st
Github Open Source
Open Source
MIT
2,021
Cypress-reference
dalehenrich
null
Spoken
24
45
private stringForVariables: variableList ^ String streamContents: [ :stream | variableList do: [ :ea | stream nextPutAll: ea ] separatedBy: [ stream space ] ]
15,774
https://github.com/commercetools/commercetools-sdk-java-v2/blob/master/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/shipping_method/ShippingMethodReferenceQueryBuilderDsl.java
Github Open Source
Open Source
Apache-2.0, GPL-2.0-only, EPL-2.0, CDDL-1.0, MIT, BSD-3-Clause, Classpath-exception-2.0
2,023
commercetools-sdk-java-v2
commercetools
Java
Code
69
452
package com.commercetools.api.predicates.query.shipping_method; import java.util.function.Function; import com.commercetools.api.predicates.query.*; public class ShippingMethodReferenceQueryBuilderDsl { public ShippingMethodReferenceQueryBuilderDsl() { } public static ShippingMethodReferenceQueryBuilde...
46,031
https://github.com/JamesLinus/Medusa/blob/master/Medusa/Medusa/Node/Control/ListBox/ListBox.cpp
Github Open Source
Open Source
MIT
2,019
Medusa
JamesLinus
C++
Code
1,258
8,403
// Copyright (c) 2015 fjz13. All rights reserved. // Use of this source code is governed by a MIT-style // license that can be found in the LICENSE file. #include "MedusaPreCompiled.h" #include "ListBox.h" #include "Node/DataSource/IListDataSource.h" #include "Core/Math/Model/IScrollMathModel.h" #include "Core/Log/Log....
37,304
https://github.com/hametuha/wpametu/blob/master/assets/scss/batch-screen.scss
Github Open Source
Open Source
MIT
2,015
wpametu
hametuha
SCSS
Code
248
974
/*! * Batch screen. * * @deps jquery-ui-mp6 */ @import "animations"; #batch-result { opacity: .5; transition: opacity 1s; background-color: #222; font-family: monospace; padding: 1em; h3 { color: #fff; } .console { color: #fff; padding-top: 1em; border-top: #444 1px solid; .success { font-...
34,074
https://github.com/ElementAI/data-augmentation-with-llms/blob/master/prepare_dataset.py
Github Open Source
Open Source
Apache-2.0
2,022
data-augmentation-with-llms
ElementAI
Python
Code
102
467
"""Dataset preparation step. It's mostly a one-time script.""" import os os.environ["LOCAL_RANK"] = "-1" os.environ["TOKENIZERS_PARALLELISM"] = "true" os.environ["TRANSFORMERS_CACHE"] = "/mnt/home/" import argparse from utils import main_data_utils, sample_few_shot, augment_slices def parse_args(): parser = argp...
50,615
https://github.com/Ewebstech/firststone/blob/master/resources/views/modals/register.blade.php
Github Open Source
Open Source
MIT
null
firststone
Ewebstech
PHP
Code
289
1,178
<!-- Modal --> <style> .modal-form-style{ width: 70% !important; margin-left: 15%; } /* Password Visibility Toggle Style */ #password + .glyphicon { cursor: pointer; pointer-events: all; } </style> <div class="modal fade" id="regModal" tabindex="-1" role="dialog" ar...
7,912
https://github.com/mynosir/remind/blob/master/docs/db/init.sql
Github Open Source
Open Source
MIT
2,017
remind
mynosir
SQL
Code
347
1,314
-- -- 数据库: `remind` -- set names utf8; create database `remind`; use `remind`; -- -------------------------------------------------------- -- -- 表的结构 `ci_sessions` -- CREATE TABLE IF NOT EXISTS `ci_sessions` ( `session_id` varchar(40) NOT NULL DEFAULT '0', `ip_address` varchar(45) NOT NULL DEFAULT '0', `user_a...
18,168
https://github.com/DBonbon/wagtail-torchbox/blob/master/tbx/core/wagtail_hooks.py
Github Open Source
Open Source
MIT
2,021
wagtail-torchbox
DBonbon
Python
Code
96
351
from django.core.files.storage import get_storage_class from django.shortcuts import redirect from django.utils.cache import add_never_cache_headers from storages.backends.s3boto3 import S3Boto3Storage from wagtail.core import hooks from wagtail.documents import get_document_model from wagtail.documents.models import ...
26,341
https://github.com/sredmond/menlo-mathsci-help/blob/master/app/main.py
Github Open Source
Open Source
MIT
null
menlo-mathsci-help
sredmond
Python
Code
191
648
import os from flask import Flask, request, render_template, url_for, redirect, flash #The main module that does a lot of hidden work from flask.ext.sqlalchemy import SQLAlchemy #Our SQL helper import cPickle as cp #A workaround to SQL for now from mshc_lib import * #Our custom library import bcrypt DEBUG=True #CHANGE...
2,080
https://github.com/lderrickable/daffodil/blob/master/libs/design/src/molecules/paginator/paginator-theme.scss
Github Open Source
Open Source
MIT
2,022
daffodil
lderrickable
SCSS
Code
108
658
@mixin daff-paginator-theme-variant($active-color) { color: currentColor; &:hover, &.selected { /* stylelint-disable-line selector-class-pattern */ background: $active-color; color: daff-text-contrast($active-color); } } @mixin daff-paginator-theme($theme) { $primary: map-get($theme, primary); $secondary: m...
20,677
https://github.com/aberenyi/tutorials/blob/master/english/data_processing/lessons/code/nmea.m
Github Open Source
Open Source
CC0-1.0
2,020
tutorials
aberenyi
MATLAB
Code
111
413
% NMEA parser f = fopen('nmea1.txt', 'r'); fo = fopen('nmea1.out', 'w'); while (! feof(f)) buf = fgetl(f); bufa = strsplit(buf, ','); %checksum bitxor(a,b) bufascii = toascii(buf(2:strmatch(buf, '*'))); cs = toascii(buf(2)); for c = buf(3:end-3) cs = bitxor(cs, toascii(c)); end i...
35,256
https://github.com/gatecat/OpenROAD/blob/master/src/par/src/MLPart/mlpart/Placement/placement.cxx
Github Open Source
Open Source
BSD-3-Clause
2,021
OpenROAD
gatecat
C++
Code
1,224
2,890
/************************************************************************** *** *** Copyright (c) 1995-2000 Regents of the University of California, *** Andrew E. Caldwell, Andrew B. Kahng and Igor L. Markov *** Copyright (c) 2000-2007 Regents of the University of Michigan, *** Saurabh N. Ad...
17,413
https://github.com/ppfish45/Course-Monitor/blob/master/crawler/db_migrate.py
Github Open Source
Open Source
MIT
2,023
Course-Monitor
ppfish45
Python
Code
426
1,606
import db import os import json import glob import configparser from tqdm import tqdm sem_list = [ { 'name': '2022-23 Spring', 'semCode': 2230, }, { 'name': '2022-23 Fall', 'semCode': 2210, }, { 'name': '2021-22 Summer', 'semCode': 2140, }, { ...
5,978
https://github.com/azartpay/edge-react-gui/blob/master/src/connectors/scene/CryptoExchangeSceneConnector.js
Github Open Source
Open Source
BSD-3-Clause
null
edge-react-gui
azartpay
JavaScript
Code
367
1,482
// @flow import { bns } from 'biggystring' import { connect } from 'react-redux' import type { SetNativeAmountInfo } from '../../actions/CryptoExchangeActions' import { selectWalletForExchange } from '../../actions/CryptoExchangeActions.js' import * as actions from '../../actions/indexActions' import s from '../../lo...
44,246
https://github.com/OpenSilver/OpenSilver.SLaB/blob/master/Source/UtilitiesTests/XapTests.cs
Github Open Source
Open Source
MS-PL
null
OpenSilver.SLaB
OpenSilver
C#
Code
149
924
using System.Linq; using System.Net; using System.Windows; using Microsoft.Silverlight.Testing; using Microsoft.VisualStudio.TestTools.UnitTesting; using SLaB.Utilities; using SLaB.Utilities.Xap; namespace UtilitiesTests { [TestClass] public class XapTests : SilverlightTest { [TestMethod] ...
9,813
https://github.com/rodrigocam/design-patterns/blob/master/Creational/AbstractFactory/ForestSectionFactory.java
Github Open Source
Open Source
MIT
null
design-patterns
rodrigocam
Java
Code
22
59
public class ForestSectionFactory extends SectionFactory{ @Override public Animal createAnimal(){ return new ForestAnimal(); } @Override public Tree createTree(){ return new ForestTree(); } }
22,438
https://github.com/royriojas/grunt-jsbeautifier/blob/master/test/mode_test.js
Github Open Source
Open Source
MIT
null
grunt-jsbeautifier
royriojas
JavaScript
Code
170
520
"use strict"; var grunt = require("grunt"); var exec = require("child_process").exec; exports["mode_test"] = { "Verify beautification with unbeautified file": function(test) { test.expect(1); exec("grunt jsbeautifier:hasNotBeenBeautified", { cwd: __dirname + "/../" }, ...
45,160
https://github.com/mrkahfi/stradetegy/blob/master/src/Jariff/SuperAdminBundle/Form/MemberEmailType.php
Github Open Source
Open Source
MIT
null
stradetegy
mrkahfi
PHP
Code
98
357
<?php namespace Jariff\AdminBundle\Form; use Symfony\Component\Form\AbstractType; use Symfony\Component\Form\FormBuilderInterface; use Symfony\Component\OptionsResolver\OptionsResolverInterface; class MemberEmailType extends AbstractType { /** * @param FormBuilderInterface $builder * @param array $opti...
10,665
https://github.com/dsteelma-umd/dwetl/blob/master/__init__.py
Github Open Source
Open Source
Apache-2.0
null
dwetl
dsteelma-umd
Python
Code
35
71
# from .dw_etl import * # from .exceptions import * # from .table_transform import * # from .TransformField import TransformField # from .data_quality_utilities import * # from .data_quality_specific_functions import * # from .database_credentials import *
27,660
https://github.com/puzzlef/pagerank-openmp-dynamic/blob/master/src/pagerankBasic.hxx
Github Open Source
Open Source
MIT
2,023
pagerank-openmp-dynamic
puzzlef
C++
Code
1,027
2,533
#pragma once #include <utility> #include <algorithm> #include <vector> #include "_main.hxx" #include "vertices.hxx" #include "pagerank.hxx" using std::tuple; using std::vector; using std::swap; // PAGERANK LOOP // ------------- /** * Perform PageRank iterations upon a graph. * @param e change in rank for each v...
23,210
https://github.com/mcx/examples/blob/master/tensorflow_examples/lite/model_maker/core/task/searcher.py
Github Open Source
Open Source
Apache-2.0
null
examples
mcx
Python
Code
1,474
4,230
# Copyright 2022 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the 'License'); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
2,876
https://github.com/muhamadarsaludin/sportpedia-website/blob/master/app/Views/public/venue.php
Github Open Source
Open Source
MIT
null
sportpedia-website
muhamadarsaludin
PHP
Code
313
1,329
<?= $this->extend('templates/main'); ?> <?= $this->section('banner'); ?> <nav aria-label="breadcrumb pt-4"> <ol class="breadcrumb"> <li class="breadcrumb-item"><a href="/">Home</a></li> <li class="breadcrumb-item"><?= $venue['venue_name']; ?></li> </ol> </nav> <?php if ($banners) : ?> <di...
47,973
https://github.com/pavel-krivanek/Commander/blob/master/src/Commander-Activators-Shortcut/CmdShortcutCommandActivation.class.st
Github Open Source
Open Source
MIT
null
Commander
pavel-krivanek
null
Spoken
55
168
Class { #name : #CmdShortcutCommandActivation, #superclass : #CmdShortcutActivation, #category : #'Commander-Activators-Shortcut' } { #category : #deprecation } CmdShortcutCommandActivation class >> deprecationRefactorings [ ^ { RBApplyClassDeprecationRefactoring rename: self to: #CmdShortcutActivation} ] { #ca...
12,781
https://github.com/gcatanese/opentelemetry-java-tmp/blob/master/sdk/metrics/src/main/java/io/opentelemetry/sdk/metrics/internal/aggregator/MetricDataUtils.java
Github Open Source
Open Source
Apache-2.0
null
opentelemetry-java-tmp
gcatanese
Java
Code
216
1,015
/* * Copyright The OpenTelemetry Authors * SPDX-License-Identifier: Apache-2.0 */ package io.opentelemetry.sdk.metrics.internal.aggregator; import io.opentelemetry.api.common.Attributes; import io.opentelemetry.sdk.internal.PrimitiveLongList; import io.opentelemetry.sdk.metrics.common.InstrumentType; import io.ope...
5,498
https://github.com/filipecn/Ponos/blob/master/poseidon/poseidon/cuda/simulation/cuda_scene.h
Github Open Source
Open Source
MIT
2,021
Ponos
filipecn
C
Code
93
453
#ifndef POSEIDON_SIMULATION_CUDA_SCENE_H #define POSEIDON_SIMULATION_CUDA_SCENE_H #include <hermes/numeric/cuda_grid.h> #include <poseidon/simulation/cuda_collider.h> namespace poseidon { namespace cuda { template <typename T> class Scene2 { public: Collider2<T> **colliders = nullptr; Collider2<T> **list = null...
52,705
https://github.com/nunojsa/meta-openembedded/blob/master/meta-oe/recipes-kernel/ipmiutil/ipmiutil/0001-Prevent-access-times-from-changing-resulting-gzip-md.patch
Github Open Source
Open Source
MIT
2,022
meta-openembedded
nunojsa
null
Spoken
82
324
From da668e5bf1a721797361ab866d09913ee8e157c4 Mon Sep 17 00:00:00 2001 From: Jeremy Puhlman <jpuhlman@mvista.com> Date: Sat, 22 Feb 2020 04:37:04 +0000 Subject: [PATCH] Prevent access times from changing resulting gzip md5sum Upstream-Status: Pending https://github.com/ipmitool/ipmitool/pull/186 --- doc/Makefile.am |...
14,214
https://github.com/SageKwun/my-react-template/blob/master/src/index.jsx
Github Open Source
Open Source
MIT
null
my-react-template
SageKwun
null
Spoken
42
125
import React from "react"; import ReactDOM from "react-dom"; import a from "../public/a.jpg"; import "./index.css"; import "./index.less"; import { value } from "./value.ts"; function App() { console.log(value); return ( <div id='circle' className='redRect'> react template <img src={a} /> </di...
7,981
https://github.com/jescasany/rosbook/blob/master/teleop_bot/keystrokes.sh
Github Open Source
Open Source
Apache-2.0
2,022
rosbook
jescasany
Shell
Code
19
52
#!/bin/bash rostopic pub keys std_msgs/String w --once rostopic pub keys std_msgs/String d --once rostopic pub keys std_msgs/String s --once
20,030
https://github.com/fahirmdz/HealthCare020/blob/master/HealthCare020.Services/GradService.cs
Github Open Source
Open Source
MIT
null
HealthCare020
fahirmdz
C#
Code
258
1,075
using AutoMapper; using HealthCare020.Core.Entities; using HealthCare020.Core.Models; using HealthCare020.Core.Request; using HealthCare020.Core.ResourceParameters; using HealthCare020.Core.ServiceModels; using HealthCare020.Repository; using HealthCare020.Services.Helpers; using HealthCare020.Services.Interfaces; usi...
15,071
https://github.com/KATO-Hiro/AtCoder/blob/master/ABC/abc151-abc200/abc158/b.py
Github Open Source
Open Source
CC0-1.0, LicenseRef-scancode-public-domain
2,023
AtCoder
KATO-Hiro
Python
Code
31
82
# -*- coding: utf-8 -*- def main(): n, a, b = map(int, input().split()) p, q = divmod(n, (a + b)) print((p * a) + min(a, q)) if __name__ == '__main__': main()
330
https://github.com/ethiery/HPCassignments/blob/master/5_funWithHierarchicalMethods/Morton.h
Github Open Source
Open Source
MIT
null
HPCassignments
ethiery
C
Code
13
56
#ifndef MORTON_H #define MORTON_H #include <stdint.h> extern uint64_t xy_to_morton(uint32_t x, uint32_t y); #endif
21,860
https://github.com/martinjeret/not-last-meetup/blob/master/versioning.py
Github Open Source
Open Source
MIT
null
not-last-meetup
martinjeret
Python
Code
51
239
import re import os lines = [] with open(os.path.join(os.getenv('FCI_BUILD_DIR'), 'pubspec.yaml'), 'r') as f: lines = f.readlines() for i, line in enumerate(lines): match = re.match(r'version:\s?(\d+).(\d+).(\d+)(\+\d+)?', line) if match: g1, g2, g3, opt = match.group(1), match.group(2), match.gro...
2,367
https://github.com/NarrativeScience/pynocular/blob/master/tests/functional/test_database_model.py
Github Open Source
Open Source
BSD-3-Clause
2,021
pynocular
NarrativeScience
Python
Code
1,107
3,651
"""Tests for DatabaseModel abstract class""" import asyncio from asyncio import gather, sleep from datetime import datetime import os from typing import Optional from uuid import uuid4 from pydantic import BaseModel, Field from pydantic.error_wrappers import ValidationError import pytest from pynocular.database_model...
23,902
https://github.com/EhODavi/INF213/blob/master/Aula 13 - STL-C++11/sort2.cpp
Github Open Source
Open Source
MIT
null
INF213
EhODavi
C++
Code
59
266
#include <iostream> #include <vector> #include <algorithm> using namespace std; int main() { vector<pair<int,string>> alunos; alunos.push_back(pair<int,string>(52700,"salles")); alunos.push_back(make_pair(10000,"maria")); //forma alternativa de criar par... alunos.push_back(make_pair(10000,"abc")); alunos.push_b...
16,792
https://github.com/cerner/cerner_splunk/blob/master/recipes/_configure_indexes.rb
Github Open Source
Open Source
MIT, Apache-2.0
2,023
cerner_splunk
cerner
Ruby
Code
305
1,174
# frozen_string_literal: true # Cookbook Name:: cerner_splunk # Recipe:: _configure_indexes # # Configures the indexes.conf file. indexbag = CernerSplunk.my_cluster_data(node)['indexes'] bag = CernerSplunk::DataBag.load(indexbag, secret: node['splunk']['data_bag_secret']) unless bag Chef::Log.info 'No indexes data...
7,787
https://github.com/JCVenterInstitute/FRmatch/blob/master/R/FRtest.R
Github Open Source
Open Source
MIT
2,022
FRmatch
JCVenterInstitute
R
Code
548
1,809
#' Friedman-Rafsky (FR) test #' #' FR test is a multivariate generalization of nonparametric two-sample test. This function is an implementation #' with customized options, including a visualization of the minimum spanning tree (MST). #' #' @param samp1 Numeric matrix or data frame for Sample 1. Rows are multivariate ...
21,557
https://github.com/Andreas237/AndroidPolicyAutomation/blob/master/ExtractedJars/Shopkick_com.shopkick.app/smali_classes2/com/google/common/math/Quantiles$ScaleAndIndex.smali
Github Open Source
Open Source
MIT
2,019
AndroidPolicyAutomation
Andreas237
Smali
Code
404
1,908
.class public final Lcom/google/common/math/Quantiles$ScaleAndIndex; .super Ljava/lang/Object; .source "Quantiles.java" # annotations .annotation system Ldalvik/annotation/EnclosingClass; value = Lcom/google/common/math/Quantiles; .end annotation .annotation system Ldalvik/annotation/InnerClass; accessFlags ...
13,533
https://github.com/TahminaAkterUrmi/Diagnostic-Lab-Equipment-and-Lab-Reporting/blob/master/app/Http/Controllers/website/TestController.php
Github Open Source
Open Source
MIT
null
Diagnostic-Lab-Equipment-and-Lab-Reporting
TahminaAkterUrmi
PHP
Code
44
186
<?php namespace App\Http\Controllers\website; use App\Http\Controllers\Controller; use App\Models\Test; use App\Models\Category; use Illuminate\Http\Request; class TestController extends Controller { public function testlist(Request $request, $id) { // dd($id); $categories = Category::all(); $...
37,499
https://github.com/kalintsenkov/SimpleShopConsoleApp/blob/master/SimpleShop.App/Commands/LogoutCommand.cs
Github Open Source
Open Source
MIT
null
SimpleShopConsoleApp
kalintsenkov
C#
Code
48
161
namespace SimpleShop.App.Commands { using Contracts; using Services.Contracts; public class LogoutCommand : ICommand { private readonly IUserSessionService userSessionService; public LogoutCommand(IUserSessionService userSessionService) { this.userSessionService = ...
17,927
https://github.com/andig/tesla/blob/master/examples/manage_car.go
Github Open Source
Open Source
MIT
2,021
tesla
andig
Go
Code
178
931
package main import ( "encoding/json" "fmt" "os" "github.com/bogosj/tesla" ) func main() { client, err := tesla.NewClient( &tesla.Auth{ ClientID: os.Getenv("TESLA_CLIENT_ID"), ClientSecret: os.Getenv("TESLA_CLIENT_SECRET"), Email: os.Getenv("TESLA_USERNAME"), Password: os.Getenv("TE...
939
https://github.com/vasanthk2/Mortar-JS/blob/master/lib/components/global/tooltip/Tooltip.js
Github Open Source
Open Source
MIT
2,018
Mortar-JS
vasanthk2
JavaScript
Code
660
1,796
var React = require('react'); /** * @class Tooltip * @type {ReactComponent} * * @prop {*} children The children that the tooltip wraps and will point to when open. * @prop {!string} text The text to display inside of the tooltip * @prop {string=} orientation The orientation of t...
21,598
https://github.com/alekseyponkin/aponkin/blob/master/chapter_003/src/test/java/ru/job4j/reference/SortCodesUnitsTest.java
Github Open Source
Open Source
Apache-2.0
null
aponkin
alekseyponkin
Java
Code
126
689
package ru.job4j.reference; import org.junit.Test; import static org.hamcrest.Matchers.is; import static org.junit.Assert.assertThat; /** * Class SortCodesUnitsTest. * * @author Ponkin Aleksey * @version 1.0.0 * @since 18.11.2017 */ public class SortCodesUnitsTest { /** * Test sort codes unit. *...
50,203
https://github.com/norwindijkman/tennis-timeline/blob/master/src/shared/styles/styles-projects.js
Github Open Source
Open Source
MIT
2,020
tennis-timeline
norwindijkman
JavaScript
Code
168
578
import styled from "styled-components"; import { media } from "../../utils/responsive-utils"; import { ListItem, UnderlinedLink } from "./styled-components"; export const Wrapper = styled(ListItem)` margin: 2.718rem 0; `; export const Link = styled(UnderlinedLink)` margin-bottom: .472rm; padding-bottom: .368rem...
47,477
https://github.com/bernabeguzman/Final_Elma_Rust/blob/master/ELMA_Rust1/src/elma/mod.rs
Github Open Source
Open Source
MIT
null
Final_Elma_Rust
bernabeguzman
Rust
Code
31
54
pub mod channel; // pub mod client; pub mod event; pub mod exceptions; pub mod literals; pub mod manager; pub mod process; pub mod state; pub mod state_machine; pub mod transition;
49,320
https://github.com/Vorici/todo-ruby-basics-nyc-web-051418/blob/master/lib/ruby_basics.rb
Github Open Source
Open Source
LicenseRef-scancode-unknown-license-reference, LicenseRef-scancode-public-domain
2,018
todo-ruby-basics-nyc-web-051418
Vorici
Ruby
Code
37
122
def division(num1, num2) return num1/num2 end def assign_variable(value) name = value return name end def argue(as_is) as_is end def greeting(greet,name) end def return_a_value return "Nice" end def last_evaluated_value return "expert" end def pizza_party(topping = "cheese") topping end
31,919
https://github.com/tarikgwa/test/blob/master/html/app/code/Magento/Sales/Model/Order/Total.php
Github Open Source
Open Source
Apache-2.0
null
test
tarikgwa
PHP
Code
25
59
<?php /** * Copyright © 2015 Magento. All rights reserved. * See COPYING.txt for license details. */ namespace Magento\Sales\Model\Order; class Total extends \Magento\Framework\DataObject { }
7,824
https://github.com/dregad/dokuwiki-translation/blob/master/src/org/dokuwiki/translatorBundle/Services/Language/Author.php
Github Open Source
Open Source
MIT
null
dokuwiki-translation
dregad
PHP
Code
93
311
<?php namespace org\dokuwiki\translatorBundle\Services\Language; class Author { /** * @var string */ private $name; /** * @var string */ private $email; public function __construct($name, $email) { $this->email = $email; $this->name = $name; } public...
20,467
https://github.com/smarek/ci_targets/blob/master/compiled/csharp/EofExceptionBytes.cs
Github Open Source
Open Source
MIT
2,020
ci_targets
smarek
C#
Code
110
289
// This is a generated file! Please edit source .ksy file and use kaitai-struct-compiler to rebuild namespace Kaitai { public partial class EofExceptionBytes : KaitaiStruct { public static EofExceptionBytes FromFile(string fileName) { return new EofExceptionBytes(new KaitaiStream(...
44,308
https://github.com/lafitehhq/DjangoSIGE/blob/master/djangosige/apps/cadastro/views/transportadora.py
Github Open Source
Open Source
MIT
2,018
DjangoSIGE
lafitehhq
Python
Code
250
1,238
# -*- coding: utf-8 -*- from django.urls import reverse_lazy from djangosige.apps.cadastro.forms import TransportadoraForm, VeiculoFormSet from djangosige.apps.cadastro.models import Transportadora, Veiculo from .base import AdicionarPessoaView, PessoasListView, EditarPessoaView class AdicionarTransportadoraView(A...
18,089
https://github.com/cirello-io/pidctl/blob/master/controller.go
Github Open Source
Open Source
Apache-2.0
2,023
pidctl
cirello-io
Go
Code
390
1,136
/* Copyright 2019 github.com/ucirello and cirello.io 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 i...
32,196