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
e2a1706b79dfe59b8505a0173c3194887a5e11ef
613
py
Python
decrypt.py
angelodpadron/asymmetric-encryption-exercise
f204c3cc293db170e79be41a1125c329b07e9c3b
[ "Unlicense" ]
null
null
null
decrypt.py
angelodpadron/asymmetric-encryption-exercise
f204c3cc293db170e79be41a1125c329b07e9c3b
[ "Unlicense" ]
null
null
null
decrypt.py
angelodpadron/asymmetric-encryption-exercise
f204c3cc293db170e79be41a1125c329b07e9c3b
[ "Unlicense" ]
null
null
null
# Seguridad Informatica # ejercicio de encriptacion # Angelo Padron (42487) from Crypto.Cipher import AES from Crypto.Random import get_random_bytes with open('key.bin', 'rb') as k: key = k.read() with open('vector.bin', 'rb') as v: init_vector = v.read() cipher = AES.new(key, AES.MODE_CBC, ...
26.652174
88
0.698206
e2a24d1c616e8da3e37ec79b0f5a7095f04657c1
1,597
py
Python
course/src/service/student_service.py
Cuiqingyao/course-exercise
55c0ac3ba35c99d10f66d18a4401a3fa6b68db5a
[ "Apache-2.0" ]
null
null
null
course/src/service/student_service.py
Cuiqingyao/course-exercise
55c0ac3ba35c99d10f66d18a4401a3fa6b68db5a
[ "Apache-2.0" ]
null
null
null
course/src/service/student_service.py
Cuiqingyao/course-exercise
55c0ac3ba35c99d10f66d18a4401a3fa6b68db5a
[ "Apache-2.0" ]
null
null
null
""" @Time: 2018/5/11 10:57 @Author: qingyaocui """ from course.src.service import admin_service from course.src.models import Student login_stu = None
21.876712
70
0.54665
e2a8050776c6316b74d8dea582a00176c3ee0231
2,328
py
Python
src/pickleData.py
pdedumast/CondylesClassification
59094d46f7c554750ea8bc68ef28c131b32ba0e9
[ "Apache-2.0" ]
null
null
null
src/pickleData.py
pdedumast/CondylesClassification
59094d46f7c554750ea8bc68ef28c131b32ba0e9
[ "Apache-2.0" ]
null
null
null
src/pickleData.py
pdedumast/CondylesClassification
59094d46f7c554750ea8bc68ef28c131b32ba0e9
[ "Apache-2.0" ]
null
null
null
import numpy as np import os from six.moves import cPickle as pickle import neuralnetwork as nn import inputdata # ----------------------------------------------------------------------------- # arser = argparse.ArgumentParser() parser.add_argument('-valid_train', action='store', dest='valid_train', help='Valid/Trai...
34.235294
123
0.698024
e2ae03cc3bf896e5d4e661d346721f2b71e3200c
2,679
py
Python
pysnmp/ALVARION-SMI.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
11
2021-02-02T16:27:16.000Z
2021-08-31T06:22:49.000Z
pysnmp/ALVARION-SMI.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
75
2021-02-24T17:30:31.000Z
2021-12-08T00:01:18.000Z
pysnmp/ALVARION-SMI.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
10
2019-04-30T05:51:36.000Z
2022-02-16T03:33:41.000Z
# # PySNMP MIB module ALVARION-SMI (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/ALVARION-SMI # Produced by pysmi-0.3.4 at Mon Apr 29 17:06:07 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (default, Mar 27 2019,...
95.678571
505
0.784621
e2ae2cf58ef27afd0ff34ba3c1c0b0bbf394a5ea
954
py
Python
setup.py
Sefrwahed/Alfred
0b77ec547fb665ef29fe1a3b7e1c4ad30c31170d
[ "MIT" ]
5
2016-09-06T10:29:24.000Z
2017-02-22T14:07:48.000Z
setup.py
Sefrwahed/Alfred
0b77ec547fb665ef29fe1a3b7e1c4ad30c31170d
[ "MIT" ]
66
2016-09-06T06:40:24.000Z
2022-03-11T23:18:05.000Z
setup.py
Sefrwahed/Alfred
0b77ec547fb665ef29fe1a3b7e1c4ad30c31170d
[ "MIT" ]
3
2016-10-06T15:17:38.000Z
2016-12-04T13:25:53.000Z
from setuptools import setup from setuptools import find_packages required_packages = [ 'beautifulsoup4', 'cssselect', 'duckling', 'feedfinder2', 'feedparser', 'idna', 'jieba3k', 'JPype1', 'Logbook', 'lxml', 'newspaper3k', 'nltk', 'Pillow', 'PyQt5', 'python-d...
19.875
48
0.578616
e2af856c04d6440da75265a16b72d785a5cf429e
2,877
py
Python
openapi_core/schema/schemas/_format.py
gjo/openapi-core
cabe512fb043d3e95b93fbe7a20b8e2d095d7d99
[ "BSD-3-Clause" ]
null
null
null
openapi_core/schema/schemas/_format.py
gjo/openapi-core
cabe512fb043d3e95b93fbe7a20b8e2d095d7d99
[ "BSD-3-Clause" ]
null
null
null
openapi_core/schema/schemas/_format.py
gjo/openapi-core
cabe512fb043d3e95b93fbe7a20b8e2d095d7d99
[ "BSD-3-Clause" ]
null
null
null
from base64 import b64encode, b64decode import binascii from datetime import datetime from uuid import UUID from jsonschema._format import FormatChecker from jsonschema.exceptions import FormatError from six import binary_type, text_type, integer_types DATETIME_HAS_STRICT_RFC3339 = False DATETIME_HAS_ISODATE = False ...
24.801724
72
0.73236
e2b006944c9be3b936078a0b7fb57d47d441942b
602
py
Python
job-service/tests/test_database.py
anaai/anaai
fa49ba107e7c6d32aef46796452308334517a224
[ "MIT" ]
31
2022-01-26T21:47:31.000Z
2022-03-21T12:22:39.000Z
job-service/tests/test_database.py
anaai/anaai
fa49ba107e7c6d32aef46796452308334517a224
[ "MIT" ]
3
2022-01-24T11:16:05.000Z
2022-01-28T15:11:19.000Z
job-service/tests/test_database.py
anaai/anaai
fa49ba107e7c6d32aef46796452308334517a224
[ "MIT" ]
2
2022-02-08T12:07:55.000Z
2022-02-08T19:45:40.000Z
import pytest from sqlalchemy import create_engine from sqlalchemy.orm import sessionmaker from database import Base, get_session SQLALCHEMY_DATABASE_URL = "sqlite:///./test.db" engine = create_engine( SQLALCHEMY_DATABASE_URL, connect_args={"check_same_thread": False} ) TestingSessionLocal = sessionmaker(autocomm...
21.5
82
0.775748
e2b11260dba3afd786662e8f9abbc61d8cd6e587
783
py
Python
holobot/extensions/admin/command_rule_manager_interface.py
rexor12/holobot
89b7b416403d13ccfeee117ef942426b08d3651d
[ "MIT" ]
1
2021-05-24T00:17:46.000Z
2021-05-24T00:17:46.000Z
holobot/extensions/admin/command_rule_manager_interface.py
rexor12/holobot
89b7b416403d13ccfeee117ef942426b08d3651d
[ "MIT" ]
41
2021-03-24T22:50:09.000Z
2021-12-17T12:15:13.000Z
holobot/extensions/admin/command_rule_manager_interface.py
rexor12/holobot
89b7b416403d13ccfeee117ef942426b08d3651d
[ "MIT" ]
null
null
null
from .models import CommandRule from typing import Optional, Tuple
41.210526
179
0.713921
e2b210571dd44806899488b6c2d460b54d183385
349
py
Python
authentik/lib/utils/errors.py
BeryJu/passbook
350f0d836580f4411524614f361a76c4f27b8a2d
[ "MIT" ]
15
2020-01-05T09:09:57.000Z
2020-11-28T05:27:39.000Z
authentik/lib/utils/errors.py
BeryJu/passbook
350f0d836580f4411524614f361a76c4f27b8a2d
[ "MIT" ]
302
2020-01-21T08:03:59.000Z
2020-12-04T05:04:57.000Z
authentik/lib/utils/errors.py
BeryJu/passbook
350f0d836580f4411524614f361a76c4f27b8a2d
[ "MIT" ]
3
2020-03-04T08:21:59.000Z
2020-08-01T20:37:18.000Z
"""error utils""" from traceback import format_tb TRACEBACK_HEADER = "Traceback (most recent call last):\n" def exception_to_string(exc: Exception) -> str: """Convert exception to string stackrace""" # Either use passed original exception or whatever we have return TRACEBACK_HEADER + "".join(format_tb(ex...
31.727273
78
0.73639
e2b2765478729a29e2e169e61178953a74d6c9a5
967
py
Python
atlas/foundations_sdk/src/foundations/helpers/queued.py
DeepLearnI/atlas
8aca652d7e647b4e88530b93e265b536de7055ed
[ "Apache-2.0" ]
296
2020-03-16T19:55:00.000Z
2022-01-10T19:46:05.000Z
atlas/foundations_sdk/src/foundations/helpers/queued.py
DeepLearnI/atlas
8aca652d7e647b4e88530b93e265b536de7055ed
[ "Apache-2.0" ]
57
2020-03-17T11:15:57.000Z
2021-07-10T14:42:27.000Z
atlas/foundations_sdk/src/foundations/helpers/queued.py
DeepLearnI/atlas
8aca652d7e647b4e88530b93e265b536de7055ed
[ "Apache-2.0" ]
38
2020-03-17T21:06:05.000Z
2022-02-08T03:19:34.000Z
_QUEUED_JOBS_KEY = 'projects:global:jobs:queued' _ARCHIVED_JOBS_KEY = 'projects:global:jobs:archived'
37.192308
83
0.761117
e2b36ae713060194509b1b46febdcb1524cbcc54
2,988
py
Python
hypersolver/src/models.py
Juju-botu/diffeqml-research
aa796c87447e5299ec4f25a07fc4d032afb1f63e
[ "Apache-2.0" ]
49
2020-08-06T12:27:05.000Z
2022-03-16T12:32:06.000Z
hypersolver/src/models.py
Juju-botu/diffeqml-research
aa796c87447e5299ec4f25a07fc4d032afb1f63e
[ "Apache-2.0" ]
null
null
null
hypersolver/src/models.py
Juju-botu/diffeqml-research
aa796c87447e5299ec4f25a07fc4d032afb1f63e
[ "Apache-2.0" ]
6
2020-12-07T06:10:40.000Z
2022-03-08T09:23:22.000Z
# Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under t...
42.685714
140
0.615462
e2b445e024df50d0f60436d23653b554afb1890d
4,444
py
Python
acictf/Move ZIG/code.py
benhunter/ctf
3de1a222ea0034ef15eb6b75585b03a6ee37ec37
[ "MIT" ]
null
null
null
acictf/Move ZIG/code.py
benhunter/ctf
3de1a222ea0034ef15eb6b75585b03a6ee37ec37
[ "MIT" ]
1
2022-03-31T22:44:36.000Z
2022-03-31T22:44:36.000Z
acictf/Move ZIG/code.py
benhunter/ctf
3de1a222ea0034ef15eb6b75585b03a6ee37ec37
[ "MIT" ]
null
null
null
#!/usr/bin/python3 import argparse import socket import base64 import binascii # 'argparse' is a very useful library for building python tools that are easy # to use from the command line. It greatly simplifies the input validation # and "usage" prompts which really help when trying to debug your own code. # parser =...
27.263804
86
0.592484
e2b5a5ee8837e56f2ed115f0216ab56eb944e223
222
py
Python
even-then-odd.py
Omi0604/DCU-Einstein-
b35e2657b8e27904035e881021c9bdf9e51675bb
[ "MIT" ]
null
null
null
even-then-odd.py
Omi0604/DCU-Einstein-
b35e2657b8e27904035e881021c9bdf9e51675bb
[ "MIT" ]
null
null
null
even-then-odd.py
Omi0604/DCU-Einstein-
b35e2657b8e27904035e881021c9bdf9e51675bb
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 a = [] b = [] s = input() while s != "end": n = int(s) if n % 2 == 1: a.append(n) else: print(n) s = input() i = 0 while i < len(a): print(a[i]) i = i + 1
11.1
22
0.400901
e2b5e75237ba1c6e2b5426eb208b1203e2003661
2,418
py
Python
sensing/slam/laser_slam/script/laser_transfer_old.py
lnexenl/XTDrone
f0402d44ac3b9a8435cfc67aea769ef659892010
[ "MIT" ]
1
2021-11-25T03:32:19.000Z
2021-11-25T03:32:19.000Z
sensing/slam/laser_slam/script/laser_transfer_old.py
lnexenl/XTDrone
f0402d44ac3b9a8435cfc67aea769ef659892010
[ "MIT" ]
null
null
null
sensing/slam/laser_slam/script/laser_transfer_old.py
lnexenl/XTDrone
f0402d44ac3b9a8435cfc67aea769ef659892010
[ "MIT" ]
null
null
null
import rospy from gazebo_msgs.srv import GetModelState from geometry_msgs.msg import PoseStamped, Pose2D from nav_msgs.msg import Odometry from tf2_ros import TransformListener, Buffer import sys vehicle_type = sys.argv[1] vehicle_id = sys.argv[2] laser_slam_type = sys.argv[3] rospy.init_node(vehicle_type+vehicle_id+'...
35.043478
146
0.702233
e2b8694c4053862ecbc9d41a424c50a797c4b8a1
5,309
py
Python
robot-pushing/push_env.py
kvablack/robosuite
1c5a2723fbe9d39eed5f517ce885d59c40dc9b14
[ "MIT" ]
null
null
null
robot-pushing/push_env.py
kvablack/robosuite
1c5a2723fbe9d39eed5f517ce885d59c40dc9b14
[ "MIT" ]
null
null
null
robot-pushing/push_env.py
kvablack/robosuite
1c5a2723fbe9d39eed5f517ce885d59c40dc9b14
[ "MIT" ]
null
null
null
import itertools import os import shutil import numpy as np import gym from gym import spaces import robosuite from robosuite.controllers import load_controller_config import robosuite.utils.macros as macros import imageio, tqdm from her import HERReplayBuffer from tianshou.data import Batch macros.SIMULATION_TIMES...
34.927632
102
0.563195
e2b86d9c3452142df7bd7020bf19a4c57caca2de
3,520
py
Python
test/weak_agents_tests.py
JakubPetriska/poker-agent-kit
12c28711c91447c708719454d1fbd224fa03189e
[ "MIT" ]
19
2018-09-21T15:27:09.000Z
2022-03-09T03:55:21.000Z
test/weak_agents_tests.py
JakubPetriska/poker-agent-kit
12c28711c91447c708719454d1fbd224fa03189e
[ "MIT" ]
6
2018-05-09T17:09:58.000Z
2019-07-09T15:15:05.000Z
test/weak_agents_tests.py
JakubPetriska/poker-cfr
12c28711c91447c708719454d1fbd224fa03189e
[ "MIT" ]
2
2018-09-11T02:49:57.000Z
2018-11-17T00:29:38.000Z
import unittest import acpc_python_client as acpc from tools.constants import Action from weak_agents.action_tilted_agent import create_agent_strategy, create_agent_strategy_from_trained_strategy, TiltType from tools.io_util import read_strategy_from_file from evaluation.exploitability import Exploitability from tool...
38.681319
120
0.715909
2c33d96452890bf440e51fd5374dc9777c10acd9
870
py
Python
insert_default_data.py
daichi-yoshikawa/flask-boilerplate
2a136eb713a698955dc78ce07364ac333806e6da
[ "MIT" ]
1
2021-01-04T21:25:24.000Z
2021-01-04T21:25:24.000Z
insert_default_data.py
daichi-yoshikawa/flask-boilerplate
2a136eb713a698955dc78ce07364ac333806e6da
[ "MIT" ]
null
null
null
insert_default_data.py
daichi-yoshikawa/flask-boilerplate
2a136eb713a698955dc78ce07364ac333806e6da
[ "MIT" ]
null
null
null
from app import create_app from app.models import db from app.models.role import Role app = create_app() app.app_context().push() DefaultRoles = [ { 'name': 'user', }, { 'name': 'admin', }, ] if __name__ == '__main__': insert_default_roles()
21.75
70
0.618391
2c341aa50389e1550ffc2517e153f369b8431dd7
381
py
Python
15-more-types/mysum.py
SeirousLee/example-code-2e
81ec1669a4b8fd098db44a78a3d551287eec7bc9
[ "MIT" ]
990
2019-03-21T21:17:34.000Z
2022-03-31T00:55:07.000Z
15-more-types/mysum.py
FerMatPy/example-code-2e
980f75032685921e08d5200513a261e83ef5f858
[ "MIT" ]
17
2019-12-18T18:00:05.000Z
2022-01-12T14:23:47.000Z
15-more-types/mysum.py
FerMatPy/example-code-2e
980f75032685921e08d5200513a261e83ef5f858
[ "MIT" ]
276
2019-04-06T12:32:00.000Z
2022-03-29T11:50:47.000Z
import functools import operator from collections.abc import Iterable from typing import overload, Union, TypeVar T = TypeVar('T') S = TypeVar('S') # <1> def sum(it, /, start=0): # <4> return functools.reduce(operator.add, it, start)
25.4
64
0.64042
2c34649f2cd3a47740d5b157c39c34a7ddd8f853
24,987
py
Python
chess/board.py
quadratic-bit/pygame-chess
83e8329a0e294008191770e7ddace52572bf7460
[ "MIT" ]
3
2021-12-22T08:28:21.000Z
2022-01-05T03:44:50.000Z
chess/board.py
quadratic-bit/pygame-chess
83e8329a0e294008191770e7ddace52572bf7460
[ "MIT" ]
null
null
null
chess/board.py
quadratic-bit/pygame-chess
83e8329a0e294008191770e7ddace52572bf7460
[ "MIT" ]
null
null
null
from __future__ import annotations import math from collections import deque from typing import Optional, Callable import numpy as np import pygame from chess.const import PieceType, PieceColour, Piece, CastlingType, Move, \ PIECE_INDICES, init_zobrist, MoveFlags, GameState from chess.utils import load_image, lo...
43.230104
99
0.551407
2c34aaffba06e447010de1f928152d6ddfcf4138
604
py
Python
dataset.py
HimanchalChandra/visual-relationship-detection
74922fbb8a3dc1a15b539a7178acb48256f3ad0c
[ "Apache-2.0" ]
2
2021-04-16T08:33:24.000Z
2021-10-15T12:21:53.000Z
dataset.py
HimanchalChandra/visual-relationship-detection
74922fbb8a3dc1a15b539a7178acb48256f3ad0c
[ "Apache-2.0" ]
null
null
null
dataset.py
HimanchalChandra/visual-relationship-detection
74922fbb8a3dc1a15b539a7178acb48256f3ad0c
[ "Apache-2.0" ]
null
null
null
from datasets.vrd import VrdDataset
30.2
80
0.624172
2c354ca792cf2e4db55a4069cfe0952baf84ba72
4,398
py
Python
conanfile.py
danimtb/conan-msys_installer
d5f9c1cbe6ef71035e25a26414858b55eb2011ff
[ "MIT" ]
null
null
null
conanfile.py
danimtb/conan-msys_installer
d5f9c1cbe6ef71035e25a26414858b55eb2011ff
[ "MIT" ]
null
null
null
conanfile.py
danimtb/conan-msys_installer
d5f9c1cbe6ef71035e25a26414858b55eb2011ff
[ "MIT" ]
null
null
null
from conans import ConanFile, tools import os
67.661538
153
0.64211
2c35def8ee1647a9c2698f2968e607d08e8fd841
192
py
Python
App/urls.py
python1801aclchemy/AXF
64f8d1ceff49a1a9398b06dca8a3bcf9d0c76527
[ "Apache-2.0" ]
null
null
null
App/urls.py
python1801aclchemy/AXF
64f8d1ceff49a1a9398b06dca8a3bcf9d0c76527
[ "Apache-2.0" ]
null
null
null
App/urls.py
python1801aclchemy/AXF
64f8d1ceff49a1a9398b06dca8a3bcf9d0c76527
[ "Apache-2.0" ]
null
null
null
from flask_restful import Api from App.apis import Hello, Home api = Api() api.add_resource(Hello, "/hello/") api.add_resource(Home, "/home/")
17.454545
34
0.71875
2c367c20e8a7ce50a25b938ae8d9670ea04db4e7
1,865
py
Python
thermal01/seek_to_csv/ir/simpleVideoCamera.py
De-Risking-Strategies/SensorFusionPublic
caa6ef7a5ac8991ee12ce2d5ad9b28e2b2b8ed38
[ "MIT" ]
null
null
null
thermal01/seek_to_csv/ir/simpleVideoCamera.py
De-Risking-Strategies/SensorFusionPublic
caa6ef7a5ac8991ee12ce2d5ad9b28e2b2b8ed38
[ "MIT" ]
null
null
null
thermal01/seek_to_csv/ir/simpleVideoCamera.py
De-Risking-Strategies/SensorFusionPublic
caa6ef7a5ac8991ee12ce2d5ad9b28e2b2b8ed38
[ "MIT" ]
null
null
null
import cv2 import numpy as np import numpy as cv #import cv2 as cv from irCamera_SeekMosaic import irCamera_SeekMosaic #from PIL import Image vlcamera = cv2.VideoCapture(0) ircamera = irCamera_SeekMosaic(54339) dsize = (1, 1) #default is no resizing vlret = False irret = False while 1: if vlcamera is not None: ...
30.080645
145
0.689008
2c3962395215ba9ce077e3f3b133d79c166c4278
1,599
py
Python
beerhunter/breweries/models.py
zhukovvlad/beerhunt-project
e841f4946c08275e9d189605ffe9026d6657d63f
[ "MIT" ]
null
null
null
beerhunter/breweries/models.py
zhukovvlad/beerhunt-project
e841f4946c08275e9d189605ffe9026d6657d63f
[ "MIT" ]
null
null
null
beerhunter/breweries/models.py
zhukovvlad/beerhunt-project
e841f4946c08275e9d189605ffe9026d6657d63f
[ "MIT" ]
null
null
null
import os from uuid import uuid4 from django.db import models from django.urls import reverse from django.utils.timezone import now as timezone_now from autoslug import AutoSlugField from model_utils.models import TimeStampedModel from django_countries.fields import CountryField from django.utils.translation import ge...
27.101695
77
0.695435
2c3a335f0f1ca3f07b9332c7a1feb6ba4df8ba4f
433
py
Python
fluent_contents/tests/testapp/content_plugins.py
vinnyrose/django-fluent-contents
7fa1a58a97099d8e2898a2016bf8abe2ea651b02
[ "Apache-2.0" ]
null
null
null
fluent_contents/tests/testapp/content_plugins.py
vinnyrose/django-fluent-contents
7fa1a58a97099d8e2898a2016bf8abe2ea651b02
[ "Apache-2.0" ]
null
null
null
fluent_contents/tests/testapp/content_plugins.py
vinnyrose/django-fluent-contents
7fa1a58a97099d8e2898a2016bf8abe2ea651b02
[ "Apache-2.0" ]
null
null
null
from django.utils.safestring import mark_safe from fluent_contents.extensions import ContentPlugin, plugin_pool from fluent_contents.tests.testapp.models import RawHtmlTestItem
28.866667
65
0.764434
2c3b193f88b8cd9961e5a52478329879cd11b3e2
5,525
py
Python
src/train_DNN/visualize_DNN_few_images.py
StanfordASL/NASA_ULI_Xplane_Simulator
051fa492b650545442c790cf04a8cdb19632bd02
[ "Apache-2.0" ]
4
2021-06-28T19:13:58.000Z
2021-12-10T03:10:38.000Z
src/train_DNN/visualize_DNN_few_images.py
StanfordASL/NASA_ULI_Xplane_Simulator
051fa492b650545442c790cf04a8cdb19632bd02
[ "Apache-2.0" ]
null
null
null
src/train_DNN/visualize_DNN_few_images.py
StanfordASL/NASA_ULI_Xplane_Simulator
051fa492b650545442c790cf04a8cdb19632bd02
[ "Apache-2.0" ]
1
2021-05-25T20:52:11.000Z
2021-05-25T20:52:11.000Z
""" Goal: Visualize images from aircraft camera and load as a pytorch dataloader 0. load images and the corresponding state information in labels.csv 1. test a trained DNN and visualize predictions """ import sys, os import torch import numpy as np import pandas import matplotlib.pyplot as plt # make sure...
35.416667
294
0.662443
2c3ce123c1b3e7bd690b52526495222fa3c1ade0
588
py
Python
release_type.py
sairam4123/GodotReleaseScriptPython
2fd2644b0301f20b89b6772a0c93cec6d012f080
[ "MIT" ]
null
null
null
release_type.py
sairam4123/GodotReleaseScriptPython
2fd2644b0301f20b89b6772a0c93cec6d012f080
[ "MIT" ]
null
null
null
release_type.py
sairam4123/GodotReleaseScriptPython
2fd2644b0301f20b89b6772a0c93cec6d012f080
[ "MIT" ]
null
null
null
from enum import Enum, auto def value_from_key(dict_, value): for key in dict_: if dict_[key] == value: return key return None
18.967742
55
0.620748
2c3dba86ff323fef28c9a80d764d95da5f24f6b8
1,559
py
Python
tests/test_cf_gh_pages_dns_records.py
mondeja/pre-commit-hooks
226a386dd7cd4e7a9d7bb6c7aaff0fea7cdf269b
[ "BSD-3-Clause" ]
null
null
null
tests/test_cf_gh_pages_dns_records.py
mondeja/pre-commit-hooks
226a386dd7cd4e7a9d7bb6c7aaff0fea7cdf269b
[ "BSD-3-Clause" ]
14
2021-06-14T12:25:22.000Z
2022-03-10T20:41:30.000Z
tests/test_cf_gh_pages_dns_records.py
mondeja/pre-commit-hooks
226a386dd7cd4e7a9d7bb6c7aaff0fea7cdf269b
[ "BSD-3-Clause" ]
null
null
null
"""Tests for 'cloudflare-gh-pages-dns' hook.""" import contextlib import io import os import pytest from hooks.cf_gh_pages_dns_records import check_cloudflare_gh_pages_dns_records
25.145161
83
0.594612
2c3ef057fa163c3922fff7982a077b7053fa9b3c
796
py
Python
config.py
rSimulate/Cosmosium
f2489862b9b747458a6be9b884c9de75bd6eb3d2
[ "CC-BY-4.0" ]
18
2015-01-02T05:22:43.000Z
2021-11-12T12:11:12.000Z
config.py
rSimulate/Cosmosium
f2489862b9b747458a6be9b884c9de75bd6eb3d2
[ "CC-BY-4.0" ]
3
2015-07-14T19:11:54.000Z
2018-09-17T19:09:52.000Z
config.py
rSimulate/Cosmosium
f2489862b9b747458a6be9b884c9de75bd6eb3d2
[ "CC-BY-4.0" ]
4
2016-02-24T05:19:07.000Z
2022-02-15T17:36:37.000Z
#!/usr/bin/python2.7 # -*- coding: utf-8 -*- """config.py: Default configuration.""" # Server: SERVER = 'wsgiref' DOMAIN = 'localhost:7099' HOST = 'localhost' PORT = 7099 # Meta: # Note on making it work in localhost: # * Open a terminal, then do: # - sudo gedit /etc/hosts # * Enter the desired localhost alias for...
23.411765
78
0.66206
2c3fb2a119544a5df7baf6e26ee12fd13218d950
5,046
py
Python
devsupport/check_loggers/check_loggers.py
bradh/jmisb
94456903782e08bb7a1909736810f171c2df8f8e
[ "MIT" ]
26
2018-05-31T01:36:10.000Z
2022-03-23T21:40:31.000Z
devsupport/check_loggers/check_loggers.py
bradh/jmisb
94456903782e08bb7a1909736810f171c2df8f8e
[ "MIT" ]
206
2018-05-22T17:56:12.000Z
2022-03-18T10:55:27.000Z
devsupport/check_loggers/check_loggers.py
bradh/jmisb
94456903782e08bb7a1909736810f171c2df8f8e
[ "MIT" ]
10
2019-03-30T00:53:40.000Z
2022-03-16T18:27:22.000Z
import os modules = ['api', 'core'] sourcedirs = [] expectedToHaveNoTest = [ 'api/src/main/java/org/jmisb/api/klv/LdsParser.java', 'api/src/main/java/org/jmisb/api/video/VideoDecodeThread.java', 'api/src/main/java/org/jmisb/api/video/VideoOutput.java', 'api/src/main/java/org/jmisb/api/video/VideoStreamOut...
35.787234
99
0.664883
2c40a38e7ff656eb25531ca19651e9e46f6c26f4
1,154
py
Python
commands/pick.py
DaleNaci/AUC
3a67cc1e5edcbd9440269e36abde0e400bfde515
[ "Apache-2.0" ]
null
null
null
commands/pick.py
DaleNaci/AUC
3a67cc1e5edcbd9440269e36abde0e400bfde515
[ "Apache-2.0" ]
null
null
null
commands/pick.py
DaleNaci/AUC
3a67cc1e5edcbd9440269e36abde0e400bfde515
[ "Apache-2.0" ]
null
null
null
import asyncio import random import discord from discord.ext.commands import Bot from discord.ext import commands from discord import Color, Embed # This command randomly picks between the two non-banned maps. # # !pick [#] [#] # # The two numbers represent the two maps that were not banned from # running the !maps ...
22.627451
77
0.57539
2c42e21de4e45b73eacc95f497a0cac35eca60ff
858
py
Python
edx/quiz/unique_values.py
spradeepv/dive-into-python
ec27d4686b7b007d21f9ba4f85d042be31ee2639
[ "MIT" ]
null
null
null
edx/quiz/unique_values.py
spradeepv/dive-into-python
ec27d4686b7b007d21f9ba4f85d042be31ee2639
[ "MIT" ]
null
null
null
edx/quiz/unique_values.py
spradeepv/dive-into-python
ec27d4686b7b007d21f9ba4f85d042be31ee2639
[ "MIT" ]
null
null
null
""" Write a Python function that returns a list of keys in aDict that map to integer values that are unique (i.e. values appear exactly once in aDict). The list of keys you return should be sorted in increasing order. (If aDict does not contain any unique values, you should return an empty list.) This function takes i...
31.777778
293
0.589744
2c45f39a248d430cb808333a3a7cc174b4b12b63
6,909
py
Python
tests/test_svarog.py
dswistowski/svarog
7432fc6235446f07fe1f6654a877eaadb59eb4f5
[ "MIT" ]
4
2021-02-11T11:53:28.000Z
2022-02-16T10:23:11.000Z
tests/test_svarog.py
dswistowski/svarog
7432fc6235446f07fe1f6654a877eaadb59eb4f5
[ "MIT" ]
65
2020-08-04T10:40:07.000Z
2022-03-29T03:03:50.000Z
tests/test_svarog.py
dswistowski/svarog
7432fc6235446f07fe1f6654a877eaadb59eb4f5
[ "MIT" ]
1
2021-04-18T15:02:16.000Z
2021-04-18T15:02:16.000Z
from dataclasses import dataclass from dataclasses import field from enum import Enum from typing import Any from typing import ClassVar from typing import Literal from typing import Mapping from typing import Optional from typing import Sequence from typing import Union from uuid import UUID import pytest from svaro...
23.906574
87
0.592126
2c463f3690d4e367a42cbb8add865a987c6ac538
16,186
py
Python
vaqc/vaqc.py
PennLINC/vaqc
7bc1f26d74e1c84d282744ed0feebd60a69e1267
[ "MIT" ]
2
2021-05-21T17:46:04.000Z
2021-05-21T20:34:03.000Z
vaqc/vaqc.py
PennLINC/vaqc
7bc1f26d74e1c84d282744ed0feebd60a69e1267
[ "MIT" ]
2
2021-05-20T12:06:10.000Z
2021-09-28T18:38:46.000Z
vaqc/vaqc.py
PennLINC/vaqc
7bc1f26d74e1c84d282744ed0feebd60a69e1267
[ "MIT" ]
null
null
null
import base64 import re import os.path as op from io import BytesIO import matplotlib matplotlib.use('Agg') import matplotlib.pyplot as plt import nibabel as nib import numpy as np from pathlib import Path import pandas as pd import nilearn.image as nim from dipy.segment.mask import median_otsu from nipype.utils.filem...
33.100204
89
0.639256
2c46e20944df9fdddc17ddf37076817334c8143f
1,392
py
Python
apps/workspaces/migrations/0001_initial.py
fylein/fyle-integrations-platform-connector
72f5d364deca8d98516e8486ec0ab377a8ceaccc
[ "MIT" ]
null
null
null
apps/workspaces/migrations/0001_initial.py
fylein/fyle-integrations-platform-connector
72f5d364deca8d98516e8486ec0ab377a8ceaccc
[ "MIT" ]
1
2021-12-08T13:51:14.000Z
2021-12-08T13:51:14.000Z
apps/workspaces/migrations/0001_initial.py
fylein/fyle-integrations-platform-connector
72f5d364deca8d98516e8486ec0ab377a8ceaccc
[ "MIT" ]
null
null
null
# Generated by Django 3.2.8 on 2021-10-11 11:10 from django.db import migrations, models
39.771429
105
0.586207
2c47a06228a2ffaddf789b3313d684521df077e9
3,634
py
Python
django/test-prefect.py
AllenNeuralDynamics/ephys-framework-tests
ee940afeab54e5e25765a903a6b65f2e95be4c48
[ "MIT" ]
null
null
null
django/test-prefect.py
AllenNeuralDynamics/ephys-framework-tests
ee940afeab54e5e25765a903a6b65f2e95be4c48
[ "MIT" ]
3
2022-01-22T04:34:46.000Z
2022-01-26T02:14:21.000Z
django/test-prefect.py
AllenNeuralDynamics/ephys-framework-tests
ee940afeab54e5e25765a903a6b65f2e95be4c48
[ "MIT" ]
2
2022-01-21T22:38:27.000Z
2022-01-25T01:30:09.000Z
import os os.environ['PREFECT__LOGGING__LEVEL'] = 'DEBUG' os.environ['DJANGO_ALLOW_ASYNC_UNSAFE'] = 'true' from prefect import flow, task import numpy as np import pandas as pd from django_pandas.io import read_frame import helpers if __name__ == "__main__": spike_flow(session_id=732592105)
31.877193
124
0.726472
2c47d249a7a2a9897dd96152260a3f88189f02aa
584
py
Python
src/db/models/artist_album.py
jsbecerrab/Loka-prueba-backend
d47250a68e3e28375c0b8e0a6cdf78223b0d12cd
[ "MIT" ]
null
null
null
src/db/models/artist_album.py
jsbecerrab/Loka-prueba-backend
d47250a68e3e28375c0b8e0a6cdf78223b0d12cd
[ "MIT" ]
null
null
null
src/db/models/artist_album.py
jsbecerrab/Loka-prueba-backend
d47250a68e3e28375c0b8e0a6cdf78223b0d12cd
[ "MIT" ]
null
null
null
from sqlalchemy import Column, ForeignKey, Integer, DateTime from sqlalchemy.orm import relationship from ..database import Base
36.5
68
0.75
2c483b1523e5b0f0877e23893de88f8b0f837561
1,099
py
Python
join/api/join_controller.py
andrequeiroz2/api-join
b8e2415ab25ca94a53ae042686c943e7c203d3fd
[ "MIT" ]
null
null
null
join/api/join_controller.py
andrequeiroz2/api-join
b8e2415ab25ca94a53ae042686c943e7c203d3fd
[ "MIT" ]
null
null
null
join/api/join_controller.py
andrequeiroz2/api-join
b8e2415ab25ca94a53ae042686c943e7c203d3fd
[ "MIT" ]
null
null
null
from flask import request from firebase_admin import auth import requests from join import firebase import ast import time
23.891304
118
0.613285
2c488abf9ca04504184d8340dff0f547466c24fd
1,110
py
Python
examples/simple_resource.py
pdyba/lambdalizator
0371b8d3e25249096a9c7e7cf90fc590a99ad536
[ "MIT" ]
3
2020-09-26T11:05:32.000Z
2021-09-25T08:58:10.000Z
examples/simple_resource.py
pdyba/lambdalizator
0371b8d3e25249096a9c7e7cf90fc590a99ad536
[ "MIT" ]
15
2020-09-29T12:10:55.000Z
2021-11-17T10:42:21.000Z
examples/simple_resource.py
pdyba/lambdalizator
0371b8d3e25249096a9c7e7cf90fc590a99ad536
[ "MIT" ]
1
2020-09-26T11:05:38.000Z
2020-09-26T11:05:38.000Z
#!/usr/bin/env python3.8 # coding=utf-8 """ Simple Lambda Handler """ from lbz.dev.server import MyDevServer from lbz.dev.test import Client from lbz.exceptions import LambdaFWException from lbz.resource import Resource from lbz.response import Response from lbz.router import add_route if __name__ == "__main__": ...
26.428571
81
0.691892
2c48f48a4bfa46c1cff327814ecfae6eb5228d01
2,473
py
Python
src/python/packages/loudspeakerconfig/createArrayConfigFromSofa.py
s3a-spatialaudio/VISR
55f6289bc5058d4898106f3520e1a60644ffb3ab
[ "ISC" ]
17
2019-03-12T14:52:22.000Z
2021-11-09T01:16:23.000Z
src/python/packages/loudspeakerconfig/createArrayConfigFromSofa.py
s3a-spatialaudio/VISR
55f6289bc5058d4898106f3520e1a60644ffb3ab
[ "ISC" ]
null
null
null
src/python/packages/loudspeakerconfig/createArrayConfigFromSofa.py
s3a-spatialaudio/VISR
55f6289bc5058d4898106f3520e1a60644ffb3ab
[ "ISC" ]
2
2019-08-11T12:53:07.000Z
2021-06-22T10:08:08.000Z
# -*- coding: utf-8 -*- """ Created on Thu May 3 08:04:22 2018 @author: af5u13 """ import numpy as np import os from .geometry_functions import deg2rad, sph2cart from loudspeakerconfig import createArrayConfigFile def createArrayConfigFromSofa( sofaFile, xmlFile = None, lspLabels = None, twoDSetup = False, virtua...
34.830986
121
0.650627
2c48f750067a643a09b94ad43993a6e0c7fcf3bf
774
py
Python
blog_app/migrations/0019_auto_20200901_0727.py
Rxavio/django-blog
573ff668537465112d355490f19fa8bb8864fde8
[ "MIT" ]
null
null
null
blog_app/migrations/0019_auto_20200901_0727.py
Rxavio/django-blog
573ff668537465112d355490f19fa8bb8864fde8
[ "MIT" ]
null
null
null
blog_app/migrations/0019_auto_20200901_0727.py
Rxavio/django-blog
573ff668537465112d355490f19fa8bb8864fde8
[ "MIT" ]
null
null
null
# Generated by Django 3.0.3 on 2020-09-01 05:27 from django.conf import settings from django.db import migrations, models
29.769231
129
0.630491
2c499a524e96db29eeb7fabf4bede1ea0d293384
837
py
Python
utils.py
avb76/barbershop
975b501b0c53600909910619e248dff627acaa22
[ "MIT" ]
null
null
null
utils.py
avb76/barbershop
975b501b0c53600909910619e248dff627acaa22
[ "MIT" ]
null
null
null
utils.py
avb76/barbershop
975b501b0c53600909910619e248dff627acaa22
[ "MIT" ]
null
null
null
from datetime import datetime, date, timedelta
27.9
97
0.600956
2c4ab657772de4e66a6590e0611b2e99cb5d0d0b
222
py
Python
display/display/handlers/mailbox/read.py
owlsn/h_crawl
c0431ee6484e61d9339553c3350962ea517749d6
[ "MIT" ]
null
null
null
display/display/handlers/mailbox/read.py
owlsn/h_crawl
c0431ee6484e61d9339553c3350962ea517749d6
[ "MIT" ]
8
2021-03-18T20:33:29.000Z
2022-03-11T23:21:04.000Z
display/display/handlers/mailbox/read.py
owlsn/h_crawl
c0431ee6484e61d9339553c3350962ea517749d6
[ "MIT" ]
null
null
null
from display.handlers.base import BaseHandler
37
80
0.725225
2c4ad1bd8ba2570017282e1dff484a7cee430565
194
py
Python
print_service.py
laashub-sua/demo-print
76665ffa6e3bd675ffa111ff6c3aabed9b5ea6ec
[ "Apache-2.0" ]
null
null
null
print_service.py
laashub-sua/demo-print
76665ffa6e3bd675ffa111ff6c3aabed9b5ea6ec
[ "Apache-2.0" ]
null
null
null
print_service.py
laashub-sua/demo-print
76665ffa6e3bd675ffa111ff6c3aabed9b5ea6ec
[ "Apache-2.0" ]
null
null
null
import convert_pdf_2_jpg import printer
21.555556
59
0.757732
2c4cd55f4acf4c8318a07560161cd0c0d72dabcc
12,377
py
Python
plok/tests/test_blog_views.py
jarnoln/plokkeri
0fd136730fcf1e9839ea8b41fd5aec3987e60ada
[ "MIT" ]
null
null
null
plok/tests/test_blog_views.py
jarnoln/plokkeri
0fd136730fcf1e9839ea8b41fd5aec3987e60ada
[ "MIT" ]
2
2020-06-05T17:13:39.000Z
2021-06-01T21:50:01.000Z
plok/tests/test_blog_views.py
jarnoln/plokkeri
0fd136730fcf1e9839ea8b41fd5aec3987e60ada
[ "MIT" ]
null
null
null
# from unittest import skip from django.conf import settings from django.contrib import auth from django.urls import reverse from django.test import TestCase from plok.models import Blog, Article from .ext_test_case import ExtTestCase
49.907258
114
0.671568
2c4d517cd55c0652efb772faaec52634d1b76f2f
376
py
Python
pipeline/reach-es-extractor/refparse/utils/__init__.py
wellcometrust/reach
1aa42c7d8aaf0a91d033af8448a33f37563b0365
[ "MIT" ]
11
2019-11-04T08:24:00.000Z
2021-12-16T23:11:47.000Z
pipeline/reach-es-extractor/refparse/utils/__init__.py
wellcometrust/reach
1aa42c7d8aaf0a91d033af8448a33f37563b0365
[ "MIT" ]
274
2019-10-30T15:37:17.000Z
2021-03-25T16:13:36.000Z
pipeline/reach-es-extractor/refparse/utils/__init__.py
wellcometrust/reference-parser
1aa42c7d8aaf0a91d033af8448a33f37563b0365
[ "MIT" ]
3
2019-11-12T13:38:14.000Z
2020-04-16T07:49:04.000Z
from .parse import structure_reference from .fuzzy_match import FuzzyMatcher from .file_manager import FileManager from .serialiser import serialise_matched_reference, serialise_reference from .exact_match import ExactMatcher __all__ = [ structure_reference, FuzzyMatcher, FileManager, serialise_matched...
25.066667
72
0.81383
2c4e4b261a88afcb890a4de0d0a8d027edd43bd5
8,634
py
Python
web_site/wx/backends/dj.py
Fixdq/dj-deep
6712a722c7f620b76f21b1ebf0b618f42eb4a58a
[ "MIT" ]
null
null
null
web_site/wx/backends/dj.py
Fixdq/dj-deep
6712a722c7f620b76f21b1ebf0b618f42eb4a58a
[ "MIT" ]
null
null
null
web_site/wx/backends/dj.py
Fixdq/dj-deep
6712a722c7f620b76f21b1ebf0b618f42eb4a58a
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on 2014-5-14 django @author: skycrab @sns_userinfo def oauth(request): openid = request.openid """ import json import logging import base64 from functools import wraps from django.conf import settings from django.core.cache import cache from django.shortcuts...
39.788018
120
0.457378
2c4f3ebf2e488446b1771125571b3ec897c6b76a
3,608
py
Python
scripts/build/builders/qpg.py
mrninhvn/matter
c577b233db9d2f3a6f87108a062b1699a40c5169
[ "Apache-2.0" ]
4
2020-09-11T04:32:44.000Z
2022-03-11T09:06:07.000Z
scripts/build/builders/qpg.py
mrninhvn/matter
c577b233db9d2f3a6f87108a062b1699a40c5169
[ "Apache-2.0" ]
6
2022-01-19T03:58:32.000Z
2022-01-21T06:49:15.000Z
scripts/build/builders/qpg.py
mrninhvn/matter
c577b233db9d2f3a6f87108a062b1699a40c5169
[ "Apache-2.0" ]
2
2021-12-02T09:08:00.000Z
2021-12-03T07:31:44.000Z
# Copyright (c) 2021 Project CHIP Authors # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in ...
32.214286
82
0.598947
2c52e367b7b5edf4ce5bca6e592db3079c27edea
946
py
Python
Start.py
mn3711698/singlecoin
63f0154ba17c7a21295b2ff6ef94929cf708a47c
[ "MIT" ]
33
2021-05-14T03:21:53.000Z
2021-11-07T20:27:53.000Z
Start.py
mn3711698/singlecoin
63f0154ba17c7a21295b2ff6ef94929cf708a47c
[ "MIT" ]
2
2021-06-04T15:31:01.000Z
2021-09-25T12:24:02.000Z
Start.py
mn3711698/singlecoin
63f0154ba17c7a21295b2ff6ef94929cf708a47c
[ "MIT" ]
14
2021-05-14T03:34:30.000Z
2021-11-10T12:35:39.000Z
# -*- coding: utf-8 -*- ############################################################################## # AuthorQQ173782910 ############################################################################## import logging from apscheduler.schedulers.background import BlockingScheduler from RunUse import TradeRun format =...
41.130435
85
0.603594
2c543d7182008c5df004271e7ae10351c224c8a5
2,522
py
Python
statinf/ml/activations.py
florianfelice/pleas
c25374f36b781ac726bbbc6da21a559499844594
[ "MIT" ]
6
2019-11-24T01:29:57.000Z
2021-01-28T16:24:54.000Z
statinf/ml/activations.py
florianfelice/pleas
c25374f36b781ac726bbbc6da21a559499844594
[ "MIT" ]
null
null
null
statinf/ml/activations.py
florianfelice/pleas
c25374f36b781ac726bbbc6da21a559499844594
[ "MIT" ]
6
2019-11-22T10:40:37.000Z
2020-10-31T13:59:19.000Z
import numpy as np import jax.numpy as jnp from jax import lax from jax.scipy.special import expit # Default activation functions def sigmoid(x): """Sigmoid activation function. :param x: Input value :type x: :obj:`float` or :obj:`numpy.array` :return: Sigmoid activated value: :math:`sigmoid(x) = \\...
25.474747
130
0.600714
2c55a44f1708355490f6623e534cfe988d374906
45,032
py
Python
tools/mytools/ARIA/src/py/aria/Network.py
fmareuil/Galaxy_test_pasteur
6f84fb0fc52e3e7dd358623b5da5354c66e16a5f
[ "CC-BY-3.0" ]
null
null
null
tools/mytools/ARIA/src/py/aria/Network.py
fmareuil/Galaxy_test_pasteur
6f84fb0fc52e3e7dd358623b5da5354c66e16a5f
[ "CC-BY-3.0" ]
null
null
null
tools/mytools/ARIA/src/py/aria/Network.py
fmareuil/Galaxy_test_pasteur
6f84fb0fc52e3e7dd358623b5da5354c66e16a5f
[ "CC-BY-3.0" ]
null
null
null
""" Authors: Bardiaux Benjamin Institut Pasteur, Paris IBPC, Paris Copyright (C) 2005 Michael Habeck, Wolfgang Rieping and Benjamin Bardiaux No warranty implied or expressed. All rights reserved. $Author: bardiaux $ $Revision: 1.1.1.1 $ $Date: 2010/03/23 1...
30.4476
144
0.504641
2c567e06fe0b4a514046c47e0475e1aaaccbe7e1
482
py
Python
website/wiki/plugins/images/migrations/0002_auto_20151118_1811.py
Bournvita1998/serc
5cdbe0ea89451c56bdb05b3bb6d178aad45c3a74
[ "MIT" ]
null
null
null
website/wiki/plugins/images/migrations/0002_auto_20151118_1811.py
Bournvita1998/serc
5cdbe0ea89451c56bdb05b3bb6d178aad45c3a74
[ "MIT" ]
18
2020-06-05T18:17:40.000Z
2022-03-11T23:25:21.000Z
e/mail-relay/web/wiki/plugins/images/migrations/0002_auto_20151118_1811.py
zhouli121018/nodejsgm
0ccbc8acf61badc812f684dd39253d55c99f08eb
[ "MIT" ]
2
2016-12-13T10:02:39.000Z
2019-05-16T05:58:16.000Z
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import migrations, models
20.956522
46
0.593361
2c56c451f1b5f49b1faacf083b8cc56481d39d30
19,134
bzl
Python
xls/contrib/xlscc/build_rules/xlscc_rules.bzl
RobSpringer/xls
a5521c7ecbd1a071828760cf429d74810f248681
[ "Apache-2.0" ]
null
null
null
xls/contrib/xlscc/build_rules/xlscc_rules.bzl
RobSpringer/xls
a5521c7ecbd1a071828760cf429d74810f248681
[ "Apache-2.0" ]
null
null
null
xls/contrib/xlscc/build_rules/xlscc_rules.bzl
RobSpringer/xls
a5521c7ecbd1a071828760cf429d74810f248681
[ "Apache-2.0" ]
null
null
null
# Copyright 2021 The XLS Authors # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writ...
32.989655
107
0.64064
2c57630305a7b0574563ea2a6b2e98b3d7e35805
3,099
py
Python
Wasteland/api/save_and_load.py
Tonysun1/Explore-Z-Wasteland
77be93f8b7838cd0b6b42e03607ba5662fc25b4c
[ "MIT" ]
1
2018-10-24T03:48:12.000Z
2018-10-24T03:48:12.000Z
Wasteland/api/save_and_load.py
Tonysun-rpi/Explore-Z-Wasteland
77be93f8b7838cd0b6b42e03607ba5662fc25b4c
[ "MIT" ]
null
null
null
Wasteland/api/save_and_load.py
Tonysun-rpi/Explore-Z-Wasteland
77be93f8b7838cd0b6b42e03607ba5662fc25b4c
[ "MIT" ]
1
2018-10-22T19:14:38.000Z
2018-10-22T19:14:38.000Z
from api.class_declaration import Profile, Storage, Base, Bag # TODO: This S/L api uses txt files for the time being, should use databases in the future # questions: what's in the save_file? # save_file is a dictionary contains the following keys: # profile, bag, base, and storage # They are all "class", but bag and...
26.487179
116
0.604389
2c57a4960adf0bbfbabeb5de8f75f2496f33aa17
3,538
py
Python
learning/run_learning.py
lmzintgraf/MultiMAuS
629a64ecb1f2587283611a5cdc15802cfeaf3bf5
[ "MIT" ]
14
2017-08-16T09:57:13.000Z
2022-03-22T06:37:17.000Z
learning/run_learning.py
lmzintgraf/MultiMAuS
629a64ecb1f2587283611a5cdc15802cfeaf3bf5
[ "MIT" ]
null
null
null
learning/run_learning.py
lmzintgraf/MultiMAuS
629a64ecb1f2587283611a5cdc15802cfeaf3bf5
[ "MIT" ]
8
2017-11-21T13:26:06.000Z
2022-03-24T23:54:35.000Z
import numpy as np import os from datetime import datetime from pytz import timezone import matplotlib.pyplot as plt from agent_qlean import QLearnAgent from agent_bandit import BanditAgent from environment import Environment from simulator import parameters from simulator.transaction_model import TransactionModel from...
32.759259
97
0.610232
2c5818a982167d62d1701034e950a7696ca4f6f2
1,484
py
Python
ex095a.py
emerfelippini/Curso_em_video-Aulas_Python
5b1d78b259732bb9bbad27cd30ce91bba77c5ef0
[ "MIT" ]
null
null
null
ex095a.py
emerfelippini/Curso_em_video-Aulas_Python
5b1d78b259732bb9bbad27cd30ce91bba77c5ef0
[ "MIT" ]
null
null
null
ex095a.py
emerfelippini/Curso_em_video-Aulas_Python
5b1d78b259732bb9bbad27cd30ce91bba77c5ef0
[ "MIT" ]
null
null
null
print('\033[1;32mANALISANDO DADOS\033[m') jogador = dict() gols = list() jogadores = list() print('-=' * 50) while True: gols.clear() jogador['nome'] = str(input('Nome do jogador: ')) partidas = int(input('Quantas partidas esse jogador jogou: ')) for cont in range(1, partidas + 1, +1): partida =...
37.1
79
0.58558
2c5c09b1bffec3d9d337a43ebc68475a241f04d3
229
py
Python
farmy/modules/led.py
farmy-maker/farmy-py
e21cc816073e62d34a84e82a8dbc3075cb9c4d47
[ "Apache-2.0" ]
1
2017-09-28T07:44:25.000Z
2017-09-28T07:44:25.000Z
farmy/modules/led.py
farmy-maker/farmy-py
e21cc816073e62d34a84e82a8dbc3075cb9c4d47
[ "Apache-2.0" ]
null
null
null
farmy/modules/led.py
farmy-maker/farmy-py
e21cc816073e62d34a84e82a8dbc3075cb9c4d47
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 from modules.controller import Controller LED_PIN = 23 # pin of led if __name__ == "__main__": controller = Controller(LED_PIN) controller.run(50, 1) print("Led Start for a second with 50% power")
20.818182
50
0.694323
2c5e49aea9d8124efaadeb1e5de150138508a7bb
2,608
py
Python
docs/conf.py
guillaume-wisniewski/elpis
550c350fd0098751b9a502a253bc4066f15c47db
[ "Apache-2.0" ]
118
2018-11-25T22:00:11.000Z
2022-03-18T10:18:33.000Z
docs/conf.py
guillaume-wisniewski/elpis
550c350fd0098751b9a502a253bc4066f15c47db
[ "Apache-2.0" ]
189
2019-01-25T01:37:59.000Z
2022-02-16T02:31:23.000Z
docs/conf.py
guillaume-wisniewski/elpis
550c350fd0098751b9a502a253bc4066f15c47db
[ "Apache-2.0" ]
34
2018-11-28T20:31:38.000Z
2022-01-27T12:20:59.000Z
# Configuration file for the Sphinx documentation builder. # # This file only contains a selection of the most common options. For a full # list see the documentation: # https://www.sphinx-doc.org/en/master/usage/configuration.html # -- Path setup -------------------------------------------------------------- # If ex...
33.435897
87
0.664494
2c5f547ed3f8ba2162e991dbf9194c4f2334bfdf
1,417
py
Python
launchkey/factories/service.py
bgroveben/launchkey-python
c102d76040221059e7b87d96496edb1be3824d3b
[ "MIT" ]
1
2018-12-06T04:42:35.000Z
2018-12-06T04:42:35.000Z
launchkey/factories/service.py
bgroveben/launchkey-python
c102d76040221059e7b87d96496edb1be3824d3b
[ "MIT" ]
1
2018-12-11T22:31:03.000Z
2018-12-11T22:31:03.000Z
launchkey/factories/service.py
bgroveben/launchkey-python
c102d76040221059e7b87d96496edb1be3824d3b
[ "MIT" ]
null
null
null
from .base import BaseFactory from launchkey import LAUNCHKEY_PRODUCTION from launchkey.clients import ServiceClient
48.862069
120
0.714891
2c5f8611dedadefc6301d38ec8d0cd11d6e649b6
6,762
py
Python
mvsnet/mvs_data_generation/utils.py
ubiquity6/MVSNet
7dc026acb019d270e79de7be4a5cfcb33863127f
[ "MIT" ]
7
2019-07-15T08:49:38.000Z
2019-11-30T01:09:12.000Z
mvsnet/mvs_data_generation/utils.py
ubiquity6/MVSNet
7dc026acb019d270e79de7be4a5cfcb33863127f
[ "MIT" ]
10
2019-07-17T00:00:29.000Z
2022-03-11T23:50:36.000Z
mvsnet/mvs_data_generation/utils.py
ubiquity6/MVSNet
7dc026acb019d270e79de7be4a5cfcb33863127f
[ "MIT" ]
3
2019-08-02T09:06:32.000Z
2021-07-06T11:49:55.000Z
#!/usr/bin/env python from __future__ import print_function import os import errno import time import math import re import sys import scipy import imageio import cv2 import numpy as np import json from random import Random from tensorflow.python.lib.io import file_io import logging from mvsnet.utils import setup_log...
29.528384
111
0.629104
2c6117485781c2c31bb5fbf18702c529d404a85e
1,820
py
Python
kite-python/kite_ml/kite/name_encoder/scope_encoder.py
kiteco/kiteco-public
74aaf5b9b0592153b92f7ed982d65e15eea885e3
[ "BSD-3-Clause" ]
17
2022-01-10T11:01:50.000Z
2022-03-25T03:21:08.000Z
kite-python/kite_ml/kite/name_encoder/scope_encoder.py
kiteco/kiteco-public
74aaf5b9b0592153b92f7ed982d65e15eea885e3
[ "BSD-3-Clause" ]
1
2022-01-13T14:28:47.000Z
2022-01-13T14:28:47.000Z
kite-python/kite_ml/kite/name_encoder/scope_encoder.py
kiteco/kiteco-public
74aaf5b9b0592153b92f7ed982d65e15eea885e3
[ "BSD-3-Clause" ]
7
2022-01-07T03:58:10.000Z
2022-03-24T07:38:20.000Z
from typing import Dict, Any import tensorflow as tf from ..utils.segmented_data import SegmentedIndices, SegmentedIndicesFeed from ..graph_encoder.embeddings import NodeEmbeddings
34.339623
104
0.644505
2c620ae2549d713c2a5bbc3e9b322fba02a44587
83,399
py
Python
scripts/app.py
ArtellaPipe/artella-launcher
0da785a6c1ee50ef8da972f5929d344948c635a5
[ "MIT" ]
null
null
null
scripts/app.py
ArtellaPipe/artella-launcher
0da785a6c1ee50ef8da972f5929d344948c635a5
[ "MIT" ]
6
2020-03-08T20:12:52.000Z
2021-12-13T20:29:38.000Z
scripts/app.py
ArtellaPipe/artella-launcher
0da785a6c1ee50ef8da972f5929d344948c635a5
[ "MIT" ]
null
null
null
import os import re import sys import json import time import psutil import shutil import appdirs import zipfile import tarfile import argparse import platform import requests import traceback import contextlib import subprocess import webbrowser import logging.config from pathlib2 import Path from bs4 import Beautiful...
39.394898
120
0.598245
2c626c431b8296a5e75d2393ce09f53461517c55
4,873
py
Python
acme/tf/variable_utils_test.py
wookayin/acme
71b2ab8577a118c103718f034fa62c5ad2c0fd97
[ "Apache-2.0" ]
null
null
null
acme/tf/variable_utils_test.py
wookayin/acme
71b2ab8577a118c103718f034fa62c5ad2c0fd97
[ "Apache-2.0" ]
null
null
null
acme/tf/variable_utils_test.py
wookayin/acme
71b2ab8577a118c103718f034fa62c5ad2c0fd97
[ "Apache-2.0" ]
null
null
null
# Copyright 2018 DeepMind Technologies Limited. 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 ...
36.365672
80
0.732403
2c62b01797bc951466927b86c37a5f651bd8ad8f
1,390
py
Python
auth/views.py
KenMwaura1/zoo_pitch
c83edf6fb53bdfc3739bedbea258f9ffc6f6925c
[ "MIT" ]
2
2021-09-19T04:45:44.000Z
2021-09-19T18:37:16.000Z
auth/views.py
KenMwaura1/zoo_pitch
c83edf6fb53bdfc3739bedbea258f9ffc6f6925c
[ "MIT" ]
null
null
null
auth/views.py
KenMwaura1/zoo_pitch
c83edf6fb53bdfc3739bedbea258f9ffc6f6925c
[ "MIT" ]
null
null
null
from flask import flash, render_template, redirect, request, url_for from flask_login import login_required, login_user, logout_user from . import auth from .forms import UserLoginForm, UserRegForm from app.commands import db from app.models import User from app.send_email import mail_message
35.641026
100
0.709353
2c6431e095521b9b05fd679eb3f519fd1974a1c5
81
py
Python
python/sys_argv.py
mkanenobu/trashbox
c691dbf9a07991fd42304020c8aac58e1e4b9644
[ "WTFPL" ]
2
2020-05-11T13:43:27.000Z
2020-07-31T11:57:19.000Z
python/sys_argv.py
mkanenobu/trashbox
c691dbf9a07991fd42304020c8aac58e1e4b9644
[ "WTFPL" ]
2
2020-09-27T02:35:38.000Z
2021-03-08T08:33:02.000Z
python/sys_argv.py
mkanenobu/trashbox
c691dbf9a07991fd42304020c8aac58e1e4b9644
[ "WTFPL" ]
1
2020-05-11T13:44:04.000Z
2020-05-11T13:44:04.000Z
import sys # varprint var = sys.argv[1] print(type(var)) print(var)
13.5
23
0.753086
2c68876005bb1a85d38b827172c2039fc408b1dc
562
py
Python
app/api/controller/user_controller.py
ChegeBryan/black-bandana
6ef8f62c4e9d4415c6f6f1cc7cd8240ae21e9ce3
[ "MIT" ]
2
2019-01-05T07:01:13.000Z
2019-03-17T08:11:19.000Z
app/api/controller/user_controller.py
ChegeBryan/black-bandana
6ef8f62c4e9d4415c6f6f1cc7cd8240ae21e9ce3
[ "MIT" ]
3
2019-01-23T21:09:04.000Z
2020-11-20T07:40:16.000Z
app/api/controller/user_controller.py
ChegeBryan/black-bandana
6ef8f62c4e9d4415c6f6f1cc7cd8240ae21e9ce3
[ "MIT" ]
null
null
null
""" User api endpoints """ from flask import request from flask_restplus import Resource from ..util.dto import UserDto from ..service.user import save_new_user api = UserDto.api _user = UserDto.user
20.814815
54
0.66726
2c6b0ca51dcc10f9f6f3f231db822aa6a2ba9c93
7,367
py
Python
run.py
danielenricocahall/Rotorcraft-Safety
446b59c23581ec39cfe98db924411c1927af5cc9
[ "MIT" ]
null
null
null
run.py
danielenricocahall/Rotorcraft-Safety
446b59c23581ec39cfe98db924411c1927af5cc9
[ "MIT" ]
null
null
null
run.py
danielenricocahall/Rotorcraft-Safety
446b59c23581ec39cfe98db924411c1927af5cc9
[ "MIT" ]
1
2021-07-26T19:05:09.000Z
2021-07-26T19:05:09.000Z
import os import zipfile from typing import List, Tuple, Dict import numpy as np import pandas as pd import requests import structlog import matplotlib.pyplot as plt from sklearn.ensemble import RandomForestClassifier from sklearn.feature_extraction.text import TfidfVectorizer from sklearn.model_selection import train...
43.85119
113
0.696213
2c6b4180cafccab3b589b0d309ed2441b3687e2d
1,465
py
Python
src/views/send/target_address_form_view.py
Kevingislason/bitcoin_hardware_wallet_ui
226983546c7c8838ca8bc72accdd6adbd8013446
[ "MIT" ]
null
null
null
src/views/send/target_address_form_view.py
Kevingislason/bitcoin_hardware_wallet_ui
226983546c7c8838ca8bc72accdd6adbd8013446
[ "MIT" ]
5
2021-06-02T03:21:46.000Z
2022-03-12T00:55:35.000Z
src/views/send/target_address_form_view.py
Kevingislason/abacus_wallet_bridge
226983546c7c8838ca8bc72accdd6adbd8013446
[ "MIT" ]
null
null
null
from PyQt6.QtCore import * from PyQt6.QtGui import * from PyQt6.QtWidgets import *
44.393939
116
0.763823
2c6c2e152a67cf3da0646f687e2033d8230c0268
518
py
Python
tests/test_overwrite_store.py
schwa-lab/libschwa-python
aebe5b0cf91e55b9e054ecff46a6e74fcd19f490
[ "MIT" ]
5
2015-03-23T17:19:18.000Z
2017-06-07T18:24:50.000Z
tests/test_overwrite_store.py
schwa-lab/libschwa-python
aebe5b0cf91e55b9e054ecff46a6e74fcd19f490
[ "MIT" ]
null
null
null
tests/test_overwrite_store.py
schwa-lab/libschwa-python
aebe5b0cf91e55b9e054ecff46a6e74fcd19f490
[ "MIT" ]
null
null
null
# vim: set et nosi ai ts=2 sts=2 sw=2: # coding: utf-8 from __future__ import absolute_import, print_function, unicode_literals import unittest from schwa import dr
19.185185
73
0.69305
2c6d51fc5d957d883989b9ddb2ae351293818f24
12,645
py
Python
agents_using_gym/dqn/interactive.py
jarbus/multiagent-particle-envs
0811fa35f0e7860940b1d7a5f450541f416ff75c
[ "MIT" ]
8
2019-07-14T22:10:20.000Z
2021-11-12T08:31:41.000Z
agents_using_gym/dqn/interactive.py
jarbus/multiagent-particle-envs
0811fa35f0e7860940b1d7a5f450541f416ff75c
[ "MIT" ]
8
2019-07-14T19:44:05.000Z
2019-08-12T22:28:29.000Z
agents_using_gym/dqn/interactive.py
jarbus/multiagent-particle-envs
0811fa35f0e7860940b1d7a5f450541f416ff75c
[ "MIT" ]
3
2019-07-30T21:38:42.000Z
2020-04-21T13:47:11.000Z
#!/usr/bin/env python import os,sys sys.path.insert(1, os.path.join(sys.path[0], '..')) import argparse from multiagent.environment import MultiAgentEnv import multiagent.scenarios as scenarios import numpy as np import keras.backend.tensorflow_backend as backend from keras.models import Sequential from keras.layers i...
39.88959
191
0.594069
2c6de534fc4e463aad9241c1d824830542522b58
1,101
py
Python
generate/web/render.py
traines-source/climate-change-cartograms
5ade2d7e5985c317a0ce0c7159f7f47d24566fa3
[ "MIT" ]
null
null
null
generate/web/render.py
traines-source/climate-change-cartograms
5ade2d7e5985c317a0ce0c7159f7f47d24566fa3
[ "MIT" ]
null
null
null
generate/web/render.py
traines-source/climate-change-cartograms
5ade2d7e5985c317a0ce0c7159f7f47d24566fa3
[ "MIT" ]
null
null
null
import jinja2 import gettext import markdown from pathlib import Path import sys sys.path.append('../') import utils credits_html = "" with open("credits.md", "r") as file: credits_html = markdown.markdown(file.read()) env = jinja2.Environment( extensions=['jinja2.ext.i18n'], loader=jinja2.FileSystemLoade...
28.973684
88
0.705722
2c6dec3157e23cf5a69e188d1d748411cfc9f657
1,263
py
Python
camper/db/tests/test_registration_form.py
mrtopf/camper
7016539f92202bbea608c6d53ce19097d4ad931d
[ "MIT" ]
13
2016-03-13T02:33:39.000Z
2021-04-01T13:09:12.000Z
camper/db/tests/test_registration_form.py
comlounge/camper
7016539f92202bbea608c6d53ce19097d4ad931d
[ "MIT" ]
122
2016-03-10T09:28:09.000Z
2021-09-07T23:49:05.000Z
camper/db/tests/test_registration_form.py
mrtopf/camper
7016539f92202bbea608c6d53ce19097d4ad931d
[ "MIT" ]
5
2017-01-11T22:00:57.000Z
2020-04-26T14:03:32.000Z
from camper.db import BarcampSchema, Barcamp import datetime
29.372093
56
0.646873
2c7005ff55f4d4af986e8e9ec3ba70d8376e5301
1,487
py
Python
source/payment/models.py
codebam/avrod_python_login
dd4679c372d85c363f1057462c6abc448f8284c9
[ "BSD-3-Clause" ]
null
null
null
source/payment/models.py
codebam/avrod_python_login
dd4679c372d85c363f1057462c6abc448f8284c9
[ "BSD-3-Clause" ]
7
2020-06-05T20:02:11.000Z
2021-09-22T18:05:28.000Z
source/payment/models.py
codebam/avrod_python_login
dd4679c372d85c363f1057462c6abc448f8284c9
[ "BSD-3-Clause" ]
null
null
null
from django.db import models from django.contrib.auth.models import User from django.utils import timezone import datetime
35.404762
118
0.755884
2c70f5ee336b36bda237297efa046d3ee2a8c63f
109
py
Python
job/celery_tasks/demo.py
RockFeng0/flask_demo
cf5631935de628f65c37f32aa7875cecc37f707b
[ "MIT" ]
null
null
null
job/celery_tasks/demo.py
RockFeng0/flask_demo
cf5631935de628f65c37f32aa7875cecc37f707b
[ "MIT" ]
null
null
null
job/celery_tasks/demo.py
RockFeng0/flask_demo
cf5631935de628f65c37f32aa7875cecc37f707b
[ "MIT" ]
1
2020-06-27T14:04:53.000Z
2020-06-27T14:04:53.000Z
#! python3 # -*- encoding: utf-8 -*- from job import celery
9.909091
25
0.587156
2c712ba3bbbd5dbef50c22c0533027e482779dd3
82
py
Python
config.py
outbreakdm/Dead-Matter-Discord-Bot-Player-Counter
c51335afa52aa01fc3ee037e29bbd79665af516a
[ "MIT" ]
null
null
null
config.py
outbreakdm/Dead-Matter-Discord-Bot-Player-Counter
c51335afa52aa01fc3ee037e29bbd79665af516a
[ "MIT" ]
null
null
null
config.py
outbreakdm/Dead-Matter-Discord-Bot-Player-Counter
c51335afa52aa01fc3ee037e29bbd79665af516a
[ "MIT" ]
null
null
null
BOT_TOKEN = "754938335214174210" SERVER_ADDRESS = ("192.154.227.44:7797", 27016)
20.5
47
0.743902
2c720583f4ebee4e37aa78c9477f1e28a11ae206
34,994
py
Python
mykits/mykit.py
mo-han/mo-han-toolbox
1f907d42aea9574c34f10474cc7194dbace6ff02
[ "MIT" ]
24
2019-12-08T03:56:32.000Z
2021-10-02T13:26:37.000Z
mykits/mykit.py
mo-han/mo-han-toolbox
1f907d42aea9574c34f10474cc7194dbace6ff02
[ "MIT" ]
2
2020-04-27T14:20:01.000Z
2020-07-17T06:05:33.000Z
mykits/mykit.py
mo-han/mo-han-toolbox
1f907d42aea9574c34f10474cc7194dbace6ff02
[ "MIT" ]
10
2019-08-06T01:11:28.000Z
2021-07-19T08:45:11.000Z
#!/usr/bin/env python3 # encoding=utf8 """This tool heavily depends on `mylib` package, make sure `mylib` folder is in the same path with this tool.""" import cmd import shlex from argparse import ArgumentParser, REMAINDER from collections import defaultdict from pprint import pprint from send2trash import send2trash...
36.225673
119
0.655884
2c76dcc1048590c3fb8ac98732063ed2e3b0d867
8,282
py
Python
tests/audit_task_test.py
danieldiamond/dbt-sugar
0645722cb52cf9eb685d65b556beb9b4c2d3cbcf
[ "Apache-2.0" ]
94
2020-12-21T20:00:38.000Z
2022-03-31T13:53:00.000Z
tests/audit_task_test.py
danieldiamond/dbt-sugar
0645722cb52cf9eb685d65b556beb9b4c2d3cbcf
[ "Apache-2.0" ]
410
2020-12-19T09:25:59.000Z
2022-03-23T04:20:40.000Z
tests/audit_task_test.py
danieldiamond/dbt-sugar
0645722cb52cf9eb685d65b556beb9b4c2d3cbcf
[ "Apache-2.0" ]
16
2021-03-29T23:11:35.000Z
2022-03-10T11:27:26.000Z
from pathlib import Path from unittest.mock import call import pytest from dbt_sugar.core.clients.dbt import DbtProfile from dbt_sugar.core.config.config import DbtSugarConfig from dbt_sugar.core.flags import FlagParser from dbt_sugar.core.main import parser from dbt_sugar.core.task.audit import AuditTask from dbt_su...
33.128
100
0.546245
2c77779e7a9b8341a00c99ca1a39c874946c475d
624
py
Python
src/15-led-compass/plt_mag_calibration.py
Petrus97/discovery
0d1039a1d3e8eee791a8914399de5a3904102729
[ "Apache-2.0", "CC-BY-4.0", "MIT" ]
null
null
null
src/15-led-compass/plt_mag_calibration.py
Petrus97/discovery
0d1039a1d3e8eee791a8914399de5a3904102729
[ "Apache-2.0", "CC-BY-4.0", "MIT" ]
null
null
null
src/15-led-compass/plt_mag_calibration.py
Petrus97/discovery
0d1039a1d3e8eee791a8914399de5a3904102729
[ "Apache-2.0", "CC-BY-4.0", "MIT" ]
null
null
null
import csv import math import matplotlib.pyplot as plt import numpy as np import seaborn as sns import sys # apply plot style sns.set() x = [] y = [] with open(sys.argv[1], 'r') as f: rows = csv.reader(f, delimiter='\t') for row in rows: # discard rows that are missing data if len(row) != 3 ...
18.352941
62
0.604167
2c7b2b9359b867f746d77215054dee5fb93437cf
4,453
py
Python
altair_transform/utils/_evaljs.py
jacobcolbert/altair-transform
b2c8f64e79c614ff431bd416f89f9c195fbd3f55
[ "MIT" ]
3
2019-11-13T22:12:57.000Z
2019-11-13T22:17:01.000Z
altair_transform/utils/_evaljs.py
jacobcolbert/altair-transform
b2c8f64e79c614ff431bd416f89f9c195fbd3f55
[ "MIT" ]
null
null
null
altair_transform/utils/_evaljs.py
jacobcolbert/altair-transform
b2c8f64e79c614ff431bd416f89f9c195fbd3f55
[ "MIT" ]
null
null
null
"""Functionality to evaluate contents of the ast""" from functools import singledispatch, wraps import operator from typing import Any, Union from altair_transform.utils import ast, Parser __all__ = ['evaljs'] def evaljs(expression: Union[str, ast.Expr], namespace: dict = None) -> Any: """Evaluate a javascript ...
26.040936
76
0.644509
2c7b9d2be0c8aa29b6e9f7fc1a79c1f1342d98ef
453
py
Python
stix/test/common/names_test.py
threatstream/stix11
267dbf390abc0897c691e256396cd1888f423494
[ "BSD-3-Clause" ]
1
2019-07-25T17:19:48.000Z
2019-07-25T17:19:48.000Z
stix/test/common/names_test.py
threatstream/stix11
267dbf390abc0897c691e256396cd1888f423494
[ "BSD-3-Clause" ]
1
2020-04-15T20:45:55.000Z
2020-04-15T20:45:55.000Z
stix/test/common/names_test.py
threatstream/stix11
267dbf390abc0897c691e256396cd1888f423494
[ "BSD-3-Clause" ]
null
null
null
# Copyright (c) 2015, The MITRE Corporation. All rights reserved. # See LICENSE.txt for complete terms. import unittest from stix.test import EntityTestCase from stix.common import Names if __name__ == '__main__': unittest.main()
21.571429
86
0.675497
2c7ba2c92a4eb8e4a79941d83d6a59aa5150b61d
94
py
Python
server.py
yyc0309/watsonwork-github-issues
3377ff0fa87e5323165c7b2db9e9a3fc5da6ca50
[ "Apache-2.0" ]
null
null
null
server.py
yyc0309/watsonwork-github-issues
3377ff0fa87e5323165c7b2db9e9a3fc5da6ca50
[ "Apache-2.0" ]
7
2018-03-05T21:14:04.000Z
2018-03-09T23:16:37.000Z
server.py
yyc0309/watsonwork-github-issues
3377ff0fa87e5323165c7b2db9e9a3fc5da6ca50
[ "Apache-2.0" ]
null
null
null
from github_app import app app.run(host='0.0.0.0', port=int(app.config['PORT']), debug=True)
23.5
65
0.702128
2c7d5fed6f3d1c89d2afce10eef18d6e78236d68
4,855
py
Python
old_lambda/lambda_function/operations.py
jdkandersson/cloudformation-kubernetes
8bd14379540bd2d122283c74166883e375cb348e
[ "Apache-2.0" ]
null
null
null
old_lambda/lambda_function/operations.py
jdkandersson/cloudformation-kubernetes
8bd14379540bd2d122283c74166883e375cb348e
[ "Apache-2.0" ]
null
null
null
old_lambda/lambda_function/operations.py
jdkandersson/cloudformation-kubernetes
8bd14379540bd2d122283c74166883e375cb348e
[ "Apache-2.0" ]
null
null
null
"""Kubernetes operations.""" import typing import kubernetes from . import exceptions from . import helpers def create(*, body: typing.Dict[str, typing.Any]) -> CreateReturn: """ Execute create command. Assume body has at least metadata with a name. Args: body: The body to create. R...
29.969136
86
0.664264
2c7e0f2d39a195aca2df95f3b0bcc74ec5c6e19b
660
py
Python
opennem/exporter/aws.py
tourdownunder/opennem
deec3e2079db9d9d84171010fd0c239170d1e7ce
[ "MIT" ]
null
null
null
opennem/exporter/aws.py
tourdownunder/opennem
deec3e2079db9d9d84171010fd0c239170d1e7ce
[ "MIT" ]
1
2020-09-06T04:17:59.000Z
2020-09-06T04:17:59.000Z
opennem/exporter/aws.py
tourdownunder/opennem
deec3e2079db9d9d84171010fd0c239170d1e7ce
[ "MIT" ]
null
null
null
import logging import os from smart_open import open logger = logging.getLogger(__name__) S3_EXPORT_DEFAULT_BUCKET = "s3://data.opennem.org.au/v3/" UPLOAD_ARGS = { "ContentType": "application/json", } def write_to_s3(file_path: str, data: str) -> int: """ Write data to an s3 path """ s3_sa...
20.625
68
0.663636
2c7f7b1f3c0b5c1795a18f512daba60361ae64d1
2,549
py
Python
Samples/NLPSample.py
Klangoo/MagnetApiClient.Python
adf36c0e8b094a282827801b1ccf0aaf56165b3f
[ "MIT" ]
null
null
null
Samples/NLPSample.py
Klangoo/MagnetApiClient.Python
adf36c0e8b094a282827801b1ccf0aaf56165b3f
[ "MIT" ]
null
null
null
Samples/NLPSample.py
Klangoo/MagnetApiClient.Python
adf36c0e8b094a282827801b1ccf0aaf56165b3f
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -- coding: UTF-8 -- """ Magnet API NLP Sample Copyright 2018, Klangoo Inc. """ from klangooclient.MagnetAPIClient import MagnetAPIClient ENDPOINT = 'https://nlp.klangoo.com/Service.svc' CALK = 'enter your calk here' SECRET_KEY = 'enter your secret key here' client = MagnetAPIClient(END...
44.719298
245
0.721852
2c81da921e001da3b682a7f055c4752416bfa10f
38,211
py
Python
bin/validate.py
sooshie/security-content
3007fd2ac4743041f0e37151b17780ca8f094bbf
[ "Apache-2.0" ]
null
null
null
bin/validate.py
sooshie/security-content
3007fd2ac4743041f0e37151b17780ca8f094bbf
[ "Apache-2.0" ]
null
null
null
bin/validate.py
sooshie/security-content
3007fd2ac4743041f0e37151b17780ca8f094bbf
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python ''' Validates Manifest file under the security-content repo for correctness. ''' import glob import json import jsonschema import yaml import sys import argparse from os import path def validate_investigation_content(investigation, investigation_uuids, macros, lookups): '''Validate that ...
39.886221
141
0.630211
2c86d57953ceb081ab010190a1fd6e152927560a
8,829
py
Python
py/sandbox.python.py
schaabs/sandbox
ee8abb2a8220ca841b9b5a2579c25d100a43eb4f
[ "MIT" ]
null
null
null
py/sandbox.python.py
schaabs/sandbox
ee8abb2a8220ca841b9b5a2579c25d100a43eb4f
[ "MIT" ]
2
2018-02-01T19:58:53.000Z
2018-02-23T00:50:18.000Z
py/sandbox.python.py
schaabs/sandbox
ee8abb2a8220ca841b9b5a2579c25d100a43eb4f
[ "MIT" ]
1
2020-12-16T06:35:51.000Z
2020-12-16T06:35:51.000Z
import hashlib import shutil import io import gzip import platform import os import struct import json import mmap if __name__ == '__main__': with open('libcoreclr.so', 'rb') as corefile: print '' print '' print(ElfFile.unpack_from(corefile, 0)) ...
30.030612
164
0.557028
2c88f77b721f16bdbc0e12c2be60eceb519ef175
800
py
Python
log_redaction_cli.py
kalaboster/strings
a0c7160af0715599721afce92e739283a556f80c
[ "Apache-2.0" ]
1
2019-09-25T04:34:25.000Z
2019-09-25T04:34:25.000Z
log_redaction_cli.py
kalaboster/strings
a0c7160af0715599721afce92e739283a556f80c
[ "Apache-2.0" ]
null
null
null
log_redaction_cli.py
kalaboster/strings
a0c7160af0715599721afce92e739283a556f80c
[ "Apache-2.0" ]
null
null
null
"""log_redaction_cli Usage: log_redaction_cli.py --tarfile <tarfile> --working-dir <working-dir> --output-dir <output-dir> log_redaction_cli.py (-h | --help) log_redaction_cli.py --version Options: -h --help Pass in a string: example command: python log_redaction_cli.py --tarfile "test/files/test_output.t...
33.333333
214
0.7325
2c89750a4b91a2c0339c7248c5dedfa016626923
15,323
py
Python
seq2seq.py
CAMeL-Lab/gender-reinflection
006de318a326c8ea67d610adb30d3e0a8d6e59db
[ "MIT" ]
4
2020-12-02T12:44:26.000Z
2021-07-19T01:42:33.000Z
seq2seq.py
CAMeL-Lab/gender-reinflection
006de318a326c8ea67d610adb30d3e0a8d6e59db
[ "MIT" ]
null
null
null
seq2seq.py
CAMeL-Lab/gender-reinflection
006de318a326c8ea67d610adb30d3e0a8d6e59db
[ "MIT" ]
null
null
null
import torch import torch.nn as nn from torch.nn.utils.rnn import pack_padded_sequence, pad_packed_sequence import numpy as np import torch.nn.functional as F from attention import AdditiveAttention
47.003067
114
0.607714
2c8a508e2824287924c65736a4d078672526b373
2,319
py
Python
cowkit/qcow_header.py
Junzki/cowkit
ae1f6915322b0a5b7a67b7c50111265221e443f8
[ "BSD-3-Clause" ]
null
null
null
cowkit/qcow_header.py
Junzki/cowkit
ae1f6915322b0a5b7a67b7c50111265221e443f8
[ "BSD-3-Clause" ]
null
null
null
cowkit/qcow_header.py
Junzki/cowkit
ae1f6915322b0a5b7a67b7c50111265221e443f8
[ "BSD-3-Clause" ]
null
null
null
# -*- coding:utf-8 -*- """ https://people.gnome.org/~markmc/qcow-image-format.html """ import dataclasses import struct from typing import List QCOW_HEADER_SIZE = 72 QCOW_MAGIC = b'QFI\xfb' QCOW_HEADER_GROUP_META = 8 QCOW_HEADER_GROUP_BACKING_FILE = 12 QCOW_HEADER_GROUP_SIZE = 16 QCOW_HEADER_GROUP_L1 = 12 QCOW_HEAD...
25.483516
84
0.68564
2c8bdc178f22c281aadc681cca47bedaa07c3f51
1,901
py
Python
faddr/cli.py
kido5217/faddr
116c789ac3985cc3f461203e249d8043dcb73428
[ "MIT" ]
1
2022-03-10T17:52:13.000Z
2022-03-10T17:52:13.000Z
faddr/cli.py
kido5217/faddr
116c789ac3985cc3f461203e249d8043dcb73428
[ "MIT" ]
45
2021-08-08T15:23:42.000Z
2022-03-28T20:23:57.000Z
faddr/cli.py
kido5217/faddr
116c789ac3985cc3f461203e249d8043dcb73428
[ "MIT" ]
1
2021-10-22T00:46:35.000Z
2021-10-22T00:46:35.000Z
"""CLI entry points of faddr.""" import argparse import pathlib import sys from faddr import logger from faddr.config import load_config from faddr.rancid import RancidDir from faddr.database import Database def parse_args_db(): """Parsing CMD keys.""" parser = argparse.ArgumentParser(argument_default=argpa...
23.7625
78
0.611783
2c8eec45cea80bea499216987a3e5392f86cf4b2
3,100
py
Python
features/FeatureExtract.py
wangqiuli0102/Class-Aware-Multi-Window-Adversarial-Lung-Nodule-Synthesis
91a88ae2b9012f2bfb915d6f67ac613796b9b006
[ "MIT" ]
null
null
null
features/FeatureExtract.py
wangqiuli0102/Class-Aware-Multi-Window-Adversarial-Lung-Nodule-Synthesis
91a88ae2b9012f2bfb915d6f67ac613796b9b006
[ "MIT" ]
null
null
null
features/FeatureExtract.py
wangqiuli0102/Class-Aware-Multi-Window-Adversarial-Lung-Nodule-Synthesis
91a88ae2b9012f2bfb915d6f67ac613796b9b006
[ "MIT" ]
null
null
null
''' Created by Wang Qiuli 2020/5/23 ''' import cv2 import numpy as np import matplotlib.pyplot as plt import slic import rgb_gr from PIL import Image from skimage import io, color from skimage import data, filters def hist(img): ''' return histgram values 1 * 128 ''' img = truncate_hu(img) ...
21.985816
105
0.604194
2c8f7f3827a6fb08393ec353db2c4a501d7810bc
2,713
py
Python
examples/plotting/plotting_real_indexed_by_date.py
krzpiesiewicz/timeseries
4f72de240256bc0d42cf3a24d0f7b0fd902c525f
[ "MIT" ]
1
2021-08-20T10:17:18.000Z
2021-08-20T10:17:18.000Z
examples/plotting/plotting_real_indexed_by_date.py
krzpiesiewicz/timeseries
4f72de240256bc0d42cf3a24d0f7b0fd902c525f
[ "MIT" ]
null
null
null
examples/plotting/plotting_real_indexed_by_date.py
krzpiesiewicz/timeseries
4f72de240256bc0d42cf3a24d0f7b0fd902c525f
[ "MIT" ]
null
null
null
import pandas as pd from matplotlib import dates as mdates from timeseries import plot_ts from timeseries.plotting import ax_settings if __name__ == "__main__": main()
29.172043
78
0.613712
2c8fca97374d20495bf9555941161fa0c29cbc21
12,120
py
Python
tests/tck/conftest.py
tom-chensf/nebula-graph
0f2f0d02879bfd2421815a26158e8fa030f19b62
[ "Apache-2.0" ]
null
null
null
tests/tck/conftest.py
tom-chensf/nebula-graph
0f2f0d02879bfd2421815a26158e8fa030f19b62
[ "Apache-2.0" ]
null
null
null
tests/tck/conftest.py
tom-chensf/nebula-graph
0f2f0d02879bfd2421815a26158e8fa030f19b62
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2020 vesoft inc. All rights reserved. # # This source code is licensed under Apache 2.0 License, # attached with Common Clause Condition 1.0, found in the LICENSES directory. import functools import os import time import pytest import io import csv import re from nebula2.common.ttypes import Value fro...
34.927954
135
0.670792
2c8fefcc1cd7b12e6c4a468980052f0c5a0a2783
1,469
py
Python
evaluation.py
rdedo099/HonoursProject2021
94c61218371587fd4dd9dacaa5e8f0ce7f44875d
[ "MIT" ]
null
null
null
evaluation.py
rdedo099/HonoursProject2021
94c61218371587fd4dd9dacaa5e8f0ce7f44875d
[ "MIT" ]
null
null
null
evaluation.py
rdedo099/HonoursProject2021
94c61218371587fd4dd9dacaa5e8f0ce7f44875d
[ "MIT" ]
null
null
null
from sklearn import metrics from prettytable import PrettyTable
39.702703
203
0.733833
2c90e3fa15866252a877bac9622e4131af1c6c34
1,585
py
Python
db_model.py
jose-marquez89/cryptovest
e0f04e3cbaa01f2de969ed17462052b23328fff8
[ "MIT" ]
null
null
null
db_model.py
jose-marquez89/cryptovest
e0f04e3cbaa01f2de969ed17462052b23328fff8
[ "MIT" ]
null
null
null
db_model.py
jose-marquez89/cryptovest
e0f04e3cbaa01f2de969ed17462052b23328fff8
[ "MIT" ]
null
null
null
import os import pymysql from dotenv import load_dotenv from sqlalchemy import create_engine from sqlalchemy.ext.declarative import declarative_base from sqlalchemy.orm import relationship from sqlalchemy import Column, BigInteger, String, Float, ForeignKey def load_engine(): """Create the database engine""" ...
28.303571
103
0.694006
2c9245c4a0d3d6fcf05085c489277adf12ebc45d
1,982
py
Python
P2_studies/theta_plus/Analysis/Mapping/match_mcl_to_leiden.py
chackoge/ERNIE_Plus
7e480c47a69fc2f736ac7fb55ece35dbff919938
[ "MIT" ]
6
2017-09-26T23:45:52.000Z
2021-10-18T22:58:38.000Z
P2_studies/theta_plus/Analysis/Mapping/match_mcl_to_leiden.py
NETESOLUTIONS/ERNIE
454518f28b39a6f37ad8dde4f3be15d4dccc6f61
[ "MIT" ]
null
null
null
P2_studies/theta_plus/Analysis/Mapping/match_mcl_to_leiden.py
NETESOLUTIONS/ERNIE
454518f28b39a6f37ad8dde4f3be15d4dccc6f61
[ "MIT" ]
9
2017-11-22T13:42:32.000Z
2021-05-16T17:58:03.000Z
import pandas as pd import mapping_module as mm import multiprocessing as mp from sqlalchemy import create_engine from sys import argv user_name = argv[1] password = argv[2] data_type = argv[3] start_year = int(argv[4]) end_year = int(argv[5]) leiden_input = argv[6] #quality_func_Res --> CPM_R001 schema = argv[7] root...
33.59322
99
0.734107
2c92b91a8b5d0fb491d1a97154a0a3c157ee8485
7,454
py
Python
MeanMotionResonance/NbodySimulationUtilities.py
shadden/mean_motion_resonance
53ab8d83cca22ad6aef8d57cd0aaa06d60b45699
[ "MIT" ]
3
2020-04-16T22:23:36.000Z
2020-04-17T03:01:29.000Z
MeanMotionResonance/NbodySimulationUtilities.py
shadden/mean_motion_resonance
53ab8d83cca22ad6aef8d57cd0aaa06d60b45699
[ "MIT" ]
null
null
null
MeanMotionResonance/NbodySimulationUtilities.py
shadden/mean_motion_resonance
53ab8d83cca22ad6aef8d57cd0aaa06d60b45699
[ "MIT" ]
null
null
null
import numpy as np import rebound as rb import reboundx as rbx def get_simarchive_integration_results(sa): """ Read a simulation archive and store orbital elements as arrays in a dictionary. Arguments --------- sa : rebound.SimulationArchive The simulation archive to read. Can also be a ...
30.801653
86
0.581433
2c946430ac7cc2f5fb807e83c2c1fb3114304f71
3,432
py
Python
spyder/plugins/editor/panels/indentationguides.py
suokunlong/spyder
2d5d450fdcef232fb7f38e7fefc27f0e7f704c9a
[ "MIT" ]
3
2019-09-27T21:00:00.000Z
2021-03-07T23:28:32.000Z
spyder/plugins/editor/panels/indentationguides.py
jastema/spyder
0ef48ea227c53f57556cd8002087dc404b0108b0
[ "MIT" ]
3
2021-10-06T22:49:31.000Z
2022-02-27T12:28:12.000Z
spyder/plugins/editor/panels/indentationguides.py
jastema/spyder
0ef48ea227c53f57556cd8002087dc404b0108b0
[ "MIT" ]
2
2021-04-30T01:18:22.000Z
2021-09-19T06:31:42.000Z
# -*- coding: utf-8 -*- # # Copyright Spyder Project Contributors # Licensed under the terms of the MIT License # (see spyder/__init__.py for details) """ This module contains the indentation guide panel. """ # Third party imports from qtpy.QtCore import Qt from qtpy.QtGui import QPainter, QColor from intervaltree im...
38.561798
79
0.638695
2c962f2954bff9d6229947f6de4e0917ddfe1361
576
py
Python
lib/DuplicatePairDetector.py
hapsby/deepAPIRevisited
826c0893dd828380d13e58ac9739a49525e7f001
[ "MIT" ]
null
null
null
lib/DuplicatePairDetector.py
hapsby/deepAPIRevisited
826c0893dd828380d13e58ac9739a49525e7f001
[ "MIT" ]
null
null
null
lib/DuplicatePairDetector.py
hapsby/deepAPIRevisited
826c0893dd828380d13e58ac9739a49525e7f001
[ "MIT" ]
null
null
null
import hashlib
26.181818
66
0.651042
2c96a2b2cfda5dc84f1a1edca8acac30d65af637
1,713
py
Python
examples/regression/survival_prediction/extract_patch_feature.py
Starrah/THU-SuperMoon
1e6b8ccc207f789fb8426806251cc3d4e1cca35a
[ "MIT" ]
64
2020-06-06T03:30:37.000Z
2022-03-22T06:57:00.000Z
examples/regression/survival_prediction/extract_patch_feature.py
iMoonLab/HyperG_package
9394cb5ca31d28df715039ba6e8b4dd852192f71
[ "MIT" ]
2
2021-01-19T22:01:33.000Z
2022-03-08T05:37:22.000Z
examples/regression/survival_prediction/extract_patch_feature.py
iMoonLab/HyperG_package
9394cb5ca31d28df715039ba6e8b4dd852192f71
[ "MIT" ]
12
2020-06-18T06:35:57.000Z
2022-03-28T09:23:08.000Z
import openslide import torch from tqdm import tqdm from torch.utils.data import Dataset, DataLoader from torchvision import transforms from SuperMoon.models import ResNetFeature
31.145455
94
0.635727