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
1e299d7235c61aa6b1b77e65519ef77467227619
3,296
py
Python
tda_api_helper/models.py
alexgolec/tda-api-helper
6dfb842379883c6e82bd053df072babfe78c3df9
[ "MIT" ]
null
null
null
tda_api_helper/models.py
alexgolec/tda-api-helper
6dfb842379883c6e82bd053df072babfe78c3df9
[ "MIT" ]
7
2021-12-31T01:37:18.000Z
2022-01-13T04:19:14.000Z
tda_api_helper/models.py
alexgolec/tda-api-helper
6dfb842379883c6e82bd053df072babfe78c3df9
[ "MIT" ]
null
null
null
import os from sqlalchemy import Column, DateTime, ForeignKey, Integer, String from sqlalchemy import create_engine from sqlalchemy.orm import declarative_base, relationship from sqlalchemy.sql import func Base = declarative_base() class User(Base): ''' A discord user. ''' __tablename__ = 'User' ...
32.633663
82
0.660498
2,906
0.881675
0
0
1,205
0.365595
0
0
1,034
0.313714
1e2a1a4a4d088d0f6af54806d09475266b32060c
156
py
Python
servidor_cliente/vax_control/exceptions.py
PedroLucasMiguel/trabalho-engenharia-de-software
e95527f085005c3b717bdc0923f5d14acd65a6f4
[ "MIT" ]
null
null
null
servidor_cliente/vax_control/exceptions.py
PedroLucasMiguel/trabalho-engenharia-de-software
e95527f085005c3b717bdc0923f5d14acd65a6f4
[ "MIT" ]
null
null
null
servidor_cliente/vax_control/exceptions.py
PedroLucasMiguel/trabalho-engenharia-de-software
e95527f085005c3b717bdc0923f5d14acd65a6f4
[ "MIT" ]
null
null
null
class InvalidFullNameException(Exception): pass class InvalidCPFException(Exception): pass class EmergencyMeetingException(Exception): pass
14.181818
43
0.782051
149
0.955128
0
0
0
0
0
0
0
0
1e2b1e90e65d462ea33a73daa9aaad6d0c9d572b
46,103
py
Python
python/sandbox/core.py
geometer/sandbox
373ec96e69df76744a19b51f7caa865cbc6b58cd
[ "Apache-2.0" ]
6
2020-04-19T11:26:18.000Z
2021-06-21T18:42:51.000Z
python/sandbox/core.py
geometer/sandbox
373ec96e69df76744a19b51f7caa865cbc6b58cd
[ "Apache-2.0" ]
31
2020-04-21T17:24:39.000Z
2020-08-27T15:59:12.000Z
python/sandbox/core.py
geometer/sandbox
373ec96e69df76744a19b51f7caa865cbc6b58cd
[ "Apache-2.0" ]
null
null
null
""" Core module. Normally, do not add new construction methods here, do this in scene.py instead. """ from enum import Enum, auto, unique import itertools import re import sympy as sp from typing import List from .figure import Figure from .reason import Reason from .util import LazyComment, Comment, divide class Co...
42.064781
139
0.549899
45,791
0.993125
0
0
6,754
0.146482
0
0
5,922
0.128438
1e2b6f738581b2742bd1ca8b2f9482692264a225
345
py
Python
while_example.py
ISE2012/ch5
cce470d418419bff0c9d37233755ee39e1362a27
[ "MIT" ]
null
null
null
while_example.py
ISE2012/ch5
cce470d418419bff0c9d37233755ee39e1362a27
[ "MIT" ]
null
null
null
while_example.py
ISE2012/ch5
cce470d418419bff0c9d37233755ee39e1362a27
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Wed Oct 14 10:08:03 2020 @author: ucobiz """ num = 0 # we have to initialize num to zero while num <= 0: # so that we can use it here num = int(input("Enter a positive number: ")) # the while loop has exited b/c num is positive print("Thank you. The number...
21.5625
51
0.611594
0
0
0
0
0
0
0
0
266
0.771014
1e2d130d98704094b0d5ff31b8c5866899ab9c1f
12,633
py
Python
entry/light_menu.py
way864/BattleTracker
7204d613165b1c461ee301e5078cd4e2b7a072c4
[ "MIT" ]
null
null
null
entry/light_menu.py
way864/BattleTracker
7204d613165b1c461ee301e5078cd4e2b7a072c4
[ "MIT" ]
null
null
null
entry/light_menu.py
way864/BattleTracker
7204d613165b1c461ee301e5078cd4e2b7a072c4
[ "MIT" ]
null
null
null
import math import tkinter as tk from tkinter import ttk, messagebox from tkinter.constants import X, Y from ttkthemes import ThemedStyle class PickLight(): def __init__(self, root, widg): self.root = root self.widg = widg self.x = self.root.winfo_pointerx() self.y = self.root.winf...
32.392308
225
0.432676
12,403
0.981794
0
0
0
0
0
0
594
0.04702
1e2e52b3d0a6b948e6c8f945ff393631222f7c91
123
py
Python
ievv_opensource/demo/demoapp/translation.py
appressoas/ievv_opensource
63e87827952ddc8f6f86145b79478ef21d6a0990
[ "BSD-3-Clause" ]
null
null
null
ievv_opensource/demo/demoapp/translation.py
appressoas/ievv_opensource
63e87827952ddc8f6f86145b79478ef21d6a0990
[ "BSD-3-Clause" ]
37
2015-10-26T09:14:12.000Z
2022-02-10T10:35:33.000Z
ievv_opensource/demo/demoapp/translation.py
appressoas/ievv_opensource
63e87827952ddc8f6f86145b79478ef21d6a0990
[ "BSD-3-Clause" ]
1
2015-11-06T07:56:34.000Z
2015-11-06T07:56:34.000Z
from django.utils.translation import gettext_lazy as _ def get_translated_string(): return _('Testing translations')
20.5
54
0.788618
0
0
0
0
0
0
0
0
22
0.178862
1e2ed5d13acdd2a38212da944c819fc33a4a6530
11,151
py
Python
tests/ozpcenter_api/test_api_library.py
emosher/ozp-backend
d31d00bb8a28a8d0c999813f616b398f41516244
[ "Apache-2.0" ]
1
2018-10-05T17:03:01.000Z
2018-10-05T17:03:01.000Z
tests/ozpcenter_api/test_api_library.py
emosher/ozp-backend
d31d00bb8a28a8d0c999813f616b398f41516244
[ "Apache-2.0" ]
1
2017-01-06T19:20:32.000Z
2017-01-06T19:20:32.000Z
tests/ozpcenter_api/test_api_library.py
emosher/ozp-backend
d31d00bb8a28a8d0c999813f616b398f41516244
[ "Apache-2.0" ]
7
2016-12-16T15:42:05.000Z
2020-09-05T01:11:27.000Z
import datetime import pytz from django.test import override_settings from rest_framework import status from ozpcenter import model_access as generic_model_access from ozpcenter.scripts import sample_data_generator as data_gen from tests.ozp.cases import APITestCase from tests.ozpcenter.helper import APITestHelper ...
44.426295
125
0.565958
10,793
0.967895
0
0
10,830
0.971213
0
0
2,730
0.244821
1e2f08d63ce02790e0954f0c2b48a364a5e50d1b
2,335
py
Python
vize/150401012/client.py
hasan-se/blm304
893d15282497a426ff96b0c8b6c77d57c406742e
[ "Unlicense" ]
2
2021-04-01T18:51:44.000Z
2021-06-13T19:46:20.000Z
vize/150401012/client.py
hasan-se/blm304
893d15282497a426ff96b0c8b6c77d57c406742e
[ "Unlicense" ]
null
null
null
vize/150401012/client.py
hasan-se/blm304
893d15282497a426ff96b0c8b6c77d57c406742e
[ "Unlicense" ]
null
null
null
#Yiğit Yüre 150401012 import socket import os import sys try: socket.gethostbyname(sys.argv[1]) except socket.error: print("Geçersiz IP adresi") sys.exit() host = sys.argv[1] port = int(sys.argv[2]) try: s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM) print("İstemci soketi başlatıldı") exce...
26.235955
92
0.543041
0
0
0
0
0
0
0
0
493
0.208369
1e2fe28bdba3c11579d9119dd5193c9ed892645c
201,951
py
Python
bios_pnp/vendors.py
neverware-mirrors/bios_pnp
56a12a94a536c43ca1a071e6ed502ee3d7400323
[ "Apache-2.0" ]
null
null
null
bios_pnp/vendors.py
neverware-mirrors/bios_pnp
56a12a94a536c43ca1a071e6ed502ee3d7400323
[ "Apache-2.0" ]
null
null
null
bios_pnp/vendors.py
neverware-mirrors/bios_pnp
56a12a94a536c43ca1a071e6ed502ee3d7400323
[ "Apache-2.0" ]
2
2018-03-29T01:19:03.000Z
2021-01-16T14:06:21.000Z
# THIS FILE WAS AUTOGENERATED BY make_vendor_list.py! # pylint: disable=line-too-long,missing-docstring,too-many-lines # yapf: disable import datetime from bios_pnp import pnp VENDORS = { "BUT": pnp.Vendor("21ST CENTURY ENTERTAINMENT", "BUT", datetime.date(2002, 4, 25)), "TTL": pnp.Vendor("2-Tel B.V", "TTL", da...
81.794654
138
0.630163
0
0
0
0
0
0
0
0
78,137
0.38689
1e31aafbd6d3baac6fea5ff1008384c247a90db7
568
py
Python
ABC/ABC126/abc126_d.py
yatabis/AtCoder-in-Python3
cc2948853b549a6b8f39df5685c9e84cda81499d
[ "MIT" ]
null
null
null
ABC/ABC126/abc126_d.py
yatabis/AtCoder-in-Python3
cc2948853b549a6b8f39df5685c9e84cda81499d
[ "MIT" ]
null
null
null
ABC/ABC126/abc126_d.py
yatabis/AtCoder-in-Python3
cc2948853b549a6b8f39df5685c9e84cda81499d
[ "MIT" ]
null
null
null
# 問題URL: https://atcoder.jp/contests/abc126/tasks/abc126_d # 解答URL: https://atcoder.jp/contests/abc126/submissions/14638903 from heapq import heappop, heappush n = int(input()) a = [[] for _ in range(n)] for _ in range(n - 1): u, v, w = map(int, input().split()) a[u - 1].append((v - 1, w)) a[v - 1].append...
22.72
64
0.556338
0
0
0
0
0
0
0
0
130
0.225694
1e334b9a938fd3c9df3467c8d839369988bb30b6
10,029
py
Python
Codes/utility/load_data.py
CRIPAC-DIG/K-GHRM
5d73ed701b7753ee402ecfc1dbc4b20c578a4656
[ "MIT" ]
3
2021-07-19T14:34:07.000Z
2022-03-31T06:24:38.000Z
Codes/utility/load_data.py
CRIPAC-DIG/K-GHRM
5d73ed701b7753ee402ecfc1dbc4b20c578a4656
[ "MIT" ]
null
null
null
Codes/utility/load_data.py
CRIPAC-DIG/K-GHRM
5d73ed701b7753ee402ecfc1dbc4b20c578a4656
[ "MIT" ]
1
2021-08-22T07:23:49.000Z
2021-08-22T07:23:49.000Z
import numpy as np import random as rd from time import time from math import log import gc import heapq import copy from utility.parser import parse_args args = parse_args() class Data(object): def __init__(self, path, batch_size): self.batch_size = batch_size doc_file = path + '/ma...
41.271605
444
0.466746
9,841
0.981254
0
0
0
0
0
0
1,282
0.127829
1e33b7d46ae6ef1f9eed0f3bad1e2a967744885c
4,379
py
Python
popseg/models/panopticdeeplab.py
sithu31296/panoptic-segmentation
bd3f5bf51729dcf5698959b3a6b53a1da8e2db65
[ "MIT" ]
1
2021-11-06T09:00:11.000Z
2021-11-06T09:00:11.000Z
popseg/models/panopticdeeplab.py
sithu31296/panoptic-segmentation
bd3f5bf51729dcf5698959b3a6b53a1da8e2db65
[ "MIT" ]
1
2021-11-07T11:59:57.000Z
2021-11-08T14:29:10.000Z
popseg/models/panopticdeeplab.py
sithu31296/panoptic-segmentation
bd3f5bf51729dcf5698959b3a6b53a1da8e2db65
[ "MIT" ]
null
null
null
import torch from torch import nn, Tensor from torch.nn import functional as F from .modules import Conv, SeparableConv from .backbones import ResNet class ASPP(nn.Module): def __init__(self, c1, c2, drop_rate=0.1): super().__init__() ratios = [1, 6, 12, 18] self.blocks = nn.ModuleList([ ...
35.893443
114
0.631879
4,002
0.913907
0
0
0
0
0
0
78
0.017812
1e35b131f0e0e93445407cb308ded03d523d37ec
474
py
Python
heap/easy/qheap.py
YANG007SUN/data_structure
481e76eb713dc305409eafe4118121f499357ec6
[ "Apache-2.0" ]
null
null
null
heap/easy/qheap.py
YANG007SUN/data_structure
481e76eb713dc305409eafe4118121f499357ec6
[ "Apache-2.0" ]
null
null
null
heap/easy/qheap.py
YANG007SUN/data_structure
481e76eb713dc305409eafe4118121f499357ec6
[ "Apache-2.0" ]
null
null
null
# https://www.hackerrank.com/challenges/qheap1/problem?isFullScreen=true Q = int(input()) hp = [] for _ in range(Q): ls = list(map(int, input().split())) if ls[0]==1: if len(hp)==0: hp.append(ls[1]) minv = hp[0] else: minv = min(ls[1], minv) hp.ap...
23.7
72
0.466245
0
0
0
0
0
0
0
0
72
0.151899
1e366c09791897360353aaacf043f05a0076f0a2
680
py
Python
bagpipe/exabgp/message/update/attribute/labels.py
taheri0/MPLS-over-GRE
7d14b819d396b7779b02ea1150bcaf412cb6d36c
[ "Apache-2.0" ]
94
2015-01-05T17:15:21.000Z
2022-01-09T20:05:16.000Z
bagpipe/exabgp/message/update/attribute/labels.py
taheri0/MPLS-over-GRE
7d14b819d396b7779b02ea1150bcaf412cb6d36c
[ "Apache-2.0" ]
18
2015-03-16T16:16:55.000Z
2017-03-27T11:22:38.000Z
bagpipe/exabgp/message/update/attribute/labels.py
taheri0/MPLS-over-GRE
7d14b819d396b7779b02ea1150bcaf412cb6d36c
[ "Apache-2.0" ]
36
2015-03-13T02:30:15.000Z
2021-06-22T10:10:23.000Z
# encoding: utf-8 """ labels.py Created by Thomas Mangin on 2009-11-05. Copyright (c) 2009-2012 Exa Networks. All rights reserved. Modified by Orange - 2014 """ from struct import pack #from bagpipe.exabgp.message.update.attribute import AttributeID,Flag,Attribute # =================================================...
19.428571
79
0.627941
330
0.485294
0
0
0
0
0
0
332
0.488235
1e369a1097ab91da0411c8e0085e71ff5b62e1cb
3,087
py
Python
pygcn/layers.py
linzhongping/fm-gcn
d403eff40c19c7cf7998c894e03b2c45da556ac7
[ "MIT" ]
1
2020-01-11T12:53:28.000Z
2020-01-11T12:53:28.000Z
pygcn/layers.py
linzhongping/fm-gcn
d403eff40c19c7cf7998c894e03b2c45da556ac7
[ "MIT" ]
11
2019-08-06T02:23:32.000Z
2022-03-11T23:51:20.000Z
pygcn/layers.py
linzhongping/fm-gcn
d403eff40c19c7cf7998c894e03b2c45da556ac7
[ "MIT" ]
1
2020-01-11T12:53:29.000Z
2020-01-11T12:53:29.000Z
import math from torch.nn import Embedding import torch from torch.nn.parameter import Parameter from torch.nn.modules.module import Module from torch.nn import init from torch.autograd import Variable torch.random.manual_seed(2070) class GraphConvolution(Module): """ Simple GCN layer, similar to https://arxiv...
31.5
77
0.6184
2,867
0.922755
0
0
0
0
0
0
412
0.132604
1e36f1e2ae5ddfe99dd5a797c7fd43899e122c3b
39
py
Python
jinahub/segmenters/PDFSegmenter/__init__.py
sauravgarg540/executors
c06a16633767346eee96ec019ae6a171f125f6cb
[ "Apache-2.0" ]
null
null
null
jinahub/segmenters/PDFSegmenter/__init__.py
sauravgarg540/executors
c06a16633767346eee96ec019ae6a171f125f6cb
[ "Apache-2.0" ]
null
null
null
jinahub/segmenters/PDFSegmenter/__init__.py
sauravgarg540/executors
c06a16633767346eee96ec019ae6a171f125f6cb
[ "Apache-2.0" ]
null
null
null
from .pdf_segmenter import PDFSegmenter
39
39
0.897436
0
0
0
0
0
0
0
0
0
0
1e3792ff3e2c12900e4deb81ec079584de749ca2
1,623
py
Python
digest/test/test_digest_tools.py
dongboyan77/quay
8018e5bd80f17e6d855b58b7d5f2792d92675905
[ "Apache-2.0" ]
1
2020-10-16T19:30:41.000Z
2020-10-16T19:30:41.000Z
digest/test/test_digest_tools.py
dongboyan77/quay
8018e5bd80f17e6d855b58b7d5f2792d92675905
[ "Apache-2.0" ]
15
2020-06-18T15:32:06.000Z
2022-03-03T23:06:24.000Z
digest/test/test_digest_tools.py
dongboyan77/quay
8018e5bd80f17e6d855b58b7d5f2792d92675905
[ "Apache-2.0" ]
null
null
null
import pytest from digest.digest_tools import Digest, content_path, InvalidDigestException @pytest.mark.parametrize( "digest, output_args", [ ("tarsum.v123123+sha1:123deadbeef", ("tarsum.v123123+sha1", "123deadbeef")), ("tarsum.v1+sha256:123123", ("tarsum.v1+sha256", "123123")), ("tar...
30.055556
84
0.593346
0
0
0
0
1,522
0.93777
0
0
732
0.451017
1e3868fcfa8f7c10952baf06df24ab8e1002802d
199
py
Python
skipper-lib/skipper_lib/logger/logger_helper.py
xandrade/katana-skipper
196a1bd58ceab03dd409bc5bb1b0f9b6218ccd92
[ "Apache-2.0" ]
162
2021-05-17T20:43:34.000Z
2022-03-31T04:19:51.000Z
skipper-lib/skipper_lib/logger/logger_helper.py
xandrade/katana-skipper
196a1bd58ceab03dd409bc5bb1b0f9b6218ccd92
[ "Apache-2.0" ]
4
2021-10-09T07:21:21.000Z
2022-02-08T19:35:29.000Z
skipper-lib/skipper_lib/logger/logger_helper.py
xandrade/katana-skipper
196a1bd58ceab03dd409bc5bb1b0f9b6218ccd92
[ "Apache-2.0" ]
30
2021-05-30T07:50:37.000Z
2022-03-10T01:56:02.000Z
import requests def call(logger, params): try: requests.post(logger, json=params) except requests.exceptions.RequestException as e: print('Logger service is not available')
22.111111
53
0.698492
0
0
0
0
0
0
0
0
33
0.165829
1e3951f43593829e9f73863dbf2d7b40f67d59a0
1,277
py
Python
tests/test_block.py
quantum13/mile-csa-python
f3303836ef520886fc58fb8a06ab716ff3065fb2
[ "MIT" ]
null
null
null
tests/test_block.py
quantum13/mile-csa-python
f3303836ef520886fc58fb8a06ab716ff3065fb2
[ "MIT" ]
null
null
null
tests/test_block.py
quantum13/mile-csa-python
f3303836ef520886fc58fb8a06ab716ff3065fb2
[ "MIT" ]
null
null
null
import unittest from milecsa import Chain, Config import local_config def print_block(chain, block): print("Id: ", block.blockId) print("Version: ", block.version) print("Timestamp: ", block.timestamp) print("Trx count: ", block.transaction_count) for t in block.transactions: ass...
25.54
113
0.602976
732
0.573218
0
0
0
0
0
0
195
0.152702
1e3b2896c4c71de1f2f4c4021609291572737a53
14,014
py
Python
index.py
jansusea/video_rent_demo
17e3d2f239a433fc313c7f2c45fbb46b7573a6a6
[ "Apache-2.0" ]
2
2019-12-13T06:10:52.000Z
2019-12-15T14:58:07.000Z
index.py
jansusea/video_rent_demo
17e3d2f239a433fc313c7f2c45fbb46b7573a6a6
[ "Apache-2.0" ]
null
null
null
index.py
jansusea/video_rent_demo
17e3d2f239a433fc313c7f2c45fbb46b7573a6a6
[ "Apache-2.0" ]
null
null
null
from flask_jsglue import JSGlue from flask import Flask, render_template, jsonify from flask_sqlalchemy import SQLAlchemy from flask_restful import reqparse, Api app = Flask(__name__) api = Api(app) app.config['SQLALCHEMY_DATABASE_URI'] = 'mysql://root:root@localhost:3306/videorent?charset=utf8mb4' app.config['SQLALCH...
35.659033
125
0.630512
4,872
0.339607
0
0
8,878
0.618848
0
0
2,399
0.167224
1e3bf3816d2775c53ca40f975a39eda86b48bb10
11,285
py
Python
everest/repositories/rdb/querying.py
helixyte/everest
70c9b93c3061db5cb62428349d18b8fb8566411b
[ "MIT" ]
3
2015-03-10T17:38:25.000Z
2017-04-29T03:47:06.000Z
everest/repositories/rdb/querying.py
helixyte/everest
70c9b93c3061db5cb62428349d18b8fb8566411b
[ "MIT" ]
1
2015-03-02T16:02:41.000Z
2015-03-02T16:02:41.000Z
everest/repositories/rdb/querying.py
cenix/everest
70c9b93c3061db5cb62428349d18b8fb8566411b
[ "MIT" ]
1
2020-07-12T22:46:59.000Z
2020-07-12T22:46:59.000Z
""" Querying functionality for the rdb repository. This file is part of the everest project. See LICENSE.txt for licensing, CONTRIBUTORS.txt for contributor information. Created on Jan 7, 2013. """ from everest.constants import RESOURCE_ATTRIBUTE_KINDS from everest.entities.base import Entity from everest.exceptions ...
37.616667
99
0.672751
9,331
0.82685
0
0
6,184
0.547984
0
0
2,574
0.22809
1e3c4d4cb0dbc4f7cda5f5d0400be26747fb6df0
1,259
py
Python
myLogger.py
DavideFrr/ibmqx_experiments
f9e3c2e85d3fd8ea3f9a69b7bee26c135eabc755
[ "Apache-2.0" ]
6
2017-11-07T12:01:49.000Z
2018-04-23T06:45:05.000Z
myLogger.py
DavideFrr/ibmqx_envariance
f9e3c2e85d3fd8ea3f9a69b7bee26c135eabc755
[ "Apache-2.0" ]
null
null
null
myLogger.py
DavideFrr/ibmqx_envariance
f9e3c2e85d3fd8ea3f9a69b7bee26c135eabc755
[ "Apache-2.0" ]
1
2018-05-07T06:34:42.000Z
2018-05-07T06:34:42.000Z
# Copyright 2017 Quantum Information Science, University of Parma, Italy. 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...
38.151515
94
0.70135
286
0.227164
0
0
0
0
0
0
897
0.71247
1e40bb23a7df34b4097b777f22663a9bcc159f40
3,742
py
Python
predicting solar enegy generation/solar.py
imsanjoykb/Working-Analysis
12267ccbe833ea0daedb34990ba1757f3888e447
[ "Apache-2.0" ]
3
2020-12-31T19:23:45.000Z
2022-02-07T16:09:14.000Z
predicting solar enegy generation/solar.py
imsanjoykb/Working-Analysis
12267ccbe833ea0daedb34990ba1757f3888e447
[ "Apache-2.0" ]
null
null
null
predicting solar enegy generation/solar.py
imsanjoykb/Working-Analysis
12267ccbe833ea0daedb34990ba1757f3888e447
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Thu Mar 12 17:57:02 2020 @author: Atique Akhtar """ import numpy as np import pandas as pd import matplotlib.pyplot as plt import seaborn as sns from sklearn.model_selection import train_test_split from sklearn.linear_model import LinearRegression from sklearn import metrics fro...
29.464567
110
0.756547
0
0
0
0
0
0
0
0
987
0.263763
1e42f7faf93d8ca30408b7f1bf98b2c4582082bf
7,047
py
Python
scoring_functions.py
juius/GB-GA
4b49f1822c5190e8b2bbb8b7403eed30af9e50fd
[ "MIT" ]
42
2018-10-24T09:31:07.000Z
2021-04-10T04:04:51.000Z
scoring_functions.py
juius/GB-GA
4b49f1822c5190e8b2bbb8b7403eed30af9e50fd
[ "MIT" ]
null
null
null
scoring_functions.py
juius/GB-GA
4b49f1822c5190e8b2bbb8b7403eed30af9e50fd
[ "MIT" ]
25
2018-10-24T09:01:59.000Z
2021-04-24T10:51:22.000Z
''' Written by Jan H. Jensen 2018 ''' from rdkit import Chem from rdkit.Chem import AllChem from rdkit.Chem import Descriptors from rdkit.DataStructs.cDataStructs import TanimotoSimilarity from rdkit.Chem import rdFMCS from rdkit import rdBase rdBase.DisableLog('rdApp.error') import numpy as np import sys from multi...
28.188
137
0.711225
0
0
0
0
0
0
0
0
931
0.132113
1e437b4dfd0558c6e8bffff9311d6c58e3c2a593
386
py
Python
mmdet3d/models/middle_encoders/__init__.py
yangzilongdmgy/merge_monster_3d
0595e36749d32c3d5537a3f707727a137c82076e
[ "Apache-2.0" ]
null
null
null
mmdet3d/models/middle_encoders/__init__.py
yangzilongdmgy/merge_monster_3d
0595e36749d32c3d5537a3f707727a137c82076e
[ "Apache-2.0" ]
null
null
null
mmdet3d/models/middle_encoders/__init__.py
yangzilongdmgy/merge_monster_3d
0595e36749d32c3d5537a3f707727a137c82076e
[ "Apache-2.0" ]
null
null
null
# Copyright (c) OpenMMLab. All rights reserved. from .pillar_scatter import PointPillarsScatter from .sparse_encoder import SparseEncoder from .sparse_unet import SparseUNet from .sparse_encoder_aux import SparseEncoder_AUX from .sparse_encoderv2 import SparseEncoderV2 __all__ = [ 'PointPillarsScatter', 'SparseEnc...
32.166667
78
0.813472
0
0
0
0
0
0
0
0
131
0.339378
1e45671ec504dd3c04b26925a2e6eba78b31882e
845
py
Python
mopy/policies/backup.py
TylerSandman/mopy
df66bb728f6dacee8ee6267a8802a4b71a04fd43
[ "MIT" ]
null
null
null
mopy/policies/backup.py
TylerSandman/mopy
df66bb728f6dacee8ee6267a8802a4b71a04fd43
[ "MIT" ]
null
null
null
mopy/policies/backup.py
TylerSandman/mopy
df66bb728f6dacee8ee6267a8802a4b71a04fd43
[ "MIT" ]
null
null
null
""" Contains result backpropagation policies for MCTS. All policies should be represented as a function that takes a MCTree and the result of a game, and updates a node accordingly. Backup policies dictate how the results of simulated games affect game states beforehand. See the main Mopy module and MCTree for m...
36.73913
79
0.710059
0
0
0
0
0
0
0
0
697
0.824852
1e49f827aac986a59bed712075a11f7c49c14620
2,917
py
Python
tests/validation/parameter/test_min_max_length_validation.py
maroux/flex
dfd7c6d79d065d7ce1b0c799e51e9bb5292612b2
[ "MIT" ]
160
2015-01-15T05:36:44.000Z
2021-08-04T00:43:54.000Z
tests/validation/parameter/test_min_max_length_validation.py
maroux/flex
dfd7c6d79d065d7ce1b0c799e51e9bb5292612b2
[ "MIT" ]
151
2015-01-20T16:45:36.000Z
2022-02-23T21:07:58.000Z
tests/validation/parameter/test_min_max_length_validation.py
maroux/flex
dfd7c6d79d065d7ce1b0c799e51e9bb5292612b2
[ "MIT" ]
90
2015-01-20T11:19:36.000Z
2021-08-03T08:58:18.000Z
import pytest from flex.exceptions import ValidationError from flex.loading.schema.paths.path_item.operation.parameters import ( parameters_validator, ) from flex.validation.parameter import ( validate_parameters, ) from flex.constants import ( PATH, STRING, ) from tests.utils import assert_path_in_er...
20.687943
76
0.545766
0
0
0
0
2,516
0.86253
0
0
472
0.16181
1e4ce32c38c583706ec7bfb679d5be87d306fa64
2,556
py
Python
src/python-multiCameraServer/facegrip.py
FRCTeam1277/PavelVisionTests2021
1c5b674aed893c3c1d770ca4f124cb6d93615903
[ "BSD-3-Clause" ]
null
null
null
src/python-multiCameraServer/facegrip.py
FRCTeam1277/PavelVisionTests2021
1c5b674aed893c3c1d770ca4f124cb6d93615903
[ "BSD-3-Clause" ]
null
null
null
src/python-multiCameraServer/facegrip.py
FRCTeam1277/PavelVisionTests2021
1c5b674aed893c3c1d770ca4f124cb6d93615903
[ "BSD-3-Clause" ]
null
null
null
import cv2 import numpy import math from enum import Enum class GripPipeline: """ An OpenCV pipeline generated by GRIP. """ def __init__(self): """initializes all values to presets or None if need to be set """ self.__new_size_width = 100.0 self.__new_size_height = ...
36
292
0.687011
2,493
0.975352
0
0
1,150
0.449922
0
0
1,088
0.425665
1e4e63042228f66cff5a912d41b87d37722d2937
3,298
py
Python
Task2/main.py
KKowalewski24/ADZ
8a04570a1f6f08506572386b2312a259a8308f56
[ "MIT" ]
null
null
null
Task2/main.py
KKowalewski24/ADZ
8a04570a1f6f08506572386b2312a259a8308f56
[ "MIT" ]
null
null
null
Task2/main.py
KKowalewski24/ADZ
8a04570a1f6f08506572386b2312a259a8308f56
[ "MIT" ]
null
null
null
from argparse import ArgumentParser, Namespace from typing import Any, Dict, Tuple import numpy as np from sklearn.cluster import DBSCAN from sklearn.metrics import precision_score, recall_score from sklearn.neighbors import LocalOutlierFactor from module.LatexGenerator import LatexGenerator from module.OutlierAgglom...
35.462366
93
0.647665
0
0
0
0
0
0
0
0
925
0.280473
1e4f198f80a2b90957f00d6e9a760ddb7d4d2c00
1,534
py
Python
test/test_matching_with_dont_cares.py
matkaczmarek/string-algorithms
df1367e633ee0b3377cbdd67a77982f373fe2459
[ "MIT" ]
1
2020-06-27T01:33:43.000Z
2020-06-27T01:33:43.000Z
test/test_matching_with_dont_cares.py
TenGumis/string-algorithms
e57a9dc6150e92ab65cad4a5c1e68533b7166eb7
[ "MIT" ]
null
null
null
test/test_matching_with_dont_cares.py
TenGumis/string-algorithms
e57a9dc6150e92ab65cad4a5c1e68533b7166eb7
[ "MIT" ]
null
null
null
import itertools import os import unittest from generator import rand from approximate_string_matching import dont_care, matching_with_dont_cares class TestExactMatchingWithDontCaresCase(unittest.TestCase): run_large = unittest.skipUnless( os.environ.get('LARGE', False), 'Skip test in small runs') def make...
34.088889
75
0.643416
1,385
0.902868
0
0
713
0.464798
0
0
102
0.066493
1e4f435f06f8b0f3c610c16275c5fe53209837e7
1,902
py
Python
nengo/utils/network.py
HugoChateauLaurent/nengo
749893186ee09aa6c621a40da3ffd3878114db9c
[ "BSD-2-Clause" ]
null
null
null
nengo/utils/network.py
HugoChateauLaurent/nengo
749893186ee09aa6c621a40da3ffd3878114db9c
[ "BSD-2-Clause" ]
null
null
null
nengo/utils/network.py
HugoChateauLaurent/nengo
749893186ee09aa6c621a40da3ffd3878114db9c
[ "BSD-2-Clause" ]
null
null
null
import nengo from .magic import decorator @decorator def with_self(method, network, args, kwargs): """Wraps a method with ``with network:``. This makes it easy to add methods to a network that create new Nengo objects. Instead of writing ``with self`` at the top of the method and indenting everything...
29.71875
76
0.640904
0
0
0
0
722
0.3796
0
0
1,016
0.534175
1e502b66e5902b480d62357920638ef90c30a7e7
379
py
Python
src/utils/Evaluator.py
elfaizamine/loan_default_prediction
c76632b0757e9f23d347e00bcd755d26800a54be
[ "MIT" ]
null
null
null
src/utils/Evaluator.py
elfaizamine/loan_default_prediction
c76632b0757e9f23d347e00bcd755d26800a54be
[ "MIT" ]
null
null
null
src/utils/Evaluator.py
elfaizamine/loan_default_prediction
c76632b0757e9f23d347e00bcd755d26800a54be
[ "MIT" ]
null
null
null
from matplotlib import pyplot as plt from sklearn import metrics class Evaluator: def __init__(self, y_true, y_pred): """ calculate auc : area under roc curve """ self.auc = self.auc(y_true, y_pred) def auc(self, y_true, y_pred): FF, TT, thresholds = metrics.roc_curv...
19.947368
62
0.622691
309
0.815303
0
0
0
0
0
0
60
0.158311
1e509497962389e6ed71b35b5ec1d4dff24d9090
779
py
Python
acme/resources/DVI.py
reinaortega/ACME-oneM2M-CSE
ee45a6a2bcbb0fd0397cfffc0522fa252d7e98be
[ "BSD-3-Clause" ]
null
null
null
acme/resources/DVI.py
reinaortega/ACME-oneM2M-CSE
ee45a6a2bcbb0fd0397cfffc0522fa252d7e98be
[ "BSD-3-Clause" ]
null
null
null
acme/resources/DVI.py
reinaortega/ACME-oneM2M-CSE
ee45a6a2bcbb0fd0397cfffc0522fa252d7e98be
[ "BSD-3-Clause" ]
null
null
null
# # DVI.py # # (c) 2020 by Andreas Kraft # License: BSD 3-Clause License. See the LICENSE file for further details. # # ResourceType: mgmtObj:DeviceInfo # from .MgmtObj import * from Constants import Constants as C import Utils defaultDeviceType = 'unknown' defaultModel = "unknown" defaultManufacturer = "unknown" def...
26.862069
74
0.752246
419
0.537869
0
0
0
0
0
0
213
0.273427
1e520e590c8df2d66276d19de77a152e7ca6c316
1,272
py
Python
augmentation.py
chaets/cogniac
aefb4355d3f7b56cbc42e1039e88d709b40051dc
[ "Apache-2.0" ]
1
2021-04-26T18:15:35.000Z
2021-04-26T18:15:35.000Z
augmentation.py
chaets/cogniac
aefb4355d3f7b56cbc42e1039e88d709b40051dc
[ "Apache-2.0" ]
null
null
null
augmentation.py
chaets/cogniac
aefb4355d3f7b56cbc42e1039e88d709b40051dc
[ "Apache-2.0" ]
1
2021-03-19T21:40:48.000Z
2021-03-19T21:40:48.000Z
import cv2 import numpy as np class Augmentation: """docstring for Augmentation.""" # def __init__(self): # pass # super(Augmentation, self).__init__() # self.arg = arg def get_resize(image, lengthScale, breadthScale): src = cv2.imread(image , cv2.IMREAD_UNCHANGED) ...
31.02439
87
0.575472
1,240
0.974843
0
0
0
0
0
0
190
0.149371
1e529806b916a14d473506fae40b14ec1ce0965a
557
py
Python
pages/themes/beginners/unicodeTopics/examples/fromWin1251_toUTF8.py
ProgressBG-Python-Course/ProgressBG-VC2-Python
03b892a42ee1fad3d4f97e328e06a4b1573fd356
[ "MIT" ]
null
null
null
pages/themes/beginners/unicodeTopics/examples/fromWin1251_toUTF8.py
ProgressBG-Python-Course/ProgressBG-VC2-Python
03b892a42ee1fad3d4f97e328e06a4b1573fd356
[ "MIT" ]
null
null
null
pages/themes/beginners/unicodeTopics/examples/fromWin1251_toUTF8.py
ProgressBG-Python-Course/ProgressBG-VC2-Python
03b892a42ee1fad3d4f97e328e06a4b1573fd356
[ "MIT" ]
null
null
null
input_file_name = "windows-1251_encoded_file.txt" output_file_name = "utf8_encoded_file.txt" def read_from(enc, file_name): # open file for read in textmode with encoding: with open(file_name,"r", encoding="cp1251") as f: decoded_content = f.read() return decoded_content def write_to(enc, content, file_na...
25.318182
54
0.746858
0
0
0
0
0
0
0
0
178
0.319569
1e53d52936557fab1d6afac1ad13ee2619cc016c
449
py
Python
iaso/migrations/0065_auto_20201201_1456.py
ekhalilbsq/iaso
e6400c52aeb4f67ce1ca83b03efa3cb11ef235ee
[ "MIT" ]
29
2020-12-26T07:22:19.000Z
2022-03-07T13:40:09.000Z
iaso/migrations/0065_auto_20201201_1456.py
ekhalilbsq/iaso
e6400c52aeb4f67ce1ca83b03efa3cb11ef235ee
[ "MIT" ]
150
2020-11-09T15:03:27.000Z
2022-03-07T15:36:07.000Z
iaso/migrations/0065_auto_20201201_1456.py
ekhalilbsq/iaso
e6400c52aeb4f67ce1ca83b03efa3cb11ef235ee
[ "MIT" ]
4
2020-11-09T10:38:13.000Z
2021-10-04T09:42:47.000Z
# Generated by Django 3.0.7 on 2020-12-01 14:56 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [("iaso", "0064_instance_deleted")] operations = [ migrations.AlterField( model_name="featureflag", name="code", field=models.CharField(max_leng...
28.0625
101
0.67706
356
0.792873
0
0
0
0
0
0
110
0.244989
1e56b55098ede8127120d4b6280c82f5e4c576f7
436
py
Python
examples/app/myapp.py
westurner/celery
41964f24df4c8ca5d96bf0d644e40778212e10cb
[ "BSD-3-Clause" ]
1
2015-02-27T00:56:02.000Z
2015-02-27T00:56:02.000Z
examples/app/myapp.py
westurner/celery
41964f24df4c8ca5d96bf0d644e40778212e10cb
[ "BSD-3-Clause" ]
null
null
null
examples/app/myapp.py
westurner/celery
41964f24df4c8ca5d96bf0d644e40778212e10cb
[ "BSD-3-Clause" ]
null
null
null
"""myapp.py Usage: (window1)$ python myapp.py worker -l info (window2)$ python >>> from myapp import add >>> add.delay(16, 16).get() 32 You can also specify the app to use with celeryd:: $ celery worker -l info --app=myapp """ from celery import Celery celery = Celery("myapp", broker="amqp://...
15.034483
59
0.626147
0
0
0
0
46
0.105505
0
0
295
0.676606
1e572a42c6bc0c9afac50afe4337fe89f5d90d51
7,795
py
Python
PyObjCTest/test_cfdictionary.py
linuxfood/pyobjc-framework-Cocoa-test
3475890f165ab26a740f13d5afe4c62b4423a140
[ "MIT" ]
null
null
null
PyObjCTest/test_cfdictionary.py
linuxfood/pyobjc-framework-Cocoa-test
3475890f165ab26a740f13d5afe4c62b4423a140
[ "MIT" ]
null
null
null
PyObjCTest/test_cfdictionary.py
linuxfood/pyobjc-framework-Cocoa-test
3475890f165ab26a740f13d5afe4c62b4423a140
[ "MIT" ]
null
null
null
import CoreFoundation import objc from PyObjCTools.TestSupport import TestCase class TestCFDictionary(TestCase): def testCreation(self): dictionary = CoreFoundation.CFDictionaryCreate( None, ("aap", "noot", "mies", "wim"), ("monkey", "nut", "missy", "john"), ...
40.180412
88
0.636947
7,713
0.98948
0
0
0
0
0
0
705
0.090443
1e578a66b213b846971e0fefcbf7b9c33b776eea
1,462
py
Python
hallo/test/modules/hallo_control/test_active_threads.py
joshcoales/Hallo
17145d8f76552ecd4cbc5caef8924bd2cf0cbf24
[ "MIT" ]
1
2018-05-19T22:27:20.000Z
2018-05-19T22:27:20.000Z
hallo/test/modules/hallo_control/test_active_threads.py
joshcoales/Hallo
17145d8f76552ecd4cbc5caef8924bd2cf0cbf24
[ "MIT" ]
75
2015-09-26T18:07:18.000Z
2022-01-04T07:15:11.000Z
hallo/test/modules/hallo_control/test_active_threads.py
SpangleLabs/Hallo
17145d8f76552ecd4cbc5caef8924bd2cf0cbf24
[ "MIT" ]
1
2021-04-10T12:02:47.000Z
2021-04-10T12:02:47.000Z
from threading import Thread import time from hallo.events import EventMessage def test_threads_simple(hallo_getter): test_hallo = hallo_getter({"hallo_control"}) test_hallo.function_dispatcher.dispatch( EventMessage(test_hallo.test_server, None, test_hallo.test_user, "active threads") ) dat...
37.487179
90
0.719562
0
0
0
0
0
0
0
0
205
0.140219
1e57a3b1f5bc69858ee77a65eb9d305c058566c9
3,910
py
Python
melior_transformers/encoding/encoding_model.py
MeliorAI/meliorTransformers
b2936e1aac23e63e0b737d03975124c31a960812
[ "Apache-2.0" ]
1
2020-08-06T10:48:49.000Z
2020-08-06T10:48:49.000Z
melior_transformers/encoding/encoding_model.py
MeliorAI/meliorTransformers
b2936e1aac23e63e0b737d03975124c31a960812
[ "Apache-2.0" ]
2
2020-02-13T12:45:57.000Z
2020-04-14T11:30:33.000Z
melior_transformers/encoding/encoding_model.py
MeliorAI/meliorTransformers
b2936e1aac23e63e0b737d03975124c31a960812
[ "Apache-2.0" ]
2
2020-07-21T12:43:51.000Z
2021-08-13T15:21:22.000Z
import logging from typing import Dict, List import numpy as np import torch from numpy import ndarray from sentence_transformers import SentenceTransformer, models from melior_transformers.config.global_args import global_args from melior_transformers.encoding.constants import MODEL_CLASSES logger = logging.getLogg...
33.418803
88
0.615601
3,574
0.914066
0
0
0
0
0
0
1,655
0.423274
1e57b3a6e4d96a119f56fc088803962c5fcf3de7
114
py
Python
Models/instances/refresh_from_db()/models.py
looking-for-a-job/django-examples
dfafa450668cac5c0351f6c7238b8886511229bf
[ "Unlicense" ]
null
null
null
Models/instances/refresh_from_db()/models.py
looking-for-a-job/django-examples
dfafa450668cac5c0351f6c7238b8886511229bf
[ "Unlicense" ]
null
null
null
Models/instances/refresh_from_db()/models.py
looking-for-a-job/django-examples
dfafa450668cac5c0351f6c7238b8886511229bf
[ "Unlicense" ]
null
null
null
#!/usr/bin/env python from django.db import models class MyModel(models.Model): val = models.IntegerField()
16.285714
31
0.72807
60
0.526316
0
0
0
0
0
0
21
0.184211
1e57f2da3f20d5ecc4a09a1464ede0da10a2f32a
9,234
py
Python
tortilla/core.py
sunlightlabs/python-tortilla
4b4f3538b293ccff218610c5a452f69d582130d4
[ "BSD-3-Clause" ]
1
2019-07-31T02:54:10.000Z
2019-07-31T02:54:10.000Z
tortilla/core.py
sunlightlabs/python-tortilla
4b4f3538b293ccff218610c5a452f69d582130d4
[ "BSD-3-Clause" ]
null
null
null
tortilla/core.py
sunlightlabs/python-tortilla
4b4f3538b293ccff218610c5a452f69d582130d4
[ "BSD-3-Clause" ]
1
2015-12-13T08:21:12.000Z
2015-12-13T08:21:12.000Z
import json import requests from requests.exceptions import Timeout from .util import meta_fix class SalsaObject(object): def __init__(self, initial=None): _data = {} if initial: _data.update(initial) self.__dict__['_data'] = _data def __getattr__(self, attr): if a...
26.084746
100
0.585662
8,315
0.900476
0
0
1,019
0.110353
0
0
1,108
0.119991
1e58286e282abcb985fa69b50248bb70d6390ed9
3,138
py
Python
main.py
Qumeric/flappypython
40f4ab00870f6e5f02ef7de74190c6a277feb034
[ "MIT" ]
null
null
null
main.py
Qumeric/flappypython
40f4ab00870f6e5f02ef7de74190c6a277feb034
[ "MIT" ]
1
2015-04-07T15:17:30.000Z
2015-04-07T17:34:01.000Z
main.py
Qumeric/flappypython
40f4ab00870f6e5f02ef7de74190c6a277feb034
[ "MIT" ]
null
null
null
from pygame import display, font, image, init, time, event from pygame.locals import * from random import randrange from GameObject import Bird, Pipe SCORE_COLOR = (255, 255, 0) HIGHSCORE_COLOR = (255, 165, 0) DISPLAY_WIDTH = 320 DISPLAY_HEIGHT = 480 FONT = None FONT_SIZE = 22 HOLE_SIZE = 50 PIPE_FREQUENCY = 50 PIP...
25.512195
75
0.564691
0
0
0
0
0
0
0
0
307
0.097833
1e5841b0b5452fe3f18e4012f65cd3755e441a4a
950
py
Python
schema/__init__.py
p4l1ly/automata-safa-capnp
4aed4f30b217a979f6229db5e3c72f979d31bb76
[ "BSD-3-Clause" ]
null
null
null
schema/__init__.py
p4l1ly/automata-safa-capnp
4aed4f30b217a979f6229db5e3c72f979d31bb76
[ "BSD-3-Clause" ]
null
null
null
schema/__init__.py
p4l1ly/automata-safa-capnp
4aed4f30b217a979f6229db5e3c72f979d31bb76
[ "BSD-3-Clause" ]
null
null
null
import os import capnp import operator import sys from importlib.abc import Loader, MetaPathFinder from importlib.util import spec_from_loader from pathlib import Path from functools import reduce capnp.remove_import_hook() my_path = Path(os.path.dirname(os.path.abspath(__file__))) class _Importer(MetaPathFinder, Lo...
25
73
0.653684
628
0.661053
0
0
571
0.601053
0
0
14
0.014737
1e589b21bf05fda4a1eedf746c2f50a2e1830a1e
17,283
py
Python
queryDB.py
ElsevierSoftwareX/SOFTX-D-20-00075
825efe6a95011d055eaa19fabed42e9dad73b164
[ "BSD-3-Clause" ]
3
2021-09-15T03:51:14.000Z
2022-03-05T15:36:47.000Z
queryDB.py
ElsevierSoftwareX/SOFTX-D-20-00075-
06de316e3973b65e28ca7e047b5b1674640e7e5c
[ "BSD-3-Clause" ]
null
null
null
queryDB.py
ElsevierSoftwareX/SOFTX-D-20-00075-
06de316e3973b65e28ca7e047b5b1674640e7e5c
[ "BSD-3-Clause" ]
3
2021-07-21T10:25:59.000Z
2022-03-19T21:16:33.000Z
#!/usr/bin/env python3 from astroquery.simbad import Simbad from astroquery.vizier import Vizier from cat_setup import src_localDB, src_onlineDB from buildDB import addData, check_ldb import sys, os import csv from more_itertools import locate import argparse import subprocess from pathlib import Path # for the spect...
43.977099
151
0.525025
0
0
0
0
0
0
0
0
6,100
0.352948
1e591f8ce49d4cfdc76a7051dbb0e79d30e622d3
1,690
py
Python
celescope/tcr_fl/multi_tcr_fl.py
susucy/CeleScope
a5d9501ff8bd9dc067b9718070876acb0767a6cf
[ "MIT" ]
null
null
null
celescope/tcr_fl/multi_tcr_fl.py
susucy/CeleScope
a5d9501ff8bd9dc067b9718070876acb0767a6cf
[ "MIT" ]
null
null
null
celescope/tcr_fl/multi_tcr_fl.py
susucy/CeleScope
a5d9501ff8bd9dc067b9718070876acb0767a6cf
[ "MIT" ]
null
null
null
from celescope.__init__ import __CONDA__ from celescope.tcr_fl.__init__ import __STEPS__, __ASSAY__ from celescope.tools.Multi import Multi class Multi_tcr_fl(Multi): def custome_args(self): self.parser.add_argument('--thread', help='thread', default=4) self.parser.add_argument("--nCell", help="se...
30.727273
82
0.560947
1,389
0.821893
0
0
0
0
0
0
597
0.353254
1e59255c7c35e3e7f82903f515a10a05864028c1
1,253
py
Python
tests/orthanc/test_orthanc_patient_deleters.py
gacou54/pyorthanc
6b67a0d58567060e2e88ae5f2d15453fa47561aa
[ "MIT" ]
12
2019-02-25T04:24:39.000Z
2022-03-22T11:43:46.000Z
tests/orthanc/test_orthanc_patient_deleters.py
gacou54/pyorthanc
6b67a0d58567060e2e88ae5f2d15453fa47561aa
[ "MIT" ]
5
2021-06-02T00:20:44.000Z
2022-03-15T15:09:22.000Z
tests/orthanc/test_orthanc_patient_deleters.py
gacou54/pyorthanc
6b67a0d58567060e2e88ae5f2d15453fa47561aa
[ "MIT" ]
1
2020-05-11T14:57:17.000Z
2020-05-11T14:57:17.000Z
# coding: utf-8 # author: gabriel couture import unittest from pyorthanc import Orthanc from tests import setup_server from tests.data import a_patient class TestOrthancPatientDeleters(unittest.TestCase): @classmethod def setUpClass(cls) -> None: global orthanc_subprocess orthanc_subprocess ...
28.477273
88
0.747007
1,097
0.875499
0
0
344
0.274541
0
0
40
0.031923
1e5a603f27c754d49e48eda058d899211d90dc68
1,761
py
Python
logs_manager/migrations/0001_initial.py
adwait-thattey/raygun_api
9d5571de452fbf70d34b9583ebc42eb662292f61
[ "MIT" ]
null
null
null
logs_manager/migrations/0001_initial.py
adwait-thattey/raygun_api
9d5571de452fbf70d34b9583ebc42eb662292f61
[ "MIT" ]
7
2020-06-06T01:40:06.000Z
2022-02-10T09:12:56.000Z
logs_manager/migrations/0001_initial.py
adwait-thattey/raygun_api
9d5571de452fbf70d34b9583ebc42eb662292f61
[ "MIT" ]
1
2021-08-16T13:23:34.000Z
2021-08-16T13:23:34.000Z
# Generated by Django 2.1.5 on 2020-07-24 05:14 from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='ErrorLogObject', fields=[ ('id', models.Aut...
34.529412
114
0.531516
1,668
0.947189
0
0
0
0
0
0
277
0.157297
1e5ab18416df4205e5bf855cc62673e0bc16722c
467
py
Python
webhud/signaling/test/objects_test.py
eigendude/beachfronter
dd4eb5d719d93047c24cfaf32a96b291bf9056d8
[ "Apache-2.0" ]
null
null
null
webhud/signaling/test/objects_test.py
eigendude/beachfronter
dd4eb5d719d93047c24cfaf32a96b291bf9056d8
[ "Apache-2.0" ]
null
null
null
webhud/signaling/test/objects_test.py
eigendude/beachfronter
dd4eb5d719d93047c24cfaf32a96b291bf9056d8
[ "Apache-2.0" ]
null
null
null
################################################################################ # # Copyright (C) 2020 Aclima, Inc # This file is part of aclima-schema - https://github.com/Aclima/aclima-schema # # SPDX-License-Identifier: MIT # See DOCS/LICENSING.md for more information. # ########################################...
27.470588
80
0.462527
86
0.184154
0
0
0
0
0
0
352
0.753747
1e5b83ffe1a421082cfb31bd3175565e924b9fe8
2,121
py
Python
recommender/rest-api/globals.py
haiphucnguyen/MachineLearning
ecdc708a7f4a1a7917fd97f3374034b0f0a013aa
[ "MIT" ]
null
null
null
recommender/rest-api/globals.py
haiphucnguyen/MachineLearning
ecdc708a7f4a1a7917fd97f3374034b0f0a013aa
[ "MIT" ]
18
2020-07-17T08:24:34.000Z
2022-03-02T04:16:18.000Z
recommender/rest-api/globals.py
haiphucnguyen/MachineLearning
ecdc708a7f4a1a7917fd97f3374034b0f0a013aa
[ "MIT" ]
null
null
null
from pyspark.sql import SparkSession from pyspark.ml.evaluation import RegressionEvaluator from pyspark.ml.recommendation import ALS class Globals: def __init__(self): print("Init Globals") @staticmethod def recommendator(): spark = SparkSession.builder.appName("Recommendation ALS").getOr...
48.204545
125
0.644979
1,962
0.925035
0
0
1,887
0.889675
0
0
665
0.313531
1e5b8c4c2a735704a76ae6bbaabad7224e52a26b
2,873
py
Python
print_results.py
UlianaDzhumok/dog-breed-image-classifier
e65b9853e20665eab0090c98956b0f71625cc398
[ "MIT" ]
null
null
null
print_results.py
UlianaDzhumok/dog-breed-image-classifier
e65b9853e20665eab0090c98956b0f71625cc398
[ "MIT" ]
null
null
null
print_results.py
UlianaDzhumok/dog-breed-image-classifier
e65b9853e20665eab0090c98956b0f71625cc398
[ "MIT" ]
null
null
null
def print_results(results_dic, results_stats_dic, model, print_incorrect_dogs = False, print_incorrect_breed = False): """ Prints summary results on the classification and then prints incorrectly classified dogs and incorrectly classified dog breeds if user indicates they want thos...
54.207547
121
0.587887
0
0
0
0
0
0
0
0
2,043
0.711103
1e5d69d46fbe2dcd9c5a3139cb2e51788974251b
508
py
Python
compiled/construct/expr_io_pos.py
smarek/ci_targets
c5edee7b0901fd8e7f75f85245ea4209b38e0cb3
[ "MIT" ]
4
2017-04-08T12:55:11.000Z
2020-12-05T21:09:31.000Z
compiled/construct/expr_io_pos.py
smarek/ci_targets
c5edee7b0901fd8e7f75f85245ea4209b38e0cb3
[ "MIT" ]
7
2018-04-23T01:30:33.000Z
2020-10-30T23:56:14.000Z
compiled/construct/expr_io_pos.py
smarek/ci_targets
c5edee7b0901fd8e7f75f85245ea4209b38e0cb3
[ "MIT" ]
6
2017-04-08T11:41:14.000Z
2020-10-30T22:47:31.000Z
from construct import * from construct.lib import * expr_io_pos__all_plus_number = Struct( 'my_str' / NullTerminated(GreedyString(encoding='UTF-8'), term=b'\x00', include=False, consume=True), 'body' / FixedSized(((stream_size(_io) - stream_tell(_io)) - 2), GreedyBytes), 'number' / Int16ul, ) expr_io_pos = Struct(...
31.75
102
0.751969
0
0
0
0
0
0
0
0
60
0.11811
1e5e463f2d8698101b4daa4b95c205a9cfcb45c4
1,175
py
Python
app/services/QueryService.py
fredrik-aschehoug/KG-Enricher
56f1ac192c2542d8412235ee6897d22278a5259e
[ "MIT" ]
null
null
null
app/services/QueryService.py
fredrik-aschehoug/KG-Enricher
56f1ac192c2542d8412235ee6897d22278a5259e
[ "MIT" ]
null
null
null
app/services/QueryService.py
fredrik-aschehoug/KG-Enricher
56f1ac192c2542d8412235ee6897d22278a5259e
[ "MIT" ]
null
null
null
from aiosparql.client import SPARQLClient from typing import Union from models.types import sparql_bindings class QueryService(): """ Base class used for querying SPARQL endpoints. Uses the aiosparql SPARQLClient to support sending async requests. """ _user_agent = "KG-Enricher" _headers = {'...
35.606061
109
0.693617
1,063
0.904681
0
0
0
0
680
0.578723
368
0.313191
1e5fbb0ee05033c7efad72d8169c33b9ad7669f2
2,463
py
Python
books/management/commands/email_books.py
phildini/bockus
004508166f5b1a7c3c4d8accf32578a80379b385
[ "MIT" ]
3
2015-07-15T05:29:17.000Z
2021-06-23T21:50:25.000Z
books/management/commands/email_books.py
phildini/bockus
004508166f5b1a7c3c4d8accf32578a80379b385
[ "MIT" ]
4
2020-02-11T22:15:04.000Z
2021-06-10T17:41:51.000Z
books/management/commands/email_books.py
phildini/bockus
004508166f5b1a7c3c4d8accf32578a80379b385
[ "MIT" ]
null
null
null
import dropbox import json import logging from django.conf import settings from django.core.management.base import BaseCommand from django.core.mail import EmailMessage from allauth.socialaccount.models import SocialApp, SocialToken from books.forms import ImportForm from books.models import ( Book, BookFil...
33.283784
82
0.578157
1,978
0.803086
0
0
0
0
0
0
293
0.118961
1e6038d2a3f2553efb2ffd56b40294b3bf3b78f9
511
py
Python
2018/Insomni'hack teaser/Rule86/outputs/super_cipher_partial.py
birdsoup/CTF-Writeups
feaeda46a5afa3dabbfa81adcbe184f7bc24d5cb
[ "MIT" ]
3
2019-03-03T00:08:19.000Z
2021-06-09T14:20:41.000Z
2018/Insomni'hack teaser/Rule86/outputs/super_cipher_partial.py
birdsoup/CTF-Writeups
feaeda46a5afa3dabbfa81adcbe184f7bc24d5cb
[ "MIT" ]
null
null
null
2018/Insomni'hack teaser/Rule86/outputs/super_cipher_partial.py
birdsoup/CTF-Writeups
feaeda46a5afa3dabbfa81adcbe184f7bc24d5cb
[ "MIT" ]
1
2021-06-18T08:56:05.000Z
2021-06-18T08:56:05.000Z
#!/usr/bin/env python3 import argparse import sys parser = argparse.ArgumentParser() parser.add_argument("key") args = parser.parse_args() RULE = [86 >> i & 1 for i in range(8)] N_BYTES = 32 N = 8 * N_BYTES def next(x): x = (x & 1) << N+1 | x << 1 | x >> N-1 y = 0 for i in range(N): y |= RULE[(x >> i) & 7...
18.925926
54
0.626223
0
0
0
0
0
0
0
0
90
0.176125
1e61c19b1fa849a545aa5955ebc1129a3e165719
284
py
Python
zencad/interactive/axis.py
Spiritdude/zencad
4e63b1a6306dd235f4daa2791b10249f7546c95b
[ "MIT" ]
5
2018-04-11T14:11:40.000Z
2018-09-12T19:03:36.000Z
zencad/interactive/axis.py
Spiritdude/zencad
4e63b1a6306dd235f4daa2791b10249f7546c95b
[ "MIT" ]
null
null
null
zencad/interactive/axis.py
Spiritdude/zencad
4e63b1a6306dd235f4daa2791b10249f7546c95b
[ "MIT" ]
null
null
null
from zencad.interactive.interactive_object import InteractiveObject from OCC.Core.AIS import AIS_Axis class AxisInteractiveObject(InteractiveObject): def __init__(self, axis, color): self.axis = axis super().__init__(AIS_Axis(axis.to_Geom_Line()), color=color)
28.4
68
0.760563
178
0.626761
0
0
0
0
0
0
0
0
1e61f53390c65e1afc1cca81347aa6ed53a9c8bd
11,464
py
Python
code/python/report_marks.py
nsob1c12/tetepy
2defb61dea95c69747b07d7c6b3e106b604455ee
[ "BSD-3-Clause" ]
null
null
null
code/python/report_marks.py
nsob1c12/tetepy
2defb61dea95c69747b07d7c6b3e106b604455ee
[ "BSD-3-Clause" ]
null
null
null
code/python/report_marks.py
nsob1c12/tetepy
2defb61dea95c69747b07d7c6b3e106b604455ee
[ "BSD-3-Clause" ]
1
2018-11-21T09:53:44.000Z
2018-11-21T09:53:44.000Z
#!/usr/bin/env python # # This file is part of the TeTePy software # # Copyright (c) 2017, 2018, University of Southampton # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # # * Redistributions ...
42.459259
135
0.657188
0
0
0
0
0
0
0
0
4,699
0.409892
1e6276643a563a4ed15fee529d45c22bb727a6be
9,871
py
Python
Python_Code/PD_Naive/naive_pd.py
TomerEven/Pocket_Dictionary
29f906855f5e52eec61d00cb6e8fa0fb5e90a8e4
[ "Apache-2.0" ]
2
2019-12-10T03:41:02.000Z
2021-11-14T12:30:36.000Z
Python_Code/PD_Naive/naive_pd.py
TomerEven/Pocket_Dictionary
29f906855f5e52eec61d00cb6e8fa0fb5e90a8e4
[ "Apache-2.0" ]
null
null
null
Python_Code/PD_Naive/naive_pd.py
TomerEven/Pocket_Dictionary
29f906855f5e52eec61d00cb6e8fa0fb5e90a8e4
[ "Apache-2.0" ]
2
2019-12-10T03:41:07.000Z
2020-06-02T16:57:31.000Z
from typing import * class naive_pd(object): """ :param m Quotients (q_i) range interval. (forall q_i, q_i in [m]) :param f Number of elements in PD. :param l Remainder (r_i) length. (|r_i| = l) """ head: list body: list r: int m: int max_capacity: int capacity: int d...
25.181122
96
0.564279
4,972
0.503698
0
0
0
0
0
0
2,587
0.262081
1e63fbcaff13f5411059c99a4d6c190d9c025da4
322
py
Python
count_by_provider.py
SunshineStateDigitalNetwork/harvest_utils
1918732da2e485d45832766245e4beaae6da5b5f
[ "MIT" ]
null
null
null
count_by_provider.py
SunshineStateDigitalNetwork/harvest_utils
1918732da2e485d45832766245e4beaae6da5b5f
[ "MIT" ]
null
null
null
count_by_provider.py
SunshineStateDigitalNetwork/harvest_utils
1918732da2e485d45832766245e4beaae6da5b5f
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import sys, json from collections import Counter data_providers = [] with open(sys.argv[1]) as f: rec = json.load(f) for record in rec: data_providers.append(record['dataProvider']) counts = Counter(data_providers) for item in list(counts): print(item, ': ', counts[item])...
17.888889
53
0.680124
0
0
0
0
0
0
0
0
40
0.124224
1e676f04e361424c9b9b57dd01173e2fd0c3d4da
1,201
py
Python
corehq/apps/es/tests/test_utils.py
akashkj/commcare-hq
b00a62336ec26cea1477dfb8c048c548cc462831
[ "BSD-3-Clause" ]
471
2015-01-10T02:55:01.000Z
2022-03-29T18:07:18.000Z
corehq/apps/es/tests/test_utils.py
akashkj/commcare-hq
b00a62336ec26cea1477dfb8c048c548cc462831
[ "BSD-3-Clause" ]
14,354
2015-01-01T07:38:23.000Z
2022-03-31T20:55:14.000Z
corehq/apps/es/tests/test_utils.py
akashkj/commcare-hq
b00a62336ec26cea1477dfb8c048c548cc462831
[ "BSD-3-Clause" ]
175
2015-01-06T07:16:47.000Z
2022-03-29T13:27:01.000Z
from datetime import date, datetime from pytz import UTC, timezone from ..utils import es_format_datetime ET = timezone('US/Eastern') def test_es_format_datetime(): def _assert_returns(date_or_datetime, expected): actual = es_format_datetime(date_or_datetime) assert actual == expected, f"Expect...
42.892857
98
0.612823
0
0
1,061
0.88343
0
0
0
0
343
0.285595
1e676fac880fc5466a7425decb22605ffc682c32
1,072
py
Python
tools/build_dictionary_char.py
Yasumasa/gated_word_char_rlm_ym
0d35e5894416a531a5bee14f7df8dea38a1c8484
[ "BSD-3-Clause" ]
32
2016-07-11T00:32:27.000Z
2022-02-27T04:21:36.000Z
tools/build_dictionary_char.py
Yasumasa/gated_word_char_rlm_ym
0d35e5894416a531a5bee14f7df8dea38a1c8484
[ "BSD-3-Clause" ]
1
2017-08-06T19:18:23.000Z
2017-08-14T02:12:15.000Z
tools/build_dictionary_char.py
Yasumasa/gated_word_char_rlm_ym
0d35e5894416a531a5bee14f7df8dea38a1c8484
[ "BSD-3-Clause" ]
16
2016-08-29T08:45:55.000Z
2020-11-03T02:44:01.000Z
""" Build a character dictionary """ import numpy import cPickle as pkl import sys import fileinput from collections import OrderedDict def main(filenames): char_freqs = OrderedDict() for filename in filenames: print '==> Processing', filename with open(filename, 'r') as f: line...
25.52381
67
0.593284
0
0
0
0
0
0
0
0
142
0.132463
1e69077c7c10e476b61bed366627a53116787801
2,815
py
Python
SessionTools/sort_sessions.py
DynamoDS/Coulomb
705e9a44c44ebdbe5650697b896000e8c42d8b56
[ "MIT" ]
3
2015-09-23T17:52:44.000Z
2020-04-11T11:15:59.000Z
SessionTools/sort_sessions.py
DynamoDS/Coulomb
705e9a44c44ebdbe5650697b896000e8c42d8b56
[ "MIT" ]
null
null
null
SessionTools/sort_sessions.py
DynamoDS/Coulomb
705e9a44c44ebdbe5650697b896000e8c42d8b56
[ "MIT" ]
1
2020-08-01T12:39:25.000Z
2020-08-01T12:39:25.000Z
# This tool takes the raw usage data and splits it into session files import gzip import json import base64 import sys import traceback import time import random import os import sys VERBOSE = True err = 0 MAX_MEM = 1 * 1000 * 1000 * 1000 def log(s): if VERBOSE: print time.strftime("%Y-%m-%d %H:%M:%S")...
23.655462
88
0.580817
0
0
0
0
0
0
0
0
428
0.152043
1e69c26d6ae416358faf6b8f9971b4dbfaf0f463
37,047
py
Python
sfftk/unittests/test_notes.py
ssabrii/sfftk
5cab37f1c9ecb9c2507672fd3232b1b9b5405511
[ "Apache-2.0" ]
null
null
null
sfftk/unittests/test_notes.py
ssabrii/sfftk
5cab37f1c9ecb9c2507672fd3232b1b9b5405511
[ "Apache-2.0" ]
null
null
null
sfftk/unittests/test_notes.py
ssabrii/sfftk
5cab37f1c9ecb9c2507672fd3232b1b9b5405511
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """Unit tests for :py:mod:`sfftk.core.notes` package""" from __future__ import division, print_function import os import shlex import shutil import sys import unittest from urllib import urlencode import __init__ as tests from .. import BASE_DIR from .. import schema fro...
42.730104
138
0.625341
35,799
0.966287
0
0
476
0.012848
0
0
7,947
0.214506
1e6a40545d687c3ecf51841513c392eec05aec51
398
py
Python
projects/NameSorter.py
SilverBlaze109/VAMPY2017
68197544009aebc494b640b5d266c97ad6331c00
[ "MIT" ]
null
null
null
projects/NameSorter.py
SilverBlaze109/VAMPY2017
68197544009aebc494b640b5d266c97ad6331c00
[ "MIT" ]
null
null
null
projects/NameSorter.py
SilverBlaze109/VAMPY2017
68197544009aebc494b640b5d266c97ad6331c00
[ "MIT" ]
null
null
null
import Merge_Sorting read_filename = "/home/vampy/data/test1" write_filename = "/home/vampy/data/test2" fp = open(read_filename, "r") N = int(fp.readline()) names = [] for i in range(N): names.append(fp.readline().strip()) fp.close() Merge_Sorting.mergesort(names) fp = open(write_filename, "w") fp.write("{0}\n".f...
18.090909
41
0.675879
0
0
0
0
0
0
0
0
66
0.165829
1e6d8fb3d8f40dfbf384a556f19e918e977fd462
252
py
Python
api/conf/config.py
JackyCJ/flask-restful-login
1bd31ee3da8ca667dc7592123ad5ee700dcb2595
[ "MIT" ]
76
2017-07-15T15:52:51.000Z
2022-03-30T04:45:05.000Z
api/conf/config.py
JackyCJ/flask-restful-login
1bd31ee3da8ca667dc7592123ad5ee700dcb2595
[ "MIT" ]
83
2019-08-10T06:58:11.000Z
2022-03-31T16:29:37.000Z
api/conf/config.py
JackyCJ/flask-restful-login
1bd31ee3da8ca667dc7592123ad5ee700dcb2595
[ "MIT" ]
23
2016-07-14T09:06:51.000Z
2022-03-28T07:54:39.000Z
#!/usr/bin/python # -*- coding: utf-8 -*- import os basedir = os.path.abspath(os.path.join(os.path.dirname(__file__), "..")) # Create a database in project and get it's path. SQLALCHEMY_DATABASE_URI = "sqlite:///" + os.path.join(basedir, "test.db")
25.2
73
0.674603
0
0
0
0
0
0
0
0
114
0.452381
1e6eefc3ab5404b4e42d6811569ac96399e99d1c
755
py
Python
src/discolight/query.py
denzel-datature/discolight
7c8309d3f883263b2e4cae0b289f17be1d1c07ea
[ "MIT" ]
27
2020-07-23T08:09:25.000Z
2022-03-01T08:24:43.000Z
src/discolight/query.py
denzel-datature/discolight
7c8309d3f883263b2e4cae0b289f17be1d1c07ea
[ "MIT" ]
7
2020-08-05T07:26:55.000Z
2020-12-31T04:20:40.000Z
src/discolight/query.py
denzel-datature/discolight
7c8309d3f883263b2e4cae0b289f17be1d1c07ea
[ "MIT" ]
6
2020-07-27T04:30:01.000Z
2020-08-13T02:39:25.000Z
"""A parser for YAML queries used by the Augmentor class.""" import yamale schema = yamale.make_schema(content=""" input: images: loader: str() options: map() annotations: loader: str() options: map() output: images: writer: str() options: map() annotations: writer: str() option...
18.414634
60
0.651656
0
0
0
0
0
0
0
0
537
0.711258
1e70a8cf3463ffe9421d2adf4f0d082d0018a938
1,423
py
Python
migrations/versions/efd88a3c30a8_.py
andraune/Run4IT_BackEnd
a481427a0d1189a1f08c42e7ac1b452af6bbfc8d
[ "MIT" ]
1
2022-03-29T06:11:20.000Z
2022-03-29T06:11:20.000Z
migrations/versions/efd88a3c30a8_.py
andraune/run4it_backend
a481427a0d1189a1f08c42e7ac1b452af6bbfc8d
[ "MIT" ]
null
null
null
migrations/versions/efd88a3c30a8_.py
andraune/run4it_backend
a481427a0d1189a1f08c42e7ac1b452af6bbfc8d
[ "MIT" ]
null
null
null
"""empty message Revision ID: efd88a3c30a8 Revises: edf37629d0f4 Create Date: 2020-08-23 12:34:41.656176 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = 'efd88a3c30a8' down_revision = 'edf37629d0f4' branch_labels = None depends_on = None def upgrade(): # ...
33.093023
98
0.697119
0
0
0
0
0
0
0
0
620
0.435699
1e7303e5e2805c01c2695e6e83bc9c5498d330bd
2,497
py
Python
code/model/loss/loss.py
ZJU-Fangyin/KCL
1d1002aeee785e4eb1dfc121d6cbb9cefa4e985c
[ "MIT" ]
24
2021-12-04T13:44:22.000Z
2022-03-19T08:10:19.000Z
code/model/loss/loss.py
Fangyin1994/KCL
004f5681b77e4e75c791c909696fdb8a208501a2
[ "MIT" ]
3
2021-12-20T08:14:06.000Z
2022-03-28T08:03:09.000Z
code/model/loss/loss.py
Fangyin1994/KCL
004f5681b77e4e75c791c909696fdb8a208501a2
[ "MIT" ]
1
2021-12-22T09:29:55.000Z
2021-12-22T09:29:55.000Z
from .loss_computer import NCESoftmaxLoss import torch.nn.functional as F import torch.nn as nn import torch import logging import pdb logger = logging.getLogger() class ContrastiveLoss(nn.Module): def __init__(self, loss_computer: str, temperature: float, args) -> None: super().__init__() self.d...
34.205479
96
0.64998
1,942
0.777733
0
0
0
0
0
0
498
0.199439
1e73e5b2fe9aa6d77e943c822dde424875f561fa
3,359
py
Python
Script_fullBandCapture.py
gdavila/PyDocsisMon
461bb05a732f9c20bfcca18624d266f7ff89f8f2
[ "MIT" ]
4
2019-06-27T13:49:09.000Z
2021-07-26T05:30:04.000Z
Script_fullBandCapture.py
gdavila/PyDocsisMon
461bb05a732f9c20bfcca18624d266f7ff89f8f2
[ "MIT" ]
null
null
null
Script_fullBandCapture.py
gdavila/PyDocsisMon
461bb05a732f9c20bfcca18624d266f7ff89f8f2
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Mon Jan 15 12:16:14 2018 @author: gdavila This is a example to get Full Band Channel information On Docsis 3.0 Full Band Channels is a feature that allows to get detailed info about the power distribution of the espectrum """ import docsisMon.cmDevices as cmDevices from docsis...
30.816514
130
0.533194
0
0
0
0
0
0
0
0
644
0.191724
1e76a6d7201c50230ea9c60f989c6e9e8acbee75
398
py
Python
examples/crack_egg.py
mkclairhong/quail
a6d6502746c853518a670d542222eb5fc2b05542
[ "MIT" ]
1
2018-05-30T15:33:26.000Z
2018-05-30T15:33:26.000Z
examples/crack_egg.py
mkclairhong/quail
a6d6502746c853518a670d542222eb5fc2b05542
[ "MIT" ]
7
2018-06-21T13:21:22.000Z
2018-07-24T21:20:05.000Z
examples/crack_egg.py
mkclairhong/quail
a6d6502746c853518a670d542222eb5fc2b05542
[ "MIT" ]
1
2018-06-01T17:39:48.000Z
2018-06-01T17:39:48.000Z
# -*- coding: utf-8 -*- """ ============================= Crack Egg ============================= This an example of how to crack an egg (take a slice of subjects/lists from it) """ # Code source: Andrew Heusser # License: MIT #import import quail #load data egg = quail.load_example_data() #crack egg cracked_egg ...
16.583333
79
0.59799
0
0
0
0
0
0
0
0
252
0.633166
1e77a46aa8467b03a2158c13c41151ff7714391b
4,674
py
Python
misc_analysis.py
adamnahari/bch_clinical_lab_indicators_covid19_misc
2e29c2f69678e6d4ff1c3f55150588f207afc874
[ "MIT" ]
null
null
null
misc_analysis.py
adamnahari/bch_clinical_lab_indicators_covid19_misc
2e29c2f69678e6d4ff1c3f55150588f207afc874
[ "MIT" ]
null
null
null
misc_analysis.py
adamnahari/bch_clinical_lab_indicators_covid19_misc
2e29c2f69678e6d4ff1c3f55150588f207afc874
[ "MIT" ]
null
null
null
#!/usr/bin/env python # coding: utf-8 import pandas as pd from statsmodels.stats.proportion import proportion_confint from itertools import combinations # remove patients for which we do not have any covid info data = data[(data['MRN'].isin(pcr['MRN'])) | (data['MRN'].isin(misc['mrn']))] data['MISCFound'] = data['MR...
54.348837
326
0.695336
0
0
0
0
0
0
0
0
2,352
0.503209
1e77ef009463c9c8b20da40c4cad47baa5105caf
488
py
Python
cython_wordle/setup.py
richardtiffin/wordle
9bdca662f204673e8fdac6fe262f596a4c1a7971
[ "MIT" ]
null
null
null
cython_wordle/setup.py
richardtiffin/wordle
9bdca662f204673e8fdac6fe262f596a4c1a7971
[ "MIT" ]
null
null
null
cython_wordle/setup.py
richardtiffin/wordle
9bdca662f204673e8fdac6fe262f596a4c1a7971
[ "MIT" ]
null
null
null
from distutils.core import setup from distutils.extension import Extension from Cython.Distutils import build_ext ext_modules=[ Extension("BBox", ["BBox.pyx"]), Extension("spirals", ["spirals.pyx"]), Extension("wordle", ["wordle.pyx"]), ] setup( name = 'wordle', cmdcl...
25.684211
60
0.659836
0
0
0
0
0
0
0
0
175
0.358607
1e781496e1aa125be921635999ca76ed9c8a3c2b
4,296
py
Python
workon/models/file.py
dalou/django-workon
ef63c0a81c00ef560ed693e435cf3825f5170126
[ "BSD-3-Clause" ]
null
null
null
workon/models/file.py
dalou/django-workon
ef63c0a81c00ef560ed693e435cf3825f5170126
[ "BSD-3-Clause" ]
null
null
null
workon/models/file.py
dalou/django-workon
ef63c0a81c00ef560ed693e435cf3825f5170126
[ "BSD-3-Clause" ]
null
null
null
# encoding: utf-8 from django.db import models from django.conf import settings from django.utils.translation import ugettext_lazy as _ import magic, os, urllib2 from django.core.files.storage import default_storage as storage class FileTypeTester(models.Model): class Meta: abstract = True file_type_...
41.307692
153
0.598929
4,067
0.946695
0
0
0
0
0
0
1,047
0.243715
1e7861ff4e6f1898ca9de27db75540533d4577d2
484
py
Python
Python/bst/lets_trie.py
creativcoder/AlgorithmsExercise
a25895205272d17714a6d7dc37eaa2b03c126c6c
[ "MIT" ]
null
null
null
Python/bst/lets_trie.py
creativcoder/AlgorithmsExercise
a25895205272d17714a6d7dc37eaa2b03c126c6c
[ "MIT" ]
null
null
null
Python/bst/lets_trie.py
creativcoder/AlgorithmsExercise
a25895205272d17714a6d7dc37eaa2b03c126c6c
[ "MIT" ]
null
null
null
# A node is an instance of a single node in the trie tree class Node(object): def __init__(self): self.children = {} def insert_key(self,key): if key not in self.children: self.children[key] = Node() # given a word this Trie will trie to insrt class Trie(object): def __init__(self, word): self.root = 'roo...
19.36
57
0.688017
345
0.71281
0
0
0
0
0
0
113
0.233471
1e79370c0eaab1ed491a5469eb8e029e278bec8b
44
py
Python
chat/__main__.py
oinqu/network-protocol-design-course
3f190c1a5423a472e98af94e00da08a7c4718028
[ "MIT" ]
null
null
null
chat/__main__.py
oinqu/network-protocol-design-course
3f190c1a5423a472e98af94e00da08a7c4718028
[ "MIT" ]
null
null
null
chat/__main__.py
oinqu/network-protocol-design-course
3f190c1a5423a472e98af94e00da08a7c4718028
[ "MIT" ]
null
null
null
from App import App app = App() app.main()
8.8
19
0.659091
0
0
0
0
0
0
0
0
0
0
1e7c1315048b3f514dcb2e813d265bec04841e19
293
py
Python
demos/instance_occlsegm/instance_occlsegm_lib/__init__.py
pazeshun/jsk_apc
0ff42000ad5992f8a31e719a5360a39cf4fa1fde
[ "BSD-3-Clause" ]
null
null
null
demos/instance_occlsegm/instance_occlsegm_lib/__init__.py
pazeshun/jsk_apc
0ff42000ad5992f8a31e719a5360a39cf4fa1fde
[ "BSD-3-Clause" ]
2
2019-04-11T05:36:23.000Z
2019-08-19T12:58:10.000Z
demos/instance_occlsegm/instance_occlsegm_lib/__init__.py
pazeshun/jsk_apc
0ff42000ad5992f8a31e719a5360a39cf4fa1fde
[ "BSD-3-Clause" ]
null
null
null
# flake8: noqa # set of functions from . import aug from . import data from . import geometry from . import func from . import image from . import utils from . import _io as io # set of classes from . import datasets from . import models # set of experimental modules from . import contrib
16.277778
29
0.740614
0
0
0
0
0
0
0
0
77
0.262799
1e7c45b57c7b1f68c58be33048ab411b59607f95
3,734
py
Python
retroarch_emulationstation.py
allebb/personal-influxdb
280be0cceb0bc00412849be4ca5ad4c7be539fc3
[ "Apache-2.0" ]
217
2020-01-07T20:25:46.000Z
2022-03-29T06:09:58.000Z
retroarch_emulationstation.py
allebb/personal-influxdb
280be0cceb0bc00412849be4ca5ad4c7be539fc3
[ "Apache-2.0" ]
16
2020-02-10T12:40:23.000Z
2022-02-26T13:01:55.000Z
retroarch_emulationstation.py
allebb/personal-influxdb
280be0cceb0bc00412849be4ca5ad4c7be539fc3
[ "Apache-2.0" ]
34
2020-01-15T15:42:20.000Z
2022-02-22T17:29:15.000Z
#!/usr/bin/python3 # Copyright (C) 2021 Sam Steele # 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...
36.970297
169
0.676754
0
0
0
0
0
0
0
0
1,438
0.38511
1e7e996369d9db95039bdf9c646f32b34e31f662
1,092
py
Python
day_05/puzzles.py
electronsandstuff/Advent-of-Code-2021
9c23872640e8d092088dcb6d5cb845cd11d98994
[ "BSD-3-Clause" ]
null
null
null
day_05/puzzles.py
electronsandstuff/Advent-of-Code-2021
9c23872640e8d092088dcb6d5cb845cd11d98994
[ "BSD-3-Clause" ]
null
null
null
day_05/puzzles.py
electronsandstuff/Advent-of-Code-2021
9c23872640e8d092088dcb6d5cb845cd11d98994
[ "BSD-3-Clause" ]
null
null
null
import numpy as np def generate_map(lines, diags=False): vents = np.zeros((np.max(lines[:, :, 1]) + 1, np.max(lines[:, :, 0]) + 1), dtype=np.uint32) for l in lines: if l[0][0] == l[1][0]: # horizontal line vents[np.min(l[:, 1]):np.max(l[:, 1]) + 1, l[0][0]] += 1 elif l[0][1] == l[...
39
100
0.513736
0
0
0
0
0
0
0
0
289
0.264652
1e8142af288c77ab6046cce4e5f4f27dd0d2bc03
269
py
Python
tests/orientation_tests/test__repr__.py
lycantropos/rene
c73c616f3e360b994e92c950a3616a8ccb1136b9
[ "MIT" ]
null
null
null
tests/orientation_tests/test__repr__.py
lycantropos/rene
c73c616f3e360b994e92c950a3616a8ccb1136b9
[ "MIT" ]
null
null
null
tests/orientation_tests/test__repr__.py
lycantropos/rene
c73c616f3e360b994e92c950a3616a8ccb1136b9
[ "MIT" ]
null
null
null
import sys from hypothesis import given from rene import Orientation from . import strategies @given(strategies.orientations) def test_round_trip(orientation: Orientation) -> None: result = repr(orientation) assert eval(result, sys.modules) is orientation
19.214286
54
0.780669
0
0
0
0
170
0.63197
0
0
0
0
1e8225b7ada5e1ad54098e2705b2ce6cd71e8f49
5,254
py
Python
rect_creator.py
jeffreyleifer/draw_rect
80082f53b52f5af9378f2a624024c6784ec9b565
[ "MIT" ]
null
null
null
rect_creator.py
jeffreyleifer/draw_rect
80082f53b52f5af9378f2a624024c6784ec9b565
[ "MIT" ]
null
null
null
rect_creator.py
jeffreyleifer/draw_rect
80082f53b52f5af9378f2a624024c6784ec9b565
[ "MIT" ]
null
null
null
from PySide2.QtWidgets import QWidget from PySide2.QtCore import Qt from PySide2.QtCore import QPoint from PySide2.QtWidgets import QWidget, QLabel from PySide2.QtGui import QPainter from PySide2.QtGui import QPixmap from PySide2.QtGui import QPen from draw_utils import is_adjacent, is_contained,is_intersect ...
33.044025
88
0.604111
4,760
0.905976
0
0
0
0
0
0
1,548
0.294633
1e83dfa9c50394894ee742b2137621c5d011c5a0
356
py
Python
fasttext/run.py
TheStarkor/Deep-Learning-Examples
5174cfab823edb39ce61439fb98f2f55e23e2570
[ "MIT" ]
null
null
null
fasttext/run.py
TheStarkor/Deep-Learning-Examples
5174cfab823edb39ce61439fb98f2f55e23e2570
[ "MIT" ]
null
null
null
fasttext/run.py
TheStarkor/Deep-Learning-Examples
5174cfab823edb39ce61439fb98f2f55e23e2570
[ "MIT" ]
null
null
null
from gensim import models model = models.fasttext.load_facebook_model('cc.ko.300.bin') for w, sim in model.wv.similar_by_word('치킨', 5): print(f'{w}: {sim}') for w, sim in model.wv.most_similar('치킨', topn=5): print(f'{w}: {sim}') print(model.wv.similarity('치킨', '피자')) print(model.wv.most_similar(positive=['돼지...
32.363636
77
0.66573
0
0
0
0
0
0
0
0
100
0.259067
1e8434d13fe760e8cea23fce54f739923c5f3b0f
6,622
py
Python
mining_shoots_discord.py
Hofei90/stfc_mining_shoots
1eb89c0296b203719d32ae0cbf7c15ae7ca620dc
[ "MIT" ]
null
null
null
mining_shoots_discord.py
Hofei90/stfc_mining_shoots
1eb89c0296b203719d32ae0cbf7c15ae7ca620dc
[ "MIT" ]
null
null
null
mining_shoots_discord.py
Hofei90/stfc_mining_shoots
1eb89c0296b203719d32ae0cbf7c15ae7ca620dc
[ "MIT" ]
null
null
null
import toml from discord.ext import commands import discord import pathlib from peewee import SqliteDatabase, fn import db_model as db import datetime from dataclasses import dataclass import matplotlib.pyplot as plt import asyncio SKRIPTPFAD = pathlib.Path(__file__).parent CONFIGPFAD = SKRIPTPFAD / "config.toml" CONF...
30.1
108
0.598762
86
0.012969
0
0
4,585
0.691449
3,715
0.560247
1,062
0.160157
1e8540b88c0120bfb5afdddeb8fe99456df3e245
3,115
py
Python
test_utils/test_utils.py
Sawrz/yeti
1dd0653e570dc80663cd23aab1ebf61a54e44001
[ "MIT" ]
null
null
null
test_utils/test_utils.py
Sawrz/yeti
1dd0653e570dc80663cd23aab1ebf61a54e44001
[ "MIT" ]
null
null
null
test_utils/test_utils.py
Sawrz/yeti
1dd0653e570dc80663cd23aab1ebf61a54e44001
[ "MIT" ]
null
null
null
import string import numpy as np from yeti.get_features.hydrogen_bonds import Triplet from yeti.systems.building_blocks import Atom def create_data_type_exception_messages(parameter_name, data_type_name): return 'Wrong data type for parameter "{name}". Desired type is {data_type}'.format(name=parameter_name, ...
38.45679
113
0.646228
0
0
0
0
0
0
0
0
308
0.098876
1e85581ac31dc11f833c7a82b762a417fde73841
736
py
Python
tests/analyses/conftest.py
weibullguy/ramstk
3ec41d7e2933045a7a8028aed6c6b04365495095
[ "BSD-3-Clause" ]
4
2018-08-26T09:11:36.000Z
2019-05-24T12:01:02.000Z
tests/analyses/conftest.py
weibullguy/ramstk
3ec41d7e2933045a7a8028aed6c6b04365495095
[ "BSD-3-Clause" ]
52
2018-08-24T12:51:22.000Z
2020-12-28T04:59:42.000Z
tests/analyses/conftest.py
weibullguy/ramstk
3ec41d7e2933045a7a8028aed6c6b04365495095
[ "BSD-3-Clause" ]
1
2018-10-11T07:57:55.000Z
2018-10-11T07:57:55.000Z
# Third Party Imports import pytest @pytest.fixture def test_attributes_allocation(): yield { "allocation_method_id": 1, "availability_alloc": 0.9998, "duty_cycle": 100.0, "env_factor": 6, "goal_measure_id": 1, "hazard_rate_alloc": 0.0, "hazard_rate_goal": 0...
24.533333
37
0.546196
0
0
681
0.925272
697
0.947011
0
0
345
0.46875
1e8587f831eb0191924a6fb1115988c766870ce9
689
py
Python
mmhuman3d/core/conventions/keypoints_mapping/instavariety.py
ykk648/mmhuman3d
26af92bcf6abbe1855e1a8a48308621410f9c047
[ "Apache-2.0" ]
472
2021-12-03T03:12:55.000Z
2022-03-31T01:33:13.000Z
mmhuman3d/core/conventions/keypoints_mapping/instavariety.py
ykk648/mmhuman3d
26af92bcf6abbe1855e1a8a48308621410f9c047
[ "Apache-2.0" ]
127
2021-12-03T05:00:14.000Z
2022-03-31T13:47:33.000Z
mmhuman3d/core/conventions/keypoints_mapping/instavariety.py
ykk648/mmhuman3d
26af92bcf6abbe1855e1a8a48308621410f9c047
[ "Apache-2.0" ]
37
2021-12-03T03:23:22.000Z
2022-03-31T08:41:58.000Z
INSTAVARIETY_KEYPOINTS = [ 'right_heel_openpose', 'right_knee_openpose', 'right_hip_openpose', 'left_hip_openpose', 'left_knee_openpose', 'left_heel_openpose', 'right_wrist_openpose', 'right_elbow_openpose', 'right_shoulder_openpose', 'left_shoulder_openpose', 'left_elbow_ope...
24.607143
30
0.699565
0
0
0
0
0
0
0
0
510
0.740203
1e865f0471666eee6566c8792893e373522a1f73
72,247
py
Python
vaccinate/core/models.py
MoralCode/vial
cdaaab053a9cf1cef40104a2cdf480b7932d58f7
[ "MIT" ]
null
null
null
vaccinate/core/models.py
MoralCode/vial
cdaaab053a9cf1cef40104a2cdf480b7932d58f7
[ "MIT" ]
null
null
null
vaccinate/core/models.py
MoralCode/vial
cdaaab053a9cf1cef40104a2cdf480b7932d58f7
[ "MIT" ]
null
null
null
from __future__ import annotations import uuid from datetime import datetime, timedelta from functools import reduce from operator import or_ from typing import Any, List, NamedTuple, Optional import beeline import pytz import sentry_sdk from django.conf import settings from django.contrib.auth.models import User fro...
36.654997
179
0.648428
69,532
0.962327
315
0.00436
17,442
0.241398
0
0
19,247
0.26638
1e871e7be4f994cf1cfd89c9a4b868bc30e2a035
205
py
Python
settings/settings.py
Partycode/opentfd
2211012ccb3b96b5b48ae2ae27f874354e6ddc71
[ "Apache-2.0" ]
null
null
null
settings/settings.py
Partycode/opentfd
2211012ccb3b96b5b48ae2ae27f874354e6ddc71
[ "Apache-2.0" ]
null
null
null
settings/settings.py
Partycode/opentfd
2211012ccb3b96b5b48ae2ae27f874354e6ddc71
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: UTF-8 -*- import os APP_PATH = os.path.dirname(os.path.dirname(os.path.realpath(__file__))) SESSION_FILE_PATH = os.path.join(APP_PATH, 'settings', 'opentfd_session')
25.625
73
0.721951
0
0
0
0
0
0
0
0
72
0.35122
1e88662b9dcdea887377483da9b99fbeb0a1e2ce
1,650
py
Python
src/train.py
SunbirdAI/SunBERT
b73ccf5115a0303b59b27df602bfe064c8ebd6fa
[ "MIT" ]
null
null
null
src/train.py
SunbirdAI/SunBERT
b73ccf5115a0303b59b27df602bfe064c8ebd6fa
[ "MIT" ]
1
2021-02-24T17:11:26.000Z
2021-02-24T17:11:31.000Z
src/train.py
SunbirdAI/SunBERT
b73ccf5115a0303b59b27df602bfe064c8ebd6fa
[ "MIT" ]
1
2021-12-10T12:27:17.000Z
2021-12-10T12:27:17.000Z
import pandas as pd from dataset import create_dataloader from engine import train_fn from model import SunBERT from transformers import AdamW from torch import nn def run(): MAX_LEN = 66 BATCH_SIZE = 32 EPOCHS = 5 device = torch.device("cuda:0" if torch.cuda.is_available() else "Couldn't find GPU dev...
38.372093
130
0.746667
0
0
0
0
0
0
0
0
234
0.141818
1e89e5918f3ccc62e2c9d037ec970ff4354a9c3b
4,430
py
Python
COVID-19_Old.py
JustHarsh/Drug_Discovery-COVID-19
0dd941797e6a928f70f2ea706f584259ca24478f
[ "MIT" ]
5
2020-05-23T13:10:51.000Z
2021-09-07T13:56:38.000Z
COVID-19_Old.py
JustHarsh/Drug_Discovery-COVID-19
0dd941797e6a928f70f2ea706f584259ca24478f
[ "MIT" ]
null
null
null
COVID-19_Old.py
JustHarsh/Drug_Discovery-COVID-19
0dd941797e6a928f70f2ea706f584259ca24478f
[ "MIT" ]
null
null
null
# Importing all essential libraries import os import random import sys import pandas as pd import numpy as np from keras.models import Sequential from keras.layers import Dense from keras.layers import LSTM from keras.layers import Dropout from keras.optimizers import RMSprop from keras.utils.data_utils import get_fil...
29.731544
93
0.584876
0
0
0
0
0
0
0
0
1,373
0.309932
1e8c90529784c32fc97eee269bf1f19fcbbdd280
1,494
py
Python
tests/service/test_base.py
flyinactor91/AVWX-Engine
0d3ce2c6e962d2a3ec9db711caf9d1c94658fa80
[ "MIT" ]
30
2015-09-08T20:38:41.000Z
2019-03-10T07:10:47.000Z
tests/service/test_base.py
sthagen/avwx-engine
af235b9d26e5495f04076ed5499cf8cd131d4efc
[ "MIT" ]
5
2015-08-12T15:50:07.000Z
2019-04-16T00:42:12.000Z
tests/service/test_base.py
sthagen/avwx-engine
af235b9d26e5495f04076ed5499cf8cd131d4efc
[ "MIT" ]
11
2016-01-17T10:10:29.000Z
2019-01-13T17:55:36.000Z
""" Service API Tests """ # pylint: disable=missing-class-docstring # stdlib from typing import Tuple import unittest # module from avwx import service BASE_ATTRS = ("url", "report_type", "_valid_types") class BaseTestService(unittest.IsolatedAsyncioTestCase): serv: service.Service service_class = servic...
28.730769
66
0.660643
1,283
0.858768
0
0
0
0
287
0.192102
278
0.186078
1e8c94240a87d0206591689e63849ac4c1ef22b0
1,267
py
Python
src/main.py
DanielWieczorek/FancyReadmeBuilder
a0a91ec60a673be97d7a942ded5e1da659dda885
[ "MIT" ]
null
null
null
src/main.py
DanielWieczorek/FancyReadmeBuilder
a0a91ec60a673be97d7a942ded5e1da659dda885
[ "MIT" ]
null
null
null
src/main.py
DanielWieczorek/FancyReadmeBuilder
a0a91ec60a673be97d7a942ded5e1da659dda885
[ "MIT" ]
null
null
null
""" This is a nifty little tool to create really cool looking Readme files. Its essentially a templating tool for such. The initial steps to create a template are the following: - create a super cool ANSI Art design for your readme. - create a template that uses this image and defines fields where text can be inserted....
27.543478
115
0.767956
0
0
0
0
0
0
0
0
737
0.581689
1e8dff84bf260e37d0a7da4269b967a651c8336e
147
py
Python
capitulo-05/ex05.py
bryan-lima/exercicios-livro-introd-prog-python-3ed
b6bc26dced9728510865704a80cb0d97f81f756b
[ "MIT" ]
3
2021-11-09T17:54:10.000Z
2022-01-30T22:32:25.000Z
capitulo-05/ex05.py
bryan-lima/exercicios-livro-introd-prog-python-3ed
b6bc26dced9728510865704a80cb0d97f81f756b
[ "MIT" ]
null
null
null
capitulo-05/ex05.py
bryan-lima/exercicios-livro-introd-prog-python-3ed
b6bc26dced9728510865704a80cb0d97f81f756b
[ "MIT" ]
null
null
null
# Reescreva o programa anterior para escrever os 10 primeiros múltiplos de 3 lastNumber = 30 n = 3 while n <= lastNumber: print(n) n += 3
18.375
76
0.687075
0
0
0
0
0
0
0
0
77
0.52027
1e909bbac52b8d09611a8c081d2717c3f3ceb7b5
73
py
Python
sim_common/client_utils.py
mfatihaktas/edge-load-balance
b866ca47ba37a605eeba05658b1d302f6855a23f
[ "MIT" ]
null
null
null
sim_common/client_utils.py
mfatihaktas/edge-load-balance
b866ca47ba37a605eeba05658b1d302f6855a23f
[ "MIT" ]
null
null
null
sim_common/client_utils.py
mfatihaktas/edge-load-balance
b866ca47ba37a605eeba05658b1d302f6855a23f
[ "MIT" ]
null
null
null
def min_wait_time(cl_l): return min(cl.min_wait_time() for cl in cl_l)
18.25
46
0.753425
0
0
0
0
0
0
0
0
0
0
1e9151fbe802bf8cc3a1fe455244d59c40229ca9
15,165
py
Python
extension/TypeFacet-RoboFont.roboFontExt/lib/tfs/common/TFSGlyph.py
charlesmchen/typefacet-robofont
1dee6f1054cfa0cdf87a490ff017a7098f894ef2
[ "Apache-2.0" ]
1
2019-07-15T22:29:56.000Z
2019-07-15T22:29:56.000Z
src-all/tfs/common/TFSGlyph.py
charlesmchen/typefacet-robofont
1dee6f1054cfa0cdf87a490ff017a7098f894ef2
[ "Apache-2.0" ]
null
null
null
src-all/tfs/common/TFSGlyph.py
charlesmchen/typefacet-robofont
1dee6f1054cfa0cdf87a490ff017a7098f894ef2
[ "Apache-2.0" ]
null
null
null
''' robofont-extensions-and-scripts TFSGlyph.py https://github.com/charlesmchen/robofont-extensions-and-scripts Copyright (c) 2012 Charles Matthew Chen charlesmchen@gmail.com Apache License Version 2.0, January 2004 http://www.apache.org/licenses/ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 1. D...
70.208333
1,307
0.713419
5,792
0.381932
0
0
0
0
0
0
11,455
0.755358
1e91bffc137dacb98dd65fdc54a68e7adb4518df
3,080
py
Python
bin/soundboard_scripts/soundboard-preprocess.py
andrewmichaud/scripts
0e79a3454ec0116a0e3ed2902b79494939050937
[ "0BSD" ]
1
2016-10-13T18:36:59.000Z
2016-10-13T18:36:59.000Z
bin/soundboard_scripts/soundboard-preprocess.py
andrewmichaud/scripts
0e79a3454ec0116a0e3ed2902b79494939050937
[ "0BSD" ]
null
null
null
bin/soundboard_scripts/soundboard-preprocess.py
andrewmichaud/scripts
0e79a3454ec0116a0e3ed2902b79494939050937
[ "0BSD" ]
null
null
null
#!/usr/bin/env python3 import json # If you change this be sure to change it everywhere in the main ahk file too. bank_size = 8 input_file = "soundboard_data.json" output_file = "soundboard_data.ahk" def indent(indent_level): return (indent_level * 4) * " " def main(): with open(input_file) as f: d...
29.615385
87
0.612662
0
0
0
0
0
0
0
0
1,264
0.41039
1e93915ecdb2cdb619894439c631119916b71978
1,822
py
Python
1047.remove-all-adjacent-duplicates-in-string.py
windard/leeeeee
0107a5f95746592ca4fe78d2b5875cf65b1910e7
[ "MIT" ]
null
null
null
1047.remove-all-adjacent-duplicates-in-string.py
windard/leeeeee
0107a5f95746592ca4fe78d2b5875cf65b1910e7
[ "MIT" ]
null
null
null
1047.remove-all-adjacent-duplicates-in-string.py
windard/leeeeee
0107a5f95746592ca4fe78d2b5875cf65b1910e7
[ "MIT" ]
null
null
null
# coding=utf-8 # # @lc app=leetcode id=1047 lang=python # # [1047] Remove All Adjacent Duplicates In String # # https://leetcode.com/problems/remove-all-adjacent-duplicates-in-string/description/ # # algorithms # Easy (63.77%) # Likes: 184 # Dislikes: 18 # Total Accepted: 21.7K # Total Submissions: 34K # Testcase...
23.063291
85
0.57629
583
0.319452
0
0
0
0
0
0
1,243
0.681096
1e941d0f1ea0bea6db578d655dff1e5ed3367636
781
py
Python
sap/cf_logging/formatters/json_formatter.py
mhaas/cf-python-logging-support
86b7e8ef35b935401bdec7da275fe4e09302988c
[ "Apache-2.0" ]
16
2017-11-30T06:17:07.000Z
2021-09-13T13:41:17.000Z
sap/cf_logging/formatters/json_formatter.py
mhaas/cf-python-logging-support
86b7e8ef35b935401bdec7da275fe4e09302988c
[ "Apache-2.0" ]
32
2017-12-01T14:48:17.000Z
2022-02-19T04:49:55.000Z
sap/cf_logging/formatters/json_formatter.py
mhaas/cf-python-logging-support
86b7e8ef35b935401bdec7da275fe4e09302988c
[ "Apache-2.0" ]
7
2018-03-08T15:52:55.000Z
2022-02-27T18:52:57.000Z
""" Module for the JsonFormatter """ import json import logging import sys from sap.cf_logging.record.simple_log_record import SimpleLogRecord def _default_serializer(obj): return str(obj) if sys.version_info[0] == 3: def _encode(obj): return json.dumps(obj, default=_default_serializer) else: def ...
27.892857
106
0.701665
337
0.431498
0
0
0
0
0
0
176
0.225352
1e96de784904b01afc6ec3b2c98877a952ba909a
2,081
py
Python
src/compas_rhino/geometry/__init__.py
arpastrana/compas
ed677a162c14dbe562c82d72f370279259faf7da
[ "MIT" ]
null
null
null
src/compas_rhino/geometry/__init__.py
arpastrana/compas
ed677a162c14dbe562c82d72f370279259faf7da
[ "MIT" ]
null
null
null
src/compas_rhino/geometry/__init__.py
arpastrana/compas
ed677a162c14dbe562c82d72f370279259faf7da
[ "MIT" ]
null
null
null
""" ******************************************************************************** geometry ******************************************************************************** .. currentmodule:: compas_rhino.geometry .. rst-class:: lead Wrappers for Rhino objects that can be used to convert Rhino geometry and data to...
19.819048
97
0.62518
0
0
0
0
0
0
0
0
1,794
0.862086
1e974270a6cf3fb3cecc5bb2513b8e4bc658f7b9
5,757
py
Python
tests/functional_test.py
Luxxii/ProtGraph
68c3b362e2b487403fa02cfc25d456a272004a1f
[ "BSD-2-Clause" ]
null
null
null
tests/functional_test.py
Luxxii/ProtGraph
68c3b362e2b487403fa02cfc25d456a272004a1f
[ "BSD-2-Clause" ]
null
null
null
tests/functional_test.py
Luxxii/ProtGraph
68c3b362e2b487403fa02cfc25d456a272004a1f
[ "BSD-2-Clause" ]
null
null
null
import os import unittest import protgraph class FunctionalTest(unittest.TestCase): @classmethod def setUpClass(cls): """ Set base Example Folder """ main_file_path = os.path.dirname(os.path.abspath(protgraph.__file__)) cls.examples_path = os.path.join(main_file_path, "..", "examples...
39.163265
116
0.657982
5,710
0.991836
0
0
460
0.079903
0
0
499
0.086677
1e99fc63ab0f76d9f24c67f04cff7cdb44f433f8
3,444
py
Python
v1_fastecdsa/bsgs_algo_modified.py
Chesterfield007/bsgs
dc3a7ab73ca7b385d25f7b486e8efa293c4e3bf8
[ "MIT" ]
55
2021-01-15T17:01:10.000Z
2022-03-26T20:15:33.000Z
v1_fastecdsa/bsgs_algo_modified.py
Chesterfield007/bsgs
dc3a7ab73ca7b385d25f7b486e8efa293c4e3bf8
[ "MIT" ]
53
2021-02-14T22:17:44.000Z
2022-01-28T17:43:59.000Z
v1_fastecdsa/bsgs_algo_modified.py
Chesterfield007/bsgs
dc3a7ab73ca7b385d25f7b486e8efa293c4e3bf8
[ "MIT" ]
33
2021-02-19T13:30:49.000Z
2022-01-12T06:58:07.000Z
# -*- coding: utf-8 -*- """ @author: iceland """ import bit import time import random import os from fastecdsa import curve from fastecdsa.point import Point bs_file = 'baby_steps_table.txt' def Pub2Point(public_key): x = int(public_key[2:66],16) if len(public_key) < 70: y = bit.form...
32.8
146
0.525842
0
0
0
0
0
0
0
0
1,455
0.422474