hexsha
stringlengths
40
40
size
int64
5
2.06M
ext
stringclasses
11 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
251
max_stars_repo_name
stringlengths
4
130
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
251
max_issues_repo_name
stringlengths
4
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
116k
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
251
max_forks_repo_name
stringlengths
4
130
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
1
1.05M
avg_line_length
float64
1
1.02M
max_line_length
int64
3
1.04M
alphanum_fraction
float64
0
1
d95e400e7414be6bd28582167c1534a6fade0266
15,236
py
Python
GLM/GLM_Model/GLM_Model_GP.py
ys7yoo/npglm
98cc040fff8a861e2d7e210fef049207f1714b2a
[ "MIT" ]
9
2020-11-20T17:43:36.000Z
2021-02-26T22:18:59.000Z
GLM/GLM_Model/GLM_Model_GP.py
ys7yoo/npglm
98cc040fff8a861e2d7e210fef049207f1714b2a
[ "MIT" ]
1
2021-02-04T13:51:17.000Z
2021-02-04T23:56:07.000Z
GLM/GLM_Model/GLM_Model_GP.py
ys7yoo/npglm
98cc040fff8a861e2d7e210fef049207f1714b2a
[ "MIT" ]
1
2020-11-22T19:36:35.000Z
2020-11-22T19:36:35.000Z
import numpy as np import matplotlib.pyplot as plt import torch import scipy from GLM.GLM_Model import GLM_Model, PyTorchObj from scipy.optimize import minimize, Bounds from tqdm import tqdm
46.169697
174
0.616894
d95eed5d862d9b62ea1af084b7b9d3c23fb6a1ce
13,127
py
Python
c-deps/krb5/src/tests/t_preauth.py
Yangjxxxxx/ZNBase
dcf993b73250dd5cb63041f4d9cf098941f67b2b
[ "MIT", "BSD-3-Clause" ]
1
2021-12-03T05:07:39.000Z
2021-12-03T05:07:39.000Z
c-deps/krb5/src/tests/t_preauth.py
Yangjxxxxx/ZNBase
dcf993b73250dd5cb63041f4d9cf098941f67b2b
[ "MIT", "BSD-3-Clause" ]
9
2020-05-13T16:28:13.000Z
2021-12-30T04:07:49.000Z
src/tests/t_preauth.py
frozencemetery/krb5
bb8fa495d00ccd931eec87a01b8920636cf7903e
[ "MIT" ]
4
2020-07-01T12:41:46.000Z
2022-01-26T03:05:30.000Z
from k5test import * # Test that the kdcpreauth client_keyblock() callback matches the key # indicated by the etype info, and returns NULL if no key was selected. testpreauth = os.path.join(buildtop, 'plugins', 'preauth', 'test', 'test.so') conf = {'plugins': {'kdcpreauth': {'module': 'test:' + testpreauth}, ...
49.349624
79
0.665346
d96094c005965d2c5403a91fbbccf6c6f031c21a
4,303
py
Python
src/coreclr/scripts/antigen_unique_issues.py
KirillOsenkov/runtime
11742903dcc40a55e8688a1c61291459215f8ed0
[ "MIT" ]
1
2021-06-18T04:59:29.000Z
2021-06-18T04:59:29.000Z
src/coreclr/scripts/antigen_unique_issues.py
KirillOsenkov/runtime
11742903dcc40a55e8688a1c61291459215f8ed0
[ "MIT" ]
1
2021-11-11T02:02:54.000Z
2021-11-13T00:05:50.000Z
src/coreclr/scripts/antigen_unique_issues.py
KirillOsenkov/runtime
11742903dcc40a55e8688a1c61291459215f8ed0
[ "MIT" ]
1
2021-12-03T00:19:45.000Z
2021-12-03T00:19:45.000Z
#!/usr/bin/env python3 # ## Licensed to the .NET Foundation under one or more agreements. ## The .NET Foundation licenses this file to you under the MIT license. # ## # Title: antigen_unique_issues.py # # Notes: # # Script to identify unique issues from all partitions and print them on console. # ######################...
36.466102
166
0.563096
d9610b878d44c5a8266abce88c386c3e59afd553
1,448
py
Python
src/secml/ml/peval/metrics/c_metric_test_error.py
zangobot/secml
95a293e1201c24256eb7fe2f1d2125cd5f318c8c
[ "Apache-2.0" ]
63
2020-04-20T16:31:16.000Z
2022-03-29T01:05:35.000Z
src/secml/ml/peval/metrics/c_metric_test_error.py
zangobot/secml
95a293e1201c24256eb7fe2f1d2125cd5f318c8c
[ "Apache-2.0" ]
5
2020-04-21T11:31:39.000Z
2022-03-24T13:42:56.000Z
src/secml/ml/peval/metrics/c_metric_test_error.py
zangobot/secml
95a293e1201c24256eb7fe2f1d2125cd5f318c8c
[ "Apache-2.0" ]
8
2020-04-21T09:16:42.000Z
2022-02-23T16:28:43.000Z
""" .. module:: CMetricTestError :synopsis: Performance Metric: Test Error .. moduleauthor:: Marco Melis <marco.melis@unica.it> """ import sklearn.metrics as skm from secml.array import CArray from secml.ml.peval.metrics import CMetric
24.542373
82
0.600138
d96292f6031d95ffe48e989555808517308f5c23
35,592
py
Python
titer_model/implementation-nextstrain-augur/base/process.py
blab/dengue
5eacc47fbd77c59e7342d5be4aa81f7d3b4ff0bf
[ "CC-BY-4.0", "MIT" ]
4
2019-03-31T22:03:48.000Z
2020-06-16T21:04:24.000Z
titer_model/implementation-nextstrain-augur/base/process.py
emmahodcroft/dengue-antigenic-dynamics
5eacc47fbd77c59e7342d5be4aa81f7d3b4ff0bf
[ "CC-BY-4.0", "MIT" ]
4
2018-10-12T02:13:10.000Z
2019-07-24T02:44:53.000Z
titer_model/implementation-nextstrain-augur/base/process.py
emmahodcroft/dengue-antigenic-dynamics
5eacc47fbd77c59e7342d5be4aa81f7d3b4ff0bf
[ "CC-BY-4.0", "MIT" ]
5
2018-09-10T23:14:09.000Z
2020-12-27T20:57:34.000Z
from __future__ import division, print_function import argparse import sys, os, time, gzip, glob from collections import defaultdict from base.config import combine_configs from base.io_util import make_dir, remove_dir, tree_to_json, write_json, myopen from base.sequences_process import sequence_set from base.utils imp...
46.464752
158
0.595274
d9629e18c5a751f1f05e83298b1aeab4711e6438
1,777
py
Python
nodux_contabilidad/nodux_contabilidad/doctype/nodux_item_price/nodux_item_price.py
jessica-tandazo/nodux_contabilidad
a9f853e167160b1d883b937d2edbf354fd14d144
[ "MIT" ]
null
null
null
nodux_contabilidad/nodux_contabilidad/doctype/nodux_item_price/nodux_item_price.py
jessica-tandazo/nodux_contabilidad
a9f853e167160b1d883b937d2edbf354fd14d144
[ "MIT" ]
null
null
null
nodux_contabilidad/nodux_contabilidad/doctype/nodux_item_price/nodux_item_price.py
jessica-tandazo/nodux_contabilidad
a9f853e167160b1d883b937d2edbf354fd14d144
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright (c) 2015, nodux and contributors # For license information, please see license.txt from __future__ import unicode_literals import frappe from frappe.model.document import Document from frappe import throw, _
36.265306
111
0.723692
d962f71ef696f9f1cf377a6a911132ae292fa62f
799
py
Python
main/email.py
BTulkas/Foster_Finder
b3de87ce3a253bec3296446f7138f8a16b32f9d7
[ "MIT" ]
null
null
null
main/email.py
BTulkas/Foster_Finder
b3de87ce3a253bec3296446f7138f8a16b32f9d7
[ "MIT" ]
2
2021-09-12T08:31:22.000Z
2021-09-12T09:08:47.000Z
main/email.py
BTulkas/Foster_Finder
b3de87ce3a253bec3296446f7138f8a16b32f9d7
[ "MIT" ]
null
null
null
from flask import render_template from flask_mail import Message from main import mail, app
38.047619
69
0.640801
d966b6da1943e7fcc8c1aa8f39d2dde2c9b18bf1
779
py
Python
objectModel/Python/cdm/persistence/cdmfolder/types/projections/operation_add_artifact_attribute.py
rt112000/CDM
34bd34f9260140a8f8aa02bd87c23033f3daad4c
[ "CC-BY-4.0", "MIT" ]
884
2019-05-10T02:09:10.000Z
2022-03-31T14:02:00.000Z
objectModel/Python/cdm/persistence/cdmfolder/types/projections/operation_add_artifact_attribute.py
rt112000/CDM
34bd34f9260140a8f8aa02bd87c23033f3daad4c
[ "CC-BY-4.0", "MIT" ]
171
2019-06-10T11:34:37.000Z
2022-03-31T22:50:12.000Z
objectModel/Python/cdm/persistence/cdmfolder/types/projections/operation_add_artifact_attribute.py
rt112000/CDM
34bd34f9260140a8f8aa02bd87c23033f3daad4c
[ "CC-BY-4.0", "MIT" ]
340
2019-05-07T18:00:16.000Z
2022-03-31T12:00:15.000Z
# Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. from typing import Union from cdm.persistence.cdmfolder.types.projections.operation_base import OperationBase from cdm.persistence.cdmfolder.types.type_attribute im...
41
109
0.803594
d96823b574d707b8c5884043e9c5fc59a212d82c
1,900
py
Python
ebr_board/database/queries.py
eugene-davis/ebr-board
f592a752e17e869a6fd35ef82398f97748dbdc78
[ "Apache-2.0" ]
null
null
null
ebr_board/database/queries.py
eugene-davis/ebr-board
f592a752e17e869a6fd35ef82398f97748dbdc78
[ "Apache-2.0" ]
4
2019-08-02T09:35:51.000Z
2019-08-05T04:45:47.000Z
ebr_board/database/queries.py
LaudateCorpus1/ebr-board
f592a752e17e869a6fd35ef82398f97748dbdc78
[ "Apache-2.0" ]
1
2021-09-14T03:58:40.000Z
2021-09-14T03:58:40.000Z
""" Query functions to run against ElasticSearch """ # pylint: disable=invalid-name from ebr_connector.schema.build_results import BuildResults detailed_build_info = { "includes": [ "br_build_date_time", "br_job_name", "br_job_url_key", "br_source", "br_build_id_key", ...
31.666667
113
0.647895
d96a378a19360aa836edef6494a1d0f976078638
4,714
py
Python
src/scripts/vnet/uri/dummy_app.py
amithbraj/vpp
edf1da94dc099c6e2ab1d455ce8652fada3cdb04
[ "Apache-2.0" ]
751
2017-07-13T06:16:46.000Z
2022-03-30T09:14:35.000Z
src/scripts/vnet/uri/dummy_app.py
amithbraj/vpp
edf1da94dc099c6e2ab1d455ce8652fada3cdb04
[ "Apache-2.0" ]
63
2018-06-11T09:48:35.000Z
2021-01-05T09:11:03.000Z
src/scripts/vnet/uri/dummy_app.py
amithbraj/vpp
edf1da94dc099c6e2ab1d455ce8652fada3cdb04
[ "Apache-2.0" ]
479
2017-07-13T06:17:26.000Z
2022-03-31T18:20:43.000Z
#!/usr/bin/env python3 import socket import sys import time import argparse # action can be reflect or drop action = "drop" test = 0 if __name__ == "__main__": parser = argparse.ArgumentParser() parser.add_argument('-m', action='store', dest='mode') parser.add_argument('-i', action='store', dest='ip') ...
33.197183
83
0.591854
d96a84eccbdb4344152ec7775f2333ab5fdd6d60
2,806
py
Python
getData.py
siddsax/WD-GAN
c5f7d68394ea60760db3eacb5f059ebebef6060d
[ "BSD-3-Clause" ]
null
null
null
getData.py
siddsax/WD-GAN
c5f7d68394ea60760db3eacb5f059ebebef6060d
[ "BSD-3-Clause" ]
null
null
null
getData.py
siddsax/WD-GAN
c5f7d68394ea60760db3eacb5f059ebebef6060d
[ "BSD-3-Clause" ]
null
null
null
import torch from torch.utils import data import numpy as np import os import cv2 import torchvision.transforms as transforms from PIL import Image import random from PIL import ImageFile
35.075
104
0.63186
d96b52d758ea1e34f2a09afa20f1c461838affe8
6,290
py
Python
bindings/python/test/time/test_time.py
verstaen/open-space-toolkit-physics
ca55011fd0de9aadacad84317fdce06985e5dbd8
[ "Apache-2.0" ]
null
null
null
bindings/python/test/time/test_time.py
verstaen/open-space-toolkit-physics
ca55011fd0de9aadacad84317fdce06985e5dbd8
[ "Apache-2.0" ]
null
null
null
bindings/python/test/time/test_time.py
verstaen/open-space-toolkit-physics
ca55011fd0de9aadacad84317fdce06985e5dbd8
[ "Apache-2.0" ]
null
null
null
################################################################################################################################################################ # @project Open Space Toolkit Physics # @file bindings/python/test/time/test_time.py # @author Lucas Brmond <lucas@loftorbital.com> ...
35.337079
160
0.2531
d96bfa9969aa7535edbc947eef5fd3836a546bc4
61,602
py
Python
email_client.py
HideyoshiNakazone/duo-db-client
d847f59c4b4243cf359e2fca411f0e7a6864493b
[ "MIT" ]
null
null
null
email_client.py
HideyoshiNakazone/duo-db-client
d847f59c4b4243cf359e2fca411f0e7a6864493b
[ "MIT" ]
null
null
null
email_client.py
HideyoshiNakazone/duo-db-client
d847f59c4b4243cf359e2fca411f0e7a6864493b
[ "MIT" ]
null
null
null
from google_auth_oauthlib.flow import InstalledAppFlow from googleapiclient.discovery import build from datetime import datetime, timedelta from email.mime.multipart import MIMEMultipart from email.mime.image import MIMEImage from email.mime.text import MIMEText from email.header import Header import psycopg2.extension...
75.678133
493
0.65967
d96d94b8b61da641fde0216154cbe46da6d86b8e
2,022
py
Python
containers/api/api/models/user.py
yveso/supertoll
0623c090ab97d5fb24dba6c18373c7cf8bc27e46
[ "MIT" ]
null
null
null
containers/api/api/models/user.py
yveso/supertoll
0623c090ab97d5fb24dba6c18373c7cf8bc27e46
[ "MIT" ]
8
2019-12-26T17:26:07.000Z
2022-02-26T10:41:53.000Z
containers/api/api/models/user.py
yveso/supertoll
0623c090ab97d5fb24dba6c18373c7cf8bc27e46
[ "MIT" ]
null
null
null
from datetime import datetime, timedelta from flask import current_app import jwt from api import db, bcrypt
31.107692
79
0.573195
d96f3eb5e590bbf34c05fb157cdbcbd239587353
522
py
Python
examples/team.py
DarinMao/python-ccs
73cf6319320b1e13acdce9f7b79128e213e6750b
[ "MIT" ]
null
null
null
examples/team.py
DarinMao/python-ccs
73cf6319320b1e13acdce9f7b79128e213e6750b
[ "MIT" ]
null
null
null
examples/team.py
DarinMao/python-ccs
73cf6319320b1e13acdce9f7b79128e213e6750b
[ "MIT" ]
null
null
null
import ccs team = ccs.team(raw_input("Team Number: ")) summary = team.summary print "Team {} ({} {}) - {} images ({} points) - {}/{} {}".format( summary.number, summary.division, summary.location, summary.images, summary.score, summary.playtime, summary.scoretime, summary.warn) for image in team.ima...
43.5
74
0.637931
d96ff25d9d5722c19fe4236bed106b32c2d92cde
10,795
py
Python
nova/virt/powervm/tasks/network.py
zjzh/nova
7bb21723171c59b93e28f5d508c2b6df39220f13
[ "Apache-2.0" ]
1,874
2015-01-04T05:18:34.000Z
2022-03-31T03:30:28.000Z
nova/virt/powervm/tasks/network.py
woraser/nova
fc3890667e4971e3f0f35ac921c2a6c25f72adec
[ "Apache-2.0" ]
132
2017-03-27T11:31:52.000Z
2022-03-30T08:45:02.000Z
nova/virt/powervm/tasks/network.py
woraser/nova
fc3890667e4971e3f0f35ac921c2a6c25f72adec
[ "Apache-2.0" ]
1,996
2015-01-04T15:11:51.000Z
2022-03-31T11:03:13.000Z
# Copyright 2015, 2017 IBM Corp. # # 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 require...
41.519231
79
0.631774
d97012330ebae7c93600f55d0f782d19e5a41dae
5,752
py
Python
anti_sybil/graphs/generators/group_based.py
abramsymons/BrightID-AntiSybil
86161afe654f46475944ebdb3b5453a1723180d9
[ "ISC" ]
null
null
null
anti_sybil/graphs/generators/group_based.py
abramsymons/BrightID-AntiSybil
86161afe654f46475944ebdb3b5453a1723180d9
[ "ISC" ]
null
null
null
anti_sybil/graphs/generators/group_based.py
abramsymons/BrightID-AntiSybil
86161afe654f46475944ebdb3b5453a1723180d9
[ "ISC" ]
1
2020-03-28T05:05:19.000Z
2020-03-28T05:05:19.000Z
import random import networkx as nx from ..node import Node
42.607407
103
0.570932
d9724df91f0d1e509249a814becdf43525ed1c7c
182
py
Python
Contest/ABC051/c/main.py
mpses/AtCoder
9c101fcc0a1394754fcf2385af54b05c30a5ae2a
[ "CC0-1.0" ]
null
null
null
Contest/ABC051/c/main.py
mpses/AtCoder
9c101fcc0a1394754fcf2385af54b05c30a5ae2a
[ "CC0-1.0" ]
null
null
null
Contest/ABC051/c/main.py
mpses/AtCoder
9c101fcc0a1394754fcf2385af54b05c30a5ae2a
[ "CC0-1.0" ]
null
null
null
#!/usr/bin/env python3 sx, sy, tx, ty = map(int, input().split()) x, y = tx - sx, ty - sy print("R"*x + "U"*-~y + "L"*-~x + "D"*-~y + "R" + "U"*y + "R"*-~x + "D"*-~y + "L"*-~x + "U")
45.5
92
0.401099
d97307bce111d22165208da1309beb39d698985c
92
py
Python
problems/chapter12/mshibatatt/001.py
tokuma09/algorithm_problems
58534620df73b230afbeb12de126174362625a78
[ "CC0-1.0" ]
1
2021-07-07T15:46:58.000Z
2021-07-07T15:46:58.000Z
problems/chapter12/mshibatatt/001.py
tokuma09/algorithm_problems
58534620df73b230afbeb12de126174362625a78
[ "CC0-1.0" ]
5
2021-06-05T14:16:41.000Z
2021-07-10T07:08:28.000Z
problems/chapter12/mshibatatt/001.py
tokuma09/algorithm_problems
58534620df73b230afbeb12de126174362625a78
[ "CC0-1.0" ]
null
null
null
a = list(map(int, input().split())) [i[0] for i in sorted(enumerate(a), key=lambda x:x[1])]
30.666667
55
0.619565
d9733cb8ddf1ffbcfc514f4195c8b460a2b0fff8
560
py
Python
typer-cli-python/source_code_step_2/rptodo/cli.py
syberflea/materials
54f44725b40edf00c1b523d7a85b34a85014d7eb
[ "MIT" ]
3,682
2018-05-07T19:45:24.000Z
2022-03-31T15:19:10.000Z
typer-cli-python/source_code_step_2/rptodo/cli.py
sribarrow/materials
c17c4a4d6f8487e59eac1df8c88ca92b73d6d2a5
[ "MIT" ]
148
2018-05-15T21:18:49.000Z
2022-03-21T11:25:39.000Z
typer-cli-python/source_code_step_2/rptodo/cli.py
sribarrow/materials
c17c4a4d6f8487e59eac1df8c88ca92b73d6d2a5
[ "MIT" ]
5,535
2018-05-25T23:36:08.000Z
2022-03-31T16:55:52.000Z
"""This module provides the RP To-Do CLI.""" from typing import Optional import typer from rptodo import __app_name__, __version__ app = typer.Typer()
18.666667
56
0.623214
d97515b3fc95c50563dceea347d6cfbeb7c8f9bf
4,629
py
Python
surrortg/devices/relay.py
bn102/surrortg-sdk
5f51515d0fd83741b3359b9a682c0a9afc38886f
[ "MIT" ]
21
2020-11-03T23:41:56.000Z
2022-03-21T04:11:46.000Z
surrortg/devices/relay.py
bn102/surrortg-sdk
5f51515d0fd83741b3359b9a682c0a9afc38886f
[ "MIT" ]
5
2021-02-11T14:36:03.000Z
2021-07-20T11:45:07.000Z
surrortg/devices/relay.py
bn102/surrortg-sdk
5f51515d0fd83741b3359b9a682c0a9afc38886f
[ "MIT" ]
11
2020-11-13T11:14:33.000Z
2022-03-21T04:11:51.000Z
import asyncio import logging import pigpio if __name__ == "__main__": asyncio.run(main())
28.054545
78
0.597969
d976858493e0b3bdb11753531577c643cf5f3d49
8,322
py
Python
voice.py
ImPurpl3/egg
875f8105140544897e7b81af660e3da864b4cd54
[ "MIT" ]
null
null
null
voice.py
ImPurpl3/egg
875f8105140544897e7b81af660e3da864b4cd54
[ "MIT" ]
null
null
null
voice.py
ImPurpl3/egg
875f8105140544897e7b81af660e3da864b4cd54
[ "MIT" ]
1
2021-12-17T01:23:31.000Z
2021-12-17T01:23:31.000Z
""" MIT License Copyright (c) 2020 ValkyriaKing711 Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge...
32.76378
95
0.577866
d97890969781912a2513be62820c2cd00f1b4a65
131
py
Python
drf_gitlab_webhook/urls.py
Develatio/drf-gitlab-webhook
34a90a979da1b004886620a89e916b88a61e0c85
[ "MIT" ]
1
2019-01-19T22:06:31.000Z
2019-01-19T22:06:31.000Z
drf_gitlab_webhook/urls.py
Develatio/drf-gitlab-webhook
34a90a979da1b004886620a89e916b88a61e0c85
[ "MIT" ]
null
null
null
drf_gitlab_webhook/urls.py
Develatio/drf-gitlab-webhook
34a90a979da1b004886620a89e916b88a61e0c85
[ "MIT" ]
1
2019-05-09T16:56:04.000Z
2019-05-09T16:56:04.000Z
from django.conf.urls import url from . import classviews urlpatterns = [ url(r'^event/$', classviews.HookEvent.as_view()), ]
18.714286
53
0.709924
d9789ea5dc5332d1b7a15a1afc6b61a382b8814b
2,392
py
Python
tap_parquet/streams.py
berenddeboer/tap-parquet
d9c50ea92a68b7777e31ca622468e1dadd86d9ce
[ "Apache-2.0" ]
null
null
null
tap_parquet/streams.py
berenddeboer/tap-parquet
d9c50ea92a68b7777e31ca622468e1dadd86d9ce
[ "Apache-2.0" ]
4
2021-04-02T16:32:14.000Z
2021-11-09T22:54:03.000Z
tap_parquet/streams.py
berenddeboer/tap-parquet
d9c50ea92a68b7777e31ca622468e1dadd86d9ce
[ "Apache-2.0" ]
2
2021-11-09T06:44:46.000Z
2021-12-01T12:28:29.000Z
"""Stream class for tap-parquet.""" import requests from copy import deepcopy from pathlib import Path from typing import Any, Dict, Optional, Union, List, Iterable from singer_sdk.streams import Stream from singer_sdk.typing import ( ArrayType, BooleanType, DateTimeType, IntegerType, NumberType,...
31.473684
86
0.637542
d978a101e4eebb559e09fff2906b2a39d73becb8
3,851
py
Python
ppt/app.py
fabioacarvalho/Projetos-Praticando
fa0b324c03a0b4bc5d0ed9d55bbc3ce48d67541b
[ "MIT" ]
null
null
null
ppt/app.py
fabioacarvalho/Projetos-Praticando
fa0b324c03a0b4bc5d0ed9d55bbc3ce48d67541b
[ "MIT" ]
null
null
null
ppt/app.py
fabioacarvalho/Projetos-Praticando
fa0b324c03a0b4bc5d0ed9d55bbc3ce48d67541b
[ "MIT" ]
null
null
null
import sys import random from design import * from PyQt5.QtWidgets import QMainWindow, QApplication from PyQt5 import QtGui ppt = ['Rock', 'Paper', 'Scissors'] game = [] if __name__ == '__main__': qt = QApplication(sys.argv) app = App() app.show() qt.exec_()
36.67619
101
0.615684
d97defe4ab7d19c2df85621955ea08007777df4a
354
py
Python
test/test_format.py
gongso1st/geopy
9252f4b12197ff3c5e3fae50d9bae74974d5d20f
[ "MIT" ]
1
2019-07-17T14:38:52.000Z
2019-07-17T14:38:52.000Z
test/test_format.py
gongso1st/geopy
9252f4b12197ff3c5e3fae50d9bae74974d5d20f
[ "MIT" ]
null
null
null
test/test_format.py
gongso1st/geopy
9252f4b12197ff3c5e3fae50d9bae74974d5d20f
[ "MIT" ]
1
2020-06-03T01:42:17.000Z
2020-06-03T01:42:17.000Z
import unittest from geopy.point import Point from geopy.format import format_degrees
19.666667
64
0.584746
d97e9bfb4e01d1a5a972e104691a2c436b4de3ca
653
py
Python
Sorts.py
marinajacks/nowcoder
5fafb9b12f56f111737e56358016206023c8067c
[ "MIT" ]
null
null
null
Sorts.py
marinajacks/nowcoder
5fafb9b12f56f111737e56358016206023c8067c
[ "MIT" ]
null
null
null
Sorts.py
marinajacks/nowcoder
5fafb9b12f56f111737e56358016206023c8067c
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Sun Oct 20 20:52:56 2019 @author: python """ import random ''' O(N^2),O(N^2). ''' if __name__=="__main__": a=[] for i in range(10): a.append(random.randint(10,40)) print(a) print(bubble(a)) print('hello world!')
15.926829
44
0.580398
d97f0714641d6f4865c82aa054acf514505a58ff
722
py
Python
scripts/token.py
blockchain-jedi/erc20-contract-template
4364d131e5046d0534f6b92304e6f91b5e8adb23
[ "MIT" ]
null
null
null
scripts/token.py
blockchain-jedi/erc20-contract-template
4364d131e5046d0534f6b92304e6f91b5e8adb23
[ "MIT" ]
null
null
null
scripts/token.py
blockchain-jedi/erc20-contract-template
4364d131e5046d0534f6b92304e6f91b5e8adb23
[ "MIT" ]
null
null
null
# # Usage: # # % brownie console # >>> from scripts import token # >>> green = token.main() # >>> token.issue(green) # >>> token.transfer(green, accounts[1], accounts[2], 1) # from brownie import Token, accounts admin = accounts[0] issuer = accounts[1] holders = accounts[2:9] max_supply...
24.066667
89
0.624654
d980d8c3ac914ab7b6744057703f0c8a2e3c1e3d
2,711
py
Python
nederlands.py
rec/neederlands
f5b71a768c9a51a06014a386ffafc8844943e4b2
[ "Unlicense" ]
1
2020-02-05T17:48:22.000Z
2020-02-05T17:48:22.000Z
nederlands.py
rec/nederlands
f5b71a768c9a51a06014a386ffafc8844943e4b2
[ "Unlicense" ]
null
null
null
nederlands.py
rec/nederlands
f5b71a768c9a51a06014a386ffafc8844943e4b2
[ "Unlicense" ]
null
null
null
import string WIKI_BESTAND = '/Users/tom/Downloads/\ nlwiktionary-20191020-pages-articles-multistream-index.txt' WOORD_BESTAND = 'woord-frequenties.txt' SLECHT_BESTAND = 'slechte-woorden.txt' BLACKLIST = {i.strip() for i in open(SLECHT_BESTAND)} AANTAL = 1000000000000000 MIN = 4 MIN_ACHTERVOEGSEL = 4 VOORVOEGSELS = ...
20.231343
75
0.54408
d98213a54bed6fe63049234194f24aa16f814a04
384
py
Python
ds_utils/config.py
dylanjcastillo/nlp-snippets
1cb2a9d4ad5de72714a617ca223f5f822ca72aea
[ "MIT" ]
9
2021-01-29T04:48:30.000Z
2022-03-22T20:51:19.000Z
ds_utils/config.py
dylanjcastillo/nlp-snippets
1cb2a9d4ad5de72714a617ca223f5f822ca72aea
[ "MIT" ]
null
null
null
ds_utils/config.py
dylanjcastillo/nlp-snippets
1cb2a9d4ad5de72714a617ca223f5f822ca72aea
[ "MIT" ]
1
2021-07-10T18:17:01.000Z
2021-07-10T18:17:01.000Z
import os import random import numpy as np import pandas as pd
20.210526
54
0.700521
d9829ca97d266ae282da297f5160c6bc599cfd00
158
py
Python
whileloop.py
muhrizky/DSC-DataCamp
3b8f8a7fd29f236a78e2330248d470403757d6b8
[ "MIT" ]
null
null
null
whileloop.py
muhrizky/DSC-DataCamp
3b8f8a7fd29f236a78e2330248d470403757d6b8
[ "MIT" ]
null
null
null
whileloop.py
muhrizky/DSC-DataCamp
3b8f8a7fd29f236a78e2330248d470403757d6b8
[ "MIT" ]
null
null
null
offset = -8 while offset != 0 : print('Benar') if offset > 0 : offset = offset -3 else: offset = offset +2 print(offset)
15.8
26
0.5
d984472a164601e55d0346ed01540ed2b20dc88d
832
py
Python
config/tortoise.py
nythonore/fastapi-async
82f34dd421e573f96af1953cc1f72be565743df8
[ "MIT" ]
null
null
null
config/tortoise.py
nythonore/fastapi-async
82f34dd421e573f96af1953cc1f72be565743df8
[ "MIT" ]
null
null
null
config/tortoise.py
nythonore/fastapi-async
82f34dd421e573f96af1953cc1f72be565743df8
[ "MIT" ]
null
null
null
from tortoise.contrib.fastapi import register_tortoise as config_tortoise from config.settings import settings DB_URL = f'postgres://{settings.DB_USERNAME}:{settings.DB_PASSWORD}@{settings.DB_HOST}:{settings.DB_PORT}/{settings.DB_DATABASE}' TORTOISE_MODULES = ['app.example.model'] TORTOISE_ORM_MODULES = TORTOISE_MOD...
24.470588
129
0.638221
d9863370e480b53bf264ca69904724291538c799
105
py
Python
application/configuration/views.py
pernaess/ctrlpnl
e0636f3b19d4a5ec5e96120526f238888271391d
[ "MIT" ]
34
2020-01-27T15:07:25.000Z
2021-09-25T17:07:37.000Z
application/configuration/views.py
pernaess/ctrlpnl
e0636f3b19d4a5ec5e96120526f238888271391d
[ "MIT" ]
26
2020-01-29T12:24:42.000Z
2022-03-12T00:16:44.000Z
application/configuration/views.py
pernaess/ctrlpnl
e0636f3b19d4a5ec5e96120526f238888271391d
[ "MIT" ]
7
2020-01-27T11:42:11.000Z
2021-04-05T04:42:22.000Z
from django.shortcuts import redirect
26.25
37
0.790476
d986985c57ee93c51e109add53b8920f894727ed
982
py
Python
setup.py
orange-kao/rpm-s3-mirror
4a08cdb47de33045c5e5bc8be1c5ee17bc169d56
[ "Apache-2.0" ]
null
null
null
setup.py
orange-kao/rpm-s3-mirror
4a08cdb47de33045c5e5bc8be1c5ee17bc169d56
[ "Apache-2.0" ]
4
2020-05-08T03:36:15.000Z
2022-03-31T10:51:18.000Z
setup.py
aiven/rpm-s3-mirror
55f049a92258eed3cc863135a964c10c25a3c25a
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2020 Aiven, Helsinki, Finland. https://aiven.io/ from setuptools import setup import version version = version.get_project_version("rpm_s3_mirror/version.py") setup( name="rpm_s3_mirror", packages=["rpm_s3_mirror"], version=version, description="Tool for syncing RPM repositories with ...
26.540541
65
0.619145
d9869f57875e2690d3cd90cc8428e4dc9378e706
2,074
py
Python
tests/step_defs/test_search_steps.py
aura80/TAU_BDD_Reserved_Selenium_Python_New
cccaa437f1c8f4aa4f47f41ca2d5c0b1d3166035
[ "MIT" ]
null
null
null
tests/step_defs/test_search_steps.py
aura80/TAU_BDD_Reserved_Selenium_Python_New
cccaa437f1c8f4aa4f47f41ca2d5c0b1d3166035
[ "MIT" ]
null
null
null
tests/step_defs/test_search_steps.py
aura80/TAU_BDD_Reserved_Selenium_Python_New
cccaa437f1c8f4aa4f47f41ca2d5c0b1d3166035
[ "MIT" ]
null
null
null
import time from pytest_bdd import scenarios, when, then, given, parsers from pages.search import SearchTests from pages.register_page import RegisterPage # Scenarios scenarios('../features/test_register_search_scenario.feature') # steps
28.410959
98
0.750241
d987308ee279d5897c812d0ddad5761b6c09fe3e
8,668
py
Python
pendium/filesystem.py
LuRsT/Pendium
f71b3db987853df919c14f0be4238df00852a9a7
[ "Apache-2.0" ]
5
2015-05-07T21:26:06.000Z
2016-07-27T11:41:49.000Z
pendium/filesystem.py
LuRsT/Pendium
f71b3db987853df919c14f0be4238df00852a9a7
[ "Apache-2.0" ]
9
2017-12-21T20:22:16.000Z
2019-07-24T13:04:35.000Z
pendium/filesystem.py
LuRsT/Pendium
f71b3db987853df919c14f0be4238df00852a9a7
[ "Apache-2.0" ]
null
null
null
import codecs from logging import getLogger import os from pendium import app from pendium.plugins import IRenderPlugin from pendium.plugins import ISearchPlugin from yapsy.PluginManager import PluginManager log = getLogger(__name__) # Populate plugins lib_path = os.path.abspath(os.path.dirname(__file__)) manager =...
27.782051
82
0.578565
d988d23ea27ce8a2b5e3d30a08db96c282196fd0
3,957
py
Python
sabcom/helpers.py
blackrhinoabm/sabcom
ec0d9c37e11a8bd49352539f3f16ef322e1b5cf8
[ "MIT" ]
6
2020-05-21T11:42:27.000Z
2020-10-20T03:00:22.000Z
sabcom/helpers.py
blackrhinoabm/sabcom
ec0d9c37e11a8bd49352539f3f16ef322e1b5cf8
[ "MIT" ]
2
2020-04-08T17:45:37.000Z
2020-09-22T16:13:27.000Z
sabcom/helpers.py
blackrhinoabm/sabcom
ec0d9c37e11a8bd49352539f3f16ef322e1b5cf8
[ "MIT" ]
4
2020-04-10T14:18:34.000Z
2020-10-31T16:18:30.000Z
import random import numpy as np import pandas as pd import math from sklearn import preprocessing import scipy.stats as stats def generate_district_data(number_of_agents, path, max_districts=None): """ Transforms input data on informal residential, initial infections, and population and transforms it t...
39.57
120
0.645438
d989087921d1b51a7238e387777319d8107f335c
767
py
Python
tests/io_test.py
wgfi110/speech
59a3e2d8d2d99d31cf32e06c1a0751eb36a3c02b
[ "Apache-2.0" ]
642
2017-09-27T01:11:16.000Z
2022-03-29T11:02:08.000Z
tests/io_test.py
wgfi110/speech
59a3e2d8d2d99d31cf32e06c1a0751eb36a3c02b
[ "Apache-2.0" ]
54
2017-10-06T18:21:42.000Z
2021-01-15T07:10:21.000Z
tests/io_test.py
wgfi110/speech
59a3e2d8d2d99d31cf32e06c1a0751eb36a3c02b
[ "Apache-2.0" ]
176
2017-09-27T16:10:08.000Z
2022-03-15T03:43:07.000Z
import tempfile import speech.models import speech.loader import shared
23.96875
51
0.680574
d989c05c96298ca370a7889007b9e02fb326abb5
928
py
Python
image_analyse/Image CDF and PDF.py
TheRockerfly/data_mining_portfolio
a84f1a1a9dc9fec668b81e012e9d130d91227598
[ "MIT" ]
null
null
null
image_analyse/Image CDF and PDF.py
TheRockerfly/data_mining_portfolio
a84f1a1a9dc9fec668b81e012e9d130d91227598
[ "MIT" ]
null
null
null
image_analyse/Image CDF and PDF.py
TheRockerfly/data_mining_portfolio
a84f1a1a9dc9fec668b81e012e9d130d91227598
[ "MIT" ]
null
null
null
import matplotlib.pyplot as plt # TODO: port away from matplotlib to a seaborn # Probability Distribution Function (PDF). # Cumulative Distribution Function (CDF) # TODO: put all of these functions within a custom function image = plt.imread('900px-Astronaut-EVA.jpg') plt.subplot(2, 1, 1) plt.imshow(image, cmap='gra...
29.935484
79
0.693966
d98a64a68a68150c17a5ba9fa0b9485585e96dc4
35
py
Python
yolo/model_zoo/__init__.py
ioangatop/yolo
c65a72337369572bc07090f39123e2bf6ff5f4a3
[ "MIT" ]
1
2021-06-28T01:22:38.000Z
2021-06-28T01:22:38.000Z
yolo/model_zoo/__init__.py
ioangatop/yolo
c65a72337369572bc07090f39123e2bf6ff5f4a3
[ "MIT" ]
null
null
null
yolo/model_zoo/__init__.py
ioangatop/yolo
c65a72337369572bc07090f39123e2bf6ff5f4a3
[ "MIT" ]
null
null
null
from .model_zoo import load_weights
35
35
0.885714
d98b62aa0fdb706a6f4cb4c830afcb3e8f4fca20
282
py
Python
test_logger/demo.py
payalkutana/logging_logger
7dc7ccaee63e922b7c7f699a5d0b4e1317a27502
[ "MIT" ]
null
null
null
test_logger/demo.py
payalkutana/logging_logger
7dc7ccaee63e922b7c7f699a5d0b4e1317a27502
[ "MIT" ]
null
null
null
test_logger/demo.py
payalkutana/logging_logger
7dc7ccaee63e922b7c7f699a5d0b4e1317a27502
[ "MIT" ]
null
null
null
from logging_logger import loggerClass import logging loggerClass.WritetoScreen(loggerClass,logging.INFO,"testing...", '%(levelname)s:%(message)s') loggerClass.Writetofile(loggerClass,'sample.log',logging.WARNING,"testing...", '%(levelname)s:%(message)s')
31.333333
78
0.70922
d98be932a3e4d84d93b13cf5f54ee3801d2adc54
111
py
Python
LearnPython3TheHardWay/ex8.py
lanjing99/UsePython
19a84e3ef65dc326cf9c4bfccbf2d99c22f858a4
[ "MIT" ]
null
null
null
LearnPython3TheHardWay/ex8.py
lanjing99/UsePython
19a84e3ef65dc326cf9c4bfccbf2d99c22f858a4
[ "MIT" ]
null
null
null
LearnPython3TheHardWay/ex8.py
lanjing99/UsePython
19a84e3ef65dc326cf9c4bfccbf2d99c22f858a4
[ "MIT" ]
null
null
null
formatter = "{} {} {} {}" print(formatter.format(1, 2, 3, 4)) print(formatter.format("a", "b", "c", "d", "r"))
27.75
48
0.522523
d98cbe93e213130d35e4010a52b1592965b94b18
14,115
py
Python
src/matching/games/hospital_resident.py
drvinceknight/matching
da18fc12c880a1292a04d06824b5c17e68349e83
[ "MIT" ]
null
null
null
src/matching/games/hospital_resident.py
drvinceknight/matching
da18fc12c880a1292a04d06824b5c17e68349e83
[ "MIT" ]
null
null
null
src/matching/games/hospital_resident.py
drvinceknight/matching
da18fc12c880a1292a04d06824b5c17e68349e83
[ "MIT" ]
null
null
null
""" The HR solver and algorithm. """ from matching import Game, Matching from matching import Player as Resident from matching.players import Hospital from .util import delete_pair, match_pair def _check_mutual_preference(resident, hospital): """ Determine whether two players each have a preference of the othe...
34.426829
80
0.616932
d98e4516cf482bd1a8b30548c1119b56db7376b4
2,931
py
Python
solutions/rank-1/prepare_data.py
mattmotoki/ashrae-great-energy-predictor-3-solution-analysis
8a5260049d4537c57c37a78e77f2fba13c55177d
[ "MIT" ]
48
2020-03-18T11:34:49.000Z
2022-03-31T18:30:00.000Z
solutions/rank-1/prepare_data.py
mattmotoki/ashrae-great-energy-predictor-3-solution-analysis
8a5260049d4537c57c37a78e77f2fba13c55177d
[ "MIT" ]
40
2020-03-24T18:17:51.000Z
2022-03-12T00:30:30.000Z
solutions/rank-1/prepare_data.py
mattmotoki/ashrae-great-energy-predictor-3-solution-analysis
8a5260049d4537c57c37a78e77f2fba13c55177d
[ "MIT" ]
24
2020-04-18T02:52:47.000Z
2022-01-22T19:13:16.000Z
#!/usr/bin/env python # coding: utf-8 # based on public kernel https://www.kaggle.com/corochann/ashrae-feather-format-for-fast-loading import os import random import gc import tqdm import numpy as np import pandas as pd import matplotlib.pyplot as plt import seaborn as sns if __name__ == '__main__': root...
40.708333
145
0.716479
d98fb88b15b7a7bd1330a40dd1ecdb89f69e5b99
23,531
py
Python
models/triangular_lattice.py
macthecadillac/Interacting-Fermions
6122d2a7e67533b28e581929995ce8e2a2ad41fc
[ "BSD-3-Clause" ]
1
2020-07-29T06:06:12.000Z
2020-07-29T06:06:12.000Z
models/triangular_lattice.py
macthecadillac/Interacting-Fermions
6122d2a7e67533b28e581929995ce8e2a2ad41fc
[ "BSD-3-Clause" ]
null
null
null
models/triangular_lattice.py
macthecadillac/Interacting-Fermions
6122d2a7e67533b28e581929995ce8e2a2ad41fc
[ "BSD-3-Clause" ]
null
null
null
import copy import functools import os import numpy as np from scipy import sparse from spinsys import constructors, half, dmrg, exceptions from cffi import FFI @functools.lru_cache(maxsize=None) def _gen_z_pm_ops(N, bonds): """generate the H_z and H_pm components of the Hamiltonian""" H_pm = H_z = 0 ...
32.411846
88
0.537164
d990ddde01350e477f961c78fce1ed2af6c8f78a
16,528
py
Python
stgelpDL/dev/edfiles.py
dmitryv56/stgelpDL
a3dbe9f1a4ff19586dfdfac01748634b47389a6e
[ "MIT" ]
null
null
null
stgelpDL/dev/edfiles.py
dmitryv56/stgelpDL
a3dbe9f1a4ff19586dfdfac01748634b47389a6e
[ "MIT" ]
null
null
null
stgelpDL/dev/edfiles.py
dmitryv56/stgelpDL
a3dbe9f1a4ff19586dfdfac01748634b47389a6e
[ "MIT" ]
null
null
null
import pandas as pd import copy from pathlib import Path import pandas as pd import numpy as np import math from datetime import datetime,timedelta import matplotlib.pyplot as plt from predictor.utility import msg2log """ transform time series (feature in source dataset) matrix Nrows * Mcols. The source dataset m...
35.697624
130
0.647749
d9913fd01e1b721da362c3a1ba14143f873c7a20
5,450
py
Python
knoema/source_data/get_indic_id.py
zmmyc/ksh
5869908714ea87a297a8fc19ecafd7d3cf15e889
[ "MIT" ]
1
2022-03-30T06:50:42.000Z
2022-03-30T06:50:42.000Z
knoema/source_data/get_indic_id.py
zmmyc/ksh
5869908714ea87a297a8fc19ecafd7d3cf15e889
[ "MIT" ]
null
null
null
knoema/source_data/get_indic_id.py
zmmyc/ksh
5869908714ea87a297a8fc19ecafd7d3cf15e889
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import requests, json from bs4 import BeautifulSoup from mspider.spider import MSpider if __name__=="__main__": spider = Get_indic_idSpider() # spider.test() spider.crawl() spider.file.close()
147.297297
4,232
0.728807
d99172d582203a6c9d89885e87dc7fdf395331ed
2,556
py
Python
Programming Assignment 3/min Cut.py
TheRevanchist/Design-and-Analysis-of-Algorithms-Part-1
e41e3a1117258fb6f635c3c734675215dbce5263
[ "MIT" ]
1
2020-08-02T12:01:56.000Z
2020-08-02T12:01:56.000Z
Programming Assignment 3/min Cut.py
TheRevanchist/Design-and-Analysis-of-Algorithms-Part-1
e41e3a1117258fb6f635c3c734675215dbce5263
[ "MIT" ]
null
null
null
Programming Assignment 3/min Cut.py
TheRevanchist/Design-and-Analysis-of-Algorithms-Part-1
e41e3a1117258fb6f635c3c734675215dbce5263
[ "MIT" ]
null
null
null
from random import choice from copy import deepcopy # read the file lista = "D:/Workbench/Online Courses/Design and Analysis of Algorithms, Part 1/Programming Assignment 3/file.txt" f = open(lista, 'r') line_list = f.readlines() G = {int(line.split()[0]): [int(val) for val in line.split()[1:] if val] f...
40.571429
115
0.618153
d99179f5f0c295d6288591b72b99cc96a11e545c
5,223
py
Python
python/tvm/tensor_graph/core2/nn/functional/convolution.py
QinHan-Erin/AMOS
634bf48edf4015e4a69a8c32d49b96bce2b5f16f
[ "Apache-2.0" ]
22
2022-03-18T07:29:31.000Z
2022-03-23T14:54:32.000Z
python/tvm/tensor_graph/core2/nn/functional/convolution.py
QinHan-Erin/AMOS
634bf48edf4015e4a69a8c32d49b96bce2b5f16f
[ "Apache-2.0" ]
null
null
null
python/tvm/tensor_graph/core2/nn/functional/convolution.py
QinHan-Erin/AMOS
634bf48edf4015e4a69a8c32d49b96bce2b5f16f
[ "Apache-2.0" ]
2
2022-03-18T08:26:34.000Z
2022-03-20T06:02:48.000Z
import tvm from tvm.tensor_graph.core2.graph.concrete import Compute, Tensor from .padding import zero_pad2d ###################################################################### # for functional, all states are inputs, data from inside functionals # can only be constants ##########################################...
45.815789
107
0.551216
d992c4a228423f90ecb2adf20087008d8ce1a6bc
1,352
py
Python
geneticalgorithm2/cache.py
its4avin/geneticalgorithm2
59663ce92a92a0278b5220c32a63a3a2b839d4b1
[ "MIT" ]
1
2021-04-14T18:11:34.000Z
2021-04-14T18:11:34.000Z
geneticalgorithm2/cache.py
its4avin/geneticalgorithm2
59663ce92a92a0278b5220c32a63a3a2b839d4b1
[ "MIT" ]
null
null
null
geneticalgorithm2/cache.py
its4avin/geneticalgorithm2
59663ce92a92a0278b5220c32a63a3a2b839d4b1
[ "MIT" ]
null
null
null
import numpy as np from functools import lru_cache, wraps #from fastcache import clru_cache def np_lru_cache(*args, **kwargs): """ LRU cache implementation for functions whose FIRST parameter is a numpy array forked from: https://gist.github.com/Susensio/61f4fee01150caaac1e10fc5f005eb75 """ ...
23.719298
97
0.633136
d993489a11a177d4b9b259fdaaa7c8fc02befc02
4,951
py
Python
tests/test_auto_scan_rnn.py
neonhuang/Paddle2ONNX
96640ccbeea1ae4e628dde20b3dbb1c3b4ef2702
[ "Apache-2.0" ]
95
2019-09-27T14:26:59.000Z
2020-12-08T01:20:28.000Z
tests/test_auto_scan_rnn.py
neonhuang/Paddle2ONNX
96640ccbeea1ae4e628dde20b3dbb1c3b4ef2702
[ "Apache-2.0" ]
51
2018-04-04T22:39:30.000Z
2019-08-28T20:19:14.000Z
tests/test_auto_scan_rnn.py
neonhuang/Paddle2ONNX
96640ccbeea1ae4e628dde20b3dbb1c3b4ef2702
[ "Apache-2.0" ]
22
2019-09-03T08:50:04.000Z
2020-12-02T11:05:42.000Z
# Copyright (c) 2021 PaddlePaddle Authors. 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 applic...
29.470238
74
0.576045
d993b7be2006ba21a11c5f625ad4f43b0951e1e1
706
py
Python
project_organizer/migrations/0009_project_manager_from_time_project_manager_until_time.py
c-Door-in/dvmn-project-organizer
6e7ccdf6d0e6adfed83be8babd750d6c6f75a83e
[ "MIT" ]
null
null
null
project_organizer/migrations/0009_project_manager_from_time_project_manager_until_time.py
c-Door-in/dvmn-project-organizer
6e7ccdf6d0e6adfed83be8babd750d6c6f75a83e
[ "MIT" ]
null
null
null
project_organizer/migrations/0009_project_manager_from_time_project_manager_until_time.py
c-Door-in/dvmn-project-organizer
6e7ccdf6d0e6adfed83be8babd750d6c6f75a83e
[ "MIT" ]
null
null
null
# Generated by Django 4.0.1 on 2022-01-28 00:49 from django.db import migrations, models
29.416667
100
0.643059
d996560fd986f9243110269ae81896011add1a35
842
py
Python
tests/test_users_organizations.py
uilianries/bintray-python
ab06edcf33663a5095c6c2121c19fbe2c1409127
[ "MIT" ]
4
2019-07-02T14:37:55.000Z
2022-01-20T13:37:01.000Z
tests/test_users_organizations.py
uilianries/bintray-python
ab06edcf33663a5095c6c2121c19fbe2c1409127
[ "MIT" ]
53
2019-07-02T17:13:47.000Z
2022-03-15T11:55:41.000Z
tests/test_users_organizations.py
uilianries/bintray-python
ab06edcf33663a5095c6c2121c19fbe2c1409127
[ "MIT" ]
null
null
null
from bintray.bintray import Bintray
28.066667
82
0.675772
793f2b848c3758a8f7dae311e7d721594f8e8f09
3,424
py
Python
setup.py
HEmile/problog
576b6fd305f72b12125111c8d4d62cf8a7bbda0f
[ "Apache-2.0" ]
189
2019-05-27T08:20:10.000Z
2022-03-28T09:29:22.000Z
setup.py
HEmile/problog
576b6fd305f72b12125111c8d4d62cf8a7bbda0f
[ "Apache-2.0" ]
60
2019-06-11T15:07:48.000Z
2022-03-25T02:31:23.000Z
setup.py
HEmile/problog
576b6fd305f72b12125111c8d4d62cf8a7bbda0f
[ "Apache-2.0" ]
33
2019-07-03T13:14:24.000Z
2022-02-20T01:07:15.000Z
#! /usr/bin/env python import sys import os version_file = os.path.join( os.path.abspath(os.path.dirname(__file__)), "problog/version.py" ) version = {} with open(version_file) as fp: exec(fp.read(), version) version = version["version"] if __name__ == "__main__" and len(sys.argv) == 1: from problog im...
29.517241
88
0.561332
7940074a7371928505748d90b9c862ee5b2d225e
82
py
Python
haystack/nodes/question_generator/__init__.py
mapapa/haystack
79fdda8a7cf393d774803608a4874f2a6e63cf6f
[ "Apache-2.0" ]
7
2022-01-22T18:58:54.000Z
2022-03-18T17:06:35.000Z
haystack/nodes/question_generator/__init__.py
mapapa/haystack
79fdda8a7cf393d774803608a4874f2a6e63cf6f
[ "Apache-2.0" ]
17
2021-12-08T18:00:58.000Z
2021-12-28T14:03:27.000Z
haystack/nodes/question_generator/__init__.py
mapapa/haystack
79fdda8a7cf393d774803608a4874f2a6e63cf6f
[ "Apache-2.0" ]
1
2022-01-05T15:24:36.000Z
2022-01-05T15:24:36.000Z
from haystack.nodes.question_generator.question_generator import QuestionGenerator
82
82
0.926829
79423433cdcc39041c7fd83b1754e656cc596c82
3,178
py
Python
backend/api/models.py
AndyPaPaLeu/Disfactory
4afc370ae6b0d526891fce2b1fe0b9c687309ed1
[ "MIT" ]
null
null
null
backend/api/models.py
AndyPaPaLeu/Disfactory
4afc370ae6b0d526891fce2b1fe0b9c687309ed1
[ "MIT" ]
null
null
null
backend/api/models.py
AndyPaPaLeu/Disfactory
4afc370ae6b0d526891fce2b1fe0b9c687309ed1
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import uuid from django.conf import settings from django.contrib.gis.db import models from django.contrib.gis.geos import Point from django.contrib.postgres.fields import JSONField
30.854369
89
0.636249
7943f595c674438a1cfec4698c62343f1a8c742b
656
py
Python
infrastructure/crypto_ml/utils/_utils.py
ATCUWgithub/CryptoML
6010c5daf7d985217fa76197b29331457a60a306
[ "MIT" ]
1
2020-02-18T00:38:16.000Z
2020-02-18T00:38:16.000Z
infrastructure/crypto_ml/utils/_utils.py
ATCUWgithub/CryptoML
6010c5daf7d985217fa76197b29331457a60a306
[ "MIT" ]
null
null
null
infrastructure/crypto_ml/utils/_utils.py
ATCUWgithub/CryptoML
6010c5daf7d985217fa76197b29331457a60a306
[ "MIT" ]
1
2020-02-18T00:39:12.000Z
2020-02-18T00:39:12.000Z
import json as _json import datetime as _datetime
29.818182
81
0.660061
79442688528877f19538302cd834c0bc231e8349
959
py
Python
leetcode/two_numbers_sum.py
clnFind/DayDayAlgorithm
5644a666a3d84547d8cf00031fc2e30273cc0e9a
[ "Apache-2.0" ]
null
null
null
leetcode/two_numbers_sum.py
clnFind/DayDayAlgorithm
5644a666a3d84547d8cf00031fc2e30273cc0e9a
[ "Apache-2.0" ]
null
null
null
leetcode/two_numbers_sum.py
clnFind/DayDayAlgorithm
5644a666a3d84547d8cf00031fc2e30273cc0e9a
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- import copy if __name__ == '__main__': l = [3, 4, 10, 2, 7] target = 9 result = Solution().twoSum(l, target) print(result) result1 = Solution().two_sum(l, target) print(result1)
21.795455
55
0.486966
794467ea5227d786240a4dc2c21fda99810bd1c3
1,162
py
Python
bpcs/bpcs_steg_decode.py
BburnN123/bpcs
f53caede7e202ce07b51890f028b9caf73a22937
[ "MIT" ]
20
2017-04-25T21:07:24.000Z
2022-03-30T11:11:47.000Z
bpcs/bpcs_steg_decode.py
BburnN123/bpcs
f53caede7e202ce07b51890f028b9caf73a22937
[ "MIT" ]
4
2016-04-06T01:19:27.000Z
2020-09-26T18:38:29.000Z
bpcs/bpcs_steg_decode.py
BburnN123/bpcs
f53caede7e202ce07b51890f028b9caf73a22937
[ "MIT" ]
12
2017-04-02T23:10:46.000Z
2022-03-21T03:43:55.000Z
import numpy as np from .logger import log from .array_grid import get_next_grid_dims from .act_on_image import ActOnImage from .array_message import write_conjugated_message_grids from .bpcs_steg import arr_bpcs_complexity
33.2
101
0.692771
7946dedb29967a5ff96a8d7cd312b2fd2bc51b15
6,859
py
Python
notebooks/02_crash_severity.py
jennan/crash_prediction
498b59704ed2aca61c78e4eb7c5558abe9edaffc
[ "MIT" ]
3
2020-12-07T04:07:04.000Z
2021-08-19T10:41:08.000Z
notebooks/02_crash_severity.py
jennan/crash_prediction
498b59704ed2aca61c78e4eb7c5558abe9edaffc
[ "MIT" ]
2
2020-12-10T19:12:02.000Z
2020-12-10T19:12:08.000Z
notebooks/02_crash_severity.py
jennan/crash_prediction
498b59704ed2aca61c78e4eb7c5558abe9edaffc
[ "MIT" ]
2
2021-04-14T14:32:39.000Z
2021-12-10T10:36:59.000Z
# # Exploration of the crash severity information in CAS data # # In this notebook, we will explore the severity of crashes, as it will be the # target of our predictive models. from pathlib import Path import numpy as np import pandas as pd import scipy.stats as st import matplotlib.pyplot as plt import seaborn as s...
30.896396
85
0.697478
794737a97c176c9f701f94c89a9d3fa6ea1cba13
601
py
Python
python/cartpole1.py
lusing/mljs
4c708bb8e0759803ed94ead3e9cfadc3a97d6ed8
[ "MIT" ]
null
null
null
python/cartpole1.py
lusing/mljs
4c708bb8e0759803ed94ead3e9cfadc3a97d6ed8
[ "MIT" ]
null
null
null
python/cartpole1.py
lusing/mljs
4c708bb8e0759803ed94ead3e9cfadc3a97d6ed8
[ "MIT" ]
null
null
null
import gym if __name__ == '__main__': cartpole()
28.619048
66
0.577371
794855d07b967464fa463b2ba9dd7683a00f2311
3,466
py
Python
kw3pan/pancakeswap/factory/core/pancakeswap_factory.py
kkristof200/py_web3_pancakeswap
ae9dc7021b7da2365ce675f29f89e103fe44d77f
[ "MIT" ]
6
2021-05-09T12:43:37.000Z
2021-12-07T01:56:02.000Z
kw3pan/pancakeswap/factory/core/pancakeswap_factory.py
kkristof200/py_web3_pancakeswap
ae9dc7021b7da2365ce675f29f89e103fe44d77f
[ "MIT" ]
null
null
null
kw3pan/pancakeswap/factory/core/pancakeswap_factory.py
kkristof200/py_web3_pancakeswap
ae9dc7021b7da2365ce675f29f89e103fe44d77f
[ "MIT" ]
null
null
null
# ------------------------------------------------------------ Imports ----------------------------------------------------------- # # System from typing import Optional # Pip from kw3 import WrappedContract, Web3 from kw3.constants import Constants as KW3Constants # Local from ._abi import pancakeswap_factory_abi ...
28.409836
132
0.467398
794b0eee657db516c725d2d35f15819da5d490ca
17,648
py
Python
functions_for_AirBnB.py
dalpengholic/Udacity_Boston-AirBNB-Data
ef918f4ddf8041a9f646e6fe786730f191746c2b
[ "MIT" ]
null
null
null
functions_for_AirBnB.py
dalpengholic/Udacity_Boston-AirBNB-Data
ef918f4ddf8041a9f646e6fe786730f191746c2b
[ "MIT" ]
null
null
null
functions_for_AirBnB.py
dalpengholic/Udacity_Boston-AirBNB-Data
ef918f4ddf8041a9f646e6fe786730f191746c2b
[ "MIT" ]
null
null
null
# The collection of functions for the Boston AirBnB dataset # import necessary libraries import numpy as np import pandas as pd import matplotlib.pyplot as plt import seaborn as sns from pandas.tseries.holiday import USFederalHolidayCalendar as calendar #To check holidays in the U.S import time import copy def load_b...
54.807453
501
0.716228
794b69e64ae775672890ac0f8ee3c75b24418261
2,898
py
Python
src/junction/markdown/info_panels.py
explody/Junction
700df9385fceda00d6830816606d8854dc9cef7b
[ "MIT" ]
16
2020-04-28T07:03:26.000Z
2022-03-05T14:26:40.000Z
src/junction/markdown/info_panels.py
explody/Junction
700df9385fceda00d6830816606d8854dc9cef7b
[ "MIT" ]
14
2020-03-19T04:32:18.000Z
2021-03-05T23:54:47.000Z
src/junction/markdown/info_panels.py
explody/Junction
700df9385fceda00d6830816606d8854dc9cef7b
[ "MIT" ]
3
2021-01-19T18:39:00.000Z
2022-02-14T23:51:07.000Z
from typing import List, Any from markdown import Markdown from markdown.extensions import Extension from markdown.blockprocessors import BlockProcessor import re import xml.etree.ElementTree as etree def makeExtension(**kwargs: Any) -> InfoPanelExtension: return InfoPanelExtension(**kwargs)
32.931818
103
0.596963
794c1314bf22e9986c1038e23ccfa6cf2ec03b66
5,096
py
Python
ppo.py
ajleite/basic-ppo
e9d823275dda3c376e3e0f7d66e8dfb815b434d8
[ "MIT" ]
2
2020-06-27T11:44:19.000Z
2022-01-11T21:23:01.000Z
ppo.py
ajleite/basic-ppo
e9d823275dda3c376e3e0f7d66e8dfb815b434d8
[ "MIT" ]
null
null
null
ppo.py
ajleite/basic-ppo
e9d823275dda3c376e3e0f7d66e8dfb815b434d8
[ "MIT" ]
null
null
null
#!/usr/bin/python3 # Copyright 2019 Abe Leite # Based on "Proximal Policy Optimization Algorithms", Schulman et al 2017 # For the benefit of my fellow CSCI-B 659 students # While I hope that this code is helpful I will not vouch for its total accuracy; # my primary aim here is to elucidate the ideas from the paper. i...
40.768
113
0.615385
794c7683b545a543ae42b9c3d18137a15b824634
2,620
py
Python
youtube_dl/views.py
Shovon588/api_collection
f348ffa8dc5c4dc69ba4c2a7d145c71e8273e0a2
[ "MIT" ]
null
null
null
youtube_dl/views.py
Shovon588/api_collection
f348ffa8dc5c4dc69ba4c2a7d145c71e8273e0a2
[ "MIT" ]
null
null
null
youtube_dl/views.py
Shovon588/api_collection
f348ffa8dc5c4dc69ba4c2a7d145c71e8273e0a2
[ "MIT" ]
null
null
null
from pytube import YouTube from rest_framework import status from rest_framework.response import Response from rest_framework.views import APIView from .serializers import YoutubeDLSerializer from .utils import make_time, make_size
34.933333
111
0.500763
794d1639433e46b61c5a932940ac1015c7fa9ee0
593
py
Python
tomolab/DataSources/PET/__init__.py
TomographyLab/TomoLab
86b9a5894ef1660d7f4de39f560f1f92024b40f8
[ "Apache-2.0" ]
5
2019-06-01T13:16:00.000Z
2022-03-02T10:21:59.000Z
tomolab/DataSources/PET/__init__.py
TomographyLab/TomoLab
86b9a5894ef1660d7f4de39f560f1f92024b40f8
[ "Apache-2.0" ]
null
null
null
tomolab/DataSources/PET/__init__.py
TomographyLab/TomoLab
86b9a5894ef1660d7f4de39f560f1f92024b40f8
[ "Apache-2.0" ]
1
2019-06-01T13:19:18.000Z
2019-06-01T13:19:18.000Z
# -*- coding: utf-8 -*- # tomolab # Michele Scipioni # Harvard University, Martinos Center for Biomedical Imaging # University of Pisa __all__ = ['convert_listmode_dicom_to_interfile', 'import_interfile_projection', 'export_interfile_projection', 'import_h5f_projection', 'import_interfile_volume...
37.0625
105
0.812816
794d44a2cc74842f8b8d00f81d2ce675f076304a
5,043
py
Python
coot/data/ht100m_dataset.py
Jabb0/coot-videotext
2da20a3f3a50b69677e59869b02cbd72945913d9
[ "Apache-2.0" ]
null
null
null
coot/data/ht100m_dataset.py
Jabb0/coot-videotext
2da20a3f3a50b69677e59869b02cbd72945913d9
[ "Apache-2.0" ]
null
null
null
coot/data/ht100m_dataset.py
Jabb0/coot-videotext
2da20a3f3a50b69677e59869b02cbd72945913d9
[ "Apache-2.0" ]
null
null
null
import json import pandas as pd import numpy as np from typing import Union, List from pathlib import Path from timeit import default_timer as timer from nntrainer import data as nn_data
37.917293
113
0.628594
794d94442dfccd9fb0860ed1722ed3107bbed462
1,244
py
Python
qiime_16s/combine_collapsed_otu_tables.py
lotrus28/TaboCom
b67d66e4c410375a9efa08c5e637301e78e9204b
[ "Apache-2.0" ]
null
null
null
qiime_16s/combine_collapsed_otu_tables.py
lotrus28/TaboCom
b67d66e4c410375a9efa08c5e637301e78e9204b
[ "Apache-2.0" ]
null
null
null
qiime_16s/combine_collapsed_otu_tables.py
lotrus28/TaboCom
b67d66e4c410375a9efa08c5e637301e78e9204b
[ "Apache-2.0" ]
null
null
null
import sys import re import pandas as pd if __name__ == "__main__": main()
30.341463
129
0.639871
794e02a9abb8bfa43732422f20b7e7e3ffdaefeb
10,950
py
Python
bambinocampones/src/bambinocampones/website/migrations/0002_auto__add_field_galeria_foi_importante.py
ProfessionalIT/customers
3dbc1989bb3494fb6de7edad67dc59b7b0385ac3
[ "MIT" ]
null
null
null
bambinocampones/src/bambinocampones/website/migrations/0002_auto__add_field_galeria_foi_importante.py
ProfessionalIT/customers
3dbc1989bb3494fb6de7edad67dc59b7b0385ac3
[ "MIT" ]
1
2015-11-08T11:49:35.000Z
2015-11-08T11:49:43.000Z
bambinocampones/src/bambinocampones/website/migrations/0002_auto__add_field_galeria_foi_importante.py
ProfessionalIT/customers
3dbc1989bb3494fb6de7edad67dc59b7b0385ac3
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from south.utils import datetime_utils as datetime from south.db import db from south.v2 import SchemaMigration from django.db import models
69.303797
172
0.541918
794e90ebf4066373e9e80503d5223bdfcb0a3273
580
py
Python
lab8/point.py
kuzkov/computational-geometry
4411231a8097e618e03b3ef0ad5836e49e837216
[ "MIT" ]
1
2021-04-04T07:34:14.000Z
2021-04-04T07:34:14.000Z
lab8/point.py
kuzkov/computational-geometry
4411231a8097e618e03b3ef0ad5836e49e837216
[ "MIT" ]
null
null
null
lab8/point.py
kuzkov/computational-geometry
4411231a8097e618e03b3ef0ad5836e49e837216
[ "MIT" ]
1
2021-02-18T09:50:10.000Z
2021-02-18T09:50:10.000Z
import math import numpy as np from vector import Vector import segment as segment_lib
25.217391
91
0.631034
794ebda12bc12785e1d67a516bc488f2cac0229b
424
py
Python
setup_s3_bucket.py
chambridge/aws-cost-mgmt-access
994d3ed62601469d2d68a67e6806a3601178328a
[ "MIT" ]
null
null
null
setup_s3_bucket.py
chambridge/aws-cost-mgmt-access
994d3ed62601469d2d68a67e6806a3601178328a
[ "MIT" ]
null
null
null
setup_s3_bucket.py
chambridge/aws-cost-mgmt-access
994d3ed62601469d2d68a67e6806a3601178328a
[ "MIT" ]
null
null
null
import os from cloud.aws_service import AwsService def main(): """Execute script.""" region = os.environ.get('REGION', 'us-east-1') s3_bucket = os.environ.get('S3_BUCKET', 'costmgmtacct1234') aws = AwsService() result = aws.create_bucket(s3_bucket, region) if result: print(f'S3 bucke...
22.315789
63
0.653302
794f5243f54f0804ec162bec691a557c23883c30
773
py
Python
shared/charge_controller_tcp_driver/exemple_driver.py
EDF-Lab/EDF
3ab2d9e1820dfb713bbd54c91ba72d7d32d998f9
[ "MIT" ]
16
2022-02-11T14:49:04.000Z
2022-03-30T07:33:45.000Z
shared/charge_controller_tcp_driver/exemple_driver.py
EDF-Lab/EDF
3ab2d9e1820dfb713bbd54c91ba72d7d32d998f9
[ "MIT" ]
1
2022-02-16T15:23:50.000Z
2022-02-21T15:30:21.000Z
shared/charge_controller_tcp_driver/exemple_driver.py
EDF-Lab/EDF
3ab2d9e1820dfb713bbd54c91ba72d7d32d998f9
[ "MIT" ]
1
2022-03-24T10:52:28.000Z
2022-03-24T10:52:28.000Z
import sys sys.path.append("..") import time from charge_controller_tcp_driver.charge_controller_tcp_client_helper import * if __name__ == '__main__': helper = ChargeControllerTCPClientHelper("169.254.43.3", 12500) time.sleep(3) helper.set_pwm(100) print("PWM:", helper.get_pwm()) #time.sleep(10)...
24.15625
78
0.648124
794f8be8a7920197768cc08897059ca509f8735d
5,312
py
Python
tests/test_intent_classification.py
BatsResearch/zsl-kg
9bc4d4537a0f90ee3bbcefdf90ceae6dbcf48572
[ "Apache-2.0" ]
83
2021-08-30T02:50:37.000Z
2022-02-22T09:37:36.000Z
tests/test_intent_classification.py
BatsResearch/zsl-kg
9bc4d4537a0f90ee3bbcefdf90ceae6dbcf48572
[ "Apache-2.0" ]
2
2021-09-10T08:44:13.000Z
2022-01-23T17:33:35.000Z
tests/test_intent_classification.py
BatsResearch/zsl-kg
9bc4d4537a0f90ee3bbcefdf90ceae6dbcf48572
[ "Apache-2.0" ]
6
2021-09-10T07:09:41.000Z
2021-11-07T14:31:33.000Z
import os from typing import Text import torch import unittest import torch.nn as nn import torch.optim as optim from allennlp.models import Model from allennlp.data.vocabulary import Vocabulary from zsl_kg.class_encoders.auto_gnn import AutoGNN from zsl_kg.example_encoders.text_encoder import TextEncoder from zsl_kg...
31.247059
77
0.573419
79509ae0de663c69b13b3aa40296a01c2a31c785
5,077
py
Python
chase/simulation.py
Motwg/WolfAndSheep-2019
d6c50660368661fddf88dc860caac7236a791beb
[ "MIT" ]
null
null
null
chase/simulation.py
Motwg/WolfAndSheep-2019
d6c50660368661fddf88dc860caac7236a791beb
[ "MIT" ]
null
null
null
chase/simulation.py
Motwg/WolfAndSheep-2019
d6c50660368661fddf88dc860caac7236a791beb
[ "MIT" ]
null
null
null
import csv import json import logging import math import random as ran
32.33758
104
0.554855
79509e0da59087724c7ad32862f4a10871238e6b
4,518
py
Python
anchorgql/runlocal.py
vybenetwork/anchorgql
d8a8a3fa332e0076f20061689951645c0dae1642
[ "MIT" ]
1
2022-02-20T22:05:26.000Z
2022-02-20T22:05:26.000Z
anchorgql/runlocal.py
vybenetwork/anchorgql
d8a8a3fa332e0076f20061689951645c0dae1642
[ "MIT" ]
null
null
null
anchorgql/runlocal.py
vybenetwork/anchorgql
d8a8a3fa332e0076f20061689951645c0dae1642
[ "MIT" ]
null
null
null
import json import subprocess import asyncio from solana.rpc.async_api import AsyncClient from solana.publickey import PublicKey from anchorpy import Program, Provider, Wallet if __name__ == '__main__': main()
36.144
132
0.588092
7950faaf8969b4bfd67614a72bff42f402a632e6
357
py
Python
bookwyrm/activitypub/image.py
mouse-reeve/fedireads
e3471fcc3500747a1b1deaaca662021aae5b08d4
[ "CC0-1.0" ]
270
2020-01-27T06:06:07.000Z
2020-06-21T00:28:18.000Z
bookwyrm/activitypub/image.py
mouse-reeve/fedireads
e3471fcc3500747a1b1deaaca662021aae5b08d4
[ "CC0-1.0" ]
158
2020-02-10T20:36:54.000Z
2020-06-26T17:12:54.000Z
bookwyrm/activitypub/image.py
mouse-reeve/fedireads
e3471fcc3500747a1b1deaaca662021aae5b08d4
[ "CC0-1.0" ]
15
2020-02-13T21:53:33.000Z
2020-06-17T16:52:46.000Z
""" an image, nothing fancy """ from dataclasses import dataclass from .base_activity import ActivityObject
17
41
0.64986
795109620dee96ad8eef48181ff1ae3077d016d2
477
py
Python
TradzQAI/tools/indicators/moving_average_convergence_divergence.py
kkuette/AI_project
1f46cb2536b24cb3716250f1e9705daa76af4f60
[ "Apache-2.0" ]
164
2017-11-24T13:07:04.000Z
2022-03-10T04:54:46.000Z
TradzQAI/tools/indicators/moving_average_convergence_divergence.py
kkuette/AI_project
1f46cb2536b24cb3716250f1e9705daa76af4f60
[ "Apache-2.0" ]
21
2018-09-29T10:27:10.000Z
2019-06-12T07:01:58.000Z
TradzQAI/tools/indicators/moving_average_convergence_divergence.py
kkuette/AI_project
1f46cb2536b24cb3716250f1e9705daa76af4f60
[ "Apache-2.0" ]
49
2018-05-09T17:28:52.000Z
2022-02-27T04:50:45.000Z
from .catch_errors import check_for_period_error from .exponential_moving_average import exponential_moving_average as ema def moving_average_convergence_divergence(data, short_period, long_period): """ Moving Average Convergence Divergence. Formula: EMA(DATA, P1) - EMA(DATA, P2) """ check_for...
29.8125
75
0.761006
795164e9b019d5e0233e60502428b4c2cb401ddf
4,647
py
Python
scripts/scrape_cgc.py
eklipse2009/ZX-Pokemaster
113bf2e242347b475cca9eadbae4f1b67f498466
[ "MIT" ]
8
2018-11-18T00:37:25.000Z
2020-12-06T13:17:53.000Z
scripts/scrape_cgc.py
eklipse2009/ZX-Pokemaster
113bf2e242347b475cca9eadbae4f1b67f498466
[ "MIT" ]
8
2017-08-21T10:07:58.000Z
2020-03-29T18:23:37.000Z
scripts/scrape_cgc.py
eklipse2009/ZX-Pokemaster
113bf2e242347b475cca9eadbae4f1b67f498466
[ "MIT" ]
1
2021-03-04T17:43:36.000Z
2021-03-04T17:43:36.000Z
import os import glob import shutil import zipfile from functions.game_name_functions import * if (os.getcwd().endswith('scripts')): os.chdir('..') from classes.scraper import * if __name__=='__main__': scrape_csscgc()
49.967742
114
0.497095
7951a7941dd6bc9bef1b322015def6a9a9e06453
328
py
Python
app/pit/forms.py
edynox/iis
594200506b641cbac249dc6e95d229bea1edeb28
[ "MIT" ]
null
null
null
app/pit/forms.py
edynox/iis
594200506b641cbac249dc6e95d229bea1edeb28
[ "MIT" ]
null
null
null
app/pit/forms.py
edynox/iis
594200506b641cbac249dc6e95d229bea1edeb28
[ "MIT" ]
null
null
null
from django.forms import ModelForm from ..models import Pit
25.230769
70
0.631098
7952609e9f72568f6207d4ca79537c3b28a117d4
203
py
Python
classy_start/paths.py
mfonism/django-classy-start
70b73e1a836c2ae4c3bae6f53846b07a30a81ac0
[ "MIT" ]
1
2022-01-20T18:48:46.000Z
2022-01-20T18:48:46.000Z
classy_start/paths.py
mfonism/django-classy-start
70b73e1a836c2ae4c3bae6f53846b07a30a81ac0
[ "MIT" ]
8
2020-10-05T15:27:07.000Z
2021-02-16T17:17:54.000Z
classy_start/paths.py
mfonism/django-classy-start
70b73e1a836c2ae4c3bae6f53846b07a30a81ac0
[ "MIT" ]
5
2020-10-05T18:11:44.000Z
2022-01-21T18:33:13.000Z
import pathlib TEMPLATES_DIR = pathlib.Path(__file__).resolve(strict=True).parent / 'conf' APP_TEMPLATES_DIR = TEMPLATES_DIR / 'app_template' PROJECT_TEMPLATES_DIR = TEMPLATES_DIR / 'project_template'
29
75
0.807882
79526a360c29da4c2b5320e1dc30a9a350d4bff9
5,249
py
Python
molar/backend/database/query.py
aspuru-guzik-group/molar
a3e0c337bd8a41c94b2c25831c95048cc7614f04
[ "BSD-3-Clause" ]
4
2021-07-20T18:49:44.000Z
2021-10-15T00:58:12.000Z
molar/backend/database/query.py
aspuru-guzik-group/molar
a3e0c337bd8a41c94b2c25831c95048cc7614f04
[ "BSD-3-Clause" ]
null
null
null
molar/backend/database/query.py
aspuru-guzik-group/molar
a3e0c337bd8a41c94b2c25831c95048cc7614f04
[ "BSD-3-Clause" ]
2
2022-01-07T17:57:42.000Z
2022-01-13T21:00:20.000Z
# std from typing import Any, Dict, List, Optional, Union # external import pkg_resources import sqlalchemy from sqlalchemy.orm import aliased, Session # molar from molar.backend import schemas from molar.backend.database.utils import sqlalchemy_to_dict INFORMATION_QUERY = open( pkg_resources.resource_filename("...
30.34104
87
0.594589
7952969e6d0b68c2f855a88488afaf384b30fc3f
2,377
py
Python
days/day_04/main.py
gkpotter/advent-of-code-2020
76ed77719a8f6396511dabce99d46995946edb01
[ "MIT" ]
null
null
null
days/day_04/main.py
gkpotter/advent-of-code-2020
76ed77719a8f6396511dabce99d46995946edb01
[ "MIT" ]
null
null
null
days/day_04/main.py
gkpotter/advent-of-code-2020
76ed77719a8f6396511dabce99d46995946edb01
[ "MIT" ]
null
null
null
import time import os if __name__ == "__main__": main()
20.491379
76
0.641565
795299febd0881f339bf75a4c01b525d81a4103e
1,089
py
Python
fa_management_server/models/role.py
Msms-NJ/fa_management_server
6787e35a5ac27c27c61fcaa0f508a78f4dc6e8f9
[ "MIT" ]
null
null
null
fa_management_server/models/role.py
Msms-NJ/fa_management_server
6787e35a5ac27c27c61fcaa0f508a78f4dc6e8f9
[ "MIT" ]
null
null
null
fa_management_server/models/role.py
Msms-NJ/fa_management_server
6787e35a5ac27c27c61fcaa0f508a78f4dc6e8f9
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """Role models.""" from dataclasses import dataclass from array import array from .database import Column, Model, SurrogatePK, db, reference_col, relationship from sqlalchemy.dialects.postgresql import ARRAY
26.560976
81
0.673095
79539f171b11d067d372dd7f773b3f28ca1c0d21
5,696
py
Python
caller.py
xopherw/algotrader
6daafe165d7eb4d5d34b2a7051e102f15bcb71dd
[ "MIT" ]
null
null
null
caller.py
xopherw/algotrader
6daafe165d7eb4d5d34b2a7051e102f15bcb71dd
[ "MIT" ]
null
null
null
caller.py
xopherw/algotrader
6daafe165d7eb4d5d34b2a7051e102f15bcb71dd
[ "MIT" ]
1
2022-01-19T14:49:42.000Z
2022-01-19T14:49:42.000Z
import requests, datetime as dt, numpy as np, pandas as pd, pytz from dateutil.relativedelta import relativedelta # Call for raw data (NASDAQ) # Call for current price # Call for order # Call to list bought stocks # Call for stock quantity bought # Call for buying power # Call for calendar (check if holiday) #...
34.107784
119
0.548631
79540db7343cd37c04169f2c2a9534f0c0ea7d5c
1,187
py
Python
code/math_examples.py
rustam-fork/ml-course-uz
e1554d4c69bf0e421aa596d77aab65639df1ff73
[ "MIT" ]
21
2018-01-05T09:24:49.000Z
2021-04-24T03:25:25.000Z
code/math_examples.py
rustam-fork/ml-course-uz
e1554d4c69bf0e421aa596d77aab65639df1ff73
[ "MIT" ]
1
2019-11-11T18:34:53.000Z
2019-11-13T15:56:10.000Z
code/math_examples.py
rustam-fork/ml-course-uz
e1554d4c69bf0e421aa596d77aab65639df1ff73
[ "MIT" ]
13
2018-01-05T10:26:47.000Z
2022-01-25T07:48:33.000Z
import numpy as np import matplotlib.pyplot as plt from mpl_toolkits.mplot3d import Axes3D from matplotlib import cm
27.604651
118
0.57877
79549336a4241631b02e785750cc140cfc8710c5
15,643
py
Python
crawler/crawler_2.py
marxlee/py-tools
4c3699b2a5dd5cb4477a4e339b8f91161cbe3bef
[ "Apache-2.0" ]
null
null
null
crawler/crawler_2.py
marxlee/py-tools
4c3699b2a5dd5cb4477a4e339b8f91161cbe3bef
[ "Apache-2.0" ]
null
null
null
crawler/crawler_2.py
marxlee/py-tools
4c3699b2a5dd5cb4477a4e339b8f91161cbe3bef
[ "Apache-2.0" ]
null
null
null
from urllib import request import random import json # url = r'https://www.baidu.com/s?cl=3&tn=baidutop10&fr=top1000&wd=%E7%9F%B3%E7%94%B0%E7%BA%AF%E4%B8%80%E6%84%9F%E6%9F%93%E6%96%B0%E5%86%A0&rsv_idx=2&rsv_dl=fyb_n_homepage&hisfilter=1' # agent_list = [ 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_1) AppleWebK...
140.927928
6,714
0.915681
7954a7bbe8ccac9a9d76513832ed91b4c1c715ad
3,075
py
Python
tests/onegov/town6/test_views.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
tests/onegov/town6/test_views.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
tests/onegov/town6/test_views.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
import onegov.core import onegov.org from tests.shared import utils
27.212389
74
0.67935
795502273dc48fdf684fe2e0b8c17dbaab75cc3f
8,530
pyw
Python
main.pyw
Niyco/Cipher-tool
a0689daf8e8a087571d447efe6e98c206364316f
[ "MIT" ]
null
null
null
main.pyw
Niyco/Cipher-tool
a0689daf8e8a087571d447efe6e98c206364316f
[ "MIT" ]
null
null
null
main.pyw
Niyco/Cipher-tool
a0689daf8e8a087571d447efe6e98c206364316f
[ "MIT" ]
null
null
null
import tkinter as tk from tkinter import filedialog from Solve_stages import * from Text_stages import * from Analysis_stages import * from Output import * root = tk.Tk() root.title("Cipher program") root.geometry("1500x500") root.state("zoomed") #apparently windows only stage_editor = tk.Frame(root, width=10, height=...
36.609442
149
0.710785
7956dd9954a869adae25776f34d9cfad6f7f2ede
1,912
py
Python
mp/data/pytorch/domain_prediction_dataset_wrapper.py
MECLabTUDA/OOD-Gen
f85ea9106ae1425f18e34c9d82fa3ca4925d8d9e
[ "MIT" ]
null
null
null
mp/data/pytorch/domain_prediction_dataset_wrapper.py
MECLabTUDA/OOD-Gen
f85ea9106ae1425f18e34c9d82fa3ca4925d8d9e
[ "MIT" ]
null
null
null
mp/data/pytorch/domain_prediction_dataset_wrapper.py
MECLabTUDA/OOD-Gen
f85ea9106ae1425f18e34c9d82fa3ca4925d8d9e
[ "MIT" ]
null
null
null
from mp.data.pytorch.pytorch_dataset import PytorchDataset from mp.data.datasets.dataset import Instance import copy import torch
40.680851
97
0.671548
795999b8a086d2a92c7c0d0019a508d781dcdb36
4,889
py
Python
code/visualization/2020/04/0_0_compression_tucker_sparse_facto_select_lr.py
lucgiffon/psm-nets
dec43c26281febf6e5c8b8f42bfb78098ae7101d
[ "MIT" ]
1
2021-07-15T07:05:18.000Z
2021-07-15T07:05:18.000Z
code/visualization/2020/04/0_0_compression_tucker_sparse_facto_select_lr.py
lucgiffon/psm-nets
dec43c26281febf6e5c8b8f42bfb78098ae7101d
[ "MIT" ]
2
2021-07-15T06:12:47.000Z
2021-07-16T10:05:36.000Z
code/visualization/2020/04/0_0_compression_tucker_sparse_facto_select_lr.py
lucgiffon/psm-nets
dec43c26281febf6e5c8b8f42bfb78098ae7101d
[ "MIT" ]
null
null
null
import pathlib import pandas as pd from palmnet.visualization.utils import get_palminized_model_and_df, get_df import matplotlib.pyplot as plt import numpy as np import logging import plotly.graph_objects as go import plotly.express as px from pprint import pprint as pprint mpl_logger = logging.getLogger('matplotlib'...
40.07377
178
0.607895
795b1f096f5aa18037e59346d95e4b832947c2de
8,209
py
Python
spectrocrunch/sources/tests/test_polarization.py
woutdenolf/spectrocrunch
fde4b6e0f462f464ce7af6a942b355d3d8f39f77
[ "MIT" ]
3
2018-04-16T15:51:36.000Z
2019-12-16T11:21:05.000Z
spectrocrunch/sources/tests/test_polarization.py
woutdenolf/spectrocrunch
fde4b6e0f462f464ce7af6a942b355d3d8f39f77
[ "MIT" ]
null
null
null
spectrocrunch/sources/tests/test_polarization.py
woutdenolf/spectrocrunch
fde4b6e0f462f464ce7af6a942b355d3d8f39f77
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import unittest import cmath import numpy as np from scipy import integrate from .. import polarization from ...utils import instance from ...patch import jsonpickle def test_suite(): """Test suite including all test suites""" testSuite = unittest.TestSuite() testSuite.addTest(t...
35.081197
83
0.575466
795b834e229f484b2777e3dde64e6efd9b1ae8d7
1,166
py
Python
AlphaDDA1/Othello/ringbuffer.py
KazuhisaFujita/AlphaDDA
664742567883cf3e08c2c53b3bce3112b8cc0560
[ "MIT" ]
11
2021-11-13T01:43:28.000Z
2021-12-19T06:40:34.000Z
AlphaZero/Othello66/ringbuffer.py
KazuhisaFujita/AlphaDDA
664742567883cf3e08c2c53b3bce3112b8cc0560
[ "MIT" ]
null
null
null
AlphaZero/Othello66/ringbuffer.py
KazuhisaFujita/AlphaDDA
664742567883cf3e08c2c53b3bce3112b8cc0560
[ "MIT" ]
null
null
null
#--------------------------------------- #Since : 2019/04/24 #Update: 2019/07/25 # -*- coding: utf-8 -*- #--------------------------------------- import numpy as np
26.5
53
0.482847
795e54dfa1e363bb6a92f080ec47772f29a13da6
811
py
Python
fastapi_react_admin/__init__.py
sqllq/fastapi-react-admin
a0384061bd36881bcd334edb54eab5ab610ebbfd
[ "MIT" ]
null
null
null
fastapi_react_admin/__init__.py
sqllq/fastapi-react-admin
a0384061bd36881bcd334edb54eab5ab610ebbfd
[ "MIT" ]
null
null
null
fastapi_react_admin/__init__.py
sqllq/fastapi-react-admin
a0384061bd36881bcd334edb54eab5ab610ebbfd
[ "MIT" ]
null
null
null
""" ______ _ _ _____ _ _ _ | ____| | | (_) | __ \ | | /\ | | (_) | |__ __ _ ___| |_ __ _ _ __ _ | |__) |___ ___| |_ / \ __| |_ __ ___ _ _ __ | __/ _` / __| __/ _` | '_ \| | | _ // _ \/ __| __| / /...
45.055556
89
0.393342
795f708e3eddaecd36d179568af03258f48e6ef1
8,202
py
Python
ANOVA.py
AngusNicolson/factorial_experiment_analysis
a499642c38cb22a2ce13b93dda82c622193e7e35
[ "MIT" ]
null
null
null
ANOVA.py
AngusNicolson/factorial_experiment_analysis
a499642c38cb22a2ce13b93dda82c622193e7e35
[ "MIT" ]
null
null
null
ANOVA.py
AngusNicolson/factorial_experiment_analysis
a499642c38cb22a2ce13b93dda82c622193e7e35
[ "MIT" ]
null
null
null
import itertools import numpy as np import matplotlib.pyplot as plt import seaborn as sns import pandas as pd from scipy.stats import f from scipy.stats import norm three_data = pd.read_csv('test_data.csv') three = ANOVA(three_data) #Doesn't work for n < 2 five_data = pd.read_csv('example_data.csv') five_da...
42.278351
157
0.617045
795f95b9ee59eba0d720fd1de7316678421773f4
6,010
py
Python
datmo/core/entity/snapshot.py
datmo/datmo
a456d196006b67ce56af96cb4900682eab747bef
[ "MIT" ]
331
2018-03-30T14:33:59.000Z
2022-01-10T19:43:32.000Z
datmo/core/entity/snapshot.py
KIMS-Github/datmo
a456d196006b67ce56af96cb4900682eab747bef
[ "MIT" ]
274
2018-04-08T17:12:44.000Z
2020-07-29T02:45:22.000Z
datmo/core/entity/snapshot.py
KIMS-Github/datmo
a456d196006b67ce56af96cb4900682eab747bef
[ "MIT" ]
28
2018-05-03T21:57:22.000Z
2020-12-31T04:18:42.000Z
import os from datetime import datetime from datmo.core.util.json_store import JSONStore from datmo.core.util.misc_functions import prettify_datetime, printable_object, format_table
38.280255
95
0.621631
7961d1af5a2c494ba659aefe30c177aba0152b99
3,895
py
Python
ranking/train_LM.py
yzhhome/JDQA
68e1d0259d316b3577a1f2fafa773b50f1885762
[ "MIT" ]
1
2021-12-21T10:50:21.000Z
2021-12-21T10:50:21.000Z
ranking/train_LM.py
kalanile/JDQA
68e1d0259d316b3577a1f2fafa773b50f1885762
[ "MIT" ]
null
null
null
ranking/train_LM.py
kalanile/JDQA
68e1d0259d316b3577a1f2fafa773b50f1885762
[ "MIT" ]
1
2021-12-21T10:50:20.000Z
2021-12-21T10:50:20.000Z
''' @Author: dengzaiyong @Date: 2021-08-21 15:16:08 @LastEditTime: 2021-08-27 19:37:08 @LastEditors: dengzaiyong @Desciption: tfidf, word2vec, fasttext @FilePath: /JDQA/ranking/train_LM.py ''' import os from collections import defaultdict from gensim import models, corpora import config import pandas as pd import jie...
32.458333
95
0.537869
7962461ca47687b7819e6dc00edee38793e1d6d0
4,680
py
Python
dao/ImageDAO.py
NEU-CSYE6225-SEC03/webservice
416cff5e3c8c88ce59333393a933ea88b3b8e2c0
[ "MIT" ]
null
null
null
dao/ImageDAO.py
NEU-CSYE6225-SEC03/webservice
416cff5e3c8c88ce59333393a933ea88b3b8e2c0
[ "MIT" ]
null
null
null
dao/ImageDAO.py
NEU-CSYE6225-SEC03/webservice
416cff5e3c8c88ce59333393a933ea88b3b8e2c0
[ "MIT" ]
1
2022-03-09T23:46:32.000Z
2022-03-09T23:46:32.000Z
import uuid import datetime import pymysql from tool.Config import Config from tool.Logger import Logger
37.142857
115
0.519444
79627b9bf273d6f20eed09dec297c797623cc255
4,773
py
Python
tests/app/dao/test_inbound_shortnumbers_dao.py
GouvQC/notification-api
e865b8b92a9a45c7cee006f427dcf77d71b09d6d
[ "MIT" ]
1
2021-08-13T13:46:04.000Z
2021-08-13T13:46:04.000Z
tests/app/dao/test_inbound_shortnumbers_dao.py
GouvQC/notification-api
e865b8b92a9a45c7cee006f427dcf77d71b09d6d
[ "MIT" ]
null
null
null
tests/app/dao/test_inbound_shortnumbers_dao.py
GouvQC/notification-api
e865b8b92a9a45c7cee006f427dcf77d71b09d6d
[ "MIT" ]
1
2021-09-29T18:25:48.000Z
2021-09-29T18:25:48.000Z
import pytest from sqlalchemy.exc import IntegrityError from app.dao.inbound_shortnumbers_dao import ( dao_get_inbound_shortnumbers, dao_get_inbound_shortnumber_for_service, dao_get_available_inbound_shortnumbers, dao_set_inbound_shortnumber_to_service, dao_set_inbound_shortnumber_active_flag, ...
39.775
125
0.803059
7962e2d4ed65e0f87126ca65657b5d805b1ac6cf
2,363
py
Python
profiletool.py
SimpleProxy/myproject02
13d0c657e2e324af78467eb2edfae2d22669573f
[ "MIT" ]
1
2020-10-21T21:32:42.000Z
2020-10-21T21:32:42.000Z
profiletool.py
kelvesc/myproject02
13d0c657e2e324af78467eb2edfae2d22669573f
[ "MIT" ]
null
null
null
profiletool.py
kelvesc/myproject02
13d0c657e2e324af78467eb2edfae2d22669573f
[ "MIT" ]
null
null
null
#!/bin/python3 # -*- coding: utf-8 -*- # file name: profiletool.py # standart libraries from time import sleep from time import process_time_ns as timer_ns # to call the respective routines import subprocess as ps # local imports import pyfactorial as pyf import mathfactorial as mtf if __name__ == "__main__": ...
22.084112
59
0.611934