hexsha
stringlengths
40
40
size
int64
4
1.02M
ext
stringclasses
8 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
209
max_stars_repo_name
stringlengths
5
121
max_stars_repo_head_hexsha
stringlengths
40
40
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
4
209
max_issues_repo_name
stringlengths
5
121
max_issues_repo_head_hexsha
stringlengths
40
40
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
4
209
max_forks_repo_name
stringlengths
5
121
max_forks_repo_head_hexsha
stringlengths
40
40
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
4
1.02M
avg_line_length
float64
1.07
66.1k
max_line_length
int64
4
266k
alphanum_fraction
float64
0.01
1
ef8338301bf4a8c902d734869bf2defe280e094b
329
py
Python
Python/matplotlibtest/python8.py
InnoFang/misc-code
561d0c5b02f81ad4978a97f7897b6c4c7b3b56ce
[ "MIT" ]
4
2018-01-02T07:06:49.000Z
2018-11-22T13:45:39.000Z
Python/matplotlibtest/python8.py
InnoFang/playground
2998c024a5834be3712734f43fe945f83c64f989
[ "Apache-2.0" ]
1
2020-02-20T10:08:58.000Z
2020-02-20T10:08:58.000Z
Python/matplotlibtest/python8.py
InnoFang/playground
2998c024a5834be3712734f43fe945f83c64f989
[ "Apache-2.0" ]
null
null
null
""" 8. scatter 散点数据 """ import matplotlib.pyplot as plt import numpy as np n = 1024 # 中位数是0,方差是1,一共n个数 X = np.random.normal(0, 1, n) Y = np.random.normal(0, 1, n) T = np.arctan2(Y,X) # for color value plt.scatter(X, Y, s=75, c=T, alpha=0.5) plt.xlim((-1.5, 1.5)) plt.ylim((-1.5, 1.5)) plt.xticks(()) plt.yticks(()) pl...
16.45
39
0.6231
ac6b73553d8e63b483bc69db0197001e0a450649
4,640
py
Python
src/cowrie/commands/ssh.py
BA7JCM/cowrie
830b3860e75eebcc608c21a2a15543178d73fa1e
[ "BSD-3-Clause" ]
null
null
null
src/cowrie/commands/ssh.py
BA7JCM/cowrie
830b3860e75eebcc608c21a2a15543178d73fa1e
[ "BSD-3-Clause" ]
null
null
null
src/cowrie/commands/ssh.py
BA7JCM/cowrie
830b3860e75eebcc608c21a2a15543178d73fa1e
[ "BSD-3-Clause" ]
null
null
null
# Copyright (c) 2009 Upi Tamminen <desaster@gmail.com> # See the COPYRIGHT file for more information from __future__ import annotations import getopt import hashlib import re import socket import time from typing import Callable from twisted.internet import reactor # type: ignore from twisted.python import log fr...
29.935484
88
0.501509
52c9ca7ee2b4d837919810e36bdacc842120d2da
199
py
Python
SerialTest.py
M-Hayhurst/Python-Arduino-LED-Cube
cc4ca965b612fb9442fa0434f4b892a3464c268d
[ "MIT" ]
null
null
null
SerialTest.py
M-Hayhurst/Python-Arduino-LED-Cube
cc4ca965b612fb9442fa0434f4b892a3464c268d
[ "MIT" ]
null
null
null
SerialTest.py
M-Hayhurst/Python-Arduino-LED-Cube
cc4ca965b612fb9442fa0434f4b892a3464c268d
[ "MIT" ]
null
null
null
import serial from time import sleep ser = serial.Serial('COM3', 9600, timeout=1) print(ser.name) sleep(0.1) ser.write(b'G') sleep(0.1) msg = ser.read() print('Arduino replied: %s'%msg)
16.583333
45
0.658291
53a35742b5c92fde13da4940b08aad6a2402da1f
9,951
py
Python
entmax/activations.py
hadaev8/entmax
27757622e4ed267a27324e4160e45dd972a26b03
[ "MIT" ]
298
2019-06-27T10:25:27.000Z
2022-03-17T19:01:19.000Z
entmax/activations.py
hadaev8/entmax
27757622e4ed267a27324e4160e45dd972a26b03
[ "MIT" ]
20
2019-08-06T19:07:13.000Z
2022-03-30T09:37:25.000Z
entmax/activations.py
hadaev8/entmax
27757622e4ed267a27324e4160e45dd972a26b03
[ "MIT" ]
29
2019-08-05T20:48:07.000Z
2022-03-30T09:07:54.000Z
""" An implementation of entmax (Peters et al., 2019). See https://arxiv.org/pdf/1905.05702 for detailed description. This builds on previous work with sparsemax (Martins & Astudillo, 2016). See https://arxiv.org/pdf/1602.02068. """ # Author: Ben Peters # Author: Vlad Niculae <vlad@vene.ro> # License: MIT import tor...
31.590476
81
0.615918
5f6bc947116750e76536688aa1fae33101a3915c
345
py
Python
graspologic/layouts/classes.py
tliu68/graspologic
d1cf7678bc63ab9769828a82a90f66bf1dfa0eff
[ "MIT" ]
148
2020-09-15T21:45:51.000Z
2022-03-24T17:33:01.000Z
graspologic/layouts/classes.py
tliu68/graspologic
d1cf7678bc63ab9769828a82a90f66bf1dfa0eff
[ "MIT" ]
533
2020-09-15T18:49:00.000Z
2022-03-25T12:16:58.000Z
graspologic/layouts/classes.py
tliu68/graspologic
d1cf7678bc63ab9769828a82a90f66bf1dfa0eff
[ "MIT" ]
74
2020-09-16T02:24:23.000Z
2022-03-20T20:09:38.000Z
# Copyright (c) Microsoft Corporation. # Licensed under the MIT license. from typing import NamedTuple __all__ = [ "NodePosition", ] class NodePosition(NamedTuple): """ Contains the node id, 2d coordinates, size, and community id for a node. """ node_id: str x: float y: float size: ...
16.428571
76
0.657971
e61692e5190435a1e42cb71d71aa8f2a606553b7
7,960
py
Python
utils/metrics.py
RoboticsIIITH/small-obstacle-segmentation
b3ab57b7eb572c1c003a768a5639af6455e8176c
[ "MIT" ]
1
2021-12-17T11:32:49.000Z
2021-12-17T11:32:49.000Z
utils/metrics.py
RoboticsIIITH/small-obstacle-segmentation
b3ab57b7eb572c1c003a768a5639af6455e8176c
[ "MIT" ]
null
null
null
utils/metrics.py
RoboticsIIITH/small-obstacle-segmentation
b3ab57b7eb572c1c003a768a5639af6455e8176c
[ "MIT" ]
null
null
null
import numpy as np import scipy.ndimage as ndi class Evaluator(object): def __init__(self, num_class): self.num_class = num_class self.confusion_matrix = np.zeros((self.num_class,) * 2) self.idr_count = 0 def Pixel_Accuracy(self): Acc = np.diag(self.confusion_matrix).sum() / s...
41.030928
121
0.579648
36d8dc5525f6fa45e9bd56adae7ed6206478188e
303
py
Python
smartcross/__init__.py
opendilab/DI-smartcross
362c6c6dcfd2e1f59d3e7c955ffe2d9d1b13d8d2
[ "Apache-2.0" ]
49
2021-12-28T08:10:44.000Z
2022-01-24T04:09:41.000Z
smartcross/__init__.py
opendilab/DI-smartcross
362c6c6dcfd2e1f59d3e7c955ffe2d9d1b13d8d2
[ "Apache-2.0" ]
null
null
null
smartcross/__init__.py
opendilab/DI-smartcross
362c6c6dcfd2e1f59d3e7c955ffe2d9d1b13d8d2
[ "Apache-2.0" ]
null
null
null
import os __TITLE__ = 'DI-smartcross' __VERSION__ = 'v0.1.0' __DESCRIPTION__ = 'OpenDILab Decision Intelligence Traffic Crossing Signal Control Platform' __AUTHOR__ = "OpenDILab Contributors" __AUTHOR_EMAIL__ = "opendilab.contact@gmail.com" __version__ = __VERSION__ SIMULATORS = ['sumo', 'cityflow']
27.545455
92
0.788779
46fdf4d1a50140f8a61fae3327d270a3dabbd213
136
py
Python
integration-testing/rnode_testing/random.py
Jake-Gillberg/rchain
100caa9c2762c5cb90e7222f48ec3f1b4d7da9a7
[ "Apache-2.0" ]
1
2019-09-19T06:37:39.000Z
2019-09-19T06:37:39.000Z
integration-testing/rnode_testing/random.py
Jake-Gillberg/rchain
100caa9c2762c5cb90e7222f48ec3f1b4d7da9a7
[ "Apache-2.0" ]
null
null
null
integration-testing/rnode_testing/random.py
Jake-Gillberg/rchain
100caa9c2762c5cb90e7222f48ec3f1b4d7da9a7
[ "Apache-2.0" ]
1
2018-09-28T23:03:48.000Z
2018-09-28T23:03:48.000Z
import random import string def random_string(length): return ''.join(random.choice(string.ascii_letters) for m in range(length))
19.428571
78
0.764706
b577df8c8cc3070c5f6a1aecaf0629f015fee010
6,878
py
Python
test/functional/rpc_getblockstats.py
joynicoferna/carpinchocoin
987284642d94e26c2b3b884c14846068d124a24a
[ "MIT" ]
null
null
null
test/functional/rpc_getblockstats.py
joynicoferna/carpinchocoin
987284642d94e26c2b3b884c14846068d124a24a
[ "MIT" ]
null
null
null
test/functional/rpc_getblockstats.py
joynicoferna/carpinchocoin
987284642d94e26c2b3b884c14846068d124a24a
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) 2017-2019 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. # # Test getblockstats rpc call # from test_framework.test_framework import CARPINCHOTestFramework from t...
41.433735
121
0.624309
ca8f45c94a05238f56ef1971b2f795f83845ad44
894
py
Python
corehq/blobs/migrations/0003_big_content.py
kkrampa/commcare-hq
d64d7cad98b240325ad669ccc7effb07721b4d44
[ "BSD-3-Clause" ]
1
2020-05-05T13:10:01.000Z
2020-05-05T13:10:01.000Z
corehq/blobs/migrations/0003_big_content.py
kkrampa/commcare-hq
d64d7cad98b240325ad669ccc7effb07721b4d44
[ "BSD-3-Clause" ]
1
2019-12-09T14:00:14.000Z
2019-12-09T14:00:14.000Z
corehq/blobs/migrations/0003_big_content.py
MaciejChoromanski/commcare-hq
fd7f65362d56d73b75a2c20d2afeabbc70876867
[ "BSD-3-Clause" ]
5
2015-11-30T13:12:45.000Z
2019-07-01T19:27:07.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.11.14 on 2018-09-12 15:29 from __future__ import absolute_import from __future__ import unicode_literals from django.db import migrations, models from corehq.sql_db.operations import RawSQLMigration from corehq.sql_db.migrations import partitioned migrator = RawSQLMigr...
27.9375
72
0.663311
cc8b74b9909571210bd797151452836a0212940e
29,214
py
Python
desktop/core/src/desktop/settings.py
zhang-jc/hue
f3bc13756522eaba2138cfd5e34ae2e6b9777bb7
[ "Apache-2.0" ]
null
null
null
desktop/core/src/desktop/settings.py
zhang-jc/hue
f3bc13756522eaba2138cfd5e34ae2e6b9777bb7
[ "Apache-2.0" ]
null
null
null
desktop/core/src/desktop/settings.py
zhang-jc/hue
f3bc13756522eaba2138cfd5e34ae2e6b9777bb7
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # Licensed to Cloudera, Inc. under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. Cloudera, Inc. licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you ma...
36.609023
130
0.727425
ace7cc128e46f98e47c7a3f13587e4a9dd6d785e
252
py
Python
setup.py
cgosmeyer/record
90f514b719bb1d23da21bd20d076271192245c85
[ "MIT" ]
null
null
null
setup.py
cgosmeyer/record
90f514b719bb1d23da21bd20d076271192245c85
[ "MIT" ]
null
null
null
setup.py
cgosmeyer/record
90f514b719bb1d23da21bd20d076271192245c85
[ "MIT" ]
null
null
null
#!/usr/bin/env python from setuptools import find_packages from setuptools import setup setup(name = 'record_imports', author = 'C.M. Gosmeyer', url = 'https://github.com/cgosmeyer/record_imports', packages = find_packages(), )
25.2
58
0.686508
5e83d3967c0dd23c48445dd1695e35275205d323
318
py
Python
auth/app.py
datawire/envoy-canary
44d08d87ca6475e04c68fdd1f46c12fe7a769311
[ "Apache-2.0" ]
2
2017-10-20T12:01:11.000Z
2019-01-14T07:39:08.000Z
auth/app.py
datawire/envoy-canary
44d08d87ca6475e04c68fdd1f46c12fe7a769311
[ "Apache-2.0" ]
null
null
null
auth/app.py
datawire/envoy-canary
44d08d87ca6475e04c68fdd1f46c12fe7a769311
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python from flask import Flask, g, jsonify, redirect, request app = Flask(__name__) @app.route('/ambassador/auth', methods=['POST']) def root(): return ('', 200) @app.route('/health') def health(): return ("OK", 200) if __name__ == "__main__": app.run(host="0.0.0.0", port=8080, debug=True)
19.875
54
0.638365
eae6434df10d88a49b4e056a79e92fbfc0b29ace
8,944
py
Python
fishfood/old_but_dont_delete/before optimizations for flash detection/lib_blob.py
fberlinger/BlueSwarm
cde3de25be68ba728ff31c26a7c7fbe3ff1aa6d8
[ "MIT" ]
1
2021-10-04T20:44:01.000Z
2021-10-04T20:44:01.000Z
fishfood/old_but_dont_delete/before optimizations for flash detection/lib_blob.py
fberlinger/BlueSwarm
cde3de25be68ba728ff31c26a7c7fbe3ff1aa6d8
[ "MIT" ]
null
null
null
fishfood/old_but_dont_delete/before optimizations for flash detection/lib_blob.py
fberlinger/BlueSwarm
cde3de25be68ba728ff31c26a7c7fbe3ff1aa6d8
[ "MIT" ]
null
null
null
"""Blob library, a component of vision library. Detects LED pixels in images and returns centroids of individual LEDs. """ import RPi.GPIO as GPIO from lib_utils import * import numpy as np class Blob(): """Blob takes in a camera image and returns the pixel coordinates (mn) of individual LED blobs. Blo...
40.107623
369
0.589557
57f49609d0356ee7616e21c303e1516c4d7abe33
2,836
py
Python
RL/Great-Lunar-Lander-with-DQN/model/ddqn.py
kiritowu/Deep-Learning
baaec55a3b32f9e02ca3d834f1408f6736bdc170
[ "MIT" ]
3
2021-12-16T02:26:10.000Z
2022-02-23T16:52:34.000Z
RL/Great-Lunar-Lander-with-DQN/model/ddqn.py
kiritowu/Deep-Learning
baaec55a3b32f9e02ca3d834f1408f6736bdc170
[ "MIT" ]
null
null
null
RL/Great-Lunar-Lander-with-DQN/model/ddqn.py
kiritowu/Deep-Learning
baaec55a3b32f9e02ca3d834f1408f6736bdc170
[ "MIT" ]
null
null
null
import gym import numpy as np import tensorflow as tf from typing import List, Optional from utils import ReplayBuffer from .dqn import DQN class DoubleDQN(DQN): def __init__( self, env: gym.Env, lr: float, gamma: float, epsilon: float, epsilon_decay: float, ...
36.358974
104
0.626234
86c2a9610696d95253ae2fbbda2ac30c3cbd59ed
543
py
Python
guestfs_generator/guestfs_generator/utils.py
mawillcockson/utilities
217357a44451a4bf27dbbcf82b0df4e8b68b384e
[ "MIT" ]
null
null
null
guestfs_generator/guestfs_generator/utils.py
mawillcockson/utilities
217357a44451a4bf27dbbcf82b0df4e8b68b384e
[ "MIT" ]
3
2021-01-21T09:30:25.000Z
2021-01-28T05:44:00.000Z
guestfs_generator/guestfs_generator/utils.py
mawillcockson/utilities
217357a44451a4bf27dbbcf82b0df4e8b68b384e
[ "MIT" ]
null
null
null
""" utility functions """ from functools import update_wrapper # pylint: disable=c-extension-no-member import orjson orjson_loads = orjson.loads def orjson_dumps(value, *, default) -> str: """ orjson.dumps returns bytes this needs to be decoded into a str in order to match built-in json.dumps f...
21.72
91
0.732965
22dd28432a663a22dbbe3f416cd9401d2f655a0d
1,961
py
Python
Artificial Intelligence/A* Search/PacMan-DFS.py
aibenStunner/HackerRank
de223f2b1fa95d1959deef9ce14b39baa61100ba
[ "MIT" ]
2
2020-04-17T02:54:59.000Z
2020-06-08T23:32:12.000Z
Artificial Intelligence/A* Search/PacMan-DFS.py
aibenStunner/HackerRank
de223f2b1fa95d1959deef9ce14b39baa61100ba
[ "MIT" ]
null
null
null
Artificial Intelligence/A* Search/PacMan-DFS.py
aibenStunner/HackerRank
de223f2b1fa95d1959deef9ce14b39baa61100ba
[ "MIT" ]
1
2021-11-16T14:05:22.000Z
2021-11-16T14:05:22.000Z
#!/usr/bin/python class Node: def __init__(self, x, y, parent): self.x = x self.y = y self.parent = parent def to_string(self): return f"{self.x} {self.y}" def dfs(r, c, pacman_r, pacman_c, food_r, food_c, grid): visited = [[False for _ in range(c)] for _ in range(...
26.863014
64
0.531362
d0698614c644035bc5d1db998d624214bb46daee
11,971
py
Python
openpnm/io/Dict.py
halotudio/openPNM-copy2
d400ec65e9421256a531f6d22a38255b002d5dcb
[ "MIT" ]
1
2021-05-01T11:10:43.000Z
2021-05-01T11:10:43.000Z
openpnm/io/Dict.py
halotudio/openPNM-copy2
d400ec65e9421256a531f6d22a38255b002d5dcb
[ "MIT" ]
null
null
null
openpnm/io/Dict.py
halotudio/openPNM-copy2
d400ec65e9421256a531f6d22a38255b002d5dcb
[ "MIT" ]
null
null
null
import pickle from flatdict import FlatDict from openpnm.utils import NestedDict, sanitize_dict, Workspace from openpnm.utils import logging from openpnm.io import GenericIO logger = logging.getLogger(__name__) ws = Workspace() class Dict(GenericIO): r""" Generates hierarchical ``dicts`` with a high degree of...
38.246006
79
0.530532
e04b0b89d528c693345aea624d3789539cdbb3e6
514
py
Python
revoltCommands/token.py
asoji/Yiski
8c64a04bb4e3b3f72a70de28203be2c3618c5f9c
[ "MIT" ]
null
null
null
revoltCommands/token.py
asoji/Yiski
8c64a04bb4e3b3f72a70de28203be2c3618c5f9c
[ "MIT" ]
11
2022-01-27T08:02:41.000Z
2022-02-10T23:32:29.000Z
revoltCommands/token.py
asoji/Yiski
8c64a04bb4e3b3f72a70de28203be2c3618c5f9c
[ "MIT" ]
1
2022-01-27T06:11:48.000Z
2022-01-27T06:11:48.000Z
import defectio from defectio import ext from defectio.ext import commands from loguru import logger class TokenRevolt(commands.Cog): def __init__(self, bot): self.bot = bot @commands.command() async def token(self, ctx): await ctx.reply("[be careful with your token in config.toml lol](ht...
27.052632
178
0.729572
79ffe944d3d0c2e16439fb4143c53ded546a975c
2,139
py
Python
tests/test_beatmapload.py
zardoru/osutk
70158073fee99c7d1a22ced13c83f937ed06a2dc
[ "Unlicense" ]
1
2016-04-08T11:59:50.000Z
2016-04-08T11:59:50.000Z
tests/test_beatmapload.py
zardoru/osutk
70158073fee99c7d1a22ced13c83f937ed06a2dc
[ "Unlicense" ]
null
null
null
tests/test_beatmapload.py
zardoru/osutk
70158073fee99c7d1a22ced13c83f937ed06a2dc
[ "Unlicense" ]
null
null
null
from osutk import Beatmap from osutk import SampleSet import osutk.osufile.beatmap as bm import unittest __author__ = 'Agka' beatmap = None def setUpModule(): global beatmap print("Attempting to load test1.osu.") beatmap = Beatmap() beatmap = bm.read_from_file("maps/test1.osu") class TestBeatmapLoad...
35.65
110
0.689107
56105a74bd21ff16e33b16877ea96b89a1b555ba
6,048
py
Python
pyax12/instruction_packet.py
PMGrobotics/pyax12
a5d53094ab7dd8c2cace1ac3d3fa1f86cc13c28c
[ "MIT" ]
15
2015-08-21T19:37:32.000Z
2021-12-11T08:40:27.000Z
pyax12/instruction_packet.py
lvic/pyAX12andMX64
c759b0524079bc57ae3c89d276cd01f9d92c86cf
[ "MIT" ]
7
2015-08-26T20:57:22.000Z
2020-06-29T11:41:36.000Z
pyax12/instruction_packet.py
lvic/pyAX12andMX64
c759b0524079bc57ae3c89d276cd01f9d92c86cf
[ "MIT" ]
8
2017-10-19T03:21:13.000Z
2021-03-25T11:03:33.000Z
# -*- coding : utf-8 -*- # PyAX-12 # The MIT License # # Copyright (c) 2010,2015 Jeremie DECOCK (http://www.jdhp.org) # # 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, ...
33.04918
79
0.630787
a8d242f732436227d6d27ec11972dc23a4dd49ab
284
py
Python
hetseq/data/__init__.py
yifding/hetseq
afdb4b0502e5223ae03ce7e9eae36b0925797d0e
[ "MIT" ]
89
2020-06-10T00:50:01.000Z
2022-03-15T05:07:42.000Z
hetseq/data/__init__.py
yifding/hetseq
afdb4b0502e5223ae03ce7e9eae36b0925797d0e
[ "MIT" ]
3
2021-04-08T02:26:02.000Z
2021-07-20T02:29:32.000Z
hetseq/data/__init__.py
yifding/hetseq
afdb4b0502e5223ae03ce7e9eae36b0925797d0e
[ "MIT" ]
13
2020-12-11T20:02:10.000Z
2021-12-19T03:06:30.000Z
from .h5pyDataset import BertH5pyData, ConBertH5pyData from .mnist_dataset import MNISTDataset from .bert_ner_dataset import BertNerDataset from .bert_el_dataset import BertELDataset __all__ = [ 'BertH5pyData', 'ConBertH5pyData', 'MNISTDataset', 'BertNerDataset', ]
21.846154
54
0.778169
7ee3bd368eeab33f1e8c15681ae5893a9c67cb3f
554
py
Python
cride/registros/admin.py
albertoaldanar/serecsinAPI
ca0f72d42b2e23d4a28cafccef9892055f922bfc
[ "MIT" ]
null
null
null
cride/registros/admin.py
albertoaldanar/serecsinAPI
ca0f72d42b2e23d4a28cafccef9892055f922bfc
[ "MIT" ]
8
2020-06-05T21:51:05.000Z
2022-01-13T01:25:00.000Z
cride/registros/admin.py
albertoaldanar/serecsinAPI
ca0f72d42b2e23d4a28cafccef9892055f922bfc
[ "MIT" ]
null
null
null
#django from django.db import models from django.contrib import admin #model from cride.registros.models import Egreso, Ingreso @admin.register(Ingreso) class IngresosAdmin(admin.ModelAdmin): list_display= ( "cliente", "importe", "adeudo_mes", "adeudo_acumulado" ) search_fields = ("cliente",) list_filter...
19.103448
58
0.691336
ba8172703b5399b771740bc0a31a8a1034d6d25c
4,499
py
Python
examples/stopwatch_examples.py
ianlini/bistiming
046d96cf01f80fe48bf06b8cc7d29b07dd0f0f9e
[ "MIT" ]
11
2016-10-17T16:33:03.000Z
2021-08-03T05:03:34.000Z
examples/stopwatch_examples.py
ianlini/bistiming
046d96cf01f80fe48bf06b8cc7d29b07dd0f0f9e
[ "MIT" ]
14
2016-11-23T17:14:18.000Z
2020-10-07T16:35:52.000Z
examples/stopwatch_examples.py
ianlini/bistiming
046d96cf01f80fe48bf06b8cc7d29b07dd0f0f9e
[ "MIT" ]
1
2019-04-30T03:18:57.000Z
2019-04-30T03:18:57.000Z
from __future__ import print_function, division, absolute_import, unicode_literals from time import sleep import logging from bistiming import Stopwatch logging.basicConfig( level=logging.DEBUG, format="[%(asctime)s] %(levelname)s: %(name)s: %(message)s" ) logger = logging.getLogger(__name__) def basic_exampl...
26.00578
94
0.664592
e9662f45a35d10dd658ce84d02c4c3991c508adc
1,110
py
Python
test/mapreduce/avro_mapred.py
chuyqa/pydoop
575f56cc66381fef08981a2452acde02bddf0363
[ "Apache-2.0" ]
null
null
null
test/mapreduce/avro_mapred.py
chuyqa/pydoop
575f56cc66381fef08981a2452acde02bddf0363
[ "Apache-2.0" ]
null
null
null
test/mapreduce/avro_mapred.py
chuyqa/pydoop
575f56cc66381fef08981a2452acde02bddf0363
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # BEGIN_COPYRIGHT # # Copyright 2009-2018 CRS4. # # 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 ap...
26.428571
77
0.745045
8a3fdf5f2684f4ea045d0f30be2f22eddfef8d66
118
py
Python
scripts/run_null_server.py
niermann/temscript
fb1982b57a3fdbd21225eb8b6340b2c5b22ed7cb
[ "BSD-3-Clause" ]
26
2017-03-29T05:52:04.000Z
2022-03-28T07:11:17.000Z
scripts/run_null_server.py
niermann/temscript
fb1982b57a3fdbd21225eb8b6340b2c5b22ed7cb
[ "BSD-3-Clause" ]
8
2017-06-28T11:36:05.000Z
2022-03-31T10:02:53.000Z
scripts/run_null_server.py
niermann/temscript
fb1982b57a3fdbd21225eb8b6340b2c5b22ed7cb
[ "BSD-3-Clause" ]
8
2018-09-19T12:50:30.000Z
2022-03-27T20:20:55.000Z
#!/usr/bin/env python3 from temscript.server import run_server if __name__ == '__main__': run_server(['--help'])
19.666667
39
0.70339
819fd47dd571d5d787248f854ab4e5d438f63dce
14,071
py
Python
activities/scan_for_missing_chunks.py
jhuapl-boss/boss-tools
2ace8ce2985ffa3c442ed85134d26c76fb5d984f
[ "Apache-2.0" ]
1
2018-08-04T21:57:34.000Z
2018-08-04T21:57:34.000Z
activities/scan_for_missing_chunks.py
jhuapl-boss/boss-tools
2ace8ce2985ffa3c442ed85134d26c76fb5d984f
[ "Apache-2.0" ]
16
2018-05-21T16:28:10.000Z
2021-03-17T20:15:25.000Z
activities/scan_for_missing_chunks.py
jhuapl-boss/boss-tools
2ace8ce2985ffa3c442ed85134d26c76fb5d984f
[ "Apache-2.0" ]
3
2018-02-08T16:45:59.000Z
2018-03-22T15:26:14.000Z
# Copyright 2021 The Johns Hopkins University Applied Physics Laboratory # # 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...
39.304469
109
0.588586
aa65cdbc5c4591861a5e0b122d3d8426db5aa6ee
2,578
py
Python
src/system/roster.py
thecesrom/8.0
4d66de233d8d36518a5c0abb78ee36de5adf3f08
[ "MIT" ]
1
2022-03-16T23:22:27.000Z
2022-03-16T23:22:27.000Z
src/system/roster.py
ignition-api/8.0
4d66de233d8d36518a5c0abb78ee36de5adf3f08
[ "MIT" ]
4
2022-03-15T21:33:46.000Z
2022-03-22T21:25:18.000Z
src/system/roster.py
thecesrom/8.0
4d66de233d8d36518a5c0abb78ee36de5adf3f08
[ "MIT" ]
2
2022-03-16T18:26:29.000Z
2022-03-28T20:12:56.000Z
"""Roster Functions. Functions that provide roster manipulation, including adding and remove users from a roster. """ from __future__ import print_function __all__ = ["addUsers", "createRoster", "getRosters", "removeUsers"] from typing import Dict, List, Union from com.inductiveautomation.ignition.common.user impo...
31.060241
72
0.681148
9d0a841e0fc8fab73cb8de42688df1fec4e31d80
1,618
py
Python
open_spiel/python/algorithms/minimal_agent_test.py
ZiggerZZ/open_spiel
55715f04d34e3584531b0fc921d844e160051d16
[ "Apache-2.0" ]
null
null
null
open_spiel/python/algorithms/minimal_agent_test.py
ZiggerZZ/open_spiel
55715f04d34e3584531b0fc921d844e160051d16
[ "Apache-2.0" ]
null
null
null
open_spiel/python/algorithms/minimal_agent_test.py
ZiggerZZ/open_spiel
55715f04d34e3584531b0fc921d844e160051d16
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 DeepMind Technologies Ltd. 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 appl...
32.36
79
0.732386
2d91e61ee79cd2895404ec904b17846426d3d798
637
py
Python
cocos2d/tools/jenkins-scripts/configs/cocos-2dx-develop-android.py
triompha/EarthWarrior3D
d68a347902fa1ca1282df198860f5fb95f326797
[ "MIT" ]
null
null
null
cocos2d/tools/jenkins-scripts/configs/cocos-2dx-develop-android.py
triompha/EarthWarrior3D
d68a347902fa1ca1282df198860f5fb95f326797
[ "MIT" ]
null
null
null
cocos2d/tools/jenkins-scripts/configs/cocos-2dx-develop-android.py
triompha/EarthWarrior3D
d68a347902fa1ca1282df198860f5fb95f326797
[ "MIT" ]
null
null
null
import os import platform print 'Build Config:' print ' Branch:develop' print ' Target:Android' print ' build script:python build/android-build.py all' if(os.path.exists('build/android-build.py') == False): node_name = os.environ['NODE_NAME'] source_dir = '../cocos-2dx-develop-base-repo/node/' + no...
28.954545
73
0.654631
ec096e9d194e95be36bf07ac1d5a857ccc4c01af
14,229
py
Python
rllib/algorithms/maml/maml.py
willfrey/ray
288a81b42ef0186ab4db33b30191614a7bdb69f6
[ "Apache-2.0" ]
1
2019-06-19T02:23:43.000Z
2019-06-19T02:23:43.000Z
rllib/algorithms/maml/maml.py
willfrey/ray
288a81b42ef0186ab4db33b30191614a7bdb69f6
[ "Apache-2.0" ]
73
2021-09-25T07:11:39.000Z
2022-03-26T07:10:59.000Z
rllib/algorithms/maml/maml.py
willfrey/ray
288a81b42ef0186ab4db33b30191614a7bdb69f6
[ "Apache-2.0" ]
1
2019-09-24T16:24:49.000Z
2019-09-24T16:24:49.000Z
import logging import numpy as np from typing import Optional, Type from ray.rllib.agents.trainer import Trainer from ray.rllib.agents.trainer_config import TrainerConfig from ray.rllib.evaluation.metrics import get_learner_stats from ray.rllib.evaluation.worker_set import WorkerSet from ray.rllib.execution.common imp...
36.67268
88
0.630543
f38d4d7aa6426352e55a4e3de92bb37748a441ff
2,523
py
Python
render.py
phuonghx/osgameclones
049b3cdbbc36ecd168a7f9ee017a30c19c75ce25
[ "CC-BY-4.0", "MIT" ]
832
2018-04-10T15:25:05.000Z
2022-03-30T18:50:04.000Z
render.py
phuonghx/osgameclones
049b3cdbbc36ecd168a7f9ee017a30c19c75ce25
[ "CC-BY-4.0", "MIT" ]
1,017
2018-04-09T09:44:47.000Z
2022-03-31T22:34:12.000Z
render.py
phuonghx/osgameclones
049b3cdbbc36ecd168a7f9ee017a30c19c75ce25
[ "CC-BY-4.0", "MIT" ]
236
2018-04-12T11:56:04.000Z
2022-03-09T03:18:30.000Z
#!/usr/bin/env python3 import html import os, os.path as op import shutil import functools import argparse import logging import re from distutils.dir_util import copy_tree from pathlib import Path import unidecode import jinja2 from pykwalify_webform.renderer import Renderer from yaml import safe_load import _ext ...
22.327434
99
0.670234
d5ac52d39c685768b158813dcfd666b6424ef62f
10,248
py
Python
app/main/repository/interface/master_tbls.py
meneel/TAP-API
3f839a132044389bf4d27f978275d026071d6df1
[ "MIT" ]
1
2021-12-12T10:01:10.000Z
2021-12-12T10:01:10.000Z
app/main/repository/interface/master_tbls.py
meneel/TAP-API
3f839a132044389bf4d27f978275d026071d6df1
[ "MIT" ]
null
null
null
app/main/repository/interface/master_tbls.py
meneel/TAP-API
3f839a132044389bf4d27f978275d026071d6df1
[ "MIT" ]
null
null
null
# -*- encoding: utf-8 -*- from ... import db from ...models import * class StateMasterRepository: get_all = lambda self : [row.__to_dict__() for row in StateMaster.query.all()] get_by_id = lambda self, StateID : [StateMaster.query.filter_by(StateID = StateID).first().__to_dict__()] get_by_name =...
38.526316
191
0.680523
051530e5c96a9b29a4ba23708180ae46b8c7fed4
3,782
py
Python
cric_db/cricsheet_db.py
felix-clark/cric-db
f59766653953da1d957472e6395b2ed2fdf9c146
[ "MIT" ]
null
null
null
cric_db/cricsheet_db.py
felix-clark/cric-db
f59766653953da1d957472e6395b2ed2fdf9c146
[ "MIT" ]
null
null
null
cric_db/cricsheet_db.py
felix-clark/cric-db
f59766653953da1d957472e6395b2ed2fdf9c146
[ "MIT" ]
null
null
null
from argparse import ArgumentParser import sqlite3 import os import json from typing import List def get_player_fields() -> List[str]: player_fields = [ 'hash TEXT PRIMARY KEY', 'name TEXT', # NOTE: In theory some players could play on multiple teams 'team TEXT', ] return p...
30.747967
79
0.579323
55cd77f575ac0920065e264e58c3676cbe6f7159
73
py
Python
core/multi_thread/__init__.py
caserwin/daily-learning-python
01fea4c5d4e86cbea2dbef8817146f018b5f1479
[ "Apache-2.0" ]
1
2019-05-04T07:27:18.000Z
2019-05-04T07:27:18.000Z
core/multi_thread/__init__.py
caserwin/daily-learning-python
01fea4c5d4e86cbea2dbef8817146f018b5f1479
[ "Apache-2.0" ]
null
null
null
core/multi_thread/__init__.py
caserwin/daily-learning-python
01fea4c5d4e86cbea2dbef8817146f018b5f1479
[ "Apache-2.0" ]
1
2018-09-20T01:49:36.000Z
2018-09-20T01:49:36.000Z
# -*- coding: utf-8 -*- # @Time : 2018/8/4 下午2:33 # @Author : yidxue
18.25
28
0.506849
f9e96c9c241c595c66e82b34adac7afb387b6925
4,810
py
Python
npyscreen/ThemeManagers.py
tescalada/npyscreen-restructure
0833bbbdec18439182f102d2147f3756fa98aadd
[ "BSD-2-Clause" ]
2
2015-01-12T14:47:19.000Z
2018-10-03T09:27:22.000Z
npyscreen/ThemeManagers.py
tescalada/npyscreen-restructure
0833bbbdec18439182f102d2147f3756fa98aadd
[ "BSD-2-Clause" ]
null
null
null
npyscreen/ThemeManagers.py
tescalada/npyscreen-restructure
0833bbbdec18439182f102d2147f3756fa98aadd
[ "BSD-2-Clause" ]
1
2020-03-20T20:19:33.000Z
2020-03-20T20:19:33.000Z
# encoding: utf-8 """ IMPORTANT - COLOUR SUPPORT IS CURRENTLY EXTREMELY EXPERIMENTAL. THE API MAY CHANGE, AND NO DEFAULT WIDGETS CURRENTLY TAKE ADVANTAGE OF THEME SUPPORT AT ALL. """ import curses from . import global_options def disable_color(): global_options.DISABLE_ALL_COLORS = True def enable_color(): ...
37.286822
99
0.608524
ae1c3e20cfad945a47a3858548555d19b87fbacd
12,308
py
Python
app/mgmt/steps_run.py
iwanbolzern/instrument-mgmt
3c11690a38e10e9b9824ee0196858e96c73a19fc
[ "BSD-3-Clause" ]
null
null
null
app/mgmt/steps_run.py
iwanbolzern/instrument-mgmt
3c11690a38e10e9b9824ee0196858e96c73a19fc
[ "BSD-3-Clause" ]
null
null
null
app/mgmt/steps_run.py
iwanbolzern/instrument-mgmt
3c11690a38e10e9b9824ee0196858e96c73a19fc
[ "BSD-3-Clause" ]
null
null
null
import time from threading import Event from com.ic_interface import Direction, MagnetDirection, DirectionTele from mgmt import pos_callculation from mgmt.steps_base import Step, Context from mgmt_utils import log from mgmt_utils.config import Config class WaitForStartStep(Step): def __init__(self, context: Con...
38.342679
115
0.646978
bf9867563f4bc93b8f7e9e50beb48ce336ce855d
6,730
py
Python
api/serializers.py
Lijs007/heritagesites
ba32f05e7868f58b8c659a3203b34777ab0c7240
[ "MIT" ]
null
null
null
api/serializers.py
Lijs007/heritagesites
ba32f05e7868f58b8c659a3203b34777ab0c7240
[ "MIT" ]
null
null
null
api/serializers.py
Lijs007/heritagesites
ba32f05e7868f58b8c659a3203b34777ab0c7240
[ "MIT" ]
null
null
null
from heritagesites.models import CountryArea, DevStatus, HeritageSite, HeritageSiteCategory, \ HeritageSiteJurisdiction, Location, Planet, Region, SubRegion, IntermediateRegion from rest_framework import response, serializers, status class PlanetSerializer(serializers.ModelSerializer): class Meta: model = Planet...
27.137097
94
0.769094
a68fc7087e591d145fa86b42742dcc390582cdfb
273
py
Python
tests/test_constants.py
acse-hg2917/ci_acse1
997ab3f1e02bdeedd6fabddf170f7cb506df7ca0
[ "MIT" ]
null
null
null
tests/test_constants.py
acse-hg2917/ci_acse1
997ab3f1e02bdeedd6fabddf170f7cb506df7ca0
[ "MIT" ]
null
null
null
tests/test_constants.py
acse-hg2917/ci_acse1
997ab3f1e02bdeedd6fabddf170f7cb506df7ca0
[ "MIT" ]
null
null
null
import numpy as np from simple_functions import pi class TestPi(object): '''Class to test our constants are computed correctly''' def test_pi(self): '''Test computation of pi''' my_pi = pi(2) assert np.isclose(my_pi, np.pi, atol=1e-12)
19.5
60
0.644689
872a65ad16b2958ed031f509647932e1eeb69ab4
584
py
Python
src/psm/config.py
GrayBoxAI/PSM
250d10e7513150407ed47073aae008f6be07dcd0
[ "Apache-2.0" ]
1
2017-11-28T19:38:49.000Z
2017-11-28T19:38:49.000Z
src/psm/config.py
GrayBoxAI/PSM
250d10e7513150407ed47073aae008f6be07dcd0
[ "Apache-2.0" ]
null
null
null
src/psm/config.py
GrayBoxAI/PSM
250d10e7513150407ed47073aae008f6be07dcd0
[ "Apache-2.0" ]
1
2017-11-28T19:44:48.000Z
2017-11-28T19:44:48.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 # distribu...
41.714286
76
0.741438
affc5780a661de3e81677dfa9f174084d71767f8
544
py
Python
setup.py
ashish-greycube/dar_books
662f2e8d85f8fb6b8e3707cea540ceb3369ef116
[ "MIT" ]
null
null
null
setup.py
ashish-greycube/dar_books
662f2e8d85f8fb6b8e3707cea540ceb3369ef116
[ "MIT" ]
null
null
null
setup.py
ashish-greycube/dar_books
662f2e8d85f8fb6b8e3707cea540ceb3369ef116
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from setuptools import setup, find_packages with open('requirements.txt') as f: install_requires = f.read().strip().split('\n') # get version from __version__ variable in dar_books/__init__.py from dar_books import __version__ as version setup( name='dar_books', version=version, descripti...
25.904762
64
0.773897
0ec0a385d04acc949b42f411127e3fe8e90efef5
41,972
py
Python
tests/test_ceres.py
graphite-project/ceres
0804b6e15857aec461aec76b365bd94c40e30fae
[ "Apache-2.0" ]
175
2015-01-19T10:09:57.000Z
2022-03-31T18:23:03.000Z
tests/test_ceres.py
graphite-project/ceres
0804b6e15857aec461aec76b365bd94c40e30fae
[ "Apache-2.0" ]
31
2015-01-19T10:40:20.000Z
2017-11-02T17:40:45.000Z
tests/test_ceres.py
graphite-project/ceres
0804b6e15857aec461aec76b365bd94c40e30fae
[ "Apache-2.0" ]
49
2015-01-06T05:46:51.000Z
2021-05-13T03:12:06.000Z
from unittest import TestCase import errno from mock import ANY, Mock, call, mock_open, patch from os import path try: import __builtin__ as builtins except ImportError: import builtins from ceres import CeresNode, CeresSlice, CeresTree from ceres import DATAPOINT_SIZE, DEFAULT_NODE_CACHING_BEHAVIOR, DEFAULT_S...
41.763184
97
0.736944
f9cf7e79d705c7085423242ec77f7a0ab5daa235
734
py
Python
src/mahjong.py
LittleYe233/majhong-connect
0ba711852ba7e0d5a54f346cfb606da7223f2972
[ "Apache-2.0" ]
null
null
null
src/mahjong.py
LittleYe233/majhong-connect
0ba711852ba7e0d5a54f346cfb606da7223f2972
[ "Apache-2.0" ]
null
null
null
src/mahjong.py
LittleYe233/majhong-connect
0ba711852ba7e0d5a54f346cfb606da7223f2972
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- from src.utils.cardsys import Card, Cardset from src.profiles import japanese from src.profiles import competition # Constants _MJ_GAME_PROFILE_KEYS = [ 'japanese', # Japanese Mahjong, 日本麻将 'competition' # Mahjong Competition Rules, 国标麻将 ] _MJ_GAME_PROFILES = { # TODO: additional...
25.310345
70
0.667575
526e3ef4aaffda4fc2524df263160cc05fa84615
876
py
Python
Python3/60.permutation-sequence.py
610yilingliu/leetcode
30d071b3685c2131bd3462ba77c6c05114f3f227
[ "MIT" ]
null
null
null
Python3/60.permutation-sequence.py
610yilingliu/leetcode
30d071b3685c2131bd3462ba77c6c05114f3f227
[ "MIT" ]
null
null
null
Python3/60.permutation-sequence.py
610yilingliu/leetcode
30d071b3685c2131bd3462ba77c6c05114f3f227
[ "MIT" ]
null
null
null
# # @lc app=leetcode id=60 lang=python3 # # [60] Permutation Sequence # # @lc code=start import heapq class Solution: def getPermutation(self, n, k): if n < 2: return str(n) if k == 1: ans = '' for i in range(1, n + 1): ans += str(i) ...
19.466667
47
0.434932
7bcba51bfc942a7cf84c46208deecdb700094923
873
py
Python
google/appengine/_internal/django/core/management/commands/sqlsequencereset.py
vladushakov987/appengine_python3
0dd481c73e2537a50ee10f1b79cd65938087e555
[ "Apache-2.0" ]
null
null
null
google/appengine/_internal/django/core/management/commands/sqlsequencereset.py
vladushakov987/appengine_python3
0dd481c73e2537a50ee10f1b79cd65938087e555
[ "Apache-2.0" ]
null
null
null
google/appengine/_internal/django/core/management/commands/sqlsequencereset.py
vladushakov987/appengine_python3
0dd481c73e2537a50ee10f1b79cd65938087e555
[ "Apache-2.0" ]
null
null
null
from optparse import make_option from google.appengine._internal.django.core.management.base import AppCommand from google.appengine._internal.django.db import connections, models, DEFAULT_DB_ALIAS class Command(AppCommand): help = 'Prints the SQL statements for resetting sequences for the given app name(s).' ...
39.681818
138
0.722795
b3d3056dc9b59415a572320c03697553e4b88f95
2,353
py
Python
Python3/44_Wildcard_Matching.py
yangjiahao106/LeetCode
c30ba0ef06f444951f7ab8eee495ac43613d7f4f
[ "RSA-MD" ]
1
2018-04-28T09:07:11.000Z
2018-04-28T09:07:11.000Z
Python3/44_Wildcard_Matching.py
yangjiahao106/LeetCode
c30ba0ef06f444951f7ab8eee495ac43613d7f4f
[ "RSA-MD" ]
1
2018-02-24T16:26:30.000Z
2018-02-24T16:26:44.000Z
Python3/44_Wildcard_Matching.py
yangjiahao106/LeetCode
c30ba0ef06f444951f7ab8eee495ac43613d7f4f
[ "RSA-MD" ]
null
null
null
#! python3 # __author__ = "YangJiaHao" # date: 2018/2/21 class Solution: def isMatch(self, s, p): """ :type s: str :type p: str :rtype: bool 时间复杂度 O(n^3) 执行超时 """ self.res = False self.helper(s, p) return self.res def helper(self, ...
24.257732
65
0.369741
214d1082bc706ae2b0e172366b70e8fc67568cb6
1,230
py
Python
lcs.py
alexdzyoba/diff
8a9645b3af69609874557bcee66e1dbdd4e2c962
[ "MIT" ]
14
2017-12-28T06:30:08.000Z
2021-09-27T09:00:27.000Z
lcs.py
alexdzyoba/diff
8a9645b3af69609874557bcee66e1dbdd4e2c962
[ "MIT" ]
null
null
null
lcs.py
alexdzyoba/diff
8a9645b3af69609874557bcee66e1dbdd4e2c962
[ "MIT" ]
5
2018-01-02T11:28:36.000Z
2021-03-29T03:29:46.000Z
"""Longest common subsequence module""" def lcslen(x, y): """Build a matrix of LCS length. This matrix will be used later to backtrack the real LCS. """ # This is our matrix comprised of list of lists. # We allocate extra row and column with zeroes for the base case of empty # sequence. Extra...
32.368421
77
0.543902
a6dc05592bbaacfa2547d77e68a4e4db1c3fd1b9
200
py
Python
app/sample/file.py
linex-cd/puf
6da93b485b4881c12975d5af1715480a7bffc45c
[ "Apache-2.0" ]
5
2018-01-02T10:27:52.000Z
2018-05-01T16:01:01.000Z
app/sample/file.py
linex-cd/puf
6da93b485b4881c12975d5af1715480a7bffc45c
[ "Apache-2.0" ]
null
null
null
app/sample/file.py
linex-cd/puf
6da93b485b4881c12975d5af1715480a7bffc45c
[ "Apache-2.0" ]
null
null
null
import app; import std.file; if __name__ == '__main__': pass; #end def main(): content = std.file.read("testfile1.txt"); std.file.write(content, "testfile2.txt", False); pass; #enddef
10
49
0.65
d0b1659f08afa8d5b6c786832d0fbf1310e17259
552
py
Python
src/bin/Devices/Manipulator/ManipulatorFactory.py
rCorvidae/OrionPI
1ef5d786d7ae55bf92a8da62d8da28af706f4713
[ "MIT" ]
null
null
null
src/bin/Devices/Manipulator/ManipulatorFactory.py
rCorvidae/OrionPI
1ef5d786d7ae55bf92a8da62d8da28af706f4713
[ "MIT" ]
null
null
null
src/bin/Devices/Manipulator/ManipulatorFactory.py
rCorvidae/OrionPI
1ef5d786d7ae55bf92a8da62d8da28af706f4713
[ "MIT" ]
null
null
null
from bin.Devices.Manipulator import ManipulatorManagerFactory from bin.Devices.DeviceFactory import DeviceFactory from bin.Devices.Manipulator import Manipulator class ManipulatorFactory(DeviceFactory): def __init__(self, manager_factory): DeviceFactory.__init__(self, manager_factory) def create(self...
34.5
66
0.789855
1301f564dade61e3b918b49680686cdc8220f56c
540
py
Python
examples/interpolations/test_example.py
aspuru-guzik-group/mission_control
bfe930e1038e9e0d6c4bb327474766e85b2190cb
[ "Apache-2.0" ]
3
2017-09-01T19:49:59.000Z
2018-06-04T10:30:01.000Z
examples/interpolations/test_example.py
aspuru-guzik-group/mission_control
bfe930e1038e9e0d6c4bb327474766e85b2190cb
[ "Apache-2.0" ]
null
null
null
examples/interpolations/test_example.py
aspuru-guzik-group/mission_control
bfe930e1038e9e0d6c4bb327474766e85b2190cb
[ "Apache-2.0" ]
1
2018-12-13T19:48:27.000Z
2018-12-13T19:48:27.000Z
import os import subprocess import textwrap import unittest class TestExample(unittest.TestCase): def test_example(self): cmd = 'cd {this_dir} && python entrypoint.py'.format( this_dir=os.path.dirname(os.path.abspath(__file__)) ) stdout = subprocess.check_output(cmd, shell=True...
27
66
0.614815
e1d8ec46a5ee043fb49bc4b4e22487966f30f2bd
31,744
py
Python
basta/constants.py
BASTAcode/BASTA
6de8b8b866787d6745c4e77378bb94e0bab97090
[ "MIT" ]
12
2021-10-01T06:46:20.000Z
2022-01-04T09:59:33.000Z
basta/constants.py
BASTAcode/BASTA
6de8b8b866787d6745c4e77378bb94e0bab97090
[ "MIT" ]
null
null
null
basta/constants.py
BASTAcode/BASTA
6de8b8b866787d6745c4e77378bb94e0bab97090
[ "MIT" ]
2
2021-10-17T10:20:38.000Z
2022-02-03T20:37:24.000Z
""" Collection of all constants used in BASTA """ from dataclasses import dataclass # Python 3.7+ ! import numpy as np @dataclass class sydsun: """ Default solar values from the SYD asteroseismic pipeline. """ SUNdnu = 135.1 SUNnumax = 3090.0 @dataclass class freqtypes: """ Different p...
58.676525
187
0.538495
fa89b21f738e44a61029c38dc62ffc30a87e833d
17,916
py
Python
benchmarks/f3_wrong_hints_permutations/scaling_ltl_timed_transition_system/12-sender_receiver_11.py
EnricoMagnago/F3
c863215c318d7d5f258eb9be38c6962cf6863b52
[ "MIT" ]
3
2021-04-23T23:29:26.000Z
2022-03-23T10:00:30.000Z
benchmarks/f3_wrong_hints_permutations/scaling_ltl_timed_transition_system/12-sender_receiver_11.py
EnricoMagnago/F3
c863215c318d7d5f258eb9be38c6962cf6863b52
[ "MIT" ]
null
null
null
benchmarks/f3_wrong_hints_permutations/scaling_ltl_timed_transition_system/12-sender_receiver_11.py
EnricoMagnago/F3
c863215c318d7d5f258eb9be38c6962cf6863b52
[ "MIT" ]
1
2021-11-17T22:02:56.000Z
2021-11-17T22:02:56.000Z
from typing import FrozenSet from collections import Iterable from math import log, ceil from mathsat import msat_term, msat_env from mathsat import msat_make_constant, msat_declare_function from mathsat import msat_get_integer_type, msat_get_rational_type, msat_get_bool_type from mathsat import msat_make_and, msa...
38.863341
89
0.574459
508d901bebed7778d56ace5ea575eab7a0627d6c
6,494
py
Python
nevergrad/functions/photonics/core.py
mehrdad-shokri/nevergrad
7b68b00c158bf60544bc45997560edf733fb5812
[ "MIT" ]
2
2021-04-13T12:14:46.000Z
2021-07-07T14:37:50.000Z
nevergrad/functions/photonics/core.py
mehrdad-shokri/nevergrad
7b68b00c158bf60544bc45997560edf733fb5812
[ "MIT" ]
1
2020-09-25T10:45:06.000Z
2020-09-25T11:51:13.000Z
nevergrad/functions/photonics/core.py
mehrdad-shokri/nevergrad
7b68b00c158bf60544bc45997560edf733fb5812
[ "MIT" ]
1
2021-04-07T10:34:20.000Z
2021-04-07T10:34:20.000Z
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. # # This module has is based on code and ideas from: # - Mamadou Aliou Barry # - Marie-Claire Cambourieux # - Rémi Pollès ...
44.786207
137
0.669233
08cde6d10fd1442f16bb9cf1e691bc03b3127b15
12,677
py
Python
ciphey/basemods/Checkers/brandon.py
blackcat-917/Ciphey
d24deea87cec2dea2e04ec3859b9e77e121d192a
[ "MIT" ]
1
2021-11-28T17:55:04.000Z
2021-11-28T17:55:04.000Z
ciphey/basemods/Checkers/brandon.py
ScarlettHoefler/Ciphey
f7d21ce0993eeff0b53cec8717dfbd8f8419f8f5
[ "MIT" ]
2
2021-04-06T18:32:08.000Z
2021-06-02T04:02:31.000Z
ciphey/basemods/Checkers/brandon.py
ScarlettHoefler/Ciphey
f7d21ce0993eeff0b53cec8717dfbd8f8419f8f5
[ "MIT" ]
1
2021-03-09T02:33:23.000Z
2021-03-09T02:33:23.000Z
""" ██████╗██╗██████╗ ██╗ ██╗███████╗██╗ ██╗ ██╔════╝██║██╔══██╗██║ ██║██╔════╝╚██╗ ██╔╝ ██║ ██║██████╔╝███████║█████╗ ╚████╔╝ ██║ ██║██╔═══╝ ██╔══██║██╔══╝ ╚██╔╝ ╚██████╗██║██║ ██║ ██║███████╗ ██║ © Brandon Skerritt Github: brandonskerritt Class to determine whether something is Engl...
41.02589
133
0.584444
4e3a102f8de3b9bf88f0dad2035a08f3cb79ab52
4,827
py
Python
tests/serializer/path/test_as_tar.py
larribas/dagger-contrib
1833614c82241a404b8e54c74052c5067b0ca104
[ "Apache-2.0" ]
1
2021-10-14T17:26:51.000Z
2021-10-14T17:26:51.000Z
tests/serializer/path/test_as_tar.py
larribas/dagger-contrib
1833614c82241a404b8e54c74052c5067b0ca104
[ "Apache-2.0" ]
3
2021-09-24T17:38:08.000Z
2021-09-28T09:35:05.000Z
tests/serializer/path/test_as_tar.py
larribas/dagger-contrib
1833614c82241a404b8e54c74052c5067b0ca104
[ "Apache-2.0" ]
null
null
null
import io import os import tempfile import pytest from dagger import DeserializationError, Serializer from dagger_contrib.serializer.path.as_tar import AsTar SUPPORTED_COMPRESSION_MODES = [ None, "gzip", "xz", "bz2", ] def test__conforms_to_protocol(): with tempfile.TemporaryDirectory() as tmp:...
36.568182
109
0.618811
f96983e2d446a2949f628d46adccc4763d77f8a8
588
py
Python
fetch/src/config.py
cosnomi/conoha-notifier
fecef46a7e6f954429a9f5366f00b0fd9bdaebe3
[ "MIT" ]
null
null
null
fetch/src/config.py
cosnomi/conoha-notifier
fecef46a7e6f954429a9f5366f00b0fd9bdaebe3
[ "MIT" ]
null
null
null
fetch/src/config.py
cosnomi/conoha-notifier
fecef46a7e6f954429a9f5366f00b0fd9bdaebe3
[ "MIT" ]
null
null
null
import os # These values are fixed in effect. No need to be configured by users. const_config = { 'CONOHA_TOKEN_URL': 'https://identity.tyo2.conoha.io/v2.0/tokens', 'CONOHA_DATE_FORMAT': '%Y-%m-%dT%H:%M:%SZ' } def read_config(): # These values must be assigned by users as the environment variables. e...
30.947368
74
0.695578
f42ec57e42e099a035890b1fa8840b511ad8b9a5
5,089
py
Python
tests/gold_tests/headers/cache_and_req_body.test.py
heroku-miraheze/trafficserver
b4c9cf1668c5b464064c336800e049c11e659929
[ "Apache-2.0" ]
1
2020-04-20T14:06:36.000Z
2020-04-20T14:06:36.000Z
tests/gold_tests/headers/cache_and_req_body.test.py
heroku-miraheze/trafficserver
b4c9cf1668c5b464064c336800e049c11e659929
[ "Apache-2.0" ]
2
2019-12-13T00:55:32.000Z
2019-12-13T20:16:47.000Z
tests/gold_tests/headers/cache_and_req_body.test.py
heroku-miraheze/trafficserver
b4c9cf1668c5b464064c336800e049c11e659929
[ "Apache-2.0" ]
1
2020-03-13T00:17:20.000Z
2020-03-13T00:17:20.000Z
''' Test cached responses and requests with bodies using CurlHeader tester ''' # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this f...
43.127119
334
0.68088
14857cf74ecd4919860f9af257a1360920a692a9
22,659
py
Python
pymongo/database.py
ixc/mongo-python-driver
2eac8068e3a2cdfb74b50f737dbc39bee8c35be7
[ "Apache-2.0" ]
null
null
null
pymongo/database.py
ixc/mongo-python-driver
2eac8068e3a2cdfb74b50f737dbc39bee8c35be7
[ "Apache-2.0" ]
null
null
null
pymongo/database.py
ixc/mongo-python-driver
2eac8068e3a2cdfb74b50f737dbc39bee8c35be7
[ "Apache-2.0" ]
null
null
null
# Copyright 2009-2010 10gen, Inc. # # 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,...
36.3125
79
0.607706
b15638fe395c5f48c1f8b8847fec1d615386701e
669
py
Python
week2/scripts/server.py
pushkarjog6/Robotics-Automation-QSTP-2021
d0b45d251067c0feafa0627a8697875ac56c9948
[ "MIT" ]
null
null
null
week2/scripts/server.py
pushkarjog6/Robotics-Automation-QSTP-2021
d0b45d251067c0feafa0627a8697875ac56c9948
[ "MIT" ]
null
null
null
week2/scripts/server.py
pushkarjog6/Robotics-Automation-QSTP-2021
d0b45d251067c0feafa0627a8697875ac56c9948
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import rospy import numpy as np from week2.srv import trajectory, trajectoryResponse def traj(request): x = request.x; y = request.y; theta = request.theta; v = request.v; w = request.w; dt = 0.05 n = 50 x_points = [x] y_points = [y] for i in range(n): ...
20.90625
54
0.600897
0d03a714c2bf4777f973935912d3373b993e3a3b
15,217
py
Python
CNIC-X/pycocotools/coco.py
CSnode/Multimodal-Captioning
535aad49bc77bfe72977ff4870befeb1a98b445b
[ "MIT" ]
2
2020-04-08T09:49:35.000Z
2021-06-19T05:04:23.000Z
CNIC/pycocotools/coco.py
CSnode/Multimodal-Captioning
535aad49bc77bfe72977ff4870befeb1a98b445b
[ "MIT" ]
null
null
null
CNIC/pycocotools/coco.py
CSnode/Multimodal-Captioning
535aad49bc77bfe72977ff4870befeb1a98b445b
[ "MIT" ]
null
null
null
__author__ = 'tylin' __version__ = '1.0.1' # Interface for accessing the Microsoft COCO dataset. # Microsoft COCO is a large image dataset designed for object detection, # segmentation, and caption generation. pycocotools is a Python API that # assists in loading, parsing and visualizing the annotations in COCO. # Ple...
41.238482
128
0.551948
7520bfccab837476eb0c1eba5db5186ee2bb1e00
11,998
bzl
Python
swift/internal/linking.bzl
alexeagle/rules_swift
24fe230a591c8fedf7c3d4d45b8cb49e956381f2
[ "Apache-2.0" ]
2
2020-06-25T16:06:31.000Z
2020-06-26T02:51:06.000Z
swift/internal/linking.bzl
alexeagle/rules_swift
24fe230a591c8fedf7c3d4d45b8cb49e956381f2
[ "Apache-2.0" ]
11
2019-10-15T23:03:57.000Z
2020-06-14T16:10:12.000Z
swift/internal/linking.bzl
alexeagle/rules_swift
24fe230a591c8fedf7c3d4d45b8cb49e956381f2
[ "Apache-2.0" ]
7
2019-07-04T14:23:54.000Z
2020-04-27T08:52:51.000Z
# Copyright 2018 The Bazel 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 applicable la...
37.968354
80
0.652192
5a6d8e17c78b334cdfcdd3376cbcfdd134746b4b
289
py
Python
FirstStepsInPython/Basics/Exercise3 Conditional Statements Advanced/09. Volleyball.py
Pittor052/SoftUni-Studies
1ee6341082f6ccfa45b3e82824c37722bcf2fb31
[ "MIT" ]
null
null
null
FirstStepsInPython/Basics/Exercise3 Conditional Statements Advanced/09. Volleyball.py
Pittor052/SoftUni-Studies
1ee6341082f6ccfa45b3e82824c37722bcf2fb31
[ "MIT" ]
null
null
null
FirstStepsInPython/Basics/Exercise3 Conditional Statements Advanced/09. Volleyball.py
Pittor052/SoftUni-Studies
1ee6341082f6ccfa45b3e82824c37722bcf2fb31
[ "MIT" ]
1
2021-10-07T18:30:42.000Z
2021-10-07T18:30:42.000Z
import math year = str(input()) p = int(input()) h = int(input()) total_play_time = ((48 - h) * (3 / 4)) + (p * (2 / 3)) + h if year == "leap": total_play_time += (total_play_time * 0.15) print(f"{math.floor(total_play_time)}") else: print(f"{math.floor(total_play_time)}")
20.642857
58
0.591696
e94e99f57866e0fff56a253e36b20df53c9a55f0
9,000
py
Python
shards/mishards/connections.py
zhang19941219/milvus
afac02ca2f1cab7bd98afb8fe6981d602b7a9a9b
[ "Apache-2.0" ]
null
null
null
shards/mishards/connections.py
zhang19941219/milvus
afac02ca2f1cab7bd98afb8fe6981d602b7a9a9b
[ "Apache-2.0" ]
null
null
null
shards/mishards/connections.py
zhang19941219/milvus
afac02ca2f1cab7bd98afb8fe6981d602b7a9a9b
[ "Apache-2.0" ]
null
null
null
import time import json import logging import threading from functools import wraps from collections import defaultdict from milvus import Milvus # from milvus.client.hooks import BaseSearchHook from mishards import (settings, exceptions, topology) from utils import singleton logger = logging.getLogger(__name__) # ...
32.02847
120
0.565222
05b3e77fd2c7179575b71ca45c1baae34b0f58b2
2,235
py
Python
backend/cb_ux_test_2_33170/urls.py
crowdbotics-apps/cb-ux-test-2-33170
3f06fb1e066ef7fc9406b12163c6c65c74bbbdde
[ "FTL", "AML", "RSA-MD" ]
null
null
null
backend/cb_ux_test_2_33170/urls.py
crowdbotics-apps/cb-ux-test-2-33170
3f06fb1e066ef7fc9406b12163c6c65c74bbbdde
[ "FTL", "AML", "RSA-MD" ]
null
null
null
backend/cb_ux_test_2_33170/urls.py
crowdbotics-apps/cb-ux-test-2-33170
3f06fb1e066ef7fc9406b12163c6c65c74bbbdde
[ "FTL", "AML", "RSA-MD" ]
null
null
null
"""cb_ux_test_2_33170 URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/2.2/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home') ...
35.47619
87
0.708725
89ddf4f0788fb0a4a02f9c52d07e08ed21b06279
13,357
py
Python
python_modules/libraries/dagster-airflow/dagster_airflow/operators/docker_operator.py
flowersw/dagster
0de6baf2bd6a41bfacf0be532b954e23305fb6b4
[ "Apache-2.0" ]
null
null
null
python_modules/libraries/dagster-airflow/dagster_airflow/operators/docker_operator.py
flowersw/dagster
0de6baf2bd6a41bfacf0be532b954e23305fb6b4
[ "Apache-2.0" ]
null
null
null
python_modules/libraries/dagster-airflow/dagster_airflow/operators/docker_operator.py
flowersw/dagster
0de6baf2bd6a41bfacf0be532b954e23305fb6b4
[ "Apache-2.0" ]
null
null
null
import ast import sys import warnings from contextlib import contextmanager from airflow.exceptions import AirflowException from airflow.utils.file import TemporaryDirectory from dagster_airflow.vendor.docker_operator import DockerOperator from dagster_graphql.client.query import RAW_EXECUTE_PLAN_MUTATION from dagster...
39.055556
100
0.598563
d48f563ef2b5f12301b00d2c0341d910fda1fd4d
17,486
py
Python
lifelines/fitters/kaplan_meier_fitter.py
sachinruk/lifelines
8de4afb21b69f96d51c3923cb66b9086e50d6944
[ "MIT" ]
null
null
null
lifelines/fitters/kaplan_meier_fitter.py
sachinruk/lifelines
8de4afb21b69f96d51c3923cb66b9086e50d6944
[ "MIT" ]
null
null
null
lifelines/fitters/kaplan_meier_fitter.py
sachinruk/lifelines
8de4afb21b69f96d51c3923cb66b9086e50d6944
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import warnings import numpy as np import pandas as pd from lifelines.fitters import UnivariateFitter from lifelines.utils import ( _preprocess_inputs, _additive_estimate, _to_array, StatError, inv_normal_cdf, median_survival_times, check_nans_or_infs, Statistica...
42.64878
174
0.644573
ecbff365db20fc6578d02681bd2c8f8072b135ba
5,296
py
Python
test/functional/rpc_preciousblock.py
Lucky1689/ukcoin
11bcd6ded7b11a7179e32f1bf0d6f75615c0dde1
[ "MIT" ]
null
null
null
test/functional/rpc_preciousblock.py
Lucky1689/ukcoin
11bcd6ded7b11a7179e32f1bf0d6f75615c0dde1
[ "MIT" ]
null
null
null
test/functional/rpc_preciousblock.py
Lucky1689/ukcoin
11bcd6ded7b11a7179e32f1bf0d6f75615c0dde1
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) 2018 The Bitcoin Core developers # Copyright (c) 2017 The Raven Core developers # Copyright (c) 2018 The Rito Core developers # Copyright (c) 2020 The Ukcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource....
44.504202
127
0.66994
1c900b66a2eab4e5e33a2064dc8dabbd67717247
160
py
Python
.history/my_classes/FirstClassFunctions/the_operator_Module_20210708152142.py
minefarmer/deep-Dive-1
b0675b853180c5b5781888266ea63a3793b8d855
[ "Unlicense" ]
null
null
null
.history/my_classes/FirstClassFunctions/the_operator_Module_20210708152142.py
minefarmer/deep-Dive-1
b0675b853180c5b5781888266ea63a3793b8d855
[ "Unlicense" ]
null
null
null
.history/my_classes/FirstClassFunctions/the_operator_Module_20210708152142.py
minefarmer/deep-Dive-1
b0675b853180c5b5781888266ea63a3793b8d855
[ "Unlicense" ]
null
null
null
"""The operator module Functional Equivalents to operators In the last lecture we wrote code such as: l = [2, 3, 4] rduce(lambda a, b: a * b, l) """
16
43
0.6375
f3a27f3e687c5a178225432c608dec17367801eb
1,621
py
Python
Data-Visualization-/code.py
Aditya1231/ga-learner-dsmp-repo
3578fda8b8f6906e1938b8b238f1d0f108deca2b
[ "MIT" ]
null
null
null
Data-Visualization-/code.py
Aditya1231/ga-learner-dsmp-repo
3578fda8b8f6906e1938b8b238f1d0f108deca2b
[ "MIT" ]
null
null
null
Data-Visualization-/code.py
Aditya1231/ga-learner-dsmp-repo
3578fda8b8f6906e1938b8b238f1d0f108deca2b
[ "MIT" ]
null
null
null
# -------------- #Importing header files import pandas as pd import numpy as np import matplotlib.pyplot as plt data = pd.read_csv(path) #print(type(data)) loan_status = data['Loan_Status'].value_counts() print(loan_status) loan_status.plot(kind='bar') plt.show() #Code starts here # -------------- #...
19.53012
83
0.678593
77652a18cdd7436621d8a9fb230086f3e3acd0be
217
py
Python
HackerEarth/Predict Ad Clicks/avg.py
rakesh-malviya/MLCodeGems
b9b2b4c2572f788724a7609499b3adee3a620aa4
[ "Apache-2.0" ]
1
2020-02-19T14:42:57.000Z
2020-02-19T14:42:57.000Z
HackerEarth/Predict Ad Clicks/avg.py
rakesh-malviya/MLCodeGems
b9b2b4c2572f788724a7609499b3adee3a620aa4
[ "Apache-2.0" ]
null
null
null
HackerEarth/Predict Ad Clicks/avg.py
rakesh-malviya/MLCodeGems
b9b2b4c2572f788724a7609499b3adee3a620aa4
[ "Apache-2.0" ]
3
2017-11-09T11:09:31.000Z
2020-12-17T06:38:28.000Z
import pandas as pd t1 = pd.read_csv("lgb_pyst.csv") t2 = pd.read_csv("lgb_pyst_Keras_4_0.967189916545.csv") t2['click'] = t2['click']*0.8 +t1['click']*0.2 t2.to_csv('avg_lgb_pyst_Keras_4_2_8.csv', index=False)
36.166667
56
0.709677
03164751d5342cd9db2b4cdcd3da0506cb134099
334
py
Python
studentManagementSystem/studentManagementSystem/apps/student/migrations/0021_remove_classroom_class_the_sorting.py
fanlianguo/systemStudent
9e5d7c2f1084208cb73d6f9481a37e7a0950e710
[ "MIT" ]
null
null
null
studentManagementSystem/studentManagementSystem/apps/student/migrations/0021_remove_classroom_class_the_sorting.py
fanlianguo/systemStudent
9e5d7c2f1084208cb73d6f9481a37e7a0950e710
[ "MIT" ]
null
null
null
studentManagementSystem/studentManagementSystem/apps/student/migrations/0021_remove_classroom_class_the_sorting.py
fanlianguo/systemStudent
9e5d7c2f1084208cb73d6f9481a37e7a0950e710
[ "MIT" ]
null
null
null
# Generated by Django 3.2.8 on 2021-11-29 14:33 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('student', '0020_thesorting'), ] operations = [ migrations.RemoveField( model_name='classroom', name='class_The_sorting', ...
18.555556
47
0.598802
17e408f0434f62725acd00a3dc445a1a4275e36b
377
py
Python
Python-Advanced/functions_advanced_exercise/negative_vs_positive.py
Xamaneone/SoftUni-Intro
985fe3249cd2adf021c2003372e840219811d989
[ "MIT" ]
null
null
null
Python-Advanced/functions_advanced_exercise/negative_vs_positive.py
Xamaneone/SoftUni-Intro
985fe3249cd2adf021c2003372e840219811d989
[ "MIT" ]
null
null
null
Python-Advanced/functions_advanced_exercise/negative_vs_positive.py
Xamaneone/SoftUni-Intro
985fe3249cd2adf021c2003372e840219811d989
[ "MIT" ]
null
null
null
numbers = list(map(int, input().split())) sum_of_positive = sum(filter(lambda num: num > 0, numbers)) sum_of_negative = sum(filter(lambda num: num < 0, numbers)) print(sum_of_negative) print(sum_of_positive) if abs(sum_of_negative) > sum_of_positive: print("The negatives are stronger than the positives") else: ...
31.416667
59
0.748011
33991fa68417e3cdf565055f2c5b923f83c6d1cd
1,337
py
Python
mlflow/utils/mlflow_tags.py
akarloff/mlflow
be9774a76b4b6dcdb8cc2147a93d7c8676438292
[ "Apache-2.0" ]
1
2020-10-11T15:21:37.000Z
2020-10-11T15:21:37.000Z
mlflow/utils/mlflow_tags.py
akarloff/mlflow
be9774a76b4b6dcdb8cc2147a93d7c8676438292
[ "Apache-2.0" ]
9
2020-03-04T22:56:46.000Z
2022-03-02T07:10:46.000Z
mlflow/utils/mlflow_tags.py
akarloff/mlflow
be9774a76b4b6dcdb8cc2147a93d7c8676438292
[ "Apache-2.0" ]
1
2019-12-28T18:30:31.000Z
2019-12-28T18:30:31.000Z
""" File containing all of the run tags in the mlflow. namespace. See the REST API documentation for information on the meaning of these tags. """ MLFLOW_RUN_NAME = "mlflow.runName" MLFLOW_PARENT_RUN_ID = "mlflow.parentRunId" MLFLOW_USER = "mlflow.user" MLFLOW_SOURCE_TYPE = "mlflow.source.type" MLFLOW_SOURCE_NAME = "...
44.566667
96
0.824981
42742308d44f476e777c2d1f3ac1d2cd67ed2650
4,615
py
Python
src/simplified_ftp/client.py
FallingSnow/simplified-ftp
4878c1440ec8553ab27911f04b443486d2930aec
[ "MIT" ]
null
null
null
src/simplified_ftp/client.py
FallingSnow/simplified-ftp
4878c1440ec8553ab27911f04b443486d2930aec
[ "MIT" ]
5
2018-12-18T23:15:54.000Z
2021-06-01T23:19:37.000Z
src/simplified_ftp/client.py
FallingSnow/simplified-ftp
4878c1440ec8553ab27911f04b443486d2930aec
[ "MIT" ]
null
null
null
from threading import Thread from message import Message, MessageType import queue import socket import select import os def read(file, offset, size): file.seek(offset) fileBuffer = file.read(size) offset += len(fileBuffer) return offset, fileBuffer class Client: def __init__(self, logger, confi...
34.440299
92
0.537595
e15ea1bbfa3eabcb330206ec7e30aa5a8bc8ae56
578
py
Python
classy/migrations/0006_auto_20190529_1109.py
Krocodial/classy
01bc87d8017e9d0628e26d2b2f10e0da66d35314
[ "Apache-2.0" ]
null
null
null
classy/migrations/0006_auto_20190529_1109.py
Krocodial/classy
01bc87d8017e9d0628e26d2b2f10e0da66d35314
[ "Apache-2.0" ]
12
2019-03-19T18:16:55.000Z
2022-02-10T08:28:46.000Z
classy/migrations/0006_auto_20190529_1109.py
Krocodial/classy
01bc87d8017e9d0628e26d2b2f10e0da66d35314
[ "Apache-2.0" ]
1
2018-03-17T02:49:15.000Z
2018-03-17T02:49:15.000Z
# Generated by Django 2.1.8 on 2019-05-29 18:09 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('classy', '0005_auto_20190528_1618'), ] operations = [ migrations.RemoveField( model_name='completed_task', name='user', ...
20.642857
47
0.536332
c400738d5fca5abbc3a83375dfb34e4ee46c5101
1,736
py
Python
utils/init.py
frank-xwang/debiased-pseudo-labeling
a454dbc3a67eca323c57cba889a2828fca7dd72f
[ "MIT" ]
13
2022-03-02T02:59:52.000Z
2022-03-24T07:30:49.000Z
utils/init.py
frank-xwang/debiased-pseudo-labeling
a454dbc3a67eca323c57cba889a2828fca7dd72f
[ "MIT" ]
null
null
null
utils/init.py
frank-xwang/debiased-pseudo-labeling
a454dbc3a67eca323c57cba889a2828fca7dd72f
[ "MIT" ]
null
null
null
import torch.nn as nn def c2_xavier_fill(module: nn.Module) -> None: """ Initialize `module.weight` using the "XavierFill" implemented in Caffe2. Also initializes `module.bias` to 0. Args: module (torch.nn.Module): module to initialize. """ # Caffe2 implementation of XavierFill in fact...
33.384615
93
0.635369
fc92b09b37ce15fc26f64811f15adf8a45e8a580
4,007
py
Python
tensorflow_probability/python/bijectors/gumbel.py
ValentinMouret/probability
7ea6cc55e5b3fed04372cd188cd0764e92fd3cf4
[ "Apache-2.0" ]
1
2020-04-29T11:29:25.000Z
2020-04-29T11:29:25.000Z
tensorflow_probability/python/bijectors/gumbel.py
ValentinMouret/probability
7ea6cc55e5b3fed04372cd188cd0764e92fd3cf4
[ "Apache-2.0" ]
null
null
null
tensorflow_probability/python/bijectors/gumbel.py
ValentinMouret/probability
7ea6cc55e5b3fed04372cd188cd0764e92fd3cf4
[ "Apache-2.0" ]
1
2020-07-04T21:37:20.000Z
2020-07-04T21:37:20.000Z
# Copyright 2018 The TensorFlow Probability 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 o...
34.247863
80
0.640629
d650badcd7a8570b948e2e049ee1892fd1db3ab3
1,472
py
Python
catalog/forms.py
bykoviu/Site
9ea603c8a2c612146e5b47d2f6a26232e302fa1e
[ "CC0-1.0" ]
null
null
null
catalog/forms.py
bykoviu/Site
9ea603c8a2c612146e5b47d2f6a26232e302fa1e
[ "CC0-1.0" ]
null
null
null
catalog/forms.py
bykoviu/Site
9ea603c8a2c612146e5b47d2f6a26232e302fa1e
[ "CC0-1.0" ]
null
null
null
from django.core.exceptions import ValidationError from django.utils.translation import ugettext_lazy as _ import datetime # for checking renewal date range. from django.contrib.auth.models import User from django import forms class RenewBookForm(forms.Form): """Form for a librarian to renew books.""" renew...
35.902439
84
0.669837
60c3e9ffb9ed2500378a1170d47632b6e88bb106
7,547
py
Python
test/functional/eurekacoin_dgp_block_size_restart.py
KeerthanaRamalingam/Coin18
180dde33ee0b9998313cc20386e56e745619235d
[ "MIT" ]
null
null
null
test/functional/eurekacoin_dgp_block_size_restart.py
KeerthanaRamalingam/Coin18
180dde33ee0b9998313cc20386e56e745619235d
[ "MIT" ]
null
null
null
test/functional/eurekacoin_dgp_block_size_restart.py
KeerthanaRamalingam/Coin18
180dde33ee0b9998313cc20386e56e745619235d
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 from test_framework.test_framework import BitcoinTestFramework from test_framework.util import * from test_framework.script import * from test_framework.mininode import * from test_framework.eurekacoin import * from test_framework.address import * from test_framework.blocktools import * import s...
59.425197
1,382
0.781635
bab1978fc38f5a9af6cb99d5a1c5c6ddd99daf0a
2,153
py
Python
salt/modules/event.py
skrobul/salt
ef7fb71082cce7a9783e00b9c65062fefae09263
[ "Apache-2.0" ]
2
2017-09-17T21:10:35.000Z
2019-08-26T03:00:12.000Z
salt/modules/event.py
skrobul/salt
ef7fb71082cce7a9783e00b9c65062fefae09263
[ "Apache-2.0" ]
null
null
null
salt/modules/event.py
skrobul/salt
ef7fb71082cce7a9783e00b9c65062fefae09263
[ "Apache-2.0" ]
3
2021-02-23T08:12:48.000Z
2021-02-23T08:13:13.000Z
# -*- coding: utf-8 -*- ''' Use the :doc:`Salt Event System </topics/event/index>` to fire events from the master to the minion and vice-versa. ''' # Import salt libs import salt.crypt import salt.utils.event import salt.payload import salt.transport __proxyenabled__ = ['*'] def fire_master(data, tag, preload=None)...
26.9125
90
0.564329
bfcdb932a4fcc23638ca0785e5a910456ec1f30b
3,405
py
Python
deepqa2/dataset/cornelldata.py
Samurais/DeepQA2
23114a2278ffc966a02f8f0209350a338b2692b7
[ "Apache-2.0" ]
95
2017-01-27T11:56:25.000Z
2017-08-17T01:54:04.000Z
deepqa2/dataset/cornelldata.py
Samurais/DeepQA2
23114a2278ffc966a02f8f0209350a338b2692b7
[ "Apache-2.0" ]
12
2017-02-14T03:34:39.000Z
2017-05-24T08:29:20.000Z
deepqa2/dataset/cornelldata.py
Samurais/DeepQA2
23114a2278ffc966a02f8f0209350a338b2692b7
[ "Apache-2.0" ]
31
2017-02-04T09:18:25.000Z
2017-08-16T16:10:32.000Z
# Copyright 2015 Conchylicultor. All Rights Reserved. # Modifications copyright (C) 2017 Hai Liang Wang # 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/LI...
31.238532
80
0.555947
2980f5c360670730c41d68303a94b8b322143ed6
1,147
py
Python
tools/scripts/create_testdata_flqt.py
tomas-pluskal/openms
136ec9057435f6d45d65a8e1465b2a6cff9621a8
[ "Zlib", "Apache-2.0" ]
1
2018-03-06T14:12:09.000Z
2018-03-06T14:12:09.000Z
tools/scripts/create_testdata_flqt.py
tomas-pluskal/openms
136ec9057435f6d45d65a8e1465b2a6cff9621a8
[ "Zlib", "Apache-2.0" ]
null
null
null
tools/scripts/create_testdata_flqt.py
tomas-pluskal/openms
136ec9057435f6d45d65a8e1465b2a6cff9621a8
[ "Zlib", "Apache-2.0" ]
null
null
null
import pyopenms import sys """ Producing the test data for TOPP_FeatureLinkerUnlabeledQT_5 and TOPP_FeatureLinkerUnlabeledQT_6 """ fmaps = [ pyopenms.FeatureMap() for i in range(3)] pepids = [] pepseq = ["PEPTIDEA", "PEPTIDEK", "PEPTIDER"] for s in pepseq: pepid = pyopenms.PeptideIdentification() hit = pyope...
32.771429
99
0.684394
3f28e47abc28d677439fb7a5e1a0b989b46a1a46
5,067
py
Python
datadog_checks_dev/datadog_checks/dev/tooling/signing.py
szibis/integrations-core
e8eb6484a7aea40f5919929e02608cbe4babaacf
[ "BSD-3-Clause" ]
null
null
null
datadog_checks_dev/datadog_checks/dev/tooling/signing.py
szibis/integrations-core
e8eb6484a7aea40f5919929e02608cbe4babaacf
[ "BSD-3-Clause" ]
null
null
null
datadog_checks_dev/datadog_checks/dev/tooling/signing.py
szibis/integrations-core
e8eb6484a7aea40f5919929e02608cbe4babaacf
[ "BSD-3-Clause" ]
null
null
null
# (C) Datadog, Inc. 2018-present # All rights reserved # Licensed under a 3-clause BSD style license (see LICENSE) # flake8: noqa import json import os import shutil # How long ddev will wait for GPG to finish, especially when asking dev for signature. import securesystemslib.settings securesystemslib.settings.SUBPROC...
32.690323
112
0.665877
8b4eb9b3206fca69d2614a80381b265eeceeec13
2,726
py
Python
src/apexpy/__main__.py
scivision/apexpy
a2e919fd9ea9a65d49c4c22c9eb030c8ccf48386
[ "MIT" ]
null
null
null
src/apexpy/__main__.py
scivision/apexpy
a2e919fd9ea9a65d49c4c22c9eb030c8ccf48386
[ "MIT" ]
null
null
null
src/apexpy/__main__.py
scivision/apexpy
a2e919fd9ea9a65d49c4c22c9eb030c8ccf48386
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """Entry point for the CLI""" from __future__ import division, absolute_import import sys import argparse import datetime as dt import numpy as np import apexpy try: # Python 3 STDIN = sys.stdin.buffer STDOUT = sys.stdout.buffer except AttributeError: # Python 2 STDIN = ...
37.861111
79
0.588041
ca5f48f1437ef7f8b20ec6f78df89d887533e2b1
6,903
py
Python
scipy_central/person/models.py
wqshi/test
63dc0c684ec749cd03e9c071176f30f439188f14
[ "BSD-3-Clause" ]
7
2016-02-03T12:44:33.000Z
2020-08-26T09:22:23.000Z
scipy_central/person/models.py
wqshi/test
63dc0c684ec749cd03e9c071176f30f439188f14
[ "BSD-3-Clause" ]
19
2015-01-20T11:27:22.000Z
2017-09-23T22:26:18.000Z
scipy_central/person/models.py
wqshi/test
63dc0c684ec749cd03e9c071176f30f439188f14
[ "BSD-3-Clause" ]
9
2015-01-03T02:56:33.000Z
2021-02-20T10:45:11.000Z
from django.contrib.auth.models import User from django.db import models from scipy_central.utils import unique_slugify from registration.backends.default import DefaultBackend from django.contrib.sites.models import Site from django.contrib.sites.models import RequestSite from registration import signals from registra...
40.605882
92
0.642764
a5693ac33b4baab93a673d49b6bc748737475c86
919
py
Python
getevents.py
crycookie/alienvault-vertica-plugin
1df71df300bfe3bb23dc086729347d3dc4df0f78
[ "Apache-2.0" ]
null
null
null
getevents.py
crycookie/alienvault-vertica-plugin
1df71df300bfe3bb23dc086729347d3dc4df0f78
[ "Apache-2.0" ]
null
null
null
getevents.py
crycookie/alienvault-vertica-plugin
1df71df300bfe3bb23dc086729347d3dc4df0f78
[ "Apache-2.0" ]
null
null
null
import vconfig import vertica_python import re conn_inf = vconfig.conn_info with vertica_python.connect(**conn_inf) as connection: cur = connection.cursor() cur.execute('select login_timestamp, database_name, user_name, client_hostname, client_pid, authentication_method, reason from login_failures where date(l...
51.055556
223
0.653972
0be443855ec3cb27bab8e9f4dbf7c96b3230a447
1,069
py
Python
gr-tash/cmake-build-debug/get_swig_deps.py
tagsys/tash2
21cd366300207a630fb5bf943de4759bfbf070b4
[ "MIT" ]
6
2019-10-31T10:02:49.000Z
2022-03-03T21:42:19.000Z
gr-tash/cmake-build-debug/get_swig_deps.py
tagsys/tash2
21cd366300207a630fb5bf943de4759bfbf070b4
[ "MIT" ]
1
2016-06-01T10:55:03.000Z
2016-06-01T10:55:03.000Z
gr-tash/cmake-build-debug/get_swig_deps.py
tagsys/tash2
21cd366300207a630fb5bf943de4759bfbf070b4
[ "MIT" ]
2
2022-01-03T07:59:44.000Z
2022-01-30T11:25:21.000Z
import os, sys, re i_include_matcher = re.compile('%(include|import)\s*[<|"](.*)[>|"]') h_include_matcher = re.compile('#(include)\s*[<|"](.*)[>|"]') include_dirs = sys.argv[2].split(';') def get_swig_incs(file_path): if file_path.endswith('.i'): matcher = i_include_matcher else: matcher = h_include_matcher...
34.483871
68
0.641721
42d0697d5088cd1b154f1134ea679b8aaac0aade
29,141
py
Python
mathopt/optimize_terms.py
CalebBell/mathopt
bd3315b06ce599187f29beeb047653f400920c4e
[ "MIT" ]
4
2020-10-11T23:38:52.000Z
2022-03-04T07:41:44.000Z
mathopt/optimize_terms.py
CalebBell/mathopt
bd3315b06ce599187f29beeb047653f400920c4e
[ "MIT" ]
null
null
null
mathopt/optimize_terms.py
CalebBell/mathopt
bd3315b06ce599187f29beeb047653f400920c4e
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """Chemical Engineering Design Library (ChEDL). Utilities for process modeling. Copyright (C) 2020 Caleb Bell <Caleb.Andrew.Bell@gmail.com> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal ...
44.15303
510
0.620226
16b285de32ea00c54cd4ccb45590d845376b9d5c
954
py
Python
migrations/versions/https:/github.com/jackycsl/flask-social-blog-app/blob/master/migrations/versions/01e41800c983_followers.py
katono254/Blog-post
c4f5abced5e87f72656d56217fb09f08bd937158
[ "MIT" ]
null
null
null
migrations/versions/https:/github.com/jackycsl/flask-social-blog-app/blob/master/migrations/versions/01e41800c983_followers.py
katono254/Blog-post
c4f5abced5e87f72656d56217fb09f08bd937158
[ "MIT" ]
3
2020-03-24T18:07:31.000Z
2021-02-02T22:25:51.000Z
migrations/versions/https:/github.com/jackycsl/flask-social-blog-app/blob/master/migrations/versions/01e41800c983_followers.py
katono254/Blog-post
c4f5abced5e87f72656d56217fb09f08bd937158
[ "MIT" ]
null
null
null
"""followers Revision ID: 01e41800c983 Revises: 97d69de2f504 Create Date: 2017-12-29 18:47:39.002552 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = '01e41800c983' down_revision = '97d69de2f504' branch_labels = None depends_on = None def upgrade(): # ### co...
28.909091
65
0.685535
8f9435bdb60599ec1edbff0c75952bcd2dfb422c
1,404
py
Python
evidently/runner/runner.py
Pakard1/evidently
cae39cafb557a6611d2a5621a610e4e608b6b546
[ "Apache-2.0" ]
2,212
2020-11-26T11:47:56.000Z
2022-03-31T15:55:02.000Z
evidently/runner/runner.py
Pakard1/evidently
cae39cafb557a6611d2a5621a610e4e608b6b546
[ "Apache-2.0" ]
99
2020-12-10T09:44:33.000Z
2022-03-31T17:57:26.000Z
evidently/runner/runner.py
Pakard1/evidently
cae39cafb557a6611d2a5621a610e4e608b6b546
[ "Apache-2.0" ]
205
2020-11-26T21:43:43.000Z
2022-03-28T04:51:17.000Z
import logging from typing import Optional, Dict from dataclasses import dataclass from evidently.runner.loader import DataLoader, SamplingOptions, DataOptions @dataclass class RunnerOptions: reference_data_path: str reference_data_options: DataOptions reference_data_sampling: Optional[SamplingOptions] ...
34.243902
77
0.665954
54fd83ec293e93a40c1dcfd2f3ae25b9b6740d95
3,324
py
Python
selfdrive/car/subaru/interface.py
chkur6/ArnePilot
aa594eb466283534baae9aa7012d7e5bf17c6872
[ "MIT" ]
1
2020-06-09T16:56:34.000Z
2020-06-09T16:56:34.000Z
selfdrive/car/subaru/interface.py
drleuk/ArnePilot
10561c7149c6566159f974403b53f134c55e8071
[ "MIT" ]
null
null
null
selfdrive/car/subaru/interface.py
drleuk/ArnePilot
10561c7149c6566159f974403b53f134c55e8071
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 from cereal import car, arne182 from selfdrive.config import Conversions as CV from selfdrive.car.subaru.values import CAR from selfdrive.car import STD_CARGO_KG, scale_rot_inertia, scale_tire_stiffness, gen_empty_fingerprint from selfdrive.car.interfaces import CarInterfaceBase class CarInterfa...
39.105882
124
0.724729
a52500ceed4c9b2f0101623637951895ccc445fa
103
py
Python
backend/modules/privacy_policy/admin.py
crowdbotics-apps/my-new-app-31789
c5513ad2df9e73707871e1c10c6768a93690f9a7
[ "FTL", "AML", "RSA-MD" ]
null
null
null
backend/modules/privacy_policy/admin.py
crowdbotics-apps/my-new-app-31789
c5513ad2df9e73707871e1c10c6768a93690f9a7
[ "FTL", "AML", "RSA-MD" ]
14
2021-08-23T02:26:18.000Z
2021-10-05T05:42:38.000Z
backend/modules/privacy_policy/admin.py
crowdbotics-apps/my-new-app-31789
c5513ad2df9e73707871e1c10c6768a93690f9a7
[ "FTL", "AML", "RSA-MD" ]
null
null
null
from django.contrib import admin from .models import PrivacyPolicy admin.site.register(PrivacyPolicy)
20.6
34
0.84466
1814214786877387f5ed2f93f9bd222272909f11
4,799
py
Python
grupa/views.py
szymanskirafal/ab
2e882a4222d0c0e5a0bfd7fdc7150275aeb20960
[ "MIT" ]
null
null
null
grupa/views.py
szymanskirafal/ab
2e882a4222d0c0e5a0bfd7fdc7150275aeb20960
[ "MIT" ]
2
2020-06-05T18:44:22.000Z
2021-06-10T20:38:20.000Z
grupa/views.py
szymanskirafal/ab
2e882a4222d0c0e5a0bfd7fdc7150275aeb20960
[ "MIT" ]
null
null
null
from django.http import HttpResponseRedirect from django.shortcuts import render from django.core.urlresolvers import reverse from django.contrib.auth.decorators import login_required from django.contrib.auth.models import Group, User from .forms import DeleteGroupForm, NewGroupForm, NewMemberForm, MemberForm from ...
29.807453
106
0.64826
bf031c091168eb62867c02a948013f7c3345d240
5,883
py
Python
tests/read_group_genomic_file/test_read_group_genomic_file_resources.py
ConnorBarnhill/kf-api-dataservice
547df467a307788882469a25c947a14965a26336
[ "Apache-2.0" ]
6
2018-01-25T13:49:24.000Z
2020-03-07T16:25:09.000Z
tests/read_group_genomic_file/test_read_group_genomic_file_resources.py
ConnorBarnhill/kf-api-dataservice
547df467a307788882469a25c947a14965a26336
[ "Apache-2.0" ]
369
2018-01-17T15:22:18.000Z
2022-03-10T19:14:56.000Z
tests/read_group_genomic_file/test_read_group_genomic_file_resources.py
ConnorBarnhill/kf-api-dataservice
547df467a307788882469a25c947a14965a26336
[ "Apache-2.0" ]
3
2018-04-11T14:18:37.000Z
2018-10-31T19:09:48.000Z
import json from datetime import datetime from flask import url_for from dateutil import parser, tz from dataservice.extensions import db from dataservice.api.read_group.models import ( ReadGroup, ReadGroupGenomicFile ) from dataservice.api.genomic_file.models import GenomicFile from tests.utils import Indexd...
35.654545
67
0.5436
8906f11c807a8dcb10396f9afd88af6aaedf8341
3,937
py
Python
contrail_api_cli_extra/clean/refs.py
Ya-S/contrail-api-cli-extra
2ebe996523d2eb22991a9078d8997a52ccd1af38
[ "MIT" ]
1
2020-03-08T12:15:01.000Z
2020-03-08T12:15:01.000Z
contrail_api_cli_extra/clean/refs.py
Ya-S/contrail-api-cli-extra
2ebe996523d2eb22991a9078d8997a52ccd1af38
[ "MIT" ]
1
2017-03-28T09:33:26.000Z
2017-03-28T10:18:37.000Z
contrail_api_cli_extra/clean/refs.py
Ya-S/contrail-api-cli-extra
2ebe996523d2eb22991a9078d8997a52ccd1af38
[ "MIT" ]
2
2017-03-28T09:13:42.000Z
2019-01-16T14:06:26.000Z
# -*- coding: utf-8 -*- from __future__ import unicode_literals from sys import exit import argparse from pycassa import ConnectionPool, ColumnFamily from contrail_api_cli.command import Option, Arg from contrail_api_cli.utils import printo from ..utils import server_type, CheckCommand class CleanRefs(CheckCommand...
40.173469
155
0.623317
952a95c67d60302331d64830740323265f46bc81
30,659
py
Python
mne/minimum_norm/time_frequency.py
stevemats/mne-python
47051833f21bb372d60afc3adbf4305648ac7f69
[ "BSD-3-Clause" ]
2
2020-05-11T13:34:36.000Z
2020-05-28T19:43:21.000Z
mne/minimum_norm/time_frequency.py
LiFeng-SECUC/mne-python
732bb1f994e64e41a8e95dcc10dc98c22cac95c0
[ "BSD-3-Clause" ]
8
2018-03-03T19:59:16.000Z
2020-10-14T11:00:33.000Z
mne/minimum_norm/time_frequency.py
LiFeng-SECUC/mne-python
732bb1f994e64e41a8e95dcc10dc98c22cac95c0
[ "BSD-3-Clause" ]
4
2017-08-14T18:03:22.000Z
2021-03-04T06:55:29.000Z
# Authors: Alexandre Gramfort <alexandre.gramfort@inria.fr> # Martin Luessi <mluessi@nmr.mgh.harvard.edu> # # License: BSD-3-Clause import numpy as np from ..epochs import Epochs, make_fixed_length_events from ..evoked import EvokedArray from ..io.constants import FIFF from ..io.pick import pick_info from .....
38.710859
86
0.609609
ee4e581f1b082faf6cad5a77d0522ea35aa1d441
1,696
py
Python
gen/blink/bindings/scripts/lextab.py
wenfeifei/miniblink49
2ed562ff70130485148d94b0e5f4c343da0c2ba4
[ "Apache-2.0" ]
5,964
2016-09-27T03:46:29.000Z
2022-03-31T16:25:27.000Z
gen/blink/bindings/scripts/lextab.py
w4454962/miniblink49
b294b6eacb3333659bf7b94d670d96edeeba14c0
[ "Apache-2.0" ]
459
2016-09-29T00:51:38.000Z
2022-03-07T14:37:46.000Z
gen/blink/bindings/scripts/lextab.py
w4454962/miniblink49
b294b6eacb3333659bf7b94d670d96edeeba14c0
[ "Apache-2.0" ]
1,006
2016-09-27T05:17:27.000Z
2022-03-30T02:46:51.000Z
# lextab.py. This file automatically created by PLY (version 3.4). Don't edit! _tabversion = '3.4' _lextokens = {'EXCEPTION': 1, 'SHORT': 1, 'CONST': 1, 'SETLIKE': 1, 'MAPLIKE': 1, 'VOID': 1, 'float': 1, 'NAN': 1, 'STATIC': 1, 'REGEXP': 1, 'DATE': 1, 'NULL': 1, 'TRUE': 1, 'SETTER': 1, 'DOMSTRING': 1, 'CREATOR': ...
169.6
787
0.556014
1402388830459a3db2605d8cc8d61029414bd4bc
798
py
Python
dynfc/phDiff.py
CoDe-Neuro/dynfc
92ef8c41ab9c62f6a27fbec9192d2efeee98cc7c
[ "MIT" ]
null
null
null
dynfc/phDiff.py
CoDe-Neuro/dynfc
92ef8c41ab9c62f6a27fbec9192d2efeee98cc7c
[ "MIT" ]
3
2021-02-06T21:09:16.000Z
2021-02-09T22:53:12.000Z
dynfc/phDiff.py
CoDe-Neuro/dynfc
92ef8c41ab9c62f6a27fbec9192d2efeee98cc7c
[ "MIT" ]
null
null
null
from numpy import cos def phDiff(a, b): """Cosine of phase difference. This function estimates the phase difference of the two entries and its cosine. $$PL = \cos{(a - b)}$$ Args: a (double): Phase 1 in $\pi$ rad. b (double): Phase 2 in $\pi$ rad. Returns: double: Cosine...
21.567568
83
0.536341
756e361b39555c1159102f41181a391d2ee33cff
21,229
py
Python
mypy_boto3_builder/parsers/shape_parser.py
jbpratt78/mypy_boto3_builder
be4020782369b34e35f3b6a2117f00d947f3ae24
[ "MIT" ]
null
null
null
mypy_boto3_builder/parsers/shape_parser.py
jbpratt78/mypy_boto3_builder
be4020782369b34e35f3b6a2117f00d947f3ae24
[ "MIT" ]
null
null
null
mypy_boto3_builder/parsers/shape_parser.py
jbpratt78/mypy_boto3_builder
be4020782369b34e35f3b6a2117f00d947f3ae24
[ "MIT" ]
null
null
null
""" Parser for botocore shape files. """ from typing import Dict, List, Any, Optional from boto3.session import Session from boto3.resources.model import Collection from botocore.exceptions import UnknownServiceError from botocore import xform_name from botocore.session import Session as BotocoreSession from botocore....
36.538726
96
0.610862
b38bb958c15f8e1bddf3d7215c35122dc8601b4d
538
py
Python
878787.py
zhangbo2008/howToOcrByCurl
185325c56f205b759b9aeb215257cf182a18fae4
[ "MIT" ]
null
null
null
878787.py
zhangbo2008/howToOcrByCurl
185325c56f205b759b9aeb215257cf182a18fae4
[ "MIT" ]
null
null
null
878787.py
zhangbo2008/howToOcrByCurl
185325c56f205b759b9aeb215257cf182a18fae4
[ "MIT" ]
null
null
null
# python 异步 if 0: import time def hello(): time.sleep(1) def run(): for i in range(5): hello() print('Hello World:%s' % time.time()) # 任何伟大的代码都是从Hello World 开始的! if __name__ == '__main__': run() if 1: import time import asyncio # 定义异步函数 async def hello(...
13.121951
77
0.563197