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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
7144b61ba32a0581399b0ca5a9dcc4716c30aa18 | 7,178 | swift | Swift | MeditationPlus/UserInterface/MeditatorList/DataSource/MeditatorDataSource.swift | ErikLuimes/meditation-plus-ios | 6e654867bbc2c6c6e3824528b7b76737aa9ef0e9 | [
"MIT"
] | 5 | 2016-05-19T08:23:44.000Z | 2017-04-02T13:03:37.000Z | MeditationPlus/UserInterface/MeditatorList/DataSource/MeditatorDataSource.swift | ErikLuimes/meditation-plus-ios | 6e654867bbc2c6c6e3824528b7b76737aa9ef0e9 | [
"MIT"
] | null | null | null | MeditationPlus/UserInterface/MeditatorList/DataSource/MeditatorDataSource.swift | ErikLuimes/meditation-plus-ios | 6e654867bbc2c6c6e3824528b7b76737aa9ef0e9 | [
"MIT"
] | null | null | null | //
// MeditatorDataSource.swift
// MeditationPlus
//
// Created by Erik Luimes on 12/09/15.
//
// The MIT License
// Copyright (c) 2015 Maya Interactive. All rights reserved.
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (t... | 33.078341 | 157 | 0.664531 |
61408685bc1ef7d88638f83cce55af1b8a803eda | 181 | sql | SQL | support-files/sql/job-analysis/0002_job_analysis_20210114-1000_V3.2.1.1_mysql.sql | llitfkitfk/bk-job | 0d4dcdb943a6600bc2d4d06485143596a1937920 | [
"MIT"
] | 1 | 2021-09-17T01:53:31.000Z | 2021-09-17T01:53:31.000Z | support-files/sql/job-analysis/0002_job_analysis_20210114-1000_V3.2.1.1_mysql.sql | llitfkitfk/bk-job | 0d4dcdb943a6600bc2d4d06485143596a1937920 | [
"MIT"
] | null | null | null | support-files/sql/job-analysis/0002_job_analysis_20210114-1000_V3.2.1.1_mysql.sql | llitfkitfk/bk-job | 0d4dcdb943a6600bc2d4d06485143596a1937920 | [
"MIT"
] | null | null | null | SET NAMES utf8mb4;
USE job_analysis;
ALTER TABLE `statistics` ADD INDEX `idx_res_dim_dimValue_date`(`resource`(32), `dimension`(32), `dimension_value`(32),`date`(32)) USING BTREE;
| 36.2 | 142 | 0.756906 |
c0ac7aa9bc25085cca5297e0f437d227a0e8cc5e | 6,420 | cs | C# | mcs/class/System.ServiceModel.Web/System.ServiceModel.Syndication/AtomPub10CategoriesDocumentFormatter.cs | lefb766/mono | 4f458a4ff72bc6c5e07f82aec9040d355cbb8f5c | [
"Apache-2.0"
] | 469 | 2019-01-23T12:21:59.000Z | 2022-03-10T15:50:42.000Z | mcs/class/System.ServiceModel.Web/System.ServiceModel.Syndication/AtomPub10CategoriesDocumentFormatter.cs | pcc/mono | c64a76e3aae1bd6347f35c1c3bd1ace56247d4f1 | [
"Apache-2.0"
] | 83 | 2015-07-16T01:31:41.000Z | 2016-01-13T02:15:47.000Z | mcs/class/System.ServiceModel.Web/System.ServiceModel.Syndication/AtomPub10CategoriesDocumentFormatter.cs | pcc/mono | c64a76e3aae1bd6347f35c1c3bd1ace56247d4f1 | [
"Apache-2.0"
] | 36 | 2019-01-23T22:17:09.000Z | 2022-01-20T15:41:34.000Z | //
// AtomPub10CategoriesDocumentFormatter.cs
//
// Author:
// Atsushi Enomoto <atsushi@ximian.com>
//
// Copyright (C) 2009 Novell, Inc. http://www.novell.com
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), ... | 31.625616 | 101 | 0.725545 |
1247bf89cdeaf4725fe017d10cb17ec53ac20791 | 11,202 | cs | C# | TestsNonParallel/src/Logging/LoadProcessTasksTests.cs | dhiegobastos/etlbox | 316884ee9014f725ccab71e5d70360a45c4b8715 | [
"MIT"
] | null | null | null | TestsNonParallel/src/Logging/LoadProcessTasksTests.cs | dhiegobastos/etlbox | 316884ee9014f725ccab71e5d70360a45c4b8715 | [
"MIT"
] | null | null | null | TestsNonParallel/src/Logging/LoadProcessTasksTests.cs | dhiegobastos/etlbox | 316884ee9014f725ccab71e5d70360a45c4b8715 | [
"MIT"
] | 1 | 2021-05-02T14:27:43.000Z | 2021-05-02T14:27:43.000Z | using ALE.ETLBox;
using ALE.ETLBox.ConnectionManager;
using ALE.ETLBox.ControlFlow;
using ALE.ETLBox.Helper;
using ALE.ETLBox.Logging;
using Newtonsoft.Json.Linq;
using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;
using Xunit;
namespace ALE.ETLBoxTests.Logging
{
[Coll... | 39.864769 | 161 | 0.591769 |
3f5ea5a2cb569bc686a41d5f75b8aa45cc06a380 | 6,751 | php | PHP | application/controllers/Users.php | rhesadaiva/silocki_new | fb0ee646198c3ab7c2377334d4dbfdc551228b47 | [
"MIT"
] | null | null | null | application/controllers/Users.php | rhesadaiva/silocki_new | fb0ee646198c3ab7c2377334d4dbfdc551228b47 | [
"MIT"
] | null | null | null | application/controllers/Users.php | rhesadaiva/silocki_new | fb0ee646198c3ab7c2377334d4dbfdc551228b47 | [
"MIT"
] | null | null | null | <?php
class Users extends CI_Controller
{
public function __construct()
{
parent::__construct();
is_logged_in();
}
// Validasi untuk ganti password
public function validateChangePass()
{
$data['title'] = 'Ganti Password';
$data['user'] = $this->db->get_where('us... | 44.124183 | 164 | 0.509258 |
15fc749cf2169098cf97d566f289a637ecb2ddaf | 981 | java | Java | src/test/java/flowerstore/FlowerTest.java | bohdaholas/Lab5_continuation | abd1ba7d519491477fb0f4872104833596eb85d1 | [
"MIT"
] | null | null | null | src/test/java/flowerstore/FlowerTest.java | bohdaholas/Lab5_continuation | abd1ba7d519491477fb0f4872104833596eb85d1 | [
"MIT"
] | null | null | null | src/test/java/flowerstore/FlowerTest.java | bohdaholas/Lab5_continuation | abd1ba7d519491477fb0f4872104833596eb85d1 | [
"MIT"
] | null | null | null | package flowerstore;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import static org.junit.jupiter.api.Assertions.*;
class FlowerTest {
private Flower flower;
@BeforeEach
void setUp() {
flower = new Flower(FlowerType.TULIP);
flower.setPrice(14.3);
flo... | 22.813953 | 118 | 0.615698 |
02c0261c496b3085faa5e0d4744b03dafa15fbce | 1,692 | swift | Swift | Memento.playground/contents.swift | yinnieryou/DesignPattern | ac49e8cab37d0c3cf1eb957da5518d9505be3e9b | [
"MIT"
] | 1 | 2015-06-23T23:58:16.000Z | 2015-06-23T23:58:16.000Z | Memento.playground/contents.swift | yinnieryou/DesignPattern | ac49e8cab37d0c3cf1eb957da5518d9505be3e9b | [
"MIT"
] | null | null | null | Memento.playground/contents.swift | yinnieryou/DesignPattern | ac49e8cab37d0c3cf1eb957da5518d9505be3e9b | [
"MIT"
] | null | null | null | // Playground - noun: a place where people can play
import UIKit
//备忘录模式
class Originator{
var state1 = ""
var state2 = ""
var state3 = ""
func createMemento() -> Memento {
return Memento(map: BeanUtils.backupProp(self))
}
func restoreMemento(memento:Memento){
BeanUtils.restore... | 24.882353 | 116 | 0.604019 |
556c2ff2f4e55e1d2413f3fbcfef0b12c3309e8f | 12,683 | lua | Lua | modules/game_healthcircle/game_healthcircle.lua | juninholon/tibiagun | 1ee9c8899d79d3602aee82850fb1c2c25285312d | [
"Apache-2.0"
] | null | null | null | modules/game_healthcircle/game_healthcircle.lua | juninholon/tibiagun | 1ee9c8899d79d3602aee82850fb1c2c25285312d | [
"Apache-2.0"
] | null | null | null | modules/game_healthcircle/game_healthcircle.lua | juninholon/tibiagun | 1ee9c8899d79d3602aee82850fb1c2c25285312d | [
"Apache-2.0"
] | null | null | null | mapPanel = modules.game_interface.getMapPanel()
gameRootPanel = modules.game_interface.gameBottomPanel
gameLeftPanel = modules.game_interface.getLeftPanel()
gameTopMenu = modules.client_topmenu.getTopMenu()
function currentViewMode()
return modules.game_interface.currentViewMode
end
healthCircle = nil
manaCircle = ... | 36.976676 | 222 | 0.686036 |
e4bfaecd9054252e271c3ef5d6606736af1de5e5 | 2,160 | go | Go | vendor/github.com/AdguardTeam/golibs/stringutil/set.go | IrineSistiana/dnsproxy | e2fba4e244bf0c3f651a937b3d59dd1bd704c80c | [
"Apache-2.0"
] | 15 | 2019-02-27T17:20:03.000Z | 2022-02-14T17:12:33.000Z | vendor/github.com/AdguardTeam/golibs/stringutil/set.go | IrineSistiana/dnsproxy | e2fba4e244bf0c3f651a937b3d59dd1bd704c80c | [
"Apache-2.0"
] | 4 | 2019-10-14T16:13:27.000Z | 2022-03-23T12:25:26.000Z | vendor/github.com/AdguardTeam/golibs/stringutil/set.go | IrineSistiana/dnsproxy | e2fba4e244bf0c3f651a937b3d59dd1bd704c80c | [
"Apache-2.0"
] | 9 | 2019-04-04T22:12:08.000Z | 2022-03-13T13:42:27.000Z | package stringutil
import "fmt"
// unit is a convenient alias for struct{}
type unit = struct{}
// Set is a set of strings.
type Set struct {
m map[string]unit
}
// NewSet returns a new string set containing strs.
func NewSet(strs ...string) (set *Set) {
set = &Set{
m: make(map[string]unit, len(strs)),
}
for... | 19.636364 | 80 | 0.627315 |
be5e908809f06cefa7138f2fdea03e7909d696d6 | 841 | ts | TypeScript | packages/color/src/int/int-srgb.ts | ja0nz/umbrella | fc2d657b51d111ab548fb56b497ad4e13a2f888a | [
"Apache-2.0"
] | 2,293 | 2018-01-24T14:36:35.000Z | 2022-03-29T18:44:28.000Z | packages/color/src/int/int-srgb.ts | ja0nz/umbrella | fc2d657b51d111ab548fb56b497ad4e13a2f888a | [
"Apache-2.0"
] | 283 | 2018-01-28T20:01:54.000Z | 2022-03-31T10:00:01.000Z | packages/color/src/int/int-srgb.ts | ja0nz/umbrella | fc2d657b51d111ab548fb56b497ad4e13a2f888a | [
"Apache-2.0"
] | 118 | 2018-02-03T03:11:30.000Z | 2022-03-22T14:38:07.000Z | import { setC4 } from "@thi.ng/vectors/setc";
import type { Color } from "../api.js";
import { INV8BIT } from "../api/constants.js";
export const intArgb32Srgb = (out: Color | null, src: number) =>
setC4(
out || [],
((src >>> 16) & 0xff) * INV8BIT,
((src >>> 8) & 0xff) * INV8BIT,
(s... | 30.035714 | 64 | 0.537455 |
0d7793c7db3fdc47e2662e8a65f4c5470ffc451a | 1,060 | cs | C# | contract/MAVN.Service.CrossChainTransfers.Contract/TransferToExternalProcessedEvent.cs | mavn-alliance/MAVN.Service.CrossChainTransfers | 2fb449ba700839f60adc5c3ad2c3c17c6c625b9d | [
"MIT"
] | null | null | null | contract/MAVN.Service.CrossChainTransfers.Contract/TransferToExternalProcessedEvent.cs | mavn-alliance/MAVN.Service.CrossChainTransfers | 2fb449ba700839f60adc5c3ad2c3c17c6c625b9d | [
"MIT"
] | 6 | 2020-03-25T18:49:24.000Z | 2021-12-20T00:18:57.000Z | contract/MAVN.Service.CrossChainTransfers.Contract/TransferToExternalProcessedEvent.cs | mavn-alliance/MAVN.Service.CrossChainTransfers | 2fb449ba700839f60adc5c3ad2c3c17c6c625b9d | [
"MIT"
] | 5 | 2020-03-25T19:12:58.000Z | 2020-05-06T15:18:07.000Z | using System.Numerics;
using MAVN.Numerics;
namespace MAVN.Service.CrossChainTransfers.Contract
{
public class TransferToExternalProcessedEvent
{
public string OperationId { get; set; }
/// <summary>
/// Id of the Customer
/// </summary>
public string CustomerId { get; ... | 26.5 | 58 | 0.557547 |
5aebbf1d32d7df4b5f6b7bbdf8918a744159869a | 17,011 | cs | C# | apis/Google.Cloud.Dataflow.V1Beta3/Google.Cloud.Dataflow.V1Beta3.Snippets/JobsV1Beta3ClientSnippets.g.cs | anshuldavid13/google-cloud-dotnet | a76f461f118053f069f59c45b21251109aa70ecb | [
"Apache-2.0"
] | 285 | 2016-07-14T12:48:23.000Z | 2018-09-15T23:00:47.000Z | apis/Google.Cloud.Dataflow.V1Beta3/Google.Cloud.Dataflow.V1Beta3.Snippets/JobsV1Beta3ClientSnippets.g.cs | anshuldavid13/google-cloud-dotnet | a76f461f118053f069f59c45b21251109aa70ecb | [
"Apache-2.0"
] | 1,567 | 2016-07-11T16:48:03.000Z | 2018-09-17T15:50:12.000Z | apis/Google.Cloud.Dataflow.V1Beta3/Google.Cloud.Dataflow.V1Beta3.Snippets/JobsV1Beta3ClientSnippets.g.cs | anshuldavid13/google-cloud-dotnet | a76f461f118053f069f59c45b21251109aa70ecb | [
"Apache-2.0"
] | 134 | 2016-07-12T02:11:35.000Z | 2018-09-15T00:10:29.000Z | // Copyright 2022 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in ... | 40.696172 | 120 | 0.564047 |
2d14bc423aee716713056c138175f171c8d98334 | 5,816 | lua | Lua | main.lua | tes3mp-scripts/DoubleTrouble | 91758a8c1c4ec1ab94f9da52acd74c492e87fe24 | [
"MIT"
] | 6 | 2019-03-19T21:20:03.000Z | 2021-03-06T15:11:17.000Z | main.lua | tes3mp-scripts/DoubleTrouble | 91758a8c1c4ec1ab94f9da52acd74c492e87fe24 | [
"MIT"
] | null | null | null | main.lua | tes3mp-scripts/DoubleTrouble | 91758a8c1c4ec1ab94f9da52acd74c492e87fe24 | [
"MIT"
] | 1 | 2022-03-17T03:04:25.000Z | 2022-03-17T03:04:25.000Z | local DoubleTrouble = {}
DoubleTrouble.scriptName = "DoubleTrouble"
DoubleTrouble.cellDir = tes3mp.GetModDir() .. "/cell/"
DoubleTrouble.defaultConfig = {
minimumCopies = 3,
maximumCopies = 7,
creatures = {
"ascended_sleeper", "ash_ghoul", "ash_slave", "ash_zombie", "ash_zombie_fgaz", "corprus_st... | 66.850575 | 3,234 | 0.746389 |
a4ac2d0b4d85b32bb98353f79a9cfb0d68ac4800 | 1,033 | php | PHP | Websom/Generic/Core/Data.php | SomeGreatUsername/websom | efc3c6280c8f54213cc1d19a7c6032c8a348878a | [
"MIT"
] | null | null | null | Websom/Generic/Core/Data.php | SomeGreatUsername/websom | efc3c6280c8f54213cc1d19a7c6032c8a348878a | [
"MIT"
] | null | null | null | Websom/Generic/Core/Data.php | SomeGreatUsername/websom | efc3c6280c8f54213cc1d19a7c6032c8a348878a | [
"MIT"
] | null | null | null | <?php
/**
* \defgroup Data Data
*
* The Data class is a new tool that will replace the Object data interfacing.
*
* This tool only contains a MySql database table structure object for now.
*
*/
/**
* \ingroup Data
*/
class Data {
/**
* This method is used to construct a Data_Structure object.
* See Data_Struct... | 21.520833 | 174 | 0.660213 |
05377e2c76b1f86614cf7fd4bf94ff133376253a | 123 | rb | Ruby | app/helpers/application_helper.rb | kity-linuxero/todorails | dc9ab6548cae26dd98fc18e2b4d6941de0819511 | [
"MIT"
] | null | null | null | app/helpers/application_helper.rb | kity-linuxero/todorails | dc9ab6548cae26dd98fc18e2b4d6941de0819511 | [
"MIT"
] | 14 | 2016-12-05T00:36:25.000Z | 2022-03-30T22:19:27.000Z | app/helpers/application_helper.rb | kity-linuxero/todorails | dc9ab6548cae26dd98fc18e2b4d6941de0819511 | [
"MIT"
] | null | null | null | module ApplicationHelper
VERSION = "1.4.0"
YEAR = "2016"
DEVELOPERS = "Cristian Giambruni"
NAME = "Todo-Rails"
end
| 17.571429 | 35 | 0.682927 |
72b3af8c38b4b8ad9dbdd2e798e231c54269bea3 | 791 | cs | C# | RightpointLabs.Pourcast.Application/Orchestrators/Abstract/IIdentityOrchestrator.cs | RightpointLabs/Pourcast | 2b15b6eee7f0b48357281b691398b040970b659f | [
"MIT"
] | 5 | 2015-02-11T14:15:58.000Z | 2016-11-21T12:53:57.000Z | RightpointLabs.Pourcast.Application/Orchestrators/Abstract/IIdentityOrchestrator.cs | Rightpoint/Pourcast | 2b15b6eee7f0b48357281b691398b040970b659f | [
"MIT"
] | 12 | 2015-02-18T17:17:34.000Z | 2016-10-26T19:15:41.000Z | RightpointLabs.Pourcast.Application/Orchestrators/Abstract/IIdentityOrchestrator.cs | Rightpoint/Pourcast | 2b15b6eee7f0b48357281b691398b040970b659f | [
"MIT"
] | 3 | 2015-02-27T21:53:39.000Z | 2018-10-11T19:37:28.000Z | namespace RightpointLabs.Pourcast.Application.Orchestrators.Abstract
{
using System.Collections.Generic;
using RightpointLabs.Pourcast.Domain.Models;
public interface IIdentityOrchestrator
{
bool IsUserInRole(string username, string roleName);
IEnumerable<Role> GetRolesForUser(string... | 24.71875 | 69 | 0.705436 |
aee610d5dad11f1e1c2844637acd92cfd36f5419 | 167 | cs | C# | Assets/Plugins/GoKit/enums/ShakeType.cs | Alaanor/udh-gamejam | 0825364195512b41b4f5f0d548def8c16d341b95 | [
"WTFPL"
] | null | null | null | Assets/Plugins/GoKit/enums/ShakeType.cs | Alaanor/udh-gamejam | 0825364195512b41b4f5f0d548def8c16d341b95 | [
"WTFPL"
] | null | null | null | Assets/Plugins/GoKit/enums/ShakeType.cs | Alaanor/udh-gamejam | 0825364195512b41b4f5f0d548def8c16d341b95 | [
"WTFPL"
] | null | null | null | using UnityEngine;
using System.Collections;
[System.Flags]
public enum ShakeType
{
Position = ( 1 << 0 ),
Scale = ( 1 << 1 ),
Eulers = ( 1 << 2 )
} | 15.181818 | 27 | 0.556886 |
93327697cc13afda82bc50265e8f1cb1a56d563d | 3,276 | go | Go | security/pkg/k8s/controller/casecret.go | waret/istio | d0889b74dabea59878be27202269839789a41e61 | [
"Apache-2.0"
] | 1 | 2020-06-29T05:12:04.000Z | 2020-06-29T05:12:04.000Z | security/pkg/k8s/controller/casecret.go | waret/istio | d0889b74dabea59878be27202269839789a41e61 | [
"Apache-2.0"
] | null | null | null | security/pkg/k8s/controller/casecret.go | waret/istio | d0889b74dabea59878be27202269839789a41e61 | [
"Apache-2.0"
] | null | null | null | // Copyright 2019 Istio Authors
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to i... | 33.090909 | 111 | 0.734127 |
438b70f9b46c1d3c161522ac7b66340bf29f84dc | 237 | ts | TypeScript | packages/benchmarks/src/state-controller.ts | jamesfer/incremental | 0e3c226910033f65b8b2dac8fc86a90b13c4d19a | [
"MIT"
] | null | null | null | packages/benchmarks/src/state-controller.ts | jamesfer/incremental | 0e3c226910033f65b8b2dac8fc86a90b13c4d19a | [
"MIT"
] | 7 | 2021-03-10T01:03:34.000Z | 2022-02-26T20:57:28.000Z | packages/benchmarks/src/state-controller.ts | jamesfer/incremental | 0e3c226910033f65b8b2dac8fc86a90b13c4d19a | [
"MIT"
] | null | null | null | import { State } from 'tree-app-incremental-core';
export interface StateController {
setName(id: string, name: string): void;
moveChild(id: string, startIndex: number, endIndex: number): void;
overwrite(newState: State): void;
}
| 29.625 | 68 | 0.729958 |
e230b4b3836d91e0ecb2b01269cbcb86b8315960 | 2,350 | py | Python | model.py | clive819/DenseNet | d6b067c6d068c99345da950b5a83bbaf98a804dd | [
"MIT"
] | null | null | null | model.py | clive819/DenseNet | d6b067c6d068c99345da950b5a83bbaf98a804dd | [
"MIT"
] | null | null | null | model.py | clive819/DenseNet | d6b067c6d068c99345da950b5a83bbaf98a804dd | [
"MIT"
] | null | null | null | from config import DenseNetConfig as dnc
import torch
import torch.nn as nn
class _transitionLayer(nn.Module):
def __init__(self, inChannels):
super(_transitionLayer, self).__init__()
self.outChannels = int(inChannels * dnc.compressionRate)
self.module = nn.Sequential(
nn.Gro... | 27.011494 | 71 | 0.594468 |
20bda32868abc156b6c14235b8e42bdc0125cd93 | 390 | cs | C# | src/SolrExpress/Search/Parameter/IQueryParameter.cs | LivingNaturally/solr-express | bf868ea89eab033dafe41d8830c396d96350e868 | [
"MIT"
] | 73 | 2015-05-25T16:20:14.000Z | 2021-12-13T08:12:45.000Z | src/SolrExpress/Search/Parameter/IQueryParameter.cs | LivingNaturally/solr-express | bf868ea89eab033dafe41d8830c396d96350e868 | [
"MIT"
] | 623 | 2015-06-09T11:33:49.000Z | 2020-10-06T09:31:06.000Z | src/SolrExpress/Search/Parameter/IQueryParameter.cs | LivingNaturally/solr-express | bf868ea89eab033dafe41d8830c396d96350e868 | [
"MIT"
] | 33 | 2015-12-21T14:07:07.000Z | 2021-12-24T13:09:19.000Z | using SolrExpress.Search.Query;
namespace SolrExpress.Search.Parameter
{
/// <summary>
/// Query parameter
/// </summary>
public interface IQueryParameter<TDocument> : ISearchParameter
where TDocument : Document
{
/// <summary>
/// Parameter to include in query
/// ... | 22.941176 | 66 | 0.607692 |
b63df5be3b9c1d69f670ee7f4ae211137ee22b6a | 331 | kt | Kotlin | creditcardview/src/test/java/com/umut/soysal/compose/creditcardview/StringExtensionTest.kt | umutsoysl/ComposeCreditCardView | 15e18c662a661e686f92b4b90c840503ffcec47a | [
"Apache-2.0"
] | 13 | 2022-01-20T14:23:55.000Z | 2022-02-17T05:22:54.000Z | creditcardview/src/test/java/com/umut/soysal/compose/creditcardview/StringExtensionTest.kt | umutsoysl/ComposeCreditCardView | 15e18c662a661e686f92b4b90c840503ffcec47a | [
"Apache-2.0"
] | null | null | null | creditcardview/src/test/java/com/umut/soysal/compose/creditcardview/StringExtensionTest.kt | umutsoysl/ComposeCreditCardView | 15e18c662a661e686f92b4b90c840503ffcec47a | [
"Apache-2.0"
] | null | null | null | package com.umut.soysal.compose.creditcardview
import org.junit.Test
class StringExtensionTest {
@Test
fun `when string toCreditCardFormatter is true`() {
val simpleCardFormat = "1234 5678 9124 5752"
val cardNumber = "1234567891245752"
val resultData = cardNumber.toCreditCardFormatte... | 23.642857 | 59 | 0.70997 |
4bc5f95e564ff538948f51bf28aee86c32c80d5c | 3,200 | h | C | libpvkernel/src/include/pvkernel/rush/PVSourceDescription.h | inendi-inspector/inspector | 9b9a00222d8a73cb0817ca56790ee9155db61cc4 | [
"MIT"
] | null | null | null | libpvkernel/src/include/pvkernel/rush/PVSourceDescription.h | inendi-inspector/inspector | 9b9a00222d8a73cb0817ca56790ee9155db61cc4 | [
"MIT"
] | null | null | null | libpvkernel/src/include/pvkernel/rush/PVSourceDescription.h | inendi-inspector/inspector | 9b9a00222d8a73cb0817ca56790ee9155db61cc4 | [
"MIT"
] | null | null | null | /* * MIT License
*
* © ESI Group, 2015
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of
* this software and associated documentation files (the "Software"), to deal in
* the Software without restriction, including without limitation the rights to
* use, copy, modify, merge, pub... | 38.095238 | 92 | 0.74625 |
b720dbccc6530f5a6a59ff24cf8e240d9967e9fe | 13,700 | cs | C# | CS/Properties/Settings.Designer.cs | Excel-projects/Script-Help | a3db9f3660792cc1bb1a7b777df5fd7122a91030 | [
"MIT"
] | 50 | 2018-12-23T01:13:02.000Z | 2022-03-27T01:09:40.000Z | CS/Properties/Settings.Designer.cs | Excel-projects/Script-Help | a3db9f3660792cc1bb1a7b777df5fd7122a91030 | [
"MIT"
] | 1 | 2018-11-16T07:19:10.000Z | 2020-09-27T23:39:04.000Z | CS/Properties/Settings.Designer.cs | Excel-projects/Script-Help | a3db9f3660792cc1bb1a7b777df5fd7122a91030 | [
"MIT"
] | 13 | 2018-10-29T13:47:10.000Z | 2021-10-01T12:14:58.000Z | //------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:4.0.30319.42000
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//--... | 39.367816 | 151 | 0.578394 |
3f971695599cc3558339a18a91317be1687045d2 | 1,588 | php | PHP | web/app/themes/Divi/includes/builder/plugin-compat/divi-module-code-snippet.php | ashajida/wp_ajicom | 1f59fe13dbc5d193b61d60fc8bc4ba00d504ca28 | [
"MIT"
] | 1 | 2021-01-29T19:39:06.000Z | 2021-01-29T19:39:06.000Z | web/app/themes/Divi/includes/builder/plugin-compat/divi-module-code-snippet.php | ashajida/wp_ajicom | 1f59fe13dbc5d193b61d60fc8bc4ba00d504ca28 | [
"MIT"
] | 87 | 2021-01-20T10:44:56.000Z | 2021-11-02T09:22:21.000Z | themes/Divi/includes/builder/plugin-compat/divi-module-code-snippet.php | dis-moi/www.dismoi.io | 18332c8d2c329e732399b5460c1c91a3018548d2 | [
"MIT"
] | 2 | 2020-11-09T15:29:52.000Z | 2022-01-10T15:11:58.000Z | <?php
if ( ! defined( 'ABSPATH' ) ) {
exit; // Exit if accessed directly
}
/**
* Plugin compatibility for Divi Code Snippet Module
*
* @since 3.17.3
*/
class ET_Builder_Plugin_Compat_Divi_Code_Snippet_Module extends ET_Builder_Plugin_Compat_Base {
protected $posts = '';
/**
* Constructor
*/
public funct... | 22.055556 | 113 | 0.68136 |
9a164c2b57ca5f34431a7bb0a4ad8410b2d100c0 | 785 | dart | Dart | lib/repository/trending_repository.dart | drow19/Wallpaper | 7851c95b9a803e2b51cd75e6aee2c0c87379835c | [
"Apache-2.0"
] | null | null | null | lib/repository/trending_repository.dart | drow19/Wallpaper | 7851c95b9a803e2b51cd75e6aee2c0c87379835c | [
"Apache-2.0"
] | null | null | null | lib/repository/trending_repository.dart | drow19/Wallpaper | 7851c95b9a803e2b51cd75e6aee2c0c87379835c | [
"Apache-2.0"
] | null | null | null | import 'dart:convert';
import 'package:flutterwallpaper/helper/base_url.dart';
import 'package:flutterwallpaper/model/wallpaper_model.dart';
import 'package:http/http.dart' as http;
class TrendingRepo {
Future<List<WallpaperModel>> getData(String max) async {
String _url = baseUrl + max;
final response = aw... | 25.322581 | 79 | 0.677707 |
ef8d2a84a54ccc37f82f311f84b9a24b0004f63b | 1,065 | h | C | leviathan/leviathan/utility/memory_leak.h | Stopmale/Leviathan_Project | 247b2fa87c7e6e1238385328556b82e517b62c83 | [
"Apache-2.0"
] | null | null | null | leviathan/leviathan/utility/memory_leak.h | Stopmale/Leviathan_Project | 247b2fa87c7e6e1238385328556b82e517b62c83 | [
"Apache-2.0"
] | null | null | null | leviathan/leviathan/utility/memory_leak.h | Stopmale/Leviathan_Project | 247b2fa87c7e6e1238385328556b82e517b62c83 | [
"Apache-2.0"
] | null | null | null | #pragma once
#ifdef _MSC_VER
#ifdef _DEBUG
#define _CRTDBG_MAP_ALLOC
#include <crtdbg.h>
#ifndef _CONSOLE
#include <cstdlib>
#endif
namespace Leviathan
{
class cMemoryLeack
{
public:
cMemoryLeack()
{
_CrtSetDbgFlag(_CRTDBG_ALLOC_MEM_DF | _CRTDBG_LEAK_CHECK_DF);
#ifdef _CONSOLE
_CrtSetReportMode(_CRT_WARN, _CR... | 20.480769 | 69 | 0.80939 |
9778400e6dd3c041536a6bcac194fc168caadc12 | 1,538 | tsx | TypeScript | packages/cube-vue/src/icons/byted-increase.tsx | iq9891/icon | feee74568e556fb654197b62951854a2fad41f9f | [
"MIT"
] | null | null | null | packages/cube-vue/src/icons/byted-increase.tsx | iq9891/icon | feee74568e556fb654197b62951854a2fad41f9f | [
"MIT"
] | null | null | null | packages/cube-vue/src/icons/byted-increase.tsx | iq9891/icon | feee74568e556fb654197b62951854a2fad41f9f | [
"MIT"
] | 1 | 2021-10-14T01:00:08.000Z | 2021-10-14T01:00:08.000Z | /** @format */
import { ISvgIconProps, IconWrapper } from '../runtime';
export default IconWrapper('byted-increase', false, (props: ISvgIconProps) => (
<svg width={props.size} height={props.size} viewBox="0 0 48 48" fill="none">
<path
d="M41 25C41 34.9411 32.9411 43 23 43C13.0589 43 5 34.9411 5 25C5 15.05... | 30.156863 | 95 | 0.637841 |
b0b5dcd5a5d7039e3099557dd21a9171aa6ed377 | 416 | swift | Swift | Sources/Card/ConfirmPaymentSourceResponse.swift | turlodales/iOS-SDK-1 | f772c94e1ce9db4a8adb65c6e4a6772dcdcc0e08 | [
"MIT"
] | 16 | 2021-08-03T15:06:31.000Z | 2022-03-09T01:46:02.000Z | Sources/Card/ConfirmPaymentSourceResponse.swift | turlodales/iOS-SDK-1 | f772c94e1ce9db4a8adb65c6e4a6772dcdcc0e08 | [
"MIT"
] | 20 | 2021-08-03T15:51:56.000Z | 2022-03-24T21:26:28.000Z | Sources/Card/ConfirmPaymentSourceResponse.swift | turlodales/iOS-SDK-1 | f772c94e1ce9db4a8adb65c6e4a6772dcdcc0e08 | [
"MIT"
] | 5 | 2021-10-21T21:18:28.000Z | 2022-03-07T20:13:53.000Z | // swiftlint:disable space_after_main_type
import Foundation
#if canImport(PaymentsCore)
import PaymentsCore
#endif
struct ConfirmPaymentSourceResponse: Decodable {
let id: String
let paymentSource: PaymentSource
}
struct PaymentSource: Decodable {
let card: PaymentSource.Card
struct Card: Decodable... | 18.909091 | 48 | 0.71875 |
69ab62dd06d9d6be8b1bef076ee883882634bdf9 | 678 | swift | Swift | Weather-For-Three-Days-Reactor/Cities/CitiesDataSource.swift | menabebawy/-Weather-For-Three-Days-Reactor | 5036dec5dcbaeb7d1aaf9af7f4b6e9ba7fc84bd6 | [
"MIT"
] | null | null | null | Weather-For-Three-Days-Reactor/Cities/CitiesDataSource.swift | menabebawy/-Weather-For-Three-Days-Reactor | 5036dec5dcbaeb7d1aaf9af7f4b6e9ba7fc84bd6 | [
"MIT"
] | null | null | null | Weather-For-Three-Days-Reactor/Cities/CitiesDataSource.swift | menabebawy/-Weather-For-Three-Days-Reactor | 5036dec5dcbaeb7d1aaf9af7f4b6e9ba7fc84bd6 | [
"MIT"
] | 1 | 2020-03-27T16:25:09.000Z | 2020-03-27T16:25:09.000Z | //
// CitiesDataSource.swift
// Weather-For-Three-Days-Reactor
//
// Created by Mena Bebawy on 3/18/20.
// Copyright © 2020 Mena. All rights reserved.
//
import RxDataSources
final class CitiesDataSource: RxTableViewSectionedReloadDataSource<CitiesSection> {
init() {
super.init(configureCell: { (_, t... | 27.12 | 106 | 0.641593 |
1aaebc56b865f8e05ef858be750a0a85b74fc987 | 7,723 | cs | C# | src/Networking/MultiplayerManager.cs | mahgo/CSM | c779a0468d4b5e288dcf111efa0414a8553a9638 | [
"MIT"
] | 241 | 2020-06-03T01:07:58.000Z | 2022-03-31T21:28:54.000Z | src/Networking/MultiplayerManager.cs | mahgo/CSM | c779a0468d4b5e288dcf111efa0414a8553a9638 | [
"MIT"
] | 78 | 2020-06-02T11:10:46.000Z | 2022-03-21T13:24:24.000Z | src/Networking/MultiplayerManager.cs | mahgo/CSM | c779a0468d4b5e288dcf111efa0414a8553a9638 | [
"MIT"
] | 68 | 2020-07-13T22:25:14.000Z | 2022-03-17T22:48:03.000Z | using ColossalFramework.Threading;
using ColossalFramework.UI;
using CSM.Networking.Config;
using CSM.Panels;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading;
using CSM.Networking.Status;
namespace CSM.Networking
{
public class MultiplayerManager
{
/// <summar... | 33.288793 | 127 | 0.531141 |
8de6bf4426fdbf14abfc9681ef917eae79037c36 | 2,813 | js | JavaScript | src/odata-client/sfo-data-service/EmployeeProfileSectionConfigRequestBuilder.js | robypag/sdk-gen-sfsf | ce9b613ee3e85dd8ed4e42ffe200df1a2decf835 | [
"MIT"
] | null | null | null | src/odata-client/sfo-data-service/EmployeeProfileSectionConfigRequestBuilder.js | robypag/sdk-gen-sfsf | ce9b613ee3e85dd8ed4e42ffe200df1a2decf835 | [
"MIT"
] | null | null | null | src/odata-client/sfo-data-service/EmployeeProfileSectionConfigRequestBuilder.js | robypag/sdk-gen-sfsf | ce9b613ee3e85dd8ed4e42ffe200df1a2decf835 | [
"MIT"
] | null | null | null | "use strict";
var __extends = (this && this.__extends) || (function () {
var extendStatics = function (d, b) {
extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnPrope... | 53.075472 | 128 | 0.722005 |
4394c87d163a4cf4cc483694c6acc4df4626b0ad | 6,573 | ts | TypeScript | ts-demos/src/lesson-03/calculator.ts | csdoker/typescript-learning | e00cbe864817c83cff3dba2ceeebd9f3d8b8481e | [
"MIT"
] | null | null | null | ts-demos/src/lesson-03/calculator.ts | csdoker/typescript-learning | e00cbe864817c83cff3dba2ceeebd9f3d8b8481e | [
"MIT"
] | null | null | null | ts-demos/src/lesson-03/calculator.ts | csdoker/typescript-learning | e00cbe864817c83cff3dba2ceeebd9f3d8b8481e | [
"MIT"
] | null | null | null | {
class Calculator {
public n1: string = ''
public n2: string = ''
public operator: string = ''
public result: string = ''
public span: HTMLSpanElement
public container: HTMLDivElement
public textLists: Array<Array<string | number>> = [
['Clear', '÷'],
[7, 8, 9, '×'],
[4,... | 28.955947 | 96 | 0.526548 |
d053cde7f47f41ecae161805137b82bd4fdc4c9a | 1,439 | cpp | C++ | tests/stopwatch_test.cpp | cameronbroe/libstopwatch | e050a2f20caf66d18c9473d2a31f501e783ab679 | [
"MIT"
] | null | null | null | tests/stopwatch_test.cpp | cameronbroe/libstopwatch | e050a2f20caf66d18c9473d2a31f501e783ab679 | [
"MIT"
] | null | null | null | tests/stopwatch_test.cpp | cameronbroe/libstopwatch | e050a2f20caf66d18c9473d2a31f501e783ab679 | [
"MIT"
] | null | null | null | #include <catch2/catch.hpp>
#include <iostream>
#include "stopwatch.h"
TEST_CASE("Testing single task stopwatch", "[multi-file:stopwatch]") {
stopwatch::Stopwatch stopwatch;
SECTION("should execute a task at 5 ticks") {
bool five_ticks_ran = false;
auto five_ticks = [&five_ticks_ran]() {
... | 30.617021 | 73 | 0.608756 |
83478c292b59bef22761d09bd853c4a74f017a74 | 53,028 | asm | Assembly | ls.asm | brian19991119/changbri_project4_frq | f75cdb1a35fdf98800b1aa7c269c23aa41b26ff5 | [
"MIT-0"
] | null | null | null | ls.asm | brian19991119/changbri_project4_frq | f75cdb1a35fdf98800b1aa7c269c23aa41b26ff5 | [
"MIT-0"
] | null | null | null | ls.asm | brian19991119/changbri_project4_frq | f75cdb1a35fdf98800b1aa7c269c23aa41b26ff5 | [
"MIT-0"
] | null | null | null |
_ls: file format elf32-i386
Disassembly of section .text:
00000000 <main>:
close(fd);
}
int
main(int argc, char *argv[])
{
0: 8d 4c 24 04 lea 0x4(%esp),%ecx
4: 83 e4 f0 and $0xfffffff0,%esp
7: ff 71 fc pushl -0x4(%ecx)
a: 55 push %eb... | 35.211155 | 73 | 0.413461 |
f62931072abe30397a2b46e3eac694ac8d57fd71 | 48,597 | cc | C++ | components/payments/core/journey_logger_unittest.cc | metux/chromium-deb | 3c08e9b89a1b6f95f103a61ff4f528dbcd57fc42 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | components/payments/core/journey_logger_unittest.cc | metux/chromium-deb | 3c08e9b89a1b6f95f103a61ff4f528dbcd57fc42 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | components/payments/core/journey_logger_unittest.cc | metux/chromium-deb | 3c08e9b89a1b6f95f103a61ff4f528dbcd57fc42 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | // Copyright 2017 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "components/payments/core/journey_logger.h"
#include "base/metrics/metrics_hashes.h"
#include "base/test/histogram_tester.h"
#include "base/test... | 44.05893 | 96 | 0.73558 |
2c38fc6e13a1316e29407c0b76a005669e1970c4 | 1,180 | py | Python | phc/easy/patients/__init__.py | taylordeatri/phc-sdk-py | 8f3ec6ac44e50c7194f174fd0098de390886693d | [
"MIT"
] | 1 | 2020-07-22T12:46:58.000Z | 2020-07-22T12:46:58.000Z | phc/easy/patients/__init__.py | taylordeatri/phc-sdk-py | 8f3ec6ac44e50c7194f174fd0098de390886693d | [
"MIT"
] | 54 | 2019-10-09T16:19:04.000Z | 2022-01-19T20:28:59.000Z | phc/easy/patients/__init__.py | taylordeatri/phc-sdk-py | 8f3ec6ac44e50c7194f174fd0098de390886693d | [
"MIT"
] | 2 | 2019-10-30T19:54:43.000Z | 2020-12-03T18:57:15.000Z | import pandas as pd
from phc.easy.frame import Frame
from phc.easy.abstract.fhir_service_item import FhirServiceItem
from phc.easy.patients.address import expand_address_column
from phc.easy.patients.name import expand_name_column
class Patient(FhirServiceItem):
@staticmethod
def table_name():
return... | 28.780488 | 76 | 0.588136 |
9fed9867e7bbf41082dd266ceb35674fe5ec853f | 5,828 | py | Python | data.py | accelsao/MusicBox | d06a30c681f2d817f0aaecf0d6bc2f0dfffff5af | [
"MIT"
] | null | null | null | data.py | accelsao/MusicBox | d06a30c681f2d817f0aaecf0d6bc2f0dfffff5af | [
"MIT"
] | null | null | null | data.py | accelsao/MusicBox | d06a30c681f2d817f0aaecf0d6bc2f0dfffff5af | [
"MIT"
] | null | null | null | import argparse
import json
import os
import glob
import re
from time import sleep
from math import cos, sin, radians, degrees, asin, atan2
import numpy as np
if __name__ == '__main__':
# https://www.google.com/maps/d/u/0/viewer?mid=1Kn1r0J6jdb6VR1tRXt7dIrJN3LA&ll=24.9682276%2C121.19437649999998&z=17
gate3 = [... | 38.853333 | 129 | 0.443377 |
25eb058139840f30207072ad1b9349455977d5b6 | 338 | cs | C# | AzusaERP.OldStuff/PsxDatacenter/Entity/PsxDatacenterPreview.cs | feyris-tan/azusa | a34475e9d15b09c2bc82219496908b09246a0bfd | [
"BSD-2-Clause"
] | null | null | null | AzusaERP.OldStuff/PsxDatacenter/Entity/PsxDatacenterPreview.cs | feyris-tan/azusa | a34475e9d15b09c2bc82219496908b09246a0bfd | [
"BSD-2-Clause"
] | 1 | 2021-07-25T10:28:04.000Z | 2021-07-25T10:28:04.000Z | AzusaERP.OldStuff/PsxDatacenter/Entity/PsxDatacenterPreview.cs | feyris-tan/azusa | a34475e9d15b09c2bc82219496908b09246a0bfd | [
"BSD-2-Clause"
] | null | null | null | namespace moe.yo3explorer.azusa.OfflineReaders.PsxDatacenter.Entity
{
public class PsxDatacenterPreview
{
public int Id { get; set; }
public string Platform { get; set; }
public string SKU { get; set; }
public string Title { get; set; }
public bool HasAdditionalData { ge... | 28.166667 | 68 | 0.627219 |
45a6caa57f52335bc42e5b0eebfca6086e461be5 | 3,652 | py | Python | main.py | Guiaochino/contact-simulation | 85c0ba74a416b45e3632481ec10de4bbcbbd44a8 | [
"MIT"
] | null | null | null | main.py | Guiaochino/contact-simulation | 85c0ba74a416b45e3632481ec10de4bbcbbd44a8 | [
"MIT"
] | null | null | null | main.py | Guiaochino/contact-simulation | 85c0ba74a416b45e3632481ec10de4bbcbbd44a8 | [
"MIT"
] | null | null | null | from contacts import Contacts
import time
import os
# Simulate the PhoneBook functions
# - Display Contacts
# - Add Contacts
# - Delete Contacts
# - Search Contacts
# - Exit
# Declare an empty list
contactList = list()
# validate the input of the user if a number
def input_validation(num):
try:
... | 25.013699 | 71 | 0.559146 |
6f49e218774f7cedc19fde0066884acfd8ccbac7 | 337 | sh | Shell | Testing/observables_load_test.sh | zeptolife/zcoap-server | 0187c589bc7a7c3f10c9dd8431f6e2ce2d5f8b40 | [
"MIT"
] | 3 | 2019-10-21T17:49:17.000Z | 2021-04-19T14:38:04.000Z | Testing/observables_load_test.sh | zcoap/zcoap-server | 002ce936cad6dbf15eaa21fa651251cec443a2cb | [
"MIT"
] | 1 | 2019-10-18T05:33:01.000Z | 2019-10-18T22:37:29.000Z | Testing/observables_load_test.sh | zeptolife/zcoap-server | 0187c589bc7a7c3f10c9dd8431f6e2ce2d5f8b40 | [
"MIT"
] | 1 | 2021-03-08T18:15:10.000Z | 2021-03-08T18:15:10.000Z | #!/bin/bash
sudo apt install libcoap2 # as distasteful as libcoap is...
make clean
make
sleep 1
./example-server-linux &
if [[ $? -ne 0 ]]; then
echo "hmmm the server is cranky and gave up..."
exit 1
fi
count=$1
for i in `seq 1 $count`; do
echo $@
coap-client -m GET coap://127.0.0.1/telemetry/temperatur... | 18.722222 | 71 | 0.649852 |
7b2c1003b495e20a0fc7e8f2b4e1c205254fdc78 | 9,304 | lua | Lua | black metal suit script - Copy.lua | xVoid-xyz/Roblox-Scripts | 7eb176fa654f2ea5fbc6bcccced1b15df7ed82c2 | [
"BSD-3-Clause"
] | 70 | 2021-02-09T17:21:32.000Z | 2022-03-28T12:41:42.000Z | black metal suit script - Copy.lua | xVoid-xyz/Roblox-Scripts | 7eb176fa654f2ea5fbc6bcccced1b15df7ed82c2 | [
"BSD-3-Clause"
] | 4 | 2021-08-19T22:05:58.000Z | 2022-03-19T18:58:01.000Z | black metal suit script - Copy.lua | xVoid-xyz/Roblox-Scripts | 7eb176fa654f2ea5fbc6bcccced1b15df7ed82c2 | [
"BSD-3-Clause"
] | 325 | 2021-02-26T22:23:41.000Z | 2022-03-31T19:36:12.000Z | print(time'')
if script then if game.PlaceId~=0 then script.Parent=a end end
waitingFor=function(instance,stuff)
while not instance[stuff]do
instance.Changed:wait''
end
return instance[stuff]
end
Removes={'Hat','Pants','Shirt','ShirtGraphic','BodyColors'}
WaitingForObjectum=function(instance,p,name)
if p:lower'... | 26.507123 | 71 | 0.750322 |
1b08a43fcde7b460ea86ee37fe04b60673918437 | 4,307 | cs | C# | Ui/TicTacToe.WPFClient/ViewModel/GameBoardViewModel.cs | MK-NEUKO/TicTacToeOOP | 9b794881364d1a2a890ce5ed23a72b121464f8f8 | [
"MIT"
] | 2 | 2021-06-20T14:18:16.000Z | 2021-12-13T23:42:28.000Z | Ui/TicTacToe.WPFClient/ViewModel/GameBoardViewModel.cs | MK-NEUKO/TicTacToeOOP | 9b794881364d1a2a890ce5ed23a72b121464f8f8 | [
"MIT"
] | 1 | 2020-10-23T17:26:34.000Z | 2021-06-20T00:30:31.000Z | Ui/TicTacToe.WPFClient/ViewModel/GameBoardViewModel.cs | MK-NEUKO/TicTacToeOOP | 9b794881364d1a2a890ce5ed23a72b121464f8f8 | [
"MIT"
] | 1 | 2022-02-22T18:25:54.000Z | 2022-02-22T18:25:54.000Z | using System;
using System.Text;
using System.Windows.Input;
using System.Collections.Generic;
using MichaelKoch.TicTacToe.CrossCutting.DataClasses;
using MichaelKoch.TicTacToe.Logik.TicTacToeCore.Contract;
namespace MichaelKoch.TicTacToe.Ui.TicTacToe.WPFClient
{
public class GameBoardViewModel : ViewModelBase, I... | 32.141791 | 116 | 0.591595 |
257ed0cbada3d9372125a4156b71b570edce46c6 | 61 | js | JavaScript | src/js/index.js | Jaehoo-dev/js-calculator | 94cd24b1193b21920628883f50ec3e1a7a5e09a2 | [
"MIT"
] | null | null | null | src/js/index.js | Jaehoo-dev/js-calculator | 94cd24b1193b21920628883f50ec3e1a7a5e09a2 | [
"MIT"
] | null | null | null | src/js/index.js | Jaehoo-dev/js-calculator | 94cd24b1193b21920628883f50ec3e1a7a5e09a2 | [
"MIT"
] | null | null | null | import Calculator from './calculator.js';
new Calculator();
| 15.25 | 41 | 0.737705 |
b0124eeb58beed3ef75927edf3cb479fa5698423 | 12,472 | py | Python | python3/util.freshdns.py | cdluminate/MyNotes | cf28f2a3fa72723153147e21fed5e7b598baf44f | [
"CC0-1.0"
] | null | null | null | python3/util.freshdns.py | cdluminate/MyNotes | cf28f2a3fa72723153147e21fed5e7b598baf44f | [
"CC0-1.0"
] | null | null | null | python3/util.freshdns.py | cdluminate/MyNotes | cf28f2a3fa72723153147e21fed5e7b598baf44f | [
"CC0-1.0"
] | null | null | null | #!/usr/bin/python3
'''
NAME
freshdns - Boost DNS lookup speed by writing records into hosts
SYNOPSYS
freshdns --help
DESCRIPTION
NOTE: Run this script as root. Python >= 3.6 is required.
This script can be used to (1) configure your resolv.conf via terminal
version of dialog; (2) maintain a static looku... | 32.563969 | 90 | 0.532152 |
7959912b076a6feb9926ab801e3763a6bf66d098 | 924 | php | PHP | application/views/test.php | rickyrivaldo98/sistemBMKG | e987fef7dc27479bb398b270368dca2fc9673238 | [
"MIT"
] | 5 | 2020-02-14T16:54:52.000Z | 2020-05-12T14:55:43.000Z | application/views/test.php | rickyrivaldo98/sistemBMKG | e987fef7dc27479bb398b270368dca2fc9673238 | [
"MIT"
] | null | null | null | application/views/test.php | rickyrivaldo98/sistemBMKG | e987fef7dc27479bb398b270368dca2fc9673238 | [
"MIT"
] | 3 | 2020-03-20T13:14:04.000Z | 2020-12-11T08:22:23.000Z | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Document</title>
</head>
<body>
<br>
<button id="tombol">
klik
</button>
<script>
... | 20.086957 | 102 | 0.528139 |
a90d312dc9b5b770411f430e471d6d4d37a20c67 | 1,638 | swift | Swift | Feature/Auth/Sources/Classes/AuthViewController.swift | SunnyDayDev/Rich-Harvest | 4b112eba658aa4f847f2522183444e283b40d9c5 | [
"Apache-2.0"
] | null | null | null | Feature/Auth/Sources/Classes/AuthViewController.swift | SunnyDayDev/Rich-Harvest | 4b112eba658aa4f847f2522183444e283b40d9c5 | [
"Apache-2.0"
] | null | null | null | Feature/Auth/Sources/Classes/AuthViewController.swift | SunnyDayDev/Rich-Harvest | 4b112eba658aa4f847f2522183444e283b40d9c5 | [
"Apache-2.0"
] | null | null | null | //
// Created by Александр Цикин on 2018-11-20.
//
import Foundation
import RxSwift
import RxCocoa
import RichHarvest_Core_Core
public class AuthViewController: NSViewController {
@IBOutlet weak var personalTokenTextField: NSTextField!
@IBOutlet weak var accountIdTextField: NSTextField!
@IBOutlet weak ... | 24.818182 | 85 | 0.623321 |
96e140b811ac9bf18c3e866196c5875b54854212 | 385 | sh | Shell | sys/path-add-cmd.sh | fxtaoo/cmd | 195ba62a0a2bc48b69b44f1ebf79e4e8531e2cf6 | [
"MIT"
] | null | null | null | sys/path-add-cmd.sh | fxtaoo/cmd | 195ba62a0a2bc48b69b44f1ebf79e4e8531e2cf6 | [
"MIT"
] | null | null | null | sys/path-add-cmd.sh | fxtaoo/cmd | 195ba62a0a2bc48b69b44f1ebf79e4e8531e2cf6 | [
"MIT"
] | null | null | null | #!/usr/bin/env bash
# 指定文件夹路径添加到 PATH (递归),文件添加可执行权限
# $1 为指定 cmd 绝对路径
function add_path(){
local cmd_path=$1
if [[ ! $PATH =~ $cmd_path ]] ; then
PATH="$PATH:$cmd_path"
fi
for e in "$cmd_path"/* ; do
if [[ -d $e && ! $PATH =~ $e ]] ; then
PATH="$PATH:$e"
add_path $e
else
if [[... | 19.25 | 43 | 0.493506 |
146322136723877d6af453523f18245cad44c75c | 380 | ts | TypeScript | src/middlewares/session.ts | delta-kor/xhat | bd308bf305f5d86c8929ddb8acbbc9b1d66c86ad | [
"MIT"
] | 1 | 2020-10-09T06:24:36.000Z | 2020-10-09T06:24:36.000Z | src/middlewares/session.ts | delta-kor/xhat | bd308bf305f5d86c8929ddb8acbbc9b1d66c86ad | [
"MIT"
] | null | null | null | src/middlewares/session.ts | delta-kor/xhat | bd308bf305f5d86c8929ddb8acbbc9b1d66c86ad | [
"MIT"
] | null | null | null | import { Application, NextFunction } from 'express';
import { ExpressRequest, ExpressResponse } from '@interfaces/express';
export default class Session {
static mount(express: Application): Application {
express.use((req: ExpressRequest, res: ExpressResponse, next: NextFunction) => {
req.ticket = req.sess... | 29.230769 | 84 | 0.694737 |
a3d147d5557684f357a0af5de135653a66b76815 | 1,755 | ps1 | PowerShell | scripting/switch.ps1 | bheckel/code | 98309e8aa145901e49460546643c911eaaff54e6 | [
"Apache-2.0"
] | 1 | 2019-08-11T00:39:34.000Z | 2019-08-11T00:39:34.000Z | scripting/switch.ps1 | bheckel/code | 98309e8aa145901e49460546643c911eaaff54e6 | [
"Apache-2.0"
] | null | null | null | scripting/switch.ps1 | bheckel/code | 98309e8aa145901e49460546643c911eaaff54e6 | [
"Apache-2.0"
] | 1 | 2020-07-28T05:58:47.000Z | 2020-07-28T05:58:47.000Z | ##############################################################################
# Name: switch.ps1
#
# Summary: Powershell switch control (i.e. non-cmdlet) statement
#
# Adapted: Fri 15 Jan 2010 10:32:46 (Bob Heckel -- Windows PowerShell in Action)
############################################################... | 24.71831 | 100 | 0.492877 |
c581881724d7d57456379dfafba7149773c62420 | 4,883 | css | CSS | ChromeExtension/calendar/styles/wannianli-common.css | sun2dan/toolkit | 09f2dc3d3dc845aded0a3a995aedcbb5f4a8e4fd | [
"MIT"
] | null | null | null | ChromeExtension/calendar/styles/wannianli-common.css | sun2dan/toolkit | 09f2dc3d3dc845aded0a3a995aedcbb5f4a8e4fd | [
"MIT"
] | null | null | null | ChromeExtension/calendar/styles/wannianli-common.css | sun2dan/toolkit | 09f2dc3d3dc845aded0a3a995aedcbb5f4a8e4fd | [
"MIT"
] | null | null | null | /* icon */
.lunar-box {
background:url(../images/sx.png) no-repeat;
}
.field-botton .arrow{
background:url(../images/date_nav.png) no-repeat;
}
/* 表单元素 */
.field-input{border:1px solid;border-color: silver #D9D9D9 #D9D9D9;height:14px;line-height:14px;width:100%;padding:2px;}
.field-textarea{border:1px solid;border... | 61.0375 | 236 | 0.74831 |
6afa3961aaa975d02416a760e9f65e1e6375cdf2 | 1,800 | c | C | src/Technosoftware/Server/System/OpcSdk_i.c | AkatorMr/opc-daae-server | 7d56e4603064b53476d3c0971a4d873066fba65f | [
"Info-ZIP"
] | null | null | null | src/Technosoftware/Server/System/OpcSdk_i.c | AkatorMr/opc-daae-server | 7d56e4603064b53476d3c0971a4d873066fba65f | [
"Info-ZIP"
] | null | null | null | src/Technosoftware/Server/System/OpcSdk_i.c | AkatorMr/opc-daae-server | 7d56e4603064b53476d3c0971a4d873066fba65f | [
"Info-ZIP"
] | 1 | 2021-04-15T01:08:29.000Z | 2021-04-15T01:08:29.000Z | /*
* Copyright (c) 2020 Technosoftware GmbH. All rights reserved
* Web: https://technosoftware.com
*
* The source code in this file is covered under a dual-license scenario:
* - Owner of a purchased license: SCLA 1.0
* - GPL V3: everybody else
*
* SCLA license terms accompanied with this source code.
* S... | 36.734694 | 97 | 0.688333 |
58c14c871e792deeae0111fcee066a758cfc1320 | 1,687 | css | CSS | public/dist/css/login.css | pubsajib/inventory | f37de2385c4f30742ca41b6d8db7cfbadf285696 | [
"MIT"
] | null | null | null | public/dist/css/login.css | pubsajib/inventory | f37de2385c4f30742ca41b6d8db7cfbadf285696 | [
"MIT"
] | null | null | null | public/dist/css/login.css | pubsajib/inventory | f37de2385c4f30742ca41b6d8db7cfbadf285696 | [
"MIT"
] | null | null | null | .login-page,.register-page{background: #355D7E;}
.login-box-body .form-control-feedback, .register-box-body .form-control-feedback {
color: #fff;
}
.login-intro {
color: #e0e0e0;
font-size: 25px;
text-align: center;
line-height: 1.2;
font-family: 'Titillium Web', sans-serif;
}
.login-box{
p... | 22.493333 | 84 | 0.687018 |
a3d3462450f9299dcb15da2e51856f94d531028c | 663 | java | Java | src/ueshooting/system/Deg.java | tinaxd/ueshooting | 9868647101a7c3e2f841cb9f498c3556c716cb6a | [
"BSD-3-Clause"
] | 1 | 2019-06-25T14:13:24.000Z | 2019-06-25T14:13:24.000Z | src/ueshooting/system/Deg.java | tinaxd/ueshooting | 9868647101a7c3e2f841cb9f498c3556c716cb6a | [
"BSD-3-Clause"
] | 1 | 2020-01-02T08:20:58.000Z | 2020-01-02T08:20:58.000Z | src/ueshooting/system/Deg.java | tinaxd/ueshooting | 9868647101a7c3e2f841cb9f498c3556c716cb6a | [
"BSD-3-Clause"
] | 1 | 2019-06-25T14:14:50.000Z | 2019-06-25T14:14:50.000Z | package ueshooting.system;
/**
* trigonometric functions for degree
*
*/
public class Deg {
public static double sin(double theta){
return Math.sin(toRad(theta));
}
public static double cos(double theta){
return Math.cos(toRad(theta));
}
public static double tan(double theta){
return Math.tan(toRad(theta... | 20.71875 | 48 | 0.692308 |
a920ff5d07d6ea8a3c55c16ec47115f4096a9c83 | 1,850 | css | CSS | css/style.css | wastedideas/evklid-site | e954f89efca06bd7138771b46076948697ac80e4 | [
"MIT"
] | null | null | null | css/style.css | wastedideas/evklid-site | e954f89efca06bd7138771b46076948697ac80e4 | [
"MIT"
] | null | null | null | css/style.css | wastedideas/evklid-site | e954f89efca06bd7138771b46076948697ac80e4 | [
"MIT"
] | null | null | null | html {
box-sizing: border-box;
}
*,
*::before,
*::after {
box-sizing: inherit;
}
body {
min-width: 320px;
margin: 0;
background-color: #FFFFFF; /* под проект */
font-family: 'Montserrat', sans-serif; /* в "" свой шрифт под проект*/
color: #333333;
font-size: 16px;
font-weight: 400;
line-height: ... | 13.703704 | 72 | 0.610811 |
5afb57daa6134e68f2ae7898d4deb4c87c1b5cb2 | 4,162 | cs | C# | XMLCLRLib/XmlClrLan/Container/Config/ModuleMethodCallElement.cs | ridgew/practicemakesperfect | 8b8f00e7564a502b24550e47ecf21eb7d238a0e1 | [
"MIT"
] | 1 | 2019-06-16T14:22:06.000Z | 2019-06-16T14:22:06.000Z | XMLCLRLib/XmlClrLan/Container/Config/ModuleMethodCallElement.cs | ridgew/practicemakesperfect | 8b8f00e7564a502b24550e47ecf21eb7d238a0e1 | [
"MIT"
] | null | null | null | XMLCLRLib/XmlClrLan/Container/Config/ModuleMethodCallElement.cs | ridgew/practicemakesperfect | 8b8f00e7564a502b24550e47ecf21eb7d238a0e1 | [
"MIT"
] | 1 | 2020-10-19T17:43:21.000Z | 2020-10-19T17:43:21.000Z | using System;
using System.Reflection;
using System.Xml;
using System.Xml.Serialization;
namespace XmlClrLan
{
[Serializable]
[XmlRoot(ElementName = "Call")]
public class ModuleMethodCallElement : ModuleBuildStepElement
{
public ModuleMethodCallElement()
{
}
public Mo... | 32.263566 | 151 | 0.51802 |
0d6f95e6d3bb3234149def516d018711ce1e2f46 | 584 | h | C | scipy/signal/S_bspline_util.h | jasonmccampbell/scipy-refactor | 52708e04bca51e7043248d56383780b1e51e0d8f | [
"BSD-3-Clause"
] | 8 | 2015-10-07T00:37:32.000Z | 2022-01-21T17:02:33.000Z | scipy/signal/S_bspline_util.h | enthought/scipy-refactor | 52708e04bca51e7043248d56383780b1e51e0d8f | [
"BSD-3-Clause"
] | null | null | null | scipy/signal/S_bspline_util.h | enthought/scipy-refactor | 52708e04bca51e7043248d56383780b1e51e0d8f | [
"BSD-3-Clause"
] | 8 | 2015-05-09T14:23:57.000Z | 2018-11-15T05:56:00.000Z | #include <npy_math.h>
#if defined(__cplusplus)
extern "C" {
#endif
int S_cubic_spline2D(float*, float*, int, int, double, npy_intp*, npy_intp*, float);
int S_quadratic_spline2D(float*, float*, int, int, double, npy_intp*, npy_intp*, float);
int S_IIR_forback1(float, float, float*, float*, int, int, int, float);
int S... | 34.352941 | 88 | 0.671233 |
453a1d3ca2b0c7f3f1c03404de20630512f74973 | 3,208 | go | Go | whparse/query.go | go-webhelp/webhelp | 3f30213e4c4905711afccf9916cfed6d04c68f5f | [
"Apache-2.0"
] | 36 | 2017-01-12T04:03:56.000Z | 2019-11-22T08:30:26.000Z | whparse/query.go | jtolds/webhelp | 3f30213e4c4905711afccf9916cfed6d04c68f5f | [
"Apache-2.0"
] | null | null | null | whparse/query.go | jtolds/webhelp | 3f30213e4c4905711afccf9916cfed6d04c68f5f | [
"Apache-2.0"
] | 5 | 2017-01-05T07:13:19.000Z | 2018-07-13T19:23:36.000Z | // Copyright (C) 2016 JT Olds
// See LICENSE for copying information
// Package whparse provides some convenient input parsing helpers.
package whparse // import "gopkg.in/webhelp.v1/whparse"
import (
"strconv"
"strings"
)
// ParseBool is like strconv.ParseBool but also understands yes/no
func ParseBool(val string... | 22.914286 | 73 | 0.686721 |
444d0ec567924a1b176effbbb8a848e7c64f069d | 4,208 | py | Python | onestandard/models.py | oxhacks/onestandard | 15d18e2022f7ac1d7041f13cd4c453baa276eebb | [
"MIT"
] | 10 | 2019-03-22T14:23:40.000Z | 2021-09-26T22:31:50.000Z | onestandard/models.py | oxhacks/onestandard | 15d18e2022f7ac1d7041f13cd4c453baa276eebb | [
"MIT"
] | 1 | 2020-01-06T15:57:55.000Z | 2021-11-26T23:21:06.000Z | onestandard/models.py | jaykwon/onestandard | 15d18e2022f7ac1d7041f13cd4c453baa276eebb | [
"MIT"
] | 2 | 2019-12-28T06:01:09.000Z | 2020-04-01T01:09:52.000Z | """Models representing Standard File based objects."""
import json
from uuid import uuid4
from datetime import datetime
ALLOWED_TYPES = ('tag', 'note')
def link(standard1, standard2):
"""Create bi-directional references linking the two Standard-based objects.
:param standard1: the first `Standard` object... | 30.057143 | 88 | 0.613118 |
d001dd42f4cacea2c7ccf8b534f0567164614c83 | 1,410 | gemspec | Ruby | polyline-normalizer.gemspec | amaabca/polyline-normalizer | 4f23e255b0b9207f0df8abe319c1e93384e73dfe | [
"MIT"
] | 1 | 2021-11-26T12:57:41.000Z | 2021-11-26T12:57:41.000Z | polyline-normalizer.gemspec | amaabca/polyline-normalizer | 4f23e255b0b9207f0df8abe319c1e93384e73dfe | [
"MIT"
] | null | null | null | polyline-normalizer.gemspec | amaabca/polyline-normalizer | 4f23e255b0b9207f0df8abe319c1e93384e73dfe | [
"MIT"
] | null | null | null | # frozen_string_literal: true
require_relative 'lib/polyline/normalizer/version'
Gem::Specification.new do |spec|
spec.name = 'polyline-normalizer'
spec.version = Polyline::Normalizer::VERSION
spec.authors = [
'Jesse Doyle',
'Michael van den Beuken',
'Darko Dosenovic',
'Zoie Carnegie'
]
spec... | 33.571429 | 77 | 0.686525 |
e28dee8a9bdca650dbc4b2db7f6475f38085f7a8 | 2,040 | py | Python | teszt/test_feladat01.py | python-feladatok-tesztekkel/07-01-05-osszefoglalas | 95b5ff6c2e7020ca71cb2c577d793d3920f938a6 | [
"CC0-1.0"
] | null | null | null | teszt/test_feladat01.py | python-feladatok-tesztekkel/07-01-05-osszefoglalas | 95b5ff6c2e7020ca71cb2c577d793d3920f938a6 | [
"CC0-1.0"
] | null | null | null | teszt/test_feladat01.py | python-feladatok-tesztekkel/07-01-05-osszefoglalas | 95b5ff6c2e7020ca71cb2c577d793d3920f938a6 | [
"CC0-1.0"
] | null | null | null | from unittest import TestCase
import os,sys,inspect
current_dir = os.path.dirname(os.path.abspath(inspect.getfile(inspect.currentframe())))
parent_dir = os.path.dirname(current_dir)
sys.path.insert(0, parent_dir)
import feladatok
class TestMegtatlahtoMegye(TestCase):
def test_feladat_ures(self):
megyek=[]... | 46.363636 | 121 | 0.67598 |
9c6f9740ee3fb0fc95c31852454974c0b77c4faf | 2,037 | rs | Rust | runtime-sdk-macros/src/test_utils.rs | anonymousGiga/oasis-sdk | 29f23658153dfc0acded405ae3b0613e45fc8a6a | [
"Apache-2.0"
] | 38 | 2021-03-02T14:39:20.000Z | 2022-03-11T07:25:42.000Z | runtime-sdk-macros/src/test_utils.rs | anonymousGiga/oasis-sdk | 29f23658153dfc0acded405ae3b0613e45fc8a6a | [
"Apache-2.0"
] | 781 | 2021-02-11T19:14:42.000Z | 2022-03-31T13:56:36.000Z | runtime-sdk-macros/src/test_utils.rs | knkgun/oasis-sdk | 70f6d4fbc5460a3a2bf84ecd9813454f82832eb9 | [
"Apache-2.0"
] | 19 | 2021-03-06T14:46:31.000Z | 2022-02-26T10:14:46.000Z | pub fn rustfmt(code: &str) -> String {
use std::{
io::Write,
process::{Command, Stdio},
};
let mut cp = Command::new("rustfmt")
.args(&["--emit", "stdout", "--quiet"])
.stdin(Stdio::piped())
.stdout(Stdio::piped())
.spawn()
.expect("unable to spawn ru... | 31.338462 | 97 | 0.494845 |
af5c59f4a50fa50306c9644ab98f5c6678064a5e | 262 | py | Python | 1st_100/problem053.py | takekoputa/project-euler | 6f434be429bd26f5d0f84f5ab0f5fa2bd677c790 | [
"MIT"
] | null | null | null | 1st_100/problem053.py | takekoputa/project-euler | 6f434be429bd26f5d0f84f5ab0f5fa2bd677c790 | [
"MIT"
] | null | null | null | 1st_100/problem053.py | takekoputa/project-euler | 6f434be429bd26f5d0f84f5ab0f5fa2bd677c790 | [
"MIT"
] | 1 | 2021-11-02T12:08:46.000Z | 2021-11-02T12:08:46.000Z | # Question: https://projecteuler.net/problem=53
from sage.all import binomial
N = 100
count = 0
for i in range(23, N+1):
for j in range(2, i//2 + 2):
if binomial(i, j) > 10**6:
count = count + i - 2*j + 1
break
print(count)
| 20.153846 | 47 | 0.557252 |
be72d059d676ca5ed3e2ef9ec837bd09a4270c45 | 5,890 | ts | TypeScript | packages/rax/src/index.d.ts | GGICE/rax | 424d253c0cd8880418b26faaed64239e7bbaef0a | [
"BSD-3-Clause"
] | 1 | 2021-12-02T15:00:25.000Z | 2021-12-02T15:00:25.000Z | packages/rax/src/index.d.ts | GGICE/rax | 424d253c0cd8880418b26faaed64239e7bbaef0a | [
"BSD-3-Clause"
] | 1 | 2019-05-16T12:07:57.000Z | 2019-05-16T12:07:57.000Z | packages/rax/src/index.d.ts | GGICE/rax | 424d253c0cd8880418b26faaed64239e7bbaef0a | [
"BSD-3-Clause"
] | 1 | 2019-06-25T06:30:39.000Z | 2019-06-25T06:30:39.000Z | import "./jsx";
export declare namespace Rax {
//
// Rax Element
// -----------------------------------
interface RaxElement<P> {
type: string | Component<P> | ReactiveComponent<P>;
props: P;
key: Key | null;
ref: Ref<any> | null;
}
function createElement(
type: string,
props: JSX... | 32.722222 | 146 | 0.624618 |
1e670794876cec657f38b4f0df41c1e9b2dab0bc | 8,473 | ps1 | PowerShell | PSHR/Onboard User/Create-ADUser.ps1 | itokamak/PowerShell | 8543979812fc9f5283d58a10afa26d0da4ce24ff | [
"MIT"
] | 2 | 2017-07-26T19:30:02.000Z | 2019-05-19T04:34:17.000Z | PSHR/Onboard User/Create-ADUser.ps1 | itokamak/PowerShell | 8543979812fc9f5283d58a10afa26d0da4ce24ff | [
"MIT"
] | null | null | null | PSHR/Onboard User/Create-ADUser.ps1 | itokamak/PowerShell | 8543979812fc9f5283d58a10afa26d0da4ce24ff | [
"MIT"
] | null | null | null | #Load Incoming JSON
param (
[string]$upn = 'defaultUPN',
[string]$name = 'Firstname Lastname',
[string]$firstname = 'default firstname',
[string]$lastname = ' default lastname',
[string]$title = 'default title',
[string]$description = ' default description',
[string]$scri... | 32.339695 | 411 | 0.701522 |
fdc3bea3630b85115cb54a98e37122d3c3532a3b | 221 | css | CSS | JavaEE-Practicum-2020/web/asset/css/register_login.css | yjzzjy4/2020-HUC-SE-JavaEE-Practicum | 79bcd0b9e36700b3acae8dffa25146fa5e916b3e | [
"MIT"
] | null | null | null | JavaEE-Practicum-2020/web/asset/css/register_login.css | yjzzjy4/2020-HUC-SE-JavaEE-Practicum | 79bcd0b9e36700b3acae8dffa25146fa5e916b3e | [
"MIT"
] | null | null | null | JavaEE-Practicum-2020/web/asset/css/register_login.css | yjzzjy4/2020-HUC-SE-JavaEE-Practicum | 79bcd0b9e36700b3acae8dffa25146fa5e916b3e | [
"MIT"
] | null | null | null | body {
position: relative;
background: url("../img/background/ps-bg-image.jpeg") repeat-y center;
margin: 0 0;
}
#validateBoxContainer {
width: 36%;
position: relative;
top: 10vh;
left: 32%;
} | 18.416667 | 74 | 0.615385 |
26ac8cc2c68fe593a558a44df40443b93aeda8f6 | 247 | sql | SQL | src/SFA.DAS.EAS.Employer_Financial.Database/Scripts/PostDeployment/CreateTopUpPercentages.sql | uk-gov-mirror/SkillsFundingAgency.das-employerapprenticeshipsservice | b6778ed20b0438acab7c1a14600288a250db8d23 | [
"MIT"
] | 8 | 2016-09-14T08:31:59.000Z | 2021-08-19T11:13:59.000Z | src/SFA.DAS.EAS.Employer_Financial.Database/Scripts/PostDeployment/CreateTopUpPercentages.sql | uk-gov-mirror/SkillsFundingAgency.das-employerapprenticeshipsservice | b6778ed20b0438acab7c1a14600288a250db8d23 | [
"MIT"
] | 319 | 2016-07-20T07:52:08.000Z | 2022-03-31T18:07:09.000Z | src/SFA.DAS.EAS.Employer_Financial.Database/Scripts/PostDeployment/CreateTopUpPercentages.sql | uk-gov-mirror/SkillsFundingAgency.das-employerapprenticeshipsservice | b6778ed20b0438acab7c1a14600288a250db8d23 | [
"MIT"
] | 8 | 2016-11-08T16:30:23.000Z | 2022-03-23T19:45:38.000Z | IF (NOT EXISTS(SELECT * FROM [employer_financial].[TopUpPercentage] WHERE Id = 1 AND DateFrom = '2015-01-01 00:00:00.000'))
BEGIN
INSERT INTO [employer_financial].[TopUpPercentage]
(DateFrom,Amount)
VALUES
('2015-01-01 00:00:00.000',0.1)
END | 35.285714 | 124 | 0.728745 |
93b034b611c6045bd1fa346f3390e777894dc1e2 | 2,213 | cs | C# | Assets/BOXOPHOBIC/Utils/Editor/StyledInspector/StyledIMaskDrawer.cs | Game-Bubble/Run-Transformer | 40d27922bf1f50d2a24bf28ec54193ee1efe7a05 | [
"Apache-2.0"
] | 1 | 2021-06-27T10:24:37.000Z | 2021-06-27T10:24:37.000Z | Assets/BOXOPHOBIC/Utils/Editor/StyledInspector/StyledIMaskDrawer.cs | Game-Bubble/Run-Transformer | 40d27922bf1f50d2a24bf28ec54193ee1efe7a05 | [
"Apache-2.0"
] | null | null | null | Assets/BOXOPHOBIC/Utils/Editor/StyledInspector/StyledIMaskDrawer.cs | Game-Bubble/Run-Transformer | 40d27922bf1f50d2a24bf28ec54193ee1efe7a05 | [
"Apache-2.0"
] | null | null | null | // Cristian Pop - https://boxophobic.com/
using UnityEngine;
using UnityEditor;
namespace Boxophobic.StyledGUI
{
[CustomPropertyDrawer(typeof(StyledMask))]
public class StyledMaskAttributeDrawer : PropertyDrawer
{
StyledMask a;
public override void OnGUI(Rect position, SerializedProperty... | 28.371795 | 112 | 0.487573 |
dbdaa23fc077fd87dd63fa4c6629e23416012c34 | 2,504 | php | PHP | src/Providers/LayoutServiceProvider.php | sabineabele/arbory | 7596ed0068a4c7c14495647af265458303fdaf5d | [
"MIT"
] | 39 | 2017-07-25T08:57:48.000Z | 2022-01-29T14:53:13.000Z | src/Providers/LayoutServiceProvider.php | sabineabele/arbory | 7596ed0068a4c7c14495647af265458303fdaf5d | [
"MIT"
] | 133 | 2017-07-26T06:22:31.000Z | 2022-03-28T10:24:21.000Z | src/Providers/LayoutServiceProvider.php | sabineabele/arbory | 7596ed0068a4c7c14495647af265458303fdaf5d | [
"MIT"
] | 40 | 2017-07-26T10:52:41.000Z | 2021-09-13T12:09:03.000Z | <?php
namespace Arbory\Base\Providers;
use Arbory\Base\Services\AssetPipeline;
use Illuminate\View\View;
use Arbory\Base\Menu\Menu;
use Arbory\Base\Admin\Admin;
use Arbory\Base\Menu\MenuFactory;
use Arbory\Base\Menu\MenuItemFactory;
use Illuminate\Support\ServiceProvider;
use Arbory\Base\Admin\Layout\LayoutManager;
u... | 30.91358 | 102 | 0.600639 |
25742a28c5fbedf3424ac71cd0596770dbf90aff | 2,223 | js | JavaScript | test/parallel/test-debug-signal-cluster.js | AngeldsWang/io.js | 545959468fbc878e7f0a486264eebbdf06a57bea | [
"Artistic-2.0"
] | 2 | 2021-02-13T08:39:17.000Z | 2021-02-19T13:44:11.000Z | test/parallel/test-debug-signal-cluster.js | AngeldsWang/io.js | 545959468fbc878e7f0a486264eebbdf06a57bea | [
"Artistic-2.0"
] | null | null | null | test/parallel/test-debug-signal-cluster.js | AngeldsWang/io.js | 545959468fbc878e7f0a486264eebbdf06a57bea | [
"Artistic-2.0"
] | null | null | null | var common = require('../common');
var assert = require('assert');
var spawn = require('child_process').spawn;
var port = common.PORT + 42;
var args = ['--debug-port=' + port,
common.fixturesDir + '/clustered-server/app.js'];
var options = { stdio: ['inherit', 'inherit', 'pipe', 'ipc'] };
var child = spawn... | 26.464286 | 78 | 0.646874 |
e40981bbf91805b32bba24d359c13298c6db9938 | 476 | cs | C# | MiX.Integrate.Shared/Entities/Messages/MessageStateHistoryItem.cs | mateuszligeza/MiX.Integrate.Api.Client | 1e2b0c8d4954357eaaf9b34ef6beb863784007df | [
"MIT"
] | 5 | 2017-11-08T17:22:17.000Z | 2020-10-06T22:09:07.000Z | MiX.Integrate.Shared/Entities/Messages/MessageStateHistoryItem.cs | ktngoykalolo/MiX.Integrate.Api.Client | 2b34b1f1107203de92b5badff49e24e340dfd613 | [
"MIT"
] | 3 | 2020-03-09T22:26:13.000Z | 2021-04-22T18:41:51.000Z | MiX.Integrate.Shared/Entities/Messages/MessageStateHistoryItem.cs | ktngoykalolo/MiX.Integrate.Api.Client | 2b34b1f1107203de92b5badff49e24e340dfd613 | [
"MIT"
] | 4 | 2018-03-13T07:06:10.000Z | 2021-03-04T18:31:19.000Z | using System;
namespace MiX.Integrate.Shared.Entities.Messages
{
public class MessageStateHistoryItem
{
public MessageStateHistoryItem() { }
public int MessageID { get; set; }
public MessageStates State { get; set; }
public DateTime DateEntered { get; set; }
public string Notes { get; set; }
public str... | 26.444444 | 48 | 0.707983 |
20a56dfac1cb657d7d669b6450c077e7730a891b | 1,755 | py | Python | api/migrations/0092_auto_20201123_1025.py | IFRCGo/ifrcgo-api | c1c3e0cf1076ab48d03db6aaf7a00f8485ca9e1a | [
"MIT"
] | 11 | 2018-06-11T06:05:12.000Z | 2022-03-25T09:31:44.000Z | api/migrations/0092_auto_20201123_1025.py | IFRCGo/ifrcgo-api | c1c3e0cf1076ab48d03db6aaf7a00f8485ca9e1a | [
"MIT"
] | 498 | 2017-11-07T21:20:13.000Z | 2022-03-31T14:37:18.000Z | api/migrations/0092_auto_20201123_1025.py | IFRCGo/ifrcgo-api | c1c3e0cf1076ab48d03db6aaf7a00f8485ca9e1a | [
"MIT"
] | 6 | 2018-04-11T13:29:50.000Z | 2020-07-16T16:52:11.000Z | # Generated by Django 2.2.13 on 2020-11-23 10:25
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('api', '0091_auto_20201120_1118'),
]
operations = [
migrations.RemoveField(
model_name='country',
name='nsi_annual_fdrs_repo... | 26.590909 | 53 | 0.540741 |
96eac0c0b02bee4b007a8b824b72f33c5e80c0b4 | 3,394 | cs | C# | GAPPSF/UIControls/FormulaSolver/UserHelpWindow.xaml.cs | RH-Code/GAPP | 0a882e8cbaa23c18f952bbdccfb9f95e371d4fd4 | [
"MIT"
] | 2 | 2015-10-27T13:52:37.000Z | 2021-06-15T11:31:27.000Z | GAPPSF/UIControls/FormulaSolver/UserHelpWindow.xaml.cs | RH-Code/GAPP | 0a882e8cbaa23c18f952bbdccfb9f95e371d4fd4 | [
"MIT"
] | 2 | 2015-08-17T18:08:22.000Z | 2019-03-14T07:34:06.000Z | GAPPSF/UIControls/FormulaSolver/UserHelpWindow.xaml.cs | RH-Code/GAPP | 0a882e8cbaa23c18f952bbdccfb9f95e371d4fd4 | [
"MIT"
] | 10 | 2015-02-19T22:09:25.000Z | 2022-01-20T07:41:07.000Z | using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using Syst... | 34.282828 | 136 | 0.549499 |
4bd15b4cbe36600c6229f6218be02de7839d2ce6 | 2,552 | rs | Rust | src/lattice.rs | faisalron/sudachirs-python | 7bdc7ef0c21e50f1b34ab048ca997cd4bef1e70e | [
"MIT"
] | 9 | 2020-07-06T01:52:00.000Z | 2021-09-29T10:34:30.000Z | src/lattice.rs | faisalron/sudachirs-python | 7bdc7ef0c21e50f1b34ab048ca997cd4bef1e70e | [
"MIT"
] | null | null | null | src/lattice.rs | faisalron/sudachirs-python | 7bdc7ef0c21e50f1b34ab048ca997cd4bef1e70e | [
"MIT"
] | null | null | null | pub mod node;
use std::i32;
use self::node::Node;
use crate::dic::grammar::Grammar;
use pyo3::prelude::*;
#[pyclass]
pub struct Lattice {
size: usize,
pub end_lists: Vec<Vec<Node>>,
}
#[pymethods]
impl Lattice {
#[new]
pub fn new(size: usize) -> Self {
let mut end_lists = vec![Vec::<Node>:... | 25.777778 | 91 | 0.532524 |
87db74db08b0bee206c6435d920cd127a94dd427 | 548 | rb | Ruby | config/routes.rb | Donnadieu/rails-miner-game | d17cbd11d771b56828d1076a52a99c42aa7463a2 | [
"MIT"
] | null | null | null | config/routes.rb | Donnadieu/rails-miner-game | d17cbd11d771b56828d1076a52a99c42aa7463a2 | [
"MIT"
] | null | null | null | config/routes.rb | Donnadieu/rails-miner-game | d17cbd11d771b56828d1076a52a99c42aa7463a2 | [
"MIT"
] | null | null | null | Rails.application.routes.draw do
devise_for :users, controllers: { omniauth_callbacks: 'my_devise/omniauth_callbacks', registrations: 'my_devise/registrations' }
get '/', to: 'application#index'
# patch '/mining_rig/:id/miners', to: 'miners#mining'
get '/users/highest_balance', to: 'users#highest_balance', as:... | 28.842105 | 130 | 0.726277 |
5cd4976e3066c3ffc336bea621afbd3d1ded32e0 | 984 | sql | SQL | bp2/vjezbe_pdf/bp2_vj09pdf_zadatak05.sql | jasarsoft/fit-src | d9b963be3afbd4494de9d0289c947b0a41ad91d7 | [
"MIT"
] | null | null | null | bp2/vjezbe_pdf/bp2_vj09pdf_zadatak05.sql | jasarsoft/fit-src | d9b963be3afbd4494de9d0289c947b0a41ad91d7 | [
"MIT"
] | null | null | null | bp2/vjezbe_pdf/bp2_vj09pdf_zadatak05.sql | jasarsoft/fit-src | d9b963be3afbd4494de9d0289c947b0a41ad91d7 | [
"MIT"
] | null | null | null | /*
Vjezbe 9 Zadatak 5
Kreirati view (pogled) nad podacima koji ce sadrzavati sljedeca polja: ime i prezime, jmbg,
telefon i email kandidata, zatim datum, naziv, oznaku, oblast i max. broj bodova na testu, te
polje polozio, osvojene bodove i procentualni rezultat testa.
*/
USE Edin
CREATE VIEW vKandidatTest
AS
... | 31.741935 | 111 | 0.728659 |
2fbda5160192b16dbab4f8b51861e2156b45fb01 | 2,750 | py | Python | pymemcache/test/benchmark.py | methane/pymemcache | 0ff5430cdcef7ed52fb3edc2a90c1c7d208ad77f | [
"Apache-2.0"
] | 1 | 2015-11-05T15:16:55.000Z | 2015-11-05T15:16:55.000Z | pymemcache/test/benchmark.py | methane/pymemcache | 0ff5430cdcef7ed52fb3edc2a90c1c7d208ad77f | [
"Apache-2.0"
] | null | null | null | pymemcache/test/benchmark.py | methane/pymemcache | 0ff5430cdcef7ed52fb3edc2a90c1c7d208ad77f | [
"Apache-2.0"
] | null | null | null | # Copyright 2012 Pinterest.com
#
# 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 writing,... | 28.350515 | 74 | 0.606545 |
a13384343a0281d19d48f98096da518473635e43 | 2,222 | ts | TypeScript | src/bot/commands/factory/CommandFactory.ts | psyKomicron/Julie | 794217ca52b62dba1678d2323bc654068fac74d5 | [
"MIT"
] | 1 | 2020-05-16T02:01:26.000Z | 2020-05-16T02:01:26.000Z | src/bot/commands/factory/CommandFactory.ts | psyKomicron/DesmoBot | 794217ca52b62dba1678d2323bc654068fac74d5 | [
"MIT"
] | 3 | 2019-04-21T23:02:22.000Z | 2022-01-22T11:37:25.000Z | src/bot/commands/factory/CommandFactory.ts | psyKomicron/Julie | 794217ca52b62dba1678d2323bc654068fac74d5 | [
"MIT"
] | null | null | null | import { Message } from 'discord.js';
import { Bot } from '../../Bot';
import { Command } from '../Command';
import { DownloadCommand } from '../commands/DownloadCommand';
import { DeleteCommand } from '../commands/DeleteCommand';
import { HelpCommand } from '../commands/HelpCommand';
import { VoteCommand } from '../co... | 34.71875 | 75 | 0.519352 |
efa3970c2243877a4e7f78024e7c5784b711fb2d | 2,284 | dart | Dart | lib/app/modules/user/components/foto_perfil_widget.dart | GabrielDimaa/strapen_app | ccfe58a3f4491090d8de35f64d4fab99feda26e6 | [
"MIT"
] | 2 | 2021-08-14T12:21:03.000Z | 2021-12-29T15:26:06.000Z | lib/app/modules/user/components/foto_perfil_widget.dart | GabrielDimaa/strapen_app | ccfe58a3f4491090d8de35f64d4fab99feda26e6 | [
"MIT"
] | null | null | null | lib/app/modules/user/components/foto_perfil_widget.dart | GabrielDimaa/strapen_app | ccfe58a3f4491090d8de35f64d4fab99feda26e6 | [
"MIT"
] | 1 | 2021-11-24T17:06:20.000Z | 2021-11-24T17:06:20.000Z | import 'dart:io';
import 'package:flutter/material.dart';
import 'package:strapen_app/app/app_widget.dart';
import 'package:strapen_app/app/modules/live/models/live_model.dart';
import 'package:transparent_image/transparent_image.dart';
class FotoPerfilWidget extends StatelessWidget {
final dynamic foto;
final do... | 31.287671 | 104 | 0.515324 |
bd177115c745b9b32a717ef5b4b38943de218042 | 347 | rb | Ruby | lib/fog/openstack/orchestration/models/resource_schemas.rb | achevalet/fog-openstack | 79116756ab04058a4bd970f3f1944886210221ed | [
"MIT"
] | 72 | 2016-02-29T15:07:51.000Z | 2022-03-31T15:05:31.000Z | lib/fog/openstack/orchestration/models/resource_schemas.rb | achevalet/fog-openstack | 79116756ab04058a4bd970f3f1944886210221ed | [
"MIT"
] | 447 | 2016-02-24T13:26:17.000Z | 2022-03-29T01:17:53.000Z | lib/fog/openstack/orchestration/models/resource_schemas.rb | achevalet/fog-openstack | 79116756ab04058a4bd970f3f1944886210221ed | [
"MIT"
] | 152 | 2016-02-23T13:00:40.000Z | 2022-03-11T17:23:17.000Z | require 'fog/openstack/models/collection'
module Fog
module OpenStack
class Orchestration
class ResourceSchemas < Fog::OpenStack::Collection
def get(resource_type)
service.show_resource_schema(resource_type).body
rescue Fog::OpenStack::Compute::NotFound
nil
end
... | 21.6875 | 58 | 0.67147 |
b89dac183c470cec30337e81ce0eb4d086eb9952 | 2,469 | lua | Lua | tower_defense_server.lua | paulthegreat/tower_defense | ed7d1e60478a7bc0238e1d4ad22b4534ff7e13f4 | [
"MIT"
] | null | null | null | tower_defense_server.lua | paulthegreat/tower_defense | ed7d1e60478a7bc0238e1d4ad22b4534ff7e13f4 | [
"MIT"
] | null | null | null | tower_defense_server.lua | paulthegreat/tower_defense | ed7d1e60478a7bc0238e1d4ad22b4534ff7e13f4 | [
"MIT"
] | null | null | null | tower_defense = {}
local service_creation_order = {
'game',
'tower'
}
local monkey_patches = {
combat_service = 'stonehearth.services.server.combat.combat_service',
game_creation_service = 'stonehearth.services.server.game_creation.game_creation_service',
combat_state_component = 'stonehearth... | 36.308824 | 108 | 0.756582 |
4d9d7c15b54d03df7985da53b1586d73cc6cfc9f | 3,809 | cshtml | C# | App/App.Web/Views/Testimonials/List.cshtml | nzhul/garderob | eea0fefb51abe8f1d3b792912f0c0c1d52c50291 | [
"MIT"
] | null | null | null | App/App.Web/Views/Testimonials/List.cshtml | nzhul/garderob | eea0fefb51abe8f1d3b792912f0c0c1d52c50291 | [
"MIT"
] | null | null | null | App/App.Web/Views/Testimonials/List.cshtml | nzhul/garderob | eea0fefb51abe8f1d3b792912f0c0c1d52c50291 | [
"MIT"
] | null | null | null | @using App.Models.Testimonials
@using App.Models.Pages
@model IEnumerable<TestimonialViewModel>
@{
ViewBag.Title = "Атестати";
}
<section class="breadcrumbs">
<div class="container">
<div class="text-center breadcrumbs-item">
<h1>Галерия</h1><a href="@Url.Action("Index", "Home")">начало</a><i class="fa fa-angl... | 33.707965 | 190 | 0.632449 |
a3d66047ff32ade7a9de089bc13ab7e284b411c5 | 2,745 | java | Java | src/main/java/com/softb/system/repository/config/RepositoryConfig.java | erikpaulo/ipocket | 3cb56fda85392f788c207d81d0271d1d48966b11 | [
"Apache-2.0"
] | null | null | null | src/main/java/com/softb/system/repository/config/RepositoryConfig.java | erikpaulo/ipocket | 3cb56fda85392f788c207d81d0271d1d48966b11 | [
"Apache-2.0"
] | null | null | null | src/main/java/com/softb/system/repository/config/RepositoryConfig.java | erikpaulo/ipocket | 3cb56fda85392f788c207d81d0271d1d48966b11 | [
"Apache-2.0"
] | null | null | null | package com.softb.system.repository.config;
import liquibase.integration.spring.SpringLiquibase;
import org.apache.commons.dbcp2.BasicDataSource;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.orm.jpa.EntityScan;
i... | 35.649351 | 111 | 0.725319 |
a31f5de3cf48e39c5b6b7417d10720c583babee5 | 6,432 | java | Java | sourcedata/camel-camel-1.6.0/camel-core/src/main/java/org/apache/camel/builder/DataFormatClause.java | DXYyang/SDP | 6ad0daf242d4062888ceca6d4a1bd4c41fd99b63 | [
"Apache-2.0"
] | 6 | 2020-10-27T06:11:59.000Z | 2021-09-09T13:52:42.000Z | sourcedata/camel-camel-1.6.0/camel-core/src/main/java/org/apache/camel/builder/DataFormatClause.java | DXYyang/SDP | 6ad0daf242d4062888ceca6d4a1bd4c41fd99b63 | [
"Apache-2.0"
] | 8 | 2020-11-16T20:41:38.000Z | 2022-02-01T01:05:45.000Z | sourcedata/camel-camel-1.6.0/camel-core/src/main/java/org/apache/camel/builder/DataFormatClause.java | DXYyang/SDP | 6ad0daf242d4062888ceca6d4a1bd4c41fd99b63 | [
"Apache-2.0"
] | null | null | null | /**
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may... | 30.483412 | 98 | 0.676461 |
1a664001e1816ab0348f8b0f05002cc402c9854a | 1,916 | cs | C# | Funcky.Test/Extensions/EnumerableExtensions/MemoizeTest.cs | FreeApophis/Funcky | 9340ed26badf9bef6901dc12f2d4371addf929f2 | [
"Apache-2.0",
"MIT"
] | 4 | 2019-03-12T09:58:35.000Z | 2020-02-10T23:19:19.000Z | Funcky.Test/Extensions/EnumerableExtensions/MemoizeTest.cs | FreeApophis/Funcky | 9340ed26badf9bef6901dc12f2d4371addf929f2 | [
"Apache-2.0",
"MIT"
] | 1 | 2019-04-02T08:47:57.000Z | 2019-04-04T11:42:23.000Z | Funcky.Test/Extensions/EnumerableExtensions/MemoizeTest.cs | FreeApophis/Funcky | 9340ed26badf9bef6901dc12f2d4371addf929f2 | [
"Apache-2.0",
"MIT"
] | 2 | 2019-08-12T17:49:31.000Z | 2019-09-07T16:54:36.000Z | using Funcky.Test.TestUtils;
namespace Funcky.Test;
public sealed class MemoizeTest
{
[Fact]
public void MemoizeIsEnumeratedLazily()
{
var doNotEnumerate = new FailOnEnumerationSequence<object>();
using var memoized = doNotEnumerate.Memoize();
}
[Fact]
public void TheUnderlyi... | 27.768116 | 83 | 0.649269 |
af37cfe26572c1d05ce2aede9ddb92cb081b1bd0 | 565 | py | Python | Project1/toFrames.py | vinitkumawat/uta-machine-learning | 1337a03ab0c0683839761a9fc7d2be8b496a9442 | [
"MIT"
] | null | null | null | Project1/toFrames.py | vinitkumawat/uta-machine-learning | 1337a03ab0c0683839761a9fc7d2be8b496a9442 | [
"MIT"
] | null | null | null | Project1/toFrames.py | vinitkumawat/uta-machine-learning | 1337a03ab0c0683839761a9fc7d2be8b496a9442 | [
"MIT"
] | null | null | null | import cv2
import numpy as np
import imutils
import shutil,os
shutil.rmtree('frames')
try:
os.makedirs('frames')
except OSError as e:
pass
video='2.mp4'
cap = cv2.VideoCapture(video)
cnt=0
if (cap.isOpened()== False):
print("Error opening video stream or file")
ret,first_frame = cap.read()
while(cap.isOp... | 17.65625 | 48 | 0.653097 |
e7651a39df675abb10e8964f92a06f7464a06e95 | 1,381 | php | PHP | src/DataFixtures/CategoryFixtures.php | robert611/store | cf7de44e7ef514d55768237572081e43492cd9e7 | [
"MIT"
] | null | null | null | src/DataFixtures/CategoryFixtures.php | robert611/store | cf7de44e7ef514d55768237572081e43492cd9e7 | [
"MIT"
] | null | null | null | src/DataFixtures/CategoryFixtures.php | robert611/store | cf7de44e7ef514d55768237572081e43492cd9e7 | [
"MIT"
] | null | null | null | <?php
namespace App\DataFixtures;
use Doctrine\Bundle\FixturesBundle\Fixture;
use Doctrine\Persistence\ObjectManager;
use App\Entity\Category;
class CategoryFixtures extends Fixture
{
public function load(ObjectManager $manager)
{
$categories = $this->getCategories();
foreach ($categories as... | 30.688889 | 72 | 0.511948 |
40bc212e61e7d007da4887713b0d425a0665f70d | 1,939 | tsx | TypeScript | packages-web/datagrid/src/components/Pagination.tsx | Robinfr/widgets-resources | b489d4a3a3afad8a6cc466695bc249b02d30a3b0 | [
"Apache-2.0"
] | null | null | null | packages-web/datagrid/src/components/Pagination.tsx | Robinfr/widgets-resources | b489d4a3a3afad8a6cc466695bc249b02d30a3b0 | [
"Apache-2.0"
] | null | null | null | packages-web/datagrid/src/components/Pagination.tsx | Robinfr/widgets-resources | b489d4a3a3afad8a6cc466695bc249b02d30a3b0 | [
"Apache-2.0"
] | null | null | null | import { createElement, ReactElement } from "react";
export interface PaginationProps {
canNextPage: boolean;
canPreviousPage: boolean;
gotoPage: (page: number) => void;
nextPage: () => void;
numberOfItems?: number;
page: number;
pageSize: number;
previousPage: () => void;
}
export fun... | 37.288462 | 104 | 0.585353 |
0d2438b0520bca68a76069ad6b61ed924c47ad88 | 769 | cs | C# | UWP/Forms/Renderers/UWPVerticalSliderRenderer.cs | hyvart/Unjamm | c5e6aa0ff8d2976732246ac94ef3d11a738ba615 | [
"MIT"
] | 2 | 2020-06-15T04:25:41.000Z | 2021-08-24T13:27:08.000Z | UWP/Forms/Renderers/UWPVerticalSliderRenderer.cs | aosodosoa/Unjammit | 3e58ad154bc60051a4cf5e42721246e15f5c26ed | [
"MIT"
] | 11 | 2019-10-05T14:22:34.000Z | 2021-10-02T11:25:41.000Z | UWP/Forms/Renderers/UWPVerticalSliderRenderer.cs | aosodosoa/Unjammit | 3e58ad154bc60051a4cf5e42721246e15f5c26ed | [
"MIT"
] | 5 | 2019-10-05T14:55:45.000Z | 2022-02-12T04:36:40.000Z | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Xamarin.Forms;
using Xamarin.Forms.Platform.UWP;
[assembly: ExportRenderer(typeof(Jammit.Forms.Views.VerticalSlider), typeof(Jammit.Forms.Renderers.UWPVerticalSliderRenderer))]
namespace Jammit.F... | 24.03125 | 127 | 0.747724 |
af4c0a277bab67f4a9c349b32c90ece9ed175395 | 10,527 | rs | Rust | src/bub/metadata.rs | kurotakazuki/Floaout | 3f7643e4a5aeb3fdc9c57e7e23165d32a7ee82b4 | [
"Apache-2.0",
"MIT"
] | 5 | 2020-01-25T05:40:48.000Z | 2020-02-14T22:38:41.000Z | src/bub/metadata.rs | kurotakazuki/floaout | a1eb58fa205f23c69a62539b63da26286715922f | [
"Apache-2.0",
"MIT"
] | null | null | null | src/bub/metadata.rs | kurotakazuki/floaout | a1eb58fa205f23c69a62539b63da26286715922f | [
"Apache-2.0",
"MIT"
] | null | null | null | use crate::bub::{
functions::{parse, BubFns, BubFnsAST, BubFnsVariable},
BubID,
};
use crate::io::{ReadExt, WriteExt};
use crate::utils::{read_crc, write_crc};
use crate::{LpcmKind, Metadata, CRC_32K_4_2};
use mycrc::CRC;
use std::io::{ErrorKind, Read, Result, Write};
#[derive(Clone, Copy, Debug, Eq, Hash, Ord... | 27.99734 | 100 | 0.564453 |
9f4d7f96544e2facea7e971dfeb5e5fe17d2c3e4 | 1,335 | lua | Lua | state-machines/state-machines-du.lua | jasondelaat/pico8-tools | 2164aa5b80a79f565172ef62a5be3ec0e8917a56 | [
"MIT"
] | 1 | 2022-01-25T13:51:36.000Z | 2022-01-25T13:51:36.000Z | state-machines/state-machines-du.lua | jasondelaat/pico8-tools | 2164aa5b80a79f565172ef62a5be3ec0e8917a56 | [
"MIT"
] | null | null | null | state-machines/state-machines-du.lua | jasondelaat/pico8-tools | 2164aa5b80a79f565172ef62a5be3ec0e8917a56 | [
"MIT"
] | null | null | null | -- state-machines-du -------------------------------------------------------
-- copyright (c) 2021 jason delaat
-- mit license: https://github.com/jasondelaat/pico8-tools/blob/release/license
----------------------------------------------------------------------------
-- simple state machine manager with draw and updat... | 29.666667 | 79 | 0.6 |
421d6bd5bdbb8d70672cc12beb9020178446e4fd | 518 | dart | Dart | tests/compiler/dart2js/rti/data/generic_method_tearoff.dart | annagrin/sdk | dfce72bbf9bf359ecd810964259978e24c55e237 | [
"BSD-3-Clause"
] | 2 | 2020-03-09T11:45:05.000Z | 2021-06-08T12:06:05.000Z | tests/compiler/dart2js/rti/data/generic_method_tearoff.dart | annagrin/sdk | dfce72bbf9bf359ecd810964259978e24c55e237 | [
"BSD-3-Clause"
] | 1 | 2021-01-21T14:45:59.000Z | 2021-01-21T14:45:59.000Z | tests/compiler/dart2js/rti/data/generic_method_tearoff.dart | annagrin/sdk | dfce72bbf9bf359ecd810964259978e24c55e237 | [
"BSD-3-Clause"
] | 3 | 2020-02-13T02:08:04.000Z | 2020-08-09T07:49:55.000Z | // Copyright (c) 2018, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
T method1a<T>() => null;
T method1b<T>() => null;
class Class {
T method2a<T>() => null;
T method2... | 22.521739 | 77 | 0.646718 |
75317e1f85628bec699117b8e2e3500b3bf7ab9b | 2,166 | css | CSS | public/stylesheets/landing.css | ckylek/yelp-camp | 7ebb7bacde652526aecb39f3ea25fbb815ada8d2 | [
"MIT"
] | null | null | null | public/stylesheets/landing.css | ckylek/yelp-camp | 7ebb7bacde652526aecb39f3ea25fbb815ada8d2 | [
"MIT"
] | 1 | 2020-03-03T15:57:31.000Z | 2020-03-03T15:57:31.000Z | public/stylesheets/landing.css | ckylek/yelp-camp | 7ebb7bacde652526aecb39f3ea25fbb815ada8d2 | [
"MIT"
] | null | null | null | body {
background-color: #000;
}
#landing-header {
z-index: 1;
position: relative;
text-align: center;
padding-top: 40vh;
}
#landing-header h1 {
display: table;
color: #fff;
background-color: hsla(0, 0%, 0%, 0.5);
margin: 0px auto 10px auto;
padding: 1vw;
}
.slideshow {
position: fixed;
widt... | 25.482353 | 160 | 0.693906 |
4352f8e7a301e40c2b265d3dfb15d4423760eab4 | 6,094 | tsx | TypeScript | src/Containers/Home/Home.tsx | tap0212/mastermind-game | c078963326aa50cb3f1ba42681f16a52617844e5 | [
"MIT"
] | 1 | 2021-07-23T11:29:00.000Z | 2021-07-23T11:29:00.000Z | src/Containers/Home/Home.tsx | tap0212/mastermind-game | c078963326aa50cb3f1ba42681f16a52617844e5 | [
"MIT"
] | null | null | null | src/Containers/Home/Home.tsx | tap0212/mastermind-game | c078963326aa50cb3f1ba42681f16a52617844e5 | [
"MIT"
] | null | null | null | import ColorPicker from '@/Components/ColorPicker/ColorPicker';
import GameBoardRow from '@/Components/GameBoardRow/GameBoardRow';
import { HomeCreators } from '@/store/reducers/homeReducer';
import { makeSelectHome, selectColor, selectGameMap } from '@/store/selectors/homeSelectors';
import { COLORS } from '@/styling/... | 36.27381 | 99 | 0.528224 |
1a8fdaf80cf4aba6d1741b304c2a63706951e504 | 559 | py | Python | Python/chapter02_variable.py | stayteef/learningpython | d4e997a6e6f6a4994f1932a728045f512964725a | [
"MIT"
] | null | null | null | Python/chapter02_variable.py | stayteef/learningpython | d4e997a6e6f6a4994f1932a728045f512964725a | [
"MIT"
] | null | null | null | Python/chapter02_variable.py | stayteef/learningpython | d4e997a6e6f6a4994f1932a728045f512964725a | [
"MIT"
] | null | null | null | # this is to learn what 'variable' is.
#i did the followings in termial with a python shell. so this is what a alist is
#a = 15
#print (a)
#a = [1, 2, 3, 4]
#a [2]
#type (a) - to show a is a int
#10 ==10 is to ask if 10 equals to 10, so it will return 'true"
#10 != 11 is asking if 11 equals to 10 and of course it w... | 29.421053 | 141 | 0.68873 |
a370a0ad6650691e705849bcceb52d14a129d58a | 4,732 | ts | TypeScript | integration-tests/runtime-tests/src/tests/tx/crowdloanRewards/txCrowdloanRewardsTests.ts | ArturoFinance/composable | 8ea2468b3ea955cf12dc98a0fbd4979788c67864 | [
"Unlicense"
] | null | null | null | integration-tests/runtime-tests/src/tests/tx/crowdloanRewards/txCrowdloanRewardsTests.ts | ArturoFinance/composable | 8ea2468b3ea955cf12dc98a0fbd4979788c67864 | [
"Unlicense"
] | null | null | null | integration-tests/runtime-tests/src/tests/tx/crowdloanRewards/txCrowdloanRewardsTests.ts | ArturoFinance/composable | 8ea2468b3ea955cf12dc98a0fbd4979788c67864 | [
"Unlicense"
] | null | null | null | /* eslint-disable no-trailing-spaces */
import R from 'ramda';
import { PalletCrowdloanRewardsModelsRemoteAccount } from '@composable/types/interfaces';
import { sendAndWaitForSuccess, sendUnsignedAndWaitForSuccess } from '@composable/utils/polkadotjs';
import { u128, u32 } from '@polkadot/types-codec';
import { expect... | 36.122137 | 111 | 0.676458 |
b271cf05893fa9e9deafa4b051bb2b2e5c947747 | 950 | lua | Lua | Server/Plugins/APIDump/Hooks/OnPlayerRightClickingEntity.lua | wbrbr/MCServer | a7bbca30c560c581127f7b6c49ca427c3e96a1da | [
"Apache-2.0"
] | 4,126 | 2015-06-12T21:56:49.000Z | 2022-03-31T06:33:12.000Z | Server/Plugins/APIDump/Hooks/OnPlayerRightClickingEntity.lua | wbrbr/MCServer | a7bbca30c560c581127f7b6c49ca427c3e96a1da | [
"Apache-2.0"
] | 2,931 | 2015-06-11T17:13:15.000Z | 2022-03-31T22:46:31.000Z | Server/Plugins/APIDump/Hooks/OnPlayerRightClickingEntity.lua | wbrbr/MCServer | a7bbca30c560c581127f7b6c49ca427c3e96a1da | [
"Apache-2.0"
] | 917 | 2015-06-11T21:47:41.000Z | 2022-03-30T10:32:55.000Z | return
{
HOOK_PLAYER_RIGHT_CLICKING_ENTITY =
{
CalledWhen = "A player has right-clicked an entity. Plugins may override / refuse.",
DefaultFnName = "OnPlayerRightClickingEntity", -- also used as pagename
Desc = [[
This hook is called when the {{cPlayer|player}} right-clicks an {{cEntity|entity}}. Plugins ma... | 33.928571 | 106 | 0.705263 |
458e9868759b0feae1682dc3ba2ec40393f30c97 | 129 | py | Python | tests/test_api_preprocess/test_biolink_preproces.py | luluricketts/biothings_explorer | ae2009ff285f96a08e0145f242846ca613b5069c | [
"Apache-2.0"
] | 21 | 2017-07-22T10:08:03.000Z | 2022-01-11T08:53:14.000Z | tests/test_api_preprocess/test_biolink_preproces.py | luluricketts/biothings_explorer | ae2009ff285f96a08e0145f242846ca613b5069c | [
"Apache-2.0"
] | 127 | 2017-07-22T10:19:45.000Z | 2021-11-04T01:23:43.000Z | tests/test_api_preprocess/test_biolink_preproces.py | luluricketts/biothings_explorer | ae2009ff285f96a08e0145f242846ca613b5069c | [
"Apache-2.0"
] | 18 | 2017-04-27T17:02:06.000Z | 2021-07-25T18:13:56.000Z | # -*- coding: utf-8 -*-
"""
Test the api preprocess module for biolink.
.. moduleauthor:: Jiwen Xin <kevinxin@scripps.edu>
""" | 16.125 | 50 | 0.651163 |
a1dd92c98de058667b22a3b32f212d5688613fdb | 4,960 | lua | Lua | main.lua | LJNIC/Collaborogue | 9c333e790f043087045d9236ccde0e496ebfc96b | [
"MIT"
] | 4 | 2020-11-09T23:33:48.000Z | 2021-04-19T23:14:50.000Z | main.lua | LJNIC/Collaborogue | 9c333e790f043087045d9236ccde0e496ebfc96b | [
"MIT"
] | 1 | 2021-11-13T15:53:53.000Z | 2021-11-13T15:53:53.000Z | main.lua | LJNIC/Collaborogue | 9c333e790f043087045d9236ccde0e496ebfc96b | [
"MIT"
] | 2 | 2021-11-11T03:25:30.000Z | 2022-02-13T13:05:00.000Z | ROT = require 'src.rot'
MusicManager = require "musicmanager"
vector22 = require "vector"
conditions = {}
reactions = {}
actions = {}
components = {}
actors = {}
effects = require "effects"
love.graphics.setDefaultFilter("nearest", "nearest")
local function loadItems(directoryName, items, recurse)
local info = {}
... | 29.005848 | 91 | 0.705645 |
a36106944c3b9176a3fc36deb991177b397f9981 | 372 | java | Java | virtdata-lib-curves4/src/main/java/io/virtdata/continuous/long_double/Pareto.java | jeromatron/virtdata-java | 7f2b56ea5cd61328a20b8d65f39cd9d5c4fc2b5f | [
"Apache-2.0"
] | null | null | null | virtdata-lib-curves4/src/main/java/io/virtdata/continuous/long_double/Pareto.java | jeromatron/virtdata-java | 7f2b56ea5cd61328a20b8d65f39cd9d5c4fc2b5f | [
"Apache-2.0"
] | null | null | null | virtdata-lib-curves4/src/main/java/io/virtdata/continuous/long_double/Pareto.java | jeromatron/virtdata-java | 7f2b56ea5cd61328a20b8d65f39cd9d5c4fc2b5f | [
"Apache-2.0"
] | null | null | null | package io.virtdata.continuous.long_double;
import io.virtdata.annotations.ThreadSafeMapper;
import org.apache.commons.statistics.distribution.ParetoDistribution;
@ThreadSafeMapper
public class Pareto extends LongToDoubleContinuousCurve {
public Pareto(double scale, double shape, String... mods) {
super(n... | 31 | 69 | 0.790323 |