hexsha
stringlengths
40
40
size
int64
5
2.06M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
248
max_stars_repo_name
stringlengths
5
125
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
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
248
max_issues_repo_name
stringlengths
5
125
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
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
248
max_forks_repo_name
stringlengths
5
125
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
2.06M
avg_line_length
float64
1
1.02M
max_line_length
int64
3
1.03M
alphanum_fraction
float64
0
1
count_classes
int64
0
1.6M
score_classes
float64
0
1
count_generators
int64
0
651k
score_generators
float64
0
1
count_decorators
int64
0
990k
score_decorators
float64
0
1
count_async_functions
int64
0
235k
score_async_functions
float64
0
1
count_documentation
int64
0
1.04M
score_documentation
float64
0
1
59adc6e4725be00b3a4565680e9bf5a9aec1470e
2,507
py
Python
src/eval_command.py
luoyan407/n-reference
f486b639dc824d296fe0e5ab7a4959e2aef7504c
[ "MIT" ]
7
2020-07-14T02:50:13.000Z
2021-05-11T05:50:51.000Z
src/eval_command.py
luoyan407/n-reference
f486b639dc824d296fe0e5ab7a4959e2aef7504c
[ "MIT" ]
1
2020-12-29T07:25:00.000Z
2021-01-05T01:15:47.000Z
src/eval_command.py
luoyan407/n-reference
f486b639dc824d296fe0e5ab7a4959e2aef7504c
[ "MIT" ]
3
2021-02-25T13:58:01.000Z
2021-08-10T05:49:27.000Z
import os, sys srcFolder = os.path.join(os.path.abspath(os.path.dirname(__file__)), 'src') sys.path.append(srcFolder) from metrics import nss from metrics import auc from metrics import cc from utils import * import numpy as np import argparse parser = argparse.ArgumentParser(description='Evaluate predicted saliency...
45.581818
122
0.717591
0
0
0
0
0
0
0
0
348
0.138811
59aea2d28a91ba70d32d02acede77adbfb29d245
482
py
Python
hieroskopia/utils/evaluator.py
AlbCM/hieroskopia
59ab7c9c4bb9315b84cd3b184dfc82c3d565e556
[ "MIT" ]
null
null
null
hieroskopia/utils/evaluator.py
AlbCM/hieroskopia
59ab7c9c4bb9315b84cd3b184dfc82c3d565e556
[ "MIT" ]
null
null
null
hieroskopia/utils/evaluator.py
AlbCM/hieroskopia
59ab7c9c4bb9315b84cd3b184dfc82c3d565e556
[ "MIT" ]
null
null
null
from pandas import Series class Evaluator: series: Series def __init__(self, series: Series): self.series = series self.unique_series = [value for value in self.series.dropna().unique()] def series_match(self, pattern: str): return Series(self.unique_series).astype(str).str.match...
30.125
90
0.690871
453
0.939834
0
0
0
0
0
0
0
0
59af05716663597c09c673680d272fcbf76c4851
294
py
Python
Graficos/grafico_barras.py
brendacgoncalves97/Graficos
250715bf8a0be9b9d39116be396d84512c79d45f
[ "MIT" ]
1
2021-07-14T13:33:02.000Z
2021-07-14T13:33:02.000Z
Graficos/grafico_barras.py
brendacgoncalves97/Graficos
250715bf8a0be9b9d39116be396d84512c79d45f
[ "MIT" ]
null
null
null
Graficos/grafico_barras.py
brendacgoncalves97/Graficos
250715bf8a0be9b9d39116be396d84512c79d45f
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Importação da biblioteca import matplotlib.pyplot as plt x = [1, 2, 3, 4, 5] y = [2, 3, 7, 1, 0] titulo = "Gráfico de barras" eixoX = "EixoX" eixoY = "EixoY" # Legendas plt.title(titulo) plt.xlabel(eixoX) plt.ylabel(eixoY) plt.bar(x, y) plt.show()
16.333333
32
0.602041
0
0
0
0
0
0
0
0
98
0.329966
59afd173c9893de34534a54b0f3445d6fe88b945
7,189
py
Python
fonts/Org_01.py
cnobile2012/Python-TFT
812a87e6f694eae338c3d9579ea98eae636f8f99
[ "MIT" ]
null
null
null
fonts/Org_01.py
cnobile2012/Python-TFT
812a87e6f694eae338c3d9579ea98eae636f8f99
[ "MIT" ]
null
null
null
fonts/Org_01.py
cnobile2012/Python-TFT
812a87e6f694eae338c3d9579ea98eae636f8f99
[ "MIT" ]
null
null
null
# Org_v01 by Orgdot (www.orgdot.com/aliasfonts). A tiny, # stylized font with all characters within a 6 pixel height. Org_01Bitmaps = [ 0xE8, 0xA0, 0x57, 0xD5, 0xF5, 0x00, 0xFD, 0x3E, 0x5F, 0x80, 0x88, 0x88, 0x88, 0x80, 0xF4, 0xBF, 0x2E, 0x80, 0x80, 0x6A, 0x40, 0x95, 0x80, 0xAA, 0x80, 0x5D, 0x00, 0xC0, 0x...
54.462121
75
0.335791
0
0
0
0
0
0
0
0
1,085
0.150925
59b00b4f37a6f1b8e5b3f8e0512fea304aa3d6eb
411
py
Python
vaas-app/src/vaas/manager/migrations/0005_director_service_mesh_label.py
allegro/vaas
3d2d1f1a9dae6ac69a13563a37f9bfdf4f986ae2
[ "Apache-2.0" ]
251
2015-09-02T10:50:51.000Z
2022-03-16T08:00:35.000Z
vaas-app/src/vaas/manager/migrations/0005_director_service_mesh_label.py
allegro/vaas
3d2d1f1a9dae6ac69a13563a37f9bfdf4f986ae2
[ "Apache-2.0" ]
154
2015-09-02T14:54:08.000Z
2022-03-16T08:34:17.000Z
vaas-app/src/vaas/manager/migrations/0005_director_service_mesh_label.py
allegro/vaas
3d2d1f1a9dae6ac69a13563a37f9bfdf4f986ae2
[ "Apache-2.0" ]
31
2015-09-03T07:51:05.000Z
2020-09-24T09:02:40.000Z
# Generated by Django 3.1.8 on 2021-05-26 11:09 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('manager', '0004_auto_20210519_1334'), ] operations = [ migrations.AddField( model_name='director', name='service_mes...
21.631579
63
0.610706
318
0.773723
0
0
0
0
0
0
113
0.274939
59b0bbb7000e474ae515947910be3e63863f01d7
1,053
py
Python
api/resources_portal/models/material_share_event.py
arielsvn/resources-portal
f5a25935e45ceb05e2f4738f567eec9ca8793441
[ "BSD-3-Clause" ]
null
null
null
api/resources_portal/models/material_share_event.py
arielsvn/resources-portal
f5a25935e45ceb05e2f4738f567eec9ca8793441
[ "BSD-3-Clause" ]
null
null
null
api/resources_portal/models/material_share_event.py
arielsvn/resources-portal
f5a25935e45ceb05e2f4738f567eec9ca8793441
[ "BSD-3-Clause" ]
null
null
null
from django.db import models from resources_portal.models.material import Material from resources_portal.models.user import User class MaterialShareEvent(models.Model): class Meta: db_table = "material_share_events" get_latest_by = "created_at" objects = models.Manager() created_at = mo...
25.682927
96
0.687559
920
0.873694
0
0
0
0
0
0
128
0.121557
59b0fd13274223a0798e641585901c741c9e0720
1,941
py
Python
datasets/nhse_stats/topics/archived_flu.py
nhsengland/publish-o-matic
dc8f16cb83a2360989afa44d887e63b5cde6af29
[ "MIT" ]
null
null
null
datasets/nhse_stats/topics/archived_flu.py
nhsengland/publish-o-matic
dc8f16cb83a2360989afa44d887e63b5cde6af29
[ "MIT" ]
11
2015-03-02T16:30:20.000Z
2016-11-29T12:16:15.000Z
datasets/nhse_stats/topics/archived_flu.py
nhsengland/publish-o-matic
dc8f16cb83a2360989afa44d887e63b5cde6af29
[ "MIT" ]
2
2020-12-25T20:38:31.000Z
2021-04-11T07:35:01.000Z
""" Archived flu data http://webarchive.nationalarchives.gov.uk/20130107105354/http://www.dh.gov.uk/en/Publicationsandstatistics/Statistics/Performancedataandstatistics/DailySituationReports/index.htm """ import collections import calendar import datetime import re import urllib from lxml.html import fromstring, tostr...
37.326923
187
0.725399
0
0
0
0
0
0
0
0
777
0.400309
59b1e67d3ab1f07d0144d6c862fa57ed097c01dd
213
py
Python
expenda_api/monthly_budgets/serializers.py
ihsaro/Expenda
5eb9115da633b025bd7d2f294deaecdc20674281
[ "Apache-2.0" ]
null
null
null
expenda_api/monthly_budgets/serializers.py
ihsaro/Expenda
5eb9115da633b025bd7d2f294deaecdc20674281
[ "Apache-2.0" ]
null
null
null
expenda_api/monthly_budgets/serializers.py
ihsaro/Expenda
5eb9115da633b025bd7d2f294deaecdc20674281
[ "Apache-2.0" ]
null
null
null
from rest_framework.serializers import ModelSerializer from .models import MonthlyBudget class MonthlyBudgetSerializer(ModelSerializer): class Meta: model = MonthlyBudget fields = '__all__'
21.3
54
0.760563
120
0.56338
0
0
0
0
0
0
9
0.042254
59ba9203063b76fa754fc6f24d65541dacb224e0
2,786
py
Python
features/steps/new-providers.py
lilydartdev/ppe-inventory
aaec9839fe324a3f96255756c15de45853bbb940
[ "MIT" ]
2
2020-10-06T11:33:02.000Z
2021-10-10T13:10:12.000Z
features/steps/new-providers.py
foundry4/ppe-inventory
1ee782aeec5bd3cd0140480f9bf58396eb11403b
[ "MIT" ]
1
2020-04-23T22:19:17.000Z
2020-04-23T22:19:17.000Z
features/steps/new-providers.py
foundry4/ppe-inventory
1ee782aeec5bd3cd0140480f9bf58396eb11403b
[ "MIT" ]
3
2020-05-26T11:41:40.000Z
2020-06-29T08:53:34.000Z
from behave import * from google.cloud import datastore import os import uuid import pandas as pd @given('site "{site}" exists') def step_impl(context, site): print(f'STEP: Given provider {site} exists') context.domain = os.getenv('DOMAIN') # Instantiates a client datastore_client = datastore.Client()...
34.395062
117
0.693108
0
0
0
0
2,667
0.957286
0
0
1,034
0.371141
59bafbd060c805be29e0312f879c03efc18325bc
2,137
py
Python
params.py
adarshchbs/disentanglement
77e74409cd0220dbfd9e2809688500dcb2ecf5a5
[ "MIT" ]
null
null
null
params.py
adarshchbs/disentanglement
77e74409cd0220dbfd9e2809688500dcb2ecf5a5
[ "MIT" ]
null
null
null
params.py
adarshchbs/disentanglement
77e74409cd0220dbfd9e2809688500dcb2ecf5a5
[ "MIT" ]
null
null
null
import os gpu_flag = False gpu_name = 'cpu' x_dim = 2048 num_class = 87 num_query = 5 batch_size = 84 eval_batch_size = 128 glove_dim = 200 pretrain_lr = 1e-4 num_epochs_pretrain = 20 eval_step_pre = 1 fusion_iter_len = 100000 # num_epochs_pretrain = 30 num_epochs_style = 30 num_epochs_fusion = 50 log_step_pre = ...
29.273973
69
0.801591
0
0
0
0
0
0
0
0
541
0.253159
59bb523ee1c7f0f47bac3fc8d75ede697eb27fb4
882
py
Python
remodet_repository_wdh_part/Projects/Rtpose/solverParam.py
UrwLee/Remo_experience
a59d5b9d6d009524672e415c77d056bc9dd88c72
[ "MIT" ]
null
null
null
remodet_repository_wdh_part/Projects/Rtpose/solverParam.py
UrwLee/Remo_experience
a59d5b9d6d009524672e415c77d056bc9dd88c72
[ "MIT" ]
null
null
null
remodet_repository_wdh_part/Projects/Rtpose/solverParam.py
UrwLee/Remo_experience
a59d5b9d6d009524672e415c77d056bc9dd88c72
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import print_function import caffe from caffe import params as P from google.protobuf import text_format #import inputParam import os import sys import math sys.path.append('../') from username import USERNAME sys.dont_write_bytecode = True # #####################################...
36.75
106
0.709751
0
0
0
0
0
0
0
0
482
0.546485
59bbb20f29672cea5fbe599708a44a6f4792d1f5
17,567
py
Python
tests/views/view_test_case.py
BMeu/Aerarium
119946cead727ef68b5ecea339990d982c006391
[ "MIT" ]
null
null
null
tests/views/view_test_case.py
BMeu/Aerarium
119946cead727ef68b5ecea339990d982c006391
[ "MIT" ]
139
2018-12-26T07:54:31.000Z
2021-06-01T23:14:45.000Z
tests/views/view_test_case.py
BMeu/Aerarium
119946cead727ef68b5ecea339990d982c006391
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from typing import Any from typing import Dict from typing import Optional from typing import Set from unittest import TestCase from flask import abort from app import create_app from app import db from app.configuration import TestConfiguration from app.userprofile import Permission from ap...
40.383908
120
0.632322
17,185
0.978255
0
0
2,024
0.115216
0
0
9,667
0.550293
59bd0619a2a8bf9b935ee21c0cf4d04a4238a3ac
1,483
py
Python
packtype/union.py
Intuity/packtype
bcd74dad8388883ddb4cfde40e1a11a14282dcbd
[ "Apache-2.0" ]
1
2021-09-08T21:42:33.000Z
2021-09-08T21:42:33.000Z
packtype/union.py
Intuity/packtype
bcd74dad8388883ddb4cfde40e1a11a14282dcbd
[ "Apache-2.0" ]
2
2021-12-30T17:43:04.000Z
2021-12-30T18:10:14.000Z
packtype/union.py
Intuity/packtype
bcd74dad8388883ddb4cfde40e1a11a14282dcbd
[ "Apache-2.0" ]
null
null
null
# Copyright 2021, Peter Birch, mailto:peter@lightlogic.co.uk # # 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 l...
39.026316
80
0.688469
790
0.532704
0
0
0
0
0
0
1,002
0.675657
59bd6a738434b3879975e016eb21f88fd1d0fd13
644
py
Python
ExerciseFiles/Ch03/03_07/03_07_Start.py
rlwheelwright/PY3_StandardLib
0d9acc02f5ca934eab774bbdd5acc3c92eff7191
[ "Apache-2.0" ]
null
null
null
ExerciseFiles/Ch03/03_07/03_07_Start.py
rlwheelwright/PY3_StandardLib
0d9acc02f5ca934eab774bbdd5acc3c92eff7191
[ "Apache-2.0" ]
null
null
null
ExerciseFiles/Ch03/03_07/03_07_Start.py
rlwheelwright/PY3_StandardLib
0d9acc02f5ca934eab774bbdd5acc3c92eff7191
[ "Apache-2.0" ]
null
null
null
# Zipfile Module import zipfile # Open and List zip = zipfile.ZipFile('Archive.zip', 'r') print(zip.namelist()) # Lists everything within zip file # Metadata in the zip folder for meta in zip.infolist(): # List of the metadata within zip file print(meta) info = zip.getinfo("purchased.txt") # Access to files in ...
24.769231
79
0.718944
0
0
0
0
0
0
0
0
388
0.602484
59bee126e5a1aef1b499b08431cc09a3c72eb295
4,059
py
Python
code/src/algorithm/algo.py
haloship/rec-sys-dynamics
886095eca8c71cc2f30d64f0b1da9a0a8f2f37f5
[ "MIT" ]
null
null
null
code/src/algorithm/algo.py
haloship/rec-sys-dynamics
886095eca8c71cc2f30d64f0b1da9a0a8f2f37f5
[ "MIT" ]
null
null
null
code/src/algorithm/algo.py
haloship/rec-sys-dynamics
886095eca8c71cc2f30d64f0b1da9a0a8f2f37f5
[ "MIT" ]
null
null
null
"""Recommendation Algorithm Base Class This module is a base class for algorithms using sparse matrices The required packages can be found in requirements.txt """ import pandas as pd import numpy as np from lenskit import batch, topn, util from lenskit import crossfold as xf from lenskit.algorithms import Recommende...
32.733871
84
0.652624
3,464
0.853412
0
0
606
0.149298
0
0
1,498
0.369056
59bf1bf5bc46d061cd8f9152d683ef35b28e4ff5
8,871
py
Python
resources/tvdbsimple/user.py
sergserg2/script.uptodate.imdb.ratings
091cafc2b2249dc757f877136b55fee86083c140
[ "Apache-2.0" ]
null
null
null
resources/tvdbsimple/user.py
sergserg2/script.uptodate.imdb.ratings
091cafc2b2249dc757f877136b55fee86083c140
[ "Apache-2.0" ]
null
null
null
resources/tvdbsimple/user.py
sergserg2/script.uptodate.imdb.ratings
091cafc2b2249dc757f877136b55fee86083c140
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """ This module implements the User functionality of TheTVDb API. Allows to retrieve, add and delete user favorites and ratings. See [Users API section](https://api.thetvdb.com/swagger#!/Users) """ from .base import TVDB class User(TVDB): """ User class to retrieve, add and delete us...
29.868687
94
0.557547
8,620
0.971706
94
0.010596
0
0
0
0
5,914
0.666667
59bf391cc29d920dbbc64d180ce68aef3842279a
14,178
py
Python
LR35902Arch.py
Lukas-Dresel/binja-GameBoy_LR35902
f4d34b0477c20d353f45e731a2a68ee83e5509e3
[ "MIT" ]
null
null
null
LR35902Arch.py
Lukas-Dresel/binja-GameBoy_LR35902
f4d34b0477c20d353f45e731a2a68ee83e5509e3
[ "MIT" ]
null
null
null
LR35902Arch.py
Lukas-Dresel/binja-GameBoy_LR35902
f4d34b0477c20d353f45e731a2a68ee83e5509e3
[ "MIT" ]
null
null
null
#!/usr/bin/env python import re from binaryninja.log import log_info from binaryninja.architecture import Architecture from binaryninja.function import RegisterInfo, InstructionInfo, InstructionTextToken from binaryninja.enums import InstructionTextTokenType, BranchType, FlagRole, LowLevelILFlagCondition from . impo...
38.010724
103
0.544576
13,658
0.963323
0
0
0
0
0
0
3,373
0.237904
59c07712f78b8701ce24892262492a52ef344906
278
py
Python
src/sftp/sftp_handle.py
IntercraftMC/intercraft-sftp
6b8a4e0f94fa5708a10b0239059c7e61d39e4b0f
[ "MIT" ]
null
null
null
src/sftp/sftp_handle.py
IntercraftMC/intercraft-sftp
6b8a4e0f94fa5708a10b0239059c7e61d39e4b0f
[ "MIT" ]
2
2019-03-05T14:07:36.000Z
2019-03-08T02:00:37.000Z
src/sftp/sftp_handle.py
IntercraftMC/intercraft-sftp
6b8a4e0f94fa5708a10b0239059c7e61d39e4b0f
[ "MIT" ]
null
null
null
import os import paramiko class SftpHandle(paramiko.SFTPHandle): def stat(self): try: return paramiko.SFTPAttributes.from_stat(os.fstat(self.readfile.fileno())) except OSError as e: return paramiko.SFTPServer.convert_errno(e.errno) def chattr(self, attr): pass
19.857143
77
0.758993
250
0.899281
0
0
0
0
0
0
0
0
59c36cd98ae3acd086f78aaa65bd7f255f2c8c8a
176
py
Python
tests/test_env.py
AERX-dev/MetaBuildHackathon
6ed437f1c60491502d04922270e88e778bd2288f
[ "MIT" ]
4
2022-02-28T18:30:40.000Z
2022-03-22T15:29:25.000Z
tests/test_env.py
AERX-dev/MetaBuildHackathon
6ed437f1c60491502d04922270e88e778bd2288f
[ "MIT" ]
5
2022-02-22T23:04:59.000Z
2022-03-22T00:47:59.000Z
tests/test_env.py
AERX-dev/MetaBuildHackathon
6ed437f1c60491502d04922270e88e778bd2288f
[ "MIT" ]
2
2022-03-05T15:54:47.000Z
2022-03-31T09:05:28.000Z
from brownie import ETH_ADDRESS, accounts def test_brownie(): """Test if the brownie module is working. """ acc = accounts[0] assert type(acc.address) == str
19.555556
45
0.664773
0
0
0
0
0
0
0
0
49
0.278409
59c3e17fa8af255a1451fdfdd7e503426c323a8e
5,023
py
Python
src/main.py
possoj/Mobile-URSONet
1db664091f4a0daa2925174a67c21d20a1ed4db3
[ "MIT" ]
null
null
null
src/main.py
possoj/Mobile-URSONet
1db664091f4a0daa2925174a67c21d20a1ed4db3
[ "MIT" ]
null
null
null
src/main.py
possoj/Mobile-URSONet
1db664091f4a0daa2925174a67c21d20a1ed4db3
[ "MIT" ]
null
null
null
""" Copyright (c) 2022 Julien Posso """ import torch import optuna from config import Config from pose_net import POSENet from submission import SubmissionWriter from print_results import print_training_loss, print_training_score, print_beta_tuning, print_error_distance import os import numpy as np import random def...
39.865079
120
0.665539
0
0
0
0
0
0
0
0
1,782
0.354768
59c4557276ecc1c473640fffbc5008ee28b54ede
526
py
Python
ipc_playground/MessageRegister.py
kingkw1/ipc_playground
95c265de1e92e075e82b02b241ec181b565ce8e1
[ "MIT" ]
1
2019-01-15T10:31:40.000Z
2019-01-15T10:31:40.000Z
ipc_playground/MessageRegister.py
kingkw1/ipc_playground
95c265de1e92e075e82b02b241ec181b565ce8e1
[ "MIT" ]
null
null
null
ipc_playground/MessageRegister.py
kingkw1/ipc_playground
95c265de1e92e075e82b02b241ec181b565ce8e1
[ "MIT" ]
null
null
null
from enum import IntEnum, unique """Stores the unique values for interpretting message signatures and command types. Extra key-value pairs have been added to simply to demonstrate how to modify this file. Not all key-value pairs have not implemented. """ @unique class MessageSource(IntEnum): UNKNOWN = 0 TEST...
27.684211
133
0.745247
249
0.473384
0
0
265
0.503802
0
0
307
0.58365
59c55dd1d2d8290c9a483ce4efd76296c72441ee
1,482
py
Python
run_time/src/gae_server/third_party/old-fonttools-master/Lib/fontTools/misc/fixedTools.py
moyogo/tachyfont
05c8b3e7357e7a13af37ef81b719a0ff749105a5
[ "Apache-2.0" ]
2
2019-05-24T18:19:18.000Z
2020-09-17T10:23:13.000Z
run_time/src/gae_server/third_party/old-fonttools-master/Lib/fontTools/misc/fixedTools.py
moyogo/tachyfont
05c8b3e7357e7a13af37ef81b719a0ff749105a5
[ "Apache-2.0" ]
9
2019-06-15T21:31:27.000Z
2021-05-08T18:55:51.000Z
run_time/src/gae_server/third_party/old-fonttools-master/Lib/fontTools/misc/fixedTools.py
moyogo/tachyfont
05c8b3e7357e7a13af37ef81b719a0ff749105a5
[ "Apache-2.0" ]
null
null
null
"""fontTools.misc.fixedTools.py -- tools for working with fixed numbers. """ from __future__ import print_function, division, absolute_import from fontTools.misc.py23 import * __all__ = [ "fixedToFloat", "floatToFixed", ] def fixedToFloat(value, precisionBits): """Converts a fixed-point number to a float, c...
22.454545
72
0.669366
0
0
0
0
0
0
0
0
738
0.497976
59c742adf96364dce950bb712608164f85d74648
3,548
py
Python
action_hero/__init__.py
sobolevn/action-hero
75ff10dc8b01ee8d00367c63e8eccbbee9cc7d42
[ "MIT" ]
91
2019-09-26T20:55:55.000Z
2021-10-19T22:27:21.000Z
action_hero/__init__.py
kadimisetty/action-heroes
f203e2e130dce970db803d6447bf7518c5e54285
[ "MIT" ]
1
2020-02-07T02:51:40.000Z
2020-02-07T02:51:40.000Z
action_hero/__init__.py
kadimisetty/action-heroes
f203e2e130dce970db803d6447bf7518c5e54285
[ "MIT" ]
5
2020-02-02T03:40:47.000Z
2020-11-05T10:53:11.000Z
from action_hero.utils import PipelineAction, DebugAction from action_hero.net import ( EmailIsValidAction, IPIsValidIPAddressAction, IPIsValidIPv4AddressAction, IPIsValidIPv6AddressAction, URLIsNotReachableAction, URLIsReachableAction, URLWithHTTPResponseStatusCodeAction, ) from action_hero...
26.477612
57
0.748027
0
0
0
0
0
0
0
0
1,413
0.398253
59c911d5e0c8485540b7cc8e8e2d8d57369a43f1
725
py
Python
Class3/selenium_waits.py
techsparksguru/python_ci_automation
65e66266fdf2c14f593c6f098a23770621faef41
[ "MIT" ]
null
null
null
Class3/selenium_waits.py
techsparksguru/python_ci_automation
65e66266fdf2c14f593c6f098a23770621faef41
[ "MIT" ]
9
2020-02-13T09:14:12.000Z
2022-01-13T03:17:03.000Z
Class3/selenium_waits.py
techsparksguru/python_ci_automation
65e66266fdf2c14f593c6f098a23770621faef41
[ "MIT" ]
1
2021-03-10T03:27:37.000Z
2021-03-10T03:27:37.000Z
from selenium import webdriver from selenium.webdriver.common.by import By from selenium.webdriver.support.ui import WebDriverWait from selenium.webdriver.support import expected_conditions as EC # import selenium exceptions module from selenium.common.exceptions import * browser = webdriver.Chrome() browser.get("ht...
30.208333
71
0.787586
0
0
0
0
0
0
0
0
195
0.268966
59cb2e8f401ebf77f3a739d719001e9eb7a93754
1,670
py
Python
stacker/lookups/cognito-user-pool-app-client-secret-lookup.py
pataraco/hart_challenge
47872a17b5ade54620df92a27d0ece2a8dfa6f07
[ "MIT" ]
null
null
null
stacker/lookups/cognito-user-pool-app-client-secret-lookup.py
pataraco/hart_challenge
47872a17b5ade54620df92a27d0ece2a8dfa6f07
[ "MIT" ]
2
2020-04-15T16:39:18.000Z
2021-05-11T15:24:56.000Z
stacker/lookups/cognito-user-pool-app-client-secret-lookup.py
pataraco/scripts
14ac6e10369ad3cc56eb7ce45adc87acd8935b60
[ "MIT" ]
1
2017-05-28T10:45:14.000Z
2017-05-28T10:45:14.000Z
"""Stacker custom lookup to get a Cognito User Pool App Client Secret.""" import logging from stacker.session_cache import get_session TYPE_NAME = 'CognitoUserPoolAppClientSecret' LOGGER = logging.getLogger(__name__) def handler(value, provider, **kwargs): # pylint: disable=W0613 """ Lookup a Cognito User Pool ...
32.745098
94
0.673653
0
0
0
0
0
0
0
0
912
0.546108
59cb4b5a7e4e4de46f30f0ecb9a11b2447b40fad
884
py
Python
web/core/migrations/0089_auto_20201118_1234.py
MTES-MCT/biocarburants
ff084916e18cdbdc41400f36fa6cc76a5e05900e
[ "MIT" ]
4
2020-03-22T18:13:12.000Z
2021-01-25T10:33:31.000Z
web/core/migrations/0089_auto_20201118_1234.py
MTES-MCT/carbure
2876756b760ab4866fa783bb40e61a046eebb1ab
[ "MIT" ]
20
2020-07-06T14:33:14.000Z
2022-03-15T16:54:17.000Z
web/core/migrations/0089_auto_20201118_1234.py
MTES-MCT/biocarburants
ff084916e18cdbdc41400f36fa6cc76a5e05900e
[ "MIT" ]
4
2020-04-03T12:19:12.000Z
2021-06-15T12:20:57.000Z
# Generated by Django 3.0.7 on 2020-11-18 11:34 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('core', '0088_matierepremiere_is_huile_vegetale'), ] operations = [ migrations.AddField( model_name='depot', name='ad...
28.516129
128
0.578054
791
0.894796
0
0
0
0
0
0
202
0.228507
59cbb8472e1057ce2bd992ed7975f6ff17e93e2b
4,202
py
Python
src/year2018/day07a.py
lancelote/advent_of_code
06dda6ca034bc1e86addee7798bb9b2a34ff565b
[ "Unlicense" ]
10
2017-12-11T17:54:52.000Z
2021-12-09T20:16:30.000Z
src/year2018/day07a.py
lancelote/advent_of_code
06dda6ca034bc1e86addee7798bb9b2a34ff565b
[ "Unlicense" ]
260
2015-12-09T11:03:03.000Z
2021-12-12T14:32:23.000Z
src/year2018/day07a.py
lancelote/advent_of_code
06dda6ca034bc1e86addee7798bb9b2a34ff565b
[ "Unlicense" ]
null
null
null
r"""2018 - Day 7 Part 1: The Sum of Its Parts. You find yourself standing on a snow-covered coastline; apparently, you landed a little off course. The region is too hilly to see the North Pole from here, but you do spot some Elves that seem to be trying to unpack something that washed ashore. It's quite cold out, so y...
36.859649
79
0.706568
0
0
364
0.086625
0
0
0
0
2,999
0.713708
59ce58e16e5fcb0888195cc28df1fb18bde585db
419
py
Python
tests/test_TftWatcher.py
TheBoringBakery/Riot-Watcher
6e05fffe127530a75fd63e67da37ba81489fd4fe
[ "MIT" ]
2
2020-10-06T23:33:01.000Z
2020-11-22T01:58:43.000Z
tests/test_TftWatcher.py
TheBoringBakery/Riot-Watcher
6e05fffe127530a75fd63e67da37ba81489fd4fe
[ "MIT" ]
null
null
null
tests/test_TftWatcher.py
TheBoringBakery/Riot-Watcher
6e05fffe127530a75fd63e67da37ba81489fd4fe
[ "MIT" ]
null
null
null
import pytest from riotwatcher import TftWatcher @pytest.mark.tft @pytest.mark.usefixtures("reset_globals") class TestTftWatcher: def test_require_api_key(self): with pytest.raises(ValueError): TftWatcher() def test_allows_positional_api_key(self): TftWatcher("RGAPI-this-is-a-fak...
23.277778
50
0.720764
307
0.732697
0
0
366
0.873508
0
0
59
0.140811
59cffb75f77e318a5d2a6eaf36504527fb164588
12,140
py
Python
functions_utils.py
b-mu/kbfgs_neurips2020_public
f9e8300211dee764e0a669d50a7176f83a28034a
[ "MIT" ]
null
null
null
functions_utils.py
b-mu/kbfgs_neurips2020_public
f9e8300211dee764e0a669d50a7176f83a28034a
[ "MIT" ]
null
null
null
functions_utils.py
b-mu/kbfgs_neurips2020_public
f9e8300211dee764e0a669d50a7176f83a28034a
[ "MIT" ]
null
null
null
import torch import torch.nn as nn import torch.nn.functional as F import numpy as np import scipy import copy def get_loss_from_z(model, z, t, reduction): if model.name_loss == 'multi-class classification': criterion = torch.nn.CrossEntropyLoss() loss = criterion(z, t.type(torch.LongTensor).to(z...
31.28866
114
0.590198
0
0
0
0
0
0
0
0
712
0.058649
59d013d73876feaa26a2738bca986d2343c60672
38
py
Python
cours/texte-et-binaire/tmp/main.py
boisgera/python-fr
583f7eae7baa949461464e9b53a415be16c1dd3e
[ "CC-BY-4.0" ]
null
null
null
cours/texte-et-binaire/tmp/main.py
boisgera/python-fr
583f7eae7baa949461464e9b53a415be16c1dd3e
[ "CC-BY-4.0" ]
null
null
null
cours/texte-et-binaire/tmp/main.py
boisgera/python-fr
583f7eae7baa949461464e9b53a415be16c1dd3e
[ "CC-BY-4.0" ]
null
null
null
print("Hello") 1 / 0 print("world!")
7.6
15
0.578947
0
0
0
0
0
0
0
0
15
0.394737
59d047316597f7b57f9b2c7cb27c13bfdbf4f731
924
py
Python
mpos/models/milk_collection.py
cackharot/ngen-milk-pos
4814bdbc6bddf02530ff10e1ec842fb316b0fa91
[ "Apache-2.0" ]
null
null
null
mpos/models/milk_collection.py
cackharot/ngen-milk-pos
4814bdbc6bddf02530ff10e1ec842fb316b0fa91
[ "Apache-2.0" ]
null
null
null
mpos/models/milk_collection.py
cackharot/ngen-milk-pos
4814bdbc6bddf02530ff10e1ec842fb316b0fa91
[ "Apache-2.0" ]
1
2019-04-24T06:11:47.000Z
2019-04-24T06:11:47.000Z
from db_manager import db class MilkCollection(db.Model): id = db.Column(db.Integer, primary_key=True) shift = db.Column(db.String(80)) member_id = db.Column(db.Integer, db.ForeignKey('member.id')) member = db.relationship('Member', backref=db.backref('milk_collections', lazy='dynamic')) ...
36.96
65
0.687229
896
0.969697
0
0
0
0
0
0
46
0.049784
59d34d92fd7a34250d7ea36c0e7b42576a6d3121
1,332
py
Python
p352_Data_Stream_as_Disjoint_Intervals.py
bzhou26/leetcode_sol
82506521e2cc412f96cd1dfc3c8c3ab635f67f73
[ "MIT" ]
null
null
null
p352_Data_Stream_as_Disjoint_Intervals.py
bzhou26/leetcode_sol
82506521e2cc412f96cd1dfc3c8c3ab635f67f73
[ "MIT" ]
null
null
null
p352_Data_Stream_as_Disjoint_Intervals.py
bzhou26/leetcode_sol
82506521e2cc412f96cd1dfc3c8c3ab635f67f73
[ "MIT" ]
null
null
null
''' - Leetcode problem: 352 - Difficulty: Hard - Brief problem description: Given a data stream input of non-negative integers a1, a2, ..., an, ..., summarize the numbers seen so far as a list of disjoint intervals. For example, suppose the integers from the data stream are 1, 3, 7, 2, 6, ..., then the summary will...
23.368421
119
0.594595
599
0.4497
0
0
0
0
0
0
800
0.600601
59d7bc70d0cd6ce2ad0e48f732a97f7f77c87753
476
py
Python
mongo_test/utils/dal/__init__.py
Vuong02011996/data_base_test
a57940970ce52a25e10f2262fb94530b1ae2681c
[ "MIT" ]
null
null
null
mongo_test/utils/dal/__init__.py
Vuong02011996/data_base_test
a57940970ce52a25e10f2262fb94530b1ae2681c
[ "MIT" ]
null
null
null
mongo_test/utils/dal/__init__.py
Vuong02011996/data_base_test
a57940970ce52a25e10f2262fb94530b1ae2681c
[ "MIT" ]
null
null
null
from mongo_test.utils.dal.identity_dal import * from mongo_test.utils.dal.object_dal import * from mongo_test.utils.dal.detection_dal import * from mongo_test.utils.dal.user_dal import * from mongo_test.utils.dal.process_dal import * from mongo_test.utils.dal.camera_dal import * from mongo_test.utils.dal.logger_dal imp...
47.6
54
0.834034
0
0
0
0
0
0
0
0
0
0
59d7e8494ca25c551fbec6bc143f2353d97b0f85
42
py
Python
d3ct/plugins/out/__init__.py
metro-nom/d3ct
2d619b46fac7de29c031a3737570ca62e33d8c2f
[ "BSD-3-Clause" ]
null
null
null
d3ct/plugins/out/__init__.py
metro-nom/d3ct
2d619b46fac7de29c031a3737570ca62e33d8c2f
[ "BSD-3-Clause" ]
null
null
null
d3ct/plugins/out/__init__.py
metro-nom/d3ct
2d619b46fac7de29c031a3737570ca62e33d8c2f
[ "BSD-3-Clause" ]
null
null
null
# flake8: noqa from .stdout import StdOut
14
26
0.761905
0
0
0
0
0
0
0
0
14
0.333333
59d815953d3974c813c0ea240136e075037f3a4c
2,032
py
Python
.SpaceVim/bundle/fcitx.vim/plugin/fcitx.py
LimeIncOfficial/Black-Box
2361e5a9683aaa90bad26e58b80df55675de88a6
[ "MIT" ]
2
2022-03-26T09:14:20.000Z
2022-03-26T17:04:43.000Z
.SpaceVim/bundle/fcitx.vim/plugin/fcitx.py
LimeIncOfficial/Black-Box
2361e5a9683aaa90bad26e58b80df55675de88a6
[ "MIT" ]
null
null
null
.SpaceVim/bundle/fcitx.vim/plugin/fcitx.py
LimeIncOfficial/Black-Box
2361e5a9683aaa90bad26e58b80df55675de88a6
[ "MIT" ]
null
null
null
# vim:fileencoding=utf-8 import os import vim import socket import struct import contextlib fcitxsocketfile = vim.eval('s:fcitxsocketfile') class FcitxComm(object): STATUS = struct.pack('i', 0) ACTIVATE = struct.pack('i', 1 | (1 << 16)) DEACTIVATE = struct.pack('i', 1) INT_SIZE = struct.calcsize('i')...
25.721519
105
0.645669
1,528
0.751969
0
0
0
0
0
0
328
0.161417
59d8eb391e49f53fa6bd3a0f7066dcb0749c813d
4,373
py
Python
app/check.py
MePyDo/pygqa
61cde42ee815968fdd029cc5056ede3badea3d91
[ "MIT" ]
3
2021-02-25T13:19:52.000Z
2021-03-03T03:46:46.000Z
app/check.py
MedPhyDO/pygqa
580b2c6028d2299790a38262b795b8409cbfcc37
[ "MIT" ]
null
null
null
app/check.py
MedPhyDO/pygqa
580b2c6028d2299790a38262b795b8409cbfcc37
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- __author__ = "R. Bauer" __copyright__ = "MedPhyDO - Machbarkeitsstudien des Instituts für Medizinische Strahlenphysik und Strahlenschutz am Klinikum Dortmund im Rahmen von Bachelor und Masterarbeiten an der TU-Dortmund / FH-Dortmund" __credits__ = ["R.Bauer", "K.Loot"] __license__ = "MIT" __ver...
31.460432
209
0.552938
3,893
0.88861
0
0
0
0
0
0
2,937
0.670395
59dbf8fbac1799a8d37a328c84598c10251b5f6b
2,499
py
Python
resume/migrations/0001_initial.py
jshaarda/resume_app
a2470966153f673529324e3beb97a35090873c75
[ "CC0-1.0" ]
null
null
null
resume/migrations/0001_initial.py
jshaarda/resume_app
a2470966153f673529324e3beb97a35090873c75
[ "CC0-1.0" ]
null
null
null
resume/migrations/0001_initial.py
jshaarda/resume_app
a2470966153f673529324e3beb97a35090873c75
[ "CC0-1.0" ]
null
null
null
# Generated by Django 3.1.2 on 2020-10-28 05:15 from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Contribution', fields=[ ('id', models.AutoF...
37.863636
198
0.517407
2,406
0.962785
0
0
0
0
0
0
478
0.191277
59de4c7689c2768a33575c05886260864bed92d5
4,354
py
Python
src/services/weixin.py
jizhouli/ladder-tournament
0ecc072e79416f91f344a184d54ba4e5cf1a3167
[ "MIT" ]
null
null
null
src/services/weixin.py
jizhouli/ladder-tournament
0ecc072e79416f91f344a184d54ba4e5cf1a3167
[ "MIT" ]
null
null
null
src/services/weixin.py
jizhouli/ladder-tournament
0ecc072e79416f91f344a184d54ba4e5cf1a3167
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import hashlib import base64 from Crypto.Cipher import AES import json from src.services.utils import Request class WXAPPError(Exception): def __init__(self, code, description): self.code = code self.description = description def __str__(self): return '%s: %s' ...
34.015625
85
0.590492
4,259
0.967515
0
0
0
0
0
0
584
0.132667
59de4f9a0481ba9dea9ad73ed402abe9cfca87bf
15,265
py
Python
Aplicacao/app.py
JuniorB5/App-desktop-caderno-de-contas
7f57656012e70a8641945d9b4caeb81adf6d25b2
[ "MIT" ]
null
null
null
Aplicacao/app.py
JuniorB5/App-desktop-caderno-de-contas
7f57656012e70a8641945d9b4caeb81adf6d25b2
[ "MIT" ]
null
null
null
Aplicacao/app.py
JuniorB5/App-desktop-caderno-de-contas
7f57656012e70a8641945d9b4caeb81adf6d25b2
[ "MIT" ]
null
null
null
from tkinter import * from placeholder import EntPlaceHold from gradiente import GradientFrame from tkinter import ttk, messagebox from funcoes_sqlite import FuncsSqlite from funcoes_txt import ArquivosTexto import os class Front(FuncsSqlite, ArquivosTexto): def __init__(self): self.window = Tk() ...
42.402778
151
0.634261
15,102
0.983651
0
0
0
0
0
0
4,064
0.264704
59df0b240a9d3b4933dccd2e6dff935a33c55f00
33
py
Python
nasbench301/surrogate_models/bananas/bananas_src/bo/dom/__init__.py
Basvanstein/nasbench301
2984dec45c760d47762f50efe39b71e9d1ac22e0
[ "Apache-2.0" ]
167
2019-10-26T19:54:49.000Z
2021-12-14T15:25:32.000Z
nasbench301/surrogate_models/bananas/bananas_src/bo/dom/__init__.py
Basvanstein/nasbench301
2984dec45c760d47762f50efe39b71e9d1ac22e0
[ "Apache-2.0" ]
12
2020-11-07T12:50:19.000Z
2022-01-21T08:52:53.000Z
nasbench301/surrogate_models/bananas/bananas_src/bo/dom/__init__.py
Basvanstein/nasbench301
2984dec45c760d47762f50efe39b71e9d1ac22e0
[ "Apache-2.0" ]
23
2019-10-28T12:26:32.000Z
2020-10-12T12:31:39.000Z
""" Code for domain classes. """
8.25
24
0.606061
0
0
0
0
0
0
0
0
32
0.969697
59e4f79fb23ffe95401e5b38745cbc03d452f5e7
164
py
Python
BrowniePoints/CryptoVinaigrette/__init__.py
avinashshenoy97/brownie-points
27eb1e9a5ab685e72a5b701c0f76af44d9700960
[ "MIT" ]
1
2020-11-25T12:14:40.000Z
2020-11-25T12:14:40.000Z
BrowniePoints/CryptoVinaigrette/__init__.py
avinashshenoy97/brownie-points
27eb1e9a5ab685e72a5b701c0f76af44d9700960
[ "MIT" ]
null
null
null
BrowniePoints/CryptoVinaigrette/__init__.py
avinashshenoy97/brownie-points
27eb1e9a5ab685e72a5b701c0f76af44d9700960
[ "MIT" ]
null
null
null
import sys import os __all__ = [] __version__ = '0.0.1' sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(__file__), '.' + '/CryptoVinaigrette')))
18.222222
104
0.689024
0
0
0
0
0
0
0
0
30
0.182927
59e68f6b671a9c6215090e86777cb82fbf2376fb
586
py
Python
app/api/mock_server.py
Peopple-Shopping-App/mockserver
c38c3f325e44f4eaba39cdbe24544e3181307218
[ "MIT" ]
1
2021-07-23T03:43:19.000Z
2021-07-23T03:43:19.000Z
app/api/mock_server.py
Peopple-Shopping-App/mockserver
c38c3f325e44f4eaba39cdbe24544e3181307218
[ "MIT" ]
null
null
null
app/api/mock_server.py
Peopple-Shopping-App/mockserver
c38c3f325e44f4eaba39cdbe24544e3181307218
[ "MIT" ]
null
null
null
import json import os.path import falcon from app.__root__ import __path__ class MockServerResource: def __init__(self): self.__root_path__ = __path__() async def on_get(self, req, resp, route: str): if not route.endswith(".json"): route += ".json" filepath = os.path.joi...
26.636364
75
0.633106
506
0.863481
0
0
0
0
411
0.701365
55
0.093857
59e991030ccd113468742884f239af378d4fd07a
703
py
Python
modules/duckduckgo.py
skinatro/discord-bot
b9b717c61c1d83cc420d5b8be62534d56a3bca50
[ "MIT" ]
null
null
null
modules/duckduckgo.py
skinatro/discord-bot
b9b717c61c1d83cc420d5b8be62534d56a3bca50
[ "MIT" ]
null
null
null
modules/duckduckgo.py
skinatro/discord-bot
b9b717c61c1d83cc420d5b8be62534d56a3bca50
[ "MIT" ]
null
null
null
import asyncio import aiohttp async def duck_search(search_term): search_term = "+".join(search_term.split()) url = f"https://api.duckduckgo.com/?q={search_term}&format=json" async with aiohttp.ClientSession() as session: async with session.get(url) as r: if r.status == 200: ...
33.47619
79
0.611664
0
0
0
0
0
0
551
0.783784
152
0.216216
59ebe1657d09ae546bdf3ca41d37de806404c083
1,709
py
Python
prettyqt/widgets/statusbar.py
phil65/PrettyQt
26327670c46caa039c9bd15cb17a35ef5ad72e6c
[ "MIT" ]
7
2019-05-01T01:34:36.000Z
2022-03-08T02:24:14.000Z
prettyqt/widgets/statusbar.py
phil65/PrettyQt
26327670c46caa039c9bd15cb17a35ef5ad72e6c
[ "MIT" ]
141
2019-04-16T11:22:01.000Z
2021-04-14T15:12:36.000Z
prettyqt/widgets/statusbar.py
phil65/PrettyQt
26327670c46caa039c9bd15cb17a35ef5ad72e6c
[ "MIT" ]
5
2019-04-17T11:48:19.000Z
2021-11-21T10:30:19.000Z
from __future__ import annotations from prettyqt import widgets from prettyqt.qt import QtWidgets QtWidgets.QStatusBar.__bases__ = (widgets.Widget,) class StatusBar(QtWidgets.QStatusBar): def __init__(self, *args, **kwargs) -> None: super().__init__(*args, **kwargs) self.progress_bar = widgets....
29.982456
85
0.657695
1,238
0.7244
0
0
0
0
0
0
55
0.032183
ab6476dc8c8370931ed198d29dc49fb830793195
670
py
Python
utils/clear.py
kenjiflores/annotations_list
ab86ac0c9a6f739db9b3d1eda66b7791dbb2f774
[ "MIT" ]
null
null
null
utils/clear.py
kenjiflores/annotations_list
ab86ac0c9a6f739db9b3d1eda66b7791dbb2f774
[ "MIT" ]
null
null
null
utils/clear.py
kenjiflores/annotations_list
ab86ac0c9a6f739db9b3d1eda66b7791dbb2f774
[ "MIT" ]
null
null
null
# Function to clear data in instances folder before new run import os import shutil def clear_instances(directory): instances_folder = directory folders = os.listdir(instances_folder) for folder in folders: shutil.rmtree(instances_folder + folder) print('\nInstances folder cleared\n') def clear_all(): img_...
21.612903
59
0.737313
0
0
0
0
0
0
0
0
145
0.216418
ab649405524e8cca63212861bf189fca151fd6d0
1,338
py
Python
bot/hooks/activities.py
lungdart/discord_rpg_bot
dc574026965b972c6935cca0db2679e7be757939
[ "MIT" ]
1
2021-03-01T22:20:33.000Z
2021-03-01T22:20:33.000Z
bot/hooks/activities.py
lungdart/discord_rpg_bot
dc574026965b972c6935cca0db2679e7be757939
[ "MIT" ]
17
2021-03-05T16:50:48.000Z
2021-03-18T17:49:47.000Z
bot/hooks/activities.py
lungdart/discord_rpg_bot
dc574026965b972c6935cca0db2679e7be757939
[ "MIT" ]
null
null
null
""" Activity commands """ from discord.ext import commands from bot.components.logging import log_all class Activities(commands.Cog): """ Activity Commands """ def __init__(self, api): self.api = api @commands.command() @log_all async def work(self, ctx): """ (NOT YET IMPLEMENTED) ...
31.857143
73
0.618834
1,240
0.922619
0
0
1,109
0.825149
998
0.74256
357
0.265625
ab6578fa2d97ee82b7eac9fdd3a1cc27f58b5616
1,535
py
Python
app/museolib/libs/py14443a.py
urbanlab/museotouch-educatouch
9ad8f4329a84ba69147ffef57dc564082153bf02
[ "MIT" ]
1
2018-02-09T12:56:01.000Z
2018-02-09T12:56:01.000Z
app/museolib/libs/py14443a.py
urbanlab/museotouch-educatouch
9ad8f4329a84ba69147ffef57dc564082153bf02
[ "MIT" ]
null
null
null
app/museolib/libs/py14443a.py
urbanlab/museotouch-educatouch
9ad8f4329a84ba69147ffef57dc564082153bf02
[ "MIT" ]
null
null
null
"""Python functions to handle the ISO-14443-A protocol basics (parity and CRC)""" # Pynfc is a python wrapper for the libnfc library # Copyright (C) 2009 Mike Auty # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License # as published...
36.547619
83
0.628664
0
0
0
0
0
0
0
0
946
0.616287
ab672b40a2a078bded1e28db2d0f65c585f16827
4,294
py
Python
test_attrs_sqlalchemy.py
GoodRx/attrs_sqlalchemy
907eb269f1a0a1e4647ede5b44eb7a9210d954ae
[ "MIT" ]
3
2016-09-27T01:02:08.000Z
2021-11-06T17:07:25.000Z
test_attrs_sqlalchemy.py
GoodRx/attrs_sqlalchemy
907eb269f1a0a1e4647ede5b44eb7a9210d954ae
[ "MIT" ]
5
2017-01-16T01:44:45.000Z
2018-03-07T23:16:16.000Z
test_attrs_sqlalchemy.py
GoodRx/attrs_sqlalchemy
907eb269f1a0a1e4647ede5b44eb7a9210d954ae
[ "MIT" ]
4
2017-05-11T00:53:52.000Z
2021-11-06T17:07:12.000Z
import pytest import sqlalchemy as sa from sqlalchemy.ext.declarative import declarative_base from sqlalchemy.ext.hybrid import hybrid_property from attrs_sqlalchemy import attrs_sqlalchemy class TestAttrsSqlalchemy: def test_deprecation(self): with pytest.warns(UserWarning, match='attrs_sqlalchemy is d...
32.778626
84
0.598742
4,100
0.954821
0
0
2,883
0.671402
0
0
1,226
0.285515
ab68ee0cd0648022de9c14af27cdf8a16db6a56a
3,331
py
Python
scripts/run.py
Quentin18/higgs-boson-challenge
67a85bcdf277a446e06aca5da0f07a123a5e4222
[ "MIT" ]
null
null
null
scripts/run.py
Quentin18/higgs-boson-challenge
67a85bcdf277a446e06aca5da0f07a123a5e4222
[ "MIT" ]
null
null
null
scripts/run.py
Quentin18/higgs-boson-challenge
67a85bcdf277a446e06aca5da0f07a123a5e4222
[ "MIT" ]
null
null
null
""" Generate predictions for AIcrowd. Usage: python3 run.py The csv file produced will be "out/predictions.csv". """ # flake8: noqa: E402 import os import numpy as np # Import functions from scripts/ from csv_utils import create_csv_submission, load_csv_data from path import (add_src_to_path, load_json_parameters,...
27.081301
79
0.68628
0
0
0
0
0
0
0
0
982
0.294806
ab6910b1d16677aedc78eed6d9c4c6cfdce602b0
8,958
py
Python
samples/proc_gen_chunk_load.py
LyfeOnEdge/ursina
04795ceb567eaef51cb36baa696da6646d1eb650
[ "MIT" ]
null
null
null
samples/proc_gen_chunk_load.py
LyfeOnEdge/ursina
04795ceb567eaef51cb36baa696da6646d1eb650
[ "MIT" ]
null
null
null
samples/proc_gen_chunk_load.py
LyfeOnEdge/ursina
04795ceb567eaef51cb36baa696da6646d1eb650
[ "MIT" ]
null
null
null
DESC = f"""{__file__} - A code sample to help get you started with proceedurally generated terrain / chunkloading in Ursina. More complex terrain can be achieved by using a more complicated function in GameWithChunkloading.get_heightmap(). Supports both Perlin Noise and Open Simplex Noise. Written by Lyfe. """ TERRAIN...
47.396825
139
0.728288
6,025
0.672583
0
0
0
0
0
0
3,146
0.351194
ab69ddad29bf626715a76cc7655a097259dcb155
105
py
Python
src/clc/APIv1/cli.py
alex-kebede/clc-python-sdk
7a2a3e57010d238ce3fc2eeeea430e6ddb0c8ae4
[ "Apache-2.0" ]
18
2015-01-20T18:32:12.000Z
2018-09-10T16:19:00.000Z
src/clc/APIv1/cli.py
alex-kebede/clc-python-sdk
7a2a3e57010d238ce3fc2eeeea430e6ddb0c8ae4
[ "Apache-2.0" ]
27
2015-03-16T19:11:35.000Z
2020-05-12T17:44:22.000Z
src/clc/APIv1/cli.py
alex-kebede/clc-python-sdk
7a2a3e57010d238ce3fc2eeeea430e6ddb0c8ae4
[ "Apache-2.0" ]
37
2015-01-13T00:12:05.000Z
2020-05-18T21:18:23.000Z
"""CLI console script entry point.""" import clc def main(): clc.v1.Args() clc.v1.ExecCommand()
8.076923
37
0.638095
0
0
0
0
0
0
0
0
37
0.352381
ab6b8eb979811d5b77ce1285c72dd2711f8ffa4a
688
py
Python
namedivider-api/src/tests/controller/test_division_controller.py
dmnlk/namedivider-python
d87a488d4696bc26d2f6444ed399d83a6a1911a7
[ "MIT" ]
null
null
null
namedivider-api/src/tests/controller/test_division_controller.py
dmnlk/namedivider-python
d87a488d4696bc26d2f6444ed399d83a6a1911a7
[ "MIT" ]
null
null
null
namedivider-api/src/tests/controller/test_division_controller.py
dmnlk/namedivider-python
d87a488d4696bc26d2f6444ed399d83a6a1911a7
[ "MIT" ]
null
null
null
from namedivider import NameDivider from controller.model import DivisionRequest from controller import division_controller def test_division_controller(): divider = NameDivider() undivided_names = ["菅義偉"] division_request = DivisionRequest(names=undivided_names) res = division_controller.divide(divid...
36.210526
88
0.760174
0
0
0
0
0
0
0
0
52
0.074286
ab6bef72589cc503d05f80a672c71bbfadb1fbde
1,001
py
Python
toolkit/controller/audit/page_audit.py
salonimalhotra-ui/seo-audits-toolkit
99af8b53dffad45f679eaf06b4a8080df75fcd72
[ "MIT" ]
1
2020-12-21T18:21:34.000Z
2020-12-21T18:21:34.000Z
toolkit/controller/audit/page_audit.py
x0rzkov/seo-audits-toolkit
29994cbab51bd0697c717b675df3c176096e4f03
[ "MIT" ]
null
null
null
toolkit/controller/audit/page_audit.py
x0rzkov/seo-audits-toolkit
29994cbab51bd0697c717b675df3c176096e4f03
[ "MIT" ]
null
null
null
from urllib.parse import urlparse from toolkit.lib.http_tools import request_page from bs4 import BeautifulSoup class AuditPage(): def __init__(self, url): parsed_url = urlparse(url) self.domain = parsed_url.netloc self.scheme = parsed_url.scheme self.path = parsed_url.path ...
27.805556
70
0.563437
874
0.873127
0
0
0
0
0
0
119
0.118881
ab6c9a0f2f081341d061a42592f2a778f4f62494
2,968
py
Python
tests/test_autoupdate.py
cmu-cs-academy/cpython-cmu-graphics
04622a80642156ad646a00203899a8f3726f5b73
[ "BSD-3-Clause" ]
3
2020-02-01T22:24:24.000Z
2020-04-20T16:59:08.000Z
tests/test_autoupdate.py
cmu-cs-academy/cpython-cmu-graphics
04622a80642156ad646a00203899a8f3726f5b73
[ "BSD-3-Clause" ]
5
2020-11-03T21:47:36.000Z
2021-02-23T22:18:14.000Z
tests/test_autoupdate.py
cmu-cs-academy/cpython-cmu-graphics
04622a80642156ad646a00203899a8f3726f5b73
[ "BSD-3-Clause" ]
1
2020-06-11T21:03:50.000Z
2020-06-11T21:03:50.000Z
import os import shutil import zipfile from http.server import HTTPServer, CGIHTTPRequestHandler import threading import subprocess import sys import traceback PORT = 3000 os.chdir('autoupdate') def create_folder_and_zip(): def zipdir(path, ziph): for root, dirs, files in os.walk(path): for f...
27.738318
107
0.647574
0
0
0
0
0
0
0
0
924
0.311321
ab6e4e87d4f9d0f3716debd3c918f62dc6e778c5
8,202
py
Python
xy_stage/axis.py
kmharrington/xy_stage_control
1aef165a2ecebf9bd7a659435ff6905ed79b1726
[ "MIT" ]
null
null
null
xy_stage/axis.py
kmharrington/xy_stage_control
1aef165a2ecebf9bd7a659435ff6905ed79b1726
[ "MIT" ]
2
2021-04-09T15:57:41.000Z
2021-09-27T15:50:56.000Z
xy_stage/axis.py
kmharrington/xy_stage_control
1aef165a2ecebf9bd7a659435ff6905ed79b1726
[ "MIT" ]
1
2021-04-23T18:29:43.000Z
2021-04-23T18:29:43.000Z
import RPi.GPIO as GPIO import time import os class Axis: """ Base Class for one of the XY gantry axes All move commands are written to be called in threads self.position and/or self.step position can safely be queried while the axis is moving. """ def __init__(self, name, pin_li...
31.068182
111
0.554743
6,883
0.839186
0
0
452
0.055109
0
0
2,608
0.317971
ab6ee2ca9fb46ff0a520d9cacda3106f74ee51ad
2,788
py
Python
slacklogs2mongo.py
lbn/slacklogs2mongo
38069cac094cf745f54702c5f8ebbca847e95bdc
[ "MIT" ]
null
null
null
slacklogs2mongo.py
lbn/slacklogs2mongo
38069cac094cf745f54702c5f8ebbca847e95bdc
[ "MIT" ]
null
null
null
slacklogs2mongo.py
lbn/slacklogs2mongo
38069cac094cf745f54702c5f8ebbca847e95bdc
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import argparse import os import json from pymongo import MongoClient class LogImporter(object): def __init__(self, data, constring): self.data_dir = data self.db = MongoClient(constring).get_default_database() self.messages = self.db.messages ...
32.045977
121
0.588594
2,155
0.772956
0
0
0
0
0
0
392
0.140603
ab70efcd3dba1a5b5892d70293ed4be2b4a82829
973
py
Python
moai/parameters/optimization/swa.py
tzole1155/moai
d1afb3aaf8ddcd7a1c98b84d6365afb846ae3180
[ "Apache-2.0" ]
10
2021-04-02T11:21:33.000Z
2022-01-18T18:32:32.000Z
moai/parameters/optimization/swa.py
tzole1155/moai
d1afb3aaf8ddcd7a1c98b84d6365afb846ae3180
[ "Apache-2.0" ]
1
2022-03-22T20:10:55.000Z
2022-03-24T13:11:02.000Z
moai/parameters/optimization/swa.py
tzole1155/moai
d1afb3aaf8ddcd7a1c98b84d6365afb846ae3180
[ "Apache-2.0" ]
3
2021-05-16T20:47:40.000Z
2021-12-01T21:15:36.000Z
from moai.parameters.optimization.optimizers.swa import SWA as Outer import torch import omegaconf.omegaconf import hydra.utils as hyu import typing __all__ = ['SWA'] #NOTE: modified from https://github.com/alphadl/lookahead.pytorch class SWA(object): """Implements Stochastic Weight Averaging (SWA). - ...
30.40625
126
0.654676
735
0.755396
0
0
0
0
0
0
365
0.375128
ab72dffbafe60c111d8d185e2a4e9e3c45bff202
3,763
py
Python
utils/clustergen.py
lanhin/TripletRun
06f73a6911fae2f9874bed8f9d68bf0d3fd5e973
[ "MIT" ]
15
2019-03-22T16:07:53.000Z
2021-07-31T03:22:34.000Z
utils/clustergen.py
lanhin/TripletRun
06f73a6911fae2f9874bed8f9d68bf0d3fd5e973
[ "MIT" ]
null
null
null
utils/clustergen.py
lanhin/TripletRun
06f73a6911fae2f9874bed8f9d68bf0d3fd5e973
[ "MIT" ]
2
2018-05-23T08:30:39.000Z
2020-08-28T11:13:40.000Z
#/usr/bin/env python ''' @2018-01 by lanhin Generate cluster json file. Usage: python2 clustergen.py The output file name is cluster.json ''' import getopt import sys import os def jsonout(fileout, devices, edges, nodelinks): with open(fileout, "wb") as result: outItem = "{\n \"devices\":\n [\n" ...
37.63
235
0.526707
0
0
0
0
0
0
0
0
1,166
0.309859
ab74852985676ec82cdc7e188c47c6f4ba919b55
1,956
py
Python
tests/drawing.py
xrloong/Xie
c45c454b4467d91e242a84fda665b67bd3d43ca9
[ "Apache-2.0" ]
null
null
null
tests/drawing.py
xrloong/Xie
c45c454b4467d91e242a84fda665b67bd3d43ca9
[ "Apache-2.0" ]
null
null
null
tests/drawing.py
xrloong/Xie
c45c454b4467d91e242a84fda665b67bd3d43ca9
[ "Apache-2.0" ]
null
null
null
import unittest from xie.graphics.drawing import DrawingSystem from xie.graphics.canvas import EncodedTextCanvasController from xie.graphics.factory import StrokeSpec, StrokeFactory class DrawingSystemTestCase(unittest.TestCase): def setUp(self): self.controller = EncodedTextCanvasController() self.ds = DrawingS...
34.928571
105
0.742331
1,784
0.905584
0
0
0
0
0
0
177
0.089848
ab74b112917c353df9f1d1d587360e07a209c98f
4,500
py
Python
src/gui/droDisplayWidget.py
SnailAF/SimpleFOCStudio
01199a82e6ab8b6461e9eca3b6a10d19756549f7
[ "MIT" ]
null
null
null
src/gui/droDisplayWidget.py
SnailAF/SimpleFOCStudio
01199a82e6ab8b6461e9eca3b6a10d19756549f7
[ "MIT" ]
null
null
null
src/gui/droDisplayWidget.py
SnailAF/SimpleFOCStudio
01199a82e6ab8b6461e9eca3b6a10d19756549f7
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- from PyQt5 import QtGui, QtWidgets, QtCore from sharedcomponets import GUIToolKit import logging from simpleFOCConnector import SimpleFOCDevice class DROGroupBox(QtWidgets.QGroupBox): def __init__(self, parent=None, simpleFocConn=None): """Constructor for Tool...
37.5
92
0.691111
4,309
0.957556
0
0
0
0
0
0
387
0.086
ab7778c7769a430660818d3ba21a31e9b8a869e3
7,157
py
Python
coredump/pycore/take_core.py
fooofei/c_cpp
83b780fd48cd3c03fd3850fb297576d5fc907955
[ "MIT" ]
null
null
null
coredump/pycore/take_core.py
fooofei/c_cpp
83b780fd48cd3c03fd3850fb297576d5fc907955
[ "MIT" ]
null
null
null
coredump/pycore/take_core.py
fooofei/c_cpp
83b780fd48cd3c03fd3850fb297576d5fc907955
[ "MIT" ]
null
null
null
#!/usr/bin/env python # coding=utf-8 ''' ### 这个文件用来接管 控制 coredump 的存储 ### 需手动 echo "|/usr/bin/python /docker_host/1.py" > /proc/sys/kernel/core_pattern ### sys.stdin 如果没有数据 返回 '',不是 None ### 容器里对 core 对操作会持久化到 image 里 预期在 container 中对 /proc/sys/kernel/core_pattern 做的修改 如果不 commit , 下次从相同到 image 进入 containe...
29.331967
115
0.606958
0
0
0
0
0
0
0
0
2,567
0.345166
ab7783e06fb3be6a597351468894053b80c2161f
595
py
Python
docs/source/examples/errorbars.py
alexras/boomslang
62b6dc3a183fd8686b165c4abdb55d10d537b4ab
[ "BSD-3-Clause" ]
4
2015-02-24T06:50:08.000Z
2020-08-08T03:23:32.000Z
docs/source/examples/errorbars.py
alexras/boomslang
62b6dc3a183fd8686b165c4abdb55d10d537b4ab
[ "BSD-3-Clause" ]
13
2017-07-17T15:52:09.000Z
2017-07-17T15:52:09.000Z
docs/source/examples/errorbars.py
alexras/boomslang
62b6dc3a183fd8686b165c4abdb55d10d537b4ab
[ "BSD-3-Clause" ]
null
null
null
plot = Plot() # Uneven error bars line = Line() line.xValues = range(6) line.yValues = [25, 21, 30, 23, 10, 30] line.yMins = [10, 18, 10, 10, 5, 20] line.yMaxes = [30, 50, 40, 30, 20, 45] line.label = "Asymmetric Errors" line.color = "red" line.xValues = range(len(line.yValues)) # Even error bars line2 = Line() line...
21.25
40
0.653782
0
0
0
0
0
0
0
0
117
0.196639
ab7ab117b9f5f218dd655ac6fdbc592e4f1c7636
59,134
py
Python
futura_image/mendoza_beltran_utilities.py
pjamesjoyce/futura_image
09b46575ff19eef5da9164b8c57cfd691790ad7e
[ "BSD-3-Clause" ]
null
null
null
futura_image/mendoza_beltran_utilities.py
pjamesjoyce/futura_image
09b46575ff19eef5da9164b8c57cfd691790ad7e
[ "BSD-3-Clause" ]
null
null
null
futura_image/mendoza_beltran_utilities.py
pjamesjoyce/futura_image
09b46575ff19eef5da9164b8c57cfd691790ad7e
[ "BSD-3-Clause" ]
1
2020-11-02T13:49:55.000Z
2020-11-02T13:49:55.000Z
#!/usr/bin/env python from wurst import * from wurst.searching import * from wurst.transformations.activity import change_exchanges_by_constant_factor from wurst.transformations.uncertainty import rescale_exchange from wurst.IMAGE.io import * from wurst.IMAGE import * from wurst.ecoinvent.electricity_markets import ...
47.193935
249
0.644266
0
0
0
0
0
0
0
0
28,719
0.485569
ab7b5b063411a5951884f02b5ca7d911a992e189
6,996
py
Python
FJTYFilt_estimator.py
openeventdata/FJTY-Filter
32937407c798c14118d6956ce44c6ce48aa69fae
[ "MIT" ]
null
null
null
FJTYFilt_estimator.py
openeventdata/FJTY-Filter
32937407c798c14118d6956ce44c6ce48aa69fae
[ "MIT" ]
null
null
null
FJTYFilt_estimator.py
openeventdata/FJTY-Filter
32937407c798c14118d6956ce44c6ce48aa69fae
[ "MIT" ]
null
null
null
""" FJTYFilt_estimator.py Creates a vectorizer and estimated an SVM model from the files in FILE_NAMES; run a TRAIN_PROP train/test on these then saves these TO RUN PROGRAM: python3 SVM_filter_estimate.py PROGRAMMING NOTES: 1. There are no summary statistics across the experiments, as these are currently jus...
33.156398
139
0.592767
0
0
0
0
0
0
0
0
2,655
0.379503
ab7b6735b1b7be9de1c5c14faeb2e6fcf2f517be
43
py
Python
BirdCommandTests/Resources/hello.py
hergin/BirdCommand
64e87199f27fb10a8d5c11de8b31474786a95510
[ "Apache-2.0" ]
null
null
null
BirdCommandTests/Resources/hello.py
hergin/BirdCommand
64e87199f27fb10a8d5c11de8b31474786a95510
[ "Apache-2.0" ]
2
2022-03-11T14:15:32.000Z
2022-03-19T20:17:33.000Z
BirdCommandTests/Resources/hello.py
hergin/BirdCommand
64e87199f27fb10a8d5c11de8b31474786a95510
[ "Apache-2.0" ]
null
null
null
import sys print("Hello, "+sys.argv[1]+"!")
21.5
32
0.627907
0
0
0
0
0
0
0
0
12
0.27907
ab7b996b6afb9c15c69bb4ad3aab6bc1af3488de
694
py
Python
undistort_img.py
fwa785/CarND-Advanced_Lane_Lines
b36852e2519128c40bc22a2efed92d8014496b7e
[ "MIT" ]
null
null
null
undistort_img.py
fwa785/CarND-Advanced_Lane_Lines
b36852e2519128c40bc22a2efed92d8014496b7e
[ "MIT" ]
null
null
null
undistort_img.py
fwa785/CarND-Advanced_Lane_Lines
b36852e2519128c40bc22a2efed92d8014496b7e
[ "MIT" ]
null
null
null
import cv2 import pickle import matplotlib.image as mpimg import matplotlib.pyplot as plt def load_cal_dist(): # load the pickle file file = open("wide_dist_pickle.p", "rb") dist_pickle = pickle.load(file) objpoints = dist_pickle["objpoints"] imgpoints = dist_pickle["imgpoints"] return objpoi...
30.173913
104
0.721902
0
0
0
0
0
0
0
0
150
0.216138
ab7bd35e838333316b3f6cced216348f59d4567c
658
py
Python
026_comprehension/list.py
rafael-torraca/python-100-days-of-code
3a5b3e32c5a3fd66a4fd726d378e0d2f746a3f30
[ "MIT" ]
null
null
null
026_comprehension/list.py
rafael-torraca/python-100-days-of-code
3a5b3e32c5a3fd66a4fd726d378e0d2f746a3f30
[ "MIT" ]
null
null
null
026_comprehension/list.py
rafael-torraca/python-100-days-of-code
3a5b3e32c5a3fd66a4fd726d378e0d2f746a3f30
[ "MIT" ]
null
null
null
# for loop numbers = [1, 2, 3, 4, 5] new_list = [] for n in numbers: add_1 = n + 1 new_list.append(add_1) print(new_list) # List Comprehension new_list_comprehension = [n + 1 for n in numbers] print(new_list_comprehension) # Rang List Comprehension range_list = [n * 2 for n in range(1, 5)] print(range_list) ...
25.307692
67
0.693009
0
0
0
0
0
0
0
0
133
0.202128
ab7c6369edf868cf9d86121ac9188f5575e5dd08
50
py
Python
fltk/datasets/data_distribution/__init__.py
tudelft-eemcs-dml/fltk-testbed-gr-4
3472d80903a0d0993af9cf2e6347aeb81d1a0515
[ "BSD-2-Clause" ]
1
2022-03-24T10:14:31.000Z
2022-03-24T10:14:31.000Z
fltk/datasets/data_distribution/__init__.py
tudelft-eemcs-dml/fltk-testbed-gr-4
3472d80903a0d0993af9cf2e6347aeb81d1a0515
[ "BSD-2-Clause" ]
2
2021-05-11T12:48:14.000Z
2021-05-11T12:49:24.000Z
fltk/datasets/data_distribution/__init__.py
tudelft-eemcs-dml/fltk-testbed-gr-4
3472d80903a0d0993af9cf2e6347aeb81d1a0515
[ "BSD-2-Clause" ]
2
2021-05-03T17:40:18.000Z
2021-05-11T09:34:30.000Z
from .iid_equal import distribute_batches_equally
25
49
0.9
0
0
0
0
0
0
0
0
0
0
ab7d6681715869d89f5a128f73238e9596f37fcc
2,673
py
Python
tests/test_everywhere.py
b3b/herethere
0a9e667553bea4e7700b2b1af2827d08dded6ca5
[ "MIT" ]
null
null
null
tests/test_everywhere.py
b3b/herethere
0a9e667553bea4e7700b2b1af2827d08dded6ca5
[ "MIT" ]
null
null
null
tests/test_everywhere.py
b3b/herethere
0a9e667553bea4e7700b2b1af2827d08dded6ca5
[ "MIT" ]
null
null
null
from io import StringIO import os from pathlib import Path import pytest from herethere.everywhere import ConnectionConfig, runcode from herethere.everywhere import config code_with_definition = """ def foo(a, b): return a + b print(foo(1, 2)) """ @pytest.mark.parametrize( "code, expected", [ ...
25.216981
86
0.626263
0
0
0
0
1,600
0.598578
0
0
652
0.243921
ab7dc38ed8951fa7685f47dd886c5e04e6fb81b4
1,879
py
Python
src/predict.py
alphasea-dapp/alphasea-example-model
9d14072425a8e38cbef49de752fb4bd8bab0ad18
[ "CC0-1.0" ]
8
2022-01-25T14:28:09.000Z
2022-03-31T04:35:27.000Z
src/predict.py
yuzi-ziyu/alphasea-example-model
9d14072425a8e38cbef49de752fb4bd8bab0ad18
[ "CC0-1.0" ]
null
null
null
src/predict.py
yuzi-ziyu/alphasea-example-model
9d14072425a8e38cbef49de752fb4bd8bab0ad18
[ "CC0-1.0" ]
8
2022-01-26T14:31:26.000Z
2022-03-23T16:11:06.000Z
import os import re import joblib import numpy as np import pandas as pd import traceback from .logger import create_logger from .ml_utils import fetch_ohlcv, normalize_position from .agent_api import submit_prediction agent_base_url = os.getenv('ALPHASEA_AGENT_BASE_URL') model_id = os.getenv('ALPHASEA_MODEL_ID') mode...
31.316667
128
0.668973
0
0
0
0
0
0
0
0
366
0.194784
ab7dde0847107e7eb65decc348198fe2bd6560c4
545
py
Python
lesson8/lesson8.py
arsalanses/opencv-python
2ef56589559e44a7fea351cde513ef0320cb591e
[ "MIT" ]
2
2019-01-05T12:40:32.000Z
2019-02-21T22:54:45.000Z
lesson8/lesson8.py
arsalanses/opencv-python
2ef56589559e44a7fea351cde513ef0320cb591e
[ "MIT" ]
null
null
null
lesson8/lesson8.py
arsalanses/opencv-python
2ef56589559e44a7fea351cde513ef0320cb591e
[ "MIT" ]
null
null
null
import cv2 import numpy as np img1 = cv2.imread('image.tif') img2 = cv2.imread('imglogo.png') rows, cols, channels = img2.shape roi = img1[0:rows, 0:cols] img2gray = cv2.cvtColor(img2, cv2.COLOR_BGR2GRAY) ret, mask = cv2.threshold(img2gray, 230, 255, cv2.THRESH_BINARY_INV) mask_inv = cv2.bitwise_not(mask) img1_bg...
20.185185
68
0.722936
0
0
0
0
0
0
0
0
31
0.056881
ab7f5e28b56225a5e29228c37b55b000fd5d2d90
2,378
py
Python
firmware_flash/forms.py
fossabot/fermentrack
3070bc14791b1482ec661607005ebda961ca3a8f
[ "MIT" ]
114
2017-03-19T22:51:45.000Z
2022-01-18T06:00:23.000Z
firmware_flash/forms.py
fossabot/fermentrack
3070bc14791b1482ec661607005ebda961ca3a8f
[ "MIT" ]
392
2017-03-12T17:09:16.000Z
2022-03-31T22:08:45.000Z
firmware_flash/forms.py
fossabot/fermentrack
3070bc14791b1482ec661607005ebda961ca3a8f
[ "MIT" ]
67
2017-03-19T18:11:54.000Z
2022-01-31T12:12:17.000Z
from django.contrib.auth.models import User from django import forms from constance import config #from constance.admin import ConstanceForm from django.conf import settings from .models import DeviceFamily, Firmware, Board ##############################################################################################...
40.305085
115
0.547519
1,326
0.557611
0
0
0
0
0
0
1,051
0.441968
ab8027d182e0e15b016e3b8845f76c6510fbe065
296,545
bzl
Python
obj/.cache/build/azfkn5bh.4tg/cuwh0ddu.bzl
Kvble/sorting-visualizer
e5c3fc04c4fc342d673140817713540909fd7e7a
[ "MIT" ]
2
2021-12-03T21:43:39.000Z
2021-12-24T13:29:11.000Z
obj/.cache/build/azfkn5bh.4tg/cuwh0ddu.bzl
Kvble/sorting-visualizer
e5c3fc04c4fc342d673140817713540909fd7e7a
[ "MIT" ]
null
null
null
obj/.cache/build/azfkn5bh.4tg/cuwh0ddu.bzl
Kvble/sorting-visualizer
e5c3fc04c4fc342d673140817713540909fd7e7a
[ "MIT" ]
null
null
null
{"Item1":[{"from":{"sourceType":"file","value":"~/obj/api/SortingVisualizer.yml"},"to":{"sourceType":"file","value":"~/obj/api/SortingVisualizer.FrmMain.yml"},"reportedBy":{"sourceType":"file","value":"~/obj/api/SortingVisualizer.yml"},"type":"children"},{"from":{"sourceType":"file","value":"~/obj/api/SortingVisualizer...
296,545
296,545
0.718259
0
0
0
0
0
0
0
0
269,388
0.908422
ab811227dffc3fa3115f79fca2c6b8952322b4fe
1,395
py
Python
app/auth/views.py
Maryan23/1-MIN-OF-YOU
635607914f2782a7550a219a143a7f4735668c0d
[ "MIT" ]
null
null
null
app/auth/views.py
Maryan23/1-MIN-OF-YOU
635607914f2782a7550a219a143a7f4735668c0d
[ "MIT" ]
null
null
null
app/auth/views.py
Maryan23/1-MIN-OF-YOU
635607914f2782a7550a219a143a7f4735668c0d
[ "MIT" ]
null
null
null
from . import auth from flask_login import login_user,login_required,logout_user from flask import render_template,url_for,flash,redirect,request from .forms import SignupForm,SigninForm from ..models import User from .. import db from ..email import mail_message @auth.route('/signup', methods = ["GET","POST"]) def si...
35.769231
98
0.735484
0
0
0
0
1,124
0.805735
0
0
220
0.157706
ab821d3f7bbe4a732152f7621931f2be1339ca52
2,433
py
Python
examples/apps/python/ai/rapids/spark/examples/mortgage/consts.py
mgzhao/spark-examples
8db68af3fd62f097a0c145f78f7c76b59de6038d
[ "Apache-2.0" ]
69
2019-06-28T05:29:02.000Z
2022-01-11T22:32:13.000Z
examples/apps/python/ai/rapids/spark/examples/mortgage/consts.py
mgzhao/spark-examples
8db68af3fd62f097a0c145f78f7c76b59de6038d
[ "Apache-2.0" ]
30
2019-06-26T22:36:56.000Z
2020-07-11T01:02:58.000Z
examples/apps/python/ai/rapids/spark/examples/mortgage/consts.py
mgzhao/spark-examples
8db68af3fd62f097a0c145f78f7c76b59de6038d
[ "Apache-2.0" ]
45
2019-06-26T21:38:38.000Z
2021-12-21T03:59:23.000Z
# # Copyright (c) 2019, NVIDIA CORPORATION. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicab...
34.757143
74
0.695438
0
0
0
0
0
0
0
0
1,212
0.49815
ab82a8f559d650e37cf26796bb3ed2a20df28833
150
py
Python
src/setting.py
yusan123/flasklearn_UserManagement
857c748f5363e9b3e3a0c0364eac5aa711aa0150
[ "Apache-2.0" ]
1
2019-04-25T00:53:22.000Z
2019-04-25T00:53:22.000Z
src/setting.py
yusan123/flasklearn_UserManagement
857c748f5363e9b3e3a0c0364eac5aa711aa0150
[ "Apache-2.0" ]
null
null
null
src/setting.py
yusan123/flasklearn_UserManagement
857c748f5363e9b3e3a0c0364eac5aa711aa0150
[ "Apache-2.0" ]
null
null
null
# _*_coding:utf-8_*_ # author:qq823947488 # date:2019/4/24 20:12 host='localhost' port=3306 user='root' passwd='123' db='flask_learn' charset='utf8'
13.636364
22
0.72
0
0
0
0
0
0
0
0
107
0.694805
ab83242c49c298d4076cedd427c62e364bff8f46
115
py
Python
angr/procedures/linux_loader/__init__.py
Kyle-Kyle/angr
345b2131a7a67e3a6ffc7d9fd475146a3e12f837
[ "BSD-2-Clause" ]
6,132
2015-08-06T23:24:47.000Z
2022-03-31T21:49:34.000Z
angr/procedures/linux_loader/__init__.py
Kyle-Kyle/angr
345b2131a7a67e3a6ffc7d9fd475146a3e12f837
[ "BSD-2-Clause" ]
2,272
2015-08-10T08:40:07.000Z
2022-03-31T23:46:44.000Z
angr/procedures/linux_loader/__init__.py
Kyle-Kyle/angr
345b2131a7a67e3a6ffc7d9fd475146a3e12f837
[ "BSD-2-Clause" ]
1,155
2015-08-06T23:37:39.000Z
2022-03-31T05:54:11.000Z
""" These function implement functions or other functionalities provided by the linux userspace dynamic loader """
28.75
106
0.808696
0
0
0
0
0
0
0
0
114
0.991304
ab8344d8efbd20dfefa546d6c2aa1f9f9ddae6c5
664
py
Python
sallyforth/inliner.py
russolsen/sallyforth
480f6df6a5e2678829bc86b73f89c88565e28696
[ "Apache-2.0" ]
13
2020-04-14T16:48:10.000Z
2022-02-04T22:18:00.000Z
sallyforth/inliner.py
russolsen/sallyforth
480f6df6a5e2678829bc86b73f89c88565e28696
[ "Apache-2.0" ]
1
2020-06-13T12:56:14.000Z
2020-06-28T19:52:46.000Z
sallyforth/inliner.py
russolsen/sallyforth
480f6df6a5e2678829bc86b73f89c88565e28696
[ "Apache-2.0" ]
1
2021-09-11T09:36:29.000Z
2021-09-11T09:36:29.000Z
from wrappers import inner_f def compile_f(contents, attributes, doc, name): new_contents = [] for f in contents: sub_contents = getattr(f, "contents", None) if sub_contents: new_contents.extend(sub_contents) else: new_contents.append(f) new_func = inner_f(ne...
28.869565
63
0.653614
0
0
0
0
0
0
0
0
20
0.03012
ab849166beb1a14a49a2fed3c2e864b011e54654
7,732
py
Python
bounter/tests/hashtable/test_htc_get_set.py
BenLangmead/bounter
ab53c8edc168e9d991c5c25d68a30d2f7334ead2
[ "MIT" ]
987
2017-09-01T17:53:42.000Z
2022-03-30T02:34:46.000Z
bounter/tests/hashtable/test_htc_get_set.py
BenLangmead/bounter
ab53c8edc168e9d991c5c25d68a30d2f7334ead2
[ "MIT" ]
38
2017-09-01T22:05:01.000Z
2022-02-23T20:06:22.000Z
bounter/tests/hashtable/test_htc_get_set.py
BenLangmead/bounter
ab53c8edc168e9d991c5c25d68a30d2f7334ead2
[ "MIT" ]
52
2017-10-14T00:03:48.000Z
2021-09-19T00:39:08.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Author: Filip Stefanak <f.stefanak@rare-technologies.com> # Copyright (C) 2017 Rare Technologies # # This code is distributed under the terms and conditions # from the MIT License (MIT). import sys import unittest from bounter import HashTable long_long_max = 9223372...
30.085603
120
0.603725
7,408
0.950231
0
0
0
0
0
0
2,666
0.34197
ab84ef6014bf90d094474b93c555171e51108d19
540
py
Python
bin/newick_reformat.py
mooninrain/viral-mutation
328182ca2acfe5d30bc149e0c95d919123db24cf
[ "MIT" ]
79
2020-07-10T05:11:27.000Z
2022-03-30T14:16:07.000Z
bin/newick_reformat.py
mooninrain/viral-mutation
328182ca2acfe5d30bc149e0c95d919123db24cf
[ "MIT" ]
7
2020-07-09T01:34:26.000Z
2022-03-09T05:36:44.000Z
bin/newick_reformat.py
mooninrain/viral-mutation
328182ca2acfe5d30bc149e0c95d919123db24cf
[ "MIT" ]
35
2020-09-29T19:23:56.000Z
2022-03-13T04:59:57.000Z
import sys newick = '' with open(sys.argv[1]) as f: orig = f.read().rstrip() orig = orig.replace('(', '(\n').replace(',', '\n,\n').replace(')', ')\n') for line in orig.split('\n'): fields = line.rstrip().split(':') if len(fields) == 0: continue elif len(fields) == 1: newick += fields...
21.6
73
0.492593
0
0
0
0
0
0
0
0
47
0.087037
ab861edeb3c8fda08cffdf8b9b6039df511fe550
1,830
py
Python
src/logging_with_motion_commander/logging_with_motion_commander.py
MarkAkbashev/crazyflie-dataset
819c476776ebc8b1c4b9a9139390ec3f1b0138e0
[ "MIT" ]
null
null
null
src/logging_with_motion_commander/logging_with_motion_commander.py
MarkAkbashev/crazyflie-dataset
819c476776ebc8b1c4b9a9139390ec3f1b0138e0
[ "MIT" ]
null
null
null
src/logging_with_motion_commander/logging_with_motion_commander.py
MarkAkbashev/crazyflie-dataset
819c476776ebc8b1c4b9a9139390ec3f1b0138e0
[ "MIT" ]
1
2022-03-12T12:12:24.000Z
2022-03-12T12:12:24.000Z
# -*- coding: utf-8 -*- # # Based on bitcraze example project: # https://github.com/bitcraze/crazyflie-lib-python/blob/master/examples/step-by-step/sbs_motion_commander.py import logging import sys import time from threading import Event import cflib.crtp from cflib.crazyflie import Crazyflie from cflib.crazyflie.log...
27.313433
108
0.712022
0
0
0
0
0
0
0
0
336
0.183607
ab8801ccef53e30715caf216a3164da6aa09d611
2,745
py
Python
discordbot/src/commands/track.py
knabb215/discord-masz
a1b8434ca8e6e31cb61a8a6069338fdd34698ea2
[ "MIT" ]
null
null
null
discordbot/src/commands/track.py
knabb215/discord-masz
a1b8434ca8e6e31cb61a8a6069338fdd34698ea2
[ "MIT" ]
null
null
null
discordbot/src/commands/track.py
knabb215/discord-masz
a1b8434ca8e6e31cb61a8a6069338fdd34698ea2
[ "MIT" ]
null
null
null
from datetime import datetime from discord.errors import NotFound from discord import Embed from discord_slash.utils.manage_commands import create_option, SlashCommandOptionType from data import get_invites_by_guild_and_code from .infrastructure import record_usage, CommandDefinition, registered_guild_and_admin_or_mo...
40.367647
202
0.655373
0
0
0
0
0
0
2,001
0.728962
1,012
0.36867
ab889732980e1f587bb34b0e8ec82b6a14ab0b7b
94
py
Python
core/dbs/__init__.py
ybai62868/CornerNet-Lite
cad0fb248be1da38451042ff6c5b9979e67a0729
[ "BSD-3-Clause" ]
2
2019-12-10T02:11:32.000Z
2019-12-13T14:26:14.000Z
core/dbs/__init__.py
ybai62868/CornerNet-Lite
cad0fb248be1da38451042ff6c5b9979e67a0729
[ "BSD-3-Clause" ]
null
null
null
core/dbs/__init__.py
ybai62868/CornerNet-Lite
cad0fb248be1da38451042ff6c5b9979e67a0729
[ "BSD-3-Clause" ]
null
null
null
from .coco import COCO from .dac import DAC datasets = { "COCO": COCO, "DAC": DAC }
10.444444
22
0.595745
0
0
0
0
0
0
0
0
11
0.117021
ab893f5cecbf91a0d55eb76b909d67ec58082f49
235
py
Python
leetCode/algorithms/easy/create_target_array_in_the_given_order.py
ferhatelmas/algo
a7149c7a605708bc01a5cd30bf5455644cefd04d
[ "WTFPL" ]
25
2015-01-21T16:39:18.000Z
2021-05-24T07:01:24.000Z
leetCode/algorithms/easy/create_target_array_in_the_given_order.py
gauravsingh58/algo
397859a53429e7a585e5f6964ad24146c6261326
[ "WTFPL" ]
2
2020-09-30T19:39:36.000Z
2020-10-01T17:15:16.000Z
leetCode/algorithms/easy/create_target_array_in_the_given_order.py
ferhatelmas/algo
a7149c7a605708bc01a5cd30bf5455644cefd04d
[ "WTFPL" ]
15
2015-01-21T16:39:27.000Z
2020-10-01T17:00:22.000Z
from typing import List class Solution: def createTargetArray(self, nums: List[int], index: List[int]) -> List[int]: target = [] for n, i in zip(nums, index): target.insert(i, n) return target
23.5
80
0.587234
208
0.885106
0
0
0
0
0
0
0
0
ab89f3062c9b1d258830957560a8a3b7c82d745c
2,513
py
Python
app/tile.py
kylebisley/starter-snake-python
d8a93dc6d50bfa15b9cc0492666bc290c1f78320
[ "MIT" ]
3
2020-03-06T02:12:36.000Z
2021-03-12T20:23:07.000Z
app/tile.py
kylebisley/starter-snake-python
d8a93dc6d50bfa15b9cc0492666bc290c1f78320
[ "MIT" ]
7
2020-02-18T23:07:19.000Z
2020-03-06T05:34:41.000Z
app/tile.py
kylebisley/starter-snake-python
d8a93dc6d50bfa15b9cc0492666bc290c1f78320
[ "MIT" ]
2
2020-02-26T00:07:53.000Z
2020-02-26T03:20:58.000Z
class Tile: """ represents one space on the board responsible for storing and giving information about itself in a safe manner, usually generated by a board object Attributes: _x (integer): the x coordinate, should line up with our other methods _y (integer): the y coordinate e...
31.810127
99
0.618782
2,512
0.999602
0
0
0
0
0
0
1,318
0.524473
ab8c19a59433d9a86423eb4aa00bb2f9b0bfb25f
285
py
Python
temp/teste.py
Aquino21/Pereira
accddd90bf6178060a448803489da3358ee94ba2
[ "MIT" ]
1
2021-09-04T18:50:49.000Z
2021-09-04T18:50:49.000Z
temp/teste.py
Aquino21/Pereira
accddd90bf6178060a448803489da3358ee94ba2
[ "MIT" ]
null
null
null
temp/teste.py
Aquino21/Pereira
accddd90bf6178060a448803489da3358ee94ba2
[ "MIT" ]
3
2020-10-05T01:53:57.000Z
2021-09-14T23:57:47.000Z
list = ['Tiago','Ivan','Henrique', 'Paulo'] nome = 'teste' nome = input('Digite um nome: ') # Python input prompt print(nome) for i in range(len(list)): if list[i] == nome: print(nome,'is number',i + 1,'on the list') break else: print(nome,'is not on the list')
28.5
54
0.6
0
0
0
0
0
0
0
0
120
0.421053
ab8c74faa97d91935186d109db588267fe9dc817
3,221
py
Python
game_ai.py
arafat-ar13/Kivy-App
535de0a4f440a6ed97d08bd0b7d6f26e41af8bdb
[ "MIT" ]
3
2021-01-03T05:27:31.000Z
2022-01-18T02:59:36.000Z
game_ai.py
arafat-ar13/Kivy-App
535de0a4f440a6ed97d08bd0b7d6f26e41af8bdb
[ "MIT" ]
null
null
null
game_ai.py
arafat-ar13/Kivy-App
535de0a4f440a6ed97d08bd0b7d6f26e41af8bdb
[ "MIT" ]
3
2020-12-06T08:33:04.000Z
2021-10-01T11:08:15.000Z
import numpy as np import math import random class Ai(): def __init__(self, resolution, all_pos: list, all_ids, options: list): self.board_resolution = resolution self.all_pos = all_pos self.player_option, self.ai_option = options self.available_tiles = self.all_pos[:] self...
43.527027
120
0.555107
3,174
0.985408
0
0
0
0
0
0
583
0.181
ab8d450cb3702c82bd719fcd4bb6236e74377687
244
py
Python
src/core/exc.py
arnulfojr/nginx-proxy-yml
afa090f11034076f00e4bf49ffef65a7f157c923
[ "MIT" ]
1
2021-11-16T04:18:43.000Z
2021-11-16T04:18:43.000Z
src/core/exc.py
arnulfojr/nginx-proxy-yml
afa090f11034076f00e4bf49ffef65a7f157c923
[ "MIT" ]
1
2021-06-01T22:01:31.000Z
2021-06-01T22:01:31.000Z
src/core/exc.py
arnulfojr/nginx-proxy-yml
afa090f11034076f00e4bf49ffef65a7f157c923
[ "MIT" ]
null
null
null
class CoreException(Exception): def __init__(self, message): self.message = message class ValidationError(CoreException): def __init__(self, message, errors=[]): super().__init__(message) self.errors = errors
22.181818
43
0.672131
239
0.979508
0
0
0
0
0
0
0
0
ab8e89a1f7eaac263909d5acb64b0809c26923b5
507
py
Python
noise_generator.py
MxFxM/TerrainGenerator
9947f467d4224627b9f4d627f9cee5cb3cfec7ab
[ "MIT" ]
null
null
null
noise_generator.py
MxFxM/TerrainGenerator
9947f467d4224627b9f4d627f9cee5cb3cfec7ab
[ "MIT" ]
null
null
null
noise_generator.py
MxFxM/TerrainGenerator
9947f467d4224627b9f4d627f9cee5cb3cfec7ab
[ "MIT" ]
null
null
null
""" test to generate noise but failed for 2d """ import math import random maxfreq = 1/500 myfrequencies = [random.random() * maxfreq * 2 * math.pi for _ in range(5)] myphases = [random.random() * math.pi for _ in range(5)] def myfunction(x, y): global myfrequencies global myphases start = 1 for f, ...
21.125
75
0.639053
0
0
0
0
0
0
0
0
48
0.094675
ab8e9c9c2d80477fa8d1bdb740cc94ec4da0d950
947
py
Python
events/admin.py
DragosNicuDev/myhub
00f915b92b5cb7afd571811c5e020cfe9dcbb3ea
[ "MIT" ]
1
2018-02-11T19:07:18.000Z
2018-02-11T19:07:18.000Z
events/admin.py
DragosNicuDev/myhub
00f915b92b5cb7afd571811c5e020cfe9dcbb3ea
[ "MIT" ]
6
2020-06-05T18:27:46.000Z
2022-03-11T23:26:03.000Z
events/admin.py
DragosNicuDev/myhub
00f915b92b5cb7afd571811c5e020cfe9dcbb3ea
[ "MIT" ]
null
null
null
from django.contrib import admin from django_summernote.admin import SummernoteModelAdmin from .models import ( Event, EventDateAndTime, EventDescription, EventLocation) # Apply summernote to all TextField in model. class SomeModelAdmin(SummernoteModelAdmin): # instead of ModelAdmin summer_note_...
20.148936
68
0.708553
605
0.63886
0
0
0
0
0
0
134
0.141499
ab8f394d3739524d1318b614ee608ca8343c0792
930
py
Python
djangocms_bootstrap4/contrib/bootstrap4_link/migrations/0006_auto_20200213_0516.py
compoundpartners/js-bootstrap4
2b7e35ee476b6cc149448752aab5fbd605d92afb
[ "BSD-3-Clause" ]
null
null
null
djangocms_bootstrap4/contrib/bootstrap4_link/migrations/0006_auto_20200213_0516.py
compoundpartners/js-bootstrap4
2b7e35ee476b6cc149448752aab5fbd605d92afb
[ "BSD-3-Clause" ]
1
2018-12-12T10:52:07.000Z
2018-12-12T10:52:07.000Z
djangocms_bootstrap4/contrib/bootstrap4_link/migrations/0006_auto_20200213_0516.py
compoundpartners/js-bootstrap4
2b7e35ee476b6cc149448752aab5fbd605d92afb
[ "BSD-3-Clause" ]
1
2018-12-12T09:40:11.000Z
2018-12-12T09:40:11.000Z
# Generated by Django 2.2.10 on 2020-02-13 05:16 from django.db import migrations, models import djangocms_bootstrap4.contrib.bootstrap4_link.validators class Migration(migrations.Migration): dependencies = [ ('bootstrap4_link', '0005_auto_20190709_1626'), ] operations = [ migrations.Ad...
37.2
245
0.68172
773
0.831183
0
0
0
0
0
0
253
0.272043
ab8fb94a81717790890513a389148cc7842737d4
3,063
py
Python
contrib/python/podman/libs/__init__.py
mavit/libpod
3f0e2367c222fe362031f806f002fb8a62be6360
[ "Apache-2.0" ]
null
null
null
contrib/python/podman/libs/__init__.py
mavit/libpod
3f0e2367c222fe362031f806f002fb8a62be6360
[ "Apache-2.0" ]
null
null
null
contrib/python/podman/libs/__init__.py
mavit/libpod
3f0e2367c222fe362031f806f002fb8a62be6360
[ "Apache-2.0" ]
null
null
null
"""Support files for podman API implementation.""" import datetime import re import threading __all__ = [ 'cached_property', 'datetime_parse', 'datetime_format', ] class cached_property(object): """cached_property() - computed once per instance, cached as attribute. Maybe this will make a future...
31.57732
78
0.595168
1,102
0.359309
0
0
0
0
0
0
1,533
0.499837
ab90d680317bdb320ada2d7ab73d8de4bca113e5
46,271
py
Python
custos-client-sdks/custos-python-sdk/custos/server/core/ResourceSecretService_pb2.py
hasithajayasundara/airavata-custos
2d341849dd8ea8a7c2efec6cc73b01dfd495352e
[ "Apache-2.0" ]
null
null
null
custos-client-sdks/custos-python-sdk/custos/server/core/ResourceSecretService_pb2.py
hasithajayasundara/airavata-custos
2d341849dd8ea8a7c2efec6cc73b01dfd495352e
[ "Apache-2.0" ]
null
null
null
custos-client-sdks/custos-python-sdk/custos/server/core/ResourceSecretService_pb2.py
hasithajayasundara/airavata-custos
2d341849dd8ea8a7c2efec6cc73b01dfd495352e
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: ResourceSecretService.proto """Generated protocol buffer code.""" from google.protobuf.internal import enum_type_wrapper from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from...
48.75764
5,647
0.78118
0
0
0
0
0
0
0
0
14,985
0.323853
ab9374dbdafd3eac8aaf116c21970aab394c9fbe
7,421
py
Python
girder_histogram/__init__.py
abcsFrederick/histogram
88eda7366e5d7a38272dbc3c2f919d7c207c870a
[ "Apache-2.0" ]
null
null
null
girder_histogram/__init__.py
abcsFrederick/histogram
88eda7366e5d7a38272dbc3c2f919d7c207c870a
[ "Apache-2.0" ]
1
2019-09-11T17:50:04.000Z
2019-09-11T17:50:04.000Z
girder_histogram/__init__.py
abcsFrederick/histogram
88eda7366e5d7a38272dbc3c2f919d7c207c870a
[ "Apache-2.0" ]
1
2019-06-18T17:55:45.000Z
2019-06-18T17:55:45.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- ############################################################################### # Girder plugin framework and tests adapted from Kitware Inc. source and # documentation by the Imaging and Visualization Group, Advanced Biomedical # Computational Science, Frederick Nation...
34.67757
80
0.622558
664
0.089476
0
0
365
0.049185
0
0
2,916
0.392939
ab938679789678606b7ac691201fd8e915036076
5,325
py
Python
app_run.py
michaellengyel/sheep_environment
6a272155b0d03597efc63097da2a96297b4345b3
[ "Apache-2.0" ]
null
null
null
app_run.py
michaellengyel/sheep_environment
6a272155b0d03597efc63097da2a96297b4345b3
[ "Apache-2.0" ]
null
null
null
app_run.py
michaellengyel/sheep_environment
6a272155b0d03597efc63097da2a96297b4345b3
[ "Apache-2.0" ]
null
null
null
from keras.models import Sequential, load_model from keras.layers import Dense, Dropout, Conv2D, MaxPooling2D, Activation, Flatten from keras.optimizers import Adam from keras.callbacks import TensorBoard import tensorflow as tf from tqdm import tqdm from collections import deque from gym.bug_env.environment import ...
29.91573
107
0.634554
2,447
0.459531
0
0
0
0
0
0
1,100
0.206573
ab94442244cf942959905073e49c32e22155b473
1,701
py
Python
languages/python/sort_algorithms/qsort.py
sergev/vak-opensource
e1912b83dabdbfab2baee5e7a9a40c3077349381
[ "Apache-2.0" ]
34
2016-10-29T19:50:34.000Z
2022-02-12T21:27:43.000Z
languages/python/sort_algorithms/qsort.py
sergev/vak-opensource
e1912b83dabdbfab2baee5e7a9a40c3077349381
[ "Apache-2.0" ]
null
null
null
languages/python/sort_algorithms/qsort.py
sergev/vak-opensource
e1912b83dabdbfab2baee5e7a9a40c3077349381
[ "Apache-2.0" ]
19
2017-06-19T23:04:00.000Z
2021-11-13T15:00:41.000Z
# -*- coding: utf-8 -*- ''' Быстрая сортировка ''' from typing import MutableSequence, Callable def _qsort(data: MutableSequence, start: int, end: int, process_func: Callable[[MutableSequence, int, int], int]) -> None: if start < end: pivot_index = process_func(data, start...
22.381579
77
0.519694
0
0
0
0
0
0
0
0
66
0.038417
ab998ab0fd8ce78db72dba56f4ec48316662f98c
3,834
py
Python
app.py
sandeshk06/Latency_analysis
24c3d39eb53b1438ac3916963b6853f95d7e7a8a
[ "MIT" ]
null
null
null
app.py
sandeshk06/Latency_analysis
24c3d39eb53b1438ac3916963b6853f95d7e7a8a
[ "MIT" ]
null
null
null
app.py
sandeshk06/Latency_analysis
24c3d39eb53b1438ac3916963b6853f95d7e7a8a
[ "MIT" ]
1
2022-03-25T23:54:15.000Z
2022-03-25T23:54:15.000Z
from flask import Flask,render_template,request from flask_wtf.csrf import CSRFProtect from check_domain_result import compute from check_traceroute import get_traceroute_result from check_mtr import get_mtr_result from check_ping import get_ping_result from geo_latency_info import * import folium import os import logg...
30.188976
171
0.637454
0
0
0
0
3,098
0.808033
0
0
674
0.175796
ab9ab7577f2c53a3e653bf436c3fb0f234794685
2,111
py
Python
third_party/pixels/pixels_aiy_v1.py
wangpy/archspee
97855f903106fba567ffda8cdc25b061cd8bdf5e
[ "MIT" ]
8
2019-01-22T13:03:40.000Z
2021-12-30T22:11:12.000Z
third_party/pixels/pixels_aiy_v1.py
wangpy/archspee
97855f903106fba567ffda8cdc25b061cd8bdf5e
[ "MIT" ]
null
null
null
third_party/pixels/pixels_aiy_v1.py
wangpy/archspee
97855f903106fba567ffda8cdc25b061cd8bdf5e
[ "MIT" ]
null
null
null
import time import queue import threading import RPi.GPIO as GPIO _GPIO_PIN = 25 class Pixels: def __init__(self): self.is_light_on = 1 self.count_down = 0 self.light_on_count = 0 self.light_off_count = 0 GPIO.setwarnings(False) GPIO.setmode(GPIO.BCM) GPIO...
23.988636
78
0.516817
1,596
0.75604
0
0
0
0
0
0
10
0.004737
ab9c4d7e47d9e31946148c6e5a43e198f83c9fd5
40,231
py
Python
edexOsgi/com.raytheon.uf.common.aviation/utility/common_static/base/aviation/python/TAMPGenerator.py
srcarter3/awips2
37f31f5e88516b9fd576eaa49d43bfb762e1d174
[ "Apache-2.0" ]
null
null
null
edexOsgi/com.raytheon.uf.common.aviation/utility/common_static/base/aviation/python/TAMPGenerator.py
srcarter3/awips2
37f31f5e88516b9fd576eaa49d43bfb762e1d174
[ "Apache-2.0" ]
null
null
null
edexOsgi/com.raytheon.uf.common.aviation/utility/common_static/base/aviation/python/TAMPGenerator.py
srcarter3/awips2
37f31f5e88516b9fd576eaa49d43bfb762e1d174
[ "Apache-2.0" ]
1
2021-10-30T00:03:05.000Z
2021-10-30T00:03:05.000Z
## # This software was developed and / or modified by Raytheon Company, # pursuant to Contract DG133W-05-CQ-1067 with the US Government. # # U.S. EXPORT CONTROLLED TECHNICAL DATA # This software product contains export-restricted data whose # export/transfer/disclosure is restricted by U.S. law. Dissemination # to ...
35.166958
116
0.504313
19,421
0.482737
0
0
0
0
0
0
10,600
0.263478
ab9caf6fe468bbb3e4d5427518d3f44ab50ebfdb
6,154
py
Python
Documentation/utilities/opal_stats.py
OPAL-Project/OPAL-Docker
c88ccd199efd63358589ceea914ce8de519221a7
[ "MIT" ]
2
2020-03-04T15:38:35.000Z
2021-06-26T12:12:03.000Z
Documentation/utilities/opal_stats.py
OPAL-Project/OPAL-Docker
c88ccd199efd63358589ceea914ce8de519221a7
[ "MIT" ]
20
2018-06-14T10:28:02.000Z
2020-02-19T11:28:29.000Z
Documentation/utilities/opal_stats.py
OPAL-Project/OPAL-Docker
c88ccd199efd63358589ceea914ce8de519221a7
[ "MIT" ]
1
2018-08-21T21:57:28.000Z
2018-08-21T21:57:28.000Z
from __future__ import division, print_function import time import os import configargparse import bz2 import csv import json import sys from datetime import datetime from os import listdir from os.path import isfile, join import multiprocessing as mp def process_file(records_reader, file): core_fields = {"file":...
37.072289
120
0.619922
0
0
76
0.01235
0
0
0
0
2,121
0.344654