hexsha stringlengths 40 40 | size int64 5 1.05M | ext stringclasses 98
values | lang stringclasses 21
values | max_stars_repo_path stringlengths 3 945 | max_stars_repo_name stringlengths 4 118 | max_stars_repo_head_hexsha stringlengths 40 78 | max_stars_repo_licenses listlengths 1 10 | max_stars_count int64 1 368k ⌀ | max_stars_repo_stars_event_min_datetime stringlengths 24 24 ⌀ | max_stars_repo_stars_event_max_datetime stringlengths 24 24 ⌀ | max_issues_repo_path stringlengths 3 945 | max_issues_repo_name stringlengths 4 118 | max_issues_repo_head_hexsha stringlengths 40 78 | max_issues_repo_licenses listlengths 1 10 | max_issues_count int64 1 134k ⌀ | max_issues_repo_issues_event_min_datetime stringlengths 24 24 ⌀ | max_issues_repo_issues_event_max_datetime stringlengths 24 24 ⌀ | max_forks_repo_path stringlengths 3 945 | max_forks_repo_name stringlengths 4 135 | max_forks_repo_head_hexsha stringlengths 40 78 | max_forks_repo_licenses listlengths 1 10 | max_forks_count int64 1 105k ⌀ | max_forks_repo_forks_event_min_datetime stringlengths 24 24 ⌀ | max_forks_repo_forks_event_max_datetime stringlengths 24 24 ⌀ | content stringlengths 5 1.05M | avg_line_length float64 1 1.03M | max_line_length int64 2 1.03M | alphanum_fraction float64 0 1 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
ddac4a720134eb07c150ef2c266d5e38cf33b089 | 3,358 | java | Java | Algorithms_Java_Implementation/src/com/akh/algorithms/dataStructure/tree/Complete_Binary_Tree_Inserter_919.java | akhr/java | e3b2f2d47a922bbc24fddddf552a4f543793017e | [
"Apache-2.0"
] | 1 | 2019-07-12T01:35:33.000Z | 2019-07-12T01:35:33.000Z | Algorithms_Java_Implementation/src/com/akh/algorithms/dataStructure/tree/Complete_Binary_Tree_Inserter_919.java | akhr/java | e3b2f2d47a922bbc24fddddf552a4f543793017e | [
"Apache-2.0"
] | 5 | 2021-12-14T21:00:59.000Z | 2022-01-04T16:53:16.000Z | Algorithms_Java_Implementation/src/com/akh/algorithms/dataStructure/tree/Complete_Binary_Tree_Inserter_919.java | akhr/java | e3b2f2d47a922bbc24fddddf552a4f543793017e | [
"Apache-2.0"
] | null | null | null | package com.akh.algorithms.dataStructure.tree;
import java.util.Deque;
import java.util.LinkedList;
import java.util.Queue;
/**
* @fileName: Complete_Binary_Tree_Inserter_919.java
* @author: Akhash Ramamurthy
* Created on: Oct 6, 2018
*
* A complete binary tree is a binary tree in which every level, except... | 27.080645 | 185 | 0.651876 |
c0c958bd18a2dce0bdef00911af0b32071631126 | 3,426 | swift | Swift | SwiftUIPro/Screen/LockScreen.swift | shiyulong-ios/SwiftUI | 62b81829be1112e4b01bdf6f7e5a7188bf49d650 | [
"Apache-2.0"
] | 1 | 2021-01-05T07:11:27.000Z | 2021-01-05T07:11:27.000Z | SwiftUIPro/Screen/LockScreen.swift | shiyulong-ios/SwiftUI | 62b81829be1112e4b01bdf6f7e5a7188bf49d650 | [
"Apache-2.0"
] | null | null | null | SwiftUIPro/Screen/LockScreen.swift | shiyulong-ios/SwiftUI | 62b81829be1112e4b01bdf6f7e5a7188bf49d650 | [
"Apache-2.0"
] | null | null | null | //
// LockScreen.swift
// Screen
//
// Created by 石玉龙 on 2021/1/7.
//
import SwiftUI
enum LockState {
case UnLock
case PowerOff
case SOS
}
struct LockScreen: View {
@State var textOpacity:Double=1.0
@State private var offset:CGFloat=0
@State private var progress=0
private var capsuleWi... | 32.628571 | 102 | 0.465558 |
43fc05687756043cf21a440e68449ba06fedd41e | 2,006 | ts | TypeScript | samples/java/sbng/webpubsub-quickstart-angular/src/app/app.component.ts | webcane/azure-webpubsub | 1ea3861f0efce43fcf59dfcb876a5bb22147491e | [
"MIT"
] | null | null | null | samples/java/sbng/webpubsub-quickstart-angular/src/app/app.component.ts | webcane/azure-webpubsub | 1ea3861f0efce43fcf59dfcb876a5bb22147491e | [
"MIT"
] | null | null | null | samples/java/sbng/webpubsub-quickstart-angular/src/app/app.component.ts | webcane/azure-webpubsub | 1ea3861f0efce43fcf59dfcb876a5bb22147491e | [
"MIT"
] | null | null | null | import {Component, OnInit} from '@angular/core';
import {UpdateResponse, UpdateService} from './update/update.service';
import {ToastrService} from 'ngx-toastr';
import {BehaviorSubject, Observable, Subject} from 'rxjs';
import {Select, Store} from '@ngxs/store';
import {CleanStatusesAction, UpdateStatus, UpdateStatusS... | 29.5 | 97 | 0.652044 |
248107b3dd3aff50678df2b3d3962af025fd752b | 5,039 | asm | Assembly | Transynther/x86/_processed/NONE/_st_/i3-7100_9_0x84_notsx.log_1_2664.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 9 | 2020-08-13T19:41:58.000Z | 2022-03-30T12:22:51.000Z | Transynther/x86/_processed/NONE/_st_/i3-7100_9_0x84_notsx.log_1_2664.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 1 | 2021-04-29T06:29:35.000Z | 2021-05-13T21:02:30.000Z | Transynther/x86/_processed/NONE/_st_/i3-7100_9_0x84_notsx.log_1_2664.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 3 | 2020-07-14T17:07:07.000Z | 2022-03-21T01:12:22.000Z | .global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r14
push %r15
push %rax
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_UC_ht+0x94ac, %rsi
lea addresses_normal_ht+0x1e8e3, %rdi
nop
nop
nop
nop
add $8051, %r14
mov $69, %rcx
rep movsb
nop
nop
dec %rax
lea addresses_UC_ht+0x187c7, %rsi
lea addresses_nor... | 20.40081 | 152 | 0.647351 |
a457346c984c521390409ed8d64ed1f01b2241d9 | 11,655 | php | PHP | resources/views/layouts/user.blade.php | hjydmm/myblog-ver2 | 8725599c7c48d9751200be6b313f0f791427a405 | [
"MIT"
] | null | null | null | resources/views/layouts/user.blade.php | hjydmm/myblog-ver2 | 8725599c7c48d9751200be6b313f0f791427a405 | [
"MIT"
] | 2 | 2022-01-15T02:10:13.000Z | 2022-03-02T06:33:35.000Z | resources/views/layouts/user.blade.php | hjydmm/myblog-ver2 | 8725599c7c48d9751200be6b313f0f791427a405 | [
"MIT"
] | null | null | null | @extends('layouts.main')
@section('keywords', config('home.site.keywords'))
@section('description', config('home.site.description'))
@section('mainStyle')
@yield('detailStyle')
@endsection
@section('navList')
@yield('navList')
@endsection
@section('main')
<section id="content">
<div class="container">
... | 42.075812 | 152 | 0.307765 |
b09ecf6018583cf96648951174d943dc2d165d3b | 676 | py | Python | force_gromacs/notification_listeners/hpc_writer/hpc_writer_model.py | force-h2020/force-bdss-plugin-gromacs | 1518185e4cdab824d57570bc5df6c719f1f11bea | [
"MIT"
] | null | null | null | force_gromacs/notification_listeners/hpc_writer/hpc_writer_model.py | force-h2020/force-bdss-plugin-gromacs | 1518185e4cdab824d57570bc5df6c719f1f11bea | [
"MIT"
] | 28 | 2019-09-05T09:05:52.000Z | 2020-11-11T13:32:46.000Z | force_gromacs/notification_listeners/hpc_writer/hpc_writer_model.py | force-h2020/force-bdss-plugin-gromacs | 1518185e4cdab824d57570bc5df6c719f1f11bea | [
"MIT"
] | 1 | 2020-01-15T20:53:17.000Z | 2020-01-15T20:53:17.000Z | # (C) Copyright 2010-2020 Enthought, Inc., Austin, TX
# All rights reserved.
from traits.api import Unicode, Bool, Code
from force_bdss.api import BaseNotificationListenerModel
class HPCWriterModel(BaseNotificationListenerModel):
#: Header to include in all HPC submission scripts
header = Code(desc="Head... | 30.727273 | 74 | 0.720414 |
e2f29f6c1091b4f5c1f3e2b8564d06c9c1301394 | 20 | py | Python | checkov/version.py | athurn/checkov | de59dcc91c1f2224facec01c68e150c7da813491 | [
"Apache-2.0"
] | null | null | null | checkov/version.py | athurn/checkov | de59dcc91c1f2224facec01c68e150c7da813491 | [
"Apache-2.0"
] | null | null | null | checkov/version.py | athurn/checkov | de59dcc91c1f2224facec01c68e150c7da813491 | [
"Apache-2.0"
] | null | null | null | version = '1.0.801'
| 10 | 19 | 0.6 |
1847d56df73614114d429fdcb4bb58894719af1e | 325 | ts | TypeScript | src/map.ts | linwens/xutils-ts-demo | 17c46c2f572123d37eedb2f236a4cb69dbd53b15 | [
"MIT"
] | null | null | null | src/map.ts | linwens/xutils-ts-demo | 17c46c2f572123d37eedb2f236a4cb69dbd53b15 | [
"MIT"
] | 2 | 2020-09-07T03:02:11.000Z | 2021-05-08T04:33:23.000Z | src/map.ts | linwens/xutils-ts-demo | 17c46c2f572123d37eedb2f236a4cb69dbd53b15 | [
"MIT"
] | null | null | null | type Func = (...arg: any) => any
function map(array: any[], iteratee: Func) {
let index = -1
const length = array == null ? 0 : array.length
const result = new Array(length)
while (++index < length) {
result[index] = iteratee(array[index], index, array)
}
return result
}
export default... | 23.214286 | 60 | 0.606154 |
da2cd6874e7a990f708ccd4d8a77743dd8901052 | 3,757 | php | PHP | resources/views/home/view-edit-form.blade.php | maxca/book-can-says | 603acebe335fcf08ad8b69a851c12d8fda9baef9 | [
"MIT"
] | null | null | null | resources/views/home/view-edit-form.blade.php | maxca/book-can-says | 603acebe335fcf08ad8b69a851c12d8fda9baef9 | [
"MIT"
] | 4 | 2021-03-09T16:22:37.000Z | 2022-02-26T17:15:05.000Z | resources/views/home/view-edit-form.blade.php | maxca/book-can-says | 603acebe335fcf08ad8b69a851c12d8fda9baef9 | [
"MIT"
] | null | null | null | @extends('template.body')
@section('contents')
<div class="container">
<form action="{{url('/edit-book')}}" method="post" enctype="multipart/form-data">
{{csrf_field()}}
<input name="id" type="hidden" value="{{$data->id}}"/>
@php
$authorName = implode(",", ... | 40.397849 | 139 | 0.483897 |
7f762b0ac3a1d3f993ee49fcfbe1b48ddbedea38 | 1,880 | php | PHP | app/Http/Controllers/PostsController.php | SunnyAforka/sfghb_admin | 28418c2744b810ab6c4ecf79cc26f5d2a6e5cf8f | [
"MIT"
] | null | null | null | app/Http/Controllers/PostsController.php | SunnyAforka/sfghb_admin | 28418c2744b810ab6c4ecf79cc26f5d2a6e5cf8f | [
"MIT"
] | null | null | null | app/Http/Controllers/PostsController.php | SunnyAforka/sfghb_admin | 28418c2744b810ab6c4ecf79cc26f5d2a6e5cf8f | [
"MIT"
] | null | null | null | <?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use App\Models\Post;
use App\Models\Comment;
use App\Models\Notification;
use App\Models\Livelink;
class PostsController extends Controller
{
public function __construct()
{
$this->middleware('auth');
}
public function index(... | 31.333333 | 124 | 0.540957 |
bf23df329a885737c6f24a2a8838ba2d54bc5e3f | 312 | sql | SQL | SQL_Scripts/merchant_category.sql | amejiali/sql-homework | 7bb3421521e4a38c86b83b175a722e37e8426382 | [
"PostgreSQL",
"CC-BY-2.0"
] | null | null | null | SQL_Scripts/merchant_category.sql | amejiali/sql-homework | 7bb3421521e4a38c86b83b175a722e37e8426382 | [
"PostgreSQL",
"CC-BY-2.0"
] | null | null | null | SQL_Scripts/merchant_category.sql | amejiali/sql-homework | 7bb3421521e4a38c86b83b175a722e37e8426382 | [
"PostgreSQL",
"CC-BY-2.0"
] | null | null | null | INSERT INTO merchant_category(id,name) VALUES (1,'restaurant');
INSERT INTO merchant_category(id,name) VALUES (2,'coffee shop');
INSERT INTO merchant_category(id,name) VALUES (3,'bar');
INSERT INTO merchant_category(id,name) VALUES (4,'pub');
INSERT INTO merchant_category(id,name) VALUES (5,'food truck');
| 52 | 65 | 0.753205 |
bdbd3a705d35be6d4698a9b0acf81a84856ec1f5 | 672 | rb | Ruby | algorithms/minimum_path_sum.rb | rawcliffeisaac/leetcode-1 | c609c4109080cda8f577848319138ff60fd36c6e | [
"MIT"
] | 17 | 2018-07-07T04:11:58.000Z | 2021-02-05T07:23:33.000Z | algorithms/minimum_path_sum.rb | rawcliffeisaac/leetcode-1 | c609c4109080cda8f577848319138ff60fd36c6e | [
"MIT"
] | null | null | null | algorithms/minimum_path_sum.rb | rawcliffeisaac/leetcode-1 | c609c4109080cda8f577848319138ff60fd36c6e | [
"MIT"
] | 5 | 2019-03-19T03:44:57.000Z | 2020-10-30T18:55:42.000Z | # https://leetcode.com/problems/minimum-path-sum/
#
# Given a m x n grid filled with non-negative numbers, find a path from top
# left to bottom right which minimizes the sum of all numbers along its path.
#
# Note: You can only move either down or right at any point in time.
# @param {Integer[][]} grid
# @return {In... | 25.846154 | 77 | 0.60119 |
8489245d9f1d8af5c368528da49be57f032ea765 | 1,364 | dart | Dart | .pub/deps/debug/angular2/lib/src/router/rules/rules.template.dart | smirina/backpack | 7d7d1aaafe052c40db46efca8c95a3efd22dae47 | [
"BSD-3-Clause"
] | null | null | null | .pub/deps/debug/angular2/lib/src/router/rules/rules.template.dart | smirina/backpack | 7d7d1aaafe052c40db46efca8c95a3efd22dae47 | [
"BSD-3-Clause"
] | null | null | null | .pub/deps/debug/angular2/lib/src/router/rules/rules.template.dart | smirina/backpack | 7d7d1aaafe052c40db46efca8c95a3efd22dae47 | [
"BSD-3-Clause"
] | null | null | null | // @ignoreProblemForFile annotate_overrides
// @ignoreProblemForFile cancel_subscriptions
// @ignoreProblemForFile constant_identifier_names
// @ignoreProblemForFile non_constant_identifier_names
// @ignoreProblemForFile implementation_imports
// @ignoreProblemForFile library_prefixes
// @ignoreProblemForFile type_anno... | 38.971429 | 72 | 0.818182 |
dd53e53bd8320315acd49deae561067c3c6f105d | 345 | java | Java | src/java/io/compgen/cgpipe/parser/variable/VarBool.java | compgen-io/cgpipe | 3e7097d165496a625e76048993850104587eb56a | [
"BSD-3-Clause"
] | null | null | null | src/java/io/compgen/cgpipe/parser/variable/VarBool.java | compgen-io/cgpipe | 3e7097d165496a625e76048993850104587eb56a | [
"BSD-3-Clause"
] | null | null | null | src/java/io/compgen/cgpipe/parser/variable/VarBool.java | compgen-io/cgpipe | 3e7097d165496a625e76048993850104587eb56a | [
"BSD-3-Clause"
] | null | null | null | package io.compgen.cgpipe.parser.variable;
public class VarBool extends VarValue {
public static final VarBool TRUE = new VarBool(true);
public static final VarBool FALSE = new VarBool(false);
private VarBool(boolean val) {
super(val);
}
public boolean toBoolean() {
if ((Boolean) obj) {
return true;
... | 18.157895 | 56 | 0.701449 |
f9352d67fc711ca66175c81be417adf0a0517eea | 1,757 | dart | Dart | test/dart2_suggestors/ui_factory_initializer_test.dart | matthewsullivan-wf/over_react_codemod | ae61c1ecf80f66e460a785c0fd2de4d788b698ce | [
"Apache-2.0"
] | null | null | null | test/dart2_suggestors/ui_factory_initializer_test.dart | matthewsullivan-wf/over_react_codemod | ae61c1ecf80f66e460a785c0fd2de4d788b698ce | [
"Apache-2.0"
] | 1 | 2019-02-04T15:37:20.000Z | 2019-02-04T15:37:28.000Z | test/dart2_suggestors/ui_factory_initializer_test.dart | matthewsullivan-wf/over_react_codemod | ae61c1ecf80f66e460a785c0fd2de4d788b698ce | [
"Apache-2.0"
] | null | null | null | // Copyright 2019 Workiva Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in... | 34.45098 | 85 | 0.702903 |
e8085320c5a1c0b7677db11432fe9e12422d5b1a | 343 | lua | Lua | lua/scripts/test1_blink.lua | yingnierxiao/rpi-gpio | fb25e820f8f8c6eb2fccc26998e76505f0d58c85 | [
"MIT"
] | 54 | 2015-01-14T09:54:23.000Z | 2022-03-25T13:00:05.000Z | lua/scripts/test1_blink.lua | yingnierxiao/rpi-gpio | fb25e820f8f8c6eb2fccc26998e76505f0d58c85 | [
"MIT"
] | 1 | 2018-01-05T14:04:42.000Z | 2018-01-06T20:30:31.000Z | lua/scripts/test1_blink.lua | yingnierxiao/rpi-gpio | fb25e820f8f8c6eb2fccc26998e76505f0d58c85 | [
"MIT"
] | 13 | 2015-04-19T00:12:00.000Z | 2021-10-05T14:24:09.000Z | -- Blinks led on P0 / pin11
-- Exits after 10 blinks
local gpio = require("GPIO")
local sleep = function(seconds)
os.execute("sleep "..tostring(seconds).."s")
end
gpio.setmode(gpio.BOARD)
gpio.setup(11, gpio.OUT)
for i = 1,10 do
gpio.output(11, gpio.HIGH)
sleep(0.3)
gpio.output(11, gpio.LOW)
sleep(0.3... | 15.590909 | 46 | 0.664723 |
24bb77c095685fe480c76063b0bc13a3cf782210 | 1,269 | php | PHP | application/index/controller/Ajax.php | SiqiLIU7/website-Thinkphp | 55f15f5c3289386e056ed84076994072c563077a | [
"Apache-2.0"
] | null | null | null | application/index/controller/Ajax.php | SiqiLIU7/website-Thinkphp | 55f15f5c3289386e056ed84076994072c563077a | [
"Apache-2.0"
] | null | null | null | application/index/controller/Ajax.php | SiqiLIU7/website-Thinkphp | 55f15f5c3289386e056ed84076994072c563077a | [
"Apache-2.0"
] | null | null | null | <?php
namespace app\index\controller;
use think\Controller;
use think\Request;
class Ajax extends Controller
{
public function index(Request $request)
{
if($request->isAjax()) {
$myfile = fopen("/home/siqiliu/log1.txt", "r") or die("Unable to open file!" . $myfile);
$res = "";
while ($line = ... | 24.882353 | 93 | 0.552403 |
d7f914dde630e7fd233a1c20bb43a675b391a7e7 | 940 | rb | Ruby | lib/ticket_alert/notifier_listener.rb | carrascoacd/ticket_alert | 4b3ba4a3717fb8a55707239a8f81954b17eaf25b | [
"MIT"
] | null | null | null | lib/ticket_alert/notifier_listener.rb | carrascoacd/ticket_alert | 4b3ba4a3717fb8a55707239a8f81954b17eaf25b | [
"MIT"
] | null | null | null | lib/ticket_alert/notifier_listener.rb | carrascoacd/ticket_alert | 4b3ba4a3717fb8a55707239a8f81954b17eaf25b | [
"MIT"
] | null | null | null | require 'ticket_alert/notifier'
module TicketAlert
class NotifierListener
def initialize(notifier=nil)
@notifier = notifier || Notifier.new
end
def on_new_messages(message_list)
message_list.each do |message|
if message.error.nil?
@notifier.notify "Mensaje recibido!", "H... | 36.153846 | 268 | 0.684043 |
12ddcf096898f6248782d2940bc4d08c86df9294 | 887 | cs | C# | Trainor.Storage/Entities/ResourceDto.cs | TessaJune/ByteMe | a04929f4db4b554b490700e1c612d89e81d2295c | [
"MIT"
] | null | null | null | Trainor.Storage/Entities/ResourceDto.cs | TessaJune/ByteMe | a04929f4db4b554b490700e1c612d89e81d2295c | [
"MIT"
] | null | null | null | Trainor.Storage/Entities/ResourceDto.cs | TessaJune/ByteMe | a04929f4db4b554b490700e1c612d89e81d2295c | [
"MIT"
] | null | null | null | using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
namespace Trainor.Storage.Entities
{
public record ResourceDto(int Id, string? Name, string Link, IEnumerable<AuthorDto>? Authors, SubjectTag? Subject, TypeTag? Type, DateTime? Date) { }
public record ResourceCreateDto... | 29.566667 | 153 | 0.620068 |
384a8ea4d48cedf731fad873c088b25af0652246 | 945 | php | PHP | resources/views/auth/login_select.blade.php | ArtiomKolesnikov/new_auth_fbvz | 1622b61b0b94cec33404143e4dc269e12e9443b9 | [
"MIT"
] | null | null | null | resources/views/auth/login_select.blade.php | ArtiomKolesnikov/new_auth_fbvz | 1622b61b0b94cec33404143e4dc269e12e9443b9 | [
"MIT"
] | null | null | null | resources/views/auth/login_select.blade.php | ArtiomKolesnikov/new_auth_fbvz | 1622b61b0b94cec33404143e4dc269e12e9443b9 | [
"MIT"
] | null | null | null | @extends('layouts.app')
@section('content')
<div class="container">
<div class="row">
<div class="col-md-8 col-md-offset-2">
<div class="panel panel-default">
<div class="panel-heading">Login Select</div>
<ul class="nav nav-tabs nav-justified">
... | 31.5 | 89 | 0.447619 |
07ff6fb94889c58503a881861c64f31d3a18f805 | 6,854 | rb | Ruby | app/helpers/blob_helper.rb | issenzhang/gitlab | 16b9ecb5810abc6221a0187c76c0e859a9ff7db3 | [
"MIT"
] | 3 | 2019-01-26T01:09:20.000Z | 2019-09-24T13:03:44.000Z | app/helpers/blob_helper.rb | issenzhang/gitlab | 16b9ecb5810abc6221a0187c76c0e859a9ff7db3 | [
"MIT"
] | null | null | null | app/helpers/blob_helper.rb | issenzhang/gitlab | 16b9ecb5810abc6221a0187c76c0e859a9ff7db3 | [
"MIT"
] | 3 | 2019-09-24T12:57:45.000Z | 2022-03-07T17:45:53.000Z | module BlobHelper
def highlight(blob_name, blob_content, repository: nil, plain: false)
highlighted = Gitlab::Highlight.highlight(blob_name, blob_content, plain: plain, repository: repository)
raw %(<pre class="code highlight"><code>#{highlighted}</code></pre>)
end
def no_highlight_files
%w(credits c... | 33.930693 | 198 | 0.676685 |
14967867073f3b1640577b160a2776475d80bd2e | 326 | ts | TypeScript | client/src/components/common/buttons/index.ts | sonhoangci/twilio-voice-notification-app | 3cf360c31e9b89b94c0909531172aa9dff8d5e06 | [
"Apache-2.0"
] | 20 | 2020-06-26T17:54:24.000Z | 2021-12-30T12:24:38.000Z | client/src/components/common/buttons/index.ts | craigsdennis/twilio-voice-notification-app | 7de6e41289b58905843cf71d4cf43ac6faf779e7 | [
"Apache-2.0"
] | 28 | 2020-06-29T08:35:05.000Z | 2021-05-10T03:14:47.000Z | client/src/components/common/buttons/index.ts | craigsdennis/twilio-voice-notification-app | 7de6e41289b58905843cf71d4cf43ac6faf779e7 | [
"Apache-2.0"
] | 21 | 2020-06-28T00:04:59.000Z | 2022-01-04T18:53:53.000Z | import DiscardBroadcastButton from './DiscardBroadcastButton';
import NextButton from './NextButton';
import InitiateButton from './InitiateButton';
import HomeButton from './HomeButton';
import BackButton from './BackButton';
export {
BackButton,
DiscardBroadcastButton,
NextButton,
InitiateButton,
HomeButto... | 23.285714 | 62 | 0.779141 |
9e0361e78102c37d9938d858b4dec574c716649f | 1,632 | cs | C# | src/Storage/DriverOperation.cs | robertogiachetta/aegis | 767329c634ce27c87f8f17bd326ba92dd8b34fe9 | [
"ECL-2.0"
] | 4 | 2017-03-04T03:30:48.000Z | 2019-10-02T05:45:43.000Z | src/Storage/DriverOperation.cs | robertogiachetta/aegis | 767329c634ce27c87f8f17bd326ba92dd8b34fe9 | [
"ECL-2.0"
] | 14 | 2017-02-11T16:58:51.000Z | 2021-03-13T21:06:06.000Z | src/Storage/DriverOperation.cs | robertogiachetta/aegis | 767329c634ce27c87f8f17bd326ba92dd8b34fe9 | [
"ECL-2.0"
] | 3 | 2017-12-01T22:34:56.000Z | 2018-06-02T09:59:47.000Z | // <copyright file="DriverOperation.cs" company="Eötvös Loránd University (ELTE)">
// Copyright 2016-2019 Roberto Giachetta. Licensed under the
// Educational Community License, Version 2.0 (the "License"); you may
// not use this file except in compliance with the License. You may
// obtain a copy of ... | 30.792453 | 83 | 0.602328 |
ffb7bd6dabc74dd952f010e4fee663922bd4fc78 | 1,545 | ps1 | PowerShell | bConnect/internal/functions/Invoke-bConnectDelete.ps1 | BaramundiAG/bConnect | 7fc33791dd4724bf0d4b052da92dbdf87d5ea186 | [
"MIT"
] | 4 | 2018-09-25T10:16:07.000Z | 2021-05-28T15:31:27.000Z | bConnect/internal/functions/Invoke-bConnectDelete.ps1 | FriedrichWeinmann/bConnect | 7fc33791dd4724bf0d4b052da92dbdf87d5ea186 | [
"MIT"
] | 6 | 2018-12-16T07:01:09.000Z | 2019-12-17T14:59:15.000Z | bConnect/internal/functions/Invoke-bConnectDelete.ps1 | FriedrichWeinmann/bConnect | 7fc33791dd4724bf0d4b052da92dbdf87d5ea186 | [
"MIT"
] | 2 | 2019-06-20T21:16:25.000Z | 2019-12-19T20:45:53.000Z | function Invoke-bConnectDelete
{
<#
.SYNOPSIS
HTTP-DELETE against bConnect
.DESCRIPTION
HTTP-DELETE against bConnect
.PARAMETER Controller
A description of the Controller parameter.
.PARAMETER Data
Hashtable with parameters
.PARAMETER Version
bConnect version to use
#>
[CmdletBinding()]
param ... | 14.714286 | 184 | 0.628479 |
7bd161d94216488999bf33ab627feddf42b5fb37 | 5,785 | cpp | C++ | KFPlugin/KFMongo/KFMongoReadExecute.cpp | 282951387/KFrame | 5d6e953f7cc312321c36632715259394ca67144c | [
"Apache-2.0"
] | 1 | 2021-04-26T09:31:32.000Z | 2021-04-26T09:31:32.000Z | KFPlugin/KFMongo/KFMongoReadExecute.cpp | 282951387/KFrame | 5d6e953f7cc312321c36632715259394ca67144c | [
"Apache-2.0"
] | null | null | null | KFPlugin/KFMongo/KFMongoReadExecute.cpp | 282951387/KFrame | 5d6e953f7cc312321c36632715259394ca67144c | [
"Apache-2.0"
] | null | null | null | #include "KFMongoReadExecute.hpp"
namespace KFrame
{
KFResult< uint64 >::UniqueType KFMongoReadExecute::Count( const std::string& table )
{
Poco::MongoDB::Database db( _database );
auto request = db.createQueryRequest( "$cmd" );
request->setNumberToReturn( 1 );
request->selecto... | 37.322581 | 149 | 0.429213 |
0ab0b590603f97c6cf46ae8b7c03a1d6d9a3b648 | 312 | cs | C# | src/Weather/Weather.Data/Entities/Information.cs | SaMirzaei/weather | b8915a3578510a8712a921f6e8e4a171af78eee2 | [
"MIT"
] | 1 | 2019-11-07T21:32:16.000Z | 2019-11-07T21:32:16.000Z | src/Weather/Weather.Data/Entities/Information.cs | SaMirzaei/weather | b8915a3578510a8712a921f6e8e4a171af78eee2 | [
"MIT"
] | 4 | 2021-03-09T22:12:55.000Z | 2022-02-26T19:42:19.000Z | src/Weather/Weather.Data/Entities/Information.cs | SaMirzaei/weather | b8915a3578510a8712a921f6e8e4a171af78eee2 | [
"MIT"
] | null | null | null | namespace Weather.Data.Entities
{
using System;
public class Information
{
public Guid Id { get; set; }
public string Country { get; set; }
public string City { get; set; }
public DateTime CreatedAt { get; set; }
public string Json { get; set; }
}
}
| 17.333333 | 47 | 0.567308 |
99dbc8e4cbb9f191391c364c60a22ca6b0a22eb7 | 256 | rb | Ruby | backend/db/migrate/20181027173051_add_columns_to_coupons.rb | jphacks/TK_1810 | 0c47c2a0eaeea47067e066a43def7ed079f77d2c | [
"MIT"
] | 6 | 2018-11-05T15:30:37.000Z | 2020-10-27T09:16:03.000Z | backend/db/migrate/20181027173051_add_columns_to_coupons.rb | jphacks/TK_1810 | 0c47c2a0eaeea47067e066a43def7ed079f77d2c | [
"MIT"
] | 1 | 2018-10-28T02:02:25.000Z | 2018-10-28T02:02:25.000Z | backend/db/migrate/20181027173051_add_columns_to_coupons.rb | jphacks/TK_1810 | 0c47c2a0eaeea47067e066a43def7ed079f77d2c | [
"MIT"
] | 3 | 2019-10-18T10:21:54.000Z | 2021-10-30T00:54:39.000Z | class AddColumnsToCoupons < ActiveRecord::Migration[5.2]
def change
add_column :coupons, :comment, :string, null: false
add_column :coupons, :tweet_url, :string, null: false
add_reference :coupons, :food_category, foreign_key: true
end
end
| 32 | 61 | 0.742188 |
930327545cffd9daa53e40c8713f272588857634 | 1,545 | lua | Lua | sconce/Freeze.lua | anibali/sconce | 76673f36312e41bcbbaab1736d862d617a4b2527 | [
"MIT"
] | null | null | null | sconce/Freeze.lua | anibali/sconce | 76673f36312e41bcbbaab1736d862d617a4b2527 | [
"MIT"
] | null | null | null | sconce/Freeze.lua | anibali/sconce | 76673f36312e41bcbbaab1736d862d617a4b2527 | [
"MIT"
] | null | null | null | ---
-- Wraps another module, adding the ability to freeze and unfreeze parameter
-- updates on that module.
--
-- Use Freeze:freeze() to disable parameter updates on the wrapped module, and
-- Freeze:unfreeze() to enable them. By default the module will be frozen.
--
-- @classmod sconce.Freeze
local Freeze, Parent = r... | 23.769231 | 79 | 0.733333 |
be9593143244564f2b99e76e9dd8eb8aa94dfdc8 | 5,263 | ts | TypeScript | portal/src/main/resources/public/ts/myapps/myapps.service.ts | opendigitaleducation/entcore | 002ebbf8a1dd6c246af86f1e18b6abf971c08322 | [
"Apache-2.0"
] | 21 | 2019-01-30T09:00:54.000Z | 2022-02-28T15:15:05.000Z | portal/src/main/resources/public/ts/myapps/myapps.service.ts | opendigitaleducation/entcore | 002ebbf8a1dd6c246af86f1e18b6abf971c08322 | [
"Apache-2.0"
] | 68 | 2019-02-14T09:03:17.000Z | 2022-03-29T09:35:53.000Z | portal/src/main/resources/public/ts/myapps/myapps.service.ts | opendigitaleducation/entcore | 002ebbf8a1dd6c246af86f1e18b6abf971c08322 | [
"Apache-2.0"
] | 11 | 2019-03-08T08:33:12.000Z | 2021-12-14T20:10:38.000Z | import { model } from "entcore";
import { App } from "./myapps.types";
import http from "axios";
export interface UserAppsPreferenceResponse {
preference: string;
}
export interface UserAppsPreference {
bookmarks: Array<string>;
applications: Array<string>;
}
export class AppsService {
private stati... | 38.698529 | 117 | 0.609538 |
da779f34cb38de0d39798206187ac7b74d56b870 | 13,415 | php | PHP | admin/view/category_view.php | ngthuc/CT263 | c484bba34403e7a27fbd1cd9605ffa89c248c322 | [
"MIT"
] | null | null | null | admin/view/category_view.php | ngthuc/CT263 | c484bba34403e7a27fbd1cd9605ffa89c248c322 | [
"MIT"
] | null | null | null | admin/view/category_view.php | ngthuc/CT263 | c484bba34403e7a27fbd1cd9605ffa89c248c322 | [
"MIT"
] | null | null | null | <?php
/**
* Created by PhpStorm.
* User: trana
* Date: 11/7/2017
* Time: 8:07 AM
*/
class category_view
{
public function create_option($category, $select, $add)
{
if (!$add) {
$selected = $select == "All" ? " selected" : "";
echo "<option value='All'" . $selected . ">All C... | 43.983607 | 174 | 0.423481 |
770c5bdb3ab8ce76dec5e65181b95bf7c749ec3e | 1,236 | swift | Swift | Swift/Repetition/R_LinkedListCycle.swift | devMEremenko/Coding-Challenges | 803b1dfe00afb6a9e9651db02f9a223cb2f1bd64 | [
"MIT"
] | 10 | 2019-07-19T06:17:50.000Z | 2022-01-08T03:00:00.000Z | Swift/Repetition/R_LinkedListCycle.swift | devMEremenko/LeetCode | 803b1dfe00afb6a9e9651db02f9a223cb2f1bd64 | [
"MIT"
] | null | null | null | Swift/Repetition/R_LinkedListCycle.swift | devMEremenko/LeetCode | 803b1dfe00afb6a9e9651db02f9a223cb2f1bd64 | [
"MIT"
] | 1 | 2019-04-11T10:33:50.000Z | 2019-04-11T10:33:50.000Z | //
// R_LinkedListCycle.swift
// CodingChallenges
//
// Created by Maxim Eremenko on 02.01.2020.
// Copyright © 2020 Eremenko Maxim. All rights reserved.
//
import XCTest
class R_LinkedListCycle: XCTestCase {
func test1() {
let head = ListNode(1, ListNode(2))
XCTAssertFalse(hasCycle(head)... | 19.3125 | 57 | 0.508091 |
ecb08dd608cf87dc64d7536fbcbcd66b79fbba60 | 70 | rb | Ruby | lib/apate.rb | Albin-trialbee/Apate | 55ebf3dd26199541dccf9474b70465277015f59d | [
"MIT"
] | null | null | null | lib/apate.rb | Albin-trialbee/Apate | 55ebf3dd26199541dccf9474b70465277015f59d | [
"MIT"
] | 1 | 2015-04-27T22:45:41.000Z | 2015-04-27T22:45:41.000Z | lib/apate.rb | Albin-trialbee/Apate | 55ebf3dd26199541dccf9474b70465277015f59d | [
"MIT"
] | null | null | null | require "apate/version"
require "apate/all_methods"
module Apate
end
| 11.666667 | 27 | 0.8 |
b5530532dd49d5a6cacaaa39cf818a422f7ffed9 | 9,000 | rb | Ruby | db/schema.rb | xjlin0/rv_converter | 1d9cc6f04cf26da896f3b3eb768e8e8b69709014 | [
"MIT"
] | null | null | null | db/schema.rb | xjlin0/rv_converter | 1d9cc6f04cf26da896f3b3eb768e8e8b69709014 | [
"MIT"
] | null | null | null | db/schema.rb | xjlin0/rv_converter | 1d9cc6f04cf26da896f3b3eb768e8e8b69709014 | [
"MIT"
] | null | null | null | # This file is auto-generated from the current state of the database. Instead
# of editing this file, please use the migrations feature of Active Record to
# incrementally modify your database, and then regenerate this schema definition.
#
# Note that this schema.rb definition is the authoritative source for your
# dat... | 52.023121 | 214 | 0.606667 |
be98fd681e430e01b3627c079313d308b379ec67 | 2,888 | tsx | TypeScript | src/lib/uniforms-surfnet/__tests__/logic/LocationCodeField.tsx | wouter1975/orchestrator-core-gui | dbc7f13ad2de48d3a50e7a552962011e469b81d5 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | src/lib/uniforms-surfnet/__tests__/logic/LocationCodeField.tsx | wouter1975/orchestrator-core-gui | dbc7f13ad2de48d3a50e7a552962011e469b81d5 | [
"ECL-2.0",
"Apache-2.0"
] | 1 | 2022-03-22T02:39:52.000Z | 2022-03-22T02:39:52.000Z | src/lib/uniforms-surfnet/__tests__/logic/LocationCodeField.tsx | wouter1975/orchestrator-core-gui | dbc7f13ad2de48d3a50e7a552962011e469b81d5 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | /*
* Copyright 2019-2020 SURF.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in ... | 41.855072 | 114 | 0.626385 |
6f66cf776467c88c4f6d4727f125ce1ca5a12aed | 2,110 | php | PHP | app/Http/Controllers/Seller/SellerController.php | ramsesguillen/curso_api-laravel | e3963b2c4e39b6ebfafdaf43158b835c52b2264b | [
"MIT"
] | null | null | null | app/Http/Controllers/Seller/SellerController.php | ramsesguillen/curso_api-laravel | e3963b2c4e39b6ebfafdaf43158b835c52b2264b | [
"MIT"
] | null | null | null | app/Http/Controllers/Seller/SellerController.php | ramsesguillen/curso_api-laravel | e3963b2c4e39b6ebfafdaf43158b835c52b2264b | [
"MIT"
] | null | null | null | <?php
namespace App\Http\Controllers\Seller;
use App\Http\Controllers\ApiController;
// use App\Http\Controllers\Controller;
use App\Models\Seller;
use Illuminate\Http\Request;
class SellerController extends ApiController
{
/**
* Display a listing of the resource.
*
* @return \Illuminate\Http\Resp... | 25.421687 | 125 | 0.577251 |
cda6719c81359ede1de7755893955553f88bd4df | 420 | cs | C# | Xamarin.PropertyEditing.Windows.Standalone/MockedControlButton.cs | netonjm/Xamarin.PropertyEditing | b0db811113957cc9dc70f883190ad3bd98918671 | [
"MIT"
] | 1 | 2017-10-07T04:29:02.000Z | 2017-10-07T04:29:02.000Z | Xamarin.PropertyEditing.Windows.Standalone/MockedControlButton.cs | Acidburn0zzz/Xamarin.PropertyEditing | 876040e6b5e95d4cb658158d3305a6871bb58f3f | [
"MIT"
] | null | null | null | Xamarin.PropertyEditing.Windows.Standalone/MockedControlButton.cs | Acidburn0zzz/Xamarin.PropertyEditing | 876040e6b5e95d4cb658158d3305a6871bb58f3f | [
"MIT"
] | null | null | null | using System.Windows.Controls;
using Xamarin.PropertyEditing.Tests.MockControls;
namespace Xamarin.PropertyEditing.Windows.Standalone
{
public abstract class MockedControlButton<T> : Button, IMockedControl
where T : MockControl
{
public MockedControlButton(T mockedControl)
{
MockedControl = mockedControl;
... | 22.105263 | 70 | 0.780952 |
1bc55923cc05fa43146a4a85bd5b511955942bd5 | 2,437 | rb | Ruby | lib/insta-catchpoint/api.rb | praymann/insta-catchpoint | 75d7d386eaa9bb4c25b7d3d023894d10cdc5df8d | [
"MIT"
] | 1 | 2017-08-11T22:05:35.000Z | 2017-08-11T22:05:35.000Z | lib/insta-catchpoint/api.rb | praymann/insta-catchpoint | 75d7d386eaa9bb4c25b7d3d023894d10cdc5df8d | [
"MIT"
] | null | null | null | lib/insta-catchpoint/api.rb | praymann/insta-catchpoint | 75d7d386eaa9bb4c25b7d3d023894d10cdc5df8d | [
"MIT"
] | null | null | null | require "insta-catchpoint/ver/version"
require 'net/http'
require 'base64'
require 'json'
require 'uri'
module InstaCatchpoint
class Api
@@host = 'https://io.catchpoint.com'
@@prefix = '/ui/api'
@@version = '/v1'
def initialize opts={}
@key = opts["key"]
@secret = opts[... | 22.357798 | 81 | 0.513746 |
f9959bccfec39423ddb62066ca181291cab1c157 | 299 | swift | Swift | HSWeibo/HSWeibo/Classes/Module/Profile/Controller/HSProfileTableViewController.swift | show90houlang/HSWeibo | 4d48b4b9670e7b33eef6b184a2b0bf8a5bc731eb | [
"Apache-2.0"
] | null | null | null | HSWeibo/HSWeibo/Classes/Module/Profile/Controller/HSProfileTableViewController.swift | show90houlang/HSWeibo | 4d48b4b9670e7b33eef6b184a2b0bf8a5bc731eb | [
"Apache-2.0"
] | null | null | null | HSWeibo/HSWeibo/Classes/Module/Profile/Controller/HSProfileTableViewController.swift | show90houlang/HSWeibo | 4d48b4b9670e7b33eef6b184a2b0bf8a5bc731eb | [
"Apache-2.0"
] | null | null | null | //
// HSProfileTableViewController.swift
// HSWeibo
//
// Created by 曾海胜 on 15/10/27.
// Copyright © 2015年 zhs. All rights reserved.
//
import UIKit
class HSProfileTableViewController: HSBaseTableViewController {
override func viewDidLoad() {
super.viewDidLoad()
}
}
| 16.611111 | 63 | 0.675585 |
937f95c0a8210d5ca40adb7416fb2ceeda4cf4db | 133 | cs | C# | src/Quidjibo.Autofac.Tests/Samples/CustomClientKey2.cs | vcsjones/Quidjibo | c81f4eb5973b80671f5542024b4c2b27b9289cb6 | [
"Apache-2.0"
] | 16 | 2017-09-22T17:12:37.000Z | 2022-01-16T21:28:02.000Z | src/Quidjibo.Autofac.Tests/Samples/CustomClientKey2.cs | vcsjones/Quidjibo | c81f4eb5973b80671f5542024b4c2b27b9289cb6 | [
"Apache-2.0"
] | 11 | 2017-10-21T15:14:00.000Z | 2019-02-14T12:48:22.000Z | src/Quidjibo.Autofac.Tests/Samples/CustomClientKey2.cs | vcsjones/Quidjibo | c81f4eb5973b80671f5542024b4c2b27b9289cb6 | [
"Apache-2.0"
] | 5 | 2017-12-14T20:28:14.000Z | 2021-08-20T04:54:01.000Z | using Quidjibo.Misc;
namespace Quidjibo.Autofac.Tests.Samples
{
public class CustomClientKey2 : IQuidjiboClientKey
{
}
} | 16.625 | 54 | 0.736842 |
43ca5e3906c04a8537747d1392f0f19b0b7d02da | 2,547 | ts | TypeScript | loads/json.ts | wevisdemo/bkk-followup-data | 9bf536ad43a547a8d3ae2c864f6ad9411b0f4c12 | [
"MIT"
] | null | null | null | loads/json.ts | wevisdemo/bkk-followup-data | 9bf536ad43a547a8d3ae2c864f6ad9411b0f4c12 | [
"MIT"
] | null | null | null | loads/json.ts | wevisdemo/bkk-followup-data | 9bf536ad43a547a8d3ae2c864f6ad9411b0f4c12 | [
"MIT"
] | 1 | 2022-03-01T11:41:44.000Z | 2022-03-01T11:41:44.000Z | import { BaseReport } from '../models/base-report.ts';
import { Maps } from '../models/map.ts';
import { ProblemType } from '../models/problem-type.ts';
import { ReportSuite } from '../models/reports.ts';
import { District as ExtractedDistrict } from '../extracts/district.ts';
export async function loadReportSuiteToJs... | 48.980769 | 115 | 0.707892 |
b06d500456a17fff250fdc19fdba3a4c134815c4 | 6,242 | py | Python | tests/cli/test_status.py | lokijuhy/renku-python | 0bfceafa4e6b4750439ab0ed20c61b0a6ba03a1f | [
"Apache-2.0"
] | null | null | null | tests/cli/test_status.py | lokijuhy/renku-python | 0bfceafa4e6b4750439ab0ed20c61b0a6ba03a1f | [
"Apache-2.0"
] | null | null | null | tests/cli/test_status.py | lokijuhy/renku-python | 0bfceafa4e6b4750439ab0ed20c61b0a6ba03a1f | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
#
# Copyright 2017-2021 - Swiss Data Science Center (SDSC)
# A partnership between École Polytechnique Fédérale de Lausanne (EPFL) and
# Eidgenössische Technische Hochschule Zürich (ETHZ).
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in c... | 39.0125 | 99 | 0.706825 |
9306c99133778f1288a8c39b0a7c1185b4a81661 | 1,082 | go | Go | api/gogiel.go | pizza61/la | 92feaac01cd24013cce7d14cc484bf81726dda9d | [
"MIT"
] | null | null | null | api/gogiel.go | pizza61/la | 92feaac01cd24013cce7d14cc484bf81726dda9d | [
"MIT"
] | 3 | 2021-03-08T23:59:37.000Z | 2021-10-05T20:05:08.000Z | api/gogiel.go | pizza61/la | 92feaac01cd24013cce7d14cc484bf81726dda9d | [
"MIT"
] | null | null | null | package api
import (
"encoding/json"
"errors"
"fmt"
"io/ioutil"
"net/http"
"os"
"github.com/labstack/echo"
)
func GetUserData(c echo.Context) (GoogleData, error) {
co, err := c.Cookie("access_token")
if err != nil {
return GoogleData{}, err
}
resp, err := http.Get("https://www.googleapis.com/oauth2/v2/u... | 19.321429 | 96 | 0.666359 |
af5928dab4c3293f4189d69006bc03e0cc886cda | 4,901 | py | Python | src/trw/layers/encoder_decoder_resnet.py | civodlu/trw | b9a1cf045f61d6df9c65c014ef63b4048972dcdc | [
"MIT"
] | 3 | 2019-07-04T01:20:41.000Z | 2020-01-27T02:36:12.000Z | src/trw/layers/encoder_decoder_resnet.py | civodlu/trw | b9a1cf045f61d6df9c65c014ef63b4048972dcdc | [
"MIT"
] | null | null | null | src/trw/layers/encoder_decoder_resnet.py | civodlu/trw | b9a1cf045f61d6df9c65c014ef63b4048972dcdc | [
"MIT"
] | 2 | 2020-10-19T13:46:06.000Z | 2021-12-27T02:18:10.000Z | import collections
from functools import partial
import copy
from typing import Sequence, Optional, Any, List
import torch.nn as nn
from ..basic_typing import ConvStrides, Activation, TorchTensorNCX
from .layer_config import LayerConfig, default_layer_config, NormType
from .blocks import ConvBlockType, BlockConvNorm... | 38.289063 | 118 | 0.629463 |
8d9e58170aa955b4be6a91b6b3c5d1f6c006a4c4 | 3,216 | js | JavaScript | node_modules/arcgis-js-api/views/2d/input/MapViewInputManager.js | rihorn/ky-libaries | a3ae1e743b62b9784cd62c4983740c6bc037fbf1 | [
"Apache-2.0"
] | null | null | null | node_modules/arcgis-js-api/views/2d/input/MapViewInputManager.js | rihorn/ky-libaries | a3ae1e743b62b9784cd62c4983740c6bc037fbf1 | [
"Apache-2.0"
] | null | null | null | node_modules/arcgis-js-api/views/2d/input/MapViewInputManager.js | rihorn/ky-libaries | a3ae1e743b62b9784cd62c4983740c6bc037fbf1 | [
"Apache-2.0"
] | null | null | null | // COPYRIGHT © 2018 Esri
//
// All rights reserved under the copyright laws of the United States
// and applicable international laws, treaties, and conventions.
//
// This material is licensed for use under the Esri Master License
// Agreement (MLA), and is bound by the terms of that agreement.
// You may redistribute... | 128.64 | 2,379 | 0.742537 |
df4c5d7ce9a9aaa4182c9856ac1e6525501cfdec | 217 | cs | C# | FCommerce/FCommerce.Core/Context/IContext.cs | RedNoo/FCommerce | 8d18d4aedc1db0bca28993b54bf52e16696883c1 | [
"MIT"
] | null | null | null | FCommerce/FCommerce.Core/Context/IContext.cs | RedNoo/FCommerce | 8d18d4aedc1db0bca28993b54bf52e16696883c1 | [
"MIT"
] | null | null | null | FCommerce/FCommerce.Core/Context/IContext.cs | RedNoo/FCommerce | 8d18d4aedc1db0bca28993b54bf52e16696883c1 | [
"MIT"
] | null | null | null | using FCommerce.Core.Command;
using FCommerce.Core.Query;
namespace FCommerce.Core.Context
{
public interface IContext
{
T Query<T>(IQuery<T> query);
int? Execute(ICommand command);
}
}
| 16.692308 | 39 | 0.663594 |
3f86994f0791496cffbb148340b3540fe2417d41 | 2,003 | php | PHP | frontend/components/views/first-modal.php | AliaksandrHaurylenka/belstekloprom.new | b3dd400cfd34f3f0e0b05a43cd09468579b9999b | [
"BSD-3-Clause"
] | null | null | null | frontend/components/views/first-modal.php | AliaksandrHaurylenka/belstekloprom.new | b3dd400cfd34f3f0e0b05a43cd09468579b9999b | [
"BSD-3-Clause"
] | null | null | null | frontend/components/views/first-modal.php | AliaksandrHaurylenka/belstekloprom.new | b3dd400cfd34f3f0e0b05a43cd09468579b9999b | [
"BSD-3-Clause"
] | null | null | null | <?
use yii\helpers\Html;
?>
<h2>Новинки производства</h2>
<?php foreach ($firstModal as $first): ?>
<div class="d-flex justify-content-around pt-2 carousel-item">
<img class="d-block img-fluid img-new" src="images/bottle/<?= $first['name_2'] ?>.png"
alt="<?= $first['name_1'] ?>"
title="с... | 30.348485 | 115 | 0.393909 |
83423b7bf67d97da5c1c60bb08a76acbd0ba1245 | 989 | ts | TypeScript | app/styles/buttons.ts | gmarler/angular2-deep-dive | 93df0ae231b76c08be5d12993273a8095ca2516b | [
"MIT"
] | null | null | null | app/styles/buttons.ts | gmarler/angular2-deep-dive | 93df0ae231b76c08be5d12993273a8095ca2516b | [
"MIT"
] | null | null | null | app/styles/buttons.ts | gmarler/angular2-deep-dive | 93df0ae231b76c08be5d12993273a8095ca2516b | [
"MIT"
] | null | null | null | import {COLORS} from './colors';
export const BUTTONS = `
.btn {
text-transform: uppercase;
border: none;
-webkit-box-shadow: 1px 1px 4px rgba(0, 0, 0, 0.4);
box-shadow: 1px 1px 4px rgba(0, 0, 0, 0.4);
-webkit-transition: all 0.4s;
-o-transition: all 0.4s;
transition: all 0.4s;
displa... | 21.977778 | 55 | 0.617796 |
a1f6f4ae30d57607aedab0f270e725c0bed4316d | 86,728 | lua | Lua | Assets/sgk/Lua/module/TeamModule.lua | freeGamePerson/dev_update | 80f75ff1ba6fd0d008e6a4989c2ba09e48129c38 | [
"BSD-3-Clause"
] | 1 | 2019-12-30T06:54:48.000Z | 2019-12-30T06:54:48.000Z | Assets/sgk/Lua/module/TeamModule.lua | freeGamePerson/dev_update | 80f75ff1ba6fd0d008e6a4989c2ba09e48129c38 | [
"BSD-3-Clause"
] | null | null | null | Assets/sgk/Lua/module/TeamModule.lua | freeGamePerson/dev_update | 80f75ff1ba6fd0d008e6a4989c2ba09e48129c38 | [
"BSD-3-Clause"
] | 3 | 2019-12-30T06:54:52.000Z | 2020-12-31T10:04:10.000Z | local NetworkService = require "utils.NetworkService"
local EventManager = require "utils.EventManager"
local Time = require "module.Time"
local playerModule = require "module.playerModule"
local Property = require "utils.Property"
local UserDefault = require "utils.UserDefault";
local PlayerInfoHelper = require "utils... | 32.926348 | 205 | 0.61453 |
da92ac8a96e4bf315aa6cad2249205e2124a1e4d | 193 | ts | TypeScript | lib/defaults/EmailDefault.ts | fabrix-app/spool-generics | f98f191367fefaa612bd9359459098c680b9c33d | [
"MIT"
] | 4 | 2018-06-26T17:12:57.000Z | 2018-11-02T08:40:37.000Z | lib/defaults/EmailDefault.ts | fabrix-app/spool-generics | f98f191367fefaa612bd9359459098c680b9c33d | [
"MIT"
] | null | null | null | lib/defaults/EmailDefault.ts | fabrix-app/spool-generics | f98f191367fefaa612bd9359459098c680b9c33d | [
"MIT"
] | null | null | null | import { Generic } from '../Generic'
export class EmailDefault extends Generic {
send(data) {
return Promise.resolve([])
}
sendTemplate(data) {
return Promise.resolve([])
}
}
| 16.083333 | 43 | 0.647668 |
8178643cb64cd2e0916f5d58bf195e1732b8b616 | 104 | dart | Dart | example_getx/lib/src/controller/controller2.dart | nonameJ-admin-Captains-Quarter/ff_annotation_route | 636f1ab8c1f47c1c4ca3ba75ec4aa92f8bff9c61 | [
"MIT"
] | 1 | 2022-01-12T08:15:23.000Z | 2022-01-12T08:15:23.000Z | example_getx/lib/src/controller/controller2.dart | nonameJ-admin-Captains-Quarter/ff_annotation_route | 636f1ab8c1f47c1c4ca3ba75ec4aa92f8bff9c61 | [
"MIT"
] | null | null | null | example_getx/lib/src/controller/controller2.dart | nonameJ-admin-Captains-Quarter/ff_annotation_route | 636f1ab8c1f47c1c4ca3ba75ec4aa92f8bff9c61 | [
"MIT"
] | null | null | null | import 'package:get/get.dart';
class GetxController2 extends GetxController {
RxInt count = 0.obs;
}
| 17.333333 | 46 | 0.75 |
2ca0868df886eef1158e67778b8194223fc021de | 686 | py | Python | sis_provisioner/account_managers/customgrp_bridge.py | uw-it-aca/bridge-sis-provisioner | 6dd31e5ef59263acbcade5e6e4f74b815c16bdee | [
"Apache-2.0"
] | null | null | null | sis_provisioner/account_managers/customgrp_bridge.py | uw-it-aca/bridge-sis-provisioner | 6dd31e5ef59263acbcade5e6e4f74b815c16bdee | [
"Apache-2.0"
] | 175 | 2016-07-18T23:25:45.000Z | 2022-02-07T20:44:05.000Z | sis_provisioner/account_managers/customgrp_bridge.py | uw-it-aca/bridge-sis-provisioner | 6dd31e5ef59263acbcade5e6e4f74b815c16bdee | [
"Apache-2.0"
] | null | null | null | # Copyright 2021 UW-IT, University of Washington
# SPDX-License-Identifier: Apache-2.0
import logging
from sis_provisioner.account_managers.gws_bridge import GwsBridgeLoader
from sis_provisioner.dao.gws import get_additional_users
logger = logging.getLogger(__name__)
class CustomGroupLoader(GwsBridgeLoader):
""... | 28.583333 | 71 | 0.74344 |
da70bb5421f601c5db175480e602984823e8d97b | 4,236 | php | PHP | routes/web.php | dariuszptaszynski177/project_IB | 11629fd8c9ec182007c3e57a687e0d3bf1f6f951 | [
"MIT"
] | null | null | null | routes/web.php | dariuszptaszynski177/project_IB | 11629fd8c9ec182007c3e57a687e0d3bf1f6f951 | [
"MIT"
] | null | null | null | routes/web.php | dariuszptaszynski177/project_IB | 11629fd8c9ec182007c3e57a687e0d3bf1f6f951 | [
"MIT"
] | null | null | null | <?php
use Illuminate\Support\Facades\Route;
/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
*/
Route::get('/', 'App\Http\Controllers\PageController@main_page')->name('main-page');
Route::get('das... | 73.034483 | 173 | 0.728045 |
05a444d804d5c5b4b9de401a739ad615098cda5a | 17,360 | py | Python | app/forecast_parser.py | energinet-singularity/forecast-parser | 7c65188a16ea7da449d0f188e1b50cd72b9787c8 | [
"Apache-2.0"
] | null | null | null | app/forecast_parser.py | energinet-singularity/forecast-parser | 7c65188a16ea7da449d0f188e1b50cd72b9787c8 | [
"Apache-2.0"
] | 13 | 2021-11-18T15:07:07.000Z | 2022-01-31T10:54:24.000Z | app/forecast_parser.py | energinet-singularity/forecast-parser | 7c65188a16ea7da449d0f188e1b50cd72b9787c8 | [
"Apache-2.0"
] | null | null | null | import logging
from kafka import KafkaProducer
import pandas as pd
from datetime import datetime as dt, timedelta as td
import json
import re
import os
import time
import requests
from sched import scheduler
from typing import List, Tuple
# Initialize log
log = logging.getLogger(__name__)
def extract_forecast(filepa... | 43.72796 | 126 | 0.602995 |
652a1f79fa3bbbf570848cf96e051b4a0677f231 | 3,235 | lua | Lua | data/scripts/prefabs/pigking.lua | GuLiPing-Hz/Dontstarve_m | c2f12c8c2b79ed6d5762b130f5702d70bc020596 | [
"MIT"
] | 4 | 2019-11-18T08:13:29.000Z | 2021-04-02T00:08:35.000Z | data/scripts/prefabs/pigking.lua | GuLiPing-Hz/Dontstarve_m | c2f12c8c2b79ed6d5762b130f5702d70bc020596 | [
"MIT"
] | null | null | null | data/scripts/prefabs/pigking.lua | GuLiPing-Hz/Dontstarve_m | c2f12c8c2b79ed6d5762b130f5702d70bc020596 | [
"MIT"
] | 2 | 2019-08-04T07:12:15.000Z | 2019-12-24T03:34:16.000Z | local assets=
{
Asset("ANIM", "anim/pig_king.zip"),
Asset("SOUND", "sound/pig.fsb"),
}
local prefabs =
{
"goldnugget",
}
local function OnGetItemFromPlayer(inst, giver, item)
if item.components.tradable.goldvalue > 0 then
inst.AnimState:PlayAnimation("cointoss")
inst.AnimState:PushAnimation("... | 30.809524 | 93 | 0.650386 |
807f61d2b798c265693dea4c46e51f001844e4ad | 7,235 | html | HTML | public/docs/clearLocks.html | organisciak/crowdy-backend | c5c85776d492fb97f18f6ad895c4f0765e804e61 | [
"MIT"
] | null | null | null | public/docs/clearLocks.html | organisciak/crowdy-backend | c5c85776d492fb97f18f6ad895c4f0765e804e61 | [
"MIT"
] | null | null | null | public/docs/clearLocks.html | organisciak/crowdy-backend | c5c85776d492fb97f18f6ad895c4f0765e804e61 | [
"MIT"
] | null | null | null | <!DOCTYPE html>
<html>
<head>
<title>ClearLocks</title>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<meta name="viewport" content="width=device-width, target-densitydpi=160dpi, initial-scale=1.0; maximum-scale=1.0; user-scalable=0;">
<link rel="stylesheet" media="all" href="docco.css" /... | 46.378205 | 285 | 0.597236 |
f4293d8c8138771d90f24214dae1a842a5d44183 | 898 | cs | C# | CollectionsDemo/CollectionsDemo/Cube.cs | RakeshThakur26/Day5-Training | 529fba91156ea99faf10f2a279c89b3fb44ff48a | [
"MIT"
] | null | null | null | CollectionsDemo/CollectionsDemo/Cube.cs | RakeshThakur26/Day5-Training | 529fba91156ea99faf10f2a279c89b3fb44ff48a | [
"MIT"
] | null | null | null | CollectionsDemo/CollectionsDemo/Cube.cs | RakeshThakur26/Day5-Training | 529fba91156ea99faf10f2a279c89b3fb44ff48a | [
"MIT"
] | null | null | null | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace CollectionsDemo
{
interface Shapes
{
double area();
double volume();
}
class Cube : Shapes
{
int x = 10;
public double area()
... | 16.62963 | 52 | 0.47216 |
c1437e0307b74f281794799ae90c3497130b1888 | 68 | sql | SQL | packaging/dbscripts/upgrade/04_04_0480_add_boot_uuid.sql | jihwahn1018/ovirt-engine | 5c8a3d9a9637eefb28e4accc3cbd2b7f530d5ec9 | [
"Apache-2.0"
] | 347 | 2015-01-20T14:13:21.000Z | 2022-03-31T17:53:11.000Z | packaging/dbscripts/upgrade/04_04_0480_add_boot_uuid.sql | jihwahn1018/ovirt-engine | 5c8a3d9a9637eefb28e4accc3cbd2b7f530d5ec9 | [
"Apache-2.0"
] | 128 | 2015-05-22T19:14:32.000Z | 2022-03-31T08:11:18.000Z | packaging/dbscripts/upgrade/04_04_0480_add_boot_uuid.sql | jihwahn1018/ovirt-engine | 5c8a3d9a9637eefb28e4accc3cbd2b7f530d5ec9 | [
"Apache-2.0"
] | 202 | 2015-01-04T06:20:49.000Z | 2022-03-08T15:30:08.000Z | select fn_db_add_column('vds_dynamic', 'boot_uuid', 'VARCHAR(64)');
| 34 | 67 | 0.75 |
f4cb2eb5a659555a16bd6c7a03c47ec7c96ae98e | 4,356 | tsx | TypeScript | packages/@remirror/react-social/src/hooks/__tests__/use-social-emoji.spec.tsx | juanpicado/remirror | 898c62e054ddbd8422441d629d5b555d869df88e | [
"MIT"
] | null | null | null | packages/@remirror/react-social/src/hooks/__tests__/use-social-emoji.spec.tsx | juanpicado/remirror | 898c62e054ddbd8422441d629d5b555d869df88e | [
"MIT"
] | null | null | null | packages/@remirror/react-social/src/hooks/__tests__/use-social-emoji.spec.tsx | juanpicado/remirror | 898c62e054ddbd8422441d629d5b555d869df88e | [
"MIT"
] | null | null | null | import { fireEvent } from '@testing-library/dom';
import { act, renderHook } from '@testing-library/react-hooks';
import { RemirrorTestChain } from 'jest-remirror';
import React, { FC } from 'react';
import { createReactManager } from '@remirror/testing/react';
import { SocialProvider } from '../../components/social-... | 21.78 | 93 | 0.538108 |
2564fdad49b10150660bdda9699b5e7936d8ac0a | 1,922 | js | JavaScript | vst3sdk/doc/vstgui/html/class_v_s_t_g_u_i_1_1_a_eff_g_u_i_editor.js | MOAMaster/AudioPlugSharp-SamplePlugins | dbe3cc445a7834e7e0f922f53a35973d6d9b583a | [
"MIT"
] | null | null | null | vst3sdk/doc/vstgui/html/class_v_s_t_g_u_i_1_1_a_eff_g_u_i_editor.js | MOAMaster/AudioPlugSharp-SamplePlugins | dbe3cc445a7834e7e0f922f53a35973d6d9b583a | [
"MIT"
] | null | null | null | vst3sdk/doc/vstgui/html/class_v_s_t_g_u_i_1_1_a_eff_g_u_i_editor.js | MOAMaster/AudioPlugSharp-SamplePlugins | dbe3cc445a7834e7e0f922f53a35973d6d9b583a | [
"MIT"
] | null | null | null | var class_v_s_t_g_u_i_1_1_a_eff_g_u_i_editor =
[
[ "AEffGUIEditor", "class_v_s_t_g_u_i_1_1_a_eff_g_u_i_editor.html#a1607650d2fb5f4a088b4003ed5d1ce87", null ],
[ "~AEffGUIEditor", "class_v_s_t_g_u_i_1_1_a_eff_g_u_i_editor.html#ac15e2e4e59d33716663ac39c96f18b66", null ],
[ "beforeSizeChange", "class_v_s_t_g_u... | 96.1 | 116 | 0.818939 |
e23d002d8d01609c7a1ee0cf414a269d20928d05 | 608 | py | Python | yandex_kassa/loggers.py | ZarinaAfl/django-yandex-kassa | da1f68c7d3fa5976aa9071052c2767fa676b1470 | [
"MIT"
] | 28 | 2015-12-28T12:49:11.000Z | 2020-12-16T02:38:58.000Z | yandex_kassa/loggers.py | ZarinaAfl/django-yandex-kassa | da1f68c7d3fa5976aa9071052c2767fa676b1470 | [
"MIT"
] | 11 | 2015-12-13T16:50:17.000Z | 2017-09-20T11:48:14.000Z | yandex_kassa/loggers.py | ZarinaAfl/django-yandex-kassa | da1f68c7d3fa5976aa9071052c2767fa676b1470 | [
"MIT"
] | 24 | 2016-04-08T12:42:27.000Z | 2021-03-26T07:03:19.000Z | # -*- coding: utf-8 -*-
import json
import logging
class ErrorsFilter(logging.Filter):
def filter(self, record):
errors = getattr(record, 'errors', None)
if errors:
if isinstance(errors, dict):
try:
record.errors = json.dumps(errors,
... | 25.333333 | 66 | 0.424342 |
d025d0860122f0b23098d8f665f5ed5f165a42ad | 515 | swift | Swift | Example/DeviceData/Model/PostDataResponse.swift | sahil4cartoondeveloper/DeviceDataLibrary | ca368348d27727720e302fda1c702657065735f2 | [
"MIT"
] | null | null | null | Example/DeviceData/Model/PostDataResponse.swift | sahil4cartoondeveloper/DeviceDataLibrary | ca368348d27727720e302fda1c702657065735f2 | [
"MIT"
] | null | null | null | Example/DeviceData/Model/PostDataResponse.swift | sahil4cartoondeveloper/DeviceDataLibrary | ca368348d27727720e302fda1c702657065735f2 | [
"MIT"
] | null | null | null | //
// PostDataResponse.swift
// DeviceData_Example
//
// Created by sahil vadadoriya on 22/10/21.
// Copyright © 2021 CocoaPods. All rights reserved.
//
import Foundation
import ObjectMapper
struct PostDataResponse : Mappable {
var userId : Int?
var id : Int?
var title : String?
var body : String?... | 16.09375 | 52 | 0.586408 |
258940ccb04297fc8a2d6dba9b6659b6d31e0dbc | 711 | cs | C# | YanZhiwei.DotNet2.Utilities.WinFromExamples/winSerialPortExamle.cs | wind2006/DotNet.Utilities | 21726109548bed8a09d537a9080cf2e89ba01c6f | [
"MIT"
] | 2 | 2019-10-14T16:41:23.000Z | 2021-02-02T07:03:01.000Z | YanZhiwei.DotNet2.Utilities.WinFromExamples/winSerialPortExamle.cs | wind2006/DotNet.Utilities | 21726109548bed8a09d537a9080cf2e89ba01c6f | [
"MIT"
] | null | null | null | YanZhiwei.DotNet2.Utilities.WinFromExamples/winSerialPortExamle.cs | wind2006/DotNet.Utilities | 21726109548bed8a09d537a9080cf2e89ba01c6f | [
"MIT"
] | 2 | 2019-04-01T12:47:41.000Z | 2021-02-02T07:03:02.000Z | using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using YanZhiwei.DotNet2.Utilities.Common;
using YanZhiwei.DotNet2.Utilities.Enums;
using YanZhiwei.DotNet2.Utilities.WinForm;
namespace... | 23.7 | 90 | 0.721519 |
73591e04c011aad3ecaaff8693ca8ee5cbafb344 | 1,490 | sh | Shell | test/integration/all_tests.sh | trekmedics/beacon | 67db2aa052b98ae2e3381c05ab5b517d223b736e | [
"MIT"
] | 6 | 2017-04-02T01:32:37.000Z | 2020-08-17T16:12:57.000Z | test/integration/all_tests.sh | trekmedics/beacon | 67db2aa052b98ae2e3381c05ab5b517d223b736e | [
"MIT"
] | null | null | null | test/integration/all_tests.sh | trekmedics/beacon | 67db2aa052b98ae2e3381c05ab5b517d223b736e | [
"MIT"
] | 4 | 2017-09-21T04:18:35.000Z | 2020-05-18T17:42:44.000Z | echo "Running 2_incidents_1_fr"
bundle exec rails r test/integration/test_std_2_incidents_1_fr.rb > test_results.txt
echo "Running addl_res"
bundle exec rails r test/integration/test_std_addl_res.rb >> test_results.txt
echo "Running cannot_locate"
bundle exec rails r test/integration/test_std_cannot_locate.rb ... | 46.5625 | 93 | 0.808725 |
2f3fb58f1cd6e42e902bc0e24814c8cad45c8fb2 | 167 | js | JavaScript | src/seeds/problems/two-sum/javascript/main.js | tabjy/cmpt383-project | 47b6010b5ec277e8020b0a333cb2ee3fff06928a | [
"MIT"
] | null | null | null | src/seeds/problems/two-sum/javascript/main.js | tabjy/cmpt383-project | 47b6010b5ec277e8020b0a333cb2ee3fff06928a | [
"MIT"
] | null | null | null | src/seeds/problems/two-sum/javascript/main.js | tabjy/cmpt383-project | 47b6010b5ec277e8020b0a333cb2ee3fff06928a | [
"MIT"
] | null | null | null | const nums = process.argv[3].split(', ').map(parseFloat)
const target = parseFloat(process.argv[4])
console.log(require('./solution')(nums, target).sort().join(', ')) | 41.75 | 66 | 0.688623 |
ed3e25fd4e42d3c5edb751b00cfb5f4165deb003 | 399 | h | C | tempsensor_v1/src/system/hardware_buttons.h | sergioamr/vaccinemonitoring | 9ae91df587542a1565803053c65809e67a5747f1 | [
"Apache-2.0"
] | null | null | null | tempsensor_v1/src/system/hardware_buttons.h | sergioamr/vaccinemonitoring | 9ae91df587542a1565803053c65809e67a5747f1 | [
"Apache-2.0"
] | null | null | null | tempsensor_v1/src/system/hardware_buttons.h | sergioamr/vaccinemonitoring | 9ae91df587542a1565803053c65809e67a5747f1 | [
"Apache-2.0"
] | null | null | null | /*
* hardware_buttons.h
*
* Created on: Jun 1, 2015
* Author: sergioam
*/
#ifndef HARDWARE_BUTTONS_H_
#define HARDWARE_BUTTONS_H_
#define MODEM_ON !(P4IN & BIT0)
#define POWER_ON !(P4IN & BIT4)
void switchers_setupIO();
uint8_t switch_check_service_pressed();
void hardware_disable_buttons();
void hardwar... | 18.136364 | 39 | 0.744361 |
9e21fc0e0aee9aaa1bbb909359244c085bb35f6b | 14,963 | cs | C# | src/AmqpBitConverter.cs | NakWarsi/amqpnetlite | cbc6bef583d6a57ae48bb03ed2ea864770007b48 | [
"Apache-2.0"
] | 367 | 2015-08-17T06:52:49.000Z | 2022-03-16T16:53:02.000Z | src/AmqpBitConverter.cs | NakWarsi/amqpnetlite | cbc6bef583d6a57ae48bb03ed2ea864770007b48 | [
"Apache-2.0"
] | 446 | 2015-08-11T05:05:51.000Z | 2022-03-31T22:45:16.000Z | src/AmqpBitConverter.cs | NakWarsi/amqpnetlite | cbc6bef583d6a57ae48bb03ed2ea864770007b48 | [
"Apache-2.0"
] | 173 | 2015-08-13T13:52:14.000Z | 2022-02-24T07:56:23.000Z | // ------------------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation
// 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 cop... | 38.966146 | 151 | 0.552897 |
da78f88061735de792c5be06d7ff1a271ec6128b | 11,809 | php | PHP | RECEPTIONIST/admin_categoryrate.php | dpurban/ozz | d49e54d59ad003904491ef9ad3d61e21074edbc2 | [
"Apache-2.0"
] | null | null | null | RECEPTIONIST/admin_categoryrate.php | dpurban/ozz | d49e54d59ad003904491ef9ad3d61e21074edbc2 | [
"Apache-2.0"
] | null | null | null | RECEPTIONIST/admin_categoryrate.php | dpurban/ozz | d49e54d59ad003904491ef9ad3d61e21074edbc2 | [
"Apache-2.0"
] | null | null | null | <?php
session_start();
ob_start();
include 'conn.php';
$username = $_SESSION['username'];
?>
<!doctype html>
<html lang="en">
<head>
<?php include 'head.php'; ?>
<?php require "add_rcategory.php"; require "update_rcategory.php"; require "delete_rcategory.php";?>
<link rel="stylesheet" ty... | 54.671296 | 213 | 0.357947 |
3f620d363405ef50ff900261cc46f0e1204ff7e3 | 27,691 | php | PHP | app/Libraries/Helplib/HelpLibServices.php | fengzhu1131/knowledge | 81d119f66367a4fa7e493e29346eddf96be1f521 | [
"MIT"
] | 1 | 2018-10-27T02:50:19.000Z | 2018-10-27T02:50:19.000Z | app/Libraries/Helplib/HelpLibServices.php | fengzhu1131/knowledge | 81d119f66367a4fa7e493e29346eddf96be1f521 | [
"MIT"
] | null | null | null | app/Libraries/Helplib/HelpLibServices.php | fengzhu1131/knowledge | 81d119f66367a4fa7e493e29346eddf96be1f521 | [
"MIT"
] | null | null | null | <?php
namespace App\Libraries\Helplib;
use Log;
class HelpLibServices extends BaseService {
public function __construct() {
$this -> config = $this -> loadConfig();
$this -> uri = $this -> config['url'];
self::$helpLib = BaseService::init();
}
protected function loadConfig() {
return config("services.osspu... | 33.976687 | 4,956 | 0.534542 |
663e0ac625870caa5dd6fcc8d9dc78d0a1715ae3 | 10,425 | lua | Lua | .config/conky/wo-conky-clock-lua/scripts/text.lua | elvq/work-dotfiles | 2497637bddeff9bcc100b2c1d12b21f53c85bdac | [
"MIT"
] | 5 | 2020-12-07T11:47:34.000Z | 2021-05-31T06:36:57.000Z | .config/conky/wo-conky-clock-lua/scripts/text.lua | elvq/work-dotfiles | 2497637bddeff9bcc100b2c1d12b21f53c85bdac | [
"MIT"
] | null | null | null | .config/conky/wo-conky-clock-lua/scripts/text.lua | elvq/work-dotfiles | 2497637bddeff9bcc100b2c1d12b21f53c85bdac | [
"MIT"
] | null | null | null | --[[
#########################
# conky-system-lua-V3 #
# by +WillemO @wim66 #
# v1.0 8-dec-17 #
# #
#########################
]]
--[[TEXT WIDGET v1.3 by Wlourf 25/06/2010
This widget can drawn texts set in the "text_settings" table with some parameters
http://u-scripts.blogspot.com/... | 33.306709 | 147 | 0.630983 |
25ef5c86676e34feed935e7d3e4077e816b309ca | 3,486 | cs | C# | Assets/Scripts/GameManager.cs | Kruemelkatze/ThereWillBeLight | 90c1ac46833209bde08576dfe326dee88649f788 | [
"MIT"
] | null | null | null | Assets/Scripts/GameManager.cs | Kruemelkatze/ThereWillBeLight | 90c1ac46833209bde08576dfe326dee88649f788 | [
"MIT"
] | null | null | null | Assets/Scripts/GameManager.cs | Kruemelkatze/ThereWillBeLight | 90c1ac46833209bde08576dfe326dee88649f788 | [
"MIT"
] | null | null | null | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class GameManager : MonoBehaviour
{
public static GameManager Instance = null;
public enum PlayerColor
{
Red,
Yellow,
Blue
}
public GameObject checkpoint;
public static string Strin... | 26.014925 | 155 | 0.615605 |
e2b5f9d54375407b636ca85a9ebc974666f05965 | 1,819 | py | Python | test_src/Pages/HomePage.py | BJanos87/Vizsgaremek-conduit-app | 1ffb309389b0cbe68aca56bfde50ba8b17219d03 | [
"MIT"
] | null | null | null | test_src/Pages/HomePage.py | BJanos87/Vizsgaremek-conduit-app | 1ffb309389b0cbe68aca56bfde50ba8b17219d03 | [
"MIT"
] | null | null | null | test_src/Pages/HomePage.py | BJanos87/Vizsgaremek-conduit-app | 1ffb309389b0cbe68aca56bfde50ba8b17219d03 | [
"MIT"
] | null | null | null | from test_src.Pages.base_commands import BaseCommands
from test_src.Data.test_data import HomePgWebElements
from test_src.Data.test_data import TestData
class HomePage(BaseCommands):
"""constructor of the page class"""
def __init__(self, driver):
super().__init__(driver)
self.get_url(TestData... | 33.072727 | 71 | 0.708081 |
ca93d0d123a046a695728eaa78185e61675f5634 | 1,082 | cs | C# | View/Gestionnaire/UCShowCars.cs | ouldevloper/Csharp-Car-Rental-Management- | 0d63b898501a3ddd2fdcd098887490eab2569b4f | [
"MIT"
] | null | null | null | View/Gestionnaire/UCShowCars.cs | ouldevloper/Csharp-Car-Rental-Management- | 0d63b898501a3ddd2fdcd098887490eab2569b4f | [
"MIT"
] | null | null | null | View/Gestionnaire/UCShowCars.cs | ouldevloper/Csharp-Car-Rental-Management- | 0d63b898501a3ddd2fdcd098887490eab2569b4f | [
"MIT"
] | null | null | null | using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using GestionDeLocationVoiture.Control.Classes;
using GestionDeLocationVoiture.Control.Interfac... | 28.473684 | 79 | 0.636784 |
12bd0252bca3702cab18199f5ab8df1bb51e4c30 | 705 | cs | C# | VoiceTelSharp.Lib/Models/Call/NumberList.cs | Pwnoz0r/VoiceTelSharp | 57edd82f27b07b94ae40a27bba2fb6b2b23e9b15 | [
"Apache-2.0"
] | null | null | null | VoiceTelSharp.Lib/Models/Call/NumberList.cs | Pwnoz0r/VoiceTelSharp | 57edd82f27b07b94ae40a27bba2fb6b2b23e9b15 | [
"Apache-2.0"
] | null | null | null | VoiceTelSharp.Lib/Models/Call/NumberList.cs | Pwnoz0r/VoiceTelSharp | 57edd82f27b07b94ae40a27bba2fb6b2b23e9b15 | [
"Apache-2.0"
] | null | null | null | // Copyright (c) 2018 Initial Servers LLC. All rights reserved.
// https://initialservers.com/
using System.Collections.Generic;
using System.ComponentModel;
using Newtonsoft.Json;
namespace VoiceTelSharp.Lib.Models.Call
{
public class Number
{
[JsonProperty("number")] public string Num { get; set; }... | 27.115385 | 76 | 0.653901 |
b753e58ff00bc994c8dc9e157fe23b35e3166aa9 | 8,811 | hpp | C++ | include/mockturtle/algorithms/aqfp/detail/dag_util.hpp | shi27feng/mockturtle | 032dcd590b57040c5ff10d80b515353ffe822671 | [
"MIT"
] | null | null | null | include/mockturtle/algorithms/aqfp/detail/dag_util.hpp | shi27feng/mockturtle | 032dcd590b57040c5ff10d80b515353ffe822671 | [
"MIT"
] | null | null | null | include/mockturtle/algorithms/aqfp/detail/dag_util.hpp | shi27feng/mockturtle | 032dcd590b57040c5ff10d80b515353ffe822671 | [
"MIT"
] | null | null | null | /* mockturtle: C++ logic network library
* Copyright (C) 2018-2021 EPFL
*
* Permission is hereby granted, free of charge, to any person
* obtaining a copy of this software and associated documentation
* files (the "Software"), to deal in the Software without
* restriction, including without limitation the rights... | 27.794953 | 139 | 0.637726 |
f432d076ee224ad058540229f0a20c0a8c1c1f33 | 7,281 | cs | C# | EIDSS v6/bltoolkit.3.2.dev/Reflection/Emit/MethodBuilderHelper.cs | EIDSS/EIDSS-Legacy | 2f7f45f1882a899dde6f774c2d38b9f431ce42c1 | [
"BSD-2-Clause"
] | 2 | 2017-09-14T03:03:40.000Z | 2017-09-15T14:58:47.000Z | EIDSS v5/bltoolkit.3.2.dev/Reflection/Emit/MethodBuilderHelper.cs | EIDSS/EIDSS-Legacy | 2f7f45f1882a899dde6f774c2d38b9f431ce42c1 | [
"BSD-2-Clause"
] | null | null | null | EIDSS v5/bltoolkit.3.2.dev/Reflection/Emit/MethodBuilderHelper.cs | EIDSS/EIDSS-Legacy | 2f7f45f1882a899dde6f774c2d38b9f431ce42c1 | [
"BSD-2-Clause"
] | 2 | 2017-09-14T03:03:45.000Z | 2019-03-25T23:09:43.000Z | using System;
using System.Collections.Generic;
using System.Reflection.Emit;
using System.Reflection;
namespace BLToolkit.Reflection.Emit
{
/// <summary>
/// A wrapper around the <see cref="MethodBuilder"/> class.
/// </summary>
/// <include file="Examples.CS.xml" path='examples/emit[@name="Emit"]/*' />... | 34.671429 | 100 | 0.68562 |
b0e38bd4dc7b8ae70f07400d86176cc854606c19 | 1,673 | py | Python | vv/commands.py | catherinedevlin/verse-voter | bd0a0a04656d07e05b81ab064ee9b0e19aa677b6 | [
"MIT"
] | null | null | null | vv/commands.py | catherinedevlin/verse-voter | bd0a0a04656d07e05b81ab064ee9b0e19aa677b6 | [
"MIT"
] | null | null | null | vv/commands.py | catherinedevlin/verse-voter | bd0a0a04656d07e05b81ab064ee9b0e19aa677b6 | [
"MIT"
] | null | null | null | from datetime import datetime
from os.path import join
from random import random
from time import sleep
from pony import orm
from .helpers import get_config
from .models import Project, Verse
from .reddit import get_subreddit
@orm.db_session
def read_from_reddit():
config = get_config()
project_name = confi... | 29.875 | 81 | 0.661686 |
1c361005216db00dede2743ab8c423242f5dfea0 | 9,765 | lua | Lua | AzurLaneData/zh-CN/view/ship/shipinfoview/shipequipview.lua | FlandreCirno/AzurLaneWikiUtilitiesManual | b525fd9086dd716bb65848a8cd0635b261ab6fdf | [
"MIT"
] | null | null | null | AzurLaneData/zh-CN/view/ship/shipinfoview/shipequipview.lua | FlandreCirno/AzurLaneWikiUtilitiesManual | b525fd9086dd716bb65848a8cd0635b261ab6fdf | [
"MIT"
] | null | null | null | AzurLaneData/zh-CN/view/ship/shipinfoview/shipequipview.lua | FlandreCirno/AzurLaneWikiUtilitiesManual | b525fd9086dd716bb65848a8cd0635b261ab6fdf | [
"MIT"
] | null | null | null | slot0 = class("ShipEquipView", import("...base.BaseSubView"))
slot0.UNLOCK_EQUIPMENT_SKIN_POS = {
1,
2,
3
}
slot0.getUIName = function (slot0)
return "ShipEquipView"
end
slot0.OnInit = function (slot0)
slot0:InitEquipment()
end
slot0.SetShareData = function (slot0, slot1)
slot0.shareData = slot1
end
slot0.Get... | 25.102828 | 151 | 0.731695 |
b783b5beb076ebb706b6f1bfad72eaf1be30e8ee | 53,356 | sql | SQL | database.sql | steveyout/exetra | d877c3dcb5169012d137da3f461e012d9b58ca49 | [
"Apache-2.0"
] | null | null | null | database.sql | steveyout/exetra | d877c3dcb5169012d137da3f461e012d9b58ca49 | [
"Apache-2.0"
] | null | null | null | database.sql | steveyout/exetra | d877c3dcb5169012d137da3f461e012d9b58ca49 | [
"Apache-2.0"
] | 1 | 2020-02-26T06:43:36.000Z | 2020-02-26T06:43:36.000Z | -- phpMyAdmin SQL Dump
-- version 4.1.6
-- http://www.phpmyadmin.net
--
-- Host: 127.0.0.1
-- Generation Time: Sep 14, 2017 at 08:57 AM
-- Server version: 5.6.16
-- PHP Version: 5.5.9
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/... | 71.811575 | 207 | 0.648868 |
5f954d81fb86f9d5901bf07760f59baf1d0ec97a | 1,125 | swift | Swift | githubsampleUITests/RepositoriesScreenTest.swift | FelipeCardoso89/GithubSample | 1cdedb50fc9be1a4e3487bf3b3e418c426cfec8d | [
"MIT"
] | null | null | null | githubsampleUITests/RepositoriesScreenTest.swift | FelipeCardoso89/GithubSample | 1cdedb50fc9be1a4e3487bf3b3e418c426cfec8d | [
"MIT"
] | null | null | null | githubsampleUITests/RepositoriesScreenTest.swift | FelipeCardoso89/GithubSample | 1cdedb50fc9be1a4e3487bf3b3e418c426cfec8d | [
"MIT"
] | null | null | null | //
// RepositoriesScreenTest.swift
// githubsampleUITests
//
// Created by Henrique Cardoso on 03/02/2019.
// Copyright © 2019 Felipe Antonio Cardoso. All rights reserved.
//
import XCTest
import KIF
@testable import githubsample
class RepositoriesScreenTest: KIFTestCase {
var app: XCUIApplication!
... | 23.93617 | 83 | 0.637333 |
0d769c4f8aeb4f0529e610de6df369515479b503 | 1,158 | cs | C# | Syntinel.Core/Objects/Replies/SignalReply.cs | SynapseProject/syntinel.core.net | fc4a1dd819df08e4cac0dce7746b62d35f264e6a | [
"MIT"
] | 1 | 2020-09-28T04:19:07.000Z | 2020-09-28T04:19:07.000Z | Syntinel.Core/Objects/Replies/SignalReply.cs | SynapseProject/syntinel.core.net | fc4a1dd819df08e4cac0dce7746b62d35f264e6a | [
"MIT"
] | 7 | 2019-02-13T21:08:45.000Z | 2021-04-23T16:28:03.000Z | Syntinel.Core/Objects/Replies/SignalReply.cs | SynapseProject/syntinel.core.net | fc4a1dd819df08e4cac0dce7746b62d35f264e6a | [
"MIT"
] | null | null | null | using System;
using System.Collections.Generic;
using Newtonsoft.Json;
using Newtonsoft.Json.Serialization;
using Newtonsoft.Json.Converters;
namespace Syntinel.Core
{
public class SignalReply
{
[JsonProperty(PropertyName = "statusCode")]
[JsonConverter(typeof(StringEnumConverter))]
pu... | 28.243902 | 83 | 0.643351 |
1a73857a0ae5ce680845c5e136663919537ae307 | 5,870 | py | Python | eventsourcing_grpc/protos/application_pb2.py | johnbywater/eventsourcing-grpc | d6f36f1e9bd994a95d1cea16a46254d61efbddeb | [
"BSD-3-Clause"
] | 2 | 2022-03-18T15:25:37.000Z | 2022-03-18T16:47:04.000Z | eventsourcing_grpc/protos/application_pb2.py | johnbywater/eventsourcing-grpc | d6f36f1e9bd994a95d1cea16a46254d61efbddeb | [
"BSD-3-Clause"
] | null | null | null | eventsourcing_grpc/protos/application_pb2.py | johnbywater/eventsourcing-grpc | d6f36f1e9bd994a95d1cea16a46254d61efbddeb | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: eventsourcing_grpc/protos/application.proto
"""Generated protocol buffer code."""
from google.protobuf import (
descriptor as _descriptor,
descriptor_pool as _descriptor_pool,
message as _message,
reflection as ... | 40.763889 | 565 | 0.759625 |
1c7e86705b1237366e7e0847762eee491eba1d6e | 921 | sh | Shell | experiment_scripts/mutag_denoise_0.8_forward.sh | gear/denoising-gnn | 867f7d8b7776d0241816bb78491003a221c3146e | [
"MIT"
] | 13 | 2019-05-10T08:14:07.000Z | 2021-03-18T02:44:53.000Z | experiment_scripts/mutag_denoise_0.8_forward.sh | gear/denoising-gnn | 867f7d8b7776d0241816bb78491003a221c3146e | [
"MIT"
] | 1 | 2019-07-26T03:16:22.000Z | 2019-07-26T04:21:09.000Z | experiment_scripts/mutag_denoise_0.8_forward.sh | gear/denoising-gnn | 867f7d8b7776d0241816bb78491003a221c3146e | [
"MIT"
] | 1 | 2020-05-14T10:44:03.000Z | 2020-05-14T10:44:03.000Z | #!/bin/bash
# Run all datasets with the default parameters
cd ..
source activate graph
# Best parameter in isolated default search
batch_size=32
num_layers=5
lr=0.01
num_mlp_layers=2
hidden_dim=32
final_dropout=0
epochs=20
for fold in 0
do
echo Processing MUTAG at fold $fold ...
python main.py --dataset MUTAG ... | 27.088235 | 59 | 0.53203 |
b097b54a6d38894fdbab1a742166d27455292835 | 478 | py | Python | test.py | zhujun3753/ACMD | e7ed37a0a492adf6bc5f238762dd7253df9f7464 | [
"MIT"
] | null | null | null | test.py | zhujun3753/ACMD | e7ed37a0a492adf6bc5f238762dd7253df9f7464 | [
"MIT"
] | null | null | null | test.py | zhujun3753/ACMD | e7ed37a0a492adf6bc5f238762dd7253df9f7464 | [
"MIT"
] | null | null | null | # 综合分类数据集
from numpy import where
from sklearn.datasets import make_classification
import matplotlib.pyplot as plt
# 定义数据集
X, y = make_classification(n_samples=1000, n_features=2, n_informative=2, n_redundant=0, n_clusters_per_class=1, random_state=4)
# 为每个类的样本创建散点图
plt.figure()
plt.scatter(X[:,0],X[:,1])
plt.figure()
... | 28.117647 | 128 | 0.742678 |
c6cbff9d5b5bf83d5a33ee9eaea1ac45acb606a1 | 531 | rb | Ruby | lib/br_danfe/danfe_lib/ticket.rb | glaubersantana/br_danfe | 3cb56881ebd1d05b750ba911d855fc2c55a726c0 | [
"MIT"
] | null | null | null | lib/br_danfe/danfe_lib/ticket.rb | glaubersantana/br_danfe | 3cb56881ebd1d05b750ba911d855fc2c55a726c0 | [
"MIT"
] | null | null | null | lib/br_danfe/danfe_lib/ticket.rb | glaubersantana/br_danfe | 3cb56881ebd1d05b750ba911d855fc2c55a726c0 | [
"MIT"
] | null | null | null | module BrDanfe
module DanfeLib
class Ticket
def self.render(pdf, xml)
pdf.ibox 0.85, 16.10, 0.25, 0.42, I18n.t("danfe.ticket.xNome", :xNome => xml["emit/xNome"])
pdf.ibox 0.85, 4.10, 0.25, 1.27, I18n.t("danfe.ticket.received_at")
pdf.ibox 0.85, 12.00, 4.35, 1.27, I18n.t("danfe.ticket... | 40.846154 | 170 | 0.587571 |
24bcf892c0e329e2d279dda5b06adb34edd884df | 3,145 | php | PHP | tests/UsersCest.php | shadowsproject/element | 4ebe57cb56ead3516315874a51bf77e05a96dd28 | [
"MIT"
] | 19 | 2019-08-07T11:35:51.000Z | 2022-03-29T13:40:02.000Z | tests/UsersCest.php | shadowsproject/element | 4ebe57cb56ead3516315874a51bf77e05a96dd28 | [
"MIT"
] | 119 | 2019-01-11T13:51:56.000Z | 2019-07-18T20:47:43.000Z | tests/UsersCest.php | dzantiev/element | 4ebe57cb56ead3516315874a51bf77e05a96dd28 | [
"MIT"
] | 5 | 2019-12-15T02:52:25.000Z | 2022-02-01T19:25:19.000Z | <?php
class UsersCest
{
public function getUsers(ApiTester $I)
{
$I->sendGET('/users/getUsers');
$I->seeResponseContainsJson(['success' => false]);
$I->sendPOST('/auth', ['login' => 'admin', 'password' => 'adminpass']);
$I->seeResponseContainsJson(['success' => true]);
$I->sendGET('/users/getUsers');
$... | 26.208333 | 96 | 0.590779 |
b0e3e8c6e02a8605b854ec5b7d9d5f786313138e | 1,384 | py | Python | CyberGuard_v2/function/variables.py | CyberTriber/python | 3d9cffa4f6fc3a3348bc2ce8070c243f047927e1 | [
"MIT"
] | 1 | 2018-09-16T05:50:52.000Z | 2018-09-16T05:50:52.000Z | CyberGuard_v2/function/variables.py | CyberTriber/python | 3d9cffa4f6fc3a3348bc2ce8070c243f047927e1 | [
"MIT"
] | null | null | null | CyberGuard_v2/function/variables.py | CyberTriber/python | 3d9cffa4f6fc3a3348bc2ce8070c243f047927e1 | [
"MIT"
] | null | null | null | # coding=utf-8
global DEBUG_ON # Turn debug ON/OF (True/False)
DEBUG_ON = False
global LEVEL_SYSTEM # Settings for leveling system
LEVEL_SYSTEM = {
'1': {'cap': 0, 'multiplier': 1},
'2': {'cap': 10, 'multiplier': 1},
'3': {'cap': 100, 'multiplier': 2},
'4': {'cap': 500, 'multiplier': 2},
'5': {'cap': 1000, 'mul... | 25.163636 | 87 | 0.644509 |
e1cf3d7691e31a34c955a968970e1b1427a2516a | 2,877 | cs | C# | MsTestDataDrivenTest.UnitTests/FullBehaviourTests.cs | San7hos/MSTestDataDrivenTest | cf5dc8d3ec76e393ceb02675bc408a091662de45 | [
"MIT"
] | null | null | null | MsTestDataDrivenTest.UnitTests/FullBehaviourTests.cs | San7hos/MSTestDataDrivenTest | cf5dc8d3ec76e393ceb02675bc408a091662de45 | [
"MIT"
] | 2 | 2017-06-08T13:07:05.000Z | 2017-06-08T13:09:17.000Z | MsTestDataDrivenTest.UnitTests/FullBehaviourTests.cs | San7hos/MSTestDataDrivenTest | cf5dc8d3ec76e393ceb02675bc408a091662de45 | [
"MIT"
] | null | null | null | // <copyright file="FullBehaviourTests.cs" company="Santhos.net">
// Copyright (c) Santhos.net. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
// </copyright>
namespace MsTestDataDrivenTest.UnitTests
{
using System;
using System.Colle... | 30.935484 | 106 | 0.493917 |
c688baa304e8c28a6a30ae1b6a080705248fef71 | 87 | py | Python | todolist/task/admin.py | AzamatKomaev/azamat-komaev-todo-list | 37d330f81a8587509cbd2dff852c788d5db4fbc6 | [
"MIT"
] | null | null | null | todolist/task/admin.py | AzamatKomaev/azamat-komaev-todo-list | 37d330f81a8587509cbd2dff852c788d5db4fbc6 | [
"MIT"
] | null | null | null | todolist/task/admin.py | AzamatKomaev/azamat-komaev-todo-list | 37d330f81a8587509cbd2dff852c788d5db4fbc6 | [
"MIT"
] | null | null | null | from django.contrib import admin
from .models import Task
admin.site.register(Task)
| 12.428571 | 32 | 0.793103 |
e275927e3a27acd893e8af207ffd2613c81e10c7 | 1,577 | py | Python | qplan/Control.py | rdk1024/qplan | 6f9ac8d5d4d110369997b31dd35811284b301095 | [
"BSD-3-Clause"
] | 2 | 2016-08-17T01:48:01.000Z | 2019-08-01T05:58:32.000Z | qplan/Control.py | rdk1024/qplan | 6f9ac8d5d4d110369997b31dd35811284b301095 | [
"BSD-3-Clause"
] | 26 | 2016-12-25T07:35:16.000Z | 2021-02-05T21:22:54.000Z | qplan/Control.py | rdk1024/qplan | 6f9ac8d5d4d110369997b31dd35811284b301095 | [
"BSD-3-Clause"
] | 3 | 2016-06-20T21:25:42.000Z | 2020-07-28T20:59:11.000Z | #
# This is open-source software licensed under a BSD license.
# Please see the file LICENSE.txt for details.
#
import sys, os
import threading
from ginga.misc import Callback
class ControlError(Exception):
pass
class Controller(Callback.Callbacks):
def __init__(self, logger, threadPool, module_manager, pre... | 24.640625 | 72 | 0.642993 |
4942784e64a3e119ca55f37ee642b868e0320ce1 | 4,465 | sql | SQL | SQL/2.0.13/5) Post process.sql | NimbusServices/SAEON.ObservationsDatabase | 025ea0af49cc6c5f6efcbe06119062655b457766 | [
"MIT"
] | null | null | null | SQL/2.0.13/5) Post process.sql | NimbusServices/SAEON.ObservationsDatabase | 025ea0af49cc6c5f6efcbe06119062655b457766 | [
"MIT"
] | 102 | 2017-07-25T12:37:44.000Z | 2022-03-28T12:28:34.000Z | SQL/2.0.13/5) Post process.sql | NimbusServices/SAEON.ObservationsDatabase | 025ea0af49cc6c5f6efcbe06119062655b457766 | [
"MIT"
] | null | null | null | USE [Observations]
--USE [ObservationsTest]
alter table SchemaColumn alter column FixedTime varchar(10)
EXECUTE sp_refreshsqlmodule '[dbo].[vSchemaColumn]'
PRINT 'Create aspnet_Applications_Index'
GO
CREATE CLUSTERED INDEX [aspnet_Applications_Index]
ON [dbo].[aspnet_Applications]([LoweredApplicationName])
WITH(... | 38.826087 | 174 | 0.792609 |
c6f6d3fd555f96b503f5a8a51e465811afb7ba6a | 5,240 | py | Python | datahub/investment/project/test/test_signals.py | Staberinde/data-hub-api | 3d0467dbceaf62a47158eea412a3dba827073300 | [
"MIT"
] | 6 | 2019-12-02T16:11:24.000Z | 2022-03-18T10:02:02.000Z | datahub/investment/project/test/test_signals.py | Staberinde/data-hub-api | 3d0467dbceaf62a47158eea412a3dba827073300 | [
"MIT"
] | 1,696 | 2019-10-31T14:08:37.000Z | 2022-03-29T12:35:57.000Z | datahub/investment/project/test/test_signals.py | Staberinde/data-hub-api | 3d0467dbceaf62a47158eea412a3dba827073300 | [
"MIT"
] | 9 | 2019-11-22T12:42:03.000Z | 2021-09-03T14:25:05.000Z | from unittest.mock import Mock
import pytest
from datahub.company.test.factories import CompanyFactory
from datahub.core.constants import (
Country as CountryConstant,
InvestmentProjectStage as InvestmentProjectStageConstant,
)
from datahub.core.test_utils import random_obj_for_model
from datahub.investment.p... | 37.697842 | 97 | 0.712595 |
c6844c750d43ad925e651c20d49595d8ff367eef | 446 | py | Python | tests/test_cipher.py | shukurovasif/Python | 1e0b9f8d1b02d27e5fee731dbb78d05c05a23f8b | [
"MIT"
] | null | null | null | tests/test_cipher.py | shukurovasif/Python | 1e0b9f8d1b02d27e5fee731dbb78d05c05a23f8b | [
"MIT"
] | null | null | null | tests/test_cipher.py | shukurovasif/Python | 1e0b9f8d1b02d27e5fee731dbb78d05c05a23f8b | [
"MIT"
] | null | null | null | import unittest
from src.caesar_cipher.caesar_cipher import Caesar
class CipherTest(unittest.TestCase):
def setUp(self):
self.caesar = Caesar(1, 'abc')
def test_encrypt(self):
encrypted = self.caesar.encrypt()
self.assertEqual(encrypted, 'bcd')
def test_decrypt(self):
... | 23.473684 | 50 | 0.634529 |
259d47fe5927586c8cc07ce5f3ae1b6e6f4b6fc0 | 1,204 | cs | C# | Activation usein email/Defaull.aspx.cs | tebyaniyan/Activation-usein-email | 1151c6716d9f358d689b29f457eafe69934686ab | [
"MIT"
] | null | null | null | Activation usein email/Defaull.aspx.cs | tebyaniyan/Activation-usein-email | 1151c6716d9f358d689b29f457eafe69934686ab | [
"MIT"
] | null | null | null | Activation usein email/Defaull.aspx.cs | tebyaniyan/Activation-usein-email | 1151c6716d9f358d689b29f457eafe69934686ab | [
"MIT"
] | null | null | null | using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Activation usein email.Models;
namespace Activation usein email
{
public partial class Defaull : System.Web.UI.Page
{
private Models.ActiveU... | 29.365854 | 93 | 0.580565 |
6bcff6e7310a7d6064c044a6713ea75aa29e8d46 | 1,398 | cpp | C++ | Src/Controller/CV/WallCVGenerator.cpp | sh4869/Culverton | 14ba42b29c38ec8bcb8c385c17b93a45e02b37ed | [
"MIT"
] | 1 | 2017-10-24T03:16:53.000Z | 2017-10-24T03:16:53.000Z | Src/Controller/CV/WallCVGenerator.cpp | sh4869/Culverton | 14ba42b29c38ec8bcb8c385c17b93a45e02b37ed | [
"MIT"
] | 3 | 2017-11-11T19:27:16.000Z | 2017-11-15T02:30:14.000Z | Src/Controller/CV/WallCVGenerator.cpp | sh4869/Culverton | 14ba42b29c38ec8bcb8c385c17b93a45e02b37ed | [
"MIT"
] | null | null | null | #include "WallCVGenerator.h"
WallCVGenerator::WallCVGenerator(PIDParams _params)
: pidController(std::unique_ptr<PIDController>(new PIDController(_params))),
sensorController(SensorController::GetInstance()) {}
// 右の値が大きいほど(つまり壁に近いほど)大きな値が返るようになっている
float WallCVGenerator::Update() {
switch (GetStatus())... | 38.833333 | 96 | 0.600858 |
2cda2623e923f4dc411d197b1b6e215b64a3f9aa | 35,118 | cpp | C++ | hip/hip/kernels/share/qDataUpdateS.cpp | artv3/Laghos | 64449d427349b0ca35086a63ae4e7d1ed5894f08 | [
"BSD-2-Clause"
] | 1 | 2019-11-20T21:45:18.000Z | 2019-11-20T21:45:18.000Z | hip/hip/kernels/share/qDataUpdateS.cpp | jeffhammond/Laghos | 12e62aa7eb6175f27380106b40c9286d710a0f52 | [
"BSD-2-Clause"
] | null | null | null | hip/hip/kernels/share/qDataUpdateS.cpp | jeffhammond/Laghos | 12e62aa7eb6175f27380106b40c9286d710a0f52 | [
"BSD-2-Clause"
] | null | null | null | // Copyright (c) 2017, Lawrence Livermore National Security, LLC. Produced at
// the Lawrence Livermore National Laboratory. LLNL-CODE-734707. All Rights
// reserved. See files LICENSE and NOTICE for details.
//
// This file is part of CEED, a collection of benchmarks, miniapps, software
// libraries and APIs for effic... | 48.371901 | 129 | 0.440287 |
a170682b63c262654a7da13e14e7b38355ed6df9 | 213 | swift | Swift | Sources/Pokepay/Responses/Error.swift | n-qwed/ios-sdk | 0b5ca28d90e9f7b767c9fc760f62a4d5776e629a | [
"MIT"
] | 6 | 2018-10-11T06:35:59.000Z | 2020-05-14T02:44:50.000Z | Sources/Pokepay/Responses/Error.swift | n-qwed/ios-sdk | 0b5ca28d90e9f7b767c9fc760f62a4d5776e629a | [
"MIT"
] | 6 | 2018-12-05T07:47:01.000Z | 2020-07-29T07:05:47.000Z | Sources/Pokepay/Responses/Error.swift | n-qwed/ios-sdk | 0b5ca28d90e9f7b767c9fc760f62a4d5776e629a | [
"MIT"
] | 6 | 2019-09-14T07:49:04.000Z | 2021-05-13T07:21:56.000Z | import Foundation
public struct APIError: Codable {
public let type: String
public let message: String
public let errors: String?
}
public struct OAuthError: Codable {
public let error: String
}
| 17.75 | 35 | 0.723005 |
e07c4d88196b75bf9bc39d8457e5c4eae6de7da1 | 8,749 | h | C | opal/mca/pmix/pmix4x/openpmix/src/atomics/sys/gcc_builtin/atomic.h | isuruf/ompi | edcd6d8aebbeae986eae1d236adb11ee71f1ce3c | [
"BSD-3-Clause-Open-MPI"
] | 20 | 2020-04-20T15:50:19.000Z | 2021-09-03T09:17:23.000Z | opal/mca/pmix/pmix4x/openpmix/src/atomics/sys/gcc_builtin/atomic.h | isuruf/ompi | edcd6d8aebbeae986eae1d236adb11ee71f1ce3c | [
"BSD-3-Clause-Open-MPI"
] | 13 | 2020-11-01T18:16:03.000Z | 2022-03-08T01:33:02.000Z | opal/mca/pmix/pmix4x/openpmix/src/atomics/sys/gcc_builtin/atomic.h | isuruf/ompi | edcd6d8aebbeae986eae1d236adb11ee71f1ce3c | [
"BSD-3-Clause-Open-MPI"
] | 29 | 2020-05-12T02:12:11.000Z | 2021-08-30T02:04:39.000Z | /* -*- Mode: C; c-basic-offset:4 ; indent-tabs-mode:nil -*- */
/*
* Copyright (c) 2004-2005 The Trustees of Indiana University and Indiana
* University Research and Technology
* Corporation. All rights reserved.
* Copyright (c) 2004-2013 The University of Tennessee a... | 33.140152 | 122 | 0.716539 |
c3ffb00db97d672140da3d010c20f17c4fe8cd35 | 929 | cs | C# | Assets/Example/Scripts/TriggerEffects/AddTriggerEffectsSystem.cs | Kuptsevych/Unity-DOTS-TriggerSystem | 55235b2b48a8e24d3b6cb50f967b84f2a4bfc1ab | [
"MIT"
] | 4 | 2020-07-23T07:12:11.000Z | 2021-07-16T04:28:08.000Z | Assets/Example/Scripts/TriggerEffects/AddTriggerEffectsSystem.cs | Kuptsevych/Unity-DOTS-TriggerSystem | 55235b2b48a8e24d3b6cb50f967b84f2a4bfc1ab | [
"MIT"
] | null | null | null | Assets/Example/Scripts/TriggerEffects/AddTriggerEffectsSystem.cs | Kuptsevych/Unity-DOTS-TriggerSystem | 55235b2b48a8e24d3b6cb50f967b84f2a4bfc1ab | [
"MIT"
] | 1 | 2020-09-20T07:31:26.000Z | 2020-09-20T07:31:26.000Z | using Unity.Entities;
namespace TriggerSystem.Example
{
public class AddTriggerEffectsSystem : ComponentSystem
{
private TriggerDetectorSystem _triggerDetectorSystem;
protected override void OnStartRunning()
{
_triggerDetectorSystem = EntityManager.World.GetExistingSystem<TriggerDetectorSystem>()... | 38.708333 | 136 | 0.778256 |
4ce73c213dcd3b3a653aa12e013877cb586e9203 | 2,221 | py | Python | adminapp/serializer1.py | nosiphokhumalo/honours-project-chefreg | c3e43bdae9d3a6880fecac5fb95fd698959a088a | [
"MIT"
] | null | null | null | adminapp/serializer1.py | nosiphokhumalo/honours-project-chefreg | c3e43bdae9d3a6880fecac5fb95fd698959a088a | [
"MIT"
] | 9 | 2020-02-12T00:16:41.000Z | 2021-12-13T19:46:27.000Z | adminapp/serializer1.py | nosiphokhumalo/ictchefs | c3e43bdae9d3a6880fecac5fb95fd698959a088a | [
"MIT"
] | null | null | null | from .models import Student, StudentInfo, EmploymentInfo
from django.contrib.auth.models import User
from django import forms
from rest_framework import serializers
class EmploymentInfoSerializer(serializers.ModelSerializer):
class Meta:
model = EmploymentInfo
fields = ('internship', 'curre... | 37.016667 | 200 | 0.681225 |
be50f0dd9768673a05e9906cab0f13f659b1d0d5 | 134 | sql | SQL | aws-test/tests/aws_guardduty_publishing_destination/test-not-found-query.sql | cjsrkd3321/steampipe-plugin-aws | c9b424289abb2020126019fdaefc03ad39ecb171 | [
"Apache-2.0"
] | null | null | null | aws-test/tests/aws_guardduty_publishing_destination/test-not-found-query.sql | cjsrkd3321/steampipe-plugin-aws | c9b424289abb2020126019fdaefc03ad39ecb171 | [
"Apache-2.0"
] | null | null | null | aws-test/tests/aws_guardduty_publishing_destination/test-not-found-query.sql | cjsrkd3321/steampipe-plugin-aws | c9b424289abb2020126019fdaefc03ad39ecb171 | [
"Apache-2.0"
] | null | null | null | select destination_id, arn
from aws_guardduty_publishing_destination
where akas::text = '["{{ output.resource_aka.value }}"::dummy]';
| 33.5 | 64 | 0.776119 |