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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
447f0e0f8838794d2898b615dca748811756dbfd | 1,073 | py | Python | boo/year.py | AirVetra/boo | bb8404c48a6f17402a98a88454fdd876184c35c1 | [
"MIT"
] | 1 | 2019-12-06T21:13:22.000Z | 2019-12-06T21:13:22.000Z | boo/year.py | AirVetra/boo | bb8404c48a6f17402a98a88454fdd876184c35c1 | [
"MIT"
] | null | null | null | boo/year.py | AirVetra/boo | bb8404c48a6f17402a98a88454fdd876184c35c1 | [
"MIT"
] | null | null | null | from boo.errors import WrongYearError
# Must manually hardcode new timestamps when new version arrives
TIMESTAMPS = {2012: 20190329,
2013: 20190411,
2014: 20190411,
2015: 20190411,
2016: 20190411,
2017: 20190423,
2018: 20191029, # fro... | 32.515152 | 110 | 0.603914 |
54fb2bb8eb3e6bd6dd63d58000a73f4c770be89a | 430 | h | C | void/type_traits/next_type.h | Loggi-pro/void-lib | b933d7edc0d07cc6a7ab9c198e385d4d627b805b | [
"MIT"
] | null | null | null | void/type_traits/next_type.h | Loggi-pro/void-lib | b933d7edc0d07cc6a7ab9c198e385d4d627b805b | [
"MIT"
] | null | null | null | void/type_traits/next_type.h | Loggi-pro/void-lib | b933d7edc0d07cc6a7ab9c198e385d4d627b805b | [
"MIT"
] | null | null | null | #pragma once
namespace vd {
template <typename T>
struct next_type;
template <>
struct next_type<uint8_t> {
using type = uint16_t;
};
template <>
struct next_type<uint16_t> {
using type = uint32_t;
};
template <>
struct next_type<int8_t> {
using type = int16_t;
};
template <>
struct next_type<int16_... | 15.925926 | 49 | 0.683721 |
da403759c19b2980a67a50433181c9be59aba7ea | 3,265 | php | PHP | Classes/Domain/Model/Styler.php | daviian/sd_googlemaps | afb14e4ff31fec527746b9e6987876efdf4138ba | [
"MIT"
] | null | null | null | Classes/Domain/Model/Styler.php | daviian/sd_googlemaps | afb14e4ff31fec527746b9e6987876efdf4138ba | [
"MIT"
] | null | null | null | Classes/Domain/Model/Styler.php | daviian/sd_googlemaps | afb14e4ff31fec527746b9e6987876efdf4138ba | [
"MIT"
] | null | null | null | <?php
namespace SD\SdGooglemaps\Domain\Model;
/***
*
* This file is part of the "Google Maps" Extension for TYPO3 CMS.
*
* For the full copyright and license information, please read the
* LICENSE.txt file that was distributed with this source code.
*
* (c) 2017 David Schneiderbauer <david.schneiderbauer@dschn... | 14.511111 | 96 | 0.611332 |
662c973ec988c6a590d15c0b7d48c8970fa62a91 | 535 | py | Python | blockchainetl/streaming/postgres_utils.py | zalam003/ethereum-etl | 2a9e468c1ec2b62c3647706d64fb9b93366ac2d1 | [
"MIT"
] | 1,482 | 2018-09-13T10:40:55.000Z | 2022-03-31T12:22:29.000Z | blockchainetl/streaming/postgres_utils.py | zalam003/ethereum-etl | 2a9e468c1ec2b62c3647706d64fb9b93366ac2d1 | [
"MIT"
] | 186 | 2018-09-13T12:39:04.000Z | 2022-03-30T15:32:42.000Z | blockchainetl/streaming/postgres_utils.py | adidonato/ethereum-etl | 12c5092c76b7fc319ff373e1302be8b0e39960d7 | [
"MIT"
] | 391 | 2018-09-16T18:54:44.000Z | 2022-03-27T10:47:48.000Z | from sqlalchemy.dialects.postgresql import insert
def create_insert_statement_for_table(table):
insert_stmt = insert(table)
primary_key_fields = [column.name for column in table.columns if column.primary_key]
if primary_key_fields:
insert_stmt = insert_stmt.on_conflict_do_update(
inde... | 31.470588 | 116 | 0.704673 |
14ffcaf0092d0535ec0c0b6ed7e425be30be7be6 | 1,607 | tsx | TypeScript | src/components/BookFormBuildInValidation.tsx | ca057/react-ts-workshop-2021-06 | 930b28084b7bac68dd4cbea3b8c63f93a4a84be8 | [
"MIT"
] | null | null | null | src/components/BookFormBuildInValidation.tsx | ca057/react-ts-workshop-2021-06 | 930b28084b7bac68dd4cbea3b8c63f93a4a84be8 | [
"MIT"
] | null | null | null | src/components/BookFormBuildInValidation.tsx | ca057/react-ts-workshop-2021-06 | 930b28084b7bac68dd4cbea3b8c63f93a4a84be8 | [
"MIT"
] | null | null | null | import React from "react";
import "./BookFormBuildInValidation.css";
const initialState = {
title: "",
isbn: "",
};
interface BookFormBuildInValidationProps {
book?: {
title: string;
isbn: string;
};
title?: string;
handleSubmit: (values: typeof initialState) => void;
}
const BookFormBuildInVali... | 23.985075 | 120 | 0.588675 |
b733a6772639e3b43c9086ed2f36b6c4cf430371 | 5,346 | cs | C# | Src/Shared/NetworkModelTests/Formatters/YamlFormatterTest.cs | 210342/TPUM | 3a0bbff983611179693ed7163516218a7443706c | [
"MIT"
] | null | null | null | Src/Shared/NetworkModelTests/Formatters/YamlFormatterTest.cs | 210342/TPUM | 3a0bbff983611179693ed7163516218a7443706c | [
"MIT"
] | 15 | 2021-03-08T16:19:02.000Z | 2021-05-26T08:26:37.000Z | Src/Shared/NetworkModelTests/Formatters/YamlFormatterTest.cs | 210342/TPUM | 3a0bbff983611179693ed7163516218a7443706c | [
"MIT"
] | null | null | null | using System;
using System.Collections.Generic;
using TPUM.Shared.NetworkModel.Formatters;
using Xunit;
using YamlDotNet.Core;
namespace TPUM.Shared.NetworkModelTests.Formatters
{
public class YamlFormatterTest
{
public static IEnumerable<object[]> GetTestKnownTypes()
{
yield retur... | 33.204969 | 148 | 0.575571 |
2c8c656afda05ec06559a7b74391a7a519ad3e4b | 459 | py | Python | src/perturbator/commands/generate_new_element.py | Zohaib94/perturbator | 94d364f87d842495c5888b372514d9d7e802860d | [
"MIT"
] | null | null | null | src/perturbator/commands/generate_new_element.py | Zohaib94/perturbator | 94d364f87d842495c5888b372514d9d7e802860d | [
"MIT"
] | null | null | null | src/perturbator/commands/generate_new_element.py | Zohaib94/perturbator | 94d364f87d842495c5888b372514d9d7e802860d | [
"MIT"
] | null | null | null | import click
from ..support_modules.perturbator import generate_element
@click.command()
@click.option('--element-tag', help='Tag of element, e.g. exclusiveGateway, task', required=True)
@click.option('--element-id', help='Id of the element you want to generate', required=True)
def generate_new_element(element_tag, el... | 41.727273 | 97 | 0.75817 |
9af8d67de593c12b3229130bb5eb6e3832ec4a54 | 29,307 | py | Python | pyannote/audio/core/model.py | hadware/pyannote-audio | dff09d364a019dff78cafb5d52c8490ab3d937df | [
"MIT"
] | 1 | 2022-02-23T08:46:10.000Z | 2022-02-23T08:46:10.000Z | pyannote/audio/core/model.py | hadware/pyannote-audio | dff09d364a019dff78cafb5d52c8490ab3d937df | [
"MIT"
] | null | null | null | pyannote/audio/core/model.py | hadware/pyannote-audio | dff09d364a019dff78cafb5d52c8490ab3d937df | [
"MIT"
] | null | null | null | # MIT License
#
# Copyright (c) 2020-2021 CNRS
#
# 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, pu... | 34.31733 | 105 | 0.600403 |
740d7137f3e123335901ae3f2ad7721c4f285da6 | 15,790 | css | CSS | css/style.css | smartlogistic/Game1 | 7eb4978d8e013ad7c4bf4058b699c5331b367447 | [
"CC-BY-3.0"
] | null | null | null | css/style.css | smartlogistic/Game1 | 7eb4978d8e013ad7c4bf4058b699c5331b367447 | [
"CC-BY-3.0"
] | null | null | null | css/style.css | smartlogistic/Game1 | 7eb4978d8e013ad7c4bf4058b699c5331b367447 | [
"CC-BY-3.0"
] | null | null | null | /*
Author: W3layout
Author URL: http://w3layouts.com
License: Creative Commons Attribution 3.0 Unported
License URL: http://creativecommons.org/licenses/by/3.0/
*//* reset */
html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,img,ins,kbd,q,s,samp,s... | 13.961096 | 493 | 0.671881 |
e39b845c7a3f9a555098d992a09cfd69e34ca591 | 2,290 | swift | Swift | BoxOffice/BoxOffice/PosterList/PosterImageCollectionView.swift | proxpero/Hollywood | 49ed5307d550ec7a9e5c6ff90ca334eaf3c2c173 | [
"MIT"
] | null | null | null | BoxOffice/BoxOffice/PosterList/PosterImageCollectionView.swift | proxpero/Hollywood | 49ed5307d550ec7a9e5c6ff90ca334eaf3c2c173 | [
"MIT"
] | null | null | null | BoxOffice/BoxOffice/PosterList/PosterImageCollectionView.swift | proxpero/Hollywood | 49ed5307d550ec7a9e5c6ff90ca334eaf3c2c173 | [
"MIT"
] | null | null | null | import UIKit
import TMDbAPI
public final class PosterImagesCollectionView: UICollectionView, UICollectionViewDelegate, UICollectionViewDataSource {
public var items: [PosterCell.Item] = []
public var didSelectItem: (PosterCell.Item) -> () = { _ in }
public init(layout: UICollectionViewLayout = PosterImag... | 35.78125 | 142 | 0.679913 |
8c682da64b2d33f3185fdf8f0c98ddac9240dc1b | 11,738 | dart | Dart | lib/src/model/order_data.dart | ValeraLetun/abg_utils | 37471dfb8c7fc89d354e5f9e5bd4638f6cba69ec | [
"Apache-2.0"
] | null | null | null | lib/src/model/order_data.dart | ValeraLetun/abg_utils | 37471dfb8c7fc89d354e5f9e5bd4638f6cba69ec | [
"Apache-2.0"
] | null | null | null | lib/src/model/order_data.dart | ValeraLetun/abg_utils | 37471dfb8c7fc89d354e5f9e5bd4638f6cba69ec | [
"Apache-2.0"
] | null | null | null | import '../../abg_utils.dart';
class OrderData {
String id;
String status; // status id
bool delete;
List<StatusHistory> history;
//
String customerId;
String customer; // name
String customerAvatar;
String providerId;
String providerPhone;
List<StringData> provider;
String providerAvatar;
... | 37.14557 | 125 | 0.615607 |
43ad47336f429559ec6d6adbbf263fd493248f93 | 2,622 | ts | TypeScript | runners/proc-group.ts | j50n/deno-proc | 51b747b081f6eb23d760b69d1b095a36ecfe8680 | [
"MIT"
] | 2 | 2022-01-25T03:56:13.000Z | 2022-03-06T09:40:57.000Z | runners/proc-group.ts | j50n/deno-proc | 51b747b081f6eb23d760b69d1b095a36ecfe8680 | [
"MIT"
] | 27 | 2021-11-07T16:17:37.000Z | 2022-02-19T15:48:20.000Z | runners/proc-group.ts | j50n/deno-proc | 51b747b081f6eb23d760b69d1b095a36ecfe8680 | [
"MIT"
] | null | null | null | import {
MultiCloseProcess,
MultiCloseReader,
MultiCloseWriter,
} from "./closers.ts";
import { GroupImpl } from "./proc-group-impl.ts";
/**
* The interface of an input handler.
*/
export interface InputHandler<A> {
/**
* A hack to detect when empty input is actually an error at runtime, since
* I can'... | 26.755102 | 100 | 0.671243 |
da21578474df0de76d621707b46b3c3f723c18bd | 3,128 | php | PHP | lib/adapters/Mysql.php | nicolachoquet06250/php-lib-orm | 2fe00833768199ad135aca59ef08f0a2360e7963 | [
"MIT"
] | null | null | null | lib/adapters/Mysql.php | nicolachoquet06250/php-lib-orm | 2fe00833768199ad135aca59ef08f0a2360e7963 | [
"MIT"
] | null | null | null | lib/adapters/Mysql.php | nicolachoquet06250/php-lib-orm | 2fe00833768199ad135aca59ef08f0a2360e7963 | [
"MIT"
] | null | null | null | <?php
namespace PhpLib\ORM\adapters;
use Exception;
use JetBrains\PhpStorm\Pure;
use PDO;
use PDOException;
use PhpLib\ORM\interfaces\{ORMInserter, ORMSelector, ORMUpdater, ORMDeleter, adapters\ORMAdapter};
use PhpLib\ORM\Model;
use PhpLib\ORM\ORM;
class Mysql implements ORMAdapter {
protected PDO $connector;
/... | 30.368932 | 130 | 0.640985 |
cdc8a255bd0b54f88cc876fb050f152f7966688f | 558 | cs | C# | src/GitVersion.MsBuild/Tasks/GenerateGitVersionInformation.cs | mglochsen/GitVersion | e9013533474e8e46b6a0ca60d20d02f3680b5980 | [
"MIT"
] | 1 | 2020-10-16T14:57:27.000Z | 2020-10-16T14:57:27.000Z | src/GitVersion.MsBuild/Tasks/GenerateGitVersionInformation.cs | mglochsen/GitVersion | e9013533474e8e46b6a0ca60d20d02f3680b5980 | [
"MIT"
] | 60 | 2021-03-08T13:18:17.000Z | 2021-08-17T03:24:08.000Z | src/GitVersion.MsBuild/Tasks/GenerateGitVersionInformation.cs | mglochsen/GitVersion | e9013533474e8e46b6a0ca60d20d02f3680b5980 | [
"MIT"
] | 1 | 2020-09-30T08:25:08.000Z | 2020-09-30T08:25:08.000Z | using Microsoft.Build.Framework;
namespace GitVersion.MsBuild.Tasks
{
public class GenerateGitVersionInformation : GitVersionTaskBase
{
[Required]
public string ProjectFile { get; set; }
[Required]
public string IntermediateOutputPath { get; set; }
[Required]
p... | 24.26087 | 99 | 0.659498 |
da2cc70db21ab7fba6be874220eb288954655aaf | 40,145 | php | PHP | resources/views/pizza.blade.php | KwizRPL/kwiz_v1 | af14acffc7ef9ecbb4d917e3535399dbba2074b6 | [
"MIT"
] | null | null | null | resources/views/pizza.blade.php | KwizRPL/kwiz_v1 | af14acffc7ef9ecbb4d917e3535399dbba2074b6 | [
"MIT"
] | null | null | null | resources/views/pizza.blade.php | KwizRPL/kwiz_v1 | af14acffc7ef9ecbb4d917e3535399dbba2074b6 | [
"MIT"
] | null | null | null | <!DOCTYPE html>
<html lang="en">
<head>
<title>Pizza - Free Bootstrap 4 Template by Colorlib</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<link href="https://fonts.googleapis.com/css?family=Poppins:300,400,500,600,700" rel="styl... | 48.251202 | 525 | 0.518147 |
fa4ad8c3c50f540ea9be50d2aababf37cee4df09 | 1,216 | cpp | C++ | Sources/AGEngine/Utils/RWLock.cpp | Another-Game-Engine/AGE | d5d9e98235198fe580a43007914f515437635830 | [
"MIT"
] | 47 | 2015-03-29T09:44:25.000Z | 2020-11-30T10:05:56.000Z | Sources/AGEngine/Utils/RWLock.cpp | Another-Game-Engine/AGE | d5d9e98235198fe580a43007914f515437635830 | [
"MIT"
] | 313 | 2015-01-01T18:16:30.000Z | 2015-11-30T07:54:07.000Z | Sources/AGEngine/Utils/RWLock.cpp | Another-Game-Engine/AGE | d5d9e98235198fe580a43007914f515437635830 | [
"MIT"
] | 9 | 2015-06-07T13:21:54.000Z | 2020-08-25T09:50:07.000Z | #include "RWLock.hpp"
#include "Debug.hpp"
#include <thread>
namespace AGE
{
RWLock::RWLock()
{
_sharedLock.store(0, std::memory_order_relaxed);
_uniqueLock.store(false, std::memory_order_relaxed);
}
void RWLock::ReadLock()
{
while (_uniqueLock.exchange(true, std::memory_order_relaxed))
{
std::this_t... | 16 | 63 | 0.67352 |
ccf0ea375c5d5a396f2ef06ef0e815c146fe7f24 | 2,381 | rb | Ruby | app/models/billing/usage.rb | datacentred/stronghold | a9e02a9f59ff2a61e0a6c80a394afc6f53209316 | [
"MIT"
] | 5 | 2018-05-17T09:54:38.000Z | 2021-08-19T22:14:51.000Z | app/models/billing/usage.rb | datacentred/stronghold | a9e02a9f59ff2a61e0a6c80a394afc6f53209316 | [
"MIT"
] | null | null | null | app/models/billing/usage.rb | datacentred/stronghold | a9e02a9f59ff2a61e0a6c80a394afc6f53209316 | [
"MIT"
] | 5 | 2018-03-15T03:30:52.000Z | 2021-04-09T18:18:06.000Z | require 'open-uri'
module Billing
class Usage < ApplicationRecord
self.table_name = "billing_usages"
attr_accessor :blob
belongs_to :organization
before_destroy :remove_blob
after_create -> { update_column :updated_at, Time.at(0) }
def object_uuid
if persisted?
read_attribute... | 22.67619 | 88 | 0.561109 |
46d61564ce18aabb3fff08bcba0068e9bb316463 | 1,341 | py | Python | pylinex/loglikelihood/__init__.py | CU-NESS/pylinex | b6f342595b6a154e129eb303782e5268088f34d5 | [
"Apache-2.0"
] | null | null | null | pylinex/loglikelihood/__init__.py | CU-NESS/pylinex | b6f342595b6a154e129eb303782e5268088f34d5 | [
"Apache-2.0"
] | null | null | null | pylinex/loglikelihood/__init__.py | CU-NESS/pylinex | b6f342595b6a154e129eb303782e5268088f34d5 | [
"Apache-2.0"
] | null | null | null | """
File: pylinex/loglikelihood/__init__.py
Author: Keith Tauscher
Date: 4 Mar 2019
Description: File containing imports for the loglikelihood module. The classes
in this module concern the saving, loading, storing, and
evaluation of various likelihood functions.
"""
from pylinex.loglikelihoo... | 46.241379 | 79 | 0.863535 |
e04ae6ef3d5006f9ad59796274613873da7d85d1 | 925 | h | C | YouChengTire/YouChengTire/ViewModels/Me/EditVehicleVM.h | daqiangge/SiJiWuYou | 00d1e2bf0fc4a8422440335c897ddb1f1c389bc7 | [
"Apache-2.0"
] | null | null | null | YouChengTire/YouChengTire/ViewModels/Me/EditVehicleVM.h | daqiangge/SiJiWuYou | 00d1e2bf0fc4a8422440335c897ddb1f1c389bc7 | [
"Apache-2.0"
] | null | null | null | YouChengTire/YouChengTire/ViewModels/Me/EditVehicleVM.h | daqiangge/SiJiWuYou | 00d1e2bf0fc4a8422440335c897ddb1f1c389bc7 | [
"Apache-2.0"
] | null | null | null | //
// EditVehicleVM.h
// YouChengTire
//
// Created by WangZhipeng on 16/2/10.
// Copyright © 2016年 WangZhipeng. All rights reserved.
//
#import "BaseVM.h"
@class VehicleTruckM;
@class VehicleBrandM;
@interface EditVehicleVM : BaseVM
@property (nonatomic, strong) VehicleTruckM *vehicleTruckM;
@property (nonatom... | 23.717949 | 67 | 0.634595 |
2ca7f75cb63717982860d4014419e8413417a5cf | 220 | cpp | C++ | Test/Expect/test109.cpp | dMajoIT/spin2cpp | f2ee655d150c9d69042b2dfaf8cae57123b7702c | [
"MIT"
] | 39 | 2015-02-10T13:43:24.000Z | 2022-03-08T14:56:41.000Z | Test/Expect/test109.cpp | cbmeeks/spin2cpp | d1707a50ee90d944590a6e82c6227a6ff6ce1042 | [
"MIT"
] | 230 | 2015-04-12T22:04:54.000Z | 2022-03-30T05:22:11.000Z | Test/Expect/test109.cpp | cbmeeks/spin2cpp | d1707a50ee90d944590a6e82c6227a6ff6ce1042 | [
"MIT"
] | 21 | 2016-03-05T05:15:06.000Z | 2022-03-24T11:58:15.000Z | #define __SPIN2CPP__
#include <propeller.h>
#include "test109.h"
int32_t test109::Readdelta(int32_t Encid)
{
int32_t Deltapos = 0;
Deltapos = 0 + (Encid < Totdelta);
Totdelta = -(!Totdelta);
return Deltapos;
}
| 16.923077 | 41 | 0.695455 |
f6533c00c3f0e61df5a4004dd4ae23f520256b31 | 11,570 | kt | Kotlin | app/src/main/java/me/blog/korn123/commons/utils/EasyDiaryUtils.kt | WAining/aaf-easydiary | 19b6ca6d60613e7733ab1232ec8dfd6823fdd27a | [
"CC-BY-3.0",
"Apache-2.0"
] | null | null | null | app/src/main/java/me/blog/korn123/commons/utils/EasyDiaryUtils.kt | WAining/aaf-easydiary | 19b6ca6d60613e7733ab1232ec8dfd6823fdd27a | [
"CC-BY-3.0",
"Apache-2.0"
] | null | null | null | app/src/main/java/me/blog/korn123/commons/utils/EasyDiaryUtils.kt | WAining/aaf-easydiary | 19b6ca6d60613e7733ab1232ec8dfd6823fdd27a | [
"CC-BY-3.0",
"Apache-2.0"
] | null | null | null | package me.blog.korn123.commons.utils
import android.content.ContentResolver
import android.content.Context
import android.database.Cursor
import android.graphics.Bitmap
import android.graphics.BitmapFactory
import android.graphics.PorterDuff
import android.graphics.Typeface
import android.net.Uri
import android.os.En... | 42.380952 | 264 | 0.664218 |
fa60e041eac01f3fb44db8322fce99f975a32b55 | 926 | cpp | C++ | OOP - Laborator 9/Problema 1/Problema 1/main.cpp | alexrobert02/oop-2022 | 277655132fb8618b1ce1bd4bb53edc147a53028b | [
"MIT"
] | null | null | null | OOP - Laborator 9/Problema 1/Problema 1/main.cpp | alexrobert02/oop-2022 | 277655132fb8618b1ce1bd4bb53edc147a53028b | [
"MIT"
] | null | null | null | OOP - Laborator 9/Problema 1/Problema 1/main.cpp | alexrobert02/oop-2022 | 277655132fb8618b1ce1bd4bb53edc147a53028b | [
"MIT"
] | null | null | null | #include <string>
#include <iostream>
#include <vector>
#include <map>
#include "map.h"
int main()
{
Map<int, const char*> m;
m[10] = "C++";
m[20] = "test";
m[30] = "Poo";
for (auto [key, value, index] : m) {
printf("Index:%d, Key=%d, Value=%s\n", index, key, value);
}
m[20] = "r... | 19.702128 | 66 | 0.5 |
af116e220a9ced5546716318357761eea60a5622 | 8,909 | py | Python | jupyter_py/backtest_pair.py | vdaytona/statistical-arbitrage-18-19 | a3ab6079425320292e3d12802a63aadce1868c4a | [
"MIT"
] | 163 | 2019-07-31T13:32:10.000Z | 2022-03-21T08:14:46.000Z | jupyter_py/backtest_pair.py | BGTCapital/pairstrade-fyp-2019 | 032ccf3c6151f3c2179237a771abadb8d9c98424 | [
"MIT"
] | 14 | 2019-07-31T13:16:49.000Z | 2022-03-11T23:46:46.000Z | jupyter_py/backtest_pair.py | BGTCapital/pairstrade-fyp-2019 | 032ccf3c6151f3c2179237a771abadb8d9c98424 | [
"MIT"
] | 38 | 2019-08-22T04:20:57.000Z | 2022-03-11T06:08:13.000Z | import tensorflow as tf
import backtrader as bt
import backtrader.feeds as btfeeds
import pandas as pd
import warnings
import glob
import os
import sys
import uuid
import itertools
import json
import argparse
import pathlib
import logging
from grid_search_tools import GSTools
from ptstrategy_cointegration_kalman impor... | 45.22335 | 117 | 0.572567 |
1440d5efd614675f2b9261a3e3d088d977654720 | 1,095 | ts | TypeScript | node_modules/vscode-ws-jsonrpc/src/stream/stream.ts | amirsaad2015/dsl | a18cfc94124792ff5015c45eb5ce12c46d1f8564 | [
"Apache-2.0"
] | null | null | null | node_modules/vscode-ws-jsonrpc/src/stream/stream.ts | amirsaad2015/dsl | a18cfc94124792ff5015c45eb5ce12c46d1f8564 | [
"Apache-2.0"
] | null | null | null | node_modules/vscode-ws-jsonrpc/src/stream/stream.ts | amirsaad2015/dsl | a18cfc94124792ff5015c45eb5ce12c46d1f8564 | [
"Apache-2.0"
] | null | null | null | /* --------------------------------------------------------------------------------------------
* Copyright (c) 2017 TypeFox GmbH (http://www.typefox.io). All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
* --------------------------------------------... | 28.076923 | 96 | 0.505936 |
b02abc7af032efc782386f23e25eba5fb278f342 | 7,658 | py | Python | src/syft/proto/core/store/dataset_pb2.py | dnabanita7/PySyft | ce2510e65f5bad382e88806bcde30fa38c3c76c4 | [
"Apache-2.0"
] | 2 | 2018-07-23T20:34:10.000Z | 2020-08-01T09:09:09.000Z | packages/syft/src/syft/proto/core/store/dataset_pb2.py | Metrix1010/PySyft | 6477f64b63dc285059c3766deab3993653cead2e | [
"Apache-2.0"
] | 5 | 2020-09-11T05:47:12.000Z | 2020-10-13T08:36:17.000Z | packages/syft/src/syft/proto/core/store/dataset_pb2.py | Metrix1010/PySyft | 6477f64b63dc285059c3766deab3993653cead2e | [
"Apache-2.0"
] | 1 | 2021-07-12T09:15:44.000Z | 2021-07-12T09:15:44.000Z | # -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: proto/core/store/dataset.proto
"""Generated protocol buffer code."""
# third party
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.protobuf import reflection as ... | 32.866953 | 608 | 0.608906 |
dde4af2be0e97a66d4d3ba4f1f253f6feb906b34 | 1,674 | java | Java | RiskMeter/src/main/java/PatientHistogram.java | Shane-Toma/ENSE375-GroupD | c71d7d9f3224c5ab9f1e38698673861a9d1b2f3f | [
"MIT"
] | null | null | null | RiskMeter/src/main/java/PatientHistogram.java | Shane-Toma/ENSE375-GroupD | c71d7d9f3224c5ab9f1e38698673861a9d1b2f3f | [
"MIT"
] | null | null | null | RiskMeter/src/main/java/PatientHistogram.java | Shane-Toma/ENSE375-GroupD | c71d7d9f3224c5ab9f1e38698673861a9d1b2f3f | [
"MIT"
] | null | null | null | import java.util.ArrayList;
// Implemented by: Jacob Chapman
// NOTES: There was no figure available to display the regions, so I made the assumption of what regions are in the following rectangle and
// how many people were in each region.
public class PatientHistogram
{
private int[][] patientCount; // 20x10 reg... | 27 | 140 | 0.654122 |
da6a1b1f8282d32c86980375b2791500935d5050 | 24,487 | php | PHP | TeamUpWordpress/wp-content/plugins/ultimate-member/includes/admin/core/class-admin-enqueue.php | LeonardoSaccotelli/TeamUp | cddd656ce674b8b3ad9aad793d491729eaf8bbf0 | [
"MIT"
] | null | null | null | TeamUpWordpress/wp-content/plugins/ultimate-member/includes/admin/core/class-admin-enqueue.php | LeonardoSaccotelli/TeamUp | cddd656ce674b8b3ad9aad793d491729eaf8bbf0 | [
"MIT"
] | 2 | 2021-03-11T03:31:50.000Z | 2021-05-09T03:41:26.000Z | TeamUpWordpress/wp-content/plugins/ultimate-member/includes/admin/core/class-admin-enqueue.php | LeonardoSaccotelli/TeamUp | cddd656ce674b8b3ad9aad793d491729eaf8bbf0 | [
"MIT"
] | null | null | null | <?php
namespace um\admin\core;
if ( ! defined( 'ABSPATH' ) ) exit;
if ( ! class_exists( 'um\admin\core\Admin_Enqueue' ) ) {
/**
* Class Admin_Enqueue
* @package um\admin\core
*/
class Admin_Enqueue {
/**
* @var string
*/
var $js_url;
/**
* @var string
*/
var $css_url;
/**
* ... | 35.643377 | 319 | 0.660963 |
33e900bdd6f142ecbe88bd9c4bf3eb6d937bfa2c | 9,790 | h | C | nRF5_SDK_12/components/sdk_validation.h | Yugontech/SenStick | 9ebd86a342a2c66c2759ba030dbd84c82bab5f2e | [
"MIT"
] | 77 | 2015-09-20T01:50:16.000Z | 2022-03-30T18:13:31.000Z | linebeacon/src/nRF5_SDK_12/components/sdk_validation.h | FaBoPlatform/OpenBeacon | abf55dc53b8d3bae9c05c23a2e313c6f3d230160 | [
"Apache-2.0"
] | 41 | 2015-09-24T02:56:55.000Z | 2021-05-13T13:52:12.000Z | linebeacon/src/nRF5_SDK_12/components/sdk_validation.h | FaBoPlatform/OpenBeacon | abf55dc53b8d3bae9c05c23a2e313c6f3d230160 | [
"Apache-2.0"
] | 34 | 2015-11-06T22:50:28.000Z | 2022-01-18T07:01:51.000Z | /* Copyright (c) 2016 Nordic Semiconductor. All Rights Reserved.
*
* The information contained herein is property of Nordic Semiconductor ASA.
* Terms and conditions of usage are described in detail in NORDIC
* SEMICONDUCTOR STANDARD SOFTWARE LICENSE AGREEMENT.
*
* Licensees are granted free, non-transferab... | 35.089606 | 95 | 0.68335 |
060cc57aede962c798ac788e403c62fa82c85cce | 2,165 | swift | Swift | EcoSoapBank/Features/Payment/StripeController.swift | DeVitoC/Labs25-Ecosoap-TeamA-IOS | 1e091e666ea72b7371ee9b85eb57cd579e1d3b79 | [
"MIT"
] | 2 | 2020-10-26T06:21:51.000Z | 2021-09-11T01:05:53.000Z | EcoSoapBank/Features/Payment/StripeController.swift | DeVitoC/Labs25-Ecosoap-TeamA-IOS | 1e091e666ea72b7371ee9b85eb57cd579e1d3b79 | [
"MIT"
] | 7 | 2020-08-09T13:31:46.000Z | 2020-09-15T20:37:03.000Z | EcoSoapBank/Features/Payment/StripeController.swift | DeVitoC/Labs25-Ecosoap-TeamA-IOS | 1e091e666ea72b7371ee9b85eb57cd579e1d3b79 | [
"MIT"
] | 3 | 2020-09-25T19:01:03.000Z | 2021-02-19T17:08:57.000Z | //
// StripeController.swift
// EcoSoapBank
//
// Created by Jon Bash on 2020-08-28.
// Copyright © 2020 Spencer Curtis. All rights reserved.
//
import Foundation
import Stripe
enum StripeError: Error {
case invalidURL
case unknown
}
class StripeController: NSObject {
var backendURL: URL
priva... | 27.405063 | 75 | 0.590762 |
d68a12f28b17879c172da40c5abf1883b222d5aa | 318 | cs | C# | src/SFA.DAS.ApprenticeFeedback.Application/Commands/UpdateApprenticeFeedbackTarget/UpdateApprenticeFeedbackTargetCommandResponse.cs | SkillsFundingAgency/das-apprentice-feedback-api | d75e58d744b6b3242334a8dcaa70b2a52333b360 | [
"MIT"
] | null | null | null | src/SFA.DAS.ApprenticeFeedback.Application/Commands/UpdateApprenticeFeedbackTarget/UpdateApprenticeFeedbackTargetCommandResponse.cs | SkillsFundingAgency/das-apprentice-feedback-api | d75e58d744b6b3242334a8dcaa70b2a52333b360 | [
"MIT"
] | null | null | null | src/SFA.DAS.ApprenticeFeedback.Application/Commands/UpdateApprenticeFeedbackTarget/UpdateApprenticeFeedbackTargetCommandResponse.cs | SkillsFundingAgency/das-apprentice-feedback-api | d75e58d744b6b3242334a8dcaa70b2a52333b360 | [
"MIT"
] | null | null | null | using SFA.DAS.ApprenticeFeedback.Domain.Models;
using System;
namespace SFA.DAS.ApprenticeFeedback.Application.Commands.UpdateApprenticeFeedbackTarget
{
public class UpdateApprenticeFeedbackTargetCommandResponse
{
public ApprenticeFeedbackTarget UpdatedApprenticeFeedbackTarget { get; set; }
}
}
| 28.909091 | 88 | 0.808176 |
1a4fce8ca73064afba7deda533ecd1b95e4ae86b | 774 | py | Python | svg_template_fixer/namespaces.py | Braayy/FreeCAD-Scripts | 1b658a8d707108b8967c892c5e7e85ae116d9d06 | [
"MIT"
] | null | null | null | svg_template_fixer/namespaces.py | Braayy/FreeCAD-Scripts | 1b658a8d707108b8967c892c5e7e85ae116d9d06 | [
"MIT"
] | null | null | null | svg_template_fixer/namespaces.py | Braayy/FreeCAD-Scripts | 1b658a8d707108b8967c892c5e7e85ae116d9d06 | [
"MIT"
] | null | null | null | from xml.etree.ElementTree import register_namespace
namespaces = {
'': 'http://www.w3.org/2000/svg',
'inkscape': 'http://www.inkscape.org/namespaces/inkscape',
'sodipodi': 'http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd',
'svg': 'http://www.w3.org/2000/svg',
'freecad': 'http://www.freecadweb.o... | 33.652174 | 78 | 0.686047 |
2ca4465ca23c9ca59239947c9babf8dd0212fafd | 1,486 | hpp | C++ | 3rdparty/stout/include/stout/os/socket.hpp | sagar8192/mesos | a018cf33d5f06f5a9f9099a4c74b2daea00bd0f7 | [
"Apache-2.0"
] | 4 | 2019-03-06T03:04:40.000Z | 2019-07-20T15:35:00.000Z | 3rdparty/stout/include/stout/os/socket.hpp | sagar8192/mesos | a018cf33d5f06f5a9f9099a4c74b2daea00bd0f7 | [
"Apache-2.0"
] | 6 | 2018-11-30T08:04:45.000Z | 2019-05-15T03:04:28.000Z | 3rdparty/stout/include/stout/os/socket.hpp | sagar8192/mesos | a018cf33d5f06f5a9f9099a4c74b2daea00bd0f7 | [
"Apache-2.0"
] | 4 | 2019-03-11T11:51:22.000Z | 2020-05-11T07:27:31.000Z | // 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
// distributed und... | 28.037736 | 76 | 0.728129 |
08346c7bdb669be661fc948bd9de4b775c5b3cac | 3,909 | dart | Dart | lib/indicadores.dart | Haple/bate_ponto_mobile | 84e7e57206adbd6d27b93819c62591bb5299195f | [
"MIT"
] | null | null | null | lib/indicadores.dart | Haple/bate_ponto_mobile | 84e7e57206adbd6d27b93819c62591bb5299195f | [
"MIT"
] | null | null | null | lib/indicadores.dart | Haple/bate_ponto_mobile | 84e7e57206adbd6d27b93819c62591bb5299195f | [
"MIT"
] | null | null | null | import 'dart:convert';
import 'package:bate_ponto_mobile/menu_shell.dart';
import 'package:flutter/material.dart';
import 'package:http/http.dart' as http;
import 'comum/funcoes/exibe_alerta.dart';
import 'comum/funcoes/get_token.dart';
import 'comum/modelos/indicador.dart';
class Indicadores extends StatefulWidget ... | 28.122302 | 76 | 0.514965 |
437e964185980e9a46b8cafd063a7cc2ac958d07 | 1,544 | ts | TypeScript | src/utils/message.ts | huangwc94/scraping-helper-chrome-extension | 858ebc3d44690cccb320ca577c02b80813afd78d | [
"MIT"
] | 60 | 2016-05-27T01:07:24.000Z | 2022-03-15T13:46:21.000Z | src/utils/message.ts | huangwc94/scraping-helper-chrome-extension | 858ebc3d44690cccb320ca577c02b80813afd78d | [
"MIT"
] | 9 | 2016-05-26T18:33:22.000Z | 2022-02-27T14:43:18.000Z | src/utils/message.ts | huangwc94/scraping-helper-chrome-extension | 858ebc3d44690cccb320ca577c02b80813afd78d | [
"MIT"
] | 20 | 2016-09-29T03:48:18.000Z | 2021-07-09T18:43:25.000Z | import { MessageType, InternalMessageType } from '../models/constant';
import { SelectData, GetDefaultData } from '../models/types';
export function sendMessage(event: MessageType, payload: any = null) {
chrome.tabs.query({ active: true, currentWindow: true }, function (tabs) {
const tab = tabs[0];
if (!!tab... | 22.057143 | 79 | 0.626943 |
2b5b7d2c0542d81a1a3524fab9befd93cfd85a2e | 240 | rb | Ruby | app/controllers/home_controller.rb | jeyboy/sweety_memo | 9c28e968b1366a5f1ea72cc3ecb6346dec54c579 | [
"MIT"
] | null | null | null | app/controllers/home_controller.rb | jeyboy/sweety_memo | 9c28e968b1366a5f1ea72cc3ecb6346dec54c579 | [
"MIT"
] | 5 | 2015-12-10T20:17:37.000Z | 2016-02-17T20:07:08.000Z | app/controllers/home_controller.rb | jeyboy/sweety_memo | 9c28e968b1366a5f1ea72cc3ecb6346dec54c579 | [
"MIT"
] | null | null | null | class HomeController < ApplicationController
def show
@cated_posts = Post.categorize_by_topics
end
def search
@term = (params[:search][:term] rescue nil)
@results = (Post::search(@term) if @term.present?) || {}
end
end
| 21.818182 | 60 | 0.679167 |
14f18621a1c2b69945d1c084119a166ad41f0533 | 120 | ts | TypeScript | ui/src/stores/info.ts | timotto/ardumower-modem | 3391e41a8013cef572f0c4b42d4023b9a20f5463 | [
"MIT"
] | 1 | 2022-02-28T07:21:55.000Z | 2022-02-28T07:21:55.000Z | ui/src/stores/info.ts | timotto/ardumower-modem | 3391e41a8013cef572f0c4b42d4023b9a20f5463 | [
"MIT"
] | 3 | 2022-02-18T04:16:10.000Z | 2022-02-18T04:29:58.000Z | ui/src/stores/info.ts | timotto/ardumower-modem | 3391e41a8013cef572f0c4b42d4023b9a20f5463 | [
"MIT"
] | null | null | null | import { writable } from "svelte/store"
import type { Info } from "../model"
export const InfoStore = writable<Info>()
| 24 | 41 | 0.7 |
037f6851358e74f61c83fa4ef638532d28942f39 | 2,605 | rb | Ruby | app/models/unit_membership.rb | scoutplan/scoutplan | a9fd2186bea2b79da0d01e693632d5b65eaf888e | [
"MIT"
] | 1 | 2021-09-14T20:12:09.000Z | 2021-09-14T20:12:09.000Z | app/models/unit_membership.rb | scoutplan/scoutplan | a9fd2186bea2b79da0d01e693632d5b65eaf888e | [
"MIT"
] | 52 | 2021-09-15T16:07:41.000Z | 2022-03-31T19:14:20.000Z | app/models/unit_membership.rb | scoutplan/scoutplan | a9fd2186bea2b79da0d01e693632d5b65eaf888e | [
"MIT"
] | null | null | null | # frozen_string_literal: true
# A join model between Units and Users. In fact, the bulk of the
# business logic in the app is based on a UnitMembership rather than
# a User. The User model is really more for authentication and
# basic user demographic information (e.g. DOB) that's unlikely to change
# from one Unit to... | 28.010753 | 107 | 0.701727 |
5f18298f18ab1dba883c99b315e0941f1e7c98e3 | 294 | rb | Ruby | benchmark/tiers/1/bm_lucas_lehmer.rb | jmhodges/rubinius | dbedc65ca7fc9c8a93c913ea470a9b40382fa55e | [
"BSD-3-Clause"
] | 2 | 2016-08-07T17:14:57.000Z | 2020-03-03T08:51:37.000Z | benchmark/tiers/1/bm_lucas_lehmer.rb | rkh/rubinius | c4bcccbfba7656af4debc843953d7e29e3529ce7 | [
"BSD-3-Clause"
] | null | null | null | benchmark/tiers/1/bm_lucas_lehmer.rb | rkh/rubinius | c4bcccbfba7656af4debc843953d7e29e3529ce7 | [
"BSD-3-Clause"
] | null | null | null | # Lucas–Lehmer primality test for Mersenne numbers (2**p - 1)
def is_prime?(p)
s = 4
m = 2**p - 1
(p-2).times do
s = (s**2 - 2) % m
end
s == 0 ? true : false
end
# [9689, 9941, 11213, 19937].each { |n| is_prime?(n) }
# 4 Mersenne's exponents
def Bench.run
is_prime?(9689)
end
| 17.294118 | 61 | 0.581633 |
da2130bdbffbafba41d6330da6d99c807be43729 | 5,400 | php | PHP | app/Http/Controllers/PagesController_21.php | InterbitsSolutions/CRM | 5af6e21d07db968f7a492f9a5107777cd145c837 | [
"MIT"
] | null | null | null | app/Http/Controllers/PagesController_21.php | InterbitsSolutions/CRM | 5af6e21d07db968f7a492f9a5107777cd145c837 | [
"MIT"
] | null | null | null | app/Http/Controllers/PagesController_21.php | InterbitsSolutions/CRM | 5af6e21d07db968f7a492f9a5107777cd145c837 | [
"MIT"
] | null | null | null | <?php
namespace App\Http\Controllers;
use App\Models\User;
use App\Http\Requests;
use Aws\S3\S3Client;
use App\Models\MasterBuckets;
use Illuminate\Http\Request;
use Illuminate\Routing\Route;
use Illuminate\Support\Facades\Auth;
use Illuminate\Support\Facades\Hash;
use Illuminate\Support\Facades\Session;
use Illumina... | 36.986301 | 248 | 0.521111 |
4eeb627169bedae2d2155591f0d9cbfc63e7cb55 | 2,824 | cpp | C++ | vm/external_libs/llvm/tools/llvmc2/llvmc.cpp | marnen/rubinius | 05b3f9789d01bada0604a7f09921c956bc9487e7 | [
"BSD-3-Clause"
] | 1 | 2016-05-08T16:58:14.000Z | 2016-05-08T16:58:14.000Z | vm/external_libs/llvm/tools/llvmc2/llvmc.cpp | taf2/rubinius | 493bfa2351fc509ca33d3bb03991c2e9c2b6dafa | [
"BSD-3-Clause"
] | null | null | null | vm/external_libs/llvm/tools/llvmc2/llvmc.cpp | taf2/rubinius | 493bfa2351fc509ca33d3bb03991c2e9c2b6dafa | [
"BSD-3-Clause"
] | null | null | null | //===--- llvmc.cpp - The LLVM Compiler Driver ------------------*- C++ -*-===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open
// Source License. See LICENSE.TXT for details.
//
//===--------------------------------------------------------... | 27.417476 | 80 | 0.549929 |
4bdd76a60f2bc87300dc776e462ddffe3f85cce0 | 6,523 | dart | Dart | lib/controllers/SearchController/SearchController.dart | Totodore/Videotheque | 399605daeb163bad70e6e5be38be6325abcd994c | [
"Apache-2.0"
] | 3 | 2020-08-11T20:38:08.000Z | 2021-09-18T20:35:14.000Z | lib/controllers/SearchController/SearchController.dart | Totodore/Videotheque | 399605daeb163bad70e6e5be38be6325abcd994c | [
"Apache-2.0"
] | 1 | 2021-01-17T01:01:01.000Z | 2021-01-17T01:01:01.000Z | lib/controllers/SearchController/SearchController.dart | Totodore/Videotheque | 399605daeb163bad70e6e5be38be6325abcd994c | [
"Apache-2.0"
] | 1 | 2021-01-17T00:56:17.000Z | 2021-01-17T00:56:17.000Z | import 'dart:async';
import 'dart:io';
import 'package:Videotheque/models/api/ApiSearchModel.dart';
import 'package:Videotheque/services/BarcodeLookup.dart';
import 'package:Videotheque/services/FireauthQueries.dart';
import 'package:Videotheque/services/FireconfigQueries.dart';
import 'package:Videotheque/services/Fi... | 35.259459 | 204 | 0.707037 |
4e86eb77092afa9ebfa86d4573749bf90953fd90 | 2,417 | swift | Swift | Example/Encompass/Routing/AppRoutes.swift | NduatiK/Encompass | f142655d6346758f67067b9ef1aa65acc29137c7 | [
"MIT"
] | null | null | null | Example/Encompass/Routing/AppRoutes.swift | NduatiK/Encompass | f142655d6346758f67067b9ef1aa65acc29137c7 | [
"MIT"
] | null | null | null | Example/Encompass/Routing/AppRoutes.swift | NduatiK/Encompass | f142655d6346758f67067b9ef1aa65acc29137c7 | [
"MIT"
] | null | null | null | //
// AppRoutes.swift
// Encompass_Example
//
// Created by Nduati Kuria on 06/09/2018.
// Copyright © 2018 CocoaPods. All rights reserved.
//
import Foundation
import Encompass
var AppRouter = Encompasser<Routes.AppRoutes>()
extension Routes {
// Other types are usable but an enum is preferred since it ha... | 33.109589 | 126 | 0.569301 |
ff6e0ee75e123549e571e0f0e37c322e63a24ad9 | 3,945 | py | Python | guidesyn/core/models/EnsembleRnnCnn.py | eth-sri/guiding-synthesizers | 3622b80eb3bf633be65036dc47e4ed7b98c3fce8 | [
"Apache-2.0"
] | 9 | 2020-04-04T16:20:20.000Z | 2021-07-01T04:11:38.000Z | guidesyn/core/models/EnsembleRnnCnn.py | eth-sri/guiding-synthesizers | 3622b80eb3bf633be65036dc47e4ed7b98c3fce8 | [
"Apache-2.0"
] | 1 | 2020-02-23T20:16:43.000Z | 2020-02-24T13:10:23.000Z | guidesyn/core/models/EnsembleRnnCnn.py | eth-sri/guiding-synthesizers | 3622b80eb3bf633be65036dc47e4ed7b98c3fce8 | [
"Apache-2.0"
] | 3 | 2020-04-05T16:57:50.000Z | 2022-02-18T01:46:37.000Z | """
Copyright 2019 Software Reliability Lab, ETH Zurich
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... | 39.848485 | 114 | 0.697338 |
b36df4d50ebad9e26237c5d80c4d289815bad022 | 2,755 | py | Python | tests/test_ml20m.py | keener101/lkpy | 7c71e8bd1f367d6a1bf57b36b129e025e2ba374d | [
"MIT"
] | null | null | null | tests/test_ml20m.py | keener101/lkpy | 7c71e8bd1f367d6a1bf57b36b129e025e2ba374d | [
"MIT"
] | null | null | null | tests/test_ml20m.py | keener101/lkpy | 7c71e8bd1f367d6a1bf57b36b129e025e2ba374d | [
"MIT"
] | null | null | null | """
Tests on the ML-20M data set.
"""
import logging
from pathlib import Path
import pandas as pd
import numpy as np
from lenskit.datasets import MovieLens
from lenskit import crossfold as xf
from lenskit.metrics import predict as pm
from lenskit import batch
from lenskit.algorithms import Recommender
from lenskit.a... | 27.55 | 105 | 0.693648 |
b7750d77c6a7896c885755035384e8fcdcb04348 | 346 | cs | C# | src/Hoverfly.Core/Model/GlobalActions.cs | fredrikn/hoverfly-dotnet | 55655d0adc41d2b60c314811b52c51a29059daa1 | [
"Apache-2.0"
] | 32 | 2017-02-16T09:29:16.000Z | 2021-06-24T04:44:28.000Z | src/Hoverfly.Core/Model/GlobalActions.cs | abdellee/hoverfly-dotnet | 40e93971709f20d39c9fe02cd5392f6436aef1a6 | [
"Apache-2.0"
] | 3 | 2018-01-13T11:34:11.000Z | 2019-06-28T17:08:52.000Z | src/Hoverfly.Core/Model/GlobalActions.cs | abdellee/hoverfly-dotnet | 40e93971709f20d39c9fe02cd5392f6436aef1a6 | [
"Apache-2.0"
] | 7 | 2017-02-18T10:24:00.000Z | 2019-04-26T11:00:37.000Z | using System.Collections.Generic;
namespace Hoverfly.Core.Model
{
using Newtonsoft.Json;
public class GlobalActions
{
public GlobalActions(IList<DelaySettings> delays)
{
Delays = delays;
}
[JsonProperty("delays")]
public IList<DelaySettings> Delays { g... | 20.352941 | 64 | 0.618497 |
8edb0949a5039df99eb06db54ad70c0758bec588 | 269 | rb | Ruby | spec/models/renalware/system/roles_user_spec.rb | airslie/renalware-core | 395fd25b7ef78cf959d8ebe1d3d44a65dd7c02c9 | [
"MIT"
] | 3 | 2018-08-17T15:18:08.000Z | 2019-09-01T10:41:09.000Z | spec/models/renalware/system/roles_user_spec.rb | airslie/renalware-core | 395fd25b7ef78cf959d8ebe1d3d44a65dd7c02c9 | [
"MIT"
] | 4 | 2019-12-31T11:57:22.000Z | 2020-03-22T18:35:17.000Z | spec/models/renalware/system/roles_user_spec.rb | airslie/renalware-core | 395fd25b7ef78cf959d8ebe1d3d44a65dd7c02c9 | [
"MIT"
] | 2 | 2018-06-20T14:57:19.000Z | 2021-02-15T22:34:37.000Z | # frozen_string_literal: true
require "rails_helper"
module Renalware
describe RolesUser, type: :model do
it :aggregate_failures do
is_expected.to belong_to :user
is_expected.to belong_to :role
is_expected.to respond_to(:id)
end
end
end
| 19.214286 | 37 | 0.724907 |
a0aeb9868d2db20a312e150c46e30f4a18f50bf1 | 414 | lua | Lua | docs/illustrations/texture/texture_blit.lua | holocronweaver/ogre-procedural | 27ede71b30d12ff05cddc2359acf8f1f8b12f579 | [
"MIT"
] | 158 | 2016-11-17T19:37:51.000Z | 2022-03-21T19:57:55.000Z | docs/illustrations/texture/texture_blit.lua | holocronweaver/ogre-procedural | 27ede71b30d12ff05cddc2359acf8f1f8b12f579 | [
"MIT"
] | 94 | 2016-11-18T09:55:57.000Z | 2021-01-14T08:50:40.000Z | docs/illustrations/texture/texture_blit.lua | holocronweaver/ogre-procedural | 27ede71b30d12ff05cddc2359acf8f1f8b12f579 | [
"MIT"
] | 51 | 2017-05-24T10:20:25.000Z | 2022-03-17T15:07:02.000Z | buffer = Procedural.TextureBuffer(128)
Procedural.Image(buffer):setFile("red_brick.jpg"):process()
Procedural.Blit(buffer):setInputBuffer(bufferGradient):setInputRect(0.0, 0.0, 0.5, 0.5):setOutputRect(0.25, 0.25, 0.75, 0.75):process()
tests:addTextureBuffer(buffer)
dotfile = tests:getDotFile("texture_31", "Blit_Demo")
... | 59.142857 | 135 | 0.76087 |
9707445a51b32ed30713202066950371ed09b060 | 128 | rb | Ruby | config/initializers/default_url_options.rb | SpillChek2/sched.do | 491c52065b9877e8dea7416ff47ed73878af7352 | [
"MIT"
] | 26 | 2015-01-16T08:13:30.000Z | 2017-10-15T10:03:12.000Z | config/initializers/default_url_options.rb | SpillChek2/sched.do | 491c52065b9877e8dea7416ff47ed73878af7352 | [
"MIT"
] | 1 | 2015-04-02T16:59:04.000Z | 2015-04-02T16:59:04.000Z | config/initializers/default_url_options.rb | SpillChek2/sched.do | 491c52065b9877e8dea7416ff47ed73878af7352 | [
"MIT"
] | 21 | 2015-01-09T22:20:18.000Z | 2017-10-31T02:55:44.000Z | # to have url helpers available to models
Rails.application.routes.default_url_options = ActionMailer::Base.default_url_options
| 42.666667 | 85 | 0.851563 |
6dc58cffdb0bb719f4ff6a8139af2582a5a9e61b | 67 | ts | TypeScript | types/carbon__icons-react/lib/gender--female/32.d.ts | BreezeZin/DefinitelyTyped | eafe54f0a6423c73619066be83863b7ff1c3efa5 | [
"MIT"
] | 35,620 | 2015-11-04T04:20:38.000Z | 2022-03-31T21:14:58.000Z | types/carbon__icons-react/lib/gender--female/32.d.ts | BreezeZin/DefinitelyTyped | eafe54f0a6423c73619066be83863b7ff1c3efa5 | [
"MIT"
] | 49,391 | 2015-11-04T05:15:18.000Z | 2022-03-31T23:44:18.000Z | types/carbon__icons-react/lib/gender--female/32.d.ts | BreezeZin/DefinitelyTyped | eafe54f0a6423c73619066be83863b7ff1c3efa5 | [
"MIT"
] | 36,450 | 2015-11-04T04:30:18.000Z | 2022-03-31T23:29:51.000Z | import { GenderFemale32 } from "../../";
export = GenderFemale32;
| 16.75 | 40 | 0.656716 |
cc4430517847531cbdbf3b0cc50e0913a4f56891 | 239 | rb | Ruby | Casks/avidemux.rb | kevinoconnor7/homebrew-cask | e5783c0cb753d11725f5152c11d2e40c143002bb | [
"BSD-2-Clause"
] | null | null | null | Casks/avidemux.rb | kevinoconnor7/homebrew-cask | e5783c0cb753d11725f5152c11d2e40c143002bb | [
"BSD-2-Clause"
] | 23 | 2018-12-07T13:23:15.000Z | 2021-06-28T13:17:38.000Z | Casks/avidemux.rb | chrisopedia/homebrew-cask | 924a1d5e765d10638c7b34cdfff347634a4942fe | [
"BSD-2-Clause"
] | null | null | null | class Avidemux < Cask
url 'http://downloads.sourceforge.net/avidemux/Avidemux_2.6.7_ml_64bits_v2.dmg'
homepage 'http://www.avidemux.org/'
version '2.6.7'
sha1 '989e7407667f83c8779b7016eff4418fa76a56da'
link 'Avidemux2.6.app'
end
| 29.875 | 81 | 0.76569 |
7aa042e76a394685fcdcc43a71ca65fdde819f06 | 300 | cs | C# | aspnet-core/src/Snow.Template.Application/ParameterManager/Parameters/Dto/ParameterListDto.cs | snowchenlei/AbpCustomerAuth | 5d2cda561f041bb5115353b1fb07fa6f3dd4f280 | [
"MIT"
] | null | null | null | aspnet-core/src/Snow.Template.Application/ParameterManager/Parameters/Dto/ParameterListDto.cs | snowchenlei/AbpCustomerAuth | 5d2cda561f041bb5115353b1fb07fa6f3dd4f280 | [
"MIT"
] | null | null | null | aspnet-core/src/Snow.Template.Application/ParameterManager/Parameters/Dto/ParameterListDto.cs | snowchenlei/AbpCustomerAuth | 5d2cda561f041bb5115353b1fb07fa6f3dd4f280 | [
"MIT"
] | null | null | null | using System;
using System.Collections.Generic;
using System.Text;
using Abp.Application.Services.Dto;
namespace Snow.Template.Parameters.Dto
{
public class ParameterListDto : EntityDto<Guid>
{
public string Value { get; set; }
public string TypeName { get; set; }
}
}
| 20 | 51 | 0.693333 |
d36f6a8a0de2f406bd06ca707e18481714f30d66 | 1,608 | ps1 | PowerShell | Functions/Invoke-FindSimilarFaces.ps1 | MLauper/ps-AzureFaceAPI | 3465113efcd6f5afc06616f13f5374609271faad | [
"MIT"
] | null | null | null | Functions/Invoke-FindSimilarFaces.ps1 | MLauper/ps-AzureFaceAPI | 3465113efcd6f5afc06616f13f5374609271faad | [
"MIT"
] | 1 | 2018-04-02T00:53:46.000Z | 2018-04-02T00:53:46.000Z | Functions/Invoke-FindSimilarFaces.ps1 | MLauper/ps-AzureFaceAPI | 3465113efcd6f5afc06616f13f5374609271faad | [
"MIT"
] | null | null | null | function Invoke-FindSimilarFaces {
param(
# faceId of the query face, as retrieved from Invoke-FaceDetection
[parameter(Mandatory=$true)]
[string]$faceId
,
# Existing unique candidate face list, created with New-FaceList
[parameter(
Mandatory=$true,
... | 37.395349 | 131 | 0.594527 |
9399c1f66454946a748eebdd549f01fb2aaac44c | 879 | cs | C# | samples/Sample-WPF/AppBootstrapper.cs | jeisenbach/Caliburn.Micro.Autofac | 702bd7b95229b8f06b913bb17edebd4835cd7ae8 | [
"MIT"
] | 14 | 2015-03-28T00:18:18.000Z | 2020-05-05T14:59:47.000Z | samples/Sample-WPF/AppBootstrapper.cs | jeisenbach/Caliburn.Micro.Autofac | 702bd7b95229b8f06b913bb17edebd4835cd7ae8 | [
"MIT"
] | 9 | 2016-10-20T09:37:40.000Z | 2021-06-25T15:15:55.000Z | samples/Sample-WPF/AppBootstrapper.cs | jeisenbach/Caliburn.Micro.Autofac | 702bd7b95229b8f06b913bb17edebd4835cd7ae8 | [
"MIT"
] | 12 | 2015-02-06T05:54:49.000Z | 2020-08-13T13:54:52.000Z | using System.ComponentModel;
using System.Reflection;
using System.Windows;
using Autofac;
using Caliburn.Micro.Autofac;
namespace Sample_WPF
{
using System;
using System.Collections.Generic;
using System.Linq;
using Caliburn.Micro;
public class AppBootstrapper : AutofacBootstrapper<... | 23.131579 | 77 | 0.607509 |
4b70ed422c7aa9b8a7d4385d193be4053386a605 | 2,612 | rs | Rust | src/colors.rs | kennydo/the-great-purple-wall | 38c8b8f5e15f590f6f91b6a64caff6a1bee945df | [
"MIT"
] | null | null | null | src/colors.rs | kennydo/the-great-purple-wall | 38c8b8f5e15f590f6f91b6a64caff6a1bee945df | [
"MIT"
] | null | null | null | src/colors.rs | kennydo/the-great-purple-wall | 38c8b8f5e15f590f6f91b6a64caff6a1bee945df | [
"MIT"
] | null | null | null | // Copied from https://www.w3.org/TR/css-color-4/#named-colors
pub const CSS4_COLORS: [&str; 148] = [
"aliceblue",
"antiquewhite",
"aqua",
"aquamarine",
"azure",
"beige",
"bisque",
"black",
"blanchedalmond",
"blue",
"blueviolet",
"brown",
"burlywood",
"cadetblue"... | 17.071895 | 62 | 0.532925 |
5459813e56d70afe33b83fdc33d19b56ff7130a7 | 350 | css | CSS | html/webapp/style/themes/underline/css/green/page_style.css | epoc-software-open/csnc | 2cf64dfb7ca0568681809b5132e17b356768b4f6 | [
"BSD-2-Clause"
] | null | null | null | html/webapp/style/themes/underline/css/green/page_style.css | epoc-software-open/csnc | 2cf64dfb7ca0568681809b5132e17b356768b4f6 | [
"BSD-2-Clause"
] | 5 | 2020-04-10T05:30:45.000Z | 2021-02-27T16:00:22.000Z | html/webapp/style/themes/underline/css/green/page_style.css | epoc-software-open/csnc | 2cf64dfb7ca0568681809b5132e17b356768b4f6 | [
"BSD-2-Clause"
] | 1 | 2020-01-28T04:53:11.000Z | 2020-01-28T04:53:11.000Z | body {
background-color:#327177;
}
.leftcolumn {
background-color:#ffffff;
}
.centercolumn {
background-color:#ffffff;
}
.rightcolumn {
background-color:#ffffff;
}
.headercolumn {
background-color:#ffffff;
border-bottom:1px solid #aedd97;
}
.footercolumn {
background-color:#ffffff;
}
#header_menu {
border-... | 12.068966 | 34 | 0.714286 |
126b11e4015e4f8624449555b7cbdbb927fac2ea | 1,566 | cs | C# | src/CityOfInfo.Data.Mids/ArchetypeWriter.cs | patrickhuber/city-of-info | 1045e064f5146935551d77917f193fbe0cd53cbd | [
"MIT"
] | null | null | null | src/CityOfInfo.Data.Mids/ArchetypeWriter.cs | patrickhuber/city-of-info | 1045e064f5146935551d77917f193fbe0cd53cbd | [
"MIT"
] | null | null | null | src/CityOfInfo.Data.Mids/ArchetypeWriter.cs | patrickhuber/city-of-info | 1045e064f5146935551d77917f193fbe0cd53cbd | [
"MIT"
] | null | null | null | using System;
using System.Collections.Generic;
using System.IO;
using System.Text;
namespace CityOfInfo.Data.Mids
{
public class ArchetypeWriter
{
private BinaryWriter _writer;
public ArchetypeWriter(BinaryWriter writer)
{
_writer = writer;
}
public void ... | 32.625 | 56 | 0.620051 |
c76d166a61adad0e65d4b37596cef24608d0f20d | 1,374 | kt | Kotlin | app/src/main/kotlin/batect/logging/ContainerNameSetSerializer.kt | sschuberth/batect | 023550c4322d02cfaa005592e689a00d190862aa | [
"Apache-2.0"
] | 1 | 2021-08-08T11:08:27.000Z | 2021-08-08T11:08:27.000Z | app/src/main/kotlin/batect/logging/ContainerNameSetSerializer.kt | sschuberth/batect | 023550c4322d02cfaa005592e689a00d190862aa | [
"Apache-2.0"
] | null | null | null | app/src/main/kotlin/batect/logging/ContainerNameSetSerializer.kt | sschuberth/batect | 023550c4322d02cfaa005592e689a00d190862aa | [
"Apache-2.0"
] | null | null | null | /*
Copyright 2017-2021 Charles Korn.
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... | 41.636364 | 122 | 0.793304 |
87002f18f0f80a08bf27cf81826bdfe8098608c8 | 598 | lua | Lua | MMOCoreORB/bin/scripts/mobile/lair/creature_lair/talus_decay_mite_lair_neutral_small.lua | V-Fib/FlurryClone | 40e0ca7245ec31b3815eb6459329fd9e70f88936 | [
"Zlib",
"OpenSSL"
] | 18 | 2017-02-09T15:36:05.000Z | 2021-12-21T04:22:15.000Z | MMOCoreORB/bin/scripts/mobile/lair/creature_lair/talus_decay_mite_lair_neutral_small.lua | V-Fib/FlurryClone | 40e0ca7245ec31b3815eb6459329fd9e70f88936 | [
"Zlib",
"OpenSSL"
] | 61 | 2016-12-30T21:51:10.000Z | 2021-12-10T20:25:56.000Z | MMOCoreORB/bin/scripts/mobile/lair/creature_lair/talus_decay_mite_lair_neutral_small.lua | V-Fib/FlurryClone | 40e0ca7245ec31b3815eb6459329fd9e70f88936 | [
"Zlib",
"OpenSSL"
] | 71 | 2017-01-01T05:34:38.000Z | 2022-03-29T01:04:00.000Z | talus_decay_mite_lair_neutral_small = Lair:new {
mobiles = {{"decay_mite",1}},
spawnLimit = 12,
buildingsVeryEasy = {"object/tangible/lair/base/poi_all_lair_garbage_small.iff"},
buildingsEasy = {"object/tangible/lair/base/poi_all_lair_garbage_small.iff"},
buildingsMedium = {"object/tangible/lair/base/poi_all_lair_... | 49.833333 | 91 | 0.814381 |
df8e4b0bcd81e7314d9d90627fb9a4d75c2ad4c6 | 1,883 | cs | C# | 3.Exercises_ Lists/2. Change List/Program.cs | pelazggi/Tech_Module | 2109738729f067239b539872e4cdd781844337cb | [
"MIT"
] | null | null | null | 3.Exercises_ Lists/2. Change List/Program.cs | pelazggi/Tech_Module | 2109738729f067239b539872e4cdd781844337cb | [
"MIT"
] | null | null | null | 3.Exercises_ Lists/2. Change List/Program.cs | pelazggi/Tech_Module | 2109738729f067239b539872e4cdd781844337cb | [
"MIT"
] | null | null | null | using System;
using System.Collections.Generic;
using System.Linq;
namespace _2._Change_List
{
class Program
{
static void Main(string[] args)
{
List<int> inputList = Console.ReadLine()
.Split(' ')
.Select(int.Parse)
.ToList(... | 26.152778 | 61 | 0.350505 |
cf2ee76eb7aa5758a4e5066b6503205b7b6b767c | 1,284 | php | PHP | php/AiYaSchoolPush/xmpush/IOSBuilder.php | wslblb/AiYaSchoolPush | b2147bad24b104b47a1af34ca7951498333d0f96 | [
"Apache-2.0"
] | 810 | 2016-10-25T09:24:04.000Z | 2022-03-25T01:55:11.000Z | php/AiYaSchoolPush/xmpush/IOSBuilder.php | wslblb/AiYaSchoolPush | b2147bad24b104b47a1af34ca7951498333d0f96 | [
"Apache-2.0"
] | 3 | 2017-01-20T03:47:40.000Z | 2020-01-06T09:57:48.000Z | php/AiYaSchoolPush/xmpush/IOSBuilder.php | wslblb/AiYaSchoolPush | b2147bad24b104b47a1af34ca7951498333d0f96 | [
"Apache-2.0"
] | 241 | 2016-10-25T09:48:05.000Z | 2022-03-25T01:55:14.000Z | <?php
/**
* IOS设备的消息体.
* @author wangkuiwei
* @name IOSBuilder
* @desc 构建发送给IOS设备的Message对象。
*
*/
namespace xmpush;
class IOSBuilder extends Message {
const soundUrl = 'sound_url';
const badge = 'badge';
public function __construct(){
parent::__construct();
}
public function description($description){... | 19.164179 | 65 | 0.641745 |
8234bd2124bbacd8536489641fc3b089124d9bc5 | 4,725 | rs | Rust | rustzx-z80/tests/integration/zexall.rs | pacmancoder/rustzx | 6818e164fae45029bd610f0b3caeb9655e5606c4 | [
"MIT"
] | 106 | 2016-03-12T23:39:40.000Z | 2022-01-31T15:55:22.000Z | rustzx-z80/tests/integration/zexall.rs | pacmancoder/rustzx | 6818e164fae45029bd610f0b3caeb9655e5606c4 | [
"MIT"
] | 113 | 2016-02-09T21:16:41.000Z | 2022-02-02T20:53:54.000Z | rustzx-z80/tests/integration/zexall.rs | rustzx/rustzx | ae3c2c91cf1d5c26515245634d61eff7c7eff951 | [
"MIT"
] | 8 | 2017-12-28T19:34:17.000Z | 2022-01-28T12:37:46.000Z | // Testing strategy was inspired by https://github.com/anotherlin/z80emu
const ZEXALL_IMAGE_BASE_ADDRESS: u16 = 0x0100;
const ZEXALL_IMAGE: &[u8] = include_bytes!("assets/zexall.com");
const ZEXALL_TEST_POINTERS_TABLE_ADDRESS: u16 = 0x013A;
const ZEXALL_BEGIN_MESSAGE_ADDRESS: u16 = 0x01DDA;
const ZEXALL_END_MESSAGE_ADD... | 35.795455 | 99 | 0.600847 |
088abfdbea4beb165c94ec516c618b687f3ab87a | 3,078 | cpp | C++ | Engine/Plugins/FX/Niagara/Source/NiagaraEditor/Private/TypeEditorUtilities/NiagaraIntegerTypeEditorUtilities.cpp | windystrife/UnrealEngine_NVIDIAGameWork | b50e6338a7c5b26374d66306ebc7807541ff815e | [
"MIT"
] | 1 | 2022-01-29T18:36:12.000Z | 2022-01-29T18:36:12.000Z | Engine/Plugins/FX/Niagara/Source/NiagaraEditor/Private/TypeEditorUtilities/NiagaraIntegerTypeEditorUtilities.cpp | windystrife/UnrealEngine_NVIDIAGameWork | b50e6338a7c5b26374d66306ebc7807541ff815e | [
"MIT"
] | null | null | null | Engine/Plugins/FX/Niagara/Source/NiagaraEditor/Private/TypeEditorUtilities/NiagaraIntegerTypeEditorUtilities.cpp | windystrife/UnrealEngine_NVIDIAGameWork | b50e6338a7c5b26374d66306ebc7807541ff815e | [
"MIT"
] | null | null | null | // Copyright 1998-2016 Epic Games, Inc. All Rights Reserved.
#include "NiagaraIntegerTypeEditorUtilities.h"
#include "SNiagaraParameterEditor.h"
#include "NiagaraTypes.h"
#include "NiagaraEditorStyle.h"
#include "SSpinBox.h"
class SNiagaraIntegerParameterEditor : public SNiagaraParameterEditor
{
public:
SLATE_BEGIN... | 27.482143 | 131 | 0.765432 |
cdf6093abcacdc9457144da8ede36a1201f16e01 | 2,727 | cs | C# | Tools/BB10_UnityInjector/Injector_OSX/Injector_OSX/MainWindow.designer.cs | reignstudios/Reign-Unity-Plugin5 | d29868e9d337a0fe0f6f12b8962cbe41aa74a38f | [
"BSD-3-Clause"
] | 61 | 2015-12-30T13:34:37.000Z | 2022-01-23T13:07:44.000Z | Tools/BB10_UnityInjector/Injector_OSX/Injector_OSX/MainWindow.designer.cs | reignstudios/Reign-Unity-Plugin | 40c6176e9680891b8cc2e313653d0e10cecd9f6e | [
"BSD-3-Clause"
] | 4 | 2016-08-31T16:25:27.000Z | 2018-03-07T21:11:00.000Z | Tools/BB10_UnityInjector/Injector_OSX/Injector_OSX/MainWindow.designer.cs | reignstudios/Reign-Unity-Plugin5 | d29868e9d337a0fe0f6f12b8962cbe41aa74a38f | [
"BSD-3-Clause"
] | 20 | 2016-01-30T01:26:35.000Z | 2018-11-06T12:46:01.000Z | // WARNING
//
// This file has been generated automatically by Xamarin Studio to store outlets and
// actions made in the UI designer. If it is removed, they will be lost.
// Manual changes to this file may not be handled correctly.
//
using MonoMac.Foundation;
using System.CodeDom.Compiler;
namespace Injector_OSX
{
... | 19.478571 | 84 | 0.647598 |
2c7500f087465b08d310524ead1d392ffa06523d | 790 | py | Python | examples/tiling_9.py | byewokko/penrose | f339a6f0a2c9b0486f0b46a517bb9b8907c4be07 | [
"MIT"
] | 7 | 2020-12-24T11:49:36.000Z | 2022-03-29T00:44:48.000Z | examples/tiling_9.py | byewokko/penrose | f339a6f0a2c9b0486f0b46a517bb9b8907c4be07 | [
"MIT"
] | 9 | 2020-11-15T00:32:31.000Z | 2020-12-24T22:05:28.000Z | examples/tiling_9.py | byewokko/penrose | f339a6f0a2c9b0486f0b46a517bb9b8907c4be07 | [
"MIT"
] | null | null | null | import multigrid
from ntiling import TilingBuilder
from drawing.pil_draw_simple import Draw
palette = [
"#7fb414",
"#fac70b",
"#127681",
"#df0e62",
"#21174a",
]
draw = Draw(scale=90, width=3*1280, height=3*1280, bg_color=palette[-1])
draw.line_color = None
index_range = (-3, 3)
grid = multigrid.Mul... | 29.259259 | 104 | 0.668354 |
62098f16bff6cef119fe4b5a998e332fd969f86f | 3,387 | sql | SQL | CR_PDS_P.package body.sql | morten-egan/testdata_ninja | 40575ecdd5c4831545624022bb99d86bc96cf28e | [
"MIT"
] | 11 | 2017-06-23T10:15:36.000Z | 2022-02-28T08:43:08.000Z | CR_PDS_P.package body.sql | morten-egan/testdata_ninja | 40575ecdd5c4831545624022bb99d86bc96cf28e | [
"MIT"
] | 17 | 2017-06-18T19:39:59.000Z | 2022-03-10T11:52:53.000Z | CR_PDS_P.package body.sql | morten-egan/testdata_ninja | 40575ecdd5c4831545624022bb99d86bc96cf28e | [
"MIT"
] | 5 | 2020-02-04T18:11:37.000Z | 2022-01-20T05:40:01.000Z | create or replace package body CR_PDS_P
as
begin
testdata_rulebuilder.rules('CR_PDS_P').define_code := q'[begin
:rule_output := 'l_rf_##COLUMN_NAME##_tracker number := nvl(rf_##COLUMN_NAME##, 1);
l_rf_##COLUMN_NAME##_avg number := l_rf_##COLUMN_NAME##_tracker/generator_count;
l_rf_##C... | 56.45 | 310 | 0.592265 |
75e137374fcc51f7998523f7bd1867074639973b | 799 | swift | Swift | TransitApp/DirectionsTableFooterView.swift | pietro82/TransitApp | 95c70beb0ba74a3d81816bfb223ac6fce7918771 | [
"MIT"
] | null | null | null | TransitApp/DirectionsTableFooterView.swift | pietro82/TransitApp | 95c70beb0ba74a3d81816bfb223ac6fce7918771 | [
"MIT"
] | null | null | null | TransitApp/DirectionsTableFooterView.swift | pietro82/TransitApp | 95c70beb0ba74a3d81816bfb223ac6fce7918771 | [
"MIT"
] | null | null | null | //
// DirectionsTableFooterView.swift
// TransitApp
//
// Created by Pietro Santececca on 26/01/17.
// Copyright © 2017 Tecnojam. All rights reserved.
//
import UIKit
class DirectionsTableFooterView: UIView {
var footerModel: DirectionsOptionViewModel? {
didSet {
bindViewModel()
}... | 24.212121 | 93 | 0.669587 |
134329456648c61be216b22492e15baf659a4bc6 | 74,214 | rb | Ruby | buddy-bot/modules/tistory.rb | AnhNhan/discord-buddy-bot | 35e80263a47d422ea9495769adf446c906bf633a | [
"Apache-2.0"
] | 2 | 2018-02-06T19:24:50.000Z | 2018-04-03T10:07:57.000Z | buddy-bot/modules/tistory.rb | AnhNhan/discord-buddy-bot | 35e80263a47d422ea9495769adf446c906bf633a | [
"Apache-2.0"
] | 38 | 2018-03-08T14:10:37.000Z | 2021-09-27T21:34:23.000Z | buddy-bot/modules/tistory.rb | AnhNhan/discord-buddy-bot | 35e80263a47d422ea9495769adf446c906bf633a | [
"Apache-2.0"
] | null | null | null |
require 'cgi'
require 'tempfile'
require 'digest/md5'
require 'stringio'
require 'enumerator'
require 'base64'
require 'shellwords'
require 'aws-sdk'
require 'nokogiri'
require 'httparty'
require 'image_size'
require 'parallel'
require 'm3u8'
require 'discordrb'
require 'yaml'
require 'json'
require 'modules/buddy-... | 42.287179 | 349 | 0.637198 |
f4aece657af1dd9a7e874c50a459f37ddc8a3769 | 2,293 | dart | Dart | lib/src/utils/fee_calculator.dart | jffp113/algorand-dart | c0ab69beaee41ce6fb1d7865b4e4f1f422562ca3 | [
"MIT"
] | 30 | 2021-03-12T13:28:40.000Z | 2022-03-04T03:54:22.000Z | lib/src/utils/fee_calculator.dart | jffp113/algorand-dart | c0ab69beaee41ce6fb1d7865b4e4f1f422562ca3 | [
"MIT"
] | 29 | 2021-03-24T20:01:55.000Z | 2022-03-31T16:00:11.000Z | lib/src/utils/fee_calculator.dart | jffp113/algorand-dart | c0ab69beaee41ce6fb1d7865b4e4f1f422562ca3 | [
"MIT"
] | 9 | 2021-03-24T19:56:02.000Z | 2022-03-22T09:51:09.000Z | import 'package:algorand_dart/src/models/models.dart';
import 'package:algorand_dart/src/utils/encoders/msgpack_encoder.dart';
class FeeCalculator {
/// Calculate the total fee for a transaction.
/// This value is multiplied by the estimated size of the transaction in
/// bytes to determine the total transaction... | 33.720588 | 80 | 0.714348 |
ae2df9b50d909bbd548c84757e0fcde72a8beb2b | 3,025 | cs | C# | Code/Menu/MenuManager.cs | ben-gibbons-github/DuelBots | 411be02327a5f9df47b9a580b47cea24407e2e95 | [
"MIT"
] | null | null | null | Code/Menu/MenuManager.cs | ben-gibbons-github/DuelBots | 411be02327a5f9df47b9a580b47cea24407e2e95 | [
"MIT"
] | null | null | null | Code/Menu/MenuManager.cs | ben-gibbons-github/DuelBots | 411be02327a5f9df47b9a580b47cea24407e2e95 | [
"MIT"
] | null | null | null | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Input;
using Microsoft.Xna.Framework.Graphics;
namespace DuelBots
{
public class MenuManager
{
public static List<MenuBasic> CurrentMenus = new... | 29.368932 | 93 | 0.49686 |
0a98f064e554aec23900135b6e985631f37a31bf | 6,120 | cs | C# | src/ESFA.DC.ILR.ValidationService.Data.Population.Tests/Mappers/OrganisationsDataMapperTests.cs | SkillsFundingAgency/DC-ILR-2021-ValidationService | 85682bea33733974597573e7e7dc7137c5442056 | [
"MIT"
] | 1 | 2021-02-19T15:19:54.000Z | 2021-02-19T15:19:54.000Z | src/ESFA.DC.ILR.ValidationService.Data.Population.Tests/Mappers/OrganisationsDataMapperTests.cs | SkillsFundingAgency/DC-ILR-2021-ValidationService | 85682bea33733974597573e7e7dc7137c5442056 | [
"MIT"
] | null | null | null | src/ESFA.DC.ILR.ValidationService.Data.Population.Tests/Mappers/OrganisationsDataMapperTests.cs | SkillsFundingAgency/DC-ILR-2021-ValidationService | 85682bea33733974597573e7e7dc7137c5442056 | [
"MIT"
] | 2 | 2021-02-19T15:20:01.000Z | 2021-04-11T08:42:16.000Z | using System;
using System.Collections.Generic;
using ESFA.DC.ILR.ReferenceDataService.Model.Organisations;
using ESFA.DC.ILR.ValidationService.Data.External.Organisation.Model;
using ESFA.DC.ILR.ValidationService.Data.Population.Mappers;
using FluentAssertions;
using Xunit;
using Organisation = ESFA.DC.ILR.Validation... | 40.529801 | 112 | 0.455882 |
5e0c8a2310e9cae77cfa6e0e83a9302b3e8a61e0 | 983 | sql | SQL | openGaussBase/testcase/SQL/DDL/create_function/Opengauss_Function_DDL_Create_Function_Case0152.sql | opengauss-mirror/Yat | aef107a8304b94e5d99b4f1f36eb46755eb8919e | [
"MulanPSL-1.0"
] | null | null | null | openGaussBase/testcase/SQL/DDL/create_function/Opengauss_Function_DDL_Create_Function_Case0152.sql | opengauss-mirror/Yat | aef107a8304b94e5d99b4f1f36eb46755eb8919e | [
"MulanPSL-1.0"
] | null | null | null | openGaussBase/testcase/SQL/DDL/create_function/Opengauss_Function_DDL_Create_Function_Case0152.sql | opengauss-mirror/Yat | aef107a8304b94e5d99b4f1f36eb46755eb8919e | [
"MulanPSL-1.0"
] | null | null | null | -- @testpoint: 函数内部设置current_schema,执行完函数前后current_schema不变
--查询当前schema,默认是public
select current_schema;
--创建schema
drop schema if exists sc;
create schema sc;
--创建函数set current_schema
drop FUNCTION if EXISTS func_add_sql(integer, integer);
--创建函数
CREATE FUNCTION func_add_sql(integer, integer) RETURNS integer
a... | 26.567568 | 66 | 0.763988 |
f12d1a68e00698f00a702707b706a1cc4be3584a | 118 | rb | Ruby | spec/fabricators/case_test_fabricator.rb | dtf-gems/dtf-skeleton | 62a7f416a8d750733f9ad6ff5347c5c83dde9586 | [
"MIT"
] | 3 | 2015-10-10T11:12:00.000Z | 2016-06-21T22:33:00.000Z | spec/fabricators/case_test_fabricator.rb | dtf-gems/dtf-session | 6c0f0446c46e6cc5b9fbe2c54f49d53ed54d17f2 | [
"MIT"
] | 1 | 2021-09-22T23:56:33.000Z | 2021-09-22T23:56:33.000Z | spec/fabricators/case_test_fabricator.rb | dtf-gems/dtf-session | 6c0f0446c46e6cc5b9fbe2c54f49d53ed54d17f2 | [
"MIT"
] | 1 | 2019-01-13T04:06:52.000Z | 2019-01-13T04:06:52.000Z | # encoding: UTF-8
Fabricator(:case_test) do
description "Fabricated CT for DTF testing"
cmd "ruby --version"
end
| 16.857143 | 45 | 0.728814 |
2c6b1ccd0d2b417342408f09dc965571a45b7d51 | 1,177 | py | Python | tests/components/switch/common.py | Hypfer/home-assistant | 204ca3f3a6e24ef11ece2e2ee490a8d77553c147 | [
"Apache-2.0"
] | 1 | 2019-12-06T08:49:19.000Z | 2019-12-06T08:49:19.000Z | tests/components/switch/common.py | FuqiangSong/home-assistant | d5419b77f9c245e5af006143eb55ae4dda3f174e | [
"Apache-2.0"
] | 2 | 2021-02-08T20:39:43.000Z | 2021-09-08T01:36:57.000Z | tests/components/switch/common.py | FuqiangSong/home-assistant | d5419b77f9c245e5af006143eb55ae4dda3f174e | [
"Apache-2.0"
] | null | null | null | """Collection of helper methods.
All containing methods are legacy helpers that should not be used by new
components. Instead call the service directly.
"""
from homeassistant.components.switch import DOMAIN
from homeassistant.const import (
ATTR_ENTITY_ID,
SERVICE_TURN_OFF,
SERVICE_TURN_ON,
ENTITY_MAT... | 30.973684 | 81 | 0.761257 |
389999d8b4d3cd459e40e78202793d0da90b720a | 5,929 | php | PHP | app/Console/Commands/SubtitleCommand.php | haanhman/ox | 1a3a359094908a0999a72fb190ed9d353b2e08e7 | [
"MIT"
] | null | null | null | app/Console/Commands/SubtitleCommand.php | haanhman/ox | 1a3a359094908a0999a72fb190ed9d353b2e08e7 | [
"MIT"
] | null | null | null | app/Console/Commands/SubtitleCommand.php | haanhman/ox | 1a3a359094908a0999a72fb190ed9d353b2e08e7 | [
"MIT"
] | null | null | null | <?php
namespace App\Console\Commands;
use App\Criteria\FirstRecordCriteria;
use App\Entities\Youtube;
use App\Repositories\YoutubeRepository;
use Illuminate\Console\Command;
use Illuminate\Support\Facades\DB;
use Prettus\Repository\Criteria\RequestCriteria;
class SubtitleCommand extends Command
{
/**
* The ... | 30.096447 | 101 | 0.452184 |
cd75715a8822ba762346427d6cbaab76e0aee513 | 2,199 | cs | C# | src/CommandLineParser.Tests/CommandLineArgumentConstants.cs | wbbarr/CommandLineParser.NetCore | 17da6d60575ab030bdea09fa0c3ed21aea04e1c1 | [
"MIT"
] | null | null | null | src/CommandLineParser.Tests/CommandLineArgumentConstants.cs | wbbarr/CommandLineParser.NetCore | 17da6d60575ab030bdea09fa0c3ed21aea04e1c1 | [
"MIT"
] | null | null | null | src/CommandLineParser.Tests/CommandLineArgumentConstants.cs | wbbarr/CommandLineParser.NetCore | 17da6d60575ab030bdea09fa0c3ed21aea04e1c1 | [
"MIT"
] | null | null | null | namespace wbbarr.CommandLineParserNetCore.Tests
{
public static class SwitchTestConstants
{
public static readonly CommandLineSwitch ValidSwitch = new CommandLineSwitch()
{
Name = "switch",
Description = "A valid command line switch",
};
public static rea... | 37.271186 | 124 | 0.609368 |
1a415c76677faed0de0dae0c2a0fdda92f20b57c | 2,221 | py | Python | conflate/201904_park_ride/park_ride_idf_json.py | grischard/OSM_snippets | df3c69ab0d1496a636d760ac5546e6b5b011ea10 | [
"MIT"
] | 6 | 2017-05-05T22:22:37.000Z | 2020-04-02T09:20:34.000Z | conflate/201904_park_ride/park_ride_idf_json.py | grischard/OSM_snippets | df3c69ab0d1496a636d760ac5546e6b5b011ea10 | [
"MIT"
] | 33 | 2017-05-05T19:29:22.000Z | 2020-03-31T09:05:54.000Z | conflate/201904_park_ride/park_ride_idf_json.py | grischard/OSM_snippets | df3c69ab0d1496a636d760ac5546e6b5b011ea10 | [
"MIT"
] | 3 | 2017-05-16T20:43:13.000Z | 2020-04-02T09:20:37.000Z | import json
source = "Île-de-France Mobilités 04/2019"
no_dataset_id = True
query = [('park_ride', 'yes')]
master_tags = ('amenity',)
max_distance = 800
max_request_boxes = 3
overpass_timeout = 550
def dataset(fileobj):
import codecs
source = json.load(codecs.getreader('utf-8-sig')(fileobj))
#source = j... | 30.013514 | 75 | 0.529941 |
6dbf75764de37c795c394271b4abaa572ba4fb56 | 902 | h | C | ios/Classes/AmapSearchFluttifyPlugin.h | HongWeiChen/amap_search_fluttify | 4a8a094980c5461c95fd3dc69ed1ea5e64927186 | [
"Apache-2.0"
] | null | null | null | ios/Classes/AmapSearchFluttifyPlugin.h | HongWeiChen/amap_search_fluttify | 4a8a094980c5461c95fd3dc69ed1ea5e64927186 | [
"Apache-2.0"
] | null | null | null | ios/Classes/AmapSearchFluttifyPlugin.h | HongWeiChen/amap_search_fluttify | 4a8a094980c5461c95fd3dc69ed1ea5e64927186 | [
"Apache-2.0"
] | null | null | null | //////////////////////////////////////////////////////////
// GENERATED BY FLUTTIFY. DO NOT EDIT IT.
//////////////////////////////////////////////////////////
#import <Flutter/Flutter.h>
#import <AMapSearchKit/AMapSearchObj.h>
#import <AMapSearchKit/AMapCommonObj.h>
#import <AMapSearchKit/AMapSearchVersion.h>
#import... | 37.583333 | 114 | 0.713969 |
93189405408b304f29a37f8604cc98d0d14a8cff | 23,363 | cpp | C++ | SurfaceMeshProcessing/surfacemeshprocessing.cpp | ChunyangYe/MEBP_VLSM | 5e59f98bf34f10e5472ed13e6e19c3eb547f15c8 | [
"MIT"
] | 3 | 2020-12-24T02:33:48.000Z | 2021-11-30T10:38:26.000Z | SurfaceMeshProcessing/surfacemeshprocessing.cpp | ChunyangYe/MEBP_VLSM | 5e59f98bf34f10e5472ed13e6e19c3eb547f15c8 | [
"MIT"
] | null | null | null | SurfaceMeshProcessing/surfacemeshprocessing.cpp | ChunyangYe/MEBP_VLSM | 5e59f98bf34f10e5472ed13e6e19c3eb547f15c8 | [
"MIT"
] | 3 | 2020-10-09T07:16:33.000Z | 2021-07-28T03:39:33.000Z | #include "surfacemeshprocessing.h"
#include "MeshViewer/MainViewerWidget.h"
#include "MeshViewer/Aux_Transform_Mesh_Dialog.h"
SurfaceMeshProcessing::SurfaceMeshProcessing(QWidget *parent)
: QMainWindow(parent)
{
viewer = new MainViewerWidget(this);
setCentralWidget(viewer);
initWindow();
createActions();
createM... | 34.509601 | 114 | 0.782049 |
c2f3c0d7deb99d43837f7471ac7747ef7ba9fc6a | 8,565 | kt | Kotlin | SpringBootCommonBaseFrameLibraryFromLorenWang/src/javabase/lorenwang/common_base_frame/kotlinExtend/RequestExtend.kt | Seachal/LorenWangCustomTools | 7690a5b15ad84faa88856a57dba9145fcea0126b | [
"Apache-2.0"
] | 5 | 2019-06-13T11:47:48.000Z | 2021-09-09T03:56:13.000Z | SpringBootCommonBaseFrameLibraryFromLorenWang/src/javabase/lorenwang/common_base_frame/kotlinExtend/RequestExtend.kt | Seachal/LorenWangCustomTools | 7690a5b15ad84faa88856a57dba9145fcea0126b | [
"Apache-2.0"
] | null | null | null | SpringBootCommonBaseFrameLibraryFromLorenWang/src/javabase/lorenwang/common_base_frame/kotlinExtend/RequestExtend.kt | Seachal/LorenWangCustomTools | 7690a5b15ad84faa88856a57dba9145fcea0126b | [
"Apache-2.0"
] | 1 | 2021-04-13T03:45:58.000Z | 2021-04-13T03:45:58.000Z | package javabase.lorenwang.common_base_frame.kotlinExtend
import javabase.lorenwang.common_base_frame.SbcbflwCommon
import javabase.lorenwang.common_base_frame.controller.REQUEST_SET_USER_INFO_KEY
import javabase.lorenwang.common_base_frame.controller.SbcbflwBaseController
import javabase.lorenwang.common_base_frame.c... | 46.803279 | 261 | 0.66258 |
0f96b366169f0480fe5130a9fd3ab87278f18bda | 1,004 | dart | Dart | lib/text_slave.dart | hamatoma/text_butler | 95cd521cc3a3562e112808d5e888ffea8b84de45 | [
"CC0-1.0"
] | 1 | 2021-12-30T10:47:33.000Z | 2021-12-30T10:47:33.000Z | lib/text_slave.dart | hamatoma/text_butler | 95cd521cc3a3562e112808d5e888ffea8b84de45 | [
"CC0-1.0"
] | null | null | null | lib/text_slave.dart | hamatoma/text_butler | 95cd521cc3a3562e112808d5e888ffea8b84de45 | [
"CC0-1.0"
] | null | null | null | import 'text_butler_io.dart';
import 'dart:io';
void main(List<String> args) {
List<String>? script;
if (args.isEmpty) {
script = [];
String? line;
while ((line = stdin.readLineSync()) != null) {
script.add(line!);
}
} else if (args[0] == '-h' || args[0] == '--help') {
print('''Usage:
t... | 25.1 | 56 | 0.609562 |
e25168627588b6af6800b050544e598adb1f8a9e | 901 | py | Python | fang/fang/pipelines.py | XZH950926/meizitu | 536578fd9bc6fdcfecf8ff6cfe700c586eb3ef9f | [
"Apache-2.0"
] | null | null | null | fang/fang/pipelines.py | XZH950926/meizitu | 536578fd9bc6fdcfecf8ff6cfe700c586eb3ef9f | [
"Apache-2.0"
] | null | null | null | fang/fang/pipelines.py | XZH950926/meizitu | 536578fd9bc6fdcfecf8ff6cfe700c586eb3ef9f | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
# Define your item pipelines here
#
# Don't forget to add your pipeline to the ITEM_PIPELINES setting
# See: https://doc.scrapy.org/en/latest/topics/item-pipeline.html
import os
import json
Basedir=os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
class FangPipeline(object):
def p... | 36.04 | 67 | 0.659267 |
95a07391757321f5135c94bad685345744e26f33 | 4,459 | lua | Lua | Data/3_0/StatDescriptions/banner_aura_skill_stat_descriptions.lua | M-Schiller/PathOfBuilding | ddfb8ab996867a3c8bb3fcd337d59f80f36181f6 | [
"MIT"
] | 2 | 2019-03-06T09:24:23.000Z | 2019-03-18T05:58:03.000Z | Data/3_0/StatDescriptions/banner_aura_skill_stat_descriptions.lua | M-Schiller/PathOfBuilding | ddfb8ab996867a3c8bb3fcd337d59f80f36181f6 | [
"MIT"
] | null | null | null | Data/3_0/StatDescriptions/banner_aura_skill_stat_descriptions.lua | M-Schiller/PathOfBuilding | ddfb8ab996867a3c8bb3fcd337d59f80f36181f6 | [
"MIT"
] | null | null | null | return {[1]={["stats"]={[1]="buff_effect_duration"},["name"]="buff_duration",["lang"]={["English"]={[1]={[1]={["k"]="milliseconds_to_seconds_2dp",["v"]=1},["text"]="Banner lasts %1% seconds after being placed",["limit"]={[1]={[1]=1,[2]="#"}}}}}},[2]={["stats"]={[1]="banner_add_stage_on_impale"},["name"]="banner_add_sta... | 4,459 | 4,459 | 0.616954 |
b145641bcccda8aefa0023aa5dff533564ce0fa1 | 4,956 | py | Python | mitorch/datasets/image_dataset.py | shonohs/mitorch | 567a8390cc7a600280c51bc4e2a4e1c93fefc801 | [
"MIT"
] | null | null | null | mitorch/datasets/image_dataset.py | shonohs/mitorch | 567a8390cc7a600280c51bc4e2a4e1c93fefc801 | [
"MIT"
] | 1 | 2020-06-12T05:56:54.000Z | 2020-06-12T05:56:54.000Z | mitorch/datasets/image_dataset.py | shonohs/mitorch | 567a8390cc7a600280c51bc4e2a4e1c93fefc801 | [
"MIT"
] | null | null | null | import os
import pathlib
import zipfile
import PIL.Image
class ImageDataset:
def __init__(self, filename, transform):
filepath = pathlib.Path(filename)
self.transform = transform
self.images = []
self.base_dir = filepath.parent
self.reader = FileReader(self.base_dir)
... | 34.17931 | 130 | 0.623688 |
6369cfd3a8ce86315e19b1715f578dce7ef3d942 | 22,209 | sql | SQL | generators/app/templates/templates/template.sql | DieSchittigs/yeoman-contao | 1f40b530cd30444d89c6a96e24a23861457cb4d4 | [
"0BSD"
] | 6 | 2018-03-19T15:06:38.000Z | 2019-09-18T06:04:43.000Z | generators/app/templates/templates/template.sql | DieSchittigs/yeoman-contao | 1f40b530cd30444d89c6a96e24a23861457cb4d4 | [
"0BSD"
] | 7 | 2018-01-22T13:29:21.000Z | 2021-05-06T21:08:39.000Z | generators/app/templates/templates/template.sql | DieSchittigs/yeoman-contao | 1f40b530cd30444d89c6a96e24a23861457cb4d4 | [
"0BSD"
] | 2 | 2018-03-27T13:35:39.000Z | 2018-05-16T09:25:20.000Z | INSERT INTO `tl_article` (`id`, `pid`, `sorting`, `tstamp`, `title`, `alias`, `author`, `inColumn`, `keywords`, `showTeaser`, `teaserCssID`, `teaser`, `printable`, `customTpl`, `protected`, `groups`, `guests`, `cssID`, `published`, `start`, `stop`) VALUES (2, 2, 128, 1526669244, 'Welcome', 'index', 1, 'main', NULL, '',... | 2,467.666667 | 13,701 | 0.503354 |
447120ea5728b531f371399da2ab7f89a5a7cfe4 | 15,560 | py | Python | qtile/config.py | cartoon-raccoon/dotfiles | 9192e1ac6809bfbdc9d4f77a89e2e674b8b0f6c7 | [
"Unlicense"
] | null | null | null | qtile/config.py | cartoon-raccoon/dotfiles | 9192e1ac6809bfbdc9d4f77a89e2e674b8b0f6c7 | [
"Unlicense"
] | null | null | null | qtile/config.py | cartoon-raccoon/dotfiles | 9192e1ac6809bfbdc9d4f77a89e2e674b8b0f6c7 | [
"Unlicense"
] | 1 | 2021-09-05T14:34:50.000Z | 2021-09-05T14:34:50.000Z | ##### cartoon-raccoon's qtile config file #####
from typing import List # noqa: F401
from libqtile import bar, layout, widget
from libqtile.config import Click, Drag, Group, ScratchPad, DropDown, Key, KeyChord, Match, Screen, Rule
from libqtile.lazy import lazy
from libqtile.utils import guess_terminal
from libqtile... | 31.497976 | 122 | 0.53374 |
c45103fae85c5b24d05f15dc77d6287786bd5371 | 642 | sql | SQL | airbyte-integrations/bases/base-normalization/integration_tests/normalization_test_output/clickhouse/test_simple_streams/models/generated/airbyte_ctes/test_normalization/exchange_rate_ab3.sql | wissevrowl/airbyte | de56d4713cf15af42a4cd24e5744e790d9a98dd2 | [
"MIT"
] | null | null | null | airbyte-integrations/bases/base-normalization/integration_tests/normalization_test_output/clickhouse/test_simple_streams/models/generated/airbyte_ctes/test_normalization/exchange_rate_ab3.sql | wissevrowl/airbyte | de56d4713cf15af42a4cd24e5744e790d9a98dd2 | [
"MIT"
] | null | null | null | airbyte-integrations/bases/base-normalization/integration_tests/normalization_test_output/clickhouse/test_simple_streams/models/generated/airbyte_ctes/test_normalization/exchange_rate_ab3.sql | wissevrowl/airbyte | de56d4713cf15af42a4cd24e5744e790d9a98dd2 | [
"MIT"
] | null | null | null | {{ config(
unique_key = '_airbyte_ab_id',
schema = "_airbyte_test_normalization",
tags = [ "top-level-intermediate" ]
) }}
-- SQL model to build a hash column based on the values of this record
-- depends_on: {{ ref('exchange_rate_ab2') }}
select
{{ dbt_utils.surrogate_key([
'id',
'curre... | 25.68 | 70 | 0.599688 |
de2f0bc15ae97a363a0a4d0f155d0a4de94f0228 | 36,648 | sql | SQL | data/sql/galaxy/scripts/skills_skill_mods.sql | JohnShandy/swganh | d20d22a8dca2e9220a35af0f45f7935ca2eda531 | [
"MIT"
] | 1 | 2015-03-25T16:02:17.000Z | 2015-03-25T16:02:17.000Z | data/sql/galaxy/scripts/skills_skill_mods.sql | JohnShandy/swganh | d20d22a8dca2e9220a35af0f45f7935ca2eda531 | [
"MIT"
] | null | null | null | data/sql/galaxy/scripts/skills_skill_mods.sql | JohnShandy/swganh | d20d22a8dca2e9220a35af0f45f7935ca2eda531 | [
"MIT"
] | null | null | null |
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET NAMES utf8 */;
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
CREATE TABLE IF NOT EXISTS `skills_skill_mods` (
`skill_id` in... | 14.694467 | 111 | 0.520574 |
455ebcfbe6e377cb57360ec0596e894542519812 | 538 | py | Python | LeetCode/Math/Sum/167. Two Sum II - Input array is sorted.py | thehanemperor/LeetCode | 8d120162657a1e29c3e821b51ac4121300fc7a12 | [
"MIT"
] | null | null | null | LeetCode/Math/Sum/167. Two Sum II - Input array is sorted.py | thehanemperor/LeetCode | 8d120162657a1e29c3e821b51ac4121300fc7a12 | [
"MIT"
] | null | null | null | LeetCode/Math/Sum/167. Two Sum II - Input array is sorted.py | thehanemperor/LeetCode | 8d120162657a1e29c3e821b51ac4121300fc7a12 | [
"MIT"
] | null | null | null | # EASY
# Two pointer
# --> if < tar
# <-- if > tar
# Time O(N) Space O(1)
class Solution:
def twoSum(self, numbers: List[int], target: int) -> List[int]:
left,right = 0, len(numbers)-1
while left < right:
if numbers[left] + numbers[right] == target:
return [... | 28.315789 | 67 | 0.481413 |
a0a146fbae98df42fdfabc1dedaba18093f120a1 | 6,887 | sql | SQL | database/publisher.sql | directdemocracy-vote/publisher | b35ef93427b1ef3c9ddc4a19ac7077990705dbc5 | [
"MIT"
] | null | null | null | database/publisher.sql | directdemocracy-vote/publisher | b35ef93427b1ef3c9ddc4a19ac7077990705dbc5 | [
"MIT"
] | 10 | 2020-11-29T14:03:43.000Z | 2021-01-03T11:30:42.000Z | database/publisher.sql | directdemocracy-vote/publisher | b35ef93427b1ef3c9ddc4a19ac7077990705dbc5 | [
"MIT"
] | null | null | null | SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRANSACTION;
SET time_zone = "+00:00";
CREATE TABLE `area` (
`id` int(11) NOT NULL,
`name` varchar(1024) COLLATE utf8mb4_unicode_ci NOT NULL,
`polygons` multipolygon NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
CRE... | 34.60804 | 103 | 0.74706 |
ae7a765e9ece5605cfea60f186cae78473f80481 | 1,384 | sh | Shell | update-dependabot-pr/main.sh | taiki-e/github-actions | 308cd9cfc53d5f7318d6b68c8de3e18284414a27 | [
"Apache-2.0",
"MIT"
] | 1 | 2022-01-20T13:13:17.000Z | 2022-01-20T13:13:17.000Z | update-dependabot-pr/main.sh | taiki-e/github-actions | 308cd9cfc53d5f7318d6b68c8de3e18284414a27 | [
"Apache-2.0",
"MIT"
] | 3 | 2020-12-19T03:19:43.000Z | 2021-05-12T05:41:17.000Z | update-dependabot-pr/main.sh | taiki-e/github-actions | 308cd9cfc53d5f7318d6b68c8de3e18284414a27 | [
"Apache-2.0",
"MIT"
] | null | null | null | #!/bin/bash
set -euo pipefail
IFS=$'\n\t'
header="Accept: application/vnd.github.v3+json"
bail() {
echo "::error::$*"
exit 1
}
# https://docs.github.com/en/free-pro-team@latest/actions/reference/events-that-trigger-workflows#pull_request
if [[ ! "${GITHUB_REF:?}" =~ ^refs/pull/[0-9]+/merge$ ]]; then
bail... | 32.952381 | 110 | 0.598988 |
afa1cd8d10ec4805d27fab6291c2e5531f5c62a3 | 74 | py | Python | main.py | M-Mabrouk/GhostWriter | 07e5fa1cef4cd0e75559edfaf3d91e5a8b442f7f | [
"MIT"
] | 2 | 2020-02-27T07:21:33.000Z | 2020-06-24T12:54:30.000Z | main.py | M-Mabrouk/GhostWriter | 07e5fa1cef4cd0e75559edfaf3d91e5a8b442f7f | [
"MIT"
] | null | null | null | main.py | M-Mabrouk/GhostWriter | 07e5fa1cef4cd0e75559edfaf3d91e5a8b442f7f | [
"MIT"
] | 1 | 2020-06-27T13:30:20.000Z | 2020-06-27T13:30:20.000Z | from src.tracker import Tracker
if __name__ == "__main__":
Tracker()
| 14.8 | 31 | 0.702703 |
b74852cf6b49fdd7a4548f246d1826c40eeb58f6 | 1,515 | cs | C# | MQTTnet.Core/Server/MqttTopicFilterComparer.cs | Zazzmatazz/MQTTnet | 21130446c227e8e274c9916449c0f8816fec5974 | [
"MIT"
] | null | null | null | MQTTnet.Core/Server/MqttTopicFilterComparer.cs | Zazzmatazz/MQTTnet | 21130446c227e8e274c9916449c0f8816fec5974 | [
"MIT"
] | null | null | null | MQTTnet.Core/Server/MqttTopicFilterComparer.cs | Zazzmatazz/MQTTnet | 21130446c227e8e274c9916449c0f8816fec5974 | [
"MIT"
] | null | null | null | using System;
namespace MQTTnet.Core.Server
{
public static class MqttTopicFilterComparer
{
private const char TopicLevelSeparator = '/';
public static bool IsMatch(string topic, string filter)
{
if (topic == null) throw new ArgumentNullException(nameof(topic));
... | 28.055556 | 103 | 0.479208 |
9857a2a11a85bd3799afbc1815ac08ab2618192d | 40 | sql | SQL | veterinary/infraestructura/src/main/resources/sql/cita/listarById.sql | Richardace/adn-veterinary | e195e0e2499e1712ac3d8e507a6724b56b3a3385 | [
"Apache-2.0"
] | null | null | null | veterinary/infraestructura/src/main/resources/sql/cita/listarById.sql | Richardace/adn-veterinary | e195e0e2499e1712ac3d8e507a6724b56b3a3385 | [
"Apache-2.0"
] | null | null | null | veterinary/infraestructura/src/main/resources/sql/cita/listarById.sql | Richardace/adn-veterinary | e195e0e2499e1712ac3d8e507a6724b56b3a3385 | [
"Apache-2.0"
] | null | null | null | select *
from cita
where idUsuario = :id | 13.333333 | 21 | 0.75 |
538a6b4949934739aea5acc6e318b996a222ae5a | 501 | ps1 | PowerShell | delivery/windows-powershell/deliver.ps1 | vukhoa30/pulse-community | 457451e502cdfb21b32f22b7ef792b2045b86cb2 | [
"MIT"
] | null | null | null | delivery/windows-powershell/deliver.ps1 | vukhoa30/pulse-community | 457451e502cdfb21b32f22b7ef792b2045b86cb2 | [
"MIT"
] | null | null | null | delivery/windows-powershell/deliver.ps1 | vukhoa30/pulse-community | 457451e502cdfb21b32f22b7ef792b2045b86cb2 | [
"MIT"
] | null | null | null | $url = '<ENTER YOUR PARSER PULSE WEBHOOK HERE>'
$content = Get-Content "<ENTER YOUR RESULTS FILE NAME HERE>" -Raw
$bytes = [System.Text.Encoding]::UTF8.GetBytes($content)
$payload = [System.Convert]::ToBase64String($bytes)
$body = @{
'projectId' = '<ENTER YOUR QTEST PROJECT ID HERE>'
'testcycle' = '<ENTER YOUR QTES... | 35.785714 | 79 | 0.718563 |
dd6feb3ff87a70fb5039d1b45613d8591d1efad0 | 11,094 | java | Java | californium/src/main/java/ch/ethz/inf/vs/californium/coap/ObservingManager.java | fidakhattak/Californium-CoAP-Client | 0a1e0226efa32c5048d25c1724f0b5a4ab3c0168 | [
"BSD-3-Clause"
] | 1 | 2020-09-09T10:47:38.000Z | 2020-09-09T10:47:38.000Z | californium/src/main/java/ch/ethz/inf/vs/californium/coap/ObservingManager.java | fidakhattak/CoAPClient | ea5f75b920e40e529931a72b999158c28ae60ad0 | [
"BSD-3-Clause"
] | null | null | null | californium/src/main/java/ch/ethz/inf/vs/californium/coap/ObservingManager.java | fidakhattak/CoAPClient | ea5f75b920e40e529931a72b999158c28ae60ad0 | [
"BSD-3-Clause"
] | null | null | null | /*******************************************************************************
* Copyright (c) 2012, Institute for Pervasive Computing, ETH Zurich.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditi... | 37.353535 | 146 | 0.67532 |
c98d52655da6513ffbcc73feb2a6bd17bbfe94df | 1,642 | ts | TypeScript | src/utility/Waiter.ts | xyyaya/framework | df6c4850a43964078ebd052d9a4f26ef46af01b8 | [
"WTFPL"
] | null | null | null | src/utility/Waiter.ts | xyyaya/framework | df6c4850a43964078ebd052d9a4f26ef46af01b8 | [
"WTFPL"
] | null | null | null | src/utility/Waiter.ts | xyyaya/framework | df6c4850a43964078ebd052d9a4f26ef46af01b8 | [
"WTFPL"
] | null | null | null | import {TimeoutError} from './TimeoutError';
class Waiter<T> {
constructor() {
this.pool_ = new Map();
this.id_ = 0;
}
wait(ttlMs = 1000) {
const id = ++this.id_;
const timer = setTimeout(() => {
if (this.pool_.has(id)) {
const info = this.pool_.get(id);
info.reject(new Tim... | 24.147059 | 115 | 0.590134 |
e297ad47ba328fc2705f080ba028888d3103356e | 2,031 | js | JavaScript | commands/moderation/embed.js | Khanmanan/Hope | 89be6a81bda343e0e7a3f2007e821e01eb757bd0 | [
"Apache-2.0"
] | 3 | 2021-07-11T08:52:01.000Z | 2021-07-28T12:18:46.000Z | commands/moderation/embed.js | Khanmanan/Hope | 89be6a81bda343e0e7a3f2007e821e01eb757bd0 | [
"Apache-2.0"
] | null | null | null | commands/moderation/embed.js | Khanmanan/Hope | 89be6a81bda343e0e7a3f2007e821e01eb757bd0 | [
"Apache-2.0"
] | null | null | null | const { MessageEmbed } = require('discord.js');
const Command = require('../../structures/Command');
module.exports = class Embed extends Command {
constructor(...args) {
super(...args, {
name: 'embed',
aliases: ['embed-type', 'embed-announce'],
description: 'Say... | 52.076923 | 217 | 0.573117 |
7293467c91f07d2001099042f87927ede789163b | 1,220 | cs | C# | R7.HelpDesk/Controls/Comments.ascx.designer.cs | volgau/R7.HelpDesk | 7d6137fb9ef87fabaf5a0e1d83dd90b8679765aa | [
"MIT"
] | 2 | 2019-01-13T15:54:20.000Z | 2021-02-11T07:04:13.000Z | R7.HelpDesk/Controls/Comments.ascx.designer.cs | roman-yagodin/R7.HelpDesk | 7d6137fb9ef87fabaf5a0e1d83dd90b8679765aa | [
"MIT"
] | 3 | 2015-01-18T16:17:05.000Z | 2015-01-18T16:28:26.000Z | R7.HelpDesk/Controls/Comments.ascx.designer.cs | volgau/R7.HelpDesk | 7d6137fb9ef87fabaf5a0e1d83dd90b8679765aa | [
"MIT"
] | 2 | 2019-10-03T13:46:06.000Z | 2020-06-20T11:53:34.000Z | using System;
using System.Web.UI.WebControls;
namespace R7.HelpDesk
{
public partial class Comments
{
protected Panel pnlInsertComment;
protected Label lblAttachFile1;
protected FileUpload TicketFileUpload;
protected Label lblAttachFile2;
protected FileUpload fuAttachment;
protected Panel pn... | 27.111111 | 45 | 0.787705 |
f61a192ee228020fdbfb4c71a45f0de75b9c288e | 603 | hpp | C++ | Board.hpp | noahaim/Ex2_b | 4037e51ece5a58c8e1125e3cda262d299ed90037 | [
"MIT"
] | null | null | null | Board.hpp | noahaim/Ex2_b | 4037e51ece5a58c8e1125e3cda262d299ed90037 | [
"MIT"
] | null | null | null | Board.hpp | noahaim/Ex2_b | 4037e51ece5a58c8e1125e3cda262d299ed90037 | [
"MIT"
] | null | null | null | #include <string>
#include "Direction.hpp"
#include <map>
#define MAX_VALUE 4294967295
namespace ariel
{
class Board{
uint maxRow;
uint maxColumns;
uint minRow;
uint minColumn;
std::map<uint,std::map<uint,char>> board;
public:
Board(){
maxRow=0;
... | 25.125 | 83 | 0.58209 |
a14e754840d24d5570fe7972041c92ebe654e1a4 | 4,702 | kt | Kotlin | android/app/src/main/java/bg/crc/roamingapp/models/reportromaningzone/Bulgaria.kt | governmentbg/crc-roaming | afba722d8d25d2cd6bd1806378bc06a19b2c4c73 | [
"Apache-2.0"
] | null | null | null | android/app/src/main/java/bg/crc/roamingapp/models/reportromaningzone/Bulgaria.kt | governmentbg/crc-roaming | afba722d8d25d2cd6bd1806378bc06a19b2c4c73 | [
"Apache-2.0"
] | null | null | null | android/app/src/main/java/bg/crc/roamingapp/models/reportromaningzone/Bulgaria.kt | governmentbg/crc-roaming | afba722d8d25d2cd6bd1806378bc06a19b2c4c73 | [
"Apache-2.0"
] | 1 | 2021-12-30T10:00:30.000Z | 2021-12-30T10:00:30.000Z | package bg.crc.roamingapp.models.reportromaningzone
object Bulgaria {
val lat: DoubleArray = doubleArrayOf(
44.234862,
44.121071,
44.054292,
43.815290,
43.622034,
43.449791,
43.397904,
43.355117,
43.162424,
... | 23.277228 | 58 | 0.367078 |