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
d736949b59153dcc0e4c4d3472e58423cffa5c71
754
py
Python
circuit_mapper/gate_1_qubit.py
quantumgenetics/quantumgenetics
630ae5a47c887ecf7a3b4ad62de0d58dc944a42d
[ "Apache-2.0" ]
6
2019-11-09T16:59:29.000Z
2021-03-27T03:20:24.000Z
circuit_mapper/gate_1_qubit.py
quantumgenetics/quantumgenetics
630ae5a47c887ecf7a3b4ad62de0d58dc944a42d
[ "Apache-2.0" ]
null
null
null
circuit_mapper/gate_1_qubit.py
quantumgenetics/quantumgenetics
630ae5a47c887ecf7a3b4ad62de0d58dc944a42d
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 from functools import partial
18.85
69
0.68435
d736eacec6de3c37305776ffe4de524fa9c56eb4
739
py
Python
stronghold/tests/testmixins.py
davitovmasyan/django-stronghold
73021742e9aad5c57509623c1152fcf7aa6ed232
[ "MIT" ]
252
2015-01-07T20:03:27.000Z
2022-03-22T18:17:28.000Z
stronghold/tests/testmixins.py
davitovmasyan/django-stronghold
73021742e9aad5c57509623c1152fcf7aa6ed232
[ "MIT" ]
35
2015-02-16T02:29:22.000Z
2021-10-04T09:14:11.000Z
stronghold/tests/testmixins.py
davitovmasyan/django-stronghold
73021742e9aad5c57509623c1152fcf7aa6ed232
[ "MIT" ]
48
2015-02-15T17:56:52.000Z
2021-10-04T12:33:27.000Z
from stronghold.views import StrongholdPublicMixin import django from django.views.generic import View from django.views.generic.base import TemplateResponseMixin if django.VERSION[:2] < (1, 9): from django.utils import unittest else: import unittest
26.392857
75
0.760487
d73791489c7b8c6e1b619f76a8345efe1855108d
3,664
py
Python
app/utils/mapping.py
bbc/connected-data-pseudocone
452479cd44fa7d32ecb3d54b801da9024d6984ce
[ "MIT" ]
null
null
null
app/utils/mapping.py
bbc/connected-data-pseudocone
452479cd44fa7d32ecb3d54b801da9024d6984ce
[ "MIT" ]
5
2018-07-30T09:01:03.000Z
2019-01-16T11:16:39.000Z
app/utils/mapping.py
bbc/connected-data-pseudocone
452479cd44fa7d32ecb3d54b801da9024d6984ce
[ "MIT" ]
null
null
null
import datetime import logging import isodate from app import pseudocone_pb2 from app.settings import SERVICE_NAME logger = logging.getLogger(SERVICE_NAME) def action_context_to_iso8601_duration(action_context): """Process the actionContext string to ISO 8601 duration format. Example: "urn:bbc:tv:...
35.230769
116
0.684771
d738962bacfe335ff849bf213922ab2ef2a2a20b
445
py
Python
paper_iv/centrality_example.py
wiheto/phd_code
432cae1aa26f1758e5970fd11361af0e4a130b9d
[ "MIT" ]
2
2017-09-20T18:02:38.000Z
2017-09-22T09:52:17.000Z
paper_iv/centrality_example.py
wiheto/phd_code
432cae1aa26f1758e5970fd11361af0e4a130b9d
[ "MIT" ]
null
null
null
paper_iv/centrality_example.py
wiheto/phd_code
432cae1aa26f1758e5970fd11361af0e4a130b9d
[ "MIT" ]
null
null
null
import numpy as np import teneto import matplotlib.pyplot as plt plt.rcParams['image.cmap'] = 'gist_gray' A=np.zeros((3,3,20)) A[0,2,0:4]=1 A[0,1,0]=1 A[0,1,5]=1 A[0,1,10]=1 A[0,1,15]=1 fig,ax = plt.subplots(1) ax = teneto.plot.slice_plot(A,ax,vlabs=range(1,4),dlabs=range(1,21)) ax.set_ylabel('nodes') ax.set_xlab...
16.481481
68
0.692135
d738bec2f9d2cad3aaccf4ee4535837028c7758a
401
py
Python
examples/hsd_struct/src/hsd_struct_beh.py
hnikolov/pihdf
9a0d2add059db1ee90805e2124beff1fb5185fae
[ "MIT" ]
2
2016-09-25T00:08:47.000Z
2016-10-09T10:09:55.000Z
examples/hsd_struct/src/hsd_struct_beh.py
hnikolov/pihdf
9a0d2add059db1ee90805e2124beff1fb5185fae
[ "MIT" ]
null
null
null
examples/hsd_struct/src/hsd_struct_beh.py
hnikolov/pihdf
9a0d2add059db1ee90805e2124beff1fb5185fae
[ "MIT" ]
null
null
null
def hsd_struct_beh(mode_1, mode_2, LEDs, LED_rdy_en, LED_rdy_buff, LED_rdy_out, DELAY_BITS, BUFFER_SIZE): '''| | Specify the behavior, describe data processing; there is no notion | of clock. Access the in/out interfaces via get() and append() | methods. The "hsd_struct_beh" function does not return val...
40.1
105
0.720698
d73ac6fd3661cf82f0a73ee994c217dc326ae563
1,187
py
Python
tests/unit/test_non-lib_utils.py
DiwakerJha/acconeer-python-exploration
90cc2931c3f7336c1b75882f63e2de081fc72dbf
[ "BSD-3-Clause-Clear" ]
null
null
null
tests/unit/test_non-lib_utils.py
DiwakerJha/acconeer-python-exploration
90cc2931c3f7336c1b75882f63e2de081fc72dbf
[ "BSD-3-Clause-Clear" ]
null
null
null
tests/unit/test_non-lib_utils.py
DiwakerJha/acconeer-python-exploration
90cc2931c3f7336c1b75882f63e2de081fc72dbf
[ "BSD-3-Clause-Clear" ]
null
null
null
import sys from itertools import chain from pathlib import Path import pytest import acconeer.exptool as et HERE = Path(__file__).parent path = (HERE / ".." / ".." / "utils").resolve() sys.path.append(path.as_posix()) from convert_to_csv import record_to_csv # noqa: E402
31.236842
89
0.690817
d73b450d21d773f70afe8701a469d62e69a7223b
720
py
Python
pydis_site/apps/api/migrations/0055_reminder_mentions.py
Numerlor/site
e4cec0aeb2a791e622be8edd94fb4e82d150deab
[ "MIT" ]
700
2018-11-17T15:56:51.000Z
2022-03-30T22:53:17.000Z
pydis_site/apps/api/migrations/0055_reminder_mentions.py
Numerlor/site
e4cec0aeb2a791e622be8edd94fb4e82d150deab
[ "MIT" ]
542
2018-11-17T13:39:42.000Z
2022-03-31T11:24:00.000Z
pydis_site/apps/api/migrations/0055_reminder_mentions.py
Numerlor/site
e4cec0aeb2a791e622be8edd94fb4e82d150deab
[ "MIT" ]
178
2018-11-21T09:06:56.000Z
2022-03-31T07:43:28.000Z
# Generated by Django 2.2.14 on 2020-07-15 07:37 import django.contrib.postgres.fields import django.core.validators from django.db import migrations, models
34.285714
307
0.704167
d73cd16bb625739a1d37a63ac0f909083ac38bb7
1,951
py
Python
kantanoidc/views.py
mmiyajima2/django-kantanoidc
eb0540e61c27b301f4cb53bb29e6a853e90ee879
[ "MIT" ]
null
null
null
kantanoidc/views.py
mmiyajima2/django-kantanoidc
eb0540e61c27b301f4cb53bb29e6a853e90ee879
[ "MIT" ]
17
2019-02-18T02:55:42.000Z
2022-02-10T08:01:23.000Z
kantanoidc/views.py
mmiyajima2/django-kantanoidc
eb0540e61c27b301f4cb53bb29e6a853e90ee879
[ "MIT" ]
null
null
null
from logging import getLogger from django.http import HttpResponseRedirect from django.views.generic.base import View from django.contrib.auth import login from django.contrib.auth import get_user_model from django.urls import reverse from .client import client from .errors import IllegalStateError import string import...
34.22807
75
0.679651
d7400f4c43c756b05040a9e3afa28d7e32be9f5a
970
py
Python
hata/ext/extension_loader/client_extension.py
Multiface24111/hata
cd28f9ef158e347363669cc8d1d49db0ff41aba0
[ "0BSD" ]
173
2019-06-14T20:25:00.000Z
2022-03-21T19:36:10.000Z
hata/ext/extension_loader/client_extension.py
Tari-dev/hata
a5c3199c845858f997af3b0b2c18770fdc691897
[ "0BSD" ]
52
2020-01-03T17:05:14.000Z
2022-03-31T11:39:50.000Z
hata/ext/extension_loader/client_extension.py
Tari-dev/hata
a5c3199c845858f997af3b0b2c18770fdc691897
[ "0BSD" ]
47
2019-11-09T08:46:45.000Z
2022-03-31T14:33:34.000Z
__all__ = () from ...backend.utils import KeepType from ...discord.client import Client from .extension import EXTENSIONS, EXTENSION_STATE_LOADED
31.290323
100
0.593814
d74152884389e5fc3f13b32b2c1f5a681bd2affe
211
py
Python
org/miggy/setup.py
DarkSession/fd-api
e319000dd12ca88c3ddd736b739d904279f69b8b
[ "CC-BY-4.0" ]
20
2017-10-03T21:47:39.000Z
2022-01-27T21:06:53.000Z
org/miggy/setup.py
DarkSession/fd-api
e319000dd12ca88c3ddd736b739d904279f69b8b
[ "CC-BY-4.0" ]
1
2021-10-13T15:49:57.000Z
2021-11-05T18:58:21.000Z
org/miggy/setup.py
DarkSession/fd-api
e319000dd12ca88c3ddd736b739d904279f69b8b
[ "CC-BY-4.0" ]
7
2020-02-07T13:43:29.000Z
2022-03-26T13:13:55.000Z
# vim: textwidth=0 wrapmargin=0 tabstop=2 shiftwidth=2 softtabstop=2 smartindent smarttab from setuptools import setup, find_namespace_packages setup( name="org.miggy", packages=find_namespace_packages() )
26.375
89
0.805687
d742dd18740c02a1839bc5886575861c03728ccd
462
py
Python
day-04/part-1/badouralix.py
evqna/adventofcode-2020
526bb9c87057d02bda4de9647932a0e25bdb3a5b
[ "MIT" ]
12
2020-11-30T19:22:18.000Z
2021-06-21T05:55:58.000Z
day-04/part-1/badouralix.py
evqna/adventofcode-2020
526bb9c87057d02bda4de9647932a0e25bdb3a5b
[ "MIT" ]
13
2020-11-30T17:27:22.000Z
2020-12-22T17:43:13.000Z
day-04/part-1/badouralix.py
evqna/adventofcode-2020
526bb9c87057d02bda4de9647932a0e25bdb3a5b
[ "MIT" ]
3
2020-12-01T08:49:40.000Z
2022-03-26T21:47:38.000Z
from tool.runners.python import SubmissionPy
25.666667
73
0.519481
d74303560e27d9dbcb4f0ce7fc9475cbf09c4f3a
6,845
py
Python
s2e_env/manage.py
michaelbrownuc/s2e-env
4bd6a45bf1ec9456ed5acf5047b6aac3fcd19683
[ "BSD-3-Clause" ]
null
null
null
s2e_env/manage.py
michaelbrownuc/s2e-env
4bd6a45bf1ec9456ed5acf5047b6aac3fcd19683
[ "BSD-3-Clause" ]
null
null
null
s2e_env/manage.py
michaelbrownuc/s2e-env
4bd6a45bf1ec9456ed5acf5047b6aac3fcd19683
[ "BSD-3-Clause" ]
null
null
null
""" Copyright (c) Django Software Foundation and individual contributors. Copyright (c) Dependable Systems Laboratory, EPFL All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of sour...
35.466321
108
0.659752
d74324110a48059e49cab1877c123daa1cf09eba
1,658
py
Python
src/interface/vib_main.py
stembl/vibproc
2588ad7fad5309a0a56fe5ea3d0a0f4affd10911
[ "MIT" ]
null
null
null
src/interface/vib_main.py
stembl/vibproc
2588ad7fad5309a0a56fe5ea3d0a0f4affd10911
[ "MIT" ]
null
null
null
src/interface/vib_main.py
stembl/vibproc
2588ad7fad5309a0a56fe5ea3d0a0f4affd10911
[ "MIT" ]
null
null
null
## Main Program for Vibration Analysis with Pandas import sys, os import matplotlib.pyplot as plt #sys.path.append(os.path.join(os.path.dirname(__file__), "../tools/")) sys.path.append("../tools/") sys.path.append("../../data/") from open_file_folder import * from import_vib_data import * from data_features import ...
25.121212
70
0.740651
d74383d9925c9e5501ce517e56c8dbd310c32f9d
399
py
Python
Lesson 02 - Arrays/OddOccurrencesInArray_3.py
kourouklides/codility-python
0c193a3af3addd3d17a2b0eed6cd29ba6b396e9e
[ "Apache-2.0" ]
11
2018-06-05T03:04:22.000Z
2022-02-03T05:01:07.000Z
Lesson 02 - Arrays/OddOccurrencesInArray_3.py
kourouklides/codility-python
0c193a3af3addd3d17a2b0eed6cd29ba6b396e9e
[ "Apache-2.0" ]
null
null
null
Lesson 02 - Arrays/OddOccurrencesInArray_3.py
kourouklides/codility-python
0c193a3af3addd3d17a2b0eed6cd29ba6b396e9e
[ "Apache-2.0" ]
6
2020-04-23T07:18:22.000Z
2021-12-05T05:23:26.000Z
# you can write to stdout for debugging purposes, e.g. # print("this is a debug message")
22.166667
54
0.591479
d7442cc25fd608f9e2b752fac226f3d226409445
273
py
Python
MANN/Utils/similarities.py
jgyllinsky/How-to-Learn-from-Little-Data
3b7b481ac8aa376540a2ca1fff7046de9f86dad6
[ "MIT" ]
161
2017-05-06T01:37:30.000Z
2021-12-15T09:58:26.000Z
MANN/Utils/similarities.py
jgyllinsky/How-to-Learn-from-Little-Data
3b7b481ac8aa376540a2ca1fff7046de9f86dad6
[ "MIT" ]
8
2017-05-08T20:00:51.000Z
2018-05-28T01:16:30.000Z
MANN/Utils/similarities.py
jgyllinsky/How-to-Learn-from-Little-Data
3b7b481ac8aa376540a2ca1fff7046de9f86dad6
[ "MIT" ]
78
2017-05-06T03:27:31.000Z
2020-12-21T17:24:20.000Z
import tensorflow as tf
34.125
141
0.688645
d74569333a69434699769603bb8e6b9c55c7c51c
1,870
py
Python
PythonAPI/quickstart/03-raycast.py
MaisJamal/Apollo-BT-GP
4d8d721fa16b67e7ecefdd05d937b1153c000d63
[ "Apache-2.0" ]
null
null
null
PythonAPI/quickstart/03-raycast.py
MaisJamal/Apollo-BT-GP
4d8d721fa16b67e7ecefdd05d937b1153c000d63
[ "Apache-2.0" ]
null
null
null
PythonAPI/quickstart/03-raycast.py
MaisJamal/Apollo-BT-GP
4d8d721fa16b67e7ecefdd05d937b1153c000d63
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 # # Copyright (c) 2019 LG Electronics, Inc. # # This software contains code licensed as described in LICENSE. # import os import lgsvl sim = lgsvl.Simulator(os.environ.get("SIMULATOR_HOST", "127.0.0.1"), 8181) if sim.current_scene == "BorregasAve": sim.reset() else: sim.load("BorregasAve") ...
27.5
109
0.725668
d746595f48844a5e6d0dbe01d637017879e8559b
7,064
py
Python
app/run.py
mourgaya/iscsi_ihm
aadf09590a02f6f1e6b16b000c2a4380e015f840
[ "Apache-2.0" ]
null
null
null
app/run.py
mourgaya/iscsi_ihm
aadf09590a02f6f1e6b16b000c2a4380e015f840
[ "Apache-2.0" ]
null
null
null
app/run.py
mourgaya/iscsi_ihm
aadf09590a02f6f1e6b16b000c2a4380e015f840
[ "Apache-2.0" ]
null
null
null
#author : eric mourgya # import commands from flask import jsonify from flask import Flask, Response, request, redirect,session, url_for from flask.ext.login import LoginManager, UserMixin,login_required, login_user, logout_user #@app.after_request #def treat_as_plain_text(response): # response.headers["content-typ...
27.920949
98
0.614383
d7469f7f64e499f08213f3dd92d29492cf06e4a9
539
py
Python
src/config/defaults/sc2/config.py
ewanlee/mackrl
6dd505aa09830f16c35a022f67e255db935c807e
[ "Apache-2.0" ]
26
2019-10-28T09:01:45.000Z
2021-09-20T08:56:12.000Z
src/config/defaults/sc2/config.py
ewanlee/mackrl
6dd505aa09830f16c35a022f67e255db935c807e
[ "Apache-2.0" ]
1
2020-07-25T06:50:05.000Z
2020-07-25T06:50:05.000Z
src/config/defaults/sc2/config.py
ewanlee/mackrl
6dd505aa09830f16c35a022f67e255db935c807e
[ "Apache-2.0" ]
6
2019-12-18T12:02:57.000Z
2021-03-03T13:15:47.000Z
def get_cfg(existing_cfg, _log): """ generates """ _sanity_check(existing_cfg, _log) import ntpath, os, yaml with open(os.path.join(os.path.dirname(__file__), "{}.yml".format(ntpath.basename(__file__).split(".")[0])), 'r') as stream: try: ret = yaml.load(stream)...
29.944444
112
0.595547
d74820e3197a81d3b2193a0e7a959fc2f8c0c24d
1,191
py
Python
analyser/utils/data_loader.py
michigg/web-simultaneous-recording-tool
67db83f6e34d9cb726c69b4e448fed3604a43618
[ "MIT" ]
1
2022-03-30T09:45:25.000Z
2022-03-30T09:45:25.000Z
analyser/utils/data_loader.py
michigg/web-simultaneous-recording-tool
67db83f6e34d9cb726c69b4e448fed3604a43618
[ "MIT" ]
null
null
null
analyser/utils/data_loader.py
michigg/web-simultaneous-recording-tool
67db83f6e34d9cb726c69b4e448fed3604a43618
[ "MIT" ]
null
null
null
import glob import json import pandas as pd from models.analysis import Analysis from models.devices import Devices import logging logger = logging.getLogger(__name__)
32.189189
81
0.680101
d748a84338b8e8ea97ee055765e5c914d9d65349
320
py
Python
catstuff/tools/argparser.py
modora/catstuff
7a4ea67e26774e42e90d0c71a4b2c299fe506d73
[ "MIT" ]
null
null
null
catstuff/tools/argparser.py
modora/catstuff
7a4ea67e26774e42e90d0c71a4b2c299fe506d73
[ "MIT" ]
7
2017-12-16T06:16:56.000Z
2017-12-26T06:21:18.000Z
catstuff/tools/argparser.py
modora/catstuff
7a4ea67e26774e42e90d0c71a4b2c299fe506d73
[ "MIT" ]
null
null
null
import argparse, sys __version__ = '1.0.2'
24.615385
64
0.628125
d74a05fdbfc357bdb2194d73ae4809aafa378aee
9,565
py
Python
custom_components/google_home/sensor.py
tmttn/home-assistant-config
a707a95bb9458a267d7fbf21cde0464af99b5253
[ "MIT" ]
1
2022-01-01T20:07:21.000Z
2022-01-01T20:07:21.000Z
custom_components/google_home/sensor.py
tmttn/home-assistant-config
a707a95bb9458a267d7fbf21cde0464af99b5253
[ "MIT" ]
null
null
null
custom_components/google_home/sensor.py
tmttn/home-assistant-config
a707a95bb9458a267d7fbf21cde0464af99b5253
[ "MIT" ]
null
null
null
"""Sensor platform for Google Home""" from __future__ import annotations import logging import voluptuous as vol from homeassistant.config_entries import ConfigEntry from homeassistant.const import DEVICE_CLASS_TIMESTAMP, STATE_UNAVAILABLE from homeassistant.core import HomeAssistant from homeassistant.helpers impor...
30.657051
88
0.624255
d74aea35b8907c25e7a9565f11c2bcb6503f3a32
2,691
py
Python
ContinuumBenchmarks/MNIST/Continual-Learning-Benchmark/Plot.py
hikmatkhan/Continuum
83302753648e0d521d8b5f57edae5df4307c0a5c
[ "MIT" ]
null
null
null
ContinuumBenchmarks/MNIST/Continual-Learning-Benchmark/Plot.py
hikmatkhan/Continuum
83302753648e0d521d8b5f57edae5df4307c0a5c
[ "MIT" ]
null
null
null
ContinuumBenchmarks/MNIST/Continual-Learning-Benchmark/Plot.py
hikmatkhan/Continuum
83302753648e0d521d8b5f57edae5df4307c0a5c
[ "MIT" ]
null
null
null
import torch import pandas as pd # "Avg_NormalNN", Approaches = ["NormalNN", "EWC", "SI", "L2", "Naive_Rehearsal_1100", "Naive_Rehearsal_4400", "MAS", "GEM_1100", "GEM_4400" ] REPEAT = 10 OutDirPath = "/home/hikmat/Desktop/JWorkspace/CL/Continuum/ContinuumBenchmarks/MNIST/Conti...
38.442857
169
0.66741
d74be0e6efcefb06e3529cae5316490cf81fffce
130
py
Python
fmojinja/awk/__main__.py
Taro-Imahiro/fmojinja
5b2c4100e25bd198b1cf8ed44b37b1c4bb93d2ee
[ "MIT" ]
null
null
null
fmojinja/awk/__main__.py
Taro-Imahiro/fmojinja
5b2c4100e25bd198b1cf8ed44b37b1c4bb93d2ee
[ "MIT" ]
13
2021-07-06T07:03:58.000Z
2021-11-22T15:25:22.000Z
fmojinja/awk/__main__.py
Taro-Imahiro/fmojinja
5b2c4100e25bd198b1cf8ed44b37b1c4bb93d2ee
[ "MIT" ]
3
2021-06-26T19:40:34.000Z
2021-09-15T04:24:21.000Z
from ..mixin import SubCommands from .pdb_reformer import PdbReformer SubCommands.main_proc({ "pdb_reformer": PdbReformer })
18.571429
37
0.784615
d74c74f32a5497e7e19bbaa47aa3d3f1d06f9e90
848
py
Python
src/home_automation_hub/storage.py
levidavis/py-home
3cc30e19d506824de9816ad9dbcfba4338a7dfa8
[ "MIT" ]
26
2018-08-21T19:54:21.000Z
2021-10-15T18:59:17.000Z
src/home_automation_hub/storage.py
levidavis/py-home
3cc30e19d506824de9816ad9dbcfba4338a7dfa8
[ "MIT" ]
3
2020-01-23T03:54:24.000Z
2020-07-19T13:10:22.000Z
src/home_automation_hub/storage.py
levidavis/py-home
3cc30e19d506824de9816ad9dbcfba4338a7dfa8
[ "MIT" ]
11
2018-09-18T21:31:11.000Z
2021-07-03T11:23:30.000Z
import redis import json from . import config redis_instance = None
24.941176
96
0.659198
d74cb954739227c81cdf0acf2e81f09cf919377a
475
py
Python
example/abc-preview.py
lochbrunner/vscode-generic-binary-preview
9cc44089d9b51c9e8a64547f086c61bf86d20a0c
[ "MIT" ]
1
2022-02-26T20:29:40.000Z
2022-02-26T20:29:40.000Z
example/abc-preview.py
lochbrunner/vscode-generic-binary-preview
9cc44089d9b51c9e8a64547f086c61bf86d20a0c
[ "MIT" ]
1
2021-08-24T17:12:00.000Z
2021-08-24T17:12:23.000Z
example/abc-preview.py
lochbrunner/vscode-generic-binary-preview
9cc44089d9b51c9e8a64547f086c61bf86d20a0c
[ "MIT" ]
null
null
null
#!/usr/bin/env python import argparse import os import sys import pickle if __name__ == "__main__": parser = argparse.ArgumentParser() parser.add_argument('filename') args = parser.parse_args() if os.path.splitext(args.filename)[1] != '.abc': # We can not read this file type sys.exit(...
21.590909
52
0.612632
d74d3899741085d63737a7cf25e86b7c54dd0fdb
12,299
py
Python
obsolete/pipeline_mapping_benchmark.py
cdrakesmith/CGATPipelines
3c94ae4f9d87d51108255dc405c4b95af7c8b694
[ "MIT" ]
49
2015-04-13T16:49:25.000Z
2022-03-29T10:29:14.000Z
obsolete/pipeline_mapping_benchmark.py
cdrakesmith/CGATPipelines
3c94ae4f9d87d51108255dc405c4b95af7c8b694
[ "MIT" ]
252
2015-04-08T13:23:34.000Z
2019-03-18T21:51:29.000Z
obsolete/pipeline_mapping_benchmark.py
cdrakesmith/CGATPipelines
3c94ae4f9d87d51108255dc405c4b95af7c8b694
[ "MIT" ]
22
2015-05-21T00:37:52.000Z
2019-09-25T05:04:27.000Z
"""========================================= Read Mapping parameter titration pipeline ========================================= * align reads to the genome using a range of different parameters * calculate alignment statistics Requirements ------------ On top of the default CGAT setup, the pipeline requires ...
35.649275
197
0.462314
d74ea2281107cf74e2034caf7b92932a4e11e640
1,904
py
Python
user_Test.py
Robertokello11/Password-Locker
23afa9b2748044b523e33660e45f934a90d88328
[ "MIT" ]
null
null
null
user_Test.py
Robertokello11/Password-Locker
23afa9b2748044b523e33660e45f934a90d88328
[ "MIT" ]
null
null
null
user_Test.py
Robertokello11/Password-Locker
23afa9b2748044b523e33660e45f934a90d88328
[ "MIT" ]
null
null
null
import unittest #Import unittest module from user import user # importing the contact class if __name__ == '__main__': unittest.main()
25.72973
69
0.581408
d74f99009f7b23a8259c513299a6bb144a926283
4,881
py
Python
src/old/api_server.py
ssupdoc/k8-simulation
7834d3faaed3e86b547554c6228540c316621011
[ "CC0-1.0" ]
null
null
null
src/old/api_server.py
ssupdoc/k8-simulation
7834d3faaed3e86b547554c6228540c316621011
[ "CC0-1.0" ]
null
null
null
src/old/api_server.py
ssupdoc/k8-simulation
7834d3faaed3e86b547554c6228540c316621011
[ "CC0-1.0" ]
null
null
null
from src.deployment import Deployment from src.end_point import EndPoint from src.etcd import Etcd from src.pod import Pod from src.pid_controller import PIDController from src.request import Request from src.worker_node import WorkerNode import threading import random #The APIServer handles the communication between ...
36.699248
129
0.763983
d75199ae09fb507ebd0bec385de7a0580d95d595
1,946
py
Python
ngram_graphs/TextGraph/IGraphTextGraph.py
loginn/ngrams_graphs
74fc42d3895cdbc51eec5aaf7b5505b4432619e3
[ "MIT" ]
8
2018-04-24T17:03:29.000Z
2022-02-08T14:36:00.000Z
ngram_graphs/TextGraph/IGraphTextGraph.py
loginn/ngrams-graphs
74fc42d3895cdbc51eec5aaf7b5505b4432619e3
[ "MIT" ]
1
2019-08-13T08:50:54.000Z
2021-12-03T11:19:51.000Z
ngram_graphs/TextGraph/IGraphTextGraph.py
loginn/ngrams_graphs
74fc42d3895cdbc51eec5aaf7b5505b4432619e3
[ "MIT" ]
null
null
null
from igraph import Graph
38.92
108
0.631552
d751efb295d54d9e30bbe118adcaa7556e4e4646
67
py
Python
Python Crash Course/12_use_module.py
rfaria/full-stack-python
1e764d4a1468d849d20005846e49ff900787d1ed
[ "MIT" ]
1
2022-01-17T19:55:52.000Z
2022-01-17T19:55:52.000Z
Python Crash Course/12_use_module.py
rfaria/full-stack-python
1e764d4a1468d849d20005846e49ff900787d1ed
[ "MIT" ]
null
null
null
Python Crash Course/12_use_module.py
rfaria/full-stack-python
1e764d4a1468d849d20005846e49ff900787d1ed
[ "MIT" ]
null
null
null
import new_module as nm if __name__ == '__main__': nm.say_hi()
16.75
26
0.686567
d75247a3779551deda4745fa7b2623bb3e507eaf
619
py
Python
pyFiDEL/utils.py
sungcheolkim78/pyFiDEL
670067b12a2efd276e23382251ec612af678731f
[ "Apache-2.0" ]
null
null
null
pyFiDEL/utils.py
sungcheolkim78/pyFiDEL
670067b12a2efd276e23382251ec612af678731f
[ "Apache-2.0" ]
null
null
null
pyFiDEL/utils.py
sungcheolkim78/pyFiDEL
670067b12a2efd276e23382251ec612af678731f
[ "Apache-2.0" ]
null
null
null
''' utils.py - utility functions Soli Deo Gloria ''' __author__ = 'Sung-Cheol Kim' __version__ = '1.0.0' import numpy as np def fermi_l(x: np.array, l1: float, l2: float) -> np.array: ''' calculate fermi-dirac distribution with np.array x with l1 and l2''' return 1. / (1. + np.exp(l2 * x + l1)) def ferm...
23.807692
78
0.596123
d752c6600006a1dd3d08802063344cf314d1ca74
3,970
py
Python
scripts/run_jsw_ablation_experiments.py
Oulu-IMEDS/OAProgression
76dcb93d4101d1a97c13e39dbb92808f62923b12
[ "BSD-4-Clause-UC" ]
65
2019-04-14T15:37:55.000Z
2021-11-10T10:01:57.000Z
scripts/run_jsw_ablation_experiments.py
Oulu-IMEDS/OAProgression
76dcb93d4101d1a97c13e39dbb92808f62923b12
[ "BSD-4-Clause-UC" ]
9
2019-07-09T08:12:08.000Z
2022-01-03T12:06:26.000Z
scripts/run_jsw_ablation_experiments.py
MIPT-Oulu/OAProgression
76dcb93d4101d1a97c13e39dbb92808f62923b12
[ "BSD-4-Clause-UC" ]
13
2019-04-15T10:20:57.000Z
2021-09-13T11:38:00.000Z
import sys import os import cv2 import argparse import pickle from sklearn.metrics import average_precision_score from sklearn.model_selection import GroupKFold from oaprogression.metadata.oai import jsw_features, read_jsw_metadata_oai, beam_angle_feature from oaprogression.training.lgbm_tools import optimize_lgbm_hy...
49.012346
123
0.575315
d753414b6d8a595d3f5481cc528d827c6798b55d
819
py
Python
data/synthetic/analyze.py
thonic/pyhawkes
99804deb9ea22ba3e1a99584420722abdf8eb56b
[ "MIT" ]
221
2015-02-26T04:25:34.000Z
2022-03-27T13:06:10.000Z
data/synthetic/analyze.py
thonic/pyhawkes
99804deb9ea22ba3e1a99584420722abdf8eb56b
[ "MIT" ]
20
2015-08-04T01:47:19.000Z
2021-08-08T00:22:44.000Z
data/synthetic/analyze.py
thonic/pyhawkes
99804deb9ea22ba3e1a99584420722abdf8eb56b
[ "MIT" ]
86
2015-02-22T23:36:32.000Z
2021-11-13T20:56:07.000Z
import gzip import pickle import os def analyze(data_path): """ Run the comparison on the given data file :param data_path: :return: """ if data_path.endswith(".gz"): with gzip.open(data_path, 'r') as f: S, true_model = pickle.load(f) else: with open(data_path...
22.135135
87
0.582418
d75380c7f93cf504e36d7b8aad4924bb1e6a7e9d
1,692
py
Python
icarus/test/test_util.py
oascigil/icarus_edge_comp
b7bb9f9b8d0f27b4b01469dcba9cfc0c4949d64b
[ "MIT" ]
5
2021-03-20T09:22:55.000Z
2021-12-20T17:01:33.000Z
icarus/test/test_util.py
oascigil/icarus_edge_comp
b7bb9f9b8d0f27b4b01469dcba9cfc0c4949d64b
[ "MIT" ]
1
2021-12-13T07:40:46.000Z
2021-12-20T16:59:08.000Z
icarus/test/test_util.py
oascigil/icarus_edge_comp
b7bb9f9b8d0f27b4b01469dcba9cfc0c4949d64b
[ "MIT" ]
1
2021-11-25T05:42:20.000Z
2021-11-25T05:42:20.000Z
import unittest import networkx as nx import fnss import icarus.util as util
32.538462
82
0.615839
d7541a3b15b51e054893433fc2620f63f4d58eb9
1,055
py
Python
pytorch_metric_learning/trainers/unsupervised_embeddings_using_augmentations.py
jacobdanovitch/pytorch_metric_learning
dbcf2d49fffe92f7dc1221b939e182c214633520
[ "MIT" ]
1
2021-05-18T01:51:04.000Z
2021-05-18T01:51:04.000Z
pytorch_metric_learning/trainers/unsupervised_embeddings_using_augmentations.py
junjungoal/pytorch_metric_learning
e56bb440d1ec63e13622025209135a788c6f51c1
[ "MIT" ]
null
null
null
pytorch_metric_learning/trainers/unsupervised_embeddings_using_augmentations.py
junjungoal/pytorch_metric_learning
e56bb440d1ec63e13622025209135a788c6f51c1
[ "MIT" ]
1
2021-05-18T01:51:00.000Z
2021-05-18T01:51:00.000Z
from .metric_loss_only import MetricLossOnly import logging from ..utils import common_functions as c_f import torch
43.958333
116
0.661611
d7560a43f54c8aae8cfba885c28425454151868f
866
py
Python
accelerator/migrations/0064_update_gender_criteria_to_full_gender_spec.py
masschallenge/django-accelerator
8af898b574be3b8335edc8961924d1c6fa8b5fd5
[ "MIT" ]
6
2017-06-14T19:34:01.000Z
2020-03-08T07:16:59.000Z
accelerator/migrations/0064_update_gender_criteria_to_full_gender_spec.py
masschallenge/django-accelerator
8af898b574be3b8335edc8961924d1c6fa8b5fd5
[ "MIT" ]
160
2017-06-20T17:12:13.000Z
2022-03-30T13:53:12.000Z
accelerator/migrations/0064_update_gender_criteria_to_full_gender_spec.py
masschallenge/django-accelerator
8af898b574be3b8335edc8961924d1c6fa8b5fd5
[ "MIT" ]
null
null
null
# Generated by Django 2.2.24 on 2021-07-01 20:17 from django.db import migrations
30.928571
78
0.71709
d7564ee7c90edf711987a796bd61e3ba3f488668
2,766
py
Python
task8.py
akramnarejo/pycode
475aab3df34f5c015e6e8f7e628ecadb91404569
[ "MIT" ]
null
null
null
task8.py
akramnarejo/pycode
475aab3df34f5c015e6e8f7e628ecadb91404569
[ "MIT" ]
null
null
null
task8.py
akramnarejo/pycode
475aab3df34f5c015e6e8f7e628ecadb91404569
[ "MIT" ]
null
null
null
import random def choice(choice): """ This function takes in integer value and returns the equivalent string """ if(choice == 1): return "Rock" elif(choice == 2): return "Paper" else: return "Scissors" def determine(userChoice, computerChoice): """ This function take...
32.928571
105
0.537238
d75687d12877fd75bcb5ec323b32f51bea82f129
6,245
py
Python
rl_coach/graph_managers/hrl_graph_manager.py
jl45621/coach
9a895a1ac73aff44b2e6eb8e4d01e8ec35ceb084
[ "Apache-2.0" ]
1,960
2017-10-19T10:31:24.000Z
2020-11-07T18:19:23.000Z
rl_coach/graph_managers/hrl_graph_manager.py
gndctrl2mjrtm/coach-ray
ae6593bb33cf0ae3c5a4b3b351560dd6b47cd031
[ "Apache-2.0" ]
349
2017-10-21T17:17:18.000Z
2020-10-17T13:39:56.000Z
rl_coach/graph_managers/hrl_graph_manager.py
gndctrl2mjrtm/coach-ray
ae6593bb33cf0ae3c5a4b3b351560dd6b47cd031
[ "Apache-2.0" ]
428
2017-10-21T01:32:58.000Z
2020-11-07T13:49:49.000Z
# # Copyright (c) 2017 Intel Corporation # # 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...
52.923729
120
0.68711
d7591c0d088001626e41cc97845928cb48724e49
1,667
py
Python
test_21_recent_filelist.py
Mpreyzner/tdd_in_python
fa20864329424e40a52e80df34f31cdc56620fb4
[ "MIT" ]
null
null
null
test_21_recent_filelist.py
Mpreyzner/tdd_in_python
fa20864329424e40a52e80df34f31cdc56620fb4
[ "MIT" ]
null
null
null
test_21_recent_filelist.py
Mpreyzner/tdd_in_python
fa20864329424e40a52e80df34f31cdc56620fb4
[ "MIT" ]
1
2020-05-09T17:41:01.000Z
2020-05-09T17:41:01.000Z
# https://sites.google.com/site/tddproblems/all-problems-1/recent-file-list # A popular feature of graphical editors of # all kinds (text, graphics, spreadsheets, ..) is the Recent file list. It is often found as a sub-menu of the file # menu in the GUI of the program. # # Use TDD to grow this kind of behaviour. Some e...
29.767857
117
0.706059
d7599edaa481a1e260e406f973a13c62378a0dab
389
py
Python
tests/utils.py
amatissart/idunn
cae32024165a85ad99881c373a88ea5702631d71
[ "Apache-2.0" ]
null
null
null
tests/utils.py
amatissart/idunn
cae32024165a85ad99881c373a88ea5702631d71
[ "Apache-2.0" ]
null
null
null
tests/utils.py
amatissart/idunn
cae32024165a85ad99881c373a88ea5702631d71
[ "Apache-2.0" ]
null
null
null
from contextlib import contextmanager from copy import deepcopy from app import settings
24.3125
65
0.732648
d759b3383f0a3272c487bb9c3a6da4112544bbe3
173
py
Python
exp01_string.py
psb2509/learning-python3
38bd16f85d458b69ed677c72315c1023f83afc3d
[ "MIT" ]
null
null
null
exp01_string.py
psb2509/learning-python3
38bd16f85d458b69ed677c72315c1023f83afc3d
[ "MIT" ]
4
2018-09-09T16:47:46.000Z
2018-09-10T12:18:43.000Z
exp01_string.py
psb2509/learning-python3
38bd16f85d458b69ed677c72315c1023f83afc3d
[ "MIT" ]
null
null
null
print(4+3); print("Hello"); print('Who are you'); print('This is Pradeep\'s python program'); print(r'C:\Users\N51254\Documents\NetBeansProjects'); print("Pradeep "*5);
28.833333
54
0.687861
d759cca6aa40b22128380587e7622577a783f241
1,422
py
Python
parse.py
OpenScienceFramework/citations
3679ef4a1746a287061186078ce4b9144afe9083
[ "Apache-2.0" ]
4
2015-05-20T15:48:35.000Z
2021-06-24T17:04:51.000Z
parse.py
OpenScienceFramework/citations
3679ef4a1746a287061186078ce4b9144afe9083
[ "Apache-2.0" ]
null
null
null
parse.py
OpenScienceFramework/citations
3679ef4a1746a287061186078ce4b9144afe9083
[ "Apache-2.0" ]
1
2015-01-10T13:02:45.000Z
2015-01-10T13:02:45.000Z
# encoding: utf-8 """ Parse module for parsing citations into structured data. Currently this uses the Parsley library to do this, the grammars are defined in the grammars/ folder and cycled through until one is found that works. to_dict will convert the Reference named tuple into a dictionary, which allows for easy t...
28.44
79
0.662447
d75a122a7b1520cc30ff7d383f0593e9eebe913f
2,260
py
Python
src/utils/config.py
cpaismz89/DeepFireTopology
9cfe7c5ed9997a2a89b7405af47d9991da7d5471
[ "MIT" ]
null
null
null
src/utils/config.py
cpaismz89/DeepFireTopology
9cfe7c5ed9997a2a89b7405af47d9991da7d5471
[ "MIT" ]
null
null
null
src/utils/config.py
cpaismz89/DeepFireTopology
9cfe7c5ed9997a2a89b7405af47d9991da7d5471
[ "MIT" ]
null
null
null
# Run Keras on CPU import os # os.environ["CUDA_DEVICE_ORDER"] = "PCI_BUS_ID" # see issue #152 # os.environ["CUDA_VISIBLE_DEVICES"] = " " # -1 if CPU # Importations from IPython.display import Image # Compressed pickle import pickle from compress_pickle import dump as cdump from compress_pickle import load ...
32.753623
125
0.834513
d75a1604cab32ecaf5df590d83df4055be296ffd
1,572
py
Python
openstack_dashboard/test/integration_tests/steps.py
Mirantis/mos-horizon
d2444220d959c8b921436bd75459c2face0e71d2
[ "Apache-2.0" ]
9
2016-06-03T03:53:24.000Z
2017-05-20T16:53:23.000Z
openstack_dashboard/test/integration_tests/steps.py
Mirantis/mos-horizon
d2444220d959c8b921436bd75459c2face0e71d2
[ "Apache-2.0" ]
1
2016-09-08T10:57:46.000Z
2016-09-08T10:59:06.000Z
openstack_dashboard/test/integration_tests/steps.py
Mirantis/mos-horizon
d2444220d959c8b921436bd75459c2face0e71d2
[ "Apache-2.0" ]
4
2016-08-01T10:50:15.000Z
2017-02-22T12:11:19.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 # d...
37.428571
78
0.714377
d75a18bd78e91d9f730e373f55bda8a6f4b069bd
631
py
Python
src/zabbix_enums/common/event.py
szuro/zabbix-enums
f2ef3b9ea630f678c336d4fc58b5401771a0e4d1
[ "MIT" ]
1
2022-02-07T01:21:34.000Z
2022-02-07T01:21:34.000Z
src/zabbix_enums/common/event.py
szuro/zabbix-enums
f2ef3b9ea630f678c336d4fc58b5401771a0e4d1
[ "MIT" ]
null
null
null
src/zabbix_enums/common/event.py
szuro/zabbix-enums
f2ef3b9ea630f678c336d4fc58b5401771a0e4d1
[ "MIT" ]
null
null
null
from zabbix_enums.common import _ZabbixEnum
15.02381
47
0.673534
d75a3a6b573bad3eb8f11cb8fcb954ad3b080d4b
3,283
py
Python
tests/test_next_step_assignment_udf.py
EdinburghGenomics/clarity_scripts
472299fc4edd4e0a08895ecc7c5630b253322e28
[ "MIT" ]
2
2018-06-18T16:31:09.000Z
2021-03-31T20:13:39.000Z
tests/test_next_step_assignment_udf.py
EdinburghGenomics/clarity_scripts
472299fc4edd4e0a08895ecc7c5630b253322e28
[ "MIT" ]
99
2016-02-15T16:21:51.000Z
2022-03-11T23:43:26.000Z
tests/test_next_step_assignment_udf.py
EdinburghGenomics/clarity_scripts
472299fc4edd4e0a08895ecc7c5630b253322e28
[ "MIT" ]
null
null
null
from unittest.mock import patch, PropertyMock, Mock import pytest from EPPs.common import StepEPP from tests.test_common import TestEPP, NamedMock from scripts.next_step_assignment_udf import AssignNextStepUDF
33.161616
113
0.604325
d75a625bfb5e6d5e2d2d9e1471c8fa852109fb7f
17
py
Python
haul2/src/__init__.py
hotkeymuc/haul2
bac20b684fd81c24b91e505002723a6577c2b883
[ "MIT" ]
null
null
null
haul2/src/__init__.py
hotkeymuc/haul2
bac20b684fd81c24b91e505002723a6577c2b883
[ "MIT" ]
null
null
null
haul2/src/__init__.py
hotkeymuc/haul2
bac20b684fd81c24b91e505002723a6577c2b883
[ "MIT" ]
null
null
null
__all__ = ["htk"]
17
17
0.588235
d75b34d68f5f86482cc12361e48b4e2ab74ec8dd
2,439
py
Python
test_opencv_haar_img.py
sunnylgz/faceapi
7de817a2924d7ad4cbbca9778c7a7ec0e4427458
[ "MIT" ]
null
null
null
test_opencv_haar_img.py
sunnylgz/faceapi
7de817a2924d7ad4cbbca9778c7a7ec0e4427458
[ "MIT" ]
null
null
null
test_opencv_haar_img.py
sunnylgz/faceapi
7de817a2924d7ad4cbbca9778c7a7ec0e4427458
[ "MIT" ]
null
null
null
#! /usr/bin/python3 """find faces from input image based on mtcnn and locate the locations and landmarks """ # MIT License # # Copyright (c) 2016 David Sandberg # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to d...
35.347826
90
0.738007
d75b85454e9ed8ed2910b5b6cb818fe560fdc4cc
3,111
py
Python
sphinx-sources/Examples/ComputerPrac/FresnelPlane.py
jccmak/lightpipes
1a296fe08bdd97fc9a0e11f92bab25c85f68e57d
[ "BSD-3-Clause" ]
132
2017-03-15T15:28:46.000Z
2022-03-09T00:28:25.000Z
sphinx-sources/Examples/ComputerPrac/FresnelPlane.py
jccmak/lightpipes
1a296fe08bdd97fc9a0e11f92bab25c85f68e57d
[ "BSD-3-Clause" ]
63
2017-01-26T15:46:55.000Z
2022-01-25T04:50:59.000Z
sphinx-sources/Examples/ComputerPrac/FresnelPlane.py
jccmak/lightpipes
1a296fe08bdd97fc9a0e11f92bab25c85f68e57d
[ "BSD-3-Clause" ]
37
2017-02-17T16:11:38.000Z
2022-01-25T18:03:47.000Z
#!/usr/bin/env python """ Computer practical 6.1. Fresnel diffraction, plane wavefront. ============================================================= This is part of the 'computer practical' set of assignments. Demonstrates Fresnel diffraction when a plane wavefront enters a round hole. Measur...
25.5
121
0.623594
d75cad8b32fab20545d08ae0ad7d2cccf0a03783
1,226
py
Python
scripts/sliding_window.py
gustaveroussy/98drivers
9886eb1995592f690d621db945e268f7c629e07d
[ "MIT" ]
null
null
null
scripts/sliding_window.py
gustaveroussy/98drivers
9886eb1995592f690d621db945e268f7c629e07d
[ "MIT" ]
7
2016-05-25T09:55:35.000Z
2016-05-30T08:01:31.000Z
scripts/sliding_window.py
gustaveroussy/98drivers
9886eb1995592f690d621db945e268f7c629e07d
[ "MIT" ]
null
null
null
import argparse import tabix import os from common import * parser = argparse.ArgumentParser( description="wgs sliding window ", usage="" ) parser.add_argument("file", type=str, help="bed.gz file indexed with tabix") parser.add_argument("-g","--genom", type=str, help="", required=True) parser.ad...
26.652174
79
0.696574
d75d5e9c183dad29dd630cad94b9feb4b957bbfc
535
py
Python
examples/tornado/myapp/__init__.py
s-shin/wswrapper
f47500eb9d27d3aa96d91a50081945e3b83be9dd
[ "MIT" ]
2
2017-05-15T22:23:36.000Z
2018-02-19T12:27:45.000Z
examples/tornado/myapp/__init__.py
s-shin/wswrapper
f47500eb9d27d3aa96d91a50081945e3b83be9dd
[ "MIT" ]
null
null
null
examples/tornado/myapp/__init__.py
s-shin/wswrapper
f47500eb9d27d3aa96d91a50081945e3b83be9dd
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- def setup_argparser(parser): """ :param parser: ``argparse.ArgumentParser`` """ pass def setup_app(args): """ :param args: ``parser.arg_parse()`` """ pass def on_open(client): """WebSocket """ pass def on_close(client): """W...
14.861111
55
0.605607
d75e34968052a479dcb04800c417d5b42abec672
3,876
py
Python
test/clean_directory.py
adevress/gfal2
ce8945d1c153e26c5d10ad43d1940b8dcace0579
[ "Apache-2.0" ]
null
null
null
test/clean_directory.py
adevress/gfal2
ce8945d1c153e26c5d10ad43d1940b8dcace0579
[ "Apache-2.0" ]
null
null
null
test/clean_directory.py
adevress/gfal2
ce8945d1c153e26c5d10ad43d1940b8dcace0579
[ "Apache-2.0" ]
1
2020-04-28T09:36:46.000Z
2020-04-28T09:36:46.000Z
#!/usr/bin/env python import gfal2 import logging import optparse import stat import sys log = logging.getLogger('gfal2.clean_directory') if __name__ == '__main__': parser = optparse.OptionParser(usage='usage: %prog [options] surl') parser.add_option('-x', '--abort', dest='abort_on_error', default=False, ...
36.914286
100
0.576625
d75e7b27d27b1524b1e76cacefb052ea9376911b
2,776
py
Python
app/views/recipe.py
baldur132/essensfindung
e1a8106d8a1de857340229a5fe36ca6910c55b35
[ "MIT" ]
1
2022-01-29T20:33:30.000Z
2022-01-29T20:33:30.000Z
app/views/recipe.py
baldur132/essensfindung
e1a8106d8a1de857340229a5fe36ca6910c55b35
[ "MIT" ]
2
2022-03-08T06:41:22.000Z
2022-03-09T11:52:06.000Z
app/views/recipe.py
baldur132/essensfindung
e1a8106d8a1de857340229a5fe36ca6910c55b35
[ "MIT" ]
6
2022-01-06T15:02:59.000Z
2022-02-02T08:08:56.000Z
"""Router and Logic for the Recipe of the Website""" from datetime import timedelta from typing import Union import fastapi from fastapi.responses import HTMLResponse from sqlalchemy.orm import Session from starlette.requests import Request from starlette.templating import Jinja2Templates from db.database import get_...
33.445783
106
0.716499
d75e92e1cf6688e5a8ad55c6253bccf7855e6a50
2,196
py
Python
platform/radio/efr32_multiphy_configurator/pyradioconfig/parts/viper/calculators/calc_utilities.py
PascalGuenther/gecko_sdk
2e82050dc8823c9fe0e8908c1b2666fb83056230
[ "Zlib" ]
69
2021-12-16T01:34:09.000Z
2022-03-31T08:27:39.000Z
platform/radio/efr32_multiphy_configurator/pyradioconfig/parts/viper/calculators/calc_utilities.py
PascalGuenther/gecko_sdk
2e82050dc8823c9fe0e8908c1b2666fb83056230
[ "Zlib" ]
6
2022-01-12T18:22:08.000Z
2022-03-25T10:19:27.000Z
platform/radio/efr32_multiphy_configurator/pyradioconfig/parts/viper/calculators/calc_utilities.py
PascalGuenther/gecko_sdk
2e82050dc8823c9fe0e8908c1b2666fb83056230
[ "Zlib" ]
21
2021-12-20T09:05:45.000Z
2022-03-28T02:52:28.000Z
from pyradioconfig.parts.bobcat.calculators.calc_utilities import Calc_Utilities_Bobcat from pycalcmodel.core.variable import ModelVariableFormat from enum import Enum
37.220339
99
0.722222
d75ec669dfc620aaaefd9ee6ffa0b75d16e42209
2,029
py
Python
tests/logger/check_logger.py
rancp/ducktape-docs
e1a3b1b7e68beedf5f8d29a4e5f196912a20e264
[ "Apache-2.0" ]
null
null
null
tests/logger/check_logger.py
rancp/ducktape-docs
e1a3b1b7e68beedf5f8d29a4e5f196912a20e264
[ "Apache-2.0" ]
null
null
null
tests/logger/check_logger.py
rancp/ducktape-docs
e1a3b1b7e68beedf5f8d29a4e5f196912a20e264
[ "Apache-2.0" ]
null
null
null
# Copyright 2016 Confluent 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, s...
30.283582
81
0.699359
d75f55e688f1197eea211a05b99890e08a4f598e
1,268
py
Python
Egzersiz/ege/egzersizSet.py
ibrahimediz/ornekproje
c5ebeafc43a9c6d2aa639d0d95eedbce65991576
[ "Apache-2.0" ]
null
null
null
Egzersiz/ege/egzersizSet.py
ibrahimediz/ornekproje
c5ebeafc43a9c6d2aa639d0d95eedbce65991576
[ "Apache-2.0" ]
null
null
null
Egzersiz/ege/egzersizSet.py
ibrahimediz/ornekproje
c5ebeafc43a9c6d2aa639d0d95eedbce65991576
[ "Apache-2.0" ]
null
null
null
first_angle = int(input("Ltfen ilk ay giriniz: ")) second_angle = int(input("Ltfen ilk ay giriniz: ")) gelenAcilar = {first_angle, second_angle} eskenar = {60, 60, 60} dik = {25, 65, 90} ikizKenar = {45, 45, 90} cesitKenar = {120, 41, 19} if gelenAcilar.intersection(ikizKenar): print("ikizkenar") elif gelenAcila...
23.054545
59
0.603312
d7611de84d0c09241612fe2faace88345d97ec3c
18,916
py
Python
src/tests/presale/test_customer.py
n0emis/pretix
57d68eaddb01ec4adc0837a915631871cae4d91a
[ "Apache-2.0" ]
null
null
null
src/tests/presale/test_customer.py
n0emis/pretix
57d68eaddb01ec4adc0837a915631871cae4d91a
[ "Apache-2.0" ]
8
2015-01-06T10:50:27.000Z
2015-01-18T18:38:18.000Z
src/tests/presale/test_customer.py
n0emis/pretix
57d68eaddb01ec4adc0837a915631871cae4d91a
[ "Apache-2.0" ]
null
null
null
# # This file is part of pretix (Community Edition). # # Copyright (C) 2014-2020 Raphael Michel and contributors # Copyright (C) 2020-2021 rami.io GmbH and contributors # # This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General # Public License as published by ...
33.185965
119
0.656164
d7644768742f958b906abb14fbff6d652cf10fee
2,009
py
Python
build/python_module.py
Romit-Maulik/CBurgers
0b0b0d733049d731c9b82215f19219f99ea77b25
[ "MIT" ]
5
2020-09-17T04:56:00.000Z
2021-04-01T23:33:51.000Z
build/python_module.py
Romit-Maulik/CBurgers
0b0b0d733049d731c9b82215f19219f99ea77b25
[ "MIT" ]
null
null
null
build/python_module.py
Romit-Maulik/CBurgers
0b0b0d733049d731c9b82215f19219f99ea77b25
[ "MIT" ]
4
2020-09-17T13:00:34.000Z
2021-06-24T00:36:17.000Z
print("From python: Within python module") import os,sys HERE = os.getcwd() sys.path.insert(0,HERE) import numpy as np import tensorflow as tf import matplotlib.pyplot as plt data_array = np.zeros(shape=(2001,258)) # Very important that this matches the number of timesteps in the main solver x = np.arange(start=0,st...
26.434211
117
0.672474
d766600ac591a726caf5047535ca5f091cf8d7ac
10,478
py
Python
Tutorials/SENSEI/Advection_AmrLevel/Exec/SingleVortex/sensei/render_iso_catalyst_3d.py
ylunalin/amrex
5715b2fc8a77e0db17bfe7907982e29ec44811ca
[ "BSD-3-Clause-LBNL" ]
null
null
null
Tutorials/SENSEI/Advection_AmrLevel/Exec/SingleVortex/sensei/render_iso_catalyst_3d.py
ylunalin/amrex
5715b2fc8a77e0db17bfe7907982e29ec44811ca
[ "BSD-3-Clause-LBNL" ]
null
null
null
Tutorials/SENSEI/Advection_AmrLevel/Exec/SingleVortex/sensei/render_iso_catalyst_3d.py
ylunalin/amrex
5715b2fc8a77e0db17bfe7907982e29ec44811ca
[ "BSD-3-Clause-LBNL" ]
1
2020-01-17T05:00:26.000Z
2020-01-17T05:00:26.000Z
from paraview.simple import * from paraview import coprocessing #-------------------------------------------------------------- # Code generated from cpstate.py to create the CoProcessor. # ParaView 5.4.1 64 bits #-------------------------------------------------------------- # Global screenshot output options imag...
44.777778
364
0.654132
d767675283bbb063fdc340913b93263291f2c950
212
py
Python
tests/integration/test_integration_foreign_payment_codes.py
pwitab/visma
ffa6698738fcc1be9de727e7fe77cce30310f830
[ "BSD-3-Clause" ]
5
2018-08-10T19:12:48.000Z
2021-07-08T12:43:24.000Z
tests/integration/test_integration_foreign_payment_codes.py
pwitab/visma
ffa6698738fcc1be9de727e7fe77cce30310f830
[ "BSD-3-Clause" ]
16
2018-06-17T18:51:05.000Z
2021-01-10T10:44:36.000Z
tests/integration/test_integration_foreign_payment_codes.py
pwitab/visma
ffa6698738fcc1be9de727e7fe77cce30310f830
[ "BSD-3-Clause" ]
3
2019-03-05T15:01:13.000Z
2021-06-15T14:35:37.000Z
from visma.models import ForeignPaymentCodes
21.2
49
0.754717
d7683f0603e42e3b0a2ea0473fd022c587fdae78
995
py
Python
performance/forms.py
linikerunk/tcc-people-analytics
fdda975682d5299c8384e31ebb974dc085330875
[ "MIT" ]
null
null
null
performance/forms.py
linikerunk/tcc-people-analytics
fdda975682d5299c8384e31ebb974dc085330875
[ "MIT" ]
1
2020-10-11T10:09:39.000Z
2020-10-11T10:09:39.000Z
performance/forms.py
linikerunk/TCC_PeopleAnalytics
fdda975682d5299c8384e31ebb974dc085330875
[ "MIT" ]
null
null
null
""" This is a forms.py that helps to work on the payload of front-end """ from django import forms from django.contrib.auth import get_user_model from django.core.exceptions import ValidationError from django.contrib.auth.models import User from django.forms import ModelForm from django.forms.models import inlineformse...
27.638889
73
0.742714
d768dc679de8770bdc1267fbf48dedc2b6d9648d
365
py
Python
answers/Python/@oseme-techguy/03-word-in-reverse.py
Flipponachi/20-questions
a6ad9a468683646781426008e71dbb508e8e59bb
[ "MIT" ]
1
2019-09-13T14:13:07.000Z
2019-09-13T14:13:07.000Z
answers/Python/@oseme-techguy/03-word-in-reverse.py
Flipponachi/20-questions
a6ad9a468683646781426008e71dbb508e8e59bb
[ "MIT" ]
null
null
null
answers/Python/@oseme-techguy/03-word-in-reverse.py
Flipponachi/20-questions
a6ad9a468683646781426008e71dbb508e8e59bb
[ "MIT" ]
1
2021-01-02T12:01:46.000Z
2021-01-02T12:01:46.000Z
""" Solution to Word in Reverse """ if __name__ == '__main__': while True: word = input('Enter a word: ') word = str(word) i = len(word) reversed_word = '' while i > 0: reversed_word += word[i - 1] i -= 1 print('{reversed_wo...
22.8125
71
0.493151
d768fe73af1f8acf9182c2673f7840224b4e40d8
2,592
py
Python
src/spooq2/spooq2_logger.py
rt-phb/Spooq
ef101dcb4239cee43f56497908fee63998eb5846
[ "MIT" ]
null
null
null
src/spooq2/spooq2_logger.py
rt-phb/Spooq
ef101dcb4239cee43f56497908fee63998eb5846
[ "MIT" ]
null
null
null
src/spooq2/spooq2_logger.py
rt-phb/Spooq
ef101dcb4239cee43f56497908fee63998eb5846
[ "MIT" ]
null
null
null
""" Global Logger instance used by Spooq2. Example ------- >>> import logging >>> logga = logging.getLogger("spooq2") <logging.Logger at 0x7f5dc8eb2890> >>> logga.info("Hello World") [spooq2] 2020-03-21 23:55:48,253 INFO logging_example::<module>::4: Hello World """ import os import sys import logging from spooq2._...
27
124
0.631173
d769120bcdbd81031f2be3c1d9954eb83b339b6d
3,610
py
Python
tests/extra/math_ops_test.py
yaroslavvb/imperative
d08f08b4febc9005f7d91feaeb59ca18fbbca486
[ "Apache-2.0" ]
20
2016-10-05T20:23:15.000Z
2021-07-10T03:56:40.000Z
tests/extra/math_ops_test.py
yaroslavvb/imperative
d08f08b4febc9005f7d91feaeb59ca18fbbca486
[ "Apache-2.0" ]
2
2016-10-05T22:43:26.000Z
2016-10-12T01:16:11.000Z
tests/extra/math_ops_test.py
yaroslavvb/imperative
d08f08b4febc9005f7d91feaeb59ca18fbbca486
[ "Apache-2.0" ]
1
2017-10-31T09:18:51.000Z
2017-10-31T09:18:51.000Z
# Copyright 2015 Google Inc. 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 law or a...
30.854701
80
0.652355
d7694bd9262436a2c11c4b2d8fb0ff233914d037
7,327
py
Python
battlefortune/batchrunner.py
pfassina/BattleFortune
3a985687f395d32c41f170a173db0b50c9c82fdd
[ "MIT" ]
3
2019-06-21T01:37:50.000Z
2021-03-24T16:56:49.000Z
battlefortune/batchrunner.py
pfassina/BattleFortune
3a985687f395d32c41f170a173db0b50c9c82fdd
[ "MIT" ]
6
2021-03-18T21:37:16.000Z
2022-03-11T23:35:21.000Z
battlefortune/batchrunner.py
pfassina/BattleFortune
3a985687f395d32c41f170a173db0b50c9c82fdd
[ "MIT" ]
null
null
null
import keyboard from logparser import parselog, validate_log import os from psutil import process_iter from pyautogui import click import subprocess from turnhandler import backupturn, clonegame, cleanturns, delete_log, delete_temp import yaml from time import sleep import threading import time import win32gui import w...
26.9375
94
0.619763
d76a161827a2e2c2e3a71fbfaf612214e039ac3b
1,188
py
Python
preprocess.py
austinben/ECE470
05b6c4c8b41a2c1d634560a0e5ce6af5e4adbc3a
[ "MIT" ]
null
null
null
preprocess.py
austinben/ECE470
05b6c4c8b41a2c1d634560a0e5ce6af5e4adbc3a
[ "MIT" ]
null
null
null
preprocess.py
austinben/ECE470
05b6c4c8b41a2c1d634560a0e5ce6af5e4adbc3a
[ "MIT" ]
null
null
null
import numpy as np import os import cv2 import imutils import numpy as np from keras.preprocessing import image from matplotlib import pyplot as plt
34.941176
86
0.686027
d76b7aa3673d7e4fdedf5a1cdab205aa228b5775
3,444
py
Python
tests/test_db_awssimpledb.py
gyrospectre/securitybot
90db2ae532667c48ca080108b895c2e1fe16b1e8
[ "Apache-2.0" ]
3
2020-10-09T04:46:15.000Z
2021-12-30T10:12:37.000Z
tests/test_db_awssimpledb.py
gyrospectre/securitybot
90db2ae532667c48ca080108b895c2e1fe16b1e8
[ "Apache-2.0" ]
null
null
null
tests/test_db_awssimpledb.py
gyrospectre/securitybot
90db2ae532667c48ca080108b895c2e1fe16b1e8
[ "Apache-2.0" ]
1
2020-08-11T19:28:13.000Z
2020-08-11T19:28:13.000Z
import unittest from unittest.mock import MagicMock from unittest.mock import patch from securitybot.db.awssimpledb import DbClient from securitybot.exceptions import DbException SDB_CFG = { 'domain_prefix': 'secbot' }
32.186916
87
0.639082
d76cb886459f15396940273045af583f04a800a8
1,759
py
Python
src/waiting.py
aquova/bouncer
9988b4f2a0e659e2d49fcc4e95815931b2e81670
[ "MIT" ]
5
2019-02-17T02:50:32.000Z
2020-07-04T14:43:31.000Z
src/waiting.py
aquova/bouncer
9988b4f2a0e659e2d49fcc4e95815931b2e81670
[ "MIT" ]
4
2019-02-16T23:37:40.000Z
2020-07-03T14:54:17.000Z
src/waiting.py
aquova/bouncer
9988b4f2a0e659e2d49fcc4e95815931b2e81670
[ "MIT" ]
2
2019-02-16T13:40:24.000Z
2020-05-09T05:54:40.000Z
import datetime, discord from dataclasses import dataclass from commonbot.utils import getTimeDelta
30.327586
118
0.643547
d76d78b8f2dc7f9192fed4ce770d6fc94f87677e
1,231
py
Python
estimation/sample_z.py
yiruiliu110/eegnn
253773c301681bb00b4789c34f48c82468ad16da
[ "MIT" ]
null
null
null
estimation/sample_z.py
yiruiliu110/eegnn
253773c301681bb00b4789c34f48c82468ad16da
[ "MIT" ]
null
null
null
estimation/sample_z.py
yiruiliu110/eegnn
253773c301681bb00b4789c34f48c82468ad16da
[ "MIT" ]
null
null
null
""" this script contains the function to compute z from sparse v , pi and w """ import torch from estimation.truncated_poisson import TruncatedPoisson def compute_z(log_w: torch.tensor, pi: torch.sparse, c: torch.sparse): """ This function computes the class indicators given cluster proportion vector pi and ...
41.033333
152
0.727051
d76d863e3b44be2672e1cb5cd88dd7bc048a830a
446
py
Python
test3/routes/MainRoute.py
Ca11MeE/dophon
6737b0f0dc9ec2c2229865940c3c6d6ee326fc28
[ "Apache-2.0" ]
1
2018-08-13T09:57:34.000Z
2018-08-13T09:57:34.000Z
test3/routes/MainRoute.py
Ca11MeE/dophon
6737b0f0dc9ec2c2229865940c3c6d6ee326fc28
[ "Apache-2.0" ]
null
null
null
test3/routes/MainRoute.py
Ca11MeE/dophon
6737b0f0dc9ec2c2229865940c3c6d6ee326fc28
[ "Apache-2.0" ]
null
null
null
from dophon import * from dophon.annotation import * app = blue_print('main', __name__,url_prefix='/main')
14.866667
53
0.656951
d76db77d529fe9e5f197cd3b9a8d53a6b929a6d0
17,179
py
Python
paint_program.py
nick-tkachov/paint-program
80b657acfe9c63dd62a8d93927255490b55372ed
[ "MIT" ]
null
null
null
paint_program.py
nick-tkachov/paint-program
80b657acfe9c63dd62a8d93927255490b55372ed
[ "MIT" ]
null
null
null
paint_program.py
nick-tkachov/paint-program
80b657acfe9c63dd62a8d93927255490b55372ed
[ "MIT" ]
null
null
null
# ---------------------------------------------------------------------------------------------------# # Program Name: PAINT PROGRAM OOP ASSIGNMENT # Programmer: Nick Tkachov # Date: November 20, 2017 # Input: Options at the beginning of the game allow user to select SMALL,MEDIUM,LARGE grid sizes, # and ...
38.691441
163
0.560917
d76f76f73a1b4d94c460fbf42b33ff78ab858a28
8,668
py
Python
Pcolor_Peaks.py
nchaparr/Sam_Output_Anls
c6736f7863b36d09738ac95b7cbde19ba69526cf
[ "MIT" ]
null
null
null
Pcolor_Peaks.py
nchaparr/Sam_Output_Anls
c6736f7863b36d09738ac95b7cbde19ba69526cf
[ "MIT" ]
1
2015-04-18T14:47:49.000Z
2015-05-01T21:51:44.000Z
Pcolor_Peaks.py
nchaparr/Sam_Output_Anls
c6736f7863b36d09738ac95b7cbde19ba69526cf
[ "MIT" ]
null
null
null
from __future__ import division from netCDF4 import Dataset import glob,os.path import numpy as np import numpy.ma as ma from scipy.interpolate import UnivariateSpline from matplotlib import cm from matplotlib import ticker import matplotlib.pyplot as plt #import site #site.addsitedir('/tera/phil/nchaparr/SAM2/sam_main...
40.12963
210
0.53311
d7702a9b2e58db18587254af35a4b4199fcc47d0
1,386
py
Python
plio/sqlalchemy_json/alchemy.py
kaitlyndlee/plio
99f0852d8eb92efeba72f366077bd023a7da7cdd
[ "Unlicense" ]
11
2018-02-01T02:56:26.000Z
2022-02-21T12:08:12.000Z
plio/sqlalchemy_json/alchemy.py
kaitlyndlee/plio
99f0852d8eb92efeba72f366077bd023a7da7cdd
[ "Unlicense" ]
151
2016-06-15T21:31:37.000Z
2021-11-15T16:55:53.000Z
plio/sqlalchemy_json/alchemy.py
kaitlyndlee/plio
99f0852d8eb92efeba72f366077bd023a7da7cdd
[ "Unlicense" ]
21
2016-06-17T17:02:39.000Z
2021-03-08T20:47:50.000Z
# Third-party modules try: import simplejson as json except ImportError: import json import sqlalchemy from sqlalchemy.ext import mutable # Custom modules from . import track mutable.MutableDict.associate_with(JsonObject) NestedMutable.associate_with(NestedJsonObject)
27.176471
78
0.752525
d77119de6b793cbac0f2940da62fd48d954f6aef
165
py
Python
squirrel/__main__.py
egxdigital/squirrel
f4c5dbead63788a088d24b28b6cd8ad283585eaa
[ "MIT" ]
null
null
null
squirrel/__main__.py
egxdigital/squirrel
f4c5dbead63788a088d24b28b6cd8ad283585eaa
[ "MIT" ]
null
null
null
squirrel/__main__.py
egxdigital/squirrel
f4c5dbead63788a088d24b28b6cd8ad283585eaa
[ "MIT" ]
null
null
null
"""Squirrel Main This module contains the entry point code for the Squirrel program. """ from squirrel.squirrel import main if __name__ == '__main__': main()
16.5
67
0.727273
d7741c04bf8fcb98f38a8a2f9343cab79bc9f668
394
py
Python
clairvoyance/preprocessing/__init__.py
ZhaozhiQIAN/SyncTwin-NeurIPS-2021
78eff91d0287c7f1f66c76ca24834c7d1029ad3b
[ "MIT" ]
5
2021-11-23T08:41:08.000Z
2022-03-06T16:20:37.000Z
clairvoyance/preprocessing/__init__.py
ZhaozhiQIAN/SyncTwin-NeurIPS-2021
78eff91d0287c7f1f66c76ca24834c7d1029ad3b
[ "MIT" ]
null
null
null
clairvoyance/preprocessing/__init__.py
ZhaozhiQIAN/SyncTwin-NeurIPS-2021
78eff91d0287c7f1f66c76ca24834c7d1029ad3b
[ "MIT" ]
2
2021-11-16T16:10:53.000Z
2021-12-28T07:13:03.000Z
from .encoding import ( MinMaxNormalizer, Normalizer, OneHotEncoder, ProblemMaker, ReNormalizer, StandardNormalizer, ) from .outlier_filter import FilterNegative, FilterOutOfRange __all__ = [ "FilterNegative", "FilterOutOfRange", "OneHotEncoder", "MinMaxNormalizer", "Standar...
18.761905
60
0.687817
d7751bcbe755b9830a28eda231e1c57944ba867e
3,659
py
Python
csrc/layers/cfc2.py
radu-dogaru/numpyCNN
efe8749d7a35156ff9e67e7cc6df62a8077bf2ea
[ "MIT" ]
null
null
null
csrc/layers/cfc2.py
radu-dogaru/numpyCNN
efe8749d7a35156ff9e67e7cc6df62a8077bf2ea
[ "MIT" ]
null
null
null
csrc/layers/cfc2.py
radu-dogaru/numpyCNN
efe8749d7a35156ff9e67e7cc6df62a8077bf2ea
[ "MIT" ]
null
null
null
import cupy as cp from csrc.activation import SoftMax from csrc.layers.layer import Layer # Cu sinapsa comparativa GPU from csrc.comp_syn import cp_comp
30.239669
97
0.543591
d7756e6a29e9091ac15a875449e344d6705dafd8
4,640
py
Python
ryu/app/network_ding/network_loss.py
nicePaul521/Ryu
fc1b5b79dbeac5164d0bc29006439bebb94a891c
[ "Apache-2.0" ]
null
null
null
ryu/app/network_ding/network_loss.py
nicePaul521/Ryu
fc1b5b79dbeac5164d0bc29006439bebb94a891c
[ "Apache-2.0" ]
null
null
null
ryu/app/network_ding/network_loss.py
nicePaul521/Ryu
fc1b5b79dbeac5164d0bc29006439bebb94a891c
[ "Apache-2.0" ]
null
null
null
from ryu.controller import ofp_event from ryu.controller.handler import MAIN_DISPATCHER,DEAD_DISPATCHER from ryu.controller.handler import set_ev_cls from ryu.base.app_manager import lookup_service_brick from ryu.lib import hub from ryu.base import app_manager from operator import attrgetter import setting
45.048544
123
0.561422
d7760b7f6c4a005bf5f4aee31cc5261044469478
875
py
Python
dealWithDataNpy.py
ItGirls/autoencoding_vi_for_topic_models
10e47a3dffc92ed9373f7dd55dc66ea034097a32
[ "MIT" ]
null
null
null
dealWithDataNpy.py
ItGirls/autoencoding_vi_for_topic_models
10e47a3dffc92ed9373f7dd55dc66ea034097a32
[ "MIT" ]
null
null
null
dealWithDataNpy.py
ItGirls/autoencoding_vi_for_topic_models
10e47a3dffc92ed9373f7dd55dc66ea034097a32
[ "MIT" ]
null
null
null
#!/usr/local/bin/python3 # -*-coding:utf-8 -*- """ @Date : 2020/7/28 7:01 @Author : zhutingting @Desc : ============================================== Blowing in the wind. === # ====================================================== @Project : autoencoding_vi_for_topic_models @FileName: dealWithDataNpy.py @Soft...
21.341463
98
0.596571
d7761ae1988375a09b4acc44806bcabebad35bcd
557
py
Python
yoga/project/yoga/Database/migrations/0001_initial.py
sherlklee/yoga
fcfdfa2b326f20f2218b69fce6f881ff5d11d47b
[ "MIT" ]
null
null
null
yoga/project/yoga/Database/migrations/0001_initial.py
sherlklee/yoga
fcfdfa2b326f20f2218b69fce6f881ff5d11d47b
[ "MIT" ]
null
null
null
yoga/project/yoga/Database/migrations/0001_initial.py
sherlklee/yoga
fcfdfa2b326f20f2218b69fce6f881ff5d11d47b
[ "MIT" ]
1
2019-06-04T01:53:52.000Z
2019-06-04T01:53:52.000Z
# Generated by Django 2.2.1 on 2019-06-03 11:46 from django.db import migrations, models
24.217391
97
0.578097
d776fa923d096d8bed7a6623cbd0a90df2ecdfdb
9,604
py
Python
1GDL - Newmark.py
ZibraMax/tkinter-y-sus-cosas
713e0b5e4771fdc31f55dc29f3aeb58795587208
[ "MIT" ]
null
null
null
1GDL - Newmark.py
ZibraMax/tkinter-y-sus-cosas
713e0b5e4771fdc31f55dc29f3aeb58795587208
[ "MIT" ]
null
null
null
1GDL - Newmark.py
ZibraMax/tkinter-y-sus-cosas
713e0b5e4771fdc31f55dc29f3aeb58795587208
[ "MIT" ]
null
null
null
import math from tkinter import Tk, Canvas, W, E, NW from tkinter.filedialog import askopenfilename from tkinter import messagebox from scipy.interpolate import interp1d import time import numpy as np # Definicin recursiva, requiere numpy # def B(t,P): # if len(P)==1: # return np.array(P[0]) # else: # ...
29.733746
372
0.500729
d7771b4290c405990f615c022afc0dd3a2f27b5e
3,216
py
Python
python/parserDev/brothon/live_simulator.py
jzadeh/aktaion
485488908e88212e615cd8bde04c6b1b63403cd0
[ "Apache-2.0" ]
112
2017-07-26T00:30:29.000Z
2021-11-09T14:02:12.000Z
python/parserDev/brothon/live_simulator.py
jzadeh/aktaion
485488908e88212e615cd8bde04c6b1b63403cd0
[ "Apache-2.0" ]
null
null
null
python/parserDev/brothon/live_simulator.py
jzadeh/aktaion
485488908e88212e615cd8bde04c6b1b63403cd0
[ "Apache-2.0" ]
38
2017-07-28T03:09:01.000Z
2021-05-07T03:21:32.000Z
"""LiveSimulator: This class reads in various Bro IDS logs. The class utilizes the BroLogReader and simply loops over the static bro log file, replaying rows and changing any time stamps Args: eps (int): Events Per Second that the simulator will emit events (default...
33.852632
129
0.627799
d7774dc77e51cb47753ab4f85b00f22b278e1195
2,488
py
Python
dataset_scripts/merge_results_as_csv.py
contec-korong/r3det-on-mmdetection
4a78a0b3330d0fcb9c017a5c97d06a92cf85ebac
[ "Apache-2.0" ]
null
null
null
dataset_scripts/merge_results_as_csv.py
contec-korong/r3det-on-mmdetection
4a78a0b3330d0fcb9c017a5c97d06a92cf85ebac
[ "Apache-2.0" ]
null
null
null
dataset_scripts/merge_results_as_csv.py
contec-korong/r3det-on-mmdetection
4a78a0b3330d0fcb9c017a5c97d06a92cf85ebac
[ "Apache-2.0" ]
null
null
null
from glob import glob import os import pandas as pd import argparse CATEGORIES_5 = ('background', 'small ship', 'large ship', 'individual container', 'grouped container', 'crane') CATEGORIES_15 = ('background', 'small ship', 'large ship', 'civilian aircraft', 'military aircraft', 'small car', 'bus', 'truck', 'train', ...
43.649123
138
0.58963
d777be6f240c93857c87bee44f62377cde598f0d
12,511
py
Python
testcases/OpTestIPMILockMode.py
vaibhav92/op-test-framework
792fa18d3f09fd8c28073074815ff96d373ab96d
[ "Apache-2.0" ]
null
null
null
testcases/OpTestIPMILockMode.py
vaibhav92/op-test-framework
792fa18d3f09fd8c28073074815ff96d373ab96d
[ "Apache-2.0" ]
null
null
null
testcases/OpTestIPMILockMode.py
vaibhav92/op-test-framework
792fa18d3f09fd8c28073074815ff96d373ab96d
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python2 # IBM_PROLOG_BEGIN_TAG # This is an automatically generated prolog. # # $Source: op-test-framework/testcases/OpTestIPMILockMode.py $ # # OpenPOWER Automated Test Project # # Contributors Listed Below - COPYRIGHT 2015 # [+] International Business Machines Corp. # # # Licensed under the Apache Lice...
41.842809
104
0.671809
d779c2a2f911575752519902fdcf73487b5c0405
1,446
py
Python
scripts/update_pins.py
machow/gh-projects-cli
f0e414f7d900ac5546bab0ec6f1448a0f36bf300
[ "MIT" ]
null
null
null
scripts/update_pins.py
machow/gh-projects-cli
f0e414f7d900ac5546bab0ec6f1448a0f36bf300
[ "MIT" ]
6
2022-01-03T18:07:01.000Z
2022-01-04T01:22:07.000Z
scripts/update_pins.py
machow/gh-projects-cli
f0e414f7d900ac5546bab0ec6f1448a0f36bf300
[ "MIT" ]
null
null
null
import jq from dotenv import load_dotenv from gh_projects import ( update_project_with_repo_issues, fetch_all_issues, push_issues_to_project_next, ) load_dotenv() PROJECT_ID = "PN_kwHOACdIos4AAto7" # fetch_project_item_issue_ids("PN_kwHOACdIos4AAYbQ") all_issues = fetch_all_issues("machow", "pins-pyth...
25.821429
89
0.667358
d77c6fdb8c4f6bbd8699fdd1ff1c22e620654dfe
7,061
py
Python
aiosvc/amqp/pool.py
acsnem/aiosvc
5bb316fe6958d4143bc0434f6dfbe9bfa9328916
[ "MIT" ]
null
null
null
aiosvc/amqp/pool.py
acsnem/aiosvc
5bb316fe6958d4143bc0434f6dfbe9bfa9328916
[ "MIT" ]
null
null
null
aiosvc/amqp/pool.py
acsnem/aiosvc
5bb316fe6958d4143bc0434f6dfbe9bfa9328916
[ "MIT" ]
null
null
null
import logging import asyncio from aiosvc import Componet from .simple import Publisher # class Pool(Componet): # # def __init__(self, exchange, *, publish_timeout=5, try_publish_interval=.9, size=1, max_size=2, loop=None, start_priority=1): # super().__init__(loop=loop, start_priority=start_priority) # ...
31.950226
131
0.578813
d77d2bb48907dd464ade365bdb00dd8e8c032d0d
2,364
py
Python
src/result.py
danbailo/T2-Analise-Algoritmos
5335207307e68594f1669653fe871624cd2f3163
[ "MIT" ]
1
2019-05-16T16:04:01.000Z
2019-05-16T16:04:01.000Z
src/result.py
danbailo/T2-Analise-Algoritmos-I
5335207307e68594f1669653fe871624cd2f3163
[ "MIT" ]
null
null
null
src/result.py
danbailo/T2-Analise-Algoritmos-I
5335207307e68594f1669653fe871624cd2f3163
[ "MIT" ]
null
null
null
from knapsack import Knapsack, read_instances, organize_instances from os import path,mkdir from platform import system import json
44.603774
103
0.615059
d77d6e7fb86f611447c66f19c0c89a6591454f10
162
py
Python
parse.py
lpmi-13/telegramStressBot
d6968108347e1215a97c6f8a2a2801e3770874d7
[ "MIT" ]
null
null
null
parse.py
lpmi-13/telegramStressBot
d6968108347e1215a97c6f8a2a2801e3770874d7
[ "MIT" ]
2
2017-05-08T21:03:37.000Z
2020-10-25T05:16:55.000Z
parse.py
lpmi-13/telegramStressBot
d6968108347e1215a97c6f8a2a2801e3770874d7
[ "MIT" ]
null
null
null
import nltk from nltk import word_tokenize
18
44
0.796296
d77e06fa86733c3b6164292916851025cf9ee6e3
472
py
Python
matplotlib_examples/examples_src/pylab_examples/ellipse_demo.py
xzlmark/webspider
133c620c65aa45abea1718b0dada09618c2115bf
[ "Apache-2.0" ]
3
2020-04-09T02:35:26.000Z
2021-02-27T17:00:21.000Z
matplotlib_examples/examples_src/pylab_examples/ellipse_demo.py
colorworlds/webspider
133c620c65aa45abea1718b0dada09618c2115bf
[ "Apache-2.0" ]
null
null
null
matplotlib_examples/examples_src/pylab_examples/ellipse_demo.py
colorworlds/webspider
133c620c65aa45abea1718b0dada09618c2115bf
[ "Apache-2.0" ]
1
2020-04-09T02:35:08.000Z
2020-04-09T02:35:08.000Z
import matplotlib.pyplot as plt import numpy.random as rnd from matplotlib.patches import Ellipse NUM = 250 ells = [Ellipse(xy=rnd.rand(2)*10, width=rnd.rand(), height=rnd.rand(), angle=rnd.rand()*360) for i in range(NUM)] fig = plt.figure(0) ax = fig.add_subplot(111, aspect='equal') for e in ells: ax.ad...
21.454545
93
0.684322
d77e372f71687020e3c52a4156b4641851c6ee87
2,779
py
Python
messageAnalysis.py
brennanmcmicking/message-counter
912abb960ce3e67648c766ddadac829ad80033cb
[ "MIT" ]
null
null
null
messageAnalysis.py
brennanmcmicking/message-counter
912abb960ce3e67648c766ddadac829ad80033cb
[ "MIT" ]
null
null
null
messageAnalysis.py
brennanmcmicking/message-counter
912abb960ce3e67648c766ddadac829ad80033cb
[ "MIT" ]
null
null
null
# Standard library imports import glob import json import argparse # Third-party imports import pandas as pd # Parse command line parameters parser = argparse.ArgumentParser(description=''' Process facebook json message data. The messages directory from the data download must be in the current w...
28.357143
92
0.652393
d77fd3ef68e31fafb19d287504f750c6ea163eef
14,162
py
Python
robogen/rgkit/backup bots/KarenRoper10.py
andrewgailey/robogen
7e96cfa26d2e6dc383c5d205816ddd98f8f100d7
[ "Unlicense" ]
null
null
null
robogen/rgkit/backup bots/KarenRoper10.py
andrewgailey/robogen
7e96cfa26d2e6dc383c5d205816ddd98f8f100d7
[ "Unlicense" ]
null
null
null
robogen/rgkit/backup bots/KarenRoper10.py
andrewgailey/robogen
7e96cfa26d2e6dc383c5d205816ddd98f8f100d7
[ "Unlicense" ]
null
null
null
# Karen Roper 1.0 by Adam # http://robotgame.net/viewrobot/7819 import rg escapeSquares = [] globTurn = 0
55.105058
167
0.492303
d7803ad66a3a0cc62d5dfd23d899e392e7609904
10,150
py
Python
tests/cli/tools.py
CNR-ITTIG/plasodfaxp
923797fc00664fa9e3277781b0334d6eed5664fd
[ "Apache-2.0" ]
1
2019-09-26T08:16:30.000Z
2019-09-26T08:16:30.000Z
tests/cli/tools.py
CNR-ITTIG/plasodfaxp
923797fc00664fa9e3277781b0334d6eed5664fd
[ "Apache-2.0" ]
null
null
null
tests/cli/tools.py
CNR-ITTIG/plasodfaxp
923797fc00664fa9e3277781b0334d6eed5664fd
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- """Tests for the CLI tools classes.""" import argparse import io import sys import unittest from plaso.cli import tools from plaso.lib import errors from tests.cli import test_lib if __name__ == '__main__': unittest.main()
33.278689
79
0.670936
d780a8f6fa48d64a0962e1a1c43209f9666ae9dc
18,108
py
Python
src/sklearndf/transformation/wrapper/_wrapper.py
mtsokol/sklearndf
172fb9d5497d6a8f5586d9f4d02e9b48b9bf62c3
[ "Apache-2.0" ]
37
2021-01-12T08:06:45.000Z
2022-02-02T02:32:25.000Z
src/sklearndf/transformation/wrapper/_wrapper.py
mtsokol/sklearndf
172fb9d5497d6a8f5586d9f4d02e9b48b9bf62c3
[ "Apache-2.0" ]
13
2021-01-20T13:03:13.000Z
2022-03-04T15:44:58.000Z
src/sklearndf/transformation/wrapper/_wrapper.py
mtsokol/sklearndf
172fb9d5497d6a8f5586d9f4d02e9b48b9bf62c3
[ "Apache-2.0" ]
4
2021-01-31T16:14:24.000Z
2022-03-14T08:20:08.000Z
""" Core implementation of :mod:`sklearndf.transformation.wrapper` """ import logging from abc import ABCMeta, abstractmethod from typing import Any, Generic, List, Optional, TypeVar, Union import numpy as np import pandas as pd from sklearn.base import TransformerMixin from sklearn.compose import ColumnTransformer f...
33.783582
88
0.678264
d7815d2c4c1816fa3330d39ab973353055d555f9
4,073
py
Python
tests/test_graph.py
nokia/PyBGL
e9868361e5a3870b5247872a8c8c91a1c065fe84
[ "BSD-3-Clause" ]
11
2019-05-20T16:47:03.000Z
2021-12-17T10:24:22.000Z
tests/test_graph.py
nokia/PyBGL
e9868361e5a3870b5247872a8c8c91a1c065fe84
[ "BSD-3-Clause" ]
null
null
null
tests/test_graph.py
nokia/PyBGL
e9868361e5a3870b5247872a8c8c91a1c065fe84
[ "BSD-3-Clause" ]
3
2019-05-24T02:24:30.000Z
2020-03-17T09:55:40.000Z
#!/usr/bin/env pytest-3 # -*- coding: utf-8 -*- __author__ = "Marc-Olivier Buob" __maintainer__ = "Marc-Olivier Buob" __email__ = "marc-olivier.buob@nokia-bell-labs.com" __copyright__ = "Copyright (C) 2020, Nokia" __license__ = "BSD-3" from pybgl.graph import * from pybgl.graphviz import graph...
33.661157
76
0.532286
d782321c51f6868ecf0aeda657d36d93a32a2794
18,087
py
Python
tests/engine/test_error_handling.py
vanguard/sql_translate
28ae149e54a300c3337b538691be80d878a7dbf2
[ "Apache-2.0" ]
3
2021-03-19T21:39:29.000Z
2021-03-26T14:00:24.000Z
tests/engine/test_error_handling.py
vanguard/sql_translate
28ae149e54a300c3337b538691be80d878a7dbf2
[ "Apache-2.0" ]
1
2021-07-07T11:45:04.000Z
2021-07-07T11:45:04.000Z
tests/engine/test_error_handling.py
vanguard/sql_translate
28ae149e54a300c3337b538691be80d878a7dbf2
[ "Apache-2.0" ]
null
null
null
import unittest import pytest import sqlparse from sql_translate.engine import error_handling from typing import Dict, List import re E = error_handling._ErrorHandler() # Just for coverage
62.368966
203
0.697241
d783237b7b4b1a622bb0239356949acd7f8af40d
472
py
Python
day1/debugme.py
autotaker/training-domo
91ac3f90e1a1e06f51f5c794a3a15ade0ade246c
[ "MIT" ]
null
null
null
day1/debugme.py
autotaker/training-domo
91ac3f90e1a1e06f51f5c794a3a15ade0ade246c
[ "MIT" ]
null
null
null
day1/debugme.py
autotaker/training-domo
91ac3f90e1a1e06f51f5c794a3a15ade0ade246c
[ "MIT" ]
null
null
null
def fizzbuzz() -> None: """ 1100n * n35FizzBuzz * n3Fizz * n5Buzz * n """ for i in range(100): print(convert_fizzbuzz(i)) if __name__ == "__main__": fizzbuzz()
16.857143
36
0.516949
d7854c788a36c44c1e1a449591bc078424ed689c
4,854
py
Python
src/Selenium2Library/locators/windowmanager.py
tanggai/robotframework_selenium2library
c702cfad4584f54a08a73f8366e769d2304bf1ee
[ "ECL-2.0", "Apache-2.0" ]
2
2015-09-11T03:24:48.000Z
2018-08-08T11:59:54.000Z
src/Selenium2Library/locators/windowmanager.py
tanggai/robotframework_selenium2library
c702cfad4584f54a08a73f8366e769d2304bf1ee
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
src/Selenium2Library/locators/windowmanager.py
tanggai/robotframework_selenium2library
c702cfad4584f54a08a73f8366e769d2304bf1ee
[ "ECL-2.0", "Apache-2.0" ]
5
2016-09-29T03:53:13.000Z
2021-11-09T02:35:37.000Z
from types import * from robot import utils from selenium.webdriver.remote.webdriver import WebDriver from selenium.common.exceptions import NoSuchWindowException
40.789916
107
0.598475
d7857acd245bcadd0807a8048540079a29f7bb0b
1,265
py
Python
localshop/urls.py
rcoup/localshop
b7d0803afd9335862accfc79dee047a6b0e67ad6
[ "BSD-3-Clause" ]
null
null
null
localshop/urls.py
rcoup/localshop
b7d0803afd9335862accfc79dee047a6b0e67ad6
[ "BSD-3-Clause" ]
null
null
null
localshop/urls.py
rcoup/localshop
b7d0803afd9335862accfc79dee047a6b0e67ad6
[ "BSD-3-Clause" ]
null
null
null
import re from django.conf import settings from django.conf.urls import patterns, include, url from django.contrib import admin from django.views.generic.base import RedirectView from localshop.apps.packages.xmlrpc import handle_request admin.autodiscover() static_prefix = re.escape(settings.STATIC_URL.lstrip('/')) ...
30.119048
77
0.690909
d7870e58d2f2ce7682797454d2079370c26d1673
1,150
py
Python
test/util_test.py
quiet-oceans/libais
61ed34683c01662925f4b9ed69b10885dcb3bc79
[ "Apache-2.0" ]
161
2015-02-10T16:40:25.000Z
2022-02-11T10:17:28.000Z
test/util_test.py
quiet-oceans/libais
61ed34683c01662925f4b9ed69b10885dcb3bc79
[ "Apache-2.0" ]
179
2015-01-14T23:19:25.000Z
2021-10-15T23:32:14.000Z
test/util_test.py
quiet-oceans/libais
61ed34683c01662925f4b9ed69b10885dcb3bc79
[ "Apache-2.0" ]
88
2015-01-19T05:10:39.000Z
2022-03-09T06:59:27.000Z
#!/usr/bin/env python """Tests for ais.util.""" import unittest from ais import util import six if __name__ == '__main__': unittest.main()
30.263158
75
0.715652
d787a69ca7a5c43e3169025b3f9e4ad5662b526b
8,695
py
Python
16_1.py
yunjung-lee/class_python_numpy
589817c8bbca85d70596e4097c0ece093b5353c3
[ "MIT" ]
null
null
null
16_1.py
yunjung-lee/class_python_numpy
589817c8bbca85d70596e4097c0ece093b5353c3
[ "MIT" ]
null
null
null
16_1.py
yunjung-lee/class_python_numpy
589817c8bbca85d70596e4097c0ece093b5353c3
[ "MIT" ]
null
null
null
import numpy as np import pandas as pd from pandas import DataFrame, Series import matplotlib.pyplot as plt num = np.array(['3.14','-2.7','30'], dtype=np.string_) # : dtype=np.string_ # num=num.astype(int) # print(num) # ValueError: invalid literal for int() with base 10: '3.14' num=num.astype(float).astype...
24.287709
114
0.531685
d78849ae509b808adaa2636049aede936282f95e
1,063
py
Python
Chapter8/listing8_1.py
hohsieh/osgeopy-code
932157c748c8fedb67d862b266a983fdd29ead56
[ "MIT" ]
160
2015-01-11T06:45:11.000Z
2022-03-07T15:09:57.000Z
Chapter8/listing8_1.py
sthagen/osgeopy-code
bc85f4ec7a630b53502ee491e400057b67cdab22
[ "MIT" ]
3
2018-09-29T11:34:13.000Z
2020-07-20T16:45:23.000Z
Chapter8/listing8_1.py
sthagen/osgeopy-code
bc85f4ec7a630b53502ee491e400057b67cdab22
[ "MIT" ]
108
2015-05-28T11:29:01.000Z
2022-02-12T12:01:46.000Z
# Script to reproject a shapefile. from osgeo import ogr, osr # Create an output SRS. sr = osr.SpatialReference() sr.ImportFromProj4('''+proj=aea +lat_1=29.5 +lat_2=45.5 +lat_0=23 +lon_0=-96 +x_0=0 +y_0=0 +ellps=GRS80 +datum=NAD83 +units=m +no_defs''') # Don't forget to ch...
28.72973
65
0.668862