hexsha
stringlengths
40
40
size
int64
2
1.05M
ext
stringclasses
9 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
193
max_stars_repo_name
stringlengths
6
109
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
36.6k
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
193
max_issues_repo_name
stringlengths
6
109
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
29.8k
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
193
max_forks_repo_name
stringlengths
6
109
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
11.2k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
2
1.05M
avg_line_length
float64
1
404k
max_line_length
int64
1
1.03M
alphanum_fraction
float64
0
1
1cd59ea050b2076b036f2d82c9e432452b4fe518
8,481
py
Python
nemo_text_processing/text_normalization/en/taggers/measure.py
JMichaelStringer/NeMo
b5b29a69ccb0ec3d8c9ace2f33872ee99858a559
[ "Apache-2.0" ]
2
2021-06-23T19:16:59.000Z
2022-02-23T18:49:07.000Z
nemo_text_processing/text_normalization/en/taggers/measure.py
JMichaelStringer/NeMo
b5b29a69ccb0ec3d8c9ace2f33872ee99858a559
[ "Apache-2.0" ]
null
null
null
nemo_text_processing/text_normalization/en/taggers/measure.py
JMichaelStringer/NeMo
b5b29a69ccb0ec3d8c9ace2f33872ee99858a559
[ "Apache-2.0" ]
1
2021-11-30T15:13:15.000Z
2021-11-30T15:13:15.000Z
# Copyright (c) 2021, NVIDIA CORPORATION. All rights reserved. # Copyright 2015 and onwards Google, 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/license...
36.24359
120
0.588964
1cd5aad071dadb517df7c9922c2fa61f1f7f3492
13,134
py
Python
scripts/mk_catalgo/make_catalog_lambdar.py
Hoseung/pyRamAn
f9386fa5a9f045f98590039988d3cd50bc488dc2
[ "MIT" ]
1
2021-11-25T16:11:56.000Z
2021-11-25T16:11:56.000Z
scripts/mk_catalgo/make_catalog_lambdar.py
Hoseung/pyRamAn
f9386fa5a9f045f98590039988d3cd50bc488dc2
[ "MIT" ]
6
2020-02-17T13:44:43.000Z
2020-06-25T15:35:05.000Z
scripts/mk_catalgo/make_catalog_lambdar.py
Hoseung/pyRamAn
f9386fa5a9f045f98590039988d3cd50bc488dc2
[ "MIT" ]
1
2021-11-25T16:11:56.000Z
2021-11-25T16:11:56.000Z
# -*- coding: utf-8 -*- """ Created on Mon Jun 1 00:15:25 2015 @author: hoseung """ from galaxymodule import galaxy def get_center(x, y, z, m, method='default'): """ Determines the center of mass of given particles. IDL version was to iteratively search for mass weighted mean position of particles w...
30.903529
98
0.583448
1cd5b7e3dd3b162815566c290f4f2ed1797876f4
201
py
Python
tests/test_ChessCam.py
gitter-badger/play-chess-with-a-webcam
16cd9d30d1c0e118f98532ebd19c4b4c1621c837
[ "Apache-2.0" ]
null
null
null
tests/test_ChessCam.py
gitter-badger/play-chess-with-a-webcam
16cd9d30d1c0e118f98532ebd19c4b4c1621c837
[ "Apache-2.0" ]
null
null
null
tests/test_ChessCam.py
gitter-badger/play-chess-with-a-webcam
16cd9d30d1c0e118f98532ebd19c4b4c1621c837
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python # part of https://github.com/WolfgangFahl/play-chess-with-a-webcam from pcwawc.ChessCam import ChessCam def test_DetectMovement(): chessCam = ChessCam() test_DetectMovement()
18.272727
66
0.761194
1cd5d689b04338dba34ae7010edc5b518d65edad
10,867
py
Python
python_backend/triton_client/tao_triton/python/postprocessing/detectnet_processor.py
reonho/capstone21
3c3fd09dbfa727bc69949024b0e5a74308c98fa3
[ "MIT" ]
null
null
null
python_backend/triton_client/tao_triton/python/postprocessing/detectnet_processor.py
reonho/capstone21
3c3fd09dbfa727bc69949024b0e5a74308c98fa3
[ "MIT" ]
1
2021-10-21T02:48:48.000Z
2021-10-21T02:48:48.000Z
python_backend/triton_client/tao_triton/python/postprocessing/detectnet_processor.py
reonho/capstone21
3c3fd09dbfa727bc69949024b0e5a74308c98fa3
[ "MIT" ]
6
2021-08-30T02:51:32.000Z
2022-01-06T04:11:12.000Z
# Copyright (c) 2021, NVIDIA CORPORATION. All rights reserved. # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and associated documentation files (the # "Software"), to deal in the Software without restriction, including # without limitation the rights to use, copy, ...
48.513393
207
0.62676
1cd5e68e4e7849e498570129f2286ea3dae9ca1a
2,521
py
Python
flash_examples/predict/summarize.py
billy-horn/lightning-flash
16d01f74332bc76717f11cf348ca318485acb720
[ "Apache-2.0" ]
1
2021-02-03T05:10:29.000Z
2021-02-03T05:10:29.000Z
flash_examples/predict/summarize.py
tchaton/lightning-flash
61c741d37182d137f39b771879254db8fd20308f
[ "Apache-2.0" ]
null
null
null
flash_examples/predict/summarize.py
tchaton/lightning-flash
61c741d37182d137f39b771879254db8fd20308f
[ "Apache-2.0" ]
null
null
null
from pytorch_lightning import Trainer from flash.core.data import download_data from flash.text import SummarizationData, SummarizationTask if __name__ == "__main__": # 1. Download the data download_data("https://pl-flash-data.s3.amazonaws.com/xsum.zip", 'data/') # 2. Load the model from a checkpoint ...
56.022222
120
0.715192
1cd5e77c07f63d35bfd85ef3aaa55ada50e9ffd2
650
py
Python
Multitask-CNN-RNN/utils/logging_utils.py
wtomin/Multitask-Emotion-Recognition-with-Incomplete-Labels
e6df7ffc9b0318fdce405e40993c79785b47c785
[ "MIT" ]
74
2020-03-08T15:29:00.000Z
2022-03-05T14:57:33.000Z
Multitask-CNN-RNN/utils/logging_utils.py
wtomin/Multitask-Emotion-Recognition-with-Incomplete-Labels
e6df7ffc9b0318fdce405e40993c79785b47c785
[ "MIT" ]
19
2020-03-06T08:56:51.000Z
2022-03-27T05:07:35.000Z
Multitask-CNN-RNN/utils/logging_utils.py
wtomin/Multitask-Emotion-Recognition-with-Incomplete-Labels
e6df7ffc9b0318fdce405e40993c79785b47c785
[ "MIT" ]
23
2020-03-20T08:19:55.000Z
2022-03-16T17:40:09.000Z
import os import pandas as pd import pickle import matplotlib.pyplot as plt plt.rcParams.update({'font.size': 12}) def draw_plots(df, title, save_path): plt.figure() for i, key in enumerate(df.keys()): if key !='loss': plt.plot(df.index, df[key], linewidth=2, label = key) plt.legend() plt.title(title) plt.xla...
27.083333
58
0.736923
1cd633fb080365abb3d732374e2fbbb423771ad8
614
py
Python
catkin_ws/src/simple_applications/src/circular_motion_client.py
a-yildiz/ROS-Simple-Sample-Packages
eb6b18adcd1fe26e2b5e644c42922e8102867cd9
[ "MIT" ]
1
2021-09-19T07:51:23.000Z
2021-09-19T07:51:23.000Z
catkin_ws/src/simple_applications/src/circular_motion_client.py
a-yildiz/ROS-Simple-Sample-Packages
eb6b18adcd1fe26e2b5e644c42922e8102867cd9
[ "MIT" ]
null
null
null
catkin_ws/src/simple_applications/src/circular_motion_client.py
a-yildiz/ROS-Simple-Sample-Packages
eb6b18adcd1fe26e2b5e644c42922e8102867cd9
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import rospy from simple_applications.srv import CircularMotion def define_radius(): rospy.wait_for_service("circular_service") try: radius = input("Enter the desired radius (float64): ") # will return str radius = float(radius) ...
32.315789
88
0.644951
1cd63d9dd9b4cdf255c9ae81f5f1f9bf08e37d03
4,317
py
Python
tests/integration/elasticsearch_/test_instrumented_transport.py
PaulStaggs/signalfx-python-tracing
0f704f86d25824cb9fac306f5b2132fe913aaf87
[ "Apache-2.0" ]
null
null
null
tests/integration/elasticsearch_/test_instrumented_transport.py
PaulStaggs/signalfx-python-tracing
0f704f86d25824cb9fac306f5b2132fe913aaf87
[ "Apache-2.0" ]
null
null
null
tests/integration/elasticsearch_/test_instrumented_transport.py
PaulStaggs/signalfx-python-tracing
0f704f86d25824cb9fac306f5b2132fe913aaf87
[ "Apache-2.0" ]
null
null
null
# Copyright (C) 2019 SignalFx. All rights reserved. from time import sleep from opentracing.mocktracer import MockTracer import elasticsearch import docker import pytest from signalfx_tracing.libraries import elasticsearch_config from signalfx_tracing import instrument, uninstrument from tests.utils import random_int...
39.605505
120
0.672458
1cd65f04c10fce3b2fb354af17de068544b87bad
4,495
py
Python
parsedatetime/pdt_locales/icu.py
zanachka/parsedatetime
96a1ed0c0be7dfd6a4404c0c98dc6380f2a16916
[ "Apache-2.0" ]
463
2015-01-05T11:10:50.000Z
2022-03-20T03:48:29.000Z
parsedatetime/pdt_locales/icu.py
zanachka/parsedatetime
96a1ed0c0be7dfd6a4404c0c98dc6380f2a16916
[ "Apache-2.0" ]
196
2015-01-04T15:31:06.000Z
2022-03-24T16:57:53.000Z
parsedatetime/pdt_locales/icu.py
zanachka/parsedatetime
96a1ed0c0be7dfd6a4404c0c98dc6380f2a16916
[ "Apache-2.0" ]
96
2015-01-19T14:38:49.000Z
2021-12-17T14:20:21.000Z
# -*- encoding: utf-8 -*- from __future__ import absolute_import """ pdt_locales All of the included locale classes shipped with pdt. """ import datetime try: import pyicu # type: ignore except ImportError: pyicu = None def icu_object(mapping): return type('_icu', (object,), mapping) def merge_weekd...
29.768212
90
0.57931
1cd666e475abb9bbf2c05a62f0fbdf0ff028b087
955
py
Python
utils/utils.py
XIThing/esdl-mapeditor
9f4cd4a58714ea67aeb532e88e88f0435a87dbd5
[ "Apache-2.0" ]
null
null
null
utils/utils.py
XIThing/esdl-mapeditor
9f4cd4a58714ea67aeb532e88e88f0435a87dbd5
[ "Apache-2.0" ]
14
2020-09-30T21:16:46.000Z
2021-11-08T18:54:34.000Z
utils/utils.py
XIThing/esdl-mapeditor
9f4cd4a58714ea67aeb532e88e88f0435a87dbd5
[ "Apache-2.0" ]
1
2020-09-17T12:48:57.000Z
2020-09-17T12:48:57.000Z
# This work is based on original code developed and copyrighted by TNO 2020. # Subsequent contributions are licensed to you by the developers of such code and are # made available to the Project under one or several contributor license agreements. # # This work is licensed to you under the Apache License, Version 2...
26.527778
87
0.64712
1cd66ab7e01b519e29b25a6bfa96731a6ab932d3
377
py
Python
gmshparser/__init__.py
ahojukka5/gmshparser
add27f8ddc97fb14614432e02bc626ec61030b6d
[ "MIT" ]
10
2020-04-17T21:02:07.000Z
2021-12-21T23:11:34.000Z
gmshparser/__init__.py
ahojukka5/gmshparser
add27f8ddc97fb14614432e02bc626ec61030b6d
[ "MIT" ]
null
null
null
gmshparser/__init__.py
ahojukka5/gmshparser
add27f8ddc97fb14614432e02bc626ec61030b6d
[ "MIT" ]
1
2020-11-18T18:04:48.000Z
2020-11-18T18:04:48.000Z
from .mesh import Mesh from .main_parser import MainParser __version__ = "0.2.0" __author__ = "Jukka Aho <ahojukka5@gmail.com>" def parse(filename: str) -> Mesh: """Parse Gmsh .msh file and return `Mesh` object.""" mesh = Mesh() mesh.set_name(filename) parser = MainParser() with open(filename, "r...
23.5625
56
0.657825
1cd6debed6ca610655d199f4188ac7d125d27e29
119
py
Python
youtubeadl/apps/core/tests.py
loftwah/youtube-audio-dl
c911155db63aff7e2e9c6ba0d73a04d2d5f9eb0e
[ "MIT" ]
null
null
null
youtubeadl/apps/core/tests.py
loftwah/youtube-audio-dl
c911155db63aff7e2e9c6ba0d73a04d2d5f9eb0e
[ "MIT" ]
null
null
null
youtubeadl/apps/core/tests.py
loftwah/youtube-audio-dl
c911155db63aff7e2e9c6ba0d73a04d2d5f9eb0e
[ "MIT" ]
null
null
null
from django.test import TestCase class SmokeTest(TestCase): def test_application_runs(self): assert True
17
36
0.739496
1cd70f6df699d018fbc124f81fffd89f5d66f712
9,571
py
Python
skorch/history.py
TheAutumnOfRice/skorch
6d778fc38d797644c847a9c87dd23299eea63087
[ "BSD-3-Clause" ]
2,748
2019-03-19T11:43:01.000Z
2022-03-31T13:55:28.000Z
skorch/history.py
TheAutumnOfRice/skorch
6d778fc38d797644c847a9c87dd23299eea63087
[ "BSD-3-Clause" ]
392
2019-03-19T11:17:04.000Z
2022-03-29T21:36:53.000Z
skorch/history.py
TheAutumnOfRice/skorch
6d778fc38d797644c847a9c87dd23299eea63087
[ "BSD-3-Clause" ]
197
2019-03-27T09:18:25.000Z
2022-03-27T00:15:23.000Z
"""Contains history class and helper functions.""" import json from skorch.utils import open_file_like # pylint: disable=invalid-name class _none: """Special placeholder since ``None`` is a valid value.""" def _not_none(items): """Whether the item is a placeholder or contains a placeholder.""" if not ...
31.483553
76
0.597848
1cd74651b05d302df32dece56a63a84fe6c34fcb
28,438
py
Python
putil/misc.py
pmacosta/putil
416cea52df8221981727e25d133e9b4e3f464798
[ "MIT" ]
6
2015-12-15T04:09:08.000Z
2020-02-21T01:40:57.000Z
putil/misc.py
pmacosta/putil
416cea52df8221981727e25d133e9b4e3f464798
[ "MIT" ]
null
null
null
putil/misc.py
pmacosta/putil
416cea52df8221981727e25d133e9b4e3f464798
[ "MIT" ]
2
2016-01-21T23:29:17.000Z
2020-02-21T01:41:05.000Z
# misc.py # Copyright (c) 2013-2016 Pablo Acosta-Serafini # See LICENSE for details # pylint: disable=C0111,E0611,R0903,W0611 # Standard library imports from __future__ import print_function import ast import collections import inspect import os import platform import re import sys import tempfile import time import t...
29.934737
79
0.585555
1cd77cf40a98b3e13f6cd504742c17b1cea874d9
1,084
py
Python
ooni/tests/test_common.py
irl/ooni-probe
c21861c28ca6bd667715872d099006fab87222fd
[ "BSD-2-Clause" ]
2
2016-12-20T11:44:43.000Z
2016-12-20T11:44:49.000Z
ooni/tests/test_common.py
Acidburn0zzz/ooni-probe
22720e383093c0d30fd1b6ca44794d3b29031f91
[ "BSD-2-Clause" ]
null
null
null
ooni/tests/test_common.py
Acidburn0zzz/ooni-probe
22720e383093c0d30fd1b6ca44794d3b29031f91
[ "BSD-2-Clause" ]
null
null
null
from twisted.trial import unittest from ooni.common.http_utils import META_CHARSET_REGEXP class TestHTTPUtils(unittest.TestCase): def test_charset_detection(self): no_charset_html = """ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <ht...
54.2
131
0.714022
1cd7ab5b2ec84048a0039b8b44be60b5817c6206
12,661
py
Python
tests/test_main.py
vincentfretin/kinto
34ff8093ab708eae55fc4eefa237fb420e808a6a
[ "Apache-2.0" ]
4,618
2015-08-06T18:17:02.000Z
2022-03-31T10:03:07.000Z
tests/test_main.py
vincentfretin/kinto
34ff8093ab708eae55fc4eefa237fb420e808a6a
[ "Apache-2.0" ]
1,578
2015-07-30T09:47:41.000Z
2022-03-31T13:12:50.000Z
tests/test_main.py
vincentfretin/kinto
34ff8093ab708eae55fc4eefa237fb420e808a6a
[ "Apache-2.0" ]
546
2015-07-30T10:31:35.000Z
2022-03-31T12:44:32.000Z
import builtins import logging import os import sys import tempfile import unittest from io import StringIO from unittest import mock import pytest from kinto import __version__ as kinto_version from kinto.__main__ import DEFAULT_LOG_FORMAT, main fd, TEMP_KINTO_INI = tempfile.mkstemp(prefix="kinto_config", suffix="....
36.071225
97
0.505884
1cd7b13f3a502329bbb520ab3f87a366d0174291
5,658
py
Python
strens/module.py
alexandrwang/6882project
3723bda72baacded3f0b436e1cce171d084f43ab
[ "MIT" ]
null
null
null
strens/module.py
alexandrwang/6882project
3723bda72baacded3f0b436e1cce171d084f43ab
[ "MIT" ]
null
null
null
strens/module.py
alexandrwang/6882project
3723bda72baacded3f0b436e1cce171d084f43ab
[ "MIT" ]
1
2020-01-27T16:19:34.000Z
2020-01-27T16:19:34.000Z
import numpy as np from random import choice from pybrain.rl.learners.valuebased.interface import ActionValueInterface ''' Updates to Q are given by Q(s, a) = E[R(s, a)] + gamma * sum_s'[T(s, a, s') * max_a' Q(s', a')] where we infer the transition probabilities T(s, a, s') = p(s' | s, a) and use the ML estimate f...
35.584906
131
0.631672
1cd7c8861fb64999420df4c6c90833e2498dace0
4,172
py
Python
Juego(por nombrar)/src/clases/App.py
Bipavez/GueimDeb-Fiziko-Kulturizt
462f96f90f59c40d5ae194c15675546cc8716dd7
[ "MIT" ]
1
2018-07-17T12:57:40.000Z
2018-07-17T12:57:40.000Z
Juego(por nombrar)/src/clases/App.py
Bipavez/GueimDeb-Fiziko-Kulturizt
462f96f90f59c40d5ae194c15675546cc8716dd7
[ "MIT" ]
null
null
null
Juego(por nombrar)/src/clases/App.py
Bipavez/GueimDeb-Fiziko-Kulturizt
462f96f90f59c40d5ae194c15675546cc8716dd7
[ "MIT" ]
null
null
null
import pygame as pg from pygame import sprite from pygame.locals import * import time import math from Control import * #En algún momento poner referencias from Sprites import * from ImageProcessing import * from settings import * from ambiente import * """ Este módulo es para que hagamos la clase App, por hoy e...
37.25
132
0.628955
1cd7cf87cf5795a74ea1e55d219fdcc6c9647cf1
7,523
py
Python
pyserval/lowlevel/keyring.py
umr-ds/pyserval
073363ee56754f122d5b09544f242d54a17165e3
[ "MIT" ]
1
2017-08-29T19:37:31.000Z
2017-08-29T19:37:31.000Z
pyserval/lowlevel/keyring.py
umr-ds/pyserval
073363ee56754f122d5b09544f242d54a17165e3
[ "MIT" ]
16
2017-11-29T16:41:35.000Z
2019-09-30T13:44:10.000Z
pyserval/lowlevel/keyring.py
umr-ds/pyserval
073363ee56754f122d5b09544f242d54a17165e3
[ "MIT" ]
1
2017-08-20T21:51:52.000Z
2017-08-20T21:51:52.000Z
""" pyserval.lowlevel.keyring ~~~~~~~~~~~~~~~~ This module contains the means to interact with the serval keyring """ from pyserval.lowlevel.connection import RestfulConnection from requests.models import Response from typing import Any, Dict, Union class LowLevelKeyring: """Interface to access keyring-related ...
34.828704
99
0.582746
1cd7d5001df90ca51ea23b919b1fbd56ac5fe3c9
3,374
py
Python
classes/class_10.py
parth-patel-samarthview/batch_201901
f407c1bf9575a01e8ddc507adb6f0574f8d2bc09
[ "MIT" ]
2
2019-03-17T07:20:24.000Z
2019-03-31T05:47:09.000Z
classes/class_10.py
parth-patel-samarthview/batch_201901
f407c1bf9575a01e8ddc507adb6f0574f8d2bc09
[ "MIT" ]
null
null
null
classes/class_10.py
parth-patel-samarthview/batch_201901
f407c1bf9575a01e8ddc507adb6f0574f8d2bc09
[ "MIT" ]
2
2019-01-28T13:09:48.000Z
2019-03-17T07:20:37.000Z
""" 1) Program to accept the strings which contains all vowels 2) Palindrome numbers in a list 3) Number to words like 121 converts one two one or one hundred twenty one """ # ############################################################################# # 1) Program to accept the strings which contains all vowels # #...
27.209677
79
0.473622
1cd7f5135aa4c505e6f0b7ce09de6b8692b9a477
2,207
py
Python
src/me_es/custom_gym/mujoco/ant_maze.py
icaros-usc/dqd-rl
83e3da62df37b45c4b8fc549c07f566797b5f685
[ "MIT" ]
6
2022-02-09T05:35:37.000Z
2022-03-12T11:54:59.000Z
src/me_es/custom_gym/mujoco/ant_maze.py
icaros-usc/dqd-rl
83e3da62df37b45c4b8fc549c07f566797b5f685
[ "MIT" ]
null
null
null
src/me_es/custom_gym/mujoco/ant_maze.py
icaros-usc/dqd-rl
83e3da62df37b45c4b8fc549c07f566797b5f685
[ "MIT" ]
null
null
null
# Modifications Copyright (c) 2020 Uber Technologies Inc. # # ------------------------------------------------------------------------ # # THIS IS NOT THE ORIGINAL VERSION OF THE FILE. # # Last modified 2021-12-02 """Ant Maze environment. Modified from https://github.com/openai/mlsh from the "Meta-Learning Shared Hier...
35.031746
80
0.594472
1cd82ed8e35e994e9541b52005f38ed92346e1c8
14,711
py
Python
_deprecated/rotate_loader.py
chawins/entangle-rep
3e9e0d6e7536b0de0e35d7f8717f2ccc8e887759
[ "MIT" ]
15
2019-06-30T12:30:17.000Z
2021-12-07T20:20:36.000Z
_deprecated/rotate_loader.py
chawins/entangle-rep
3e9e0d6e7536b0de0e35d7f8717f2ccc8e887759
[ "MIT" ]
2
2020-06-11T10:10:52.000Z
2021-12-21T08:50:33.000Z
_deprecated/rotate_loader.py
chawins/entangle-rep
3e9e0d6e7536b0de0e35d7f8717f2ccc8e887759
[ "MIT" ]
9
2019-07-09T14:52:30.000Z
2020-10-27T19:18:34.000Z
from __future__ import print_function import csv import errno import os import random import sys from pdb import set_trace as breakpoint # from Places205 import Places205 import numpy as np import torch import torch.utils.data as data import torchvision import torchvision.datasets as datasets import torchvision.trans...
38.713158
103
0.557474
1cd8491fcac7eed97dfbf830ced8811e3463635b
13,503
py
Python
tests/interface_tests/test_abstract_base_methods.py
3mcloud/magellan-models
aae47496f240a5211e650a5c0efcbc95a15f7bb0
[ "BSD-3-Clause" ]
2
2021-08-11T18:15:28.000Z
2021-08-11T18:33:38.000Z
tests/interface_tests/test_abstract_base_methods.py
3mcloud/magellan-models
aae47496f240a5211e650a5c0efcbc95a15f7bb0
[ "BSD-3-Clause" ]
null
null
null
tests/interface_tests/test_abstract_base_methods.py
3mcloud/magellan-models
aae47496f240a5211e650a5c0efcbc95a15f7bb0
[ "BSD-3-Clause" ]
null
null
null
from magellan_models.interface.abstract_api_model import AbstractApiModel from magellan_models.exceptions import MagellanParserException, MagellanRuntimeException import pytest from magellan_models.config import MagellanConfig from typing import List, Dict, Any from unittest.mock import MagicMock, patch import json fa...
31.041379
153
0.629342
1cd84c49bbe4d90b2229c3f78214361157b5b922
6,882
py
Python
ImagePanel.py
tc21/SquareCrop
d6ea08306ab8343ba2ba826fd8c2bfdc658899d8
[ "BSD-3-Clause" ]
null
null
null
ImagePanel.py
tc21/SquareCrop
d6ea08306ab8343ba2ba826fd8c2bfdc658899d8
[ "BSD-3-Clause" ]
null
null
null
ImagePanel.py
tc21/SquareCrop
d6ea08306ab8343ba2ba826fd8c2bfdc658899d8
[ "BSD-3-Clause" ]
null
null
null
import wx import wx.adv import ImageDropTarget import SquareImage class ImagePanel(wx.Frame): def __init__(self, parent=None, title="Image Panel", imageSize=1024): super().__init__(parent=parent, title=title, size=(imageSize, imageSize)) # Create the panel to display the image, and other ...
41.709091
101
0.622929
1cd8591d905a915cbdbe3b548ba5ce20ba022e5e
40,992
py
Python
nova/tests/unit/api/openstack/compute/test_floating_ips.py
ebalduf/nova-backports
6bf97ec73467de522d34ab7a17ca0e0874baa7f9
[ "Apache-2.0" ]
null
null
null
nova/tests/unit/api/openstack/compute/test_floating_ips.py
ebalduf/nova-backports
6bf97ec73467de522d34ab7a17ca0e0874baa7f9
[ "Apache-2.0" ]
null
null
null
nova/tests/unit/api/openstack/compute/test_floating_ips.py
ebalduf/nova-backports
6bf97ec73467de522d34ab7a17ca0e0874baa7f9
[ "Apache-2.0" ]
1
2020-03-01T17:04:57.000Z
2020-03-01T17:04:57.000Z
# Copyright (c) 2011 X.commerce, a business unit of eBay Inc. # Copyright 2011 Eldar Nugaev # 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://...
42.216272
78
0.626269
1cd85b3cc8095786a42900f02693b710763d1ac7
296
py
Python
Arrays/largest-continuous-sum.py
jen-sjen/data-structures-basics-leetcode
addac32974b16e0a37aa60c210ab7820b349b279
[ "MIT" ]
6
2021-07-29T03:26:20.000Z
2022-01-28T15:11:45.000Z
Arrays/largest-continuous-sum.py
jen-sjen/data-structures-basics-leetcode
addac32974b16e0a37aa60c210ab7820b349b279
[ "MIT" ]
2
2021-09-30T09:47:23.000Z
2022-01-31T03:08:24.000Z
Arrays/largest-continuous-sum.py
jen-sjen/data-structures-basics-leetcode
addac32974b16e0a37aa60c210ab7820b349b279
[ "MIT" ]
5
2021-08-10T06:41:11.000Z
2022-01-29T17:50:20.000Z
def large(arr): if (len(arr)) < 0: return 0 max_sum = current = arr[0] for num in arr[1:]: current = max(current + num, num) max_sum = max(current, max_sum) return max_sum if __name__ == "__main__": print(large([1, -1, 3, -4, 5, -3, 6, -3, 2, -1]))
21.142857
53
0.523649
1cd893ce01fe76c5f78d1254f6bd3a5cde8342a3
2,340
py
Python
Listener.py
Cyanoxygen/arcaea-mp
4ac59a50564d9c074dbce393bb1c563e7fd074b5
[ "MIT" ]
3
2020-04-12T02:20:29.000Z
2021-06-05T08:36:56.000Z
Listener.py
Cyanoxygen/arcaea-mp
4ac59a50564d9c074dbce393bb1c563e7fd074b5
[ "MIT" ]
null
null
null
Listener.py
Cyanoxygen/arcaea-mp
4ac59a50564d9c074dbce393bb1c563e7fd074b5
[ "MIT" ]
null
null
null
from datetime import datetime from time import sleep from arcaea.MultiPlayer import Multiplayer import threading import config def curtime(): return int(datetime.now().timestamp()) class MultiplayerListener: def __init__(self, threaded=True): """ The listener process. This listener w...
33.913043
98
0.551709
1cd89f3537b5470d20ac124bb9650811c58fe106
11,785
py
Python
scriptabit/plugins/health_effects.py
luqiang21/scriptabit
0d0cf71814e98954850891fa0887bdcffcf7147d
[ "Apache-2.0" ]
9
2016-09-04T07:02:20.000Z
2021-06-29T07:29:40.000Z
scriptabit/plugins/health_effects.py
luqiang21/scriptabit
0d0cf71814e98954850891fa0887bdcffcf7147d
[ "Apache-2.0" ]
35
2016-07-30T01:03:15.000Z
2022-02-12T20:27:37.000Z
scriptabit/plugins/health_effects.py
luqiang21/scriptabit
0d0cf71814e98954850891fa0887bdcffcf7147d
[ "Apache-2.0" ]
8
2016-09-05T12:36:53.000Z
2020-06-15T18:25:50.000Z
"""Scriptabit plugin that implements various health-modification effects. """ # Ensure backwards compatibility with Python 2 from __future__ import ( absolute_import, division, print_function, unicode_literals) from builtins import * import itertools import logging import math from datetime import date...
31.680108
80
0.557913
1cd8f7acec9289764251c9b9e14d63db8186b8a9
2,367
py
Python
tiny_classifier/focal_loss.py
riciche/SimpleCVReproduction
4075de39f9c61f1359668a413f6a5d98903fcf97
[ "Apache-2.0" ]
923
2020-01-11T06:36:53.000Z
2022-03-31T00:26:57.000Z
tiny_classifier/focal_loss.py
riciche/SimpleCVReproduction
4075de39f9c61f1359668a413f6a5d98903fcf97
[ "Apache-2.0" ]
25
2020-02-27T08:35:46.000Z
2022-01-25T08:54:19.000Z
tiny_classifier/focal_loss.py
riciche/SimpleCVReproduction
4075de39f9c61f1359668a413f6a5d98903fcf97
[ "Apache-2.0" ]
262
2020-01-02T02:19:40.000Z
2022-03-23T04:56:16.000Z
import torch import torch.nn as nn import torch.nn.functional as F from torch.autograd import Variable class FocalLoss(nn.Module): r""" This criterion is a implemenation of Focal Loss, which is proposed in Focal Loss for Dense Object Detection. Loss(x, class) = - \alpha (1-softmax(x)[c...
38.177419
110
0.581749
1cd905d67a3f0a76fc92ca378045d0d48fc3b467
3,299
py
Python
notebooks/queueing_theory/src/latency_aware_simulator.py
jolynch/python_performance_toolkit
c38abd5b75caf2fde9b6f8d4e0fea1af0411de27
[ "MIT" ]
5
2018-10-31T20:24:19.000Z
2019-05-01T04:17:51.000Z
notebooks/queueing_theory/src/latency_aware_simulator.py
jolynch/python_performance_toolkit
c38abd5b75caf2fde9b6f8d4e0fea1af0411de27
[ "MIT" ]
null
null
null
notebooks/queueing_theory/src/latency_aware_simulator.py
jolynch/python_performance_toolkit
c38abd5b75caf2fde9b6f8d4e0fea1af0411de27
[ "MIT" ]
1
2018-03-16T21:47:15.000Z
2018-03-16T21:47:15.000Z
import random from collections import namedtuple import numpy as np import simpy LatencyDatum = namedtuple( 'LatencyDatum', ('t_queued', 't_processing', 't_total') ) class LatencyAwareRequestSimulator(object): """ Simulates a M/G/k process common in request processing (computing) :param worker_desc...
34.364583
78
0.645347
1cd90dd8f7d258c69e2c056a3bcaeaf317a75723
11,237
py
Python
HW3/dbsys-hw3/update/dbsys-hw3/Catalog/Schema.py
yliu120/dbsystem
d1b008f411929058a34a1dd2c44c9ee2cf899865
[ "Apache-2.0" ]
null
null
null
HW3/dbsys-hw3/update/dbsys-hw3/Catalog/Schema.py
yliu120/dbsystem
d1b008f411929058a34a1dd2c44c9ee2cf899865
[ "Apache-2.0" ]
null
null
null
HW3/dbsys-hw3/update/dbsys-hw3/Catalog/Schema.py
yliu120/dbsystem
d1b008f411929058a34a1dd2c44c9ee2cf899865
[ "Apache-2.0" ]
null
null
null
import json, re from collections import namedtuple, OrderedDict from struct import Struct class Types: """ Utility functions for database types. The 'types' dictionary defines a mapping from user-facing type primitives to their representation in the Python 'struct' module, and a boolean indicating whether t...
33.245562
100
0.645902
1cd91ebca92397987f08b511981c13c0379aa61e
7,603
py
Python
demisto_sdk/commands/generate_docs/generate_script_doc.py
SepioSystems/demisto-sdk
f28007a637b7a38f4165bc522328ccbbd9b05628
[ "MIT" ]
null
null
null
demisto_sdk/commands/generate_docs/generate_script_doc.py
SepioSystems/demisto-sdk
f28007a637b7a38f4165bc522328ccbbd9b05628
[ "MIT" ]
null
null
null
demisto_sdk/commands/generate_docs/generate_script_doc.py
SepioSystems/demisto-sdk
f28007a637b7a38f4165bc522328ccbbd9b05628
[ "MIT" ]
null
null
null
import os from demisto_sdk.commands.common.tools import (get_from_version, get_yaml, print_error, print_warning) from demisto_sdk.commands.common.update_id_set import get_depends_on from demisto_sdk.commands.create_id_set.create_id_set import IDSetCreator from demisto_sdk...
32.216102
117
0.600947
1cd92b7d251c483aa54873ddde909f933758baf1
1,368
py
Python
tempest/services/volume/json/admin/volume_hosts_client.py
midokura/tempest
b0ec1d280f057d5d9c2eda081bcbda7e381ecb3b
[ "Apache-2.0" ]
null
null
null
tempest/services/volume/json/admin/volume_hosts_client.py
midokura/tempest
b0ec1d280f057d5d9c2eda081bcbda7e381ecb3b
[ "Apache-2.0" ]
null
null
null
tempest/services/volume/json/admin/volume_hosts_client.py
midokura/tempest
b0ec1d280f057d5d9c2eda081bcbda7e381ecb3b
[ "Apache-2.0" ]
null
null
null
# Copyright 2013 OpenStack Foundation # 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 requ...
31.090909
78
0.696637
1cd941a83bfde9ce4d3e16d0fec983d5675074f1
3,294
py
Python
tests/test_basic.py
aarondwi/tobira
1d8bc1a9f7ab2acd497d31b0d144d61851c9c72e
[ "MIT" ]
8
2020-10-23T12:31:14.000Z
2021-09-27T11:27:48.000Z
tests/test_basic.py
aarondwi/tobira
1d8bc1a9f7ab2acd497d31b0d144d61851c9c72e
[ "MIT" ]
null
null
null
tests/test_basic.py
aarondwi/tobira
1d8bc1a9f7ab2acd497d31b0d144d61851c9c72e
[ "MIT" ]
2
2020-11-25T16:51:00.000Z
2021-09-27T11:27:49.000Z
import unittest from time import sleep from concurrent.futures import ThreadPoolExecutor from functools import partial from singleflight.basic import SingleFlight class TestSingleFlight(unittest.TestCase): def test_call_directly(self): sf = SingleFlight() executor = ThreadPoolExecutor(max_worker...
24.954545
55
0.60595
1cd941ef3a36d1a2dfc409d98fd5993ce627d280
20,896
py
Python
mealy/error_analyzer.py
dataiku-research/mealy
039978fbb4bbda4e89e55ae05a75bdb3560191e2
[ "Apache-2.0" ]
12
2021-09-17T19:58:09.000Z
2022-03-22T16:04:05.000Z
mealy/error_analyzer.py
dataiku-research/mealy
039978fbb4bbda4e89e55ae05a75bdb3560191e2
[ "Apache-2.0" ]
null
null
null
mealy/error_analyzer.py
dataiku-research/mealy
039978fbb4bbda4e89e55ae05a75bdb3560191e2
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- import numpy as np import collections from sklearn import tree from sklearn.model_selection import GridSearchCV from sklearn.base import is_regressor from sklearn.pipeline import Pipeline from sklearn.compose import ColumnTransformer from sklearn.base import BaseEstimator from sklearn.metrics im...
48.482599
209
0.664721
1cd94dcdd322d70d0decd05931b0ed3a33b7290f
5,243
py
Python
client.py
cyrushadavi/home_automation
dcf1dcc688b5021a0c16e68e372e38a28d819f3d
[ "MIT" ]
null
null
null
client.py
cyrushadavi/home_automation
dcf1dcc688b5021a0c16e68e372e38a28d819f3d
[ "MIT" ]
null
null
null
client.py
cyrushadavi/home_automation
dcf1dcc688b5021a0c16e68e372e38a28d819f3d
[ "MIT" ]
null
null
null
"""Client class for connecting to the Logitech Harmony.""" import json import logging import time import sleekxmpp from sleekxmpp.xmlstream import ET LOGGER = logging.getLogger(__name__) class HarmonyClient(sleekxmpp.ClientXMPP): """An XMPP client for connecting to the Logitech Harmony.""" def __init__(se...
33.183544
82
0.609002
1cd955c1aabf09c73570257b06ff50de2ebe3ba0
1,896
py
Python
alipay/aop/api/domain/AnttechOceanbasePassinfoLogininfoQueryModel.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
213
2018-08-27T16:49:32.000Z
2021-12-29T04:34:12.000Z
alipay/aop/api/domain/AnttechOceanbasePassinfoLogininfoQueryModel.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
29
2018-09-29T06:43:00.000Z
2021-09-02T03:27:32.000Z
alipay/aop/api/domain/AnttechOceanbasePassinfoLogininfoQueryModel.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
59
2018-08-27T16:59:26.000Z
2022-03-25T10:08:15.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.constant.ParamConstants import * class AnttechOceanbasePassinfoLogininfoQueryModel(object): def __init__(self): self._ob_auth_token = None self._renew = None self._role_type = None @property def ob_aut...
26.704225
77
0.589662
1cd9571bb40916e4d4666a7aa58ca61dd64a66be
3,836
py
Python
world_clock.py
thomasvalette/world_clock
b4f8e162f2a81cb4ccfe25fc8819a0d0a6c2e294
[ "MIT" ]
null
null
null
world_clock.py
thomasvalette/world_clock
b4f8e162f2a81cb4ccfe25fc8819a0d0a6c2e294
[ "MIT" ]
null
null
null
world_clock.py
thomasvalette/world_clock
b4f8e162f2a81cb4ccfe25fc8819a0d0a6c2e294
[ "MIT" ]
null
null
null
import os from datetime import datetime from time import sleep from pytz import timezone import yaml from rich import print from rich.layout import Layout from rich.panel import Panel from rich.console import Console from rich.live import Live from rich.style import Style from rich.align import Align from numstrings ...
26.095238
98
0.605579
1cd96de1e6e71f64ec4ba6a63863271a1e5410ce
1,689
py
Python
setup.py
vishalbelsare/tradingkit
a5dd5e1de828a930c3d4530a34f564b110edc076
[ "MIT" ]
null
null
null
setup.py
vishalbelsare/tradingkit
a5dd5e1de828a930c3d4530a34f564b110edc076
[ "MIT" ]
null
null
null
setup.py
vishalbelsare/tradingkit
a5dd5e1de828a930c3d4530a34f564b110edc076
[ "MIT" ]
null
null
null
import setuptools setuptools.setup( name="tradingkit", version="1.11.1", author="QBit Artifacts, SL", author_email="lluis@logictraders.com", license="MIT", description="Trading and backtesting framework for Python", long_description=open("README.md", "r").read(), long_des...
41.195122
103
0.583777
1cd9a3c477751ffa10f83e7e3cf3b00b71cc9671
303
py
Python
setup.py
danielballan/datamuxer
2df643508b8b6c92198c4b0d986b4b9b560385e0
[ "BSD-3-Clause" ]
null
null
null
setup.py
danielballan/datamuxer
2df643508b8b6c92198c4b0d986b4b9b560385e0
[ "BSD-3-Clause" ]
null
null
null
setup.py
danielballan/datamuxer
2df643508b8b6c92198c4b0d986b4b9b560385e0
[ "BSD-3-Clause" ]
null
null
null
try: from setuptools import setup except ImportError: try: from setuptools.core import setup except ImportError: from distutils.core import setup setup( name='datamuxer', version='v0.3.0', author='Brookhaven National Laboratory', py_modules=['datamuxer'] )
18.9375
44
0.673267
1cd9cc09f51a950020925d92e266aea6661061ff
4,062
py
Python
intersight/models/hcl_operating_system_vendor_list.py
gumpcraca/intersight-python
780e6703c739f329084beacbbf2ad7a6a2e59b2b
[ "Apache-2.0" ]
null
null
null
intersight/models/hcl_operating_system_vendor_list.py
gumpcraca/intersight-python
780e6703c739f329084beacbbf2ad7a6a2e59b2b
[ "Apache-2.0" ]
null
null
null
intersight/models/hcl_operating_system_vendor_list.py
gumpcraca/intersight-python
780e6703c739f329084beacbbf2ad7a6a2e59b2b
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ Intersight REST API This is Intersight REST API OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ from pprint import pformat from six import iteritems import re class HclOperatingSystemVendorList(object): """ NOT...
26.376623
93
0.572871
1cda1b4a72bfd46e49d8edb29975b78bde6c6120
7,478
py
Python
python/akg/ops/array/transpose.py
tianjiashuo/akg
a9cbf642063fb1086a93e8bc6be6feb145689817
[ "Apache-2.0" ]
286
2020-06-23T06:40:44.000Z
2022-03-30T01:27:49.000Z
python/akg/ops/array/transpose.py
tianjiashuo/akg
a9cbf642063fb1086a93e8bc6be6feb145689817
[ "Apache-2.0" ]
10
2020-07-31T03:26:59.000Z
2021-12-27T15:00:54.000Z
python/akg/ops/array/transpose.py
tianjiashuo/akg
a9cbf642063fb1086a93e8bc6be6feb145689817
[ "Apache-2.0" ]
30
2020-07-17T01:04:14.000Z
2021-12-27T14:05:19.000Z
# Copyright 2019-2021 Huawei Technologies Co., Ltd # # 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 agre...
56.651515
111
0.443033
1cda60607731ffb28c16af03381b12271947a308
12,767
py
Python
justap_server_sdk_python/models/v1_extra_alipay_goods_detail.py
justapnet/justap-server-sdk-python
2d3110c6447833334fa2f7e93ffa63e06913df17
[ "Apache-2.0" ]
null
null
null
justap_server_sdk_python/models/v1_extra_alipay_goods_detail.py
justapnet/justap-server-sdk-python
2d3110c6447833334fa2f7e93ffa63e06913df17
[ "Apache-2.0" ]
null
null
null
justap_server_sdk_python/models/v1_extra_alipay_goods_detail.py
justapnet/justap-server-sdk-python
2d3110c6447833334fa2f7e93ffa63e06913df17
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ Justap API 欢迎阅读 Justap Api 文档 Justap 是为移动端应用和PC端应用打造的下一代聚合支付SAAS服务平台,通过一个 SDK 即可快速的支持各种形式的应用,并且一次接口完成多个不同支付渠道的接入。平台除了支持服务商子商户模式,同时还对商家自有商户(即自己前往微信、支付宝等机构开户)提供了完整的支持。 感谢您的支持,我们将不断探索,为您提供更优质的服务!如需技术支持可前往商户中心提交工单,支持工程师会尽快与您取得联系! # 文档说明 采用 REST 风格设计。所有接口请求地址都是可预期的以及面向资源的。使用规范的 HTTP 响应代码来表示请...
38.454819
3,404
0.652698
1cda72dc346d40ca3f5e8907c6d7de0829a2c582
7,059
py
Python
tests/unit/test_helper.py
HarshCasper/jina
81ab098b140b74ad1cfdfde9218cec7a40923749
[ "Apache-2.0" ]
1
2021-02-25T19:28:50.000Z
2021-02-25T19:28:50.000Z
tests/unit/test_helper.py
HarshCasper/jina
81ab098b140b74ad1cfdfde9218cec7a40923749
[ "Apache-2.0" ]
1
2021-02-27T05:56:45.000Z
2021-02-27T05:57:03.000Z
tests/unit/test_helper.py
deepampatel/jina
97f9e97a4a678a28bdeacbc7346eaf7bbd2aeb89
[ "Apache-2.0" ]
null
null
null
import time from types import SimpleNamespace import pytest from cli import _is_latest_version from jina import NdArray, Request from jina.clients.helper import _safe_callback, pprint_routes from jina.types.querylang.queryset.dunderkey import dunder_get from jina.excepts import BadClientCallback, NotSupportedError fr...
30.038298
98
0.642584
1cda9a8f071c8b6f8f830d9b5ca1a820920e86e7
3,073
py
Python
regolith/builders/resumebuilder.py
MichaelTrumbull/regolith
881f543cfa7bbf80b38ed2b357209c5bc009a6af
[ "CC0-1.0" ]
7
2018-07-20T19:19:23.000Z
2022-02-02T20:48:15.000Z
regolith/builders/resumebuilder.py
MichaelTrumbull/regolith
881f543cfa7bbf80b38ed2b357209c5bc009a6af
[ "CC0-1.0" ]
822
2017-11-06T21:54:58.000Z
2022-03-31T12:25:41.000Z
regolith/builders/resumebuilder.py
MichaelTrumbull/regolith
881f543cfa7bbf80b38ed2b357209c5bc009a6af
[ "CC0-1.0" ]
43
2018-01-05T20:35:21.000Z
2022-03-24T00:13:03.000Z
"""Builder for Resumes.""" from regolith.builders.basebuilder import LatexBuilderBase from regolith.sorters import ene_date_key, position_key from regolith.tools import ( all_docs_from_collection, month_and_year, filter_publications, filter_projects, filter_grants, awards_grants_honors, lat...
34.920455
93
0.5493
1cdaa1c4d7c3b46c3f59ab4ba5d3355a6b9198d3
24,258
py
Python
src/pymusepipe/util_pipe.py
emsellem/pymusepipe
8d06597ef21f2690921ea08148e223f914a79559
[ "MIT" ]
5
2018-04-01T22:56:30.000Z
2020-06-16T12:18:22.000Z
src/pymusepipe/util_pipe.py
emsellem/pymusepipe
8d06597ef21f2690921ea08148e223f914a79559
[ "MIT" ]
1
2019-09-30T00:02:49.000Z
2019-09-30T10:04:15.000Z
src/pymusepipe/util_pipe.py
emsellem/pymusepipe
8d06597ef21f2690921ea08148e223f914a79559
[ "MIT" ]
6
2019-01-17T15:20:19.000Z
2021-10-15T12:24:48.000Z
# Licensed under a MIT license - see LICENSE """MUSE-PHANGS utility functions for pymusepipe """ __authors__ = "Eric Emsellem" __copyright__ = "(c) 2017, ESO + CRAL" __license__ = "MIT License" __contact__ = " <eric.emsellem@eso.org>" # Importing modules import os import time from os.path import join as joinpa...
32.692722
107
0.616869
1cdad08bfc08ee80b454e8b69e9a4c601c8cd1d4
11,423
py
Python
test/testframework/testcases/rest.py
5GExchange/escape
eb35d460597a0386b18dd5b6a5f62a3f30eed5fa
[ "Apache-2.0" ]
10
2016-11-16T16:26:16.000Z
2021-04-26T17:20:28.000Z
test/testframework/testcases/rest.py
5GExchange/escape
eb35d460597a0386b18dd5b6a5f62a3f30eed5fa
[ "Apache-2.0" ]
3
2017-04-20T11:29:17.000Z
2017-11-06T17:12:12.000Z
test/testframework/testcases/rest.py
5GExchange/escape
eb35d460597a0386b18dd5b6a5f62a3f30eed5fa
[ "Apache-2.0" ]
10
2017-03-27T13:58:52.000Z
2020-06-24T22:42:51.000Z
# Copyright 2017 Lajos Gerecs, Janos Czentye # # 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...
33.896142
80
0.660334
1cdae7a8ac674ee2cf660bb45c6a4440d8473eca
23
py
Python
api_app/_version.py
oliver7598/AzureTRE
38290b91fb694f6dc50a2af9f9376962de8026bd
[ "MIT" ]
null
null
null
api_app/_version.py
oliver7598/AzureTRE
38290b91fb694f6dc50a2af9f9376962de8026bd
[ "MIT" ]
null
null
null
api_app/_version.py
oliver7598/AzureTRE
38290b91fb694f6dc50a2af9f9376962de8026bd
[ "MIT" ]
null
null
null
__version__ = "0.2.24"
11.5
22
0.652174
1cdae7ac4c301d3f771ca0c267a126721b374e67
494
py
Python
ex3.py
cutin4427/lpthw
815932530a38c0d3b45a29356b5d8abe9baacc34
[ "FSFAP" ]
1
2019-03-26T03:50:50.000Z
2019-03-26T03:50:50.000Z
ex3.py
cutin4427/lpthw
815932530a38c0d3b45a29356b5d8abe9baacc34
[ "FSFAP" ]
null
null
null
ex3.py
cutin4427/lpthw
815932530a38c0d3b45a29356b5d8abe9baacc34
[ "FSFAP" ]
null
null
null
print("I will now count my chickens;") print("Hens", 25 + 30 / 6) print("Roosters", 100 - 25 + 3 % 4) print("Now I will count the eggs:") print(3 + 2 + 1 - 5 + 4 % 2 - 1 / 4 + 6) print("Is it true that 3 + 2 < 5 - 7?") print(3 + 2 < 5 - 7) print("What is 3 + 2", 3 + 2) print("What is 5 - 7?", 5 - 7) print("Oh,...
17.642857
41
0.546559
1cdb055560e8c0775244a6841948d98da4bce1d9
3,813
py
Python
cyclegan.py
zjucx/GAN
641a92aff6695a1046a340038d8b013b2cc2f5bd
[ "MIT" ]
1
2017-09-22T02:13:03.000Z
2017-09-22T02:13:03.000Z
cyclegan.py
zjucx/GAN
641a92aff6695a1046a340038d8b013b2cc2f5bd
[ "MIT" ]
null
null
null
cyclegan.py
zjucx/GAN
641a92aff6695a1046a340038d8b013b2cc2f5bd
[ "MIT" ]
null
null
null
import tensorflow as tf from generator import * from discriminator import * img_height = 256 img_width = 256 img_layer = 3 batch_size = 1 img_size = img_height * img_width class CycleGAN(): def init_model(self): self.input_A = tf.placeholder(tf.float32, [batch_size, img_width, img_height, img_layer], nam...
44.858824
132
0.670338
1cdb0b9c28dced4272fe3269c48e62f2b46da2c1
1,970
py
Python
analysis/optimus5/pytorch-saliency/sal/utils/gaussian_blur_sequence.py
willshi88/scrambler
fd77c05824fc99e6965d204c4f5baa1e3b0c4fb3
[ "MIT" ]
19
2021-04-30T04:12:58.000Z
2022-03-07T19:09:32.000Z
analysis/optimus5/pytorch-saliency/sal/utils/gaussian_blur_sequence.py
willshi88/scrambler
fd77c05824fc99e6965d204c4f5baa1e3b0c4fb3
[ "MIT" ]
4
2021-07-02T15:07:27.000Z
2021-08-01T12:41:28.000Z
analysis/optimus5/pytorch-saliency/sal/utils/gaussian_blur_sequence.py
willshi88/scrambler
fd77c05824fc99e6965d204c4f5baa1e3b0c4fb3
[ "MIT" ]
4
2021-06-28T09:41:01.000Z
2022-02-28T09:13:29.000Z
import numpy as np from torch.nn import Module from torch.nn.functional import conv2d import torch from torch.autograd import Variable def _gaussian_kernels(kernel_size, sigma, chans): assert kernel_size % 2, 'Kernel size of the gaussian blur must be odd!' x = np.expand_dims(np.array(range(-kernel_size/2, -ke...
44.772727
175
0.691371
1cdb111211e64961da83c0076cdfb1ea98542b99
2,711
py
Python
tests/ext_rex.py
dimichxp/grab
5fedee3009c18c8a1139b0f82736ebe473021b46
[ "MIT" ]
2,266
2015-01-01T08:47:33.000Z
2022-03-21T05:02:55.000Z
tests/ext_rex.py
dimichxp/grab
5fedee3009c18c8a1139b0f82736ebe473021b46
[ "MIT" ]
221
2015-01-13T01:55:57.000Z
2022-02-25T23:23:35.000Z
tests/ext_rex.py
dimichxp/grab
5fedee3009c18c8a1139b0f82736ebe473021b46
[ "MIT" ]
315
2015-01-23T06:38:55.000Z
2022-03-27T08:33:33.000Z
# coding: utf-8 import re from weblib.error import DataNotFound import six from tests.util import build_grab from tests.util import BaseGrabTestCase HTML = u""" <head> <title>фыва</title> <meta http-equiv="Content-Type" content="text/html; charset=cp1251" /> </head> <body> <div id="bee"> <div clas...
31.894118
78
0.579122
1cdb2537937054e5e29a3f9226ba964ad226a7a5
2,296
py
Python
PythonProjects/99-CapstoneProject-202010/src/rosebot_touch_sensor.py
much2mutch/csse120-public
4f862a6deb7a5373fb5723fb2a23e4042e4d4157
[ "MIT" ]
null
null
null
PythonProjects/99-CapstoneProject-202010/src/rosebot_touch_sensor.py
much2mutch/csse120-public
4f862a6deb7a5373fb5723fb2a23e4042e4d4157
[ "MIT" ]
null
null
null
PythonProjects/99-CapstoneProject-202010/src/rosebot_touch_sensor.py
much2mutch/csse120-public
4f862a6deb7a5373fb5723fb2a23e4042e4d4157
[ "MIT" ]
null
null
null
""" Capstone Team Project. Code to run on the EV3 robot (NOT on a laptop). This code defines the TouchSensor class, for the robot's touch sensor that detects when the arm and claw are in the fully-up position. Authors: Your professors (for the framework) and PUT_YOUR_NAMES_HERE. Fall term, 2019-2020. """ # TODO...
37.639344
79
0.419425
1cdb3043365919a8690118460382658edae27b1c
13,199
py
Python
sdk/cosmos/azure-cosmos/azure/cosmos/aio/user.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
2,728
2015-01-09T10:19:32.000Z
2022-03-31T14:50:33.000Z
sdk/cosmos/azure-cosmos/azure/cosmos/aio/user.py
v-xuto/azure-sdk-for-python
9c6296d22094c5ede410bc83749e8df8694ccacc
[ "MIT" ]
17,773
2015-01-05T15:57:17.000Z
2022-03-31T23:50:25.000Z
sdk/cosmos/azure-cosmos/azure/cosmos/aio/user.py
v-xuto/azure-sdk-for-python
9c6296d22094c5ede410bc83749e8df8694ccacc
[ "MIT" ]
1,916
2015-01-19T05:05:41.000Z
2022-03-31T19:36:44.000Z
# The MIT License (MIT) # Copyright (c) 2021 Microsoft Corporation # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use, copy...
43.996667
117
0.6849
1cdb34681984dee3b8ca851007655fe383d8dd35
3,171
py
Python
lemur/__init__.py
x-lhan/lemur
1d8aaa4a242af610363e961167bc31691b358773
[ "Apache-2.0" ]
null
null
null
lemur/__init__.py
x-lhan/lemur
1d8aaa4a242af610363e961167bc31691b358773
[ "Apache-2.0" ]
null
null
null
lemur/__init__.py
x-lhan/lemur
1d8aaa4a242af610363e961167bc31691b358773
[ "Apache-2.0" ]
null
null
null
""" .. module: lemur :platform: Unix :copyright: (c) 2018 by Netflix Inc., see AUTHORS for more :license: Apache, see LICENSE for more details. .. moduleauthor:: Kevin Glisson <kglisson@netflix.com> """ import time from flask import g, request from lemur import factory from lemur.extensions import metri...
27.815789
91
0.70924
1cdb6a0249c60d9aae1e6675760a8b866340e969
131
py
Python
testing/resources/python_hooks_repo/foo/main.py
bukzor/pre-commit
7d546c1f815a41f17af276e2f8d0636efdd87a6d
[ "MIT" ]
null
null
null
testing/resources/python_hooks_repo/foo/main.py
bukzor/pre-commit
7d546c1f815a41f17af276e2f8d0636efdd87a6d
[ "MIT" ]
null
null
null
testing/resources/python_hooks_repo/foo/main.py
bukzor/pre-commit
7d546c1f815a41f17af276e2f8d0636efdd87a6d
[ "MIT" ]
null
null
null
from __future__ import print_function import sys def func(): print(repr(sys.argv[1:])) print('Hello World') return 0
14.555556
37
0.679389
1cdb72773b2e64d4f2ec800e7a3b817333cb4050
804
py
Python
contrib/python/podman/podman/__init__.py
xakraz/libpod
78e6d8e7d70d431ccf096dee0f8eadb1c9b2967b
[ "Apache-2.0" ]
null
null
null
contrib/python/podman/podman/__init__.py
xakraz/libpod
78e6d8e7d70d431ccf096dee0f8eadb1c9b2967b
[ "Apache-2.0" ]
null
null
null
contrib/python/podman/podman/__init__.py
xakraz/libpod
78e6d8e7d70d431ccf096dee0f8eadb1c9b2967b
[ "Apache-2.0" ]
null
null
null
"""A client for communicating with a Podman server.""" import pkg_resources from .client import Client from .libs import FoldedString, datetime_format, datetime_parse from .libs.errors import (ContainerNotFound, ErrorOccurred, ImageNotFound, NoContainerRunning, NoContainersInPod, ...
26.8
74
0.695274
1cdbc529e759fa36b720bd5e6f5bf131c80fc52f
4,885
py
Python
sha_1_cnf_generator.py
Crypto-TII/shanatomy
4142f58e14bbe840ecacee71eadcb596d2471fbd
[ "Apache-2.0" ]
1
2021-03-03T13:32:31.000Z
2021-03-03T13:32:31.000Z
sha_1_cnf_generator.py
Crypto-TII/shanatomy
4142f58e14bbe840ecacee71eadcb596d2471fbd
[ "Apache-2.0" ]
null
null
null
sha_1_cnf_generator.py
Crypto-TII/shanatomy
4142f58e14bbe840ecacee71eadcb596d2471fbd
[ "Apache-2.0" ]
null
null
null
import sys import re import bitpy as bp def initial_relabel(wl): state_words = ['A', 'B', 'C', 'D', 'E'] initial_relabels = [''] * 5 for i in range(5): w0 = bp.word(wl, state_words[i] + bp.fi(0)) w1 = bp.word(wl, 'H' + bp.fi(i)) relabels = bp.wequal(w0, w1) initial_relabels[...
35.143885
70
0.594882
1cdbc9501b3cb9ed8bfa02945622edc0a6afd206
212
py
Python
modelapi/modelapi/Relabeler.py
mdh266/TextClassificationApp
70ad833682ad6b94883de13cb6051a6be1d4a78c
[ "MIT" ]
9
2020-11-01T22:46:48.000Z
2022-02-28T00:33:22.000Z
modelapi/modelapi/Relabeler.py
mdh266/DocumentClassificationNLP
70ad833682ad6b94883de13cb6051a6be1d4a78c
[ "MIT" ]
null
null
null
modelapi/modelapi/Relabeler.py
mdh266/DocumentClassificationNLP
70ad833682ad6b94883de13cb6051a6be1d4a78c
[ "MIT" ]
3
2019-08-15T14:20:35.000Z
2020-09-01T17:24:58.000Z
def relabel(predicted : int) -> str: labels = {0: "Artifical Intelligence", 1: "Computer Vision", 2: "Machine Learning", 3: "Robotics"} return labels[predicted]
26.5
42
0.537736
1cdbdc0244997fa7345ac60ca219df5d49445df6
31,509
py
Python
Barbican/Server/barbican-stable-mitaka/barbican/functionaltests/api/v1/functional/test_certificate_orders.py
cloud-security-research/sgx-kms
2f07bf36721dafe0e4a000ca3f41529dc8d2004a
[ "Apache-2.0" ]
36
2017-11-08T23:36:35.000Z
2022-03-20T16:01:55.000Z
Barbican/Server/barbican-stable-mitaka/barbican/functionaltests/api/v1/functional/test_certificate_orders.py
Calctopia-OpenSource/sgx-kms
2f07bf36721dafe0e4a000ca3f41529dc8d2004a
[ "Apache-2.0" ]
2
2017-11-17T03:19:17.000Z
2018-07-04T03:37:36.000Z
Barbican/Server/barbican-stable-mitaka/barbican/functionaltests/api/v1/functional/test_certificate_orders.py
Calctopia-OpenSource/sgx-kms
2f07bf36721dafe0e4a000ca3f41529dc8d2004a
[ "Apache-2.0" ]
12
2017-11-13T03:20:40.000Z
2021-07-16T03:26:41.000Z
# Copyright (c) 2015 Red Hat, 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 writ...
41.188235
85
0.692786
1cdbdff0a7e5a0b0eaac588bcfa0290f3c7df088
3,664
py
Python
src/som/interpreter/ast/nodes/specialized/to_do_node.py
smarr/RTruffleSOM
1efc698577830ff3fcd1607e7155d9c6423e8804
[ "MIT" ]
9
2015-02-03T23:24:23.000Z
2020-06-28T23:49:59.000Z
src/som/interpreter/ast/nodes/specialized/to_do_node.py
SOM-st/RTruffleSOM
1efc698577830ff3fcd1607e7155d9c6423e8804
[ "MIT" ]
null
null
null
src/som/interpreter/ast/nodes/specialized/to_do_node.py
SOM-st/RTruffleSOM
1efc698577830ff3fcd1607e7155d9c6423e8804
[ "MIT" ]
2
2016-08-28T23:25:20.000Z
2016-08-30T16:49:50.000Z
from rpython.rlib import jit from ..expression_node import ExpressionNode from .....vmobjects.block_ast import AstBlock from .....vmobjects.double import Double from .....vmobjects.integer import Integer from .....vmobjects.method_ast import AstMethod class AbstractToDoNode(ExpressionNode): _immutable_fields_ ...
33.925926
78
0.647926
1cdc016cd1555b2944a8d60df1cc6d753f5ee9dc
498
py
Python
bitbots_body_behaviour/src/bitbots_body_behaviour/decisions/team_player/center_decision.py
TAMS-Group/bitbots_behaviour
84f713060e6be0803dff1bc3df1bdef49bef02e3
[ "BSD-3-Clause" ]
null
null
null
bitbots_body_behaviour/src/bitbots_body_behaviour/decisions/team_player/center_decision.py
TAMS-Group/bitbots_behaviour
84f713060e6be0803dff1bc3df1bdef49bef02e3
[ "BSD-3-Clause" ]
null
null
null
bitbots_body_behaviour/src/bitbots_body_behaviour/decisions/team_player/center_decision.py
TAMS-Group/bitbots_behaviour
84f713060e6be0803dff1bc3df1bdef49bef02e3
[ "BSD-3-Clause" ]
null
null
null
# -*- coding:utf-8 -*- """ CenterDecision ^^^^^^^^^^^^^^ Start of the center player behaviour. History: * 06.12.14: Created (Marc Bestmann) """ from bitbots_body_behaviour.decisions.common.go_to_duty_position import GoToDutyPosition from bitbots_stackmachine.abstract_decision_element import AbstractDecisionElement ...
26.210526
88
0.767068
1cdc0203922f35c4c610668a7925825863a89531
1,699
py
Python
StreamPy/TestExamplesListToStreams/BandPassFilter.py
AnomalyInc/StreamPy
94abca276b2857de48259f4f42ef95efbdf5f6d1
[ "Apache-2.0" ]
2
2017-04-27T11:04:27.000Z
2019-02-07T21:03:32.000Z
StreamPy/TestExamplesListToStreams/BandPassFilter.py
StreamPy/StreamPy
94abca276b2857de48259f4f42ef95efbdf5f6d1
[ "Apache-2.0" ]
null
null
null
StreamPy/TestExamplesListToStreams/BandPassFilter.py
StreamPy/StreamPy
94abca276b2857de48259f4f42ef95efbdf5f6d1
[ "Apache-2.0" ]
null
null
null
from scipy.signal import butter, lfilter import sys import numpy as np def butter_bandpass(lowcut, highcut, fs, order=5): """ Parameters ----------- low_cut, high_cut: low and high cutoff for the bandpass filter in Hertz. fs: the sampling rate in Hertz (number of samples/second) ord...
27.852459
74
0.628016
1cdc1a3996a393a978a37a14c65d2c2563bd90a8
862
py
Python
setup.py
fathat/glsvg
b58f947d0195ed866d8342e79b787d3e1ed6fe37
[ "WTFPL" ]
16
2015-10-05T18:59:40.000Z
2021-03-04T17:03:38.000Z
setup.py
fathat/glsvg
b58f947d0195ed866d8342e79b787d3e1ed6fe37
[ "WTFPL" ]
6
2015-07-13T10:49:53.000Z
2015-10-05T20:29:11.000Z
setup.py
fathat/glsvg
b58f947d0195ed866d8342e79b787d3e1ed6fe37
[ "WTFPL" ]
5
2015-07-16T15:47:25.000Z
2018-12-28T13:02:07.000Z
try: from setuptools import setup except ImportError: from distutils.core import setup setup( name = "glsvg", packages = ["glsvg"], version = "0.4", description = "OpenGL SVG Renderer", author = "Ian Overgard", author_email = "ian.overgard@gmail.com", url = "http://github.com/fathat/...
31.925926
71
0.602088
1cdc778d1cb5b0f320f69e7b3229dda65650ed55
7,350
py
Python
poshc2/server/Implant.py
x41x41x41/PoshC2
d5e4130fa3d30186a085a3f36a1237ffac7eac1c
[ "BSD-3-Clause" ]
null
null
null
poshc2/server/Implant.py
x41x41x41/PoshC2
d5e4130fa3d30186a085a3f36a1237ffac7eac1c
[ "BSD-3-Clause" ]
null
null
null
poshc2/server/Implant.py
x41x41x41/PoshC2
d5e4130fa3d30186a085a3f36a1237ffac7eac1c
[ "BSD-3-Clause" ]
null
null
null
import urllib, base64, datetime, http.client, json from poshc2.Colours import Colours from poshc2.Utils import randomuri, gen_key from poshc2.server.Config import PayloadsDirectory, PayloadTemplatesDirectory, Jitter, NotificationsProjectName from poshc2.server.Core import get_images from poshc2.server.AutoLoads import...
53.26087
250
0.614694
1cdcf6fa4e823ade2bb969b53a22f6cf17c1dc7a
1,568
py
Python
SC/acme_report.py
tcbic/DS-Unit-3-Sprint-1-Software-Engineering
2249a8117ba30f3c9028b71d5f632fffc9f1809b
[ "MIT" ]
null
null
null
SC/acme_report.py
tcbic/DS-Unit-3-Sprint-1-Software-Engineering
2249a8117ba30f3c9028b71d5f632fffc9f1809b
[ "MIT" ]
null
null
null
SC/acme_report.py
tcbic/DS-Unit-3-Sprint-1-Software-Engineering
2249a8117ba30f3c9028b71d5f632fffc9f1809b
[ "MIT" ]
null
null
null
import random from random import randint, sample, uniform from acme import Product #Useful to use with random.sample to generate names. ADJECTIVES = ['Awesome', 'Shiny', 'Impressive', 'Portable', 'Improved'] NOUNS = ['Anvil', 'Catapult', 'Disguise', 'Mousetrap', '???'] def generate_products(num_products=30): """...
34.086957
79
0.681122
1cdcf72dd2f90ec209eb230e4d23a8c9d479a48d
438
py
Python
test/generate/autotest/38_3F_ADDC_A_Rn.py
Aimini/hm-51
2d46323388a0679b2f99d1a33f5a0d55a5f838e6
[ "MIT" ]
null
null
null
test/generate/autotest/38_3F_ADDC_A_Rn.py
Aimini/hm-51
2d46323388a0679b2f99d1a33f5a0d55a5f838e6
[ "MIT" ]
20
2020-01-13T04:19:37.000Z
2020-02-12T14:25:44.000Z
test/generate/autotest/38_3F_ADDC_A_Rn.py
Aimini/hm-51
2d46323388a0679b2f99d1a33f5a0d55a5f838e6
[ "MIT" ]
null
null
null
######################################################### # 2020-01-23 16:03:11 # AI # ins: ADDC A, Rn ######################################################### from .common import INS_OPERATION from .common.INS_XXX_A_Rn import XXX_A_RN class ADDC_A_Rn(XXX_A_RN): def __init__(self): super().__init__("ADD...
21.9
57
0.490868
1cdd5aa09fd1089fa5ac90fedc56178e7eec6a1b
19,024
py
Python
ambari-server/src/test/python/stacks/2.0.6/HIVE/test_hive_server.py
wbear2/ambari
a1891193984da47015cd5483b5b95e040677d7df
[ "Apache-2.0" ]
5
2018-06-03T05:19:40.000Z
2021-04-16T17:10:49.000Z
ambari-server/src/test/python/stacks/2.0.6/HIVE/test_hive_server.py
wbear2/ambari
a1891193984da47015cd5483b5b95e040677d7df
[ "Apache-2.0" ]
null
null
null
ambari-server/src/test/python/stacks/2.0.6/HIVE/test_hive_server.py
wbear2/ambari
a1891193984da47015cd5483b5b95e040677d7df
[ "Apache-2.0" ]
6
2019-05-07T13:24:39.000Z
2021-02-15T14:12:37.000Z
#!/usr/bin/env python ''' 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 file to you under the Apache License, Version 2.0 (the "License")...
43.733333
338
0.524811
1cdd73819879e1b2001683ba998dfa5128b34fee
15,505
py
Python
tensorflow/python/framework/graph_util_test.py
zhong110020/tensorflow
b79ce0029dce3264266ced739590bc238b17096c
[ "Apache-2.0" ]
2
2018-12-05T17:34:20.000Z
2019-01-07T01:59:19.000Z
tensorflow/python/framework/graph_util_test.py
qins0426/tensorflow
b79ce0029dce3264266ced739590bc238b17096c
[ "Apache-2.0" ]
null
null
null
tensorflow/python/framework/graph_util_test.py
qins0426/tensorflow
b79ce0029dce3264266ced739590bc238b17096c
[ "Apache-2.0" ]
null
null
null
# Copyright 2015 The TensorFlow 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 applica...
40.272727
80
0.667333
1cdda400eec9796c6dbd1ebfe40017f96a033ac9
3,642
py
Python
code/grid_search/nn_grid_search.py
Nathx/subs_check
b91e0f031f756d0df317c6768fe73e4d07dc7ba3
[ "MIT" ]
null
null
null
code/grid_search/nn_grid_search.py
Nathx/subs_check
b91e0f031f756d0df317c6768fe73e4d07dc7ba3
[ "MIT" ]
null
null
null
code/grid_search/nn_grid_search.py
Nathx/subs_check
b91e0f031f756d0df317c6768fe73e4d07dc7ba3
[ "MIT" ]
2
2016-07-10T22:24:57.000Z
2020-03-26T02:54:28.000Z
from spark_model import SparkModel from boto.s3.connection import S3Connection from pyspark import SparkContext, SparkConf, SQLContext from pyspark.ml import Pipeline from pyspark.ml.tuning import CrossValidator, ParamGridBuilder from pyspark.ml.evaluation import BinaryClassificationEvaluator from pyspark.ml.feature im...
35.359223
95
0.649094
1cddadc1cc3f2ed5a0063be73fef402a323fb46c
9,210
py
Python
extract_scene.py
dezren39/manim
80d7742446c588dc296bd3afb3465a63b63383db
[ "MIT" ]
1
2020-07-05T12:56:31.000Z
2020-07-05T12:56:31.000Z
extract_scene.py
smithea3/manim
1d23a01a3ab8a5aab14163ec5c38e7b30e536e54
[ "MIT" ]
3
2021-09-08T02:19:38.000Z
2022-03-12T00:41:00.000Z
extract_scene.py
dezren39/manim
80d7742446c588dc296bd3afb3465a63b63383db
[ "MIT" ]
1
2020-07-05T12:56:33.000Z
2020-07-05T12:56:33.000Z
#!/usr/bin/env python2 import sys import argparse import imp import inspect import itertools as it import os import subprocess as sp import traceback from constants import * from scene.scene import Scene from utils.sounds import play_error_sound from utils.sounds import play_finish_sound HELP_MESSAGE = """ Usage...
32.775801
109
0.623887
1cddedc311776b5da0001a8b4fb364390a60b387
3,687
py
Python
app/fastapi/routes/common_routes.py
PSE-TECO-2020-TEAM1/e2e-ml_model-management
7f01a008648e25a29c639a5e16124b2e399eb821
[ "MIT" ]
1
2021-05-04T08:46:19.000Z
2021-05-04T08:46:19.000Z
app/fastapi/routes/common_routes.py
PSE-TECO-2020-TEAM1/e2e-ml_model-management
7f01a008648e25a29c639a5e16124b2e399eb821
[ "MIT" ]
null
null
null
app/fastapi/routes/common_routes.py
PSE-TECO-2020-TEAM1/e2e-ml_model-management
7f01a008648e25a29c639a5e16124b2e399eb821
[ "MIT" ]
1
2022-01-28T21:21:32.000Z
2022-01-28T21:21:32.000Z
from starlette.responses import Response from app.models.domain.sensor import Sensor, make_sensor_component from app.models.domain.workspace import Workspace from typing import List from app.models.schemas.prediction_data import PredictionData from app.fastapi.services import add_workspace, get_ml_model, get_workspace ...
51.208333
139
0.797396
1cde133c9a4779a2160ef288c8f19f43262e8320
1,173
py
Python
game/transformtochessboard.py
mengyangbai/leetcode
e7a6906ecc5bce665dec5d0f057b302a64d50f40
[ "MIT" ]
null
null
null
game/transformtochessboard.py
mengyangbai/leetcode
e7a6906ecc5bce665dec5d0f057b302a64d50f40
[ "MIT" ]
null
null
null
game/transformtochessboard.py
mengyangbai/leetcode
e7a6906ecc5bce665dec5d0f057b302a64d50f40
[ "MIT" ]
null
null
null
import math class Solution: def movesToChessboard(self, board): N = len(board) rp, cp = board[0], [x[0] for x in board] #<1> rn, cn = [(x+1)%2 for x in rp], [(x+1)%2 for x in cp] #<2> def core(is_row): # <3> count = errs = 0 for i in range(N): ...
40.448276
81
0.429668
1cde1a3c9abf0014a5f1da9915812e3fa87231b9
46
py
Python
btd6_memory_info/generated/SteamNative/RemoteStoragePublishFileProgress_t/remote_storage_publish_file_progress_t.py
56kyle/bloons_auto
419d55b51d1cddc49099593970adf1c67985b389
[ "MIT" ]
null
null
null
btd6_memory_info/generated/SteamNative/RemoteStoragePublishFileProgress_t/remote_storage_publish_file_progress_t.py
56kyle/bloons_auto
419d55b51d1cddc49099593970adf1c67985b389
[ "MIT" ]
null
null
null
btd6_memory_info/generated/SteamNative/RemoteStoragePublishFileProgress_t/remote_storage_publish_file_progress_t.py
56kyle/bloons_auto
419d55b51d1cddc49099593970adf1c67985b389
[ "MIT" ]
null
null
null
class RemoteStoragePublishFileProgress_t: pass
46
46
0.934783
1cde3a08e3d65c4ee176f7dd934242d408296cc4
1,465
py
Python
botx/clients/methods/errors/bot_is_not_admin.py
ExpressApp/pybotx
97c8b1ce5d45a05567ed01d545cb43174a2dcbb9
[ "MIT" ]
13
2021-01-21T12:43:10.000Z
2022-03-23T11:11:59.000Z
botx/clients/methods/errors/bot_is_not_admin.py
ExpressApp/pybotx
97c8b1ce5d45a05567ed01d545cb43174a2dcbb9
[ "MIT" ]
259
2020-02-26T08:51:03.000Z
2022-03-23T11:08:36.000Z
botx/clients/methods/errors/bot_is_not_admin.py
ExpressApp/pybotx
97c8b1ce5d45a05567ed01d545cb43174a2dcbb9
[ "MIT" ]
5
2019-12-02T16:19:22.000Z
2021-11-22T20:33:34.000Z
"""Definition for "bot is not admin" error.""" from typing import NoReturn from uuid import UUID from pydantic import BaseModel from botx.clients.methods.base import APIErrorResponse, BotXMethod from botx.clients.types.http import HTTPResponse from botx.exceptions import BotXAPIError class BotIsNotAdminError(BotXAP...
26.636364
84
0.703754
1cde761315cdcacbd0d9271fea9881da7e0e1811
45,023
py
Python
test/smoketest/main.py
cdosco/Colorado-RLA
4443924aff5d2ab26c40f55089cae356d1c94289
[ "RSA-MD" ]
23
2017-07-05T22:43:29.000Z
2022-01-25T18:59:37.000Z
test/smoketest/main.py
cdosco/Colorado-RLA
4443924aff5d2ab26c40f55089cae356d1c94289
[ "RSA-MD" ]
603
2017-07-07T04:03:37.000Z
2020-08-07T11:57:57.000Z
test/smoketest/main.py
cdosco/Colorado-RLA
4443924aff5d2ab26c40f55089cae356d1c94289
[ "RSA-MD" ]
6
2017-07-06T14:02:43.000Z
2018-06-14T20:19:00.000Z
#!/usr/bin/env python """corla_test: drive testing of ColoradoRLA Examples. Note that 'crtest' and/or corla_test should be defined as an alias for main.py. # Smoketest: ./main.py # Simple loading of some data, for audit by the web client: crtest reset crtest dos_init crtest county_setup # Test 2-vote overstatemen...
38.090525
161
0.63783
1cdeb342a36248cfc5b111a1f37351d3b8d84cfb
9,911
py
Python
python/ctakes/format/common.py
drgriffis/ctakes-utils
d5da557ee68918fc33326a029f37a24d39acb10a
[ "Apache-2.0" ]
1
2018-10-31T02:31:37.000Z
2018-10-31T02:31:37.000Z
python/ctakes/format/common.py
drgriffis/ctakes-utils
d5da557ee68918fc33326a029f37a24d39acb10a
[ "Apache-2.0" ]
1
2018-02-04T19:24:52.000Z
2021-08-25T08:16:36.000Z
python/ctakes/format/common.py
drgriffis/ctakes-utils
d5da557ee68918fc33326a029f37a24d39acb10a
[ "Apache-2.0" ]
null
null
null
''' Shared methods for cTAKES output file format processing. Not included in from ctakes.format import * ''' import re import codecs import numpy as np from bs4 import BeautifulSoup from ..exceptions import * from ..annotations import * def getAttributeValue(line, attr_name): '''Return the value of the specified...
38.866667
113
0.629402
1cded937d37206a9fa5b06b82d26b15ce546d516
4,352
py
Python
caracole/settings.py
fab13n/caracole
675b2c2cd32566208f7d917bc5e6088d3bce414e
[ "MIT" ]
6
2017-04-26T10:29:36.000Z
2022-03-22T20:35:23.000Z
caracole/settings.py
fab13n/caracole
675b2c2cd32566208f7d917bc5e6088d3bce414e
[ "MIT" ]
12
2018-07-23T22:32:39.000Z
2021-12-02T15:37:48.000Z
caracole/settings.py
fab13n/caracole
675b2c2cd32566208f7d917bc5e6088d3bce414e
[ "MIT" ]
7
2015-01-05T22:07:42.000Z
2020-03-20T10:41:18.000Z
#!/usr/bin/python3 # -*- coding: utf-8 -*- """ Django settings for floreal project. """ # Build paths inside the project like this: os.path.join(BASE_DIR, ...) import os from os import environ as E import django BASE_DIR = os.path.abspath(os.path.dirname(os.path.dirname(__file__))) # Quick-start development setti...
27.897436
90
0.664292
1cdedc49171a500b50610679209be4d6c26e1cc1
114
py
Python
cptools/hello.py
GentleCP/cptools
6816314f7e16168d3ce43c73e335a3c08590acb5
[ "MIT" ]
2
2021-04-17T13:16:38.000Z
2021-06-16T02:26:09.000Z
cptools/hello.py
GentleCP/cptools
6816314f7e16168d3ce43c73e335a3c08590acb5
[ "MIT" ]
null
null
null
cptools/hello.py
GentleCP/cptools
6816314f7e16168d3ce43c73e335a3c08590acb5
[ "MIT" ]
null
null
null
def hello(): with open('../README.md') as f: print(f.read()) if __name__ == '__main__': hello()
14.25
35
0.526316
1cdeddb710d5ca60aef2ddde54e242723bb1f538
6,280
py
Python
conohadnsclient/tests/test_v1/test_domain.py
naototty/python-conohadns-client
04f360450d2e1a6020d2870272d8125cb112fa01
[ "Apache-2.0" ]
null
null
null
conohadnsclient/tests/test_v1/test_domain.py
naototty/python-conohadns-client
04f360450d2e1a6020d2870272d8125cb112fa01
[ "Apache-2.0" ]
null
null
null
conohadnsclient/tests/test_v1/test_domain.py
naototty/python-conohadns-client
04f360450d2e1a6020d2870272d8125cb112fa01
[ "Apache-2.0" ]
null
null
null
# Copyright 2015 NEC Corporation. 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 ...
33.945946
78
0.582643
1cdf0e35824ac4e957810c55fca763613dbef8ca
2,074
py
Python
workon/utils/image.py
devittek/django-workon
c39ddecac2649406a7a58922646478c5615d4cfd
[ "BSD-3-Clause" ]
1
2018-01-19T16:08:54.000Z
2018-01-19T16:08:54.000Z
workon/utils/image.py
devittek/django-workon
c39ddecac2649406a7a58922646478c5615d4cfd
[ "BSD-3-Clause" ]
1
2020-07-06T08:35:18.000Z
2020-07-06T08:35:18.000Z
workon/utils/image.py
devittek/django-workon
c39ddecac2649406a7a58922646478c5615d4cfd
[ "BSD-3-Clause" ]
4
2020-04-08T06:14:46.000Z
2020-12-11T14:28:06.000Z
import os, datetime, re, base64, uuid, urllib from io import StringIO from django.conf import settings from django.core.files.base import ContentFile from django.core.files.uploadedfile import SimpleUploadedFile from django.core.files.storage import get_storage_class from django.contrib.staticfiles.storage import stati...
34.566667
117
0.701061
1cdf0fe29eae2c3e50023cd193357c54c07734c2
16,361
py
Python
app/data/data_source.py
gitjeff05/quality-control
873e2bb8a2655d80e0f0a7a38fbd834b562a5726
[ "Apache-2.0" ]
1
2020-04-18T23:34:48.000Z
2020-04-18T23:34:48.000Z
app/data/data_source.py
gitjeff05/quality-control
873e2bb8a2655d80e0f0a7a38fbd834b562a5726
[ "Apache-2.0" ]
null
null
null
app/data/data_source.py
gitjeff05/quality-control
873e2bb8a2655d80e0f0a7a38fbd834b562a5726
[ "Apache-2.0" ]
null
null
null
# # Manages all the data needed for checks: # # 1. The DEV worksheet in Google sheets # 2. The historical data pulled from the API # 3. The current data pulled from the API (redundant w/the historical data) # # This module is responsible for type conversion and renaming the fields for consistency. # from typi...
35.260776
127
0.559562
1cdf3375cd0090121c1ce5dfe7500a16e71a623e
7,337
py
Python
sdk/keyvault/azure-keyvault-secrets/azure/keyvault/secrets/_generated/_key_vault_client.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-01-24T08:54:57.000Z
2022-01-24T08:54:57.000Z
sdk/keyvault/azure-keyvault-secrets/azure/keyvault/secrets/_generated/_key_vault_client.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/keyvault/azure-keyvault-secrets/azure/keyvault/secrets/_generated/_key_vault_client.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # # Code generated by Microsoft (R) AutoRest Code Generator. # Changes ...
40.761111
135
0.596156
1cdf410140b7b94882c41dd0e08dc490cebd99cc
2,158
py
Python
modified_yamnet.py
laanlabs/train_detector
8ac09073bdb1e8526805672434eb1a4db2932f2f
[ "MIT" ]
7
2020-02-27T03:40:38.000Z
2021-07-25T03:14:32.000Z
modified_yamnet.py
laanlabs/train_detector
8ac09073bdb1e8526805672434eb1a4db2932f2f
[ "MIT" ]
null
null
null
modified_yamnet.py
laanlabs/train_detector
8ac09073bdb1e8526805672434eb1a4db2932f2f
[ "MIT" ]
5
2020-02-27T09:10:26.000Z
2021-11-17T03:24:46.000Z
""" Slightly modified yamnet keras Model that outputs the dense feature vectors along with the class predictions Originally: TF_MODELS_REPO/models/research/audioset/yamnet/yamnet.py """ import sys yamnet_base = './models/research/audioset/yamnet/' sys.path.append(yamnet_base) import os assert os.path.exists(yam...
31.735294
89
0.761353
1cdf62878ffb0171fbe700e995733255867ffa14
482
py
Python
socialregistration/contrib/instagram/auth.py
nypublicradio/legacy-publisher-django-socialregistration
181f75d152f553f77fa899dac895c4276108204f
[ "MIT" ]
63
2015-01-27T16:52:03.000Z
2021-08-29T04:23:51.000Z
socialregistration/contrib/instagram/auth.py
jairtrejo/django-socialregistration
c52b1db00bb7cfed2e0a44e587c3da6d2f5499c4
[ "MIT" ]
3
2016-05-26T07:46:53.000Z
2022-02-16T15:25:16.000Z
socialregistration/contrib/instagram/auth.py
jairtrejo/django-socialregistration
c52b1db00bb7cfed2e0a44e587c3da6d2f5499c4
[ "MIT" ]
23
2015-02-02T13:33:46.000Z
2020-10-25T20:02:53.000Z
from django.contrib.sites.models import Site from socialregistration.contrib.instagram.models import InstagramProfile from django.contrib.auth.backends import ModelBackend class InstagramAuth(ModelBackend): def authenticate(self, instagram = None): try: return InstagramProfile.objects.get( ...
34.428571
72
0.705394
1cdfaf27cdbec181bbf51586ef2ed1aad78b1df2
638
py
Python
ProjectOfAcrDetectorScript/neighbour.log.py
RiversDong/RiversDong.github.io
2d874f7ed8787b44069b477723449aaf8289bffa
[ "MIT" ]
null
null
null
ProjectOfAcrDetectorScript/neighbour.log.py
RiversDong/RiversDong.github.io
2d874f7ed8787b44069b477723449aaf8289bffa
[ "MIT" ]
null
null
null
ProjectOfAcrDetectorScript/neighbour.log.py
RiversDong/RiversDong.github.io
2d874f7ed8787b44069b477723449aaf8289bffa
[ "MIT" ]
null
null
null
f=open("./data/neighbour.log").read().split("\n") f.remove("") def check_list(neighbour_index): neighbour_index.sort() n_range=range(1,len(neighbour_index)) for i in n_range: latter=neighbour_index[i] former=neighbour_index[i-1] interval=latter-former if interval!=1: ...
19.9375
49
0.539185
1cdfb1e3912bd623227764b9815de13b6856ea7f
9,901
py
Python
experiments/amplification_bots/find_amplification_bots.py
Arora-Anuj/twitterbots
21457319bd5f4a9311d218b19c35ce2df5ff8b30
[ "BSD-3-Clause" ]
null
null
null
experiments/amplification_bots/find_amplification_bots.py
Arora-Anuj/twitterbots
21457319bd5f4a9311d218b19c35ce2df5ff8b30
[ "BSD-3-Clause" ]
null
null
null
experiments/amplification_bots/find_amplification_bots.py
Arora-Anuj/twitterbots
21457319bd5f4a9311d218b19c35ce2df5ff8b30
[ "BSD-3-Clause" ]
null
null
null
import argparse from datetime import datetime import logging import os from queue import Queue from sqlalchemy import (create_engine, Column, String, BigInteger, Integer, ForeignKey, DateTime) from sqlalchemy.ext.declarative import declarative_base from sqlalchemy.orm import sessionmaker, scop...
31.233438
95
0.627512
1cdfbc2118f3fabde5bf045d05c532f604b539e6
53,833
py
Python
b2/console_tool.py
dparamonov-reef/B2_Command_Line_Tool
1605fa44bf233e0a297d660d88f316618d990234
[ "MIT" ]
null
null
null
b2/console_tool.py
dparamonov-reef/B2_Command_Line_Tool
1605fa44bf233e0a297d660d88f316618d990234
[ "MIT" ]
null
null
null
b2/console_tool.py
dparamonov-reef/B2_Command_Line_Tool
1605fa44bf233e0a297d660d88f316618d990234
[ "MIT" ]
null
null
null
###################################################################### # # File: b2/console_tool.py # # Copyright 2018 Backblaze Inc. All Rights Reserved. # # License https://www.backblaze.com/using_b2_code.html # ###################################################################### from __future__ import absolute_im...
35.047526
134
0.642041
1cdfc9fb99e2c1d6548e2be0624efa239b665eb2
931
py
Python
sdks/python/test/test_v2FailureResponse.py
Brantone/appcenter-sdks
eeb063ecf79908b6e341fb00196d2cd9dc8f3262
[ "MIT" ]
null
null
null
sdks/python/test/test_v2FailureResponse.py
Brantone/appcenter-sdks
eeb063ecf79908b6e341fb00196d2cd9dc8f3262
[ "MIT" ]
6
2019-10-23T06:38:53.000Z
2022-01-22T07:57:58.000Z
sdks/python/test/test_v2FailureResponse.py
Brantone/appcenter-sdks
eeb063ecf79908b6e341fb00196d2cd9dc8f3262
[ "MIT" ]
2
2019-10-23T06:31:05.000Z
2021-08-21T17:32:47.000Z
# coding: utf-8 """ App Center Client Microsoft Visual Studio App Center API # noqa: E501 OpenAPI spec version: preview Contact: benedetto.abbenanti@gmail.com Project Repository: https://github.com/b3nab/appcenter-sdks """ from __future__ import absolute_import import unittest import appcente...
23.275
93
0.72073
1cdfd5d6a96e5b37523f1954b4794902120acfe2
3,013
py
Python
affordance/data_fetcher.py
jonepatr/affordance-master-thesis
603afbbb4a162c2bb4e9f21cf263a453323c2241
[ "MIT" ]
5
2015-11-14T14:28:41.000Z
2021-06-09T18:04:40.000Z
affordance/data_fetcher.py
PedroLopes/affordance
a91d12745db9c6f27c168129014e6ad867d40b17
[ "MIT" ]
null
null
null
affordance/data_fetcher.py
PedroLopes/affordance
a91d12745db9c6f27c168129014e6ad867d40b17
[ "MIT" ]
null
null
null
import vrpn import threading import time from functools import partial import config class DataFetcher(threading.Thread): daemon = True def __init__(self, mongo, opti_track_mode=True): super(DataFetcher, self).__init__() self.opti_track_mode = opti_track_mode self.mongo = mongo ...
34.238636
181
0.597079
1cdfd612d551ec831e2b0a348fe250dc7d38443d
993
py
Python
features/pages.py
takami-h/flask-example-app
d67beb60deb29e9230352fcb213a71f675d3cf21
[ "BSD-3-Clause" ]
null
null
null
features/pages.py
takami-h/flask-example-app
d67beb60deb29e9230352fcb213a71f675d3cf21
[ "BSD-3-Clause" ]
null
null
null
features/pages.py
takami-h/flask-example-app
d67beb60deb29e9230352fcb213a71f675d3cf21
[ "BSD-3-Clause" ]
1
2022-02-20T19:27:30.000Z
2022-02-20T19:27:30.000Z
class BasePage(object): def __init__(self, browser): self.browser = browser class RegistrationPage(BasePage): def open(self): self.browser.get('http://localhost:8080/auth/register') def register(self, username, password): self.browser.find_element_by_id('username').send_keys(userna...
36.777778
91
0.718026
1cdfdeaf17f30413ec2893445f0fcc983bbf2029
120
py
Python
Chapter 8/08/PaxHeader/recipe60.py
robert0714/Python-Testing-Cookbook-Second-Edition
c7c5d59e42e9ca2874faf12a6dd201736a45ca83
[ "MIT" ]
null
null
null
Chapter 8/08/PaxHeader/recipe60.py
robert0714/Python-Testing-Cookbook-Second-Edition
c7c5d59e42e9ca2874faf12a6dd201736a45ca83
[ "MIT" ]
null
null
null
Chapter 8/08/PaxHeader/recipe60.py
robert0714/Python-Testing-Cookbook-Second-Edition
c7c5d59e42e9ca2874faf12a6dd201736a45ca83
[ "MIT" ]
null
null
null
15 uid=2057284 20 ctime=1295331763 20 atime=1295578340 24 SCHILY.dev=234881026 23 SCHILY.ino=29228211 18 SCHILY.nlink=1
17.142857
23
0.825
1cdff5b7a26b12c69ee1fe21918454e4090c4ff7
525
py
Python
typhoon/contrib/transformations/__init__.py
biellls/typhoon-orchestrator
f8e40c905fda8143562fc286359233f29d30c6bb
[ "Apache-2.0" ]
1
2021-03-26T07:14:25.000Z
2021-03-26T07:14:25.000Z
typhoon/contrib/transformations/__init__.py
biellls/typhoon-orchestrator
f8e40c905fda8143562fc286359233f29d30c6bb
[ "Apache-2.0" ]
null
null
null
typhoon/contrib/transformations/__init__.py
biellls/typhoon-orchestrator
f8e40c905fda8143562fc286359233f29d30c6bb
[ "Apache-2.0" ]
null
null
null
""" This module contains the functions that can be used to transform the output data of a node function into the input data or parameter of the next node (when they are connected by an edge). """ from typhoon.contrib.transformations import compression from typhoon.contrib.transformations import data from typhoon.contr...
47.727273
114
0.84
1ce00413f95bba15e6da8430398abbab850265e7
849
py
Python
0900-hp/hplip-3.21.12/__init__.py
rgfaber/dev-toolkit
b7e6b1e35a4bfb8ca9ba75e5556917cc49b88f7f
[ "Apache-2.0" ]
null
null
null
0900-hp/hplip-3.21.12/__init__.py
rgfaber/dev-toolkit
b7e6b1e35a4bfb8ca9ba75e5556917cc49b88f7f
[ "Apache-2.0" ]
null
null
null
0900-hp/hplip-3.21.12/__init__.py
rgfaber/dev-toolkit
b7e6b1e35a4bfb8ca9ba75e5556917cc49b88f7f
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # # (c) Copyright 2003-2015 HP Development Company, L.P. # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (a...
38.590909
74
0.75265
1ce0105fdabccbba780b2f87220c831c0205da5b
1,245
py
Python
users/serializers.py
edgarceron/agent_console
a75501957722a349c7276e4d199425897f351bc0
[ "BSD-3-Clause" ]
null
null
null
users/serializers.py
edgarceron/agent_console
a75501957722a349c7276e4d199425897f351bc0
[ "BSD-3-Clause" ]
3
2021-03-30T13:46:24.000Z
2021-09-22T19:18:18.000Z
users/serializers.py
edgarceron/agent_console
a75501957722a349c7276e4d199425897f351bc0
[ "BSD-3-Clause" ]
null
null
null
"""Contains the serializers for the users module""" from rest_framework import serializers from .models import User class UserSerializer(serializers.ModelSerializer): """Serializer for users model""" class Meta: model = User fields = ['id', 'username', 'password', 'name', 'lastname', 'active', ...
33.648649
77
0.648996
1ce01e767de258154fed3d4a2eed7cd5d70075da
1,605
py
Python
conohadnsclient/tests/test_v1/test_sync.py
naototty/python-conohadns-client
04f360450d2e1a6020d2870272d8125cb112fa01
[ "Apache-2.0" ]
null
null
null
conohadnsclient/tests/test_v1/test_sync.py
naototty/python-conohadns-client
04f360450d2e1a6020d2870272d8125cb112fa01
[ "Apache-2.0" ]
null
null
null
conohadnsclient/tests/test_v1/test_sync.py
naototty/python-conohadns-client
04f360450d2e1a6020d2870272d8125cb112fa01
[ "Apache-2.0" ]
null
null
null
# Copyright 2015 NEC Corporation. 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 ...
37.325581
78
0.71838
1ce024eea8052545642e46ac29057e57e24f91b1
6,423
py
Python
experiments/sasha/pointmass/PCVAE.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
null
null
null
experiments/sasha/pointmass/PCVAE.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
null
null
null
experiments/sasha/pointmass/PCVAE.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
null
null
null
import rlkit.misc.hyperparameter as hyp from experiments.murtaza.multiworld.skew_fit.reacher.generate_uniform_dataset import generate_uniform_dataset_reacher from multiworld.envs.mujoco.cameras import sawyer_init_camera_zoomed_in from rlkit.launchers.launcher_util import run_experiment from rlkit.torch.grill.launcher i...
37.782353
120
0.585552
1ce0653a40e709ffb3ebe2a530a44f497a3eea6d
2,473
py
Python
Face Cluster/Project/ComputeFBeta/ComputeFBeta.py
adius0711/CVIP
c8fe00c607cd69260ec48eeeb7baee6ef28cd898
[ "Apache-2.0" ]
null
null
null
Face Cluster/Project/ComputeFBeta/ComputeFBeta.py
adius0711/CVIP
c8fe00c607cd69260ec48eeeb7baee6ef28cd898
[ "Apache-2.0" ]
null
null
null
Face Cluster/Project/ComputeFBeta/ComputeFBeta.py
adius0711/CVIP
c8fe00c607cd69260ec48eeeb7baee6ef28cd898
[ "Apache-2.0" ]
null
null
null
import argparse import json import os def parse_args(): parser = argparse.ArgumentParser() parser.add_argument("--preds") parser.add_argument("--groundtruth") parser.add_argument("--iou", default=0.5) parser.add_argument("--beta", default=1) args = parser.parse_args() return ar...
26.880435
96
0.549131
1ce08981e06b054fc0ba2e633108e1a07efe70d4
1,085
py
Python
Barbican/Server/barbican-stable-mitaka/barbican/barbican/model/migration/alembic_migrations/versions/2ab3f5371bde_dsa_in_container_type_modelbase_to.py
cloud-security-research/sgx-kms
2f07bf36721dafe0e4a000ca3f41529dc8d2004a
[ "Apache-2.0" ]
36
2017-11-08T23:36:35.000Z
2022-03-20T16:01:55.000Z
Barbican/Server/barbican-stable-mitaka/barbican/barbican/model/migration/alembic_migrations/versions/2ab3f5371bde_dsa_in_container_type_modelbase_to.py
Calctopia-OpenSource/sgx-kms
2f07bf36721dafe0e4a000ca3f41529dc8d2004a
[ "Apache-2.0" ]
2
2017-11-17T03:19:17.000Z
2018-07-04T03:37:36.000Z
Barbican/Server/barbican-stable-mitaka/barbican/barbican/model/migration/alembic_migrations/versions/2ab3f5371bde_dsa_in_container_type_modelbase_to.py
Calctopia-OpenSource/sgx-kms
2f07bf36721dafe0e4a000ca3f41529dc8d2004a
[ "Apache-2.0" ]
12
2017-11-13T03:20:40.000Z
2021-07-16T03:26:41.000Z
"""dsa in container type modelbase_to Revision ID: 2ab3f5371bde Revises: 4070806f6972 Create Date: 2014-09-02 12:11:43.524247 """ # revision identifiers, used by Alembic. revision = '2ab3f5371bde' down_revision = '4070806f6972' from alembic import op import sqlalchemy as sa def upgrade(): op.add_column('conta...
35
96
0.723502
1ce0a0adfdee5eda1d6de3cd21eeca535300955c
6,942
py
Python
src/software/thunderscope/chicker/chicker.py
jonl112/Software
61a028a98d5c0dd5e79bf055b231633290ddbf9f
[ "MIT" ]
null
null
null
src/software/thunderscope/chicker/chicker.py
jonl112/Software
61a028a98d5c0dd5e79bf055b231633290ddbf9f
[ "MIT" ]
null
null
null
src/software/thunderscope/chicker/chicker.py
jonl112/Software
61a028a98d5c0dd5e79bf055b231633290ddbf9f
[ "MIT" ]
null
null
null
import pyqtgraph as pg from pyqtgraph.Qt.QtCore import Qt from pyqtgraph.Qt.QtWidgets import * import software.thunderscope.constants as constants import software.thunderscope.common_widgets as common_widgets class ChickerWidget(QWidget): def __init__(self, parent=None): super(ChickerWidget, self).__init_...
39.896552
87
0.563238