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/imranq2/SparkAutoMapper.FHIR/blob/master/spark_auto_mapper_fhir/value_sets/definition_use_codes.py
Github Open Source
Open Source
Apache-2.0
2,020
SparkAutoMapper.FHIR
imranq2
Python
Code
177
632
from __future__ import annotations from spark_auto_mapper_fhir.fhir_types.uri import FhirUri from spark_auto_mapper_fhir.value_sets.generic_type import GenericTypeCode from spark_auto_mapper.type_definitions.defined_types import AutoMapperTextInputType # This file is auto-generated by generate_classes so do not edi...
16,883
https://github.com/dmh2000/retrosheet/blob/master/src/api/team.go
Github Open Source
Open Source
MIT
null
retrosheet
dmh2000
Go
Code
381
1,097
package api import ( jt "github.com/dmh2000/retrosheet/src/jsontypes" "github.com/dmh2000/retrosheet/src/query" ) // ====================================== // GraphQl Resolvers for Team Queries // ====================================== type teamResolver struct { t *jt.Team } func (r *teamResolver) UID() string {...
4,825
https://github.com/alberto-chiesa/jsondiffpatch.net/blob/master/Src/JsonDiffPatchDotNet/Internals/PatchAlgorithm.cs
Github Open Source
Open Source
MIT
null
jsondiffpatch.net
alberto-chiesa
C#
Code
429
1,239
// ///////////////////////////////////////////////////////////////////////////// // // File: PatchImplementation.cs // // Copyright (c) 2021 SEA Vision srl // This File is a property of SEA Vision srl // Any use or duplication of this file or part of it, // is strictly prohibited without a written perm...
4,568
https://github.com/bwbuhse/JavaExercises/blob/master/src/misc/euler/Problem11.java
Github Open Source
Open Source
MIT
null
JavaExercises
bwbuhse
Java
Code
190
498
package misc.euler; import java.io.File; import java.io.IOException; import java.util.Scanner; import java.util.stream.Stream; public class Problem11 { public static void main(String[] args) throws IOException { Scanner file = new Scanner(new File("src/misc/euler/problem11.dat")); int R = 20, C = 20; int[][] a...
46,743
https://github.com/rubmz/bootleg/blob/master/scripts/hebrew_labeler.py
Github Open Source
Open Source
Apache-2.0
null
bootleg
rubmz
Python
Code
575
2,223
import json import regex as re import stanza from bootleg.symbols.entity_profile import EntityProfile stanza.download('he') nlp = stanza.Pipeline('he', processors='tokenize,lemma,mwt,pos', verbose=True, use_gpu=True) test_sentences = '''בפני אלף צופים באצטדיון שוני, הזמר סיפר כי הוא ובעלו, חבר הכנסת עידן רול, מרחיב...
23,302
https://github.com/AndrewNeupane/DemoGame/blob/master/aspnet-core/src/ItSutra.DemoGame.Core/Authorization/PermissionChecker.cs
Github Open Source
Open Source
MIT
null
DemoGame
AndrewNeupane
C#
Code
25
112
using Abp.Authorization; using ItSutra.DemoGame.Authorization.Roles; using ItSutra.DemoGame.Authorization.Users; namespace ItSutra.DemoGame.Authorization { public class PermissionChecker : PermissionChecker<Role, User> { public PermissionChecker(UserManager userManager) : base(userManager)...
6,072
https://github.com/yorch/webapp-api-docker-demo/blob/master/run-prod.sh
Github Open Source
Open Source
MIT
2,020
webapp-api-docker-demo
yorch
Shell
Code
37
75
#!/bin/bash # -d argument is to run it in the background as detached, so you can close the SSH session and the Docker stack will keep running docker-compose \ -f docker-compose.prod.yml \ up \ -d \ --build
38,216
https://github.com/dpf-dd/redaxo_watson/blob/master/package.php
Github Open Source
Open Source
MIT
2,020
redaxo_watson
dpf-dd
PHP
Code
1,707
2,711
<?php return [ /** * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * Application Name is same name of addon dir * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *. */ 'name' => 'watson', /** * * * * * * * * * * * * * * * * * * * * ...
30,706
https://github.com/sunxuia/leetcode-solution-java/blob/master/src/main/java/q050/Q050_Pow.java
Github Open Source
Open Source
MIT
2,020
leetcode-solution-java
sunxuia
Java
Code
301
867
package q050; import org.junit.runner.RunWith; import util.runner.Answer; import util.runner.LeetCodeRunner; import util.runner.TestData; import util.runner.data.DataExpectation; /** * https://leetcode.com/problems/powx-n/ * * Implement pow(x, n), which calculates x raised to the power n (xn). * * Example 1: * ...
40,497
https://github.com/gtirloni/gpii-testem/blob/master/src/js/lib/resolveSafely.js
Github Open Source
Open Source
BSD-3-Clause
null
gpii-testem
gtirloni
JavaScript
Code
138
331
/* eslint-env node */ "use strict"; var fluid = require("infusion"); var gpii = fluid.registerNamespace("gpii"); var path = require("path"); fluid.registerNamespace("gpii.testem"); // If we call path.resolve directly from an expansion definition, we can't cleanly handle errors. So, we use this // convenience funct...
8,434
https://github.com/Pearcee/mac-m1-ash/blob/master/python/django/09-api-js/posts/imports.py
Github Open Source
Open Source
Apache-2.0
null
mac-m1-ash
Pearcee
Python
Code
37
144
from models import feed, meter import pandas as pd def import_csv(): df = pd.read_csv('data/tarif.csv', sep='delimiter') meters = [] for i in range(len(df)): meters.append( meter( date_from = df.iloc[i][2], # consumption = df.iloc[i][1], value = df.iloc[i][1] ) ) meter.objects.bulk_create(mete...
22,740
https://github.com/rodydavis/flutter_cli/blob/master/test/flutter_component_visitor_test.dart
Github Open Source
Open Source
BSD-3-Clause
null
flutter_cli
rodydavis
Dart
Code
380
1,313
// Copyright 2017 Google Inc. // // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file or at // https://developers.google.com/open-source/licenses/bsd import 'package:analyzer/analyzer.dart'; import 'package:ngflutter/src/visitors/flutter_component_visitor.dart'; import...
39,597
https://github.com/shjlone/lx-music-android/blob/master/app/src/main/java/com/shjlone/lxmusic/ui/view/CustomPlayerControllerVIew.kt
Github Open Source
Open Source
Apache-2.0
2,022
lx-music-android
shjlone
Kotlin
Code
43
169
package com.shjlone.lxmusic.ui.view import android.content.Context import android.util.AttributeSet import com.google.android.exoplayer2.ui.PlayerControlView /** * * * @author: a564 * @Date 2021/5/26 */ class CustomPlayerControllerVIew @JvmOverloads constructor( context: Context, attrs: AttributeSet?, ...
19,753
https://github.com/KEINOS/Dockerfile_of_PHP8-JIT/blob/master/bench/Preload/preloader.php
Github Open Source
Open Source
BSD-3-Clause-Attribution, PHP-3.01, Zend-2.0, PHP-3.0, IJG
2,020
Dockerfile_of_PHP8-JIT
KEINOS
PHP
Code
9
30
<?php /** * Preloader Script that sets */ opcache_compile_file('/app/functions.php');
25,500
https://github.com/nzt/acl2/blob/master/books/workshops/2003/austel/support/abs-type@useless-runes.lsp
Github Open Source
Open Source
BSD-3-Clause
2,019
acl2
nzt
Common Lisp
Code
1,288
5,135
(LISTFIX) (LIST=) (LIST=-IS-AN-EQUIVALENCE) (LISTFIX-LISTFIX (11 10 (:REWRITE DEFAULT-CAR)) (9 8 (:REWRITE DEFAULT-CDR))) (LIST=-LISTFIX) (LIST=-IMPLIES-LIST=-CONS-2 (6 6 (:REWRITE DEFAULT-CDR)) (6 6 (:REWRITE DEFAULT-CAR))) (LIST=-IMPLIES-EQUAL-CAR-1 (17 17 (:REWRITE DEFAUL...
8,765
https://github.com/alekitto/zombodb/blob/master/test/sql/legacy/issue-183.sql
Github Open Source
Open Source
Apache-2.0
2,022
zombodb
alekitto
SQL
Code
136
228
-- -- should return just id=2,3,4 -- SELECT id FROM products WHERE products ==> 'id<>1' order by id; SELECT id FROM products WHERE products ==> 'id<>[1]' order by id; SELECT id FROM products WHERE products ==> 'id<>[[1]]' order by id; -- -- should return all 4 rows -- SELECT id FROM products WHERE id <> 1 OR id <> 2 O...
36,684
https://github.com/AsafKed/asafkedem.com/blob/master/src/App.js
Github Open Source
Open Source
Apache-2.0
null
asafkedem.com
AsafKed
JavaScript
Code
163
384
import React from "react"; import { Switch, Route } from "react-router-dom"; import Home from './pages/Home.jsx'; import Skills from './pages/Skills.jsx'; import About from './pages/About.jsx'; function App() { return ( <div> <Switch> {/* If the current URL is /about, this route is rendered ...
12,262
https://github.com/qilip/ACMStudy/blob/master/baekjoon/2161/source.cpp
Github Open Source
Open Source
CC-BY-3.0
2,021
ACMStudy
qilip
C++
Code
29
130
#include <cstdio> #include <queue> using namespace std; int main(void){ int N; queue<int> q; scanf("%d", &N); for(int i=1;i<=N;i++){ q.push(i); } for(int i=0;i<N;i++){ printf("%d ", q.front()); q.pop(); q.push(q.front()); q.pop(); } }
3,549
https://github.com/alvachien/learning-notes/blob/master/crazy-java-16-lessons/lesson5_expression/src/main/java/com/alvachien/RawTypeTest.java
Github Open Source
Open Source
MIT
null
learning-notes
alvachien
Java
Code
42
140
package com.alvachien; import java.util.ArrayList; import java.util.List; public class RawTypeTest { public static void main(String[] args) { List list = new ArrayList(); list.add("test1"); list.add("test2"); list.add("test3"); List<Integer> listInt = list; for(in...
36,716
https://github.com/dinvlad/job-manager/blob/master/servers/jm_utils/jm_utils/page_tokens.py
Github Open Source
Open Source
BSD-3-Clause
2,021
job-manager
dinvlad
Python
Code
510
1,318
""" We implement the pagination token via base64-encoded JSON s.t. tokens are opaque to clients and enable us to make backwards compatible changes to our pagination implementation. Base64+JSON are used specifically as they are easily portable across language. """ import base64 import datetime import json import numbers...
42,240
https://github.com/tylernm14/donut_dagger/blob/master/dagger/db/migrate/20170125233007_create_job_edges.rb
Github Open Source
Open Source
MIT
2,017
donut_dagger
tylernm14
Ruby
Code
34
104
class CreateJobEdges < ActiveRecord::Migration def change create_table :job_edges do |t| t.belongs_to :workflow, index: true, null: false t.belongs_to :dependency, index: true, null: false t.belongs_to :dependent, index: true, null: false t.timestamps null: false end end end
16,891
https://github.com/SeokJiWon1207/K-Health/blob/master/app/src/main/java/com/example/k_health/food/adapter/FoodListAdapter.kt
Github Open Source
Open Source
Apache-2.0
null
K-Health
SeokJiWon1207
Kotlin
Code
241
996
package com.example.k_health.food.adapter import android.util.Log import android.view.LayoutInflater import android.view.ViewGroup import android.widget.CompoundButton import androidx.recyclerview.widget.DiffUtil import androidx.recyclerview.widget.ListAdapter import androidx.recyclerview.widget.RecyclerView import co...
14,112
https://github.com/deploycode/hds-visualdiseases-admin/blob/master/resources/views/menus/list.blade.php
Github Open Source
Open Source
MIT
null
hds-visualdiseases-admin
deploycode
PHP
Code
72
393
@if (!empty($menus)) <h1 class="text-center">MENUS REGISTRADOS</h1> <table class="table"> <thead> <th>Menú</th> <th>Enfermedad</th> <th>Acciones</th> </thead> @foreach ($menus as $menu) <tbody> <td>{{$menu->name}}</td> <td>{{$menu->app->disease}}</td> <td>...
30,346
https://github.com/diegotl/APIClientCombine/blob/master/Sources/Endpoint/APIRequest.swift
Github Open Source
Open Source
Apache-2.0
2,021
APIClientCombine
diegotl
Swift
Code
267
762
// // APIRequest.swift // APIClient // // Created by Diego Trevisan Lara on 12/01/18. // Copyright © 2018 Diego Trevisan Lara. All rights reserved. // import Foundation public enum HTTPMethod { case options case get(_ queryString: Encodable? = nil) case head case post(_ paramater: Encodable? = nil...
42,249
https://github.com/qhanm/core_laravel_module/blob/master/Modules/Backend/Http/Controllers/RoleController.php
Github Open Source
Open Source
MIT
null
core_laravel_module
qhanm
PHP
Code
190
560
<?php namespace Modules\Backend\Http\Controllers; use Illuminate\Contracts\Support\Renderable; use Illuminate\Http\Request; use Illuminate\Routing\Controller; use Modules\Backend\Libs\Render\Breadcrumb; use Modules\Backend\Repositories\Interfaces\RoleRepositoryInterface; use Modules\Backend\Repositories\ParamRequest;...
33,781
https://github.com/tom-weatherhead/exeter-asset-processor/blob/master/Libraries/AssetProcessor/Include/ExAPConversionTemplates.h
Github Open Source
Open Source
MIT
null
exeter-asset-processor
tom-weatherhead
C
Code
363
1,036
/* * ExAPConversionTemplates.h * Exeter AssetProcessor * * Created by Tom Weatherhead on Fri Jul 18 2003. * Copyright (c) 2003 by Tom Weatherhead. All rights reserved. * */ #ifndef _EXAPCONVERSIONTEMPLATES_H_ #define _EXAPCONVERSIONTEMPLATES_H_ 1 #include "General\\ExAPAutoPtr.h" #include "General\\ExAPE...
29,103
https://github.com/kevinsagitass/PhizzaHutWeb/blob/master/resources/views/login.blade.php
Github Open Source
Open Source
MIT
null
PhizzaHutWeb
kevinsagitass
PHP
Code
113
499
<!DOCTYPE html> @extends('MasterView.app') @section('title', 'Login Page') @section('content') <div class="row"> <div class="col-md-3"> </div> <div class="col-md-6"> <form action="/Login" method="POST"> {{ csrf_field() }} @if(Session::has('error'...
8,447
https://github.com/j-f-paquet/frzout-duke2020/blob/master/setup.py
Github Open Source
Open Source
MIT
2,018
frzout-duke2020
j-f-paquet
Python
Code
194
685
#!/usr/bin/env python # -*- coding: utf-8 -*- import os.path from setuptools import setup, Extension def version(): with open('frzout/__init__.py', 'r') as f: for l in f: if l.startswith('__version__ = '): return l.split("'")[1] raise RuntimeError('unable to determine ver...
34,384
https://github.com/ciebit/ads/blob/master/tests/classes/Banners/CollectionCreateTest.php
Github Open Source
Open Source
MIT
null
ads
ciebit
PHP
Code
143
594
<?php namespace Ciebit\Ads\Tests\Banners; use Ciebit\Ads\Banners\Banner; use Ciebit\Ads\Banners\Collection; use Ciebit\Ads\Banners\Status; use Ciebit\Ads\Formats\Format; use Ciebit\Ads\Formats\Status as FormatStatus; use Ciebit\Files\Images\Image; use Ciebit\Files\Status as FileStatus; use PHPUnit\Framework\TestCase; ...
9,044
https://github.com/LucasGeek/HTML_CSS-JS/blob/master/Olympus - Social Network Toolkit/src/partials/windows-popup/playlist-popup.hbs
Github Open Source
Open Source
MIT
null
HTML_CSS-JS
LucasGeek
null
Spoken
565
3,469
<!-- Playlist Popup --> <div class="window-popup playlist-popup" tabindex="-1" role="dialog" aria-labelledby="playlist-popup" aria-hidden="true"> <a href="" class="icon-close js-close-popup"> <svg class="olymp-close-icon"><use xlink:href="svg-icons/sprites/icons.svg#olymp-close-icon"></use></svg> </a> <div cla...
28,230
https://github.com/m4thl33tz/m4thl33tz-client/blob/master/src/actions/socketActions.js
Github Open Source
Open Source
MIT
null
m4thl33tz-client
m4thl33tz
JavaScript
Code
12
30
const SET_SOCKET = 'SET_SOCKET'; export const setSocket = socket => ({ })
23,442
https://github.com/PascalMasny/School-Scripts/blob/master/20. PseudoCode/ggT.ps
Github Open Source
Open Source
Unlicense
null
School-Scripts
PascalMasny
PostScript
Code
50
95
#Größter Gemeinsamer Teiler integer n := eingabe "Geben sie N ein: " integer m := eingabe "Geben sie M ein: " integer rest := 100 wenn (n > m) solange (r < > 0) r = n % m Ende solange sonst Ende wenn ausgabe "ggT ist: " + m
5,885
https://github.com/lucas-gdsouza/orange-talents-07-template-ecommerce/blob/master/mercadolivre/src/main/java/br/com/zupacademy/mercadolivre/domains/enums/GatewayPagamento.java
Github Open Source
Open Source
Apache-2.0
null
orange-talents-07-template-ecommerce
lucas-gdsouza
Java
Code
52
258
package br.com.zupacademy.mercadolivre.domains.enums; public enum GatewayPagamento { PayPal { @Override public String gerarUrlDeRetorno(Long idGeradorDaCompra) { String inicioURI = "paypal.com?buyerId="; String redirecionamentoURI = "&redirectUrl={urlDeRetorno}"; ...
7,873
https://github.com/vksakpal/PlayerManagementSystem/blob/master/PlayerManagementSystem/obj/Release/Package/PackageTmp/Views/TeamManagement/_NotAssignedMembersView.cshtml
Github Open Source
Open Source
MIT
null
PlayerManagementSystem
vksakpal
C#
Code
287
1,160
 <div class="modal-dialog modal-lg" role="document"> <div class="modal-content"> <div class="modal-header modal-title-pms"> <div class="row"> <div class="col-md-8" style="padding-top:5px;"> <h4 class="modal-title" id="exampleModalLabel">Player List...
7,291
https://github.com/HavenDV/UpworkNotifier/blob/master/H.NET.Core/Recorders/ParentRecorder.cs
Github Open Source
Open Source
MIT
null
UpworkNotifier
HavenDV
C#
Code
102
280
using System; namespace H.NET.Core.Recorders { public class ParentRecorder : Recorder { #region Properties public IRecorder Recorder { get; protected set; } #endregion #region Events protected override VoiceActionsEventArgs CreateArgs() => new VoiceActio...
26,340
https://github.com/EikeStein/replication-kit-chp-study/blob/master/code/mutaSHARK/src/main/java/de/ugoe/cs/smartshark/mutaSHARK/util/mutators/TreeMutationOperator.java
Github Open Source
Open Source
Apache-2.0
null
replication-kit-chp-study
EikeStein
Java
Code
29
159
package de.ugoe.cs.smartshark.mutaSHARK.util.mutators; import com.github.gumtreediff.actions.model.Action; import de.ugoe.cs.smartshark.mutaSHARK.util.SearchNode; import de.ugoe.cs.smartshark.mutaSHARK.util.TreeNode; import java.util.List; public abstract class TreeMutationOperator { public abstract List<Mutated...
913
https://github.com/LuizSDCit/terraform-example-foundation/blob/master/3-networks/modules/base_shared_vpc/firewall.tf
Github Open Source
Open Source
Apache-2.0
2,022
terraform-example-foundation
LuizSDCit
HCL
Code
334
1,015
/** * Copyright 2021 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to...
45,224
https://github.com/skrsna/AutoTST/blob/master/autotst/calculator/gaussian.py
Github Open Source
Open Source
MIT
2,022
AutoTST
skrsna
Python
Code
1,932
6,109
#!/usr/bin/python # -*- coding: utf-8 -*- ########################################################################## # # AutoTST - Automated Transition State Theory # # Copyright (c) 2015-2020 Richard H. West (r.west@northeastern.edu) # and the AutoTST Team # # Permission is hereby granted, free of charge, to ...
6,768
https://github.com/zahirkelloud/icehrm/blob/master/core/src/Reports/User/Reports/ExpenseReport.php
Github Open Source
Open Source
MIT
2,019
icehrm
zahirkelloud
PHP
Code
155
452
<?php namespace Reports\User\Reports; use Classes\BaseService; use Reports\Admin\Api\CSVReportBuilder; use Reports\Admin\Api\CSVReportBuilderInterface; class ExpenseReport extends CSVReportBuilder implements CSVReportBuilderInterface { public function getMainQuery() { $query = "SELECT (SELECT concat(...
31,773
https://github.com/jonathangreen/simplified-server-core/blob/master/tests/test_external_search.py
Github Open Source
Open Source
Apache-2.0
null
simplified-server-core
jonathangreen
Python
Code
18,002
49,496
# encoding: utf-8 import pytest from collections import defaultdict import datetime import json import logging import re import time from psycopg2.extras import NumericRange from ..testing import ( DatabaseTest, ) from elasticsearch_dsl import Q from elasticsearch_dsl.function import ( ScriptScore, Random...
18,068
https://github.com/skyman/CompressionSimulator/blob/master/run_compression.py
Github Open Source
Open Source
MIT
null
CompressionSimulator
skyman
Python
Code
71
267
import numpy as np from compsim.simulate import CompressionSimulator, ForagingSimulator, Grid, Direction, Particle, Ant, UndiscoveredFood from compsim.plot import RasterPlotter from compsim.io import compression_simulator_grid_loader from compsim.generate import generate_random_grid if __name__ == "__main__": #gr...
16,778
https://github.com/ejuarezp/desayuno_nutritivo/blob/master/martinillo.py
Github Open Source
Open Source
MIT
null
desayuno_nutritivo
ejuarezp
Python
Code
62
194
from music21 import note, stream, duration N1 = note.Note('C') N2 = note.Note('C') N2.offset = 1 N3 = note.Note('G') N3.offset = 2 N4 = note.Note('G') N4.offset = 3 N5 = note.Note('A') N5.offset = 4 N6 = note.Note('A') N6.offset = 5 N7 = note.Note('G') N7.offset = 6 N7.duration = duration.Duration('half') Secuencia1 ...
8,323
https://github.com/WeAreLookingForProjectName/app/blob/master/app/services/communities/ignore_post_reports.rb
Github Open Source
Open Source
MIT
2,019
app
WeAreLookingForProjectName
Ruby
Code
16
68
class Communities::IgnorePostReports include ActiveModel::Model attr_accessor :post def call ActiveRecord::Base.transaction do post.update!(ignore_reports: true) post.reports.destroy_all end end end
29,438
https://github.com/dotlin/kotlin/blob/master/compiler/testData/kdoc/lexer/codeBlocks.kt
Github Open Source
Open Source
Apache-2.0
2,016
kotlin
dotlin
Kotlin
Code
54
87
/** * @foo This is text. * ``` kotlin * @foo This is code block. * ``` * @foo This is text. * ~~~ * @foo This is code block * With multiple lines. * ~~~ * @foo This is yet more text. * ``` * @foo This is an unclosed code block. */
23,796
https://github.com/KaloyanAleksiev/SudokuSolver/blob/master/SudokuSolver.php
Github Open Source
Open Source
MIT
2,019
SudokuSolver
KaloyanAleksiev
PHP
Code
1,763
6,510
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <style> td { padding: 0; } input.cell { font-size: 16pt; text-align: center; } .c...
35,719
https://github.com/flatiron-labs/learn-submit/blob/master/learn-submit.gemspec
Github Open Source
Open Source
MIT
2,020
learn-submit
flatiron-labs
Ruby
Code
83
380
# coding: utf-8 lib = File.expand_path('../lib', __FILE__) $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib) require 'learn_submit/version' Gem::Specification.new do |spec| spec.name = "learn-submit" spec.version = LearnSubmit::VERSION spec.authors = ["Flatiron School"] spec.email ...
21,161
https://github.com/MidAutumnMoon/MidAutumnMoon/blob/master/homes/nuhome/editor/neovim/config/ftplugin/markdown.vim
Github Open Source
Open Source
MIT
2,022
MidAutumnMoon
MidAutumnMoon
null
Spoken
10
28
autocmd FileType markdown let b:ale_linters = [ 'alex', 'write-good' ]
37,744
https://github.com/mlmoravek/Vue-Spring-Blueprint/blob/master/frontend/src/views/AccountDetailView.vue
Github Open Source
Open Source
Apache-2.0
null
Vue-Spring-Blueprint
mlmoravek
Vue
Code
525
1,914
<template> <div class="container"> <form class="section" @submit="onSaveAccount"> <h1 class="title">Account Details</h1> <b-notification v-show="changeAccountError" type="is-danger" aria-close-label="Close notification" :message="changeAccountError" @close="upda...
4,271
https://github.com/mattbro2/filesequence/blob/master/commands/commands.go
Github Open Source
Open Source
Apache-2.0
null
filesequence
mattbro2
Go
Code
428
1,168
//Package commands contains the code to process the service flags and commands package commands import ( "flag" "fmt" "io" "os" "strings" "github.com/mattbro2/filesequence/filesys" ) type Options struct { Curdir string Reverse string Copy string Move string Delete string Reseq string Nocolor b...
3,463
https://github.com/mailhost/tpm2-tss/blob/master/test/unit/fapi-profiles.c
Github Open Source
Open Source
BSD-2-Clause
2,022
tpm2-tss
mailhost
C
Code
432
2,018
/* SPDX-License-Identifier: BSD-2-Clause */ /******************************************************************************* * Copyright 2018, Fraunhofer SIT sponsored by Infineon Technologies AG * All rights reserved. ******************************************************************************/ #ifdef HAVE_CONFI...
7,375
https://github.com/mbacarella/ocaml-noise/blob/master/test/unit/test_hash.ml
Github Open Source
Open Source
BSD-2-Clause
2,020
ocaml-noise
mbacarella
OCaml
Code
120
377
open OUnit2 open Test_helpers.Infix let test_of_string = let should_be expected s ctxt = let got = Noise.Hash.of_string s in assert_equal ~ctxt ~cmp:[%eq: (Noise.Hash.t, string) result] ~printer:[%show: (Noise.Hash.t, string) result] expected got in "of_string" >::: [ "SHA...
14,062
https://github.com/dalcib/denode/blob/master/src/util.ts
Github Open Source
Open Source
MIT
2,022
denode
dalcib
TypeScript
Code
310
807
import { EOF, Reader, Writer } from "./deno"; import { TextDecoder, TextEncoder } from "./encoding"; interface Deferred<T> extends Promise<T> { status(): "resolved" | "rejected" | undefined; resolve(t: T); reject(e); } export function deferred<T = void>(): Deferred<T> { let resolve, reject; let st: "resolved...
24,805
https://github.com/picamator/ImportCsvUser/blob/master/src/AppBundle/Model/Csv/Builder/RowFactory.php
Github Open Source
Open Source
MIT
2,021
ImportCsvUser
picamator
PHP
Code
89
311
<?php declare(strict_types = 1); namespace AppBundle\Model\Csv\Builder; use AppBundle\Model\Api\Csv\Builder\RowFactoryInterface; use AppBundle\Model\Api\Csv\Data\RowInterface; use AppBundle\Model\Api\ObjectManagerInterface; /** * Create Row * * @codeCoverageIgnore */ class RowFactory implements RowFactoryInterfa...
29,411
https://github.com/Sebasking/finatra/blob/master/http/src/main/scala/com/twitter/finatra/http/internal/exceptions/FailureExceptionMapper.scala
Github Open Source
Open Source
Apache-2.0
2,019
finatra
Sebasking
Scala
Code
177
544
package com.twitter.finatra.http.internal.exceptions import com.twitter.finagle.Failure import com.twitter.finagle.http.{Request, Response} import com.twitter.finatra.http.internal.exceptions.ThrowableExceptionMapper._ import com.twitter.finatra.http.response.ResponseBuilder import com.twitter.inject.Logging import co...
45,495
https://github.com/DeSireFire/Fastapi-sample/blob/master/fastapi+mysql/dbApi/setting(example).py
Github Open Source
Open Source
MIT
null
Fastapi-sample
DeSireFire
Python
Code
48
164
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # Author : RaXianch # CreatDATE : 2021/8/21 # CreatTIME : 19:58 # Blog : https://blog.raxianch.moe/ # Github : https://github.com/DeSireFire __author__ = 'RaXianch' MYSQL_HOST = '128.0.0.1' MYSQL_USER = '2333' MYSQL_PORT = 3306 MYSQL_PASSWORD = '2333' MYSQL_DB...
31,281
https://github.com/josecm99/SimpleToDo/blob/master/app/src/main/java/com/example/simpletodo/MainActivity.java
Github Open Source
Open Source
Apache-2.0
null
SimpleToDo
josecm99
Java
Code
398
1,310
package com.example.simpletodo; import android.content.Intent; import android.os.Bundle; import android.util.Log; import android.view.View; import android.widget.AdapterView; import android.widget.ArrayAdapter; import android.widget.EditText; import android.widget.ListView; import android.widget.Toast; import android...
6,072
https://github.com/njw1204/BOJ-AC/blob/master/problem/10000~19999/15633/15633.py3.py
Github Open Source
Open Source
MIT
2,019
BOJ-AC
njw1204
Python
Code
10
43
n=int(input()) ans=0 for i in range(1,n+1): if n%i==0: ans+=i print(ans*5-24)
6,049
https://github.com/BobbyWhiskey/sg-orbit/blob/master/storybook/components/preview/index.js
Github Open Source
Open Source
Apache-2.0
2,022
sg-orbit
BobbyWhiskey
JavaScript
Code
4
8
export * from "./Preview";
33,741
https://github.com/ipluswave/pesto_marketplace/blob/master/config/initializers/rspec_generator.rb
Github Open Source
Open Source
MIT
2,021
pesto_marketplace
ipluswave
Ruby
Code
14
53
Kassi::Application.configure do config.generators do |g| g.integration_tool :rspec g.test_framework :rspec end end if defined? Kassi::Application
30,920
https://github.com/msmith/prompt/blob/master/lib/prompt/command_group.rb
Github Open Source
Open Source
MIT
2,017
prompt
msmith
Ruby
Code
20
50
module Prompt class CommandGroup attr_accessor :name attr :commands def initialize name @name = name @commands = [] end end end
33,228
https://github.com/AlissonWenceslau/node-blogapp/blob/master/views/categorias/index.handlebars
Github Open Source
Open Source
MIT
null
node-blogapp
AlissonWenceslau
null
Spoken
10
69
<h3>Categorias</h3> {{#each categorias}} <a href="/categorias/{{slug}}"><h6>{{nome}}</h6></a> {{else}} <p>Nenhuma categoria registrada!</p> {{/each}}
43,990
https://github.com/Pedrobusou/Corelogic-s-Knacket-0.7/blob/master/app/src/main/java/uk/co/ribot/Knacket/event/AdSavedEvent.java
Github Open Source
Open Source
Apache-2.0
null
Corelogic-s-Knacket-0.7
Pedrobusou
Java
Code
49
130
package uk.co.ribot.Knacket.event; public class AdSavedEvent { public static final String PARAM_CREATE = "create"; public static final String PARAM_DELETE = "delete"; public static final String PARAM_EDIT = "edit"; String mode; public AdSavedEvent(String mode) { this.mode = mode; } ...
22,835
https://github.com/fercarcedo/AutoShorten/blob/master/app/src/main/java/fergaral/autoshorten/ui/SettingsActivity.kt
Github Open Source
Open Source
Apache-2.0
2,018
AutoShorten
fercarcedo
Kotlin
Code
28
170
package fergaral.autoshorten.ui import android.os.Bundle import androidx.appcompat.app.AppCompatActivity import fergaral.autoshorten.R import kotlinx.android.synthetic.main.toolbar.* class SettingsActivity : AppCompatActivity() { override fun onCreate(savedInstanceState: Bundle?) { super.onCreate(savedIns...
37,182
https://github.com/justrypython/utils/blob/master/src/hunspell_test.py
Github Open Source
Open Source
MIT
null
utils
justrypython
Python
Code
12
34
#encoding:UTF-8 import os import hunspell from hunspell import HunSpell a = 'test'
35,491
https://github.com/vadistic/graphql-extra/blob/master/src/document/definition.ts
Github Open Source
Open Source
MIT
2,020
graphql-extra
vadistic
TypeScript
Code
253
807
import type * as GQL from 'graphql' // eslint-disable-next-line import/no-cycle import { Api } from '../internal' import { validationError } from '../utils' /** * map `TypeDefinitionNode` kind to api * * @category API Public */ export const kindToTypeDefinitionApi = { EnumTypeDefinition: Api.EnumTypeApi, In...
17,674
https://github.com/AMcPherran/ShuffleCupJS/blob/master/js/utils.js
Github Open Source
Open Source
MIT
null
ShuffleCupJS
AMcPherran
JavaScript
Code
106
268
var Utils = { //returns the plaintext contents of a file loadFileText : function(filename){ var text; $.ajax({ async: false, url: filename, dataType: 'text', success : function( data ) { text = data; } }); return text; }, listJSONFiles : functi...
28,782
https://github.com/xx89929/qizhong/blob/master/resources/views/pc/layouts/foot.blade.php
Github Open Source
Open Source
MIT
null
qizhong
xx89929
PHP
Code
84
512
<section> <div class="foot" style="background: url('{{url("img/bg1.png")}}')"> <div class="container "> <div class="row"> <div class="col-7 row"> @foreach($top_navs as $tn) @if($loop->index < 4) <div class="foot-item...
17,523
https://github.com/abod1944/maui/blob/master/src/Compatibility/Core/src/iOS/Renderers/CheckBoxRenderer.cs
Github Open Source
Open Source
MIT
null
maui
abod1944
C#
Code
32
144
using System; using Foundation; namespace Microsoft.Maui.Controls.Compatibility.Platform.iOS { [System.Obsolete(Compatibility.Hosting.MauiAppBuilderExtensions.UseMapperInstead)] public class CheckBoxRenderer : CheckBoxRendererBase<FormsCheckBox> { [Preserve(Conditional = true)] public CheckBoxRenderer() { }...
30,243
https://github.com/Originate/exosphere/blob/master/terraform/aws/network/bastion/bastion.tf
Github Open Source
Open Source
MIT
2,018
exosphere
Originate
HCL
Code
72
319
module "ami" { source = "github.com/terraform-community-modules/tf_aws_ubuntu_ami/ebs" region = "${var.region}" distribution = "xenial" instance_type = "${var.instance_type}" storagetype = "ebs-ssd" } resource "aws_instance" "bastion" { ami = "${module.ami.ami_id}" instance_typ...
44,719
https://github.com/games647/ScoreboardStats/blob/master/defaults/src/main/java/com/github/games647/scoreboardstats/defaults/PlaceHolderVariables.java
Github Open Source
Open Source
MIT
2,021
ScoreboardStats
games647
Java
Code
113
456
package com.github.games647.scoreboardstats.defaults; import com.github.games647.scoreboardstats.variables.DefaultReplacer; import com.github.games647.scoreboardstats.variables.DefaultReplacers; import com.github.games647.scoreboardstats.variables.ReplacerAPI; import com.google.common.collect.Sets; import java.util.C...
38,733
https://github.com/certik/pyquante/blob/master/qchem_generator/h2_sto.c
Github Open Source
Open Source
DOC
2,019
pyquante
certik
C
Code
472
1,610
/* This is a template file that is read in by make_hf_driver.py and * populated with data. You can write it pretty much like normal C * code, except when you see a percent sign. If you're printing out * data from the python driver, you need to use the Python "dictionary * style" of expanding strings. If you're putt...
29,731
https://github.com/geoadmin/service-wmts/blob/master/app/__init__.py
Github Open Source
Open Source
BSD-3-Clause
null
service-wmts
geoadmin
Python
Code
236
760
import logging from werkzeug.exceptions import HTTPException from flask import Flask from flask import request from flask_sqlalchemy import SQLAlchemy from app import settings from app.helpers.utils import get_closest_zoom from app.helpers.utils import make_error_msg logger = logging.getLogger(__name__) # Standard...
2,458
https://github.com/remg64/dotfiles/blob/master/vim/ftplugin/python/python.vim
Github Open Source
Open Source
MIT
null
dotfiles
remg64
null
Spoken
33
109
setlocal tabstop=4 setlocal shiftwidth=4 setlocal expandtab setlocal softtabstop=4 setlocal textwidth=80 set modeline setlocal smarttab set nosmartindent augroup vimrc_autocmds autocmd BufEnter * highlight OverLength ctermbg=darkgrey guibg=#111111 autocmd BufEnter * match OverLength /\%81v.*/ augroup END
21,488
https://github.com/DynamicGravitySystems/DGP/blob/master/examples/plot2_prototype.py
Github Open Source
Open Source
Apache-2.0
2,020
DGP
DynamicGravitySystems
Python
Code
351
1,398
import os import sys import uuid import logging import datetime import traceback from PyQt5 import QtCore import PyQt5.QtWidgets as QtWidgets import PyQt5.Qt as Qt import numpy as np from pandas import Series, DatetimeIndex from matplotlib.axes import Axes from matplotlib.patches import Rectangle from matplotlib.dates...
4,439
https://github.com/NDGuthrie/bposs/blob/master/mc/mcmc/arlan/gen.y
Github Open Source
Open Source
Apache-2.0
2,018
bposs
NDGuthrie
null
Spoken
1,115
3,158
/* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */ /*| MGC Confidential |*/ /*| Property of Mentor Graphics Corp. |*/ /*| (C) Copyright Mentor Graphics Corp. (2006-2011) |*/ /* _____________________________...
45,266
https://github.com/TrueFinch/KappaDBMS/blob/master/src/parser/sql-stmt/NotImplemented/CreateIndex.hpp
Github Open Source
Open Source
Apache-2.0
2,018
KappaDBMS
TrueFinch
C++
Code
23
53
#pragma once #include "Instruction.hpp" namespace cmd { class CreateIndex : public Instruction { public: CreateIndex() : Instruction(CREATE_INDEX) {} }; } // namespace cmd
27,125
https://github.com/LoraMS/ProgrammingBasicsPHP/blob/master/ExamPreparation/Exam05-11-2017/external-evaluation.php
Github Open Source
Open Source
MIT
null
ProgrammingBasicsPHP
LoraMS
PHP
Code
153
433
<?php $n = intval(readline()); $markPoor = 0; $markSatisfactory = 0; $markGood = 0; $markVeryGood = 0; $markExcellent = 0; for ($index = 0; $index < $n; $index++) { $score = floatval(readline()); if ($score > 0 && $score <= 22.5) { $markPoor++; } elseif ($score > 22.5 && $score <= 40.5) { $...
43,742
https://github.com/trey-miller/async-validate-example/blob/master/src/pages/Index.module.scss
Github Open Source
Open Source
MIT
null
async-validate-example
trey-miller
SCSS
Code
57
190
body { background: black; color: #eee; padding: 1rem; } main { background: #333; box-shadow: 0.1rem 0.2rem 0.42rem rgba(200, 255, 200, 0.42); font-family: sans-serif; max-width: (1000rem/16); margin: 1rem auto; } header { background: #454; color: white; font-family: serif; padding: 0.2rem 1rem; } input { ...
16,942
https://github.com/phene/aws-sdk-ruby/blob/master/gems/aws-sdk-ses/lib/aws-sdk-ses/errors.rb
Github Open Source
Open Source
Apache-2.0
null
aws-sdk-ruby
phene
Ruby
Code
1,155
4,232
# WARNING ABOUT GENERATED CODE # # This file is generated. See the contributing guide for more information: # https://github.com/aws/aws-sdk-ruby/blob/master/CONTRIBUTING.md # # WARNING ABOUT GENERATED CODE module Aws::SES module Errors extend Aws::Errors::DynamicErrors class AccountSendingPausedException ...
20,868
https://github.com/Laurens-W/openapi-generator/blob/master/samples/server/petstore/php-laravel/lib/app/Models/DogAllOf.php
Github Open Source
Open Source
Apache-2.0
2,022
openapi-generator
Laurens-W
PHP
Code
24
57
<?php /** * DogAllOf */ namespace app\Models; /** * DogAllOf */ class DogAllOf { /** @var string $breed */ public $breed = ""; }
67
https://github.com/yamilapros/blog-laravel-6/blob/master/resources/views/Backend/post/edit.blade.php
Github Open Source
Open Source
MIT
null
blog-laravel-6
yamilapros
PHP
Code
263
1,165
@extends('Backend.layouts.app') @section('content') <div class="container-fluid"> <h1 class="mt-4">Edit post</h1> <form action="{{ route('post.update', ['id' => $post->id]) }}" method="POST" enctype="multipart/form-data"> @csrf <div class="row"> <div class="col-md-6"> <div class="fo...
17,380
https://github.com/Tyyppi77/pikasana/blob/master/src/store.js
Github Open Source
Open Source
MIT
null
pikasana
Tyyppi77
JavaScript
Code
27
73
import { configureStore } from '@reduxjs/toolkit'; import playersReducer from './playersSlice'; import gameReducer from "./gameSlice" export const store = configureStore({ reducer: { players: playersReducer, game: gameReducer }, });
10,702
https://github.com/imxilife/FEX/blob/master/wxapp-little-shelf/server/dao/orders.js
Github Open Source
Open Source
MIT
2,020
FEX
imxilife
JavaScript
Code
40
125
const $sqlOrderQuery = require('./sqlCRUD').order; const $sqlUserQuery = require('./sqlCRUD').user; const _ = require('./query'); const orders = { addBookOrder: function (bookid, price, uid, balance) { return Promise.all([ _.query($sqlOrderQuery.buyBook, [uid, price, bookid]), _.qu...
34,501
https://github.com/aterai/kotlin-swing-tips/blob/master/FIFODocument/src/main/kotlin/example/App.kt
Github Open Source
Open Source
MIT
2,022
kotlin-swing-tips
aterai
Kotlin
Code
286
993
package example import java.awt.* // ktlint-disable no-wildcard-imports import java.awt.event.HierarchyEvent import java.time.LocalDateTime import java.time.ZoneId import javax.swing.* // ktlint-disable no-wildcard-imports import javax.swing.event.DocumentEvent import javax.swing.event.DocumentListener import javax.sw...
45,945
https://github.com/geemus/echo-imp/blob/master/electric_imp.rb
Github Open Source
Open Source
MIT
null
echo-imp
geemus
Ruby
Code
278
989
require 'bundler' Bundler.require require 'json' class ElectricImp < Sinatra::Base use Rack::Auth::Basic, "Restricted Area" do |username, password| ENV['CREDENTIALS'].split(",").map {|cred| Rack::Utils.secure_compare(cred, "#{username}:#{password}")}.include?(true) end post '/' do data = JSON.parse(re...
23,447
https://github.com/k-zen/ESXP/blob/master/src/net/apkc/esxp/walker/DOMWalkerFactory.java
Github Open Source
Open Source
BSD-2-Clause
null
ESXP
k-zen
Java
Code
301
561
/* * Copyright (c) 2014, Andreas P. Koenzen <akc at apkc.net> * 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 notice, th...
2,288
https://github.com/rstudio/platform-lib/blob/master/pkg/rsnotify/listeners/postgrespq/pqlistenertest.go
Github Open Source
Open Source
MIT
2,022
platform-lib
rstudio
Go
Code
20
61
package postgrespq // Copyright (C) 2022 by RStudio, PBC. func NewPqListenerWithIP(ip string) *PqListener { return &PqListener{ ip: ip, } }
36,870
https://github.com/wumo/sim-world/blob/master/tensorflow/src/test/kotlin/wumo/sim/tensorflow/SessionTest.kt
Github Open Source
Open Source
MIT
null
sim-world
wumo
Kotlin
Code
103
390
package wumo.sim.tensorflow import org.bytedeco.javacpp.BytePointer import org.bytedeco.javacpp.helper.tensorflow.AbstractTF_Status.newStatus import org.bytedeco.javacpp.helper.tensorflow.AbstractTF_Tensor.newTensor import org.bytedeco.javacpp.tensorflow.DT_UINT8 import org.junit.Test import wumo.sim.tensorflow.ops.Ba...
37,404
https://github.com/TheProxor/code-samples-from-pg/blob/master/Assets/Scripts/GameFlow/Utils/AssetLinksChecker/UnusedAssetsWindow.cs
Github Open Source
Open Source
Unlicense
null
code-samples-from-pg
TheProxor
C#
Code
94
421
using System.Collections.Generic; using UnityEngine; #if UNITY_EDITOR using UnityEditor; #endif namespace AssetsUtils { #if UNITY_EDITOR public class UnusedAssetsWindow : EditorWindow { #region Fields private static Vector2 scrollPos = Vector2.one * 100.0f; private static List...
14,109
https://github.com/josleugim/coding-challenge-lp/blob/master/public/templates/product/ProductCtrl.js
Github Open Source
Open Source
MIT
null
coding-challenge-lp
josleugim
JavaScript
Code
128
488
'use strict'; angular.module('myApp') .directive("ngFileSelect",function(){ return { link: function($scope,el){ el.bind("change", function(e){ $scope.file = (e.srcElement || e.target).files[0]; $scope.getFile(); }) ...
24,790
https://github.com/MobileSeoul/2016seoul-22/blob/master/R_Subway_Android/app/src/main/java/com/estsoft/r_subway_android/UI/Settings/ExpandableListAdapter.java
Github Open Source
Open Source
MIT
2,019
2016seoul-22
MobileSeoul
Java
Code
240
1,002
package com.estsoft.r_subway_android.UI.Settings; import android.app.Activity; import android.content.Context; import android.graphics.Typeface; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.BaseExpandableListAdapter; import android.widget.TextView; ...
25,066
https://github.com/dartin1/yii2-test/blob/master/models/Employer.php
Github Open Source
Open Source
BSD-3-Clause
null
yii2-test
dartin1
PHP
Code
991
3,385
<?php namespace app\models; use Yii; use yii\data\ActiveDataProvider; use yii\data\ArrayDataProvider; use yii\data\SqlDataProvider; use yii\helpers\ArrayHelper; /** * This is the model class for table "employer". * * @property integer $id * @property string $FIO * @property string $Position * @property integer...
27,930
https://github.com/aGGre55or/darkesthour/blob/master/Source/archive/m68k-amigaos/os-include/inline/stubs.h
Github Open Source
Open Source
Unlicense
null
darkesthour
aGGre55or
C
Code
270
812
#ifndef __INLINE_STUB_H #define __INLINE_STUB_H #ifndef EXEC_TYPES_H #include <exec/types.h> #endif #ifndef EXEC_NODES_H #include <exec/lists.h> #endif #ifndef DOS_DOS_H #include <dos/dos.h> #endif #ifndef INTUITION_CLASSES_H #include <intuition/classes.h> #endif #ifndef GRAPHICS_DISPLAYINFO_H #include <graphics/displ...
15,231
https://github.com/oasisvali/Cowin-Notification-Service/blob/master/helpers/notificationHandler.py
Github Open Source
Open Source
MIT
null
Cowin-Notification-Service
oasisvali
Python
Code
134
621
import logging import os import uuid from helpers.constants import EMAIL_SUBJECT, EMAIL_BODY, VERIFY_EMAIL_BODY, VERIFY_SUBJECT, UNSUB_ENDPOINT, \ TEMPLATE_DATA from helpers.db_handler import DBHandler from helpers.queries import ADD_USER_TOKEN from helpers.ses_handler import SESHandler logger = logging.getLogger...
3,519
https://github.com/Chromico/avito-android/blob/master/ci/docker/image-builder/src/main/kotlin/ru/avito/image_builder/internal/command/EmulatorImageBuilder.kt
Github Open Source
Open Source
MIT
null
avito-android
Chromico
Kotlin
Code
405
1,440
package ru.avito.image_builder.internal.command import ru.avito.image_builder.internal.docker.CliDocker import ru.avito.image_builder.internal.docker.ContainerId import ru.avito.image_builder.internal.docker.Image import ru.avito.image_builder.internal.docker.ImageId import java.io.File import java.util.logging.Logger...
2,665
https://github.com/IvanPashchenko/intellij-plugin-verifier/blob/master/intellij-plugin-verifier/verifier-core/src/main/java/com/jetbrains/pluginverifier/verifiers/method/MethodOverridingVerifier.kt
Github Open Source
Open Source
Apache-2.0
null
intellij-plugin-verifier
IvanPashchenko
Kotlin
Code
182
664
/* * Copyright 2000-2020 JetBrains s.r.o. and other contributors. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file. */ package com.jetbrains.pluginverifier.verifiers.method import com.jetbrains.pluginverifier.results.instruction.Instruction import com.jetbrains.plu...
35,547
https://github.com/shadowchamber/SolidCP/blob/master/SolidCP/Sources/SolidCP.WebPortal/DesktopModules/SolidCP/VPS2012/TestVirtualMachineTemplate.aspx
Github Open Source
Open Source
BSD-3-Clause
2,022
SolidCP
shadowchamber
null
Spoken
93
475
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="TestVirtualMachineTemplate.aspx.cs" Inherits="SolidCP.Portal.VPS2012.TestVirtualMachineTemplate" %> <%@ Register src="../UserControls/MessageBox.ascx" tagname="MessageBox" TagPrefix="scp" %> <%@ Register src="../UserControls/SimpleMessageBox.ascx" tagname="Si...
31,684
https://github.com/c4dt/stainless/blob/master/frontends/benchmarks/typechecker/valid/MicroTests/ADTInvariants3.scala
Github Open Source
Open Source
Apache-2.0
2,021
stainless
c4dt
Scala
Code
111
246
import stainless.lang._ object ADTInvariants3 { sealed abstract class A sealed abstract class B extends A { require(this match { case Cons(h, t) => h == size case Nil(_) => true }) def size: BigInt = { decreases(this) this match { case Cons(h, t) => 1 + t.size ...
3,974
https://github.com/jlebray/qonto-api/blob/master/test/test_helper.rb
Github Open Source
Open Source
MIT
null
qonto-api
jlebray
Ruby
Code
48
197
# frozen_string_literal: true PROJECT_ROOT = ::File.expand_path('../', __dir__) require ::File.expand_path('../lib/qonto.rb', __dir__) require 'test/unit' require 'shoulda/context' require 'webmock/test_unit' WebMock.disable_net_connect! module Test module Unit class TestCase setup do url = 'http...
2,483
https://github.com/XinyiYS/Gradient-Driven-Rewards-to-Guarantee-Fairness-in-Collaborative-Machine-Learning/blob/master/utils/Data_Prepper.py
Github Open Source
Open Source
MIT
2,022
Gradient-Driven-Rewards-to-Guarantee-Fairness-in-Collaborative-Machine-Learning
XinyiYS
Python
Code
1,178
4,971
import os import random import argparse import numpy as np import pandas as pd import torch from torch.utils.data import DataLoader, Dataset from torch.utils.data.sampler import SubsetRandomSampler from torchvision.datasets import CIFAR10, CIFAR100 from torchtext.data import Field, LabelField, BucketIterator class ...
9,376