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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
6c610e0958b023c7f235705ccd3fc4dd44281a6f | 275 | dart | Dart | oxen_coin/lib/structs/subaddress_row.dart | jagerman/oxen-wallet | f641b5b129163ba1bb2ed43d24f2aa344510cfe2 | [
"MIT"
] | 14 | 2021-01-26T04:41:36.000Z | 2021-11-28T11:20:52.000Z | oxen_coin/lib/structs/subaddress_row.dart | jagerman/oxen-wallet | f641b5b129163ba1bb2ed43d24f2aa344510cfe2 | [
"MIT"
] | 28 | 2021-01-19T02:36:34.000Z | 2021-06-30T03:20:32.000Z | oxen_coin/lib/structs/subaddress_row.dart | jagerman/oxen-wallet | f641b5b129163ba1bb2ed43d24f2aa344510cfe2 | [
"MIT"
] | 15 | 2021-01-25T05:13:11.000Z | 2022-03-06T21:43:32.000Z | import 'dart:ffi';
import 'package:ffi/ffi.dart';
class SubaddressRow extends Struct {
@Int64()
int id;
Pointer<Utf8> address;
Pointer<Utf8> label;
String getLabel() => Utf8.fromUtf8(label);
String getAddress() => Utf8.fromUtf8(address);
int getId() => id;
}
| 19.642857 | 48 | 0.68 |
7f8835276ae1caa39271b60ec0526adabafcd3b2 | 632 | php | PHP | src/Oro/Bundle/ImportExportBundle/Tests/Unit/Event/AfterJobExecutionEventTest.php | raffaelecarelle/platform-1 | e8d5d9d824080535b1f304c662c86351896958fa | [
"MIT"
] | 173 | 2017-07-25T13:37:58.000Z | 2022-02-17T18:24:37.000Z | src/Oro/Bundle/ImportExportBundle/Tests/Unit/Event/AfterJobExecutionEventTest.php | raffaelecarelle/platform-1 | e8d5d9d824080535b1f304c662c86351896958fa | [
"MIT"
] | 401 | 2017-07-24T23:04:42.000Z | 2022-03-31T06:39:45.000Z | src/Oro/Bundle/ImportExportBundle/Tests/Unit/Event/AfterJobExecutionEventTest.php | raffaelecarelle/platform-1 | e8d5d9d824080535b1f304c662c86351896958fa | [
"MIT"
] | 171 | 2017-07-27T03:47:23.000Z | 2022-03-30T21:31:56.000Z | <?php
namespace Oro\Bundle\ImportExportBundle\Tests\Unit\Event;
use Oro\Bundle\BatchBundle\Entity\JobExecution;
use Oro\Bundle\ImportExportBundle\Event\AfterJobExecutionEvent;
use Oro\Bundle\ImportExportBundle\Job\JobResult;
class AfterJobExecutionEventTest extends \PHPUnit\Framework\TestCase
{
public function t... | 30.095238 | 71 | 0.732595 |
439da92598a7cc4c140ae44395effdd024dc6739 | 1,106 | ts | TypeScript | clients/node/client-application-auto-scaling-node/types/InputTypesUnion.ts | pravgupt/aws-sdk-js-v3 | 1fd0fab5da141d934eb98624d6c23b347806bb47 | [
"Apache-2.0"
] | null | null | null | clients/node/client-application-auto-scaling-node/types/InputTypesUnion.ts | pravgupt/aws-sdk-js-v3 | 1fd0fab5da141d934eb98624d6c23b347806bb47 | [
"Apache-2.0"
] | null | null | null | clients/node/client-application-auto-scaling-node/types/InputTypesUnion.ts | pravgupt/aws-sdk-js-v3 | 1fd0fab5da141d934eb98624d6c23b347806bb47 | [
"Apache-2.0"
] | null | null | null | import { DeleteScalingPolicyInput } from "./DeleteScalingPolicyInput";
import { DeleteScheduledActionInput } from "./DeleteScheduledActionInput";
import { DeregisterScalableTargetInput } from "./DeregisterScalableTargetInput";
import { DescribeScalableTargetsInput } from "./DescribeScalableTargetsInput";
import { Descr... | 50.272727 | 82 | 0.831826 |
ba6820401e31353be9b406bf5e7cf2d835f4f8fa | 674 | kt | Kotlin | idea/testData/inspections/recursivePropertyAccessor/recursivePropertyAccessors.kt | qussarah/declare | c83b764c7394efa3364915d973ae79c4ebed2437 | [
"Apache-2.0"
] | null | null | null | idea/testData/inspections/recursivePropertyAccessor/recursivePropertyAccessors.kt | qussarah/declare | c83b764c7394efa3364915d973ae79c4ebed2437 | [
"Apache-2.0"
] | null | null | null | idea/testData/inspections/recursivePropertyAccessor/recursivePropertyAccessors.kt | qussarah/declare | c83b764c7394efa3364915d973ae79c4ebed2437 | [
"Apache-2.0"
] | null | null | null | class A {
var x = 0
set(value) {
x++
x += 1
x = value
}
var y = 0
get() {
println("$y")
y++
y += 1
return y
}
var z = 0
get() = z
var w
set(value) {
field = ... | 16.439024 | 48 | 0.301187 |
4cf69d15b8b4539fe153095027acbad6190e6fe7 | 542 | py | Python | CaterPillarMethod/count_distinct_slices.py | mamoudmatook/codility_solutions | 0eb6936b2dddee46447fa6c0b0ef91b6784e58fb | [
"MIT"
] | null | null | null | CaterPillarMethod/count_distinct_slices.py | mamoudmatook/codility_solutions | 0eb6936b2dddee46447fa6c0b0ef91b6784e58fb | [
"MIT"
] | null | null | null | CaterPillarMethod/count_distinct_slices.py | mamoudmatook/codility_solutions | 0eb6936b2dddee46447fa6c0b0ef91b6784e58fb | [
"MIT"
] | null | null | null | # you can write to stdout for debugging purposes, e.g.
# print("this is a debug message")
def solution(M, A):
hash = [0] * (M + 1)
slices = 0
max_slices = 1000000000
head = 0
for tail in range(len(A)):
while head < len(A) and ( not hash[A[head]]):
hash[A[head]] = 1
s... | 23.565217 | 54 | 0.49262 |
6af6751858fd668eedf0c1278550d5c0ac728f78 | 34,172 | c | C | engine/code/sdl/sdl_input.c | bfakhri/dml_custom | 1e908b10890df11e510d72c21f3125e3069a0eac | [
"CC-BY-4.0"
] | null | null | null | engine/code/sdl/sdl_input.c | bfakhri/dml_custom | 1e908b10890df11e510d72c21f3125e3069a0eac | [
"CC-BY-4.0"
] | null | null | null | engine/code/sdl/sdl_input.c | bfakhri/dml_custom | 1e908b10890df11e510d72c21f3125e3069a0eac | [
"CC-BY-4.0"
] | null | null | null | /*
===========================================================================
Copyright (C) 1999-2005 Id Software, Inc.
This file is part of Quake III Arena source code.
Quake III Arena source code is free software; you can redistribute it
and/or modify it under the terms of the GNU General Public License as
publish... | 26.759593 | 187 | 0.618343 |
cb7f9b0ac88babc95253a5cf43e9e8d2ca580da6 | 3,541 | c | C | u-boot/board/samsung/smdkv310/smdkv310.c | rgomulin/aml_s905_uboot | 550de48829e852678f6cef98e94e1a97c040c1fc | [
"MIT"
] | 35 | 2019-04-26T04:00:10.000Z | 2022-03-30T11:37:06.000Z | u-boot/board/samsung/smdkv310/smdkv310.c | rgomulin/aml_s905_uboot | 550de48829e852678f6cef98e94e1a97c040c1fc | [
"MIT"
] | 4 | 2016-08-30T11:30:25.000Z | 2020-12-27T09:58:07.000Z | u-boot/board/samsung/smdkv310/smdkv310.c | rgomulin/aml_s905_uboot | 550de48829e852678f6cef98e94e1a97c040c1fc | [
"MIT"
] | 11 | 2020-01-07T05:39:10.000Z | 2021-12-26T07:27:21.000Z | /*
* Copyright (C) 2011 Samsung Electronics
*
* SPDX-License-Identifier: GPL-2.0+
*/
#include <common.h>
#include <asm/gpio.h>
#include <asm/io.h>
#include <netdev.h>
#include <asm/arch/cpu.h>
#include <asm/arch/mmc.h>
#include <asm/arch/periph.h>
#include <asm/arch/pinmux.h>
#include <asm/arch/sromc.h>
DECLARE_G... | 21.460606 | 73 | 0.701497 |
8da391be7b09b1cf1a1c01a90bd7db56bad19951 | 146 | js | JavaScript | JSProject/Webpack/source/index.js | Lay4U/Study | 8c7d1d36e33fec2d49eae5cdcc4fe076aca02f29 | [
"MIT"
] | null | null | null | JSProject/Webpack/source/index.js | Lay4U/Study | 8c7d1d36e33fec2d49eae5cdcc4fe076aca02f29 | [
"MIT"
] | null | null | null | JSProject/Webpack/source/index.js | Lay4U/Study | 8c7d1d36e33fec2d49eae5cdcc4fe076aca02f29 | [
"MIT"
] | null | null | null | import hello_word from '/hello.js';
import world_word from '/world.js';
document.querySelector('#root').innerHTML = hello_word + ' ' + world_word; | 48.666667 | 74 | 0.739726 |
b016d60c38d3c0a566ff51537431da767f666349 | 918 | py | Python | pipeline/schemas/friend_invite.py | mystic-ai/pipeline | 487c5e755a862a12c90572b0eff170853ecb3790 | [
"Apache-2.0"
] | 7 | 2022-01-28T20:27:50.000Z | 2022-02-22T15:30:00.000Z | pipeline/schemas/friend_invite.py | mystic-ai/pipeline | 487c5e755a862a12c90572b0eff170853ecb3790 | [
"Apache-2.0"
] | 17 | 2022-01-11T12:05:38.000Z | 2022-03-25T15:29:43.000Z | pipeline/schemas/friend_invite.py | neuro-ai-dev/pipeline | c7edcc83576158062fe48f266dfaea62d754e761 | [
"Apache-2.0"
] | null | null | null | from enum import Enum
from .base import BaseModel
class FriendInviteStatus(Enum):
CREATED = "created"
#: Friend has accepted the invite
ACCEPTED = "accepted"
#: The friend is still under trial period
TRIAL = "trial"
#: Cycle complete, the inviter has been credited
COMPLETE = "complete"
... | 21.857143 | 52 | 0.696078 |
b76795b3b0cab5ae05c8db6538c373cab3873f30 | 665 | swift | Swift | kpz-mpk/kpz-mpk/Map/IncidentAnnotation.swift | angrynerds-pl/kpz-mpk-ios | 5a5ef5e08d29ccdfdac9421a4ed66aaf84eb52a7 | [
"MIT"
] | 2 | 2020-03-02T12:33:08.000Z | 2020-03-04T15:00:28.000Z | kpz-mpk/kpz-mpk/Map/IncidentAnnotation.swift | angrynerds-pl/kpz-mpk-ios | 5a5ef5e08d29ccdfdac9421a4ed66aaf84eb52a7 | [
"MIT"
] | 8 | 2020-03-02T20:52:23.000Z | 2020-03-19T17:49:09.000Z | kpz-mpk/kpz-mpk/Map/IncidentAnnotation.swift | angrynerds-pl/kpz-mpk-ios | 5a5ef5e08d29ccdfdac9421a4ed66aaf84eb52a7 | [
"MIT"
] | 1 | 2020-05-13T12:14:33.000Z | 2020-05-13T12:14:33.000Z | //
// IncidentAnnotation.swift
// kpz-mpk
//
// Created by Wojciech Konury on 15/04/2020.
// Copyright © 2020 kpz-mpk. All rights reserved.
//
import Foundation
import MapKit
class IncidentAnnotation: NSObject, MKAnnotation {
var incident: Incident
var title: String?
var subtitle: String?
var coordinat... | 22.166667 | 68 | 0.708271 |
0d36c6c75dfa2f554a02ed61bd61b3fd10fb5288 | 19,217 | h | C | FireRender.Max.Plugin/plugin/light/FireRenderIES_Panel.h | Vsevolod1983/RadeonProRenderMaxPlugin | d5393fd04e45dd2c77c8b17fac4e10b20df55285 | [
"Apache-2.0"
] | 6 | 2020-05-24T12:00:43.000Z | 2021-07-13T06:22:49.000Z | FireRender.Max.Plugin/plugin/light/FireRenderIES_Panel.h | Vsevolod1983/RadeonProRenderMaxPlugin | d5393fd04e45dd2c77c8b17fac4e10b20df55285 | [
"Apache-2.0"
] | 4 | 2020-09-17T17:05:38.000Z | 2021-06-23T14:29:14.000Z | FireRender.Max.Plugin/plugin/light/FireRenderIES_Panel.h | Vsevolod1983/RadeonProRenderMaxPlugin | d5393fd04e45dd2c77c8b17fac4e10b20df55285 | [
"Apache-2.0"
] | 8 | 2020-05-15T08:29:17.000Z | 2021-07-14T08:38:07.000Z | /**********************************************************************
Copyright 2020 Advanced Micro Devices, 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/L... | 20.465389 | 111 | 0.702867 |
2478e7bcc9930b89ef6d6b3780579d310638551f | 136 | php | PHP | vendor/doctrine/dbal/tests/Doctrine/Tests/DbalTestCase.php | nassafou/SiQ | c8c602f5e773a0b195be55f93a61d7a2485f6e5f | [
"MIT"
] | 30 | 2015-04-04T06:34:09.000Z | 2021-06-07T04:13:23.000Z | vendor/doctrine/orm/tests/Doctrine/Tests/DbalTestCase.php | pmartelletti/prode-exa | 71c05e26ec06688869c0e124870b2f562cab25ee | [
"MIT"
] | 1 | 2017-01-06T15:38:36.000Z | 2017-01-06T15:38:36.000Z | vendor/doctrine/orm/tests/Doctrine/Tests/DbalTestCase.php | Lisjann/repairlivegit | c950dca7ec5d7e3cdbf94fae5a654d054a0a3f45 | [
"MIT"
] | 16 | 2015-01-11T20:21:54.000Z | 2019-02-20T10:00:36.000Z | <?php
namespace Doctrine\Tests;
/**
* Base testcase class for all dbal testcases.
*/
class DbalTestCase extends DoctrineTestCase
{
} | 13.6 | 46 | 0.742647 |
56e19961abd9841213658fc8ac09cd11c87213ca | 163 | rs | Rust | arrow-datafusion-fun/src/main.rs | dudw/rust-playground | 916c150cd6e59ff662e51fbcb649a92546d782c5 | [
"Unlicense"
] | 151 | 2019-09-03T16:46:32.000Z | 2022-03-16T06:17:51.000Z | arrow-datafusion-fun/src/main.rs | dudw/rust-playground | 916c150cd6e59ff662e51fbcb649a92546d782c5 | [
"Unlicense"
] | 3 | 2020-05-17T10:28:08.000Z | 2021-02-25T02:46:28.000Z | arrow-datafusion-fun/src/main.rs | dudw/rust-playground | 916c150cd6e59ff662e51fbcb649a92546d782c5 | [
"Unlicense"
] | 46 | 2019-03-20T21:07:40.000Z | 2022-03-11T14:20:42.000Z | mod sql;
mod dataframe;
#[tokio::main]
async fn main() -> datafusion::error::Result<()> {
sql::compute().await?;
dataframe::compute().await?;
Ok(())
} | 18.111111 | 50 | 0.595092 |
74cd3b6474eeb53c5aa441f504a2bf5888b8ee8c | 2,161 | lua | Lua | src/model/puzzle.lua | veu/sketch-share-solve | fa8e0c20ef5d24ab5d8ed66c53088c0443940b4e | [
"CC-BY-4.0"
] | 11 | 2022-03-01T04:00:38.000Z | 2022-03-22T01:24:30.000Z | src/model/puzzle.lua | veu/sketch-share-solve | fa8e0c20ef5d24ab5d8ed66c53088c0443940b4e | [
"CC-BY-4.0"
] | null | null | null | src/model/puzzle.lua | veu/sketch-share-solve | fa8e0c20ef5d24ab5d8ed66c53088c0443940b4e | [
"CC-BY-4.0"
] | 1 | 2022-03-01T09:02:25.000Z | 2022-03-01T09:02:25.000Z | class("Puzzle").extends()
function Puzzle:init(puzzle, save)
self.id = puzzle.id
self._save = save
self.title = puzzle.title
self.width = puzzle.width or 15
self.height = puzzle.height or 10
local size = self.width * self.height
self.grid = table.create(size, 0)
local values = {string.byte(puzzle.grid, 1, siz... | 18.470085 | 69 | 0.693198 |
2c3a9dff5dfd5a1decacff4d6b0170d119614513 | 225 | py | Python | GetTempAndHumidityOnce.py | HaroldPetersInskipp/Raspberry-Pi-GPIO-Scripts | b29266eb06f18e84606c4868ddb5afe11d87f737 | [
"Unlicense"
] | null | null | null | GetTempAndHumidityOnce.py | HaroldPetersInskipp/Raspberry-Pi-GPIO-Scripts | b29266eb06f18e84606c4868ddb5afe11d87f737 | [
"Unlicense"
] | null | null | null | GetTempAndHumidityOnce.py | HaroldPetersInskipp/Raspberry-Pi-GPIO-Scripts | b29266eb06f18e84606c4868ddb5afe11d87f737 | [
"Unlicense"
] | null | null | null | import time
import board
import adafruit_si7021
import sys
sensor = adafruit_si7021.SI7021(board.I2C())
print("\nTemperature: %0.1f C" % sensor.temperature)
print("Humidity: %0.1f %%" % sensor.relative_humidity)
sys.exit(0) | 22.5 | 54 | 0.76 |
f453c5861a8caba0a0f923b2314a25c5f649ea50 | 4,623 | cs | C# | src/SQLite.Net.Cipher/Interfaces/ISecureDatabase.cs | has-taiar/SQLite.Net.Cipher | fb7d4514cf4d68017deaff7b24c6f693deaac02a | [
"MIT"
] | 23 | 2015-08-06T06:52:47.000Z | 2021-02-28T11:32:39.000Z | src/SQLite.Net.Cipher/Interfaces/ISecureDatabase.cs | has-taiar/SQLite.Net.Cipher | fb7d4514cf4d68017deaff7b24c6f693deaac02a | [
"MIT"
] | 7 | 2015-10-30T19:49:32.000Z | 2019-03-08T03:15:17.000Z | src/SQLite.Net.Cipher/Interfaces/ISecureDatabase.cs | has-taiar/SQLite.Net.Cipher | fb7d4514cf4d68017deaff7b24c6f693deaac02a | [
"MIT"
] | 22 | 2015-08-18T01:15:48.000Z | 2020-10-16T14:52:59.000Z | using System;
using System.Collections.Generic;
namespace SQLite.Net.Cipher.Interfaces
{
public interface ISecureDatabase : IDisposable
{
/// <summary>
/// Inserts into the database
/// Before inserting, it encrypts all propertiese that have the Secure attribute.
/// </summary>
/// <typeparam name="T">T... | 48.663158 | 138 | 0.687216 |
8988169c22c8153e46ee4a894c468518fb777afb | 918 | sql | SQL | trunk/src/db/schedule/upgrade/026_addTournamentGamesToFlight.sql | giannini5/fields | 70b584c77a8c0b9e7ff281968806c4d3bc569d52 | [
"MIT"
] | null | null | null | trunk/src/db/schedule/upgrade/026_addTournamentGamesToFlight.sql | giannini5/fields | 70b584c77a8c0b9e7ff281968806c4d3bc569d52 | [
"MIT"
] | null | null | null | trunk/src/db/schedule/upgrade/026_addTournamentGamesToFlight.sql | giannini5/fields | 70b584c77a8c0b9e7ff281968806c4d3bc569d52 | [
"MIT"
] | null | null | null | drop procedure if exists 026_addTournamentGamesToFlight;
delimiter $$
create procedure 026_addTournamentGamesToFlight()
begin
if not exists(
select
*
from
information_schema.columns
where
TABLE_SCHEMA = DATABASE()
and TABLE_NAME = 'flight'
... | 34 | 102 | 0.696078 |
a3c4d1738a30ac49dec2b47dffd68947201263e6 | 10,228 | java | Java | src/main/java/net/reldo/taskstracker/TasksTrackerPlugin.java | tylerthardy/combat-tasks-plugin | d1d9ccb82663f96e851954c1a14fb596493654da | [
"BSD-2-Clause"
] | null | null | null | src/main/java/net/reldo/taskstracker/TasksTrackerPlugin.java | tylerthardy/combat-tasks-plugin | d1d9ccb82663f96e851954c1a14fb596493654da | [
"BSD-2-Clause"
] | null | null | null | src/main/java/net/reldo/taskstracker/TasksTrackerPlugin.java | tylerthardy/combat-tasks-plugin | d1d9ccb82663f96e851954c1a14fb596493654da | [
"BSD-2-Clause"
] | null | null | null | package net.reldo.taskstracker;
import com.google.gson.Gson;
import com.google.gson.GsonBuilder;
import com.google.inject.Provides;
import net.reldo.taskstracker.bosses.BossData;
import net.reldo.taskstracker.data.LongSerializer;
import net.reldo.taskstracker.data.TaskSave;
import net.reldo.taskstracker.data.TrackerDa... | 29.732558 | 100 | 0.777865 |
d2b81115c4d8ed503a72e817ca0af2df873e3a27 | 4,437 | ps1 | PowerShell | DSIT.ps1 | agowa338/Damn-Small-Inventory-Tool | 1e1b97d68bf98b01912a8740dc56acd0b6ea6bfa | [
"MIT"
] | 2 | 2019-10-15T21:36:18.000Z | 2021-05-15T11:24:51.000Z | DSIT.ps1 | agowa338/Damn-Small-Inventory-Tool | 1e1b97d68bf98b01912a8740dc56acd0b6ea6bfa | [
"MIT"
] | null | null | null | DSIT.ps1 | agowa338/Damn-Small-Inventory-Tool | 1e1b97d68bf98b01912a8740dc56acd0b6ea6bfa | [
"MIT"
] | null | null | null | ############ Settings ##############
$InventoryPath = "E:\DSIT"
## TODO: $InventoryDevices = "E:\DSIT\hostnames.txt"
######### // Settings // ###########
############ Preinit ###############
Set-Location $InventoryPath
$computername = $env:COMPUTERNAME ## later changes to the current computer in the $InventoryDevices... | 60.780822 | 316 | 0.773045 |
e1a0147277de077bbf1aee125dd4e79a10396edd | 732 | rb | Ruby | exercises/RB101_small_problems/medium_1/05_diamonds_further_exploration.rb | cyberflamingo/launch-school-rb101 | 8261194e465c6750d5fd7dbda696a12ca62a30df | [
"MIT"
] | 2 | 2021-04-21T17:06:57.000Z | 2022-01-25T05:16:57.000Z | exercises/RB101_small_problems/medium_1/05_diamonds_further_exploration.rb | cyberflamingo/launch-school-rb101 | 8261194e465c6750d5fd7dbda696a12ca62a30df | [
"MIT"
] | null | null | null | exercises/RB101_small_problems/medium_1/05_diamonds_further_exploration.rb | cyberflamingo/launch-school-rb101 | 8261194e465c6750d5fd7dbda696a12ca62a30df | [
"MIT"
] | 5 | 2021-06-16T17:03:26.000Z | 2022-03-01T18:52:04.000Z | def print_row(grid_size, distance_from_center)
number_of_stars = grid_size - 2 * distance_from_center
number_of_spaces = 0
number_of_spaces = number_of_stars - 2 unless number_of_stars < 2
if number_of_spaces == 0
stars = '*'
else
stars = '*' + (' ' * number_of_spaces) + '*'
end
puts stars.center(... | 16.636364 | 70 | 0.569672 |
56ed381736d270665ee2665dccbde59c973ebf39 | 3,625 | swift | Swift | Tests/TPPDFTests/Pagination/PDFPaginationStyle+Equatable_Spec.swift | chepiok/TPPDF | a90c393d666d6c75831ee4d6a7b99bdd078a71b8 | [
"MIT"
] | 301 | 2019-02-24T14:05:47.000Z | 2022-03-26T04:58:46.000Z | Tests/TPPDFTests/Pagination/PDFPaginationStyle+Equatable_Spec.swift | chepiok/TPPDF | a90c393d666d6c75831ee4d6a7b99bdd078a71b8 | [
"MIT"
] | 160 | 2019-02-15T09:45:22.000Z | 2022-02-27T16:02:50.000Z | Tests/TPPDFTests/Pagination/PDFPaginationStyle+Equatable_Spec.swift | chepiok/TPPDF | a90c393d666d6c75831ee4d6a7b99bdd078a71b8 | [
"MIT"
] | 69 | 2019-03-15T03:53:05.000Z | 2022-03-21T09:11:25.000Z | //
// PDFPaginationStyle+Equatable_Spec.swift
// TPPDF_Tests
//
// Created by Philip Niedertscheider on 27.12.17.
// Copyright © 2017 CocoaPods. All rights reserved.
//
import Foundation
import Quick
import Nimble
@testable import TPPDF
class PDFPaginationStyle_Equatable_Spec: QuickSpec {
override func spec(... | 39.835165 | 115 | 0.550897 |
b208c52fc7f4ab9526f49256255597978cd5b6e6 | 3,083 | swift | Swift | UnitTests/TestsHelper.swift | Keemotion/SwiftGen | fd1833e1b301dd2694d67f039898e4b52965a0b5 | [
"MIT"
] | null | null | null | UnitTests/TestsHelper.swift | Keemotion/SwiftGen | fd1833e1b301dd2694d67f039898e4b52965a0b5 | [
"MIT"
] | null | null | null | UnitTests/TestsHelper.swift | Keemotion/SwiftGen | fd1833e1b301dd2694d67f039898e4b52965a0b5 | [
"MIT"
] | null | null | null | //
// SwiftGen
// Copyright (c) 2015 Olivier Halligon
// MIT Licence
//
import Foundation
import XCTest
import PathKit
private let colorCode: (String) -> String = ProcessInfo().environment["XcodeColors"] == "YES" ? { "\u{001b}[\($0);" } : { _ in "" }
private let (msgColor, reset) = (colorCode("fg250,0,0"), colorCode(... | 36.270588 | 138 | 0.644502 |
a3cdd16d565e27ddc1ee3b987494bceb8aff87e0 | 1,124 | java | Java | tests/SymInferASE/complexity/gulwani_pldi09/Fig4_4.java | unsat/d | c986b5f486eaf2394fbf659dba09c6f522291386 | [
"MIT"
] | 14 | 2020-06-17T21:05:01.000Z | 2021-12-20T03:44:42.000Z | tests/SymInferASE/complexity/gulwani_pldi09/Fig4_4.java | dynaroars/dig | a6a4d045182d627d53c9970f8a77340f6f6b7afb | [
"MIT"
] | 31 | 2020-03-23T14:16:45.000Z | 2022-01-10T02:49:00.000Z | tests/SymInferASE/complexity/gulwani_pldi09/Fig4_4.java | dynaroars/dig | a6a4d045182d627d53c9970f8a77340f6f6b7afb | [
"MIT"
] | 9 | 2020-06-22T11:22:29.000Z | 2021-12-10T13:28:48.000Z | public class Fig4_4 {
public static void main (String[] args) {
mainQ(Integer.parseInt(args[0]), Integer.parseInt(args[1]));
}
public static int mainQ(int n, int m){
assert (m>0);
assert (n>0);
int i = n;
int t = 0;
int h = n/m;
/* int h = 0; */
/* while(m*h<=n){ */
/*... | 19.37931 | 220 | 0.402135 |
a84636fa860e981a49a0b92751e5df3aa0a066f4 | 216 | swift | Swift | PubSub/Sources/Models/PublishResponse.swift | NeoGolightly/google-cloud-kit | 409c2fe50359b20c0db40c848ddda3866aff5346 | [
"MIT"
] | 19 | 2020-03-19T18:34:52.000Z | 2022-02-15T15:28:26.000Z | PubSub/Sources/Models/PublishResponse.swift | NeoGolightly/google-cloud-kit | 409c2fe50359b20c0db40c848ddda3866aff5346 | [
"MIT"
] | 13 | 2020-04-10T17:12:46.000Z | 2022-01-04T11:27:26.000Z | PubSub/Sources/Models/PublishResponse.swift | NeoGolightly/google-cloud-kit | 409c2fe50359b20c0db40c848ddda3866aff5346 | [
"MIT"
] | 13 | 2020-04-09T12:27:29.000Z | 2022-01-07T04:36:50.000Z | //
// PublishResponse.swift
//
//
// Created by Susheel Athmakuri on 6/21/21.
//
import Core
import Foundation
public struct GoogleCloudPublishResponse: GoogleCloudModel {
public let messageIds: [String]
}
| 15.428571 | 60 | 0.726852 |
cdb7ede8cf347f06421b857fea8e6cec0b5ca57c | 5,668 | cs | C# | Game.NET/GameConsole.cs | calebc107/Game.NET | 0a73bbcf60ba6442172a6163d6f0c97be85d7428 | [
"Apache-2.0"
] | 1 | 2019-07-08T15:37:26.000Z | 2019-07-08T15:37:26.000Z | Game.NET/GameConsole.cs | calebc107/Game.NET | 0a73bbcf60ba6442172a6163d6f0c97be85d7428 | [
"Apache-2.0"
] | null | null | null | Game.NET/GameConsole.cs | calebc107/Game.NET | 0a73bbcf60ba6442172a6163d6f0c97be85d7428 | [
"Apache-2.0"
] | null | null | null | using System;
using GameNET;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Reflection;
using System.Threading;
namespace GameNET
{
static class GameConsole
{
static string input = "";
/// <summary>
/// Loop to read f... | 33.538462 | 118 | 0.431369 |
39120600b17830a4692227cfa6c4a77d41a2bb7e | 7,419 | py | Python | sphereNearPlane/sphereNearPlane.py | pcmagic/stokes_flow | 464d512d3739eee77b33d1ebf2f27dae6cfa0423 | [
"MIT"
] | 1 | 2018-11-11T05:00:53.000Z | 2018-11-11T05:00:53.000Z | sphereNearPlane/sphereNearPlane.py | pcmagic/stokes_flow | 464d512d3739eee77b33d1ebf2f27dae6cfa0423 | [
"MIT"
] | null | null | null | sphereNearPlane/sphereNearPlane.py | pcmagic/stokes_flow | 464d512d3739eee77b33d1ebf2f27dae6cfa0423 | [
"MIT"
] | null | null | null | import sys
import petsc4py
petsc4py.init(sys.argv)
# from scipy.io import savemat, loadmat
# from src.ref_solution import *
# import warnings
# from memory_profiler import profile
# from time import time
from src.myio import *
from src.objComposite import *
from src.StokesFlowMethod import *
from src.geo import *
fro... | 38.640625 | 249 | 0.692411 |
5275e98d7ace1b303acae266799eff66f437d943 | 62 | rb | Ruby | lib/freq_stats.rb | ddavisgraphics/freq_stats | aa316a872dba7dd0160d9cca980eb7cc20bfa09c | [
"MIT"
] | null | null | null | lib/freq_stats.rb | ddavisgraphics/freq_stats | aa316a872dba7dd0160d9cca980eb7cc20bfa09c | [
"MIT"
] | null | null | null | lib/freq_stats.rb | ddavisgraphics/freq_stats | aa316a872dba7dd0160d9cca980eb7cc20bfa09c | [
"MIT"
] | null | null | null | require 'freq_stats/version'
require 'freq_stats/super_array'
| 20.666667 | 32 | 0.83871 |
2910b76302ebd9e7706814176f37c6ff57a0869a | 1,672 | swift | Swift | Pee break/ToiletsFlow/ToiletsController/Cell/ToiletCellViewModel.swift | leobouilloux/PeeBreak | b8c2baa47ac1048df89e412ea44024201c637824 | [
"MIT"
] | 1 | 2019-02-25T01:02:04.000Z | 2019-02-25T01:02:04.000Z | Pee break/ToiletsFlow/ToiletsController/Cell/ToiletCellViewModel.swift | leobouilloux/PeeBreak | b8c2baa47ac1048df89e412ea44024201c637824 | [
"MIT"
] | null | null | null | Pee break/ToiletsFlow/ToiletsController/Cell/ToiletCellViewModel.swift | leobouilloux/PeeBreak | b8c2baa47ac1048df89e412ea44024201c637824 | [
"MIT"
] | null | null | null | //
// ToiletCellViewModel.swift
// Pee break
//
// Created by Leo Marcotte on 23/02/2019.
// Copyright © 2019 Leo Marcotte. All rights reserved.
//
import RxCocoa
import RxSwift
final class ToiletCellViewModel: ToiletCellViewModelInterface {
let address: BehaviorRelay<String>
let hours: BehaviorRelay<Stri... | 30.962963 | 113 | 0.636364 |
b0be8894f64600fd0757eaf6f3ee2d6d81f5af64 | 1,248 | py | Python | taesko/web-server/bin/gen_test_files.py | taesko/training-projects | 638649b0b5987ba971ae5ce1f171642de3cde739 | [
"Apache-2.0"
] | null | null | null | taesko/web-server/bin/gen_test_files.py | taesko/training-projects | 638649b0b5987ba971ae5ce1f171642de3cde739 | [
"Apache-2.0"
] | null | null | null | taesko/web-server/bin/gen_test_files.py | taesko/training-projects | 638649b0b5987ba971ae5ce1f171642de3cde739 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python3
import argparse
import io
UNITS = {
'B': 1,
'KB': 1024,
'MB': 1024 * 1024,
'GB': 1024 * 1024 * 1024
}
WRITE_CHUNK_SIZE = 4096
def generate_file(size):
for _ in range(size):
yield 'a'
def main():
parser = argparse.ArgumentParser()
parser.add_argument('size... | 24 | 75 | 0.546474 |
389561d4e2d36c09ceb11155b1fb7942bd151996 | 14,140 | php | PHP | web/core/modules/media_library/tests/src/Kernel/MediaLibraryAccessTest.php | rc100/awfd8-migrate | a1ff33e0a9274af57e09fe74bc103dc24d849965 | [
"MIT"
] | 6 | 2015-12-02T14:12:20.000Z | 2020-11-01T18:42:54.000Z | web/core/modules/media_library/tests/src/Kernel/MediaLibraryAccessTest.php | rc100/awfd8-migrate | a1ff33e0a9274af57e09fe74bc103dc24d849965 | [
"MIT"
] | 77 | 2019-04-17T00:11:30.000Z | 2021-06-17T09:35:29.000Z | web/core/modules/media_library/tests/src/Kernel/MediaLibraryAccessTest.php | rc100/awfd8-migrate | a1ff33e0a9274af57e09fe74bc103dc24d849965 | [
"MIT"
] | 5 | 2019-05-23T19:38:53.000Z | 2022-03-09T11:21:47.000Z | <?php
namespace Drupal\Tests\media_library\Kernel;
use Drupal\Core\Access\AccessResult;
use Drupal\Core\Access\AccessResultReasonInterface;
use Drupal\entity_test\Entity\EntityTest;
use Drupal\entity_test\Entity\EntityTestBundle;
use Drupal\field\Entity\FieldConfig;
use Drupal\field\Entity\FieldStorageConfig;
use Dru... | 35.797468 | 266 | 0.660891 |
c3cbec61444db76b69b21a3f4a480e31a1280ccd | 1,456 | cs | C# | SqlMapper.Tests/Mocks/CommandMock.cs | AndrewFahmy/SQLMapper | cc769a2ed6bfdc82c4aa9e387c1b95d1bd128bc2 | [
"MIT"
] | 7 | 2017-02-21T09:03:23.000Z | 2021-04-18T08:15:41.000Z | SqlMapper.Tests/Mocks/CommandMock.cs | AndrewFahmy/SQLMapper | cc769a2ed6bfdc82c4aa9e387c1b95d1bd128bc2 | [
"MIT"
] | null | null | null | SqlMapper.Tests/Mocks/CommandMock.cs | AndrewFahmy/SQLMapper | cc769a2ed6bfdc82c4aa9e387c1b95d1bd128bc2 | [
"MIT"
] | 4 | 2017-02-21T09:03:25.000Z | 2020-04-09T09:26:15.000Z | using System.Data;
using System.Data.Common;
namespace SqlMapper.Tests.Mocks
{
public class CommandMock : DbCommand
{
private ParameterCollectionMock _parameters;
public CommandMock()
{
_parameters = new ParameterCollectionMock();
}
public override void Ca... | 26.472727 | 86 | 0.604396 |
dda83c9561ce31ea52f76cb71dec80f96395c0c3 | 5,187 | java | Java | app/src/main/java/com/example/lifepath/MovementFragment.java | Danval-003/Lifepath | 00c6f3d6574049ef83346e421ccca11130d808cc | [
"MIT"
] | null | null | null | app/src/main/java/com/example/lifepath/MovementFragment.java | Danval-003/Lifepath | 00c6f3d6574049ef83346e421ccca11130d808cc | [
"MIT"
] | null | null | null | app/src/main/java/com/example/lifepath/MovementFragment.java | Danval-003/Lifepath | 00c6f3d6574049ef83346e421ccca11130d808cc | [
"MIT"
] | null | null | null | package com.example.lifepath;
import android.content.Intent;
import android.os.Bundle;
import android.os.Handler;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Button;
import android.widget.TextView;
import androidx.fragment.app.Fragment;... | 33.901961 | 81 | 0.47754 |
3170986bb1271e77cc3a6af315beaba405f0ada9 | 751 | sql | SQL | MySQL/25_Advance Stored Procedure.sql | ajsamant/SampleCodeAjinkya | f7515ca879efd01c67047d2527819a1366861e94 | [
"MIT"
] | null | null | null | MySQL/25_Advance Stored Procedure.sql | ajsamant/SampleCodeAjinkya | f7515ca879efd01c67047d2527819a1366861e94 | [
"MIT"
] | null | null | null | MySQL/25_Advance Stored Procedure.sql | ajsamant/SampleCodeAjinkya | f7515ca879efd01c67047d2527819a1366861e94 | [
"MIT"
] | null | null | null | DROP PROCEDURE IF EXISTS spCheckFruitstockLevel;
DELIMITER //
CREATE PROCEDURE spCheckFruitstockLevel(IN pFruit_Id SMALLINT(5), OUT pStockLevel VARCHAR(6))
BEGIN
DECLARE stockNumber SMALLINT;
SELECT
Fruits.Inventory into stockNumber
FROM
Fruits INNER JOIN Units ON
Fruits.Unit_Id = Units.Unit_Id
WHERE
Fru... | 22.088235 | 93 | 0.750999 |
2c76ac4fc6dcbeb3a656e9839bd6eaea94463abc | 3,674 | cpp | C++ | linux/SensorsLinuxInterface.cpp | STMicroelectronics/st-mems-android-linux-sensors-hal | a12f3d9806b8851d17c331bc07acafae9dcb2d3b | [
"Apache-2.0"
] | 7 | 2021-10-29T20:29:48.000Z | 2022-03-03T01:38:45.000Z | linux/SensorsLinuxInterface.cpp | STMicroelectronics/st-mems-android-linux-sensors-hal | a12f3d9806b8851d17c331bc07acafae9dcb2d3b | [
"Apache-2.0"
] | null | null | null | linux/SensorsLinuxInterface.cpp | STMicroelectronics/st-mems-android-linux-sensors-hal | a12f3d9806b8851d17c331bc07acafae9dcb2d3b | [
"Apache-2.0"
] | null | null | null | /*
* Copyright (C) 2018 The Android Open Source Project
* Copyright (C) 2019-2020 STMicroelectronics
*
* 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/lic... | 28.703125 | 96 | 0.688351 |
5da760efdd8c8eaa8b7bff8dbd6d3dc1c382a22f | 4,019 | cpp | C++ | simplefvm/src/FVMSolver/MatrixBuilder/SleMatrixBuilder.cpp | artvns/SimpleFvm | 5a8eca332d6780e738c0bc6c8c2b787b47b5b20d | [
"MIT"
] | 4 | 2022-01-03T08:45:55.000Z | 2022-01-06T19:57:11.000Z | simplefvm/src/FVMSolver/MatrixBuilder/SleMatrixBuilder.cpp | artvns/SimpleFvm | 5a8eca332d6780e738c0bc6c8c2b787b47b5b20d | [
"MIT"
] | null | null | null | simplefvm/src/FVMSolver/MatrixBuilder/SleMatrixBuilder.cpp | artvns/SimpleFvm | 5a8eca332d6780e738c0bc6c8c2b787b47b5b20d | [
"MIT"
] | null | null | null | #include "SleMatrixBuilder.h"
namespace fvmsolver {
SleMatrixBuilder::SleMatrixBuilder(
AbstractCoeffsCalculator& coeffsCalculator,
uPtrDataPort spData) :
spDataPort_(std::move(spData)),
dataPort_(*spDataPort_),
... | 33.491667 | 91 | 0.631003 |
388a992f5d6f1c6238d88b46aadb29834f2e2e23 | 1,595 | php | PHP | app/controllers/ServicesController.php | cmink-alone/hotel_laravel | fa2730d52fd8e6a229676ed46e2b212de5d6204c | [
"MIT"
] | null | null | null | app/controllers/ServicesController.php | cmink-alone/hotel_laravel | fa2730d52fd8e6a229676ed46e2b212de5d6204c | [
"MIT"
] | null | null | null | app/controllers/ServicesController.php | cmink-alone/hotel_laravel | fa2730d52fd8e6a229676ed46e2b212de5d6204c | [
"MIT"
] | null | null | null | <?php
class ServicesController extends Controller{
public function getIndex(){
$key = Input::get('search');
if(isset($key)){
$data = Services::where('name', 'like', '%'.$key.'%')->orderBy('id', 'desc')->paginate(10);
}else{
$data = Services::orderBy('id', 'desc')->paginate(10);
}
return View::make('h... | 29.537037 | 102 | 0.637618 |
dc9e25552350d68169c1b3cba40f5ee8d96fa332 | 4,327 | tsx | TypeScript | src/overlays/Tooltip/index.tsx | x86chi/class101-ui | f9f0000372a176d1254e2467ea38445a6a60bca4 | [
"MIT"
] | 1 | 2021-06-12T08:22:14.000Z | 2021-06-12T08:22:14.000Z | src/overlays/Tooltip/index.tsx | SoonGwan/class101-ui | 197bfd2fed275850b1a814510183b826d4aed803 | [
"MIT"
] | null | null | null | src/overlays/Tooltip/index.tsx | SoonGwan/class101-ui | 197bfd2fed275850b1a814510183b826d4aed803 | [
"MIT"
] | null | null | null | import React, { useCallback, useEffect, useState } from 'react';
import { Manager, Popper, Reference } from 'react-popper';
import styled from 'styled-components';
import { Position } from '../../core';
import { elevation2 } from '../../core/ElevationStyles';
import { body2, caption1 } from '../../core/TextStyles';
im... | 27.04375 | 103 | 0.611971 |
c6e554445c46e29341e6d17871cb18be25f8820e | 2,328 | rb | Ruby | app/controllers/payment_providers_controller.rb | paviliondev/invoices | 13000ea3203ee2fdf97fbdba586d1f623d860389 | [
"MIT"
] | null | null | null | app/controllers/payment_providers_controller.rb | paviliondev/invoices | 13000ea3203ee2fdf97fbdba586d1f623d860389 | [
"MIT"
] | null | null | null | app/controllers/payment_providers_controller.rb | paviliondev/invoices | 13000ea3203ee2fdf97fbdba586d1f623d860389 | [
"MIT"
] | null | null | null | class PaymentProvidersController < ApplicationController
before_action :set_payment_provider, only: [:show, :edit, :update, :destroy]
before_action :ensure_member
# GET /payment_providers
# GET /payment_providers.json
def index
@payment_providers = PaymentProvider.all
end
# GET /payment_providers/1
... | 30.631579 | 112 | 0.717354 |
38a3d61b354cbc17436d88dc084862570ba48739 | 2,548 | php | PHP | App/Controllers/MethodCat.php | mprzybycien/wallet-mvc | 9801155c7e9b875b043dbecca1a8a60e40cd5069 | [
"MIT"
] | null | null | null | App/Controllers/MethodCat.php | mprzybycien/wallet-mvc | 9801155c7e9b875b043dbecca1a8a60e40cd5069 | [
"MIT"
] | null | null | null | App/Controllers/MethodCat.php | mprzybycien/wallet-mvc | 9801155c7e9b875b043dbecca1a8a60e40cd5069 | [
"MIT"
] | null | null | null | <?php
namespace App\Controllers;
use \Core\View;
use \App\Auth;
use \App\Flash;
use \App\Models\User;
use \App\Models\IncomeModel;
use \App\Models\MethodCatModel;
/**
* Profile controller
*
* PHP version 7.0
*/
class MethodCat extends Authenticated
{
protected function before()
{
parent::bef... | 28.311111 | 96 | 0.592229 |
d7f4bc81bd088b706996e410126117d3fbd63ecc | 2,317 | rb | Ruby | lib/ins_n_outs/comment_parser.rb | JessicaGillan/ins_n_outs | 92f2ab58e99428091def1244ea7914b006761312 | [
"MIT"
] | null | null | null | lib/ins_n_outs/comment_parser.rb | JessicaGillan/ins_n_outs | 92f2ab58e99428091def1244ea7914b006761312 | [
"MIT"
] | null | null | null | lib/ins_n_outs/comment_parser.rb | JessicaGillan/ins_n_outs | 92f2ab58e99428091def1244ea7914b006761312 | [
"MIT"
] | null | null | null | MethodData = Struct.new(:container, :name, :input_types, :output_types)
class CommentParser
REGEX = { token: /#\s*DELIMITER:\s*(\S+)/,
ins: /ins:\s*(.+),|ins:\s*(.+)outs:|ins:\s*(.+)/,
outs: /outs:\s*(.+),|outs:\s*(.+)ins:|outs:\s*(.+)/,
container: /class\s+(\w+)|module\s+(\w+)/
... | 27.583333 | 84 | 0.594303 |
72f82db841740b05bf98989e6e570ccc66d78047 | 4,159 | cs | C# | Public/Src/Cache/ContentStore/Distributed/Services/ServicesCreatorBase.cs | miniksa/BuildXL | 4dc257a82a6126fe7516f15fa6f505c14c122ffb | [
"MIT"
] | null | null | null | Public/Src/Cache/ContentStore/Distributed/Services/ServicesCreatorBase.cs | miniksa/BuildXL | 4dc257a82a6126fe7516f15fa6f505c14c122ffb | [
"MIT"
] | null | null | null | Public/Src/Cache/ContentStore/Distributed/Services/ServicesCreatorBase.cs | miniksa/BuildXL | 4dc257a82a6126fe7516f15fa6f505c14c122ffb | [
"MIT"
] | null | null | null | // Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
using System;
using System.ComponentModel;
using System.Diagnostics.CodeAnalysis;
#nullable enable
namespace BuildXL.Cache.ContentStore.Distributed.Services
{
/// <summary>
/// Base helper class for service creation.
//... | 31.992308 | 111 | 0.577062 |
1b4534915ccd8b625d42e8bbcc64951f114d46cb | 283 | rb | Ruby | 2020/ruby/day-2-password-philosophy/part_one.rb | hailelagi/advent-of-code | bd3c696c700a7f12616a1c7c8e29ce5e17ba01af | [
"MIT"
] | null | null | null | 2020/ruby/day-2-password-philosophy/part_one.rb | hailelagi/advent-of-code | bd3c696c700a7f12616a1c7c8e29ce5e17ba01af | [
"MIT"
] | null | null | null | 2020/ruby/day-2-password-philosophy/part_one.rb | hailelagi/advent-of-code | bd3c696c700a7f12616a1c7c8e29ce5e17ba01af | [
"MIT"
] | null | null | null | passwords_input = File.read('puzzle_input.txt').split(/\n/)
valid = 0
for input in passwords_input
/(\d+)-(\d+) (\w): (\w+)/.match(input)
lowest, highest = $1.to_i, $2.to_i
chars = $4.scan(/#{$3}/).size
valid += 1 if (chars >= lowest and chars <= highest)
end
puts valid
| 20.214286 | 59 | 0.611307 |
9ecf1baddb0dd87293aa3f101e28c840627bc1a4 | 1,721 | lua | Lua | nnname.lua | felixgwu/nnname | e8ba6e15857f460437ad551b7f7ea49428c910d9 | [
"MIT"
] | 1 | 2017-02-20T18:07:28.000Z | 2017-02-20T18:07:28.000Z | nnname.lua | felixgwu/nnname | e8ba6e15857f460437ad551b7f7ea49428c910d9 | [
"MIT"
] | null | null | null | nnname.lua | felixgwu/nnname | e8ba6e15857f460437ad551b7f7ea49428c910d9 | [
"MIT"
] | null | null | null | if not nn then require 'nn' end
if not dpnn then require 'dpnn' end
nnname = {
version = 1,
}
-- find a module by its name
function nn.Module:find(name, last)
local modules = self:findAll(name)
return last and modules[#modules] or modules[1]
end
-- find all module by its name
function nn.Module:findAll(nam... | 27.31746 | 90 | 0.568855 |
cdb53ed8e9b2289d50ab6004ed8b6a9c3809aa3c | 6,928 | cs | C# | sdk/dotnet/Kusto/V20190121/Enums.cs | polivbr/pulumi-azure-native | 09571f3bf6bdc4f3621aabefd1ba6c0d4ecfb0e7 | [
"Apache-2.0"
] | null | null | null | sdk/dotnet/Kusto/V20190121/Enums.cs | polivbr/pulumi-azure-native | 09571f3bf6bdc4f3621aabefd1ba6c0d4ecfb0e7 | [
"Apache-2.0"
] | null | null | null | sdk/dotnet/Kusto/V20190121/Enums.cs | polivbr/pulumi-azure-native | 09571f3bf6bdc4f3621aabefd1ba6c0d4ecfb0e7 | [
"Apache-2.0"
] | null | null | null | // *** WARNING: this file was generated by the Pulumi SDK Generator. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
using System;
using System.ComponentModel;
using Pulumi;
namespace Pulumi.AzureNative.Kusto.V20190121
{
/// <summary>
/// SKU name.
/// </summary>
... | 45.281046 | 121 | 0.672921 |
ba62a17da0831144b0505a398cc415a59ebec190 | 291 | sh | Shell | luas_wa_bridesglen.sh | vfonic/RgbMatrixLuas | 8fb52b1b3232d92c68bfe924c6a0fb46a70ca554 | [
"MIT"
] | null | null | null | luas_wa_bridesglen.sh | vfonic/RgbMatrixLuas | 8fb52b1b3232d92c68bfe924c6a0fb46a70ca554 | [
"MIT"
] | null | null | null | luas_wa_bridesglen.sh | vfonic/RgbMatrixLuas | 8fb52b1b3232d92c68bfe924c6a0fb46a70ca554 | [
"MIT"
] | null | null | null | #!/bin/bash
# curl --silent "http://www.luas.ie/luaspid.html?get=Windy%20Arbour" \
cat /home/pi/scripts/luas_times.html \
| grep Brides | sed -E 's#[^B]+Brides Glen</div><div class="time">([0-9]+|DUE)([^B]+Brides Glen</div><div class="time">([0-9]+|DUE))?.*#\1 \3#' \
| sed -E 's/^ *| *$//'
| 48.5 | 145 | 0.587629 |
8d9ad66141d7593b7ea26ca013e607a134307b85 | 299 | js | JavaScript | pages-redux-ok/index.js | Rakeshshinedezign/Testimonial | 26361bd165af5053162ae76910970eefe7ea6060 | [
"MIT"
] | null | null | null | pages-redux-ok/index.js | Rakeshshinedezign/Testimonial | 26361bd165af5053162ae76910970eefe7ea6060 | [
"MIT"
] | null | null | null | pages-redux-ok/index.js | Rakeshshinedezign/Testimonial | 26361bd165af5053162ae76910970eefe7ea6060 | [
"MIT"
] | null | null | null | import React from 'react';
import ReactDOM from 'react-dom';
import { Provider } from 'react-redux';
import App from './redux/App.js';
import store from './redux/store.js';
const Index = () => (
<div>
<Provider store={store}>
<App />
</Provider>
</div>
);
export default Index; | 17.588235 | 39 | 0.625418 |
79deeff9da225bcf3da28a8554ead0c9277dc2b7 | 1,465 | php | PHP | tests/UnFreezeAccountTest.php | supine-win/adapay | 028f392bf08a22344455dfc238f221a250eca97b | [
"MIT"
] | 2 | 2021-09-05T14:56:18.000Z | 2022-02-12T07:57:56.000Z | tests/UnFreezeAccountTest.php | supine-win/adapay | 028f392bf08a22344455dfc238f221a250eca97b | [
"MIT"
] | null | null | null | tests/UnFreezeAccountTest.php | supine-win/adapay | 028f392bf08a22344455dfc238f221a250eca97b | [
"MIT"
] | null | null | null | <?php
use PHPUnit\Framework\TestCase;
class UnFreezeAccountTest extends TestCase
{
public function testCreate()
{
SupineWin\Adapay\AdapayCore\AdaPay::$gateWayType = 'api';
# 初始化解冻账户对象类
$obj = new \SupineWin\Adapay\AdapaySdk\UnFreezeAccount();
$un_fz_params = array(
'... | 1,465 | 1,465 | 0.574061 |
06faa994d32ecf945ca2ab1aed8e72b2c0d2fc89 | 1,188 | py | Python | python/factualaudio/plot.py | factualaudio/factualaudio | 8b9b824e98710470d9d09931688277f667b85a6e | [
"CC-BY-4.0"
] | 4 | 2017-11-20T21:25:24.000Z | 2019-12-13T06:52:51.000Z | python/factualaudio/plot.py | factualaudio/factualaudio | 8b9b824e98710470d9d09931688277f667b85a6e | [
"CC-BY-4.0"
] | null | null | null | python/factualaudio/plot.py | factualaudio/factualaudio | 8b9b824e98710470d9d09931688277f667b85a6e | [
"CC-BY-4.0"
] | null | null | null | from factualaudio.data import noise
from factualaudio.decibel import to_decibels
import numpy as np
def waveform(axes, wave, sample_rate, *args, **kwargs):
return axes.plot(np.arange(0, wave.size) * (1000 / sample_rate), wave, *args, **kwargs)
# Equivalent to axes.amplitude_spectrum(), but plots on an RMS amplitu... | 49.5 | 101 | 0.736532 |
d652617e6c218d1189663fcdfcca2d5d02981729 | 3,098 | cs | C# | SharpRemote.Test/CodeGeneration/Serialization/BinarySerializerTest.cs | StefanSturm87/SharpRemote | 74e83a34b96a9f5c76d1db8cf975a97d38f62f38 | [
"MIT"
] | 11 | 2015-05-13T17:32:26.000Z | 2021-11-18T23:08:06.000Z | SharpRemote.Test/CodeGeneration/Serialization/BinarySerializerTest.cs | StefanSturm87/SharpRemote | 74e83a34b96a9f5c76d1db8cf975a97d38f62f38 | [
"MIT"
] | 72 | 2015-08-13T17:57:56.000Z | 2021-05-21T09:51:31.000Z | SharpRemote.Test/CodeGeneration/Serialization/BinarySerializerTest.cs | StefanSturm87/SharpRemote | 74e83a34b96a9f5c76d1db8cf975a97d38f62f38 | [
"MIT"
] | 5 | 2018-05-11T08:49:18.000Z | 2022-02-03T10:34:08.000Z | using System;
using FluentAssertions;
using Moq;
using NUnit.Framework;
using SharpRemote.Test.Types.Classes;
using SharpRemote.Test.Types.Interfaces;
namespace SharpRemote.Test.CodeGeneration.Serialization
{
[TestFixture]
public sealed class BinarySerializerTest
{
[Test]
[Description("Verifies that the cachin... | 38.246914 | 164 | 0.736281 |
05b007a00217d2af68bbaa5fe4304dbc30f869b4 | 2,685 | py | Python | openGaussBase/testcase/KEYWORDS/password/Opengauss_Function_Keyword_Password_Case0020.py | opengauss-mirror/Yat | aef107a8304b94e5d99b4f1f36eb46755eb8919e | [
"MulanPSL-1.0"
] | null | null | null | openGaussBase/testcase/KEYWORDS/password/Opengauss_Function_Keyword_Password_Case0020.py | opengauss-mirror/Yat | aef107a8304b94e5d99b4f1f36eb46755eb8919e | [
"MulanPSL-1.0"
] | null | null | null | openGaussBase/testcase/KEYWORDS/password/Opengauss_Function_Keyword_Password_Case0020.py | opengauss-mirror/Yat | aef107a8304b94e5d99b4f1f36eb46755eb8919e | [
"MulanPSL-1.0"
] | null | null | null | """
Copyright (c) 2022 Huawei Technologies Co.,Ltd.
openGauss is licensed under Mulan PSL v2.
You can use this software according to the terms and conditions of the Mulan PSL v2.
You may obtain a copy of Mulan PSL v2 at:
http://license.coscl.org.cn/MulanPSL2
THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, W... | 36.283784 | 124 | 0.665922 |
b78f0a6dcf3abebb29e73f7a85a2c8747404b0fb | 345 | kt | Kotlin | src/_04interfaces/main.kt | Ladicek/kotlin-talk-examples | 9a89e01f88dd8b0170fe92200acd7b66bb63f3d2 | [
"Apache-2.0"
] | null | null | null | src/_04interfaces/main.kt | Ladicek/kotlin-talk-examples | 9a89e01f88dd8b0170fe92200acd7b66bb63f3d2 | [
"Apache-2.0"
] | null | null | null | src/_04interfaces/main.kt | Ladicek/kotlin-talk-examples | 9a89e01f88dd8b0170fe92200acd7b66bb63f3d2 | [
"Apache-2.0"
] | null | null | null | package _04interfaces
interface Foo {
fun foo(): String
}
interface Bar {
fun bar(): String {
return "bar"
}
}
interface Baz {
fun baz() = "baz"
}
class Fubar : Foo, Bar, Baz {
override fun foo() = "foo"
fun fubar() {
println("${foo()}-${bar()}-${baz()}")
}
}
fun main()... | 12.321429 | 45 | 0.507246 |
72f9d063b467118a471116df2ce2e8696d38b960 | 11,276 | cs | C# | src/HttpBuilder/Request/RequestHandlerExtentionMethods.cs | elamaunt/HttpBuilder | b9b4ebeb3ab0333ff3acdf201bb147514869ac7e | [
"MIT"
] | 1 | 2021-08-06T22:38:34.000Z | 2021-08-06T22:38:34.000Z | src/HttpBuilder/Request/RequestHandlerExtentionMethods.cs | elamaunt/HttpBuilder | b9b4ebeb3ab0333ff3acdf201bb147514869ac7e | [
"MIT"
] | null | null | null | src/HttpBuilder/Request/RequestHandlerExtentionMethods.cs | elamaunt/HttpBuilder | b9b4ebeb3ab0333ff3acdf201bb147514869ac7e | [
"MIT"
] | null | null | null | using System;
using System.Collections;
using System.IO;
using System.Linq;
using System.Net.Http;
using System.Runtime.CompilerServices;
using System.Threading;
using System.Threading.Tasks;
using Newtonsoft.Json;
namespace HttpBuilder
{
/// <summary>
/// Delegate type for handling file upload progress
/... | 41.003636 | 219 | 0.58221 |
ef54c8f41c75ba1da3aabe4acca2a0753f457c8e | 1,733 | php | PHP | local-vendor/members/src/Models/MemberWithLatestPoints.php | dansk-badminton-tech/nembadminton | f48042ff3edd58ba84e349e6e9b711742a5a8335 | [
"MIT"
] | null | null | null | local-vendor/members/src/Models/MemberWithLatestPoints.php | dansk-badminton-tech/nembadminton | f48042ff3edd58ba84e349e6e9b711742a5a8335 | [
"MIT"
] | 8 | 2022-02-05T11:48:43.000Z | 2022-03-21T22:34:01.000Z | local-vendor/members/src/Models/MemberWithLatestPoints.php | dansk-badminton-tech/nembadminton | f48042ff3edd58ba84e349e6e9b711742a5a8335 | [
"MIT"
] | null | null | null | <?php
declare(strict_types=1);
namespace FlyCompany\Members\Models;
use App\Models\Club;
use App\Models\Point;
use Carbon\Carbon;
use Carbon\CarbonInterface;
use FlyCompany\BadmintonPlayerAPI\Util;
use FlyCompany\BadmintonPlayerAPI\Vintage;
use Illuminate\Database\Eloquent\Builder;
use Illuminate\Database\Eloquent\M... | 27.078125 | 88 | 0.716099 |
bb5abc542c0a420badb0e53f7bd89232c997dfb4 | 2,920 | cs | C# | SftpWrapper.Sdk/Services/Upload.cs | rodrigodosanjosoliveira/sftpwrapper | 97694fbcf5bbb62174adec9347bdc3328f1b9624 | [
"MIT"
] | 2 | 2017-12-21T17:23:02.000Z | 2018-01-10T17:41:33.000Z | SftpWrapper.Sdk/Services/Upload.cs | rodrigodosanjosoliveira/SftpWrapper | 97694fbcf5bbb62174adec9347bdc3328f1b9624 | [
"MIT"
] | 3 | 2019-07-04T23:15:16.000Z | 2020-05-06T04:52:46.000Z | SftpWrapper.Sdk/Services/Upload.cs | rodrigodosanjosoliveira/SftpWrapper | 97694fbcf5bbb62174adec9347bdc3328f1b9624 | [
"MIT"
] | null | null | null | using System;
using System.IO;
using System.Net.Sockets;
using Renci.SshNet;
using Renci.SshNet.Common;
using SftpWrapper.Sdk.Models;
namespace SftpWrapper.Sdk.Services
{
public class Upload : IDisposable
{
private readonly SftpClient _client;
public bool UploadSuccess { get; set; }
pr... | 27.28972 | 86 | 0.523973 |
9acb50b4fa2981e26df99fb818531568abf3f96a | 8,653 | sql | SQL | log4mssql/LoggerBase/Stored Procedures/InstallToRemote.sql | jbpion/log4mssql | 881fc2ab728fb48fb63961ea1a17b7c88336dfd0 | [
"MIT"
] | 1 | 2021-01-30T07:35:12.000Z | 2021-01-30T07:35:12.000Z | log4mssql/LoggerBase/Stored Procedures/InstallToRemote.sql | jbpion/log4mssql | 881fc2ab728fb48fb63961ea1a17b7c88336dfd0 | [
"MIT"
] | 1 | 2021-07-06T08:17:32.000Z | 2021-07-06T08:17:32.000Z | log4mssql/LoggerBase/Stored Procedures/InstallToRemote.sql | jbpion/log4mssql | 881fc2ab728fb48fb63961ea1a17b7c88336dfd0 | [
"MIT"
] | null | null | null | /*********************************************************************************************
PROCEDURE LoggerBase.InstallToRemote
Date: 03/14/2019
Author: Jerome Pion
Description: Installs the framework on another database in the instance pointing back to the main logging databa... | 57.304636 | 315 | 0.638969 |
8e7e82e21115dbb42edf2bc97ead58c5f766801b | 14,106 | js | JavaScript | packages/benefit-docs-old/theme/components/Page.js | gastonfartek/benefit | dc35d0509736345b052a4bd2d2e195896271c9de | [
"MIT"
] | 53 | 2019-03-14T18:08:35.000Z | 2022-02-12T21:30:14.000Z | packages/benefit-docs-old/theme/components/Page.js | gastonfartek/benefit | dc35d0509736345b052a4bd2d2e195896271c9de | [
"MIT"
] | 59 | 2019-05-05T04:52:16.000Z | 2022-02-26T16:43:06.000Z | packages/benefit-docs-old/theme/components/Page.js | gastonfartek/benefit | dc35d0509736345b052a4bd2d2e195896271c9de | [
"MIT"
] | 5 | 2019-05-06T00:04:48.000Z | 2021-04-23T20:36:08.000Z | /** @jsx jsx */
import React, { useEffect, useState } from "react"
import { useConfig, useMenus, useDocs, Link, doczState } from "docz"
import { css, keyframes } from "emotion"
import { ArrowLeft, ArrowRight, GitHub, ChevronsRight } from "react-feather"
import { Box, ConfigConsumer, jsx } from "benefit-react"
import Co... | 29.024691 | 469 | 0.55806 |
e3194d55c28c8561a6a625d4ee3e0dca45000a93 | 844 | rb | Ruby | spec/unit/mutest/reporter/cli/printer/subject_progress_spec.rb | ch1c0t/mutest | 45722b2320d90c020916824e0a697ac25580c487 | [
"MIT"
] | 55 | 2017-01-30T02:26:07.000Z | 2018-03-31T21:37:58.000Z | spec/unit/mutest/reporter/cli/printer/subject_progress_spec.rb | ch1c0t/mutest | 45722b2320d90c020916824e0a697ac25580c487 | [
"MIT"
] | 41 | 2017-01-30T02:45:15.000Z | 2017-11-10T20:02:36.000Z | spec/unit/mutest/reporter/cli/printer/subject_progress_spec.rb | ch1c0t/mutest | 45722b2320d90c020916824e0a697ac25580c487 | [
"MIT"
] | 6 | 2017-01-30T02:30:17.000Z | 2018-01-16T19:26:19.000Z | RSpec.describe Mutest::Reporter::CLI::Printer::SubjectProgress do
setup_shared_context
let(:reportable) { subject_a_result }
describe '.call' do
context 'on full coverage' do
it_reports <<-'STR'
subject-a mutations: 2
..
(02/02) 100% - killtime: 2.00s runtime: 2.00s overhead: 0... | 24.114286 | 69 | 0.597156 |
97c7061135ef17e6afd4a405231fef723f17cc86 | 1,067 | dart | Dart | lib/sharepoint_auth/helper/token_storage.dart | luv4ever2shail/spmconnectflutter | 6cfc88500f284bd69975842fcfd4091955455b39 | [
"Apache-2.0"
] | 1 | 2019-04-15T12:06:12.000Z | 2019-04-15T12:06:12.000Z | lib/sharepoint_auth/helper/token_storage.dart | luv4ever2shail/spmconnectflutter | 6cfc88500f284bd69975842fcfd4091955455b39 | [
"Apache-2.0"
] | 4 | 2019-04-26T15:20:33.000Z | 2019-05-15T19:21:50.000Z | lib/sharepoint_auth/helper/token_storage.dart | spmconnect/spmconnectflutter | 6cfc88500f284bd69975842fcfd4091955455b39 | [
"Apache-2.0"
] | null | null | null | import 'dart:async';
import "dart:convert" as Convert;
import 'package:flutter_secure_storage/flutter_secure_storage.dart';
import 'package:spmconnectapp/sharepoint_auth/model/token.dart';
class TokenStorage {
static TokenStorage shared = new TokenStorage();
FlutterSecureStorage _secureStorage = FlutterSecureStora... | 29.638889 | 71 | 0.710403 |
073df237df661a022ccc4c64a1b648f115261283 | 388 | css | CSS | src/components/ShoppingCart/ProductList/ProductList.css | ivanrdvc/react-ecommerce | 511d9ac9456942286586e2f6172d82470d0180ee | [
"MIT"
] | 1 | 2020-04-21T20:51:21.000Z | 2020-04-21T20:51:21.000Z | src/components/ShoppingCart/ProductList/ProductList.css | ivanrdvc/react-ecommerce | 511d9ac9456942286586e2f6172d82470d0180ee | [
"MIT"
] | null | null | null | src/components/ShoppingCart/ProductList/ProductList.css | ivanrdvc/react-ecommerce | 511d9ac9456942286586e2f6172d82470d0180ee | [
"MIT"
] | null | null | null | .ProductList-header {
border-bottom: 1px solid #d3d1d0;
padding-bottom: 0.5rem;
display: flex;
}
.ProductList-title {
color: #828282;
font-size: 14px;
text-transform: uppercase;
}
.ProductList-title:nth-child(1) {
flex: 0 0 58.33333%;
}
.ProductList-title:nth-child(2) {
flex: 0 0 25%;
}
.ProductList... | 15.52 | 35 | 0.659794 |
6be0d9c2e70cb535e89012d41f8191b69cbda1c1 | 10,566 | sql | SQL | jassimbooks.sql | u1676570/advance-web | e4f66c5860bef3c0671d4aa7dce9df6bfff747aa | [
"MIT"
] | null | null | null | jassimbooks.sql | u1676570/advance-web | e4f66c5860bef3c0671d4aa7dce9df6bfff747aa | [
"MIT"
] | null | null | null | jassimbooks.sql | u1676570/advance-web | e4f66c5860bef3c0671d4aa7dce9df6bfff747aa | [
"MIT"
] | null | null | null | -- phpMyAdmin SQL Dump
-- version 4.8.0
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Nov 12, 2019 at 02:59 AM
-- Server version: 10.1.31-MariaDB
-- PHP Version: 7.2.4
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET @OLD... | 34.529412 | 377 | 0.679538 |
0df71aa2bfd51a9d0cf97fa901ecb6497b2b2abe | 137 | cs | C# | PAEF1a/Core/Events/AfterCatSavedEventArgs.cs | chrhodes/Applications | d48e73993e8c11c5d7ce14b4214ba225a88bf89c | [
"MIT"
] | 1 | 2021-03-31T09:15:01.000Z | 2021-03-31T09:15:01.000Z | PAEF1a/Core/Events/AfterCatSavedEventArgs.cs | chrhodes/Applications | d48e73993e8c11c5d7ce14b4214ba225a88bf89c | [
"MIT"
] | null | null | null | PAEF1a/Core/Events/AfterCatSavedEventArgs.cs | chrhodes/Applications | d48e73993e8c11c5d7ce14b4214ba225a88bf89c | [
"MIT"
] | null | null | null | using VNC.Core.Events;
namespace PAEF1a.Core.Events
{
public class AfterCatSavedEventArgs : AfterDetailSavedEventArgs
{
}
}
| 15.222222 | 67 | 0.737226 |
9fd3402e164c4c99693bbf3c5e5f4252e5113069 | 480 | py | Python | app/__init__.py | pedroermarinho/Dominik | 3be83039f4622c52ee43e5f1e6ea277d4c0fb484 | [
"MIT"
] | null | null | null | app/__init__.py | pedroermarinho/Dominik | 3be83039f4622c52ee43e5f1e6ea277d4c0fb484 | [
"MIT"
] | null | null | null | app/__init__.py | pedroermarinho/Dominik | 3be83039f4622c52ee43e5f1e6ea277d4c0fb484 | [
"MIT"
] | null | null | null | # -*- coding:utf-8 -*-
from flask import Flask
from app.modules import init_app
from app.controllers.database import init_db
from app.modules.chat_bot import init_chat_bot
from app.modules.arduino import init_arduino
from app.modules.services import init_services
def create_app():
app: Flask = Flask(__name__)
... | 22.857143 | 46 | 0.75 |
110ab8aa92b237ae750437f7343a4a346b46e685 | 2,479 | kt | Kotlin | src/test/kotlin/de/klg71/keycloakmigration/changeControl/actions/client/mapper/AddGroupMembershipMapperActionIntegTest.kt | Interview-IA/keycloakmigration | f02f6b1fb88b95392407df17d19220f2582e9854 | [
"MIT"
] | null | null | null | src/test/kotlin/de/klg71/keycloakmigration/changeControl/actions/client/mapper/AddGroupMembershipMapperActionIntegTest.kt | Interview-IA/keycloakmigration | f02f6b1fb88b95392407df17d19220f2582e9854 | [
"MIT"
] | null | null | null | src/test/kotlin/de/klg71/keycloakmigration/changeControl/actions/client/mapper/AddGroupMembershipMapperActionIntegTest.kt | Interview-IA/keycloakmigration | f02f6b1fb88b95392407df17d19220f2582e9854 | [
"MIT"
] | 1 | 2021-09-15T06:28:07.000Z | 2021-09-15T06:28:07.000Z | package de.klg71.keycloakmigration.changeControl.actions.client.mapper
import de.klg71.keycloakmigration.AbstractIntegrationTest
import de.klg71.keycloakmigration.changeControl.actions.client.AddSimpleClientAction
import de.klg71.keycloakmigration.keycloakapi.KeycloakClient
import de.klg71.keycloakmigration.keycloakap... | 39.983871 | 112 | 0.73094 |
e14f413eba2296b17e31917b52284a9f8fc349a6 | 266 | go | Go | api/internal/service/kube/resource/base.go | z131031231/mogo | a6d67dfb092d4bec2bc87fdd226c547bcc3bf613 | [
"MIT"
] | 331 | 2021-12-29T15:56:30.000Z | 2022-03-30T02:19:51.000Z | api/internal/service/kube/resource/base.go | z131031231/mogo | a6d67dfb092d4bec2bc87fdd226c547bcc3bf613 | [
"MIT"
] | 27 | 2022-01-13T03:56:24.000Z | 2022-03-31T02:32:25.000Z | api/internal/service/kube/resource/base.go | z131031231/mogo | a6d67dfb092d4bec2bc87fdd226c547bcc3bf613 | [
"MIT"
] | 55 | 2022-01-04T02:12:20.000Z | 2022-03-30T02:19:54.000Z | package resource
import (
"net/http"
k8serrors "k8s.io/apimachinery/pkg/api/errors"
)
func NotFound(err error) bool {
if status, ok := err.(*k8serrors.StatusError); ok {
if status.ErrStatus.Code == http.StatusNotFound {
return true
}
}
return false
}
| 15.647059 | 52 | 0.695489 |
74461d8cc0ba85c8e520013f1de4b28820d86dbc | 960 | sql | SQL | db/ems_schema.sql | marora7926/employee-management-system | dc40ca581b0493220e350fd7c1c0b3bc1745e223 | [
"MIT"
] | null | null | null | db/ems_schema.sql | marora7926/employee-management-system | dc40ca581b0493220e350fd7c1c0b3bc1745e223 | [
"MIT"
] | null | null | null | db/ems_schema.sql | marora7926/employee-management-system | dc40ca581b0493220e350fd7c1c0b3bc1745e223 | [
"MIT"
] | null | null | null | -- drop databae with name ems_schema if already exist
DROP DATABASE IF EXISTS employeedb;
-- create a dtaabase from scratch
CREATE DATABASE employeedb;
-- use the existing database just created
USE employeedb;
-- create a table with a name "department", defining variable within this table and defining property of e... | 26.666667 | 127 | 0.741667 |
58981e0596488f843fb116d7b8fd030e3cbedeaf | 141 | rb | Ruby | db/migrate/20200211105406_remove_verify_response_from_claim.rb | lwlsns/claim-additional-payments-for-teaching | 325ec09f584ff4e699a5ec65701b7c2650cf6dd4 | [
"MIT"
] | 8 | 2020-08-14T12:38:41.000Z | 2022-03-29T11:12:17.000Z | db/migrate/20200211105406_remove_verify_response_from_claim.rb | lwlsns/claim-additional-payments-for-teaching | 325ec09f584ff4e699a5ec65701b7c2650cf6dd4 | [
"MIT"
] | 351 | 2019-05-23T13:57:38.000Z | 2020-03-24T18:00:29.000Z | db/migrate/20200211105406_remove_verify_response_from_claim.rb | lwlsns/claim-additional-payments-for-teaching | 325ec09f584ff4e699a5ec65701b7c2650cf6dd4 | [
"MIT"
] | 9 | 2020-03-31T11:18:55.000Z | 2021-04-10T21:45:50.000Z | class RemoveVerifyResponseFromClaim < ActiveRecord::Migration[6.0]
def change
remove_column :claims, :verify_response, :json
end
end
| 23.5 | 66 | 0.780142 |
bb3e41446ebd6f2ec1e44984c97d2cb17fa6caa7 | 1,190 | swift | Swift | Frameworks/InAppServices/Sources/Features/PushNotification/PushNotificationIpcMethodHandler.swift | antigp/Mixbox | b787fa76b0d861e05dd6a467039f63e1dc931ff0 | [
"MIT"
] | null | null | null | Frameworks/InAppServices/Sources/Features/PushNotification/PushNotificationIpcMethodHandler.swift | antigp/Mixbox | b787fa76b0d861e05dd6a467039f63e1dc931ff0 | [
"MIT"
] | null | null | null | Frameworks/InAppServices/Sources/Features/PushNotification/PushNotificationIpcMethodHandler.swift | antigp/Mixbox | b787fa76b0d861e05dd6a467039f63e1dc931ff0 | [
"MIT"
] | 2 | 2019-09-30T12:32:49.000Z | 2020-09-17T20:41:13.000Z | #if MIXBOX_ENABLE_IN_APP_SERVICES
import Foundation
import MixboxIpc
import MixboxIpcCommon
import MixboxFoundation
import UIKit
final class PushNotificationIpcMethodHandler: IpcMethodHandler {
let method = PushNotificationIpcMethod()
func handle(
arguments: PushNotificationIpcMethod.Arguments,
... | 27.674419 | 86 | 0.614286 |
20f587d4841bfc1eb4ee255e77ccd96851c5aebe | 204 | py | Python | mmfashion/utils/__init__.py | lijiancheng0614/mmfashion | f67b6ebc45252356d9f40a185c40894429f43a13 | [
"Apache-2.0"
] | 2 | 2020-05-26T03:14:24.000Z | 2021-01-31T18:23:47.000Z | mmfashion/utils/__init__.py | ceciliaAI/mmfashion | 0161ec8717f129433271a796a3d3a6b540b005a3 | [
"Apache-2.0"
] | null | null | null | mmfashion/utils/__init__.py | ceciliaAI/mmfashion | 0161ec8717f129433271a796a3d3a6b540b005a3 | [
"Apache-2.0"
] | null | null | null | from .checkpoint import init_weights_from
from .image import get_img_tensor
from .registry import Registry, build_from_cfg
__all__ = ['Registry', 'build_from_cfg', 'get_img_tensor', 'init_weights_from']
| 34 | 79 | 0.813725 |
43e621232b5246ba69c205feefb662e8dde27da2 | 750 | ts | TypeScript | src/resolvers/vehicle.ts | nnance/swapi-apollo | de450d4c42b42c61d194b152122b7ba45b0fa62c | [
"ISC"
] | 38 | 2016-07-29T15:52:46.000Z | 2020-08-08T13:12:20.000Z | src/resolvers/vehicle.ts | nnance/swapi-apollo | de450d4c42b42c61d194b152122b7ba45b0fa62c | [
"ISC"
] | 2 | 2016-08-16T22:54:33.000Z | 2016-12-05T14:57:55.000Z | src/resolvers/vehicle.ts | nnance/swapi-apollo | de450d4c42b42c61d194b152122b7ba45b0fa62c | [
"ISC"
] | 12 | 2016-07-11T23:00:09.000Z | 2020-06-25T10:18:34.000Z | import { getPageFetcher } from '../connectors/swapi'
const path = '/vehicles/'
export default (fetch) => ({
RootQuery: {
allVehicles: (_, params) => getPageFetcher(fetch)(path, params.offset, params.limit),
vehicle: (_, params) => fetch(params.id || `${path}${params.vehicleID}/`),
},
Vehicle: {
... | 37.5 | 91 | 0.673333 |
1c093621fcff5bf8a907495fabbc3130d854103f | 2,080 | sh | Shell | Linux/Ubuntu/vps_py.sh | ivitan/vimrc | 95841da10b8be3e7eb0fc6970bb2ca961b778f9a | [
"MIT"
] | 1 | 2020-02-11T10:21:06.000Z | 2020-02-11T10:21:06.000Z | Linux/Ubuntu/vps_py.sh | ivitan/UnixConfig | 95841da10b8be3e7eb0fc6970bb2ca961b778f9a | [
"MIT"
] | null | null | null | Linux/Ubuntu/vps_py.sh | ivitan/UnixConfig | 95841da10b8be3e7eb0fc6970bb2ca961b778f9a | [
"MIT"
] | 1 | 2021-01-25T03:47:19.000Z | 2021-01-25T03:47:19.000Z | #!/usr/bin/env bash
# !!!note: use "source vps_py.sh" to execute
# pyenv need
sudo apt-get install -y make build-essential libssl-dev zlib1g-dev libbz2-dev \
libreadline-dev libsqlite3-dev wget curl llvm libncurses5-dev libncursesw5-dev
# https://github.com/yyuu/pyenv
curl -L https://raw.githubusercontent.com/y... | 27.368421 | 119 | 0.652885 |
b0ee70154108e7598c880b34c6336f4ce901fbad | 486 | h | C | Examples/NeoEfx_Subclass/NeoSubclassWindow.h | HiFashionTech/NeoEffects | b48b3169f72a27b32b55f8c1dca3801343c3bf31 | [
"Apache-2.0"
] | 4 | 2015-11-19T07:35:13.000Z | 2020-05-11T14:54:05.000Z | Examples/NeoEfx_Subclass/NeoSubclassWindow.h | HiFashionTech/NeoEffects | b48b3169f72a27b32b55f8c1dca3801343c3bf31 | [
"Apache-2.0"
] | 2 | 2016-11-07T02:21:29.000Z | 2016-12-07T11:05:26.000Z | Examples/NeoEfx_Subclass/NeoSubclassWindow.h | HiFashionTech/NeoEffects | b48b3169f72a27b32b55f8c1dca3801343c3bf31 | [
"Apache-2.0"
] | null | null | null | // NeoSubclassWindow - a subclass of NeoWindow to add rainbow efx
// effect is taken from the Adafruit_NeoPixel Library's strandtest example
#include "NeoEffects.h"
#include "NeoWindow.h"
class NeoSubclassWindow : public NeoWindow
{
public:
NeoSubclassWindow(NeoStrip *strip, int startPixel, int len);
void se... | 27 | 92 | 0.761317 |
ee906b0c31fe9627a4d53fa55ef0a34e340c9cb4 | 11,473 | go | Go | sdk/go/aws/dataexchange/dataSet.go | dmelo/pulumi-aws | dd1a08d1fb93bab0d046aa410ca660f05ca0a58c | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | sdk/go/aws/dataexchange/dataSet.go | dmelo/pulumi-aws | dd1a08d1fb93bab0d046aa410ca660f05ca0a58c | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | sdk/go/aws/dataexchange/dataSet.go | dmelo/pulumi-aws | dd1a08d1fb93bab0d046aa410ca660f05ca0a58c | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | // *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
package dataexchange
import (
"context"
"reflect"
"github.com/pkg/errors"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
// Provides a resourc... | 39.02381 | 284 | 0.760481 |
08dbc523b11432dc57ad6459ae0396f496e0dc93 | 949 | sql | SQL | coral-trino/src/test/resources/product_test_cases_expected/q25_expected.sql | NobiGo/coral | a662f800b761de50a67cb7d98c2c25bb5b78014a | [
"BSD-2-Clause"
] | 387 | 2020-03-19T19:37:55.000Z | 2022-03-31T00:14:48.000Z | coral-trino/src/test/resources/product_test_cases_expected/q25_expected.sql | NobiGo/coral | a662f800b761de50a67cb7d98c2c25bb5b78014a | [
"BSD-2-Clause"
] | 127 | 2020-06-30T01:14:11.000Z | 2022-03-25T21:20:18.000Z | coral-trino/src/test/resources/product_test_cases_expected/q25_expected.sql | NobiGo/coral | a662f800b761de50a67cb7d98c2c25bb5b78014a | [
"BSD-2-Clause"
] | 104 | 2020-03-19T19:28:45.000Z | 2022-03-28T02:40:21.000Z | select `i_item_id`, `i_item_desc`, `s_store_id`, `s_store_name`, sum(`ss_net_profit`) as `store_sales_profit`, sum(`sr_net_loss`) as `store_returns_loss`, sum(`cs_net_profit`) as `catalog_sales_profit`
from `store_sales`
where `d1`.`d_moy` = 4 and `d1`.`d_year` = 2001 and `d1`.`d_date_sk` = `ss_sold_date_sk` and `i_ite... | 158.166667 | 571 | 0.735511 |
be3d3b846c0537951d42938771a007ef8e07fad3 | 142 | ts | TypeScript | kata/8 kyu/how-many-lightsabers-do-you-own/index.ts | marcobiedermann/codewars | 59ff0eac8d8787f23558266c51743a78ffb868c8 | [
"MIT"
] | 1 | 2022-01-25T13:57:47.000Z | 2022-01-25T13:57:47.000Z | kata/8 kyu/how-many-lightsabers-do-you-own/index.ts | marcobiedermann/codewars | 59ff0eac8d8787f23558266c51743a78ffb868c8 | [
"MIT"
] | 222 | 2020-02-03T05:02:05.000Z | 2022-03-21T09:47:36.000Z | kata/8 kyu/how-many-lightsabers-do-you-own/index.ts | marcobiedermann/codewars | 59ff0eac8d8787f23558266c51743a78ffb868c8 | [
"MIT"
] | 1 | 2020-02-21T14:30:06.000Z | 2020-02-21T14:30:06.000Z | function howManyLightsabersDoYouOwn(name?: string): 18 | 0 {
return name === 'Zach' ? 18 : 0;
}
export default howManyLightsabersDoYouOwn;
| 23.666667 | 60 | 0.725352 |
9756f46db2129b937daffd6ec1105e8a7308b53e | 47 | ts | TypeScript | angular-app/src/app/model/domain.model.ts | pi-id/etl-framework | 931530c4cdde6d8f3fa47ed058202dac819caef9 | [
"MIT"
] | null | null | null | angular-app/src/app/model/domain.model.ts | pi-id/etl-framework | 931530c4cdde6d8f3fa47ed058202dac819caef9 | [
"MIT"
] | 1 | 2020-08-26T13:07:14.000Z | 2020-08-27T14:25:30.000Z | angular-app/src/app/model/domain.model.ts | pi-id/etl-framework | 931530c4cdde6d8f3fa47ed058202dac819caef9 | [
"MIT"
] | null | null | null | export class Domain{
domain_value_value;
} | 15.666667 | 24 | 0.744681 |
37a2e63e039db6948eb9c6110c63c7ee9adcffcd | 82 | sql | SQL | migrations/2019-10-05-003235_add_prefs_leaderboard/up.sql | umpyre-code/rolodex | 3ed2072d82a47e6b3c19d39a255baee8e49399e1 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | migrations/2019-10-05-003235_add_prefs_leaderboard/up.sql | umpyre-code/rolodex | 3ed2072d82a47e6b3c19d39a255baee8e49399e1 | [
"ECL-2.0",
"Apache-2.0"
] | 173 | 2019-10-10T04:17:19.000Z | 2021-07-31T04:12:01.000Z | migrations/2019-10-05-003235_add_prefs_leaderboard/up.sql | umpyre-code/rolodex | 3ed2072d82a47e6b3c19d39a255baee8e49399e1 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | ALTER TABLE prefs ADD COLUMN include_in_leaderboard BOOLEAN NOT NULL DEFAULT TRUE
| 41 | 81 | 0.865854 |
da23d791de0b4ab79668fe2ff08b819dcb9f497a | 37,255 | php | PHP | src/SwedbankPay/Core/Adapter/WC_Adapter.php | Frojd/swedbank-pay-woocommerce-core | 854bd39f97a6ab6d3f011321fd5378ea17699c46 | [
"Apache-2.0"
] | null | null | null | src/SwedbankPay/Core/Adapter/WC_Adapter.php | Frojd/swedbank-pay-woocommerce-core | 854bd39f97a6ab6d3f011321fd5378ea17699c46 | [
"Apache-2.0"
] | null | null | null | src/SwedbankPay/Core/Adapter/WC_Adapter.php | Frojd/swedbank-pay-woocommerce-core | 854bd39f97a6ab6d3f011321fd5378ea17699c46 | [
"Apache-2.0"
] | null | null | null | <?php
namespace SwedbankPay\Core\Adapter;
use SwedbankPay\Core\Exception;
use SwedbankPay\Core\Log\LogLevel;
use SwedbankPay\Core\PaymentAdapter;
use SwedbankPay\Core\PaymentAdapterInterface;
use SwedbankPay\Core\ConfigurationInterface;
use SwedbankPay\Core\Order\PlatformUrlsInterface;
use SwedbankPay\Core\OrderInter... | 38.054137 | 121 | 0.558261 |
43a45273985179cfebdb8b51806a2f95e1a8bc0a | 287 | dart | Dart | plant_monitor_app/flutter_mongodb_realm/lib/auth/credentials/user_password_credentinal.dart | sbis04/plant-monitor | 575afa166996b379bf13d72ad5e3293af7df5672 | [
"Apache-2.0"
] | 12 | 2022-01-13T04:11:00.000Z | 2022-02-10T18:24:29.000Z | plant_monitor_app/flutter_mongodb_realm/lib/auth/credentials/user_password_credentinal.dart | sbis04/plant-monitor | 575afa166996b379bf13d72ad5e3293af7df5672 | [
"Apache-2.0"
] | null | null | null | plant_monitor_app/flutter_mongodb_realm/lib/auth/credentials/user_password_credentinal.dart | sbis04/plant-monitor | 575afa166996b379bf13d72ad5e3293af7df5672 | [
"Apache-2.0"
] | 1 | 2022-02-01T12:50:41.000Z | 2022-02-01T12:50:41.000Z | import 'package:flutter/foundation.dart';
import 'stitch_credential.dart';
@deprecated
class UserPasswordCredential extends StitchCredential {
final String username;
final String password;
UserPasswordCredential({
required this.username,
required this.password,
});
}
| 19.133333 | 55 | 0.770035 |
79a1a1675c1f71de41a1969cc52ea9c1e37acdb8 | 1,725 | php | PHP | resources/views/Payment/edit.blade.php | QuanNguyen-851/Project2_Ministry | 8c669fccf0e039bf7e864a7efd314279e586d753 | [
"MIT"
] | null | null | null | resources/views/Payment/edit.blade.php | QuanNguyen-851/Project2_Ministry | 8c669fccf0e039bf7e864a7efd314279e586d753 | [
"MIT"
] | null | null | null | resources/views/Payment/edit.blade.php | QuanNguyen-851/Project2_Ministry | 8c669fccf0e039bf7e864a7efd314279e586d753 | [
"MIT"
] | 1 | 2021-06-23T14:24:50.000Z | 2021-06-23T14:24:50.000Z | @extends('layouts.layout')
@section('main')
<div class="card">
<form action="{{ route('payment.update', $payment->id) }}" method="post" id="updatevalidateform">
@csrf
@method("PUT")
<div class="header text-center">Updated phương thức đóng</div>
<div class="content">
<div class="for... | 26.538462 | 102 | 0.443478 |
dcb258cbe09d6ba9bd4de07238d5075278c2c224 | 169 | lua | Lua | nvim/lua/core/init.lua | UniqueDing/.conf | 0afe3486c361dfc37e61b2472e0217d06693ed78 | [
"MIT"
] | 1 | 2020-12-24T14:12:37.000Z | 2020-12-24T14:12:37.000Z | nvim/lua/core/init.lua | UniqueDing/dotfiles | 6d72c849fd9a45bee86dd9852f909ac34940e111 | [
"MIT"
] | null | null | null | nvim/lua/core/init.lua | UniqueDing/dotfiles | 6d72c849fd9a45bee86dd9852f909ac34940e111 | [
"MIT"
] | null | null | null | require("settings")
--require("plugins")
function load_core()
local pack = require("core.pack")
pack.ensure_plugins()
pack.load_compile()
end
load_core()
| 14.083333 | 37 | 0.686391 |
72b23b48234cb1d24dc6532f5d3663244404b448 | 734 | cake | C# | Content/scripts/data/download/cake/repositories.Material.cake | moljac/HolisticWare.DotNetNew.XamarinProjectsStructureTemplate | 45f40654b288b26c6bc3e1df3b4071828c1a6644 | [
"MIT"
] | 1 | 2021-11-09T06:43:03.000Z | 2021-11-09T06:43:03.000Z | scripts/data/download/cake/repositories.Material.cake | Samples-Playgrounds/Samples.MAUI | a11b39e4e61ed3881c3705e0e6cd6dcb04bbfd0d | [
"MIT"
] | 31 | 2020-07-23T21:39:14.000Z | 2020-07-23T21:40:44.000Z | scripts/data/download/cake/repositories.Material.cake | Samples-Playgrounds/Samples.MAUI | a11b39e4e61ed3881c3705e0e6cd6dcb04bbfd0d | [
"MIT"
] | 1 | 2020-06-25T12:16:12.000Z | 2020-06-25T12:16:12.000Z | Dictionary<string, Dictionary<string, string> > Repositories_Material = null;
Repositories_Material = new Dictionary<string, Dictionary<string, string> >()
{
{
"Material-diverse",
new Dictionary<string, string>()
{
{
"HackerNewsReader"... | 30.583333 | 78 | 0.446866 |
976e3d0b9e3e510a82200b67243f64d6b6683aec | 5,109 | tsx | TypeScript | frontend/app/review-request/component.tsx | brnrdog/please-review | b23babcca62012eff22fa7ff878d26d529a3ddd1 | [
"MIT"
] | null | null | null | frontend/app/review-request/component.tsx | brnrdog/please-review | b23babcca62012eff22fa7ff878d26d529a3ddd1 | [
"MIT"
] | null | null | null | frontend/app/review-request/component.tsx | brnrdog/please-review | b23babcca62012eff22fa7ff878d26d529a3ddd1 | [
"MIT"
] | null | null | null | import * as React from 'react';
import {
RepoIcon,
GitCommitIcon,
DiffAddedIcon,
DiffRemovedIcon,
EyeIcon
} from 'react-octicons'
import * as numeral from 'numeral';
import Avatar from '../avatar/component';
import ConfirmButton from '../confirm-button/component';
const styles = require('./styles.module.css... | 30.963636 | 96 | 0.471521 |
2336c9210e2bfdf284245b5dad1891626ddd9153 | 184 | css | CSS | Hookr/Web/frontend/src/components/Login/Login.css | mrlldd/hookr-rent-service | a9ca9a00b35ce87d82de65bf9b664748bae0c376 | [
"Apache-2.0"
] | null | null | null | Hookr/Web/frontend/src/components/Login/Login.css | mrlldd/hookr-rent-service | a9ca9a00b35ce87d82de65bf9b664748bae0c376 | [
"Apache-2.0"
] | null | null | null | Hookr/Web/frontend/src/components/Login/Login.css | mrlldd/hookr-rent-service | a9ca9a00b35ce87d82de65bf9b664748bae0c376 | [
"Apache-2.0"
] | null | null | null | .Login {
display: flex;
flex-direction: column;
justify-content: space-between;
align-items: center;
vertical-align: middle;
}
.Login > h1,
.Login > div {
margin: 8% 0;
}
| 14.153846 | 33 | 0.646739 |
1aae445fcbf83af4076cc2673e761c619c1bcaad | 31,311 | py | Python | hubit/tree.py | mrsonne/hub | 1705de728dd65c79ff4d87fb12d903c1503be31c | [
"BSD-3-Clause"
] | 4 | 2021-02-19T08:03:31.000Z | 2021-03-05T19:01:59.000Z | hubit/tree.py | mrsonne/hub | 1705de728dd65c79ff4d87fb12d903c1503be31c | [
"BSD-3-Clause"
] | 30 | 2021-02-08T19:22:57.000Z | 2022-03-24T21:37:52.000Z | hubit/tree.py | mrsonne/hubit | 1705de728dd65c79ff4d87fb12d903c1503be31c | [
"BSD-3-Clause"
] | null | null | null | from __future__ import annotations
import logging
import copy
import itertools
from typing import (
Any,
List,
Dict,
Mapping,
Sequence,
Tuple,
Union,
Optional,
TYPE_CHECKING,
)
from .errors import HubitIndexError, HubitError, HubitModelQueryError
from .config import _HubitPath, Hubit... | 36.239583 | 161 | 0.585385 |
384710fd1615d43cc68c2f0c02a8971176f6e484 | 2,829 | cs | C# | src/Externals/google-api-dotnet-client/Src/GoogleApis.Tests/Apis/Discovery/MediaUploadTest.cs | Dmiri/Xamarin.google-apis | a74bee7ea38af9d24925124ec452488a2e4579ad | [
"Apache-2.0"
] | 40 | 2015-02-03T22:00:17.000Z | 2021-06-09T09:36:45.000Z | src/Externals/google-api-dotnet-client/Src/GoogleApis.Tests/Apis/Discovery/MediaUploadTest.cs | Dmiri/Xamarin.google-apis | a74bee7ea38af9d24925124ec452488a2e4579ad | [
"Apache-2.0"
] | 3 | 2015-07-29T21:16:37.000Z | 2021-08-04T14:55:39.000Z | src/Externals/google-api-dotnet-client/Src/GoogleApis.Tests/Apis/Discovery/MediaUploadTest.cs | Dmiri/Xamarin.google-apis | a74bee7ea38af9d24925124ec452488a2e4579ad | [
"Apache-2.0"
] | 31 | 2015-03-29T19:24:27.000Z | 2021-07-29T19:51:47.000Z | /*
Copyright 2011 Google 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 writing, software
dis... | 32.147727 | 98 | 0.61824 |
e1abc85846202871bf2e9271e0a2b0848a14b1f4 | 1,072 | dart | Dart | example/lib/main.dart | astudilloalex/flutter-open-weather-map-client | 265460186b02c2e97aca6afed31538b88077a3e9 | [
"BSD-2-Clause-FreeBSD"
] | 1 | 2021-08-10T02:54:50.000Z | 2021-08-10T02:54:50.000Z | example/lib/main.dart | astudilloalex/flutter-open-weather-map-client | 265460186b02c2e97aca6afed31538b88077a3e9 | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | example/lib/main.dart | astudilloalex/flutter-open-weather-map-client | 265460186b02c2e97aca6afed31538b88077a3e9 | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | import 'package:example/src/current_weather/current_weather_view.dart';
import 'package:example/src/home/home_view.dart';
import 'package:example/src/not_found/not_found_view.dart';
import 'package:flutter/material.dart';
void main() {
runApp(const MyApp());
}
class MyApp extends StatelessWidget {
const MyApp({Ke... | 28.210526 | 71 | 0.622201 |
bb45b1c988d2af19818529c513ab86312cbd3945 | 46,215 | cs | C# | QR Code Generator/User Controls/ReadQRCodePanel.Designer.cs | GAGreatProgrammer/QR-Code-Generator | 5cfcf6de5cb0c35c7b5729f38df9ace0ba35e6c0 | [
"MIT"
] | null | null | null | QR Code Generator/User Controls/ReadQRCodePanel.Designer.cs | GAGreatProgrammer/QR-Code-Generator | 5cfcf6de5cb0c35c7b5729f38df9ace0ba35e6c0 | [
"MIT"
] | null | null | null | QR Code Generator/User Controls/ReadQRCodePanel.Designer.cs | GAGreatProgrammer/QR-Code-Generator | 5cfcf6de5cb0c35c7b5729f38df9ace0ba35e6c0 | [
"MIT"
] | null | null | null |
namespace QR_Code_Generator.User_Controls
{
partial class ReadQRCodePanel
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/... | 73.125 | 170 | 0.657557 |
755e4477c7ea9bb768d388b0848a7ce1d2fbb0cc | 3,206 | css | CSS | css/style.css | MarishaHoza/chocolate-pizza | d37b7dbfd2742edd3c4ab8e0856c32c6d3e7f185 | [
"MIT"
] | null | null | null | css/style.css | MarishaHoza/chocolate-pizza | d37b7dbfd2742edd3c4ab8e0856c32c6d3e7f185 | [
"MIT"
] | null | null | null | css/style.css | MarishaHoza/chocolate-pizza | d37b7dbfd2742edd3c4ab8e0856c32c6d3e7f185 | [
"MIT"
] | 1 | 2019-06-14T20:43:09.000Z | 2019-06-14T20:43:09.000Z | @import url('https://fonts.googleapis.com/css?family=Open+Sans+Condensed:300|Yellowtail&display=swap');
@import url('https://fonts.googleapis.com/css?family=Oswald:700&display=swap');
@import url('https://fonts.googleapis.com/css?family=Amiri&display=swap');
@import url('https://fonts.googleapis.com/css?family=Patrick+... | 16.441026 | 103 | 0.648472 |
e7170dea52d5e8ad9042a0dbd9bc8b86b9527afe | 4,234 | php | PHP | resources/views/seller/form/form-addcustomers.blade.php | RichardFuentes369/Inventario | 512e57f3880a0f24734af7688070600de31f6ca2 | [
"MIT"
] | null | null | null | resources/views/seller/form/form-addcustomers.blade.php | RichardFuentes369/Inventario | 512e57f3880a0f24734af7688070600de31f6ca2 | [
"MIT"
] | null | null | null | resources/views/seller/form/form-addcustomers.blade.php | RichardFuentes369/Inventario | 512e57f3880a0f24734af7688070600de31f6ca2 | [
"MIT"
] | null | null | null | <form action="{{ url('vendedor') }}/{{ 'clientesC' }}" method="post">
{{ csrf_field() }}
<center>
<div class="col-sm-12"><br>
<div class="row">
<div class="col-sm-12">
<div class="texarea-group mb-3">
<div class="input-group-prepend">
<span class="input-group-text" id="basic-addon1">Nomb... | 38.144144 | 82 | 0.591639 |
413781a62a6c0d9a56cd0f4e9ee7d47cdf54aea9 | 708 | rs | Rust | examples/bulk.rs | mrxiaozhuox/dorea | 46c79b9f8ba6040f6f934e6bea0bf7f01085cbe7 | [
"MIT"
] | 83 | 2021-07-21T14:06:30.000Z | 2022-03-30T03:37:25.000Z | examples/bulk.rs | mrxiaozhuox/Dorea | 561bcd4990bca7a3787b25bbbf2af72def9c5569 | [
"MIT"
] | 5 | 2021-08-11T04:04:29.000Z | 2022-01-18T13:26:45.000Z | examples/bulk.rs | mrxiaozhuox/Dorea | 561bcd4990bca7a3787b25bbbf2af72def9c5569 | [
"MIT"
] | 10 | 2021-06-29T00:33:17.000Z | 2022-03-30T03:37:26.000Z | /// 在你运行这个 Demo 之前,请确保 Dorea 服务已经正常启动!
/// dorea.examples.bulk
/// 对于数据进行批量上传:
/// 本 Demo 将对 数据库循环插入 1024 次。
use dorea::{client::DoreaClient, value::DataValue};
#[tokio::main]
async fn main() -> anyhow::Result<()> {
let mut db = DoreaClient::connect(("127.0.0.1", 3450), "").await?;
// db.select("bulk").await;... | 22.83871 | 70 | 0.45904 |
45d83074a6a311e52e10397d84bfed014e9507fd | 272 | py | Python | src/io/__init__.py | jonathan-scholbach/jargon | 1bc49efb4002b4f348b1449ca5bad32bc416dab7 | [
"MIT"
] | null | null | null | src/io/__init__.py | jonathan-scholbach/jargon | 1bc49efb4002b4f348b1449ca5bad32bc416dab7 | [
"MIT"
] | null | null | null | src/io/__init__.py | jonathan-scholbach/jargon | 1bc49efb4002b4f348b1449ca5bad32bc416dab7 | [
"MIT"
] | null | null | null | """Module for all i/o functionality."""
from .string_manipulation import title_from_path, pluralize, mask
from .clear import clear
from .colorprint import cprint
from .argument_parser import argument_parser
from .print_table import Table
from .date_diff import date_diff
| 30.222222 | 65 | 0.823529 |
8de1a1dda6edbb4e539d1af31fbeb8c98f9ef299 | 223 | js | JavaScript | SpiceApplication.App/wwwroot/js/vue/components/menuFooter.js | AnnabellFlem/SpiceApplication | 49399e5355408f57b8563cc4b9d719dec9c545b1 | [
"Apache-2.0"
] | 1 | 2019-04-18T16:56:27.000Z | 2019-04-18T16:56:27.000Z | SpiceApplication.App/wwwroot/js/vue/components/menuFooter.js | AnnabellFlem/SpiceApplication | 49399e5355408f57b8563cc4b9d719dec9c545b1 | [
"Apache-2.0"
] | null | null | null | SpiceApplication.App/wwwroot/js/vue/components/menuFooter.js | AnnabellFlem/SpiceApplication | 49399e5355408f57b8563cc4b9d719dec9c545b1 | [
"Apache-2.0"
] | 1 | 2019-04-18T16:56:28.000Z | 2019-04-18T16:56:28.000Z | const menuFooter = Vue.component('menu-footer', {
template: `
<div class="footer">
<p>© 2019 Spice&Herbs, <br /> All Rights Reserved.</p>
</div>
`
});
export default menuFooter; | 24.777778 | 75 | 0.569507 |
6649734c512f1111bf33424b92c096d9c2ae4a3d | 8,876 | py | Python | buildscripts/tests/resmokelib/run/test_list_tags.py | benety/mongo | 203430ac9559f82ca01e3cbb3b0e09149fec0835 | [
"Apache-2.0"
] | null | null | null | buildscripts/tests/resmokelib/run/test_list_tags.py | benety/mongo | 203430ac9559f82ca01e3cbb3b0e09149fec0835 | [
"Apache-2.0"
] | null | null | null | buildscripts/tests/resmokelib/run/test_list_tags.py | benety/mongo | 203430ac9559f82ca01e3cbb3b0e09149fec0835 | [
"Apache-2.0"
] | null | null | null | """Unit tests for buildscripts/resmokelib/run/list_tags.py."""
# pylint: disable=missing-docstring
import unittest
from buildscripts.resmokelib.run import list_tags
def _get_suite(tags_blocks):
block = ""
for tags_block in tags_blocks:
block = f"{block} {tags_block}" + "\n"
return (("test_kind: ... | 37.451477 | 76 | 0.475665 |
2cac1fc48761863e734b537bbf128eb8f99c3313 | 2,071 | py | Python | puml-graphs/test/Test_Puml_dudes_experiments.py | StevenJV/Book_Generation_Z_Developer | 7e2ff829faff41b1ce2f1f2f9cb88d712ebbc9ee | [
"Apache-2.0"
] | 36 | 2018-02-20T18:52:40.000Z | 2022-01-05T08:36:42.000Z | puml-graphs/test/Test_Puml_dudes_experiments.py | StevenJV/Book_Generation_Z_Developer | 7e2ff829faff41b1ce2f1f2f9cb88d712ebbc9ee | [
"Apache-2.0"
] | 57 | 2018-02-22T00:57:13.000Z | 2020-04-03T16:30:33.000Z | puml-graphs/test/Test_Puml_dudes_experiments.py | StevenJV/Book_Generation_Z_Developer | 7e2ff829faff41b1ce2f1f2f9cb88d712ebbc9ee | [
"Apache-2.0"
] | 25 | 2018-02-19T22:42:13.000Z | 2021-08-02T15:47:41.000Z | from unittest import TestCase
from plantuml.API_Plant_UML import API_Plant_UML
from utils.Dev import Dev
from utils.Files import Files
from utils.Show_Img import Show_Img
from utils.aws.Lambdas import Lambdas
class Test_Puml_dudes_experiments(TestCase):
def setUp(self):
self.plantuml = API_Plant_UML()... | 37.654545 | 119 | 0.700145 |
c9ea159087966e57826e9359923305af0c1bf69d | 565 | ts | TypeScript | src/products/applications/delete.product.application.ts | eryzerz/nestjs-ddd | 16bd1dfc7c1c368dec1b99788c07aeffe365f0f7 | [
"MIT"
] | 3 | 2022-01-14T20:01:10.000Z | 2022-03-23T22:03:59.000Z | src/products/applications/delete.product.application.ts | eryzerz/nestjs-ddd | 16bd1dfc7c1c368dec1b99788c07aeffe365f0f7 | [
"MIT"
] | null | null | null | src/products/applications/delete.product.application.ts | eryzerz/nestjs-ddd | 16bd1dfc7c1c368dec1b99788c07aeffe365f0f7 | [
"MIT"
] | 1 | 2022-02-23T15:12:53.000Z | 2022-02-23T15:12:53.000Z | import { Inject, Injectable } from "@nestjs/common";
import { IDeleteProductApplication } from "../interfaces/applications/delete.product.application.interface";
import { PRODUCT_TYPES } from "../interfaces/types";
@Injectable()
export class DeleteProductApplication implements IDeleteProductApplication {
construc... | 37.666667 | 111 | 0.757522 |
459603db6ddc057350cd74440771c94e61afe547 | 368 | py | Python | Estudos/Desafio021.py | boaventura16/Boaventura16 | c8eca113d38d539c0eecdce358799f65787dcb72 | [
"MIT"
] | 2 | 2020-11-04T18:07:40.000Z | 2020-11-21T03:50:33.000Z | Estudos/Desafio021.py | boaventura16/Boaventura16 | c8eca113d38d539c0eecdce358799f65787dcb72 | [
"MIT"
] | null | null | null | Estudos/Desafio021.py | boaventura16/Boaventura16 | c8eca113d38d539c0eecdce358799f65787dcb72 | [
"MIT"
] | null | null | null | ex = input('Digite uma expressão matematica:\n')
lista = []
for simb in ex:
if simb == '(':
lista.append('(')
elif simb == ')':
if len(lista) > 0:
lista.pop()
else:
lista.append(')')
break
if len(lista) == 0:
print('Sua expressão está correta.')
el... | 23 | 48 | 0.505435 |
961bc98c55f095b84d18aac43bb4a62028fdf3f9 | 408 | sql | SQL | resources/sql/query-hours-by-day.sql | lshift/timetracker | d3dc770268da1219dbab4223649a53a2740ea9f9 | [
"MIT"
] | null | null | null | resources/sql/query-hours-by-day.sql | lshift/timetracker | d3dc770268da1219dbab4223649a53a2740ea9f9 | [
"MIT"
] | 1 | 2017-07-17T14:00:28.000Z | 2017-07-17T14:02:19.000Z | resources/sql/query-hours-by-day.sql | lshift/timetracker | d3dc770268da1219dbab4223649a53a2740ea9f9 | [
"MIT"
] | null | null | null | SELECT start_time :: date :: text as day, u.name AS user_name,
SUM(date_part('epoch', tt.end_time - tt.start_time) :: float / 3600) AS hours
FROM task_time tt
INNER JOIN users u ON u.id = tt.user_id
WHERE u.name = :user_name
AND tt.start_time >= :start_date :: date
AND tt.start_time < :e... | 40.8 | 85 | 0.664216 |
d040ad32d8e9a8dd8265530692d9ab8983b35d8c | 3,410 | cpp | C++ | library/Java/Lang/ArithmeticException/ArithmeticExceptionTest.cpp | VietAnh14/native | 8f9f23c2ff21ac14c69745556e04aaec36dbcd13 | [
"Zlib"
] | 1 | 2018-12-12T13:04:09.000Z | 2018-12-12T13:04:09.000Z | library/Java/Lang/ArithmeticException/ArithmeticExceptionTest.cpp | vothaosontlu/native | 2b8d062ce6db66dfdaa8b17087ba32455c9531e8 | [
"Zlib"
] | null | null | null | library/Java/Lang/ArithmeticException/ArithmeticExceptionTest.cpp | vothaosontlu/native | 2b8d062ce6db66dfdaa8b17087ba32455c9531e8 | [
"Zlib"
] | null | null | null | /**
* Copyright (c) 2016 Food Tiny Project. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* Redistributions of source code must retain the above copyright
* notice, this list of condition... | 50.147059 | 88 | 0.758651 |
143ff77c66a5452c14a6d6b32763955c26c16b39 | 47 | ts | TypeScript | src/app/components/node/browse/display/index.ts | userlea/BatchExplorer | e826b88487c8dab82e12038f37bee7322d898b15 | [
"MIT"
] | 111 | 2018-07-17T14:42:58.000Z | 2022-03-14T22:15:07.000Z | src/app/components/node/browse/display/index.ts | userlea/BatchExplorer | e826b88487c8dab82e12038f37bee7322d898b15 | [
"MIT"
] | 951 | 2018-07-16T23:45:05.000Z | 2022-03-29T22:01:05.000Z | src/app/components/node/browse/display/index.ts | userlea/BatchExplorer | e826b88487c8dab82e12038f37bee7322d898b15 | [
"MIT"
] | 51 | 2018-08-03T17:27:19.000Z | 2022-03-01T16:48:57.000Z | export * from "./node-list-display.component";
| 23.5 | 46 | 0.723404 |
b5fcec75141100437fac6db05418da529884b163 | 1,356 | rb | Ruby | lib/rubyrati/base.rb | apostlion/rubyra | 5b5ac2368423d907b5e003e4540beeddc1e68051 | [
"Unlicense",
"MIT"
] | 1 | 2016-05-08T14:27:15.000Z | 2016-05-08T14:27:15.000Z | lib/rubyrati/base.rb | apostlion/rubyra | 5b5ac2368423d907b5e003e4540beeddc1e68051 | [
"Unlicense",
"MIT"
] | null | null | null | lib/rubyrati/base.rb | apostlion/rubyra | 5b5ac2368423d907b5e003e4540beeddc1e68051 | [
"Unlicense",
"MIT"
] | 1 | 2021-02-10T08:08:04.000Z | 2021-02-10T08:08:04.000Z | require 'rubyrati'
require 'rubygems'
require 'net/http'
require 'cgi'
require 'hpricot'
module Hpricot
class Elem
def get_html(xpath)
search(xpath).inner_html
end
end
end
class String
def tr_time_to_datetime
DateTime.strptime(self, "%F %H:%M:%S %Z")
end
end
##
# This module holds every cl... | 21.870968 | 83 | 0.643805 |