hexsha
stringlengths
40
40
size
int64
1
1.03M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
239
max_stars_repo_name
stringlengths
5
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
239
max_issues_repo_name
stringlengths
5
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
3
239
max_forks_repo_name
stringlengths
5
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.03M
avg_line_length
float64
1
958k
max_line_length
int64
1
1.03M
alphanum_fraction
float64
0
1
4a058cbd2b326ac9d2e33d348ddcee720fe5f9bb
537
py
Python
session3/PWM_LED.py
rezafari/raspberry
e6720780f3c65ee1809040fc538f793fe44f0111
[ "MIT" ]
19
2017-09-26T04:37:55.000Z
2021-12-15T05:39:57.000Z
session3/PWM_LED.py
rezafari/raspberry
e6720780f3c65ee1809040fc538f793fe44f0111
[ "MIT" ]
44
2017-11-22T04:56:26.000Z
2018-03-17T14:30:00.000Z
session3/PWM_LED.py
rezafari/raspberry
e6720780f3c65ee1809040fc538f793fe44f0111
[ "MIT" ]
21
2017-09-23T05:25:59.000Z
2021-05-31T10:24:49.000Z
###################################################################### # PWM_LED.py # # This program produce a pwm and control light exposure of an LED # with changing it's duty cycle ###################################################################### import RPi.GPIO as GPIO ledPin = 18 GPIO.setmode(GPIO.BC...
23.347826
70
0.512104
4a058d3665f639bb4eab41afaef32cbf738eca70
17,170
py
Python
intent_detection/encoder_clients.py
EdwardBurgin/polyai-models
20cc6ff59396a2884a748509526a022347a7340c
[ "Apache-2.0" ]
2
2020-10-16T11:30:59.000Z
2021-03-28T04:51:25.000Z
intent_detection/encoder_clients.py
EdwardBurgin/polyai-models
20cc6ff59396a2884a748509526a022347a7340c
[ "Apache-2.0" ]
null
null
null
intent_detection/encoder_clients.py
EdwardBurgin/polyai-models
20cc6ff59396a2884a748509526a022347a7340c
[ "Apache-2.0" ]
3
2020-10-13T09:13:01.000Z
2021-05-31T04:20:18.000Z
"""Sentence encoder library for tensorflow_hub based sentence encoders The included sentence encoders are: - BERT: https://arxiv.org/abs/1810.04805 - USE multilingual: https://arxiv.org/abs/1907.04307 - ConveRT: https://arxiv.org/abs/1911.03688 Copyright PolyAI Limited. """ import abc import os import pickle import...
37.084233
93
0.626092
4a058d4fae9f89f4d109b48c8d20b8f43a03fe01
353
py
Python
tests/test_models.py
byteweaver/django-posts
9ba7f4a27e6437e15c9cc06a6046141264249adf
[ "BSD-3-Clause" ]
2
2015-07-23T11:47:38.000Z
2016-09-26T06:55:00.000Z
tests/test_models.py
byteweaver/django-posts
9ba7f4a27e6437e15c9cc06a6046141264249adf
[ "BSD-3-Clause" ]
1
2016-01-27T12:26:04.000Z
2016-01-27T12:26:04.000Z
tests/test_models.py
byteweaver/django-posts
9ba7f4a27e6437e15c9cc06a6046141264249adf
[ "BSD-3-Clause" ]
2
2016-09-26T06:55:00.000Z
2020-08-31T10:22:37.000Z
from django.test import TestCase from posts.factories import PostFactory class PostTestCase(TestCase): def test_create_post(self): post = PostFactory.create() self.assertTrue(post.pk) self.assertTrue(post.author) self.assertTrue(post.headline) self.assertTrue(post.slug) ...
25.214286
39
0.696884
4a058d51d256f1621e5245dd9fedb9b54ad36fab
5,320
py
Python
pullbug/github_bug.py
ncr4/pullbug
393722558b2e997051fe1c86ea04951f635ef5e7
[ "MIT" ]
null
null
null
pullbug/github_bug.py
ncr4/pullbug
393722558b2e997051fe1c86ea04951f635ef5e7
[ "MIT" ]
null
null
null
pullbug/github_bug.py
ncr4/pullbug
393722558b2e997051fe1c86ea04951f635ef5e7
[ "MIT" ]
null
null
null
import os import requests import logging from pullbug.logger import PullBugLogger from pullbug.messages import Messages GITHUB_TOKEN = os.getenv('GITHUB_TOKEN') GITHUB_OWNER = os.getenv('GITHUB_OWNER') GITHUB_HEADERS = { 'Authorization': f'token {GITHUB_TOKEN}', 'Content-Type': 'application/json; charset=utf-8...
41.24031
130
0.594549
4a058e054523026ec602695ebc8977af45a26797
2,091
py
Python
semantic-segmentation/demo.py
LyMarco/Semantic-Mono-Depth
a4002e47e0749cb565720c3fb1c25d6ac2af547e
[ "MIT" ]
1
2020-03-09T20:53:07.000Z
2020-03-09T20:53:07.000Z
semantic-segmentation/demo.py
LyMarco/Semantic-Mono-Depth
a4002e47e0749cb565720c3fb1c25d6ac2af547e
[ "MIT" ]
null
null
null
semantic-segmentation/demo.py
LyMarco/Semantic-Mono-Depth
a4002e47e0749cb565720c3fb1c25d6ac2af547e
[ "MIT" ]
null
null
null
import os import sys import argparse from PIL import Image import numpy as np import cv2 import torch from torch.backends import cudnn import torchvision.transforms as transforms import network from optimizer import restore_snapshot from datasets import cityscapes from config import assert_and_infer_cfg parser = arg...
33.725806
140
0.760402
4a059192d7ef1b2695bd306fef839405756115be
2,172
py
Python
slimgbm/histogram.py
zgw21cn/slimgbm
576430b7122be1624842b92e89cccda64626eda1
[ "MIT" ]
1
2017-11-17T13:54:55.000Z
2017-11-17T13:54:55.000Z
slimgbm/histogram.py
zgw21cn/slimgbm
576430b7122be1624842b92e89cccda64626eda1
[ "MIT" ]
null
null
null
slimgbm/histogram.py
zgw21cn/slimgbm
576430b7122be1624842b92e89cccda64626eda1
[ "MIT" ]
null
null
null
# coding=utf-8 from pandas.tools.tile import _bins_to_cuts from slimgbm.slimgbm.bin import Bin import pandas as pd import pandas.core.algorithms as algos import numpy as np class Histogram(object): def __init__(self): self.bins = [] def _qcut(self, x, q, labels=None, retbins=False, precision=3): ...
22.163265
111
0.544199
4a059267f261f503f3a42fc2e6f4a9cb3a8bbdd7
1,039
py
Python
preprocessing/preprocess2.py
ZuowenWang0000/GRUBERT-A-GRU-Based-Method-to-Fuse-BERT-Hidden-Layers
992967fe102493eadf37423de5710761f007bcb1
[ "MIT" ]
4
2020-11-16T15:02:56.000Z
2022-02-07T06:39:32.000Z
preprocessing/preprocess2.py
ZuowenWang0000/GRUBERT-A-GRU-Based-Method-to-Fuse-BERT-Hidden-Layers
992967fe102493eadf37423de5710761f007bcb1
[ "MIT" ]
null
null
null
preprocessing/preprocess2.py
ZuowenWang0000/GRUBERT-A-GRU-Based-Method-to-Fuse-BERT-Hidden-Layers
992967fe102493eadf37423de5710761f007bcb1
[ "MIT" ]
2
2021-07-07T02:35:23.000Z
2021-11-10T16:54:38.000Z
import re import sys import pandas as pd from joblib import Parallel, delayed import multiprocessing # start_index = int(input("start index\n")) # end_index = int(input("end inex\n")) file_to_process = str(sys.argv[1]) data = pd.read_csv(file_to_process) # print(data) tweets = data['text'] def process2_iter(tweet): ...
26.641026
89
0.6718
4a05938af587349c3a114d2efe75198b21d28d8b
532
py
Python
imagepy/menus/Window/widgets_plgs.py
dada1437903138/imagepy
65d9ce088894eef587054e04018f9d34ff65084f
[ "BSD-4-Clause" ]
1,178
2017-05-25T06:59:01.000Z
2022-03-31T11:38:53.000Z
imagepy/menus/Window/widgets_plgs.py
TomisTony/imagepy
3c378ebaf72762b94f0826a410897757ebafe689
[ "BSD-4-Clause" ]
76
2017-06-10T17:01:50.000Z
2021-12-23T08:13:29.000Z
imagepy/menus/Window/widgets_plgs.py
TomisTony/imagepy
3c378ebaf72762b94f0826a410897757ebafe689
[ "BSD-4-Clause" ]
315
2017-05-25T12:59:53.000Z
2022-03-07T22:52:21.000Z
from sciapp.action import Free class Widgets(Free): """ImageKiller: derived from sciapp.action.Free""" title = 'Widgets' asyn = False def run(self, para = None): self.app.switch_widget() class ToolBar(Free): title = 'Toolbar' asyn = False def run(self, para = None): self.app.switch_toolbar() class Tabl...
19.703704
51
0.699248
4a05942756237e720646a132dca0c01362231399
617
py
Python
regression/issue_56.py
timgates42/pyahocorasick
3eab1ed66cea1dd30a48eff03927326a166502e5
[ "BSD-3-Clause" ]
707
2015-03-26T02:43:06.000Z
2022-03-28T07:54:06.000Z
regression/issue_56.py
timgates42/pyahocorasick
3eab1ed66cea1dd30a48eff03927326a166502e5
[ "BSD-3-Clause" ]
140
2015-04-18T04:47:19.000Z
2022-03-09T11:24:50.000Z
regression/issue_56.py
timgates42/pyahocorasick
3eab1ed66cea1dd30a48eff03927326a166502e5
[ "BSD-3-Clause" ]
112
2015-06-17T03:51:32.000Z
2022-03-09T01:58:58.000Z
import ahocorasick def iter_results(s): r = [] for x in A.iter(teststr): r.append(x) return r def find_all_results(s): r = [] def append(x, s): r.append((x, s)) A.find_all(s, append) return r A = ahocorasick.Automaton() for word in ("poke", "go", "pokegois",...
14.690476
49
0.612642
4a0594f20c70536297d32c6e7b4661d36cd52524
33,533
py
Python
gdf/_gdfnetcdf.py
dunkgray/gdf
7b39f0c90cf63d501b36ea9d754269616d79e0d4
[ "Apache-2.0" ]
7
2015-08-27T09:20:55.000Z
2019-06-27T14:00:11.000Z
gdf/_gdfnetcdf.py
alex-ip/gdf
7b39f0c90cf63d501b36ea9d754269616d79e0d4
[ "Apache-2.0" ]
null
null
null
gdf/_gdfnetcdf.py
alex-ip/gdf
7b39f0c90cf63d501b36ea9d754269616d79e0d4
[ "Apache-2.0" ]
5
2015-05-13T05:58:13.000Z
2019-12-09T00:36:11.000Z
#!/usr/bin/env python # Some code derived from hnetcdf_builder.py by Matt Paget & Edward King of CSIRO # https://stash.csiro.au/projects/CMAR_RS/repos/netcdf-tools/browse/create/netcdf_builder.py #=============================================================================== # Copyright (c) 2014 Geoscience Australi...
50.807576
197
0.649331
4a05958a2b59f7451164ed0e7d02f546940fd835
4,002
py
Python
test/test_acceptance.py
jmikedupont2/pythoscope
58a1149f204897e8f789d93ee7e49b6db0bd346f
[ "MIT" ]
2
2020-04-06T11:02:46.000Z
2020-05-14T18:37:04.000Z
test/test_acceptance.py
jmikedupont2/pythoscope
58a1149f204897e8f789d93ee7e49b6db0bd346f
[ "MIT" ]
null
null
null
test/test_acceptance.py
jmikedupont2/pythoscope
58a1149f204897e8f789d93ee7e49b6db0bd346f
[ "MIT" ]
null
null
null
from pythoscope.inspector import inspect_project from pythoscope.generator import add_tests_to_project from pythoscope.util import read_file_contents, write_content_to_file from nose import SkipTest from .assertions import * from .helper import get_test_module_contents, CapturedLogger, \ ProjectInDirectory, putfi...
45.477273
119
0.76037
4a0595ecf104c35dd89de5d5f675d93575f6480f
7,411
py
Python
step.py
andrewpo456/pi-thrum
dcbb3576bdff7784ce6ad04e554209593db73e3e
[ "MIT" ]
11
2017-11-01T01:21:37.000Z
2021-12-05T15:20:19.000Z
step.py
andrewpo456/pi-thrum
dcbb3576bdff7784ce6ad04e554209593db73e3e
[ "MIT" ]
null
null
null
step.py
andrewpo456/pi-thrum
dcbb3576bdff7784ce6ad04e554209593db73e3e
[ "MIT" ]
1
2020-11-05T18:03:08.000Z
2020-11-05T18:03:08.000Z
""" This module defines the functionality behind running the 12-step sequencer. For information regarding the circuit setup please refer to 'pi-thrum-schem'. @author Andrew Pope """ import RPi.GPIO as GPIO import pygame import time class Step: # Map the GPIO pins to each button # Note: # * Buttons 0 - 5, ...
34.152074
77
0.564431
4a05961e2c1ac44a4693fce5918d35e34e34d7ca
2,707
py
Python
tools/tensorflow_pb_tester.py
hequn/keras-transfer-learning
194e98db7d9eb2bd58ab51f67e98470635bbb215
[ "MIT" ]
6
2018-11-28T06:32:58.000Z
2021-12-28T12:43:36.000Z
tools/tensorflow_pb_tester.py
hequn/keras-transfer-learning
194e98db7d9eb2bd58ab51f67e98470635bbb215
[ "MIT" ]
3
2019-01-08T07:35:41.000Z
2019-11-28T03:13:03.000Z
tools/tensorflow_pb_tester.py
hequn/keras-transfer-learning
194e98db7d9eb2bd58ab51f67e98470635bbb215
[ "MIT" ]
2
2019-02-18T04:28:20.000Z
2020-05-08T10:22:26.000Z
from tensorflow.python.platform import gfile import tensorflow as tf import numpy as np import os from PIL import Image import config import util from sklearn.externals import joblib os.environ["CUDA_VISIBLE_DEVICES"] = "-1" # load the model which will be executed config.model = 'antnet' util.set_img_format() model_m...
37.597222
129
0.773181
4a0596cc07d5bf38001eea3f11bfb094789a554b
2,243
py
Python
Programas_1/sagj_bcd.py
ShosuaXD/ProgramasFSEmb
58fabc3b080cd2423e1b3d7d77c23b98a207316b
[ "MIT" ]
null
null
null
Programas_1/sagj_bcd.py
ShosuaXD/ProgramasFSEmb
58fabc3b080cd2423e1b3d7d77c23b98a207316b
[ "MIT" ]
null
null
null
Programas_1/sagj_bcd.py
ShosuaXD/ProgramasFSEmb
58fabc3b080cd2423e1b3d7d77c23b98a207316b
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # ################################ # Author: Santillan Garcia Josue # Codigo modificado de bcd.py # ################################ # Future imports (Python 2.7 compatibility) from __future__ import absolute_import from __future__ import division from __future__ import pr...
38.016949
121
0.705305
4a05970ef5a40fd9d697ce0de9a42cdde1e268e5
568
gyp
Python
binding.gyp
orta/apple-unified-logging-node
c9a590b5c96651390ff32434b7e5b25d1af33fb3
[ "MIT" ]
4
2020-04-16T12:57:47.000Z
2020-04-18T09:12:26.000Z
binding.gyp
orta/apple-unified-logging-node
c9a590b5c96651390ff32434b7e5b25d1af33fb3
[ "MIT" ]
null
null
null
binding.gyp
orta/apple-unified-logging-node
c9a590b5c96651390ff32434b7e5b25d1af33fb3
[ "MIT" ]
null
null
null
{ "make_global_settings": [ ["CC", "/usr/bin/clang"], ["CXX", "/usr/bin/clang++"] ], "targets": [ { "target_name": "OSLogger", "sources": ["OSLogger.mm", "functions.cc"], "include_dirs": ["<!(node -e \"require('nan')\")"], "xcode_settings": { "CC": "clang", "MA...
22.72
68
0.463028
4a05974558a39a975df0076bdbff99ff9b099883
22,548
py
Python
emiproc/grids.py
jmhaussaire/cosmo-emission-processing
bb05ca5e6d26836a89929369ba38f2bc8151e4a2
[ "CC-BY-4.0" ]
null
null
null
emiproc/grids.py
jmhaussaire/cosmo-emission-processing
bb05ca5e6d26836a89929369ba38f2bc8151e4a2
[ "CC-BY-4.0" ]
null
null
null
emiproc/grids.py
jmhaussaire/cosmo-emission-processing
bb05ca5e6d26836a89929369ba38f2bc8151e4a2
[ "CC-BY-4.0" ]
null
null
null
""" Classes handling different grids, namely the COSMO simulation grid and grids used in different emissions inventories. """ import numpy as np import cartopy.crs as ccrs from netCDF4 import Dataset from shapely.geometry import Polygon class Grid: """Abstract base class for a grid. Derive your own grid impl...
29.785997
81
0.555127
4a0597c4e19aa37f8aca366917f8852f13d2f206
1,330
py
Python
main.py
MayThuHtun/Z2U
4fd4756c8e43a0547e4940793c357a0cb6c4c5aa
[ "MIT" ]
1
2021-04-14T06:16:36.000Z
2021-04-14T06:16:36.000Z
main.py
MayThuHtun/ufc
4fd4756c8e43a0547e4940793c357a0cb6c4c5aa
[ "MIT" ]
null
null
null
main.py
MayThuHtun/ufc
4fd4756c8e43a0547e4940793c357a0cb6c4c5aa
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Usage: main.py inputfilename.ext outputfilename.ext # Example: main.py zawgyi.txt unicode.txt import codecs import zg2uni import uni2zg import win2uni import uni2win import sys input_file_name = sys.argv[1] output_file_name = sys.argv[2] input_file = codecs.open(input_file_name, encoding='u...
25.09434
71
0.756391
4a0597e2650dca9561fdfaafdf05f5f442c71141
446
py
Python
examples/timescale_listener_ex.py
masonCaminer/locust-plugins
d5f461d098f67a3693a6db6a786c65e112216920
[ "Apache-2.0" ]
2
2020-10-06T20:52:56.000Z
2020-10-07T11:34:46.000Z
examples/timescale_listener_ex.py
masonCaminer/locust-plugins
d5f461d098f67a3693a6db6a786c65e112216920
[ "Apache-2.0" ]
null
null
null
examples/timescale_listener_ex.py
masonCaminer/locust-plugins
d5f461d098f67a3693a6db6a786c65e112216920
[ "Apache-2.0" ]
null
null
null
from locust_plugins.listeners import TimescaleListener from locust import HttpUser, task, events class MyHttpUser(HttpUser): @task def index(self): self.client.post("/authentication/1.0/getResults", {"username": "something"}) host = "http://example.com" @events.init.add_listener def on_locust_i...
27.875
96
0.748879
4a059a3313e0d0663b4b57648e22c7ad25c3ec93
2,144
py
Python
configs/_base_/datasets/imagenet_bs64_swin_224.py
YuxinZou/mmclassification
2037260ea6c98a3b115e97727e1151a1c2c32f7a
[ "Apache-2.0" ]
1,190
2020-07-10T01:16:01.000Z
2022-03-31T09:48:38.000Z
configs/_base_/datasets/imagenet_bs64_swin_224.py
YuxinZou/mmclassification
2037260ea6c98a3b115e97727e1151a1c2c32f7a
[ "Apache-2.0" ]
702
2020-07-13T13:31:33.000Z
2022-03-31T06:48:04.000Z
configs/_base_/datasets/imagenet_bs64_swin_224.py
YuxinZou/mmclassification
2037260ea6c98a3b115e97727e1151a1c2c32f7a
[ "Apache-2.0" ]
502
2020-07-10T02:40:55.000Z
2022-03-31T02:07:09.000Z
_base_ = ['./pipelines/rand_aug.py'] # dataset settings dataset_type = 'ImageNet' img_norm_cfg = dict( mean=[123.675, 116.28, 103.53], std=[58.395, 57.12, 57.375], to_rgb=True) train_pipeline = [ dict(type='LoadImageFromFile'), dict( type='RandomResizedCrop', size=224, backend='pil...
29.777778
77
0.604011
4a059b35f7105672bc3580f008cafc5ece8b8658
3,789
py
Python
socceraction/data/opta/parsers/f24_json.py
pientist/socceraction
7f8e666ee5da7c1890c72a2c72042d4c73b90fda
[ "MIT" ]
371
2019-07-25T07:35:00.000Z
2022-03-25T11:13:56.000Z
socceraction/data/opta/parsers/f24_json.py
pientist/socceraction
7f8e666ee5da7c1890c72a2c72042d4c73b90fda
[ "MIT" ]
145
2019-08-29T12:49:55.000Z
2022-03-31T09:35:05.000Z
socceraction/data/opta/parsers/f24_json.py
pientist/socceraction
7f8e666ee5da7c1890c72a2c72042d4c73b90fda
[ "MIT" ]
101
2019-08-20T21:07:34.000Z
2022-03-26T10:00:00.000Z
"""JSON parser for Opta F24 feeds.""" from datetime import datetime from typing import Any, Dict from ...base import MissingDataError from .base import OptaJSONParser, _get_end_x, _get_end_y, assertget class F24JSONParser(OptaJSONParser): """Extract data from a Opta F24 data stream. Parameters ---------...
34.445455
90
0.534178
4a059f1e4c8040490ee319fb4a7fcafd27e93539
827
py
Python
tensorflow/contrib/learn/python/learn/preprocessing/tests/__init__.py
tianyapiaozi/tensorflow
fb3ce0467766a8e91f1da0ad7ada7c24fde7a73a
[ "Apache-2.0" ]
848
2019-12-03T00:16:17.000Z
2022-03-31T22:53:17.000Z
tensorflow/contrib/learn/python/learn/preprocessing/tests/__init__.py
shrikunjsarda/tensorflow
7e8927e7af0c51ac20a63bd4eab6ff83df1a39ae
[ "Apache-2.0" ]
656
2019-12-03T00:48:46.000Z
2022-03-31T18:41:54.000Z
tensorflow/contrib/learn/python/learn/preprocessing/tests/__init__.py
shrikunjsarda/tensorflow
7e8927e7af0c51ac20a63bd4eab6ff83df1a39ae
[ "Apache-2.0" ]
506
2019-12-03T00:46:26.000Z
2022-03-30T10:34:56.000Z
# Copyright 2016 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...
39.380952
80
0.702539
4a059fcb84d3f5c38d8c17ca1dc293ed2241852c
35,496
py
Python
src/fparser/common/tests/test_readfortran.py
p-vitt/fparser
94644d5df6af242b4a93593f0157479ba2989dd8
[ "BSD-3-Clause" ]
null
null
null
src/fparser/common/tests/test_readfortran.py
p-vitt/fparser
94644d5df6af242b4a93593f0157479ba2989dd8
[ "BSD-3-Clause" ]
null
null
null
src/fparser/common/tests/test_readfortran.py
p-vitt/fparser
94644d5df6af242b4a93593f0157479ba2989dd8
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- ############################################################################## # Copyright (c) 2017-2020 Science and Technology Facilities Council # # All rights reserved. # # Modifications made as part of the fparser project are distributed # under the following license: # # Redistribution and ...
35.818365
87
0.608463
4a05a014f1c3e159764a83a28485bae27e005661
754
py
Python
tests/test_predefined_model.py
IncyLiu/autokeras
e9dbf66b005e2ffaabe29bc366bb4e72fa79add8
[ "MIT" ]
1
2019-01-25T02:20:37.000Z
2019-01-25T02:20:37.000Z
tests/test_predefined_model.py
IncyLiu/autokeras
e9dbf66b005e2ffaabe29bc366bb4e72fa79add8
[ "MIT" ]
1
2019-03-06T02:20:08.000Z
2019-03-06T02:20:08.000Z
tests/test_predefined_model.py
IncyLiu/autokeras
e9dbf66b005e2ffaabe29bc366bb4e72fa79add8
[ "MIT" ]
2
2019-05-13T20:20:17.000Z
2020-01-01T04:49:59.000Z
from unittest.mock import patch from autokeras.predefined_model import * from tests.common import clean_dir, mock_train, TEST_TEMP_DIR, MockProcess @patch('torch.multiprocessing.get_context', side_effect=MockProcess) @patch('autokeras.search.ModelTrainer.train_model', side_effect=mock_train) def test_fit_predict_sav...
35.904762
75
0.725464
4a05a0c2708b6ec3b4fcba2ab6ac9fd553cebcfd
554
py
Python
src/USER_DATA/utils/assignment_prototype/ex_1/test_files/test.py
graipher/TeaRoom
0beb8c2c889b8685d5b7a463206de41947c2d669
[ "MIT" ]
null
null
null
src/USER_DATA/utils/assignment_prototype/ex_1/test_files/test.py
graipher/TeaRoom
0beb8c2c889b8685d5b7a463206de41947c2d669
[ "MIT" ]
15
2015-05-20T12:55:13.000Z
2022-03-11T23:26:40.000Z
src/USER_DATA/utils/assignment_prototype/ex_1/test_files/test.py
graipher/TeaRoom
0beb8c2c889b8685d5b7a463206de41947c2d669
[ "MIT" ]
2
2016-11-17T11:07:41.000Z
2017-07-07T11:18:36.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- # @Author: salvo # @Date: 2015-05-18 13:44:07 # @Last Modified by: salvo # @Last Modified time: 2015-05-24 20:23:32 # add external folder to import path if __name__ == '__main__' and __package__ is None: from os import sys, path sys.path.append(path.dirname(pat...
27.7
71
0.67509
4a05a2404710a62ff7d903449f7f9aba7ca55585
12,709
py
Python
src/deeprace/models/tf_details/cifar10_main.py
psteinb/deeprace
a3e6cbc83e466f86a76d91c2077349e4d69495c2
[ "BSD-3-Clause" ]
11
2018-03-02T15:21:26.000Z
2020-02-13T20:38:15.000Z
src/deeprace/models/tf_details/cifar10_main.py
psteinb/deeprace
a3e6cbc83e466f86a76d91c2077349e4d69495c2
[ "BSD-3-Clause" ]
13
2018-03-23T16:45:27.000Z
2019-10-11T12:54:29.000Z
src/deeprace/models/tf_details/cifar10_main.py
psteinb/deeprace
a3e6cbc83e466f86a76d91c2077349e4d69495c2
[ "BSD-3-Clause" ]
1
2018-11-26T23:20:10.000Z
2018-11-26T23:20:10.000Z
# Copyright 2017 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...
43.081356
86
0.641199
4a05a2823a9f05cd2b34ff17c5c4fdcae2d979a0
326
py
Python
ex44c.py
Zinmarlwin711/python-exercises
361cb426a8bc03760906e25b6cb6a4a458260bfc
[ "MIT" ]
null
null
null
ex44c.py
Zinmarlwin711/python-exercises
361cb426a8bc03760906e25b6cb6a4a458260bfc
[ "MIT" ]
null
null
null
ex44c.py
Zinmarlwin711/python-exercises
361cb426a8bc03760906e25b6cb6a4a458260bfc
[ "MIT" ]
null
null
null
class Parent(object): def altered(self): print("PARENT altered()") class Child(Parent): def altered(self): print("CHILD, BEFORE PARENT altered9)") super(Child, self).altered() print("CHILD, AFTER PARENT altered()") dad = Parent() son = Child() dad.altered() son.alter...
17.157895
47
0.59816
4a05a2f672dfbf76a18ca707d19894f39aac1387
14,156
py
Python
baselines/common/models.py
thangduong/baselines
fbab8aedadbecea59d6c33ba4f2a0955c782780c
[ "MIT" ]
null
null
null
baselines/common/models.py
thangduong/baselines
fbab8aedadbecea59d6c33ba4f2a0955c782780c
[ "MIT" ]
null
null
null
baselines/common/models.py
thangduong/baselines
fbab8aedadbecea59d6c33ba4f2a0955c782780c
[ "MIT" ]
1
2019-02-22T09:24:15.000Z
2019-02-22T09:24:15.000Z
import numpy as np import tensorflow as tf from baselines.a2c import utils from baselines.a2c.utils import conv, fc, conv_to_fc, batch_to_seq, seq_to_batch from baselines.common.mpi_running_mean_std import RunningMeanStd import tensorflow.contrib.layers as layers mapping = {} def register(name): def _thunk(func):...
33.704762
140
0.591693
4a05a32288ff9d1dbfaea803a15ba3c73328b9a9
1,295
py
Python
mat/mat/modules/android/static/unencrypted_communications.py
minkione/mat
8aaec2c9abbc1b837749e5fb084df4665e7ec35c
[ "BSD-3-Clause" ]
null
null
null
mat/mat/modules/android/static/unencrypted_communications.py
minkione/mat
8aaec2c9abbc1b837749e5fb084df4665e7ec35c
[ "BSD-3-Clause" ]
null
null
null
mat/mat/modules/android/static/unencrypted_communications.py
minkione/mat
8aaec2c9abbc1b837749e5fb084df4665e7ec35c
[ "BSD-3-Clause" ]
1
2019-09-21T16:12:04.000Z
2019-09-21T16:12:04.000Z
from mat.utils.utils import Utils, Issue IGNORE = ['www.w3', 'xmlpull.org', 'www.slf4j'] class Issue(Issue): TITLE = 'Unencrypted Communications Check' DESCRIPTION = 'Checks if the application accesses content view unencrypted communications' ID = 'unencrypted-download' ISSUE_TITLE = ...
34.078947
137
0.579151
4a05a34f8b20db71ba9640a2f3717f8cd7f187d5
520
py
Python
themata/fandango/__init__.py
Thecarisma/thememania
12e5b62506418b0a5a1b32a189796fd0ca031584
[ "CC0-1.0" ]
1
2020-03-01T06:29:56.000Z
2020-03-01T06:29:56.000Z
themata/fandango/__init__.py
Thecarisma/milkish
12e5b62506418b0a5a1b32a189796fd0ca031584
[ "CC0-1.0" ]
null
null
null
themata/fandango/__init__.py
Thecarisma/milkish
12e5b62506418b0a5a1b32a189796fd0ca031584
[ "CC0-1.0" ]
null
null
null
import os import themata def get_path(): """ Return the path to the fandango theme """ return os.path.abspath(os.path.dirname(os.path.dirname(__file__))) def setup(app): if hasattr(app, "add_html_theme"): theme_path = os.path.abspath(os.path.dirname(__file__)) app.add_h...
32.5
71
0.680769
4a05a5f2badb8f683035a091a42770d5372382d6
7,783
py
Python
docs/conf.py
sunnnymskang/ChillPillV1
8c1f129141719f755290df7aa3413b6be86ea887
[ "MIT" ]
null
null
null
docs/conf.py
sunnnymskang/ChillPillV1
8c1f129141719f755290df7aa3413b6be86ea887
[ "MIT" ]
null
null
null
docs/conf.py
sunnnymskang/ChillPillV1
8c1f129141719f755290df7aa3413b6be86ea887
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # # chillpillv1 documentation build configuration file, created by # sphinx-quickstart. # # This file is execfile()d with the current directory set to its containing dir. # # Note that not all possible configuration values are present in this # autogenerated file. # # All configuration values ha...
31.767347
80
0.707054
4a05a62d63c23143818cd4b8fe7924bcdedeb863
22,913
py
Python
perses/analysis/analysis.py
schallerdavid/perses
58bd6e626e027879e136f56e175683893e016f8c
[ "MIT" ]
99
2016-01-19T18:10:37.000Z
2022-03-26T02:43:08.000Z
perses/analysis/analysis.py
schallerdavid/perses
58bd6e626e027879e136f56e175683893e016f8c
[ "MIT" ]
878
2015-09-18T19:25:30.000Z
2022-03-31T02:33:04.000Z
perses/analysis/analysis.py
schallerdavid/perses
58bd6e626e027879e136f56e175683893e016f8c
[ "MIT" ]
30
2015-09-21T15:26:35.000Z
2022-01-10T20:07:24.000Z
""" Analysis tools for perses automated molecular design. TODO ---- * Analyze all but last iteration to ensure we can analyze a running simulation? """ __author__ = 'John D. Chodera' ################################################################################ # IMPORTS ##########################################...
40.268893
130
0.572819
4a05a630fe1c0d276ca1a5ff24fe562fec99d39a
4,874
py
Python
pyhcup/tests/test_reading.py
jburke5/pyhcup
463bab2dcf7e191609a0430e4ea8b7b4f88806e5
[ "MIT" ]
7
2018-01-08T18:28:29.000Z
2021-10-12T20:21:24.000Z
pyhcup/tests/test_reading.py
jburke5/pyhcup
463bab2dcf7e191609a0430e4ea8b7b4f88806e5
[ "MIT" ]
null
null
null
pyhcup/tests/test_reading.py
jburke5/pyhcup
463bab2dcf7e191609a0430e4ea8b7b4f88806e5
[ "MIT" ]
5
2018-02-05T04:26:50.000Z
2022-03-19T22:07:27.000Z
import unittest import pandas as pd import pyhcup from pyhcup import hachoir, sas, tx from pyhcup.config import DEFAULT_DATA_SOURCES, BUNDLED_SID_SAMPLES_DIR, BUNDLED_LOADFILE_DIR, KNOWN_MISSING_LOADFILES DISCOVERED_LOADFILES = hachoir.discover(root_path=BUNDLED_LOADFILE_DIR) CONTENT_SOURCES = [i for i in DEFAULT_DAT...
37.782946
123
0.551908
4a05a86fbd506541c23b34b064335f59229841a0
1,560
py
Python
app/main/api.py
A1014280203/elearning
6419b86411d0fd67b299d9ec666422326062ff99
[ "MIT" ]
24
2017-09-12T04:44:29.000Z
2021-04-14T09:09:15.000Z
app/main/api.py
A1014280203/elearning
6419b86411d0fd67b299d9ec666422326062ff99
[ "MIT" ]
1
2022-03-20T04:25:16.000Z
2022-03-20T04:25:16.000Z
app/main/api.py
A1014280203/elearning
6419b86411d0fd67b299d9ec666422326062ff99
[ "MIT" ]
21
2017-09-12T03:57:31.000Z
2019-08-22T12:16:05.000Z
from flask import render_template, request, jsonify, url_for from ..models import User, School, Course, Paper from . import main @main.route('/') def index(): return render_template('main/index.html') @main.route('/mall') def mall(): p = int(request.args.get('p') or 1) p -= 1 items = C...
27.857143
76
0.594872
4a05a8fd4517f908d8c85be229b36a8761e728c4
6,547
py
Python
lib/galaxy/managers/configuration.py
ClayBirkett/galaxy
b5afa3c1a90d269f1d438ffde481ff2e4178a72b
[ "CC-BY-3.0" ]
1
2019-11-15T01:50:38.000Z
2019-11-15T01:50:38.000Z
lib/galaxy/managers/configuration.py
userssss/galaxy
9662164ad68b39adf5a5606a7aa8e388f6a79f1e
[ "CC-BY-3.0" ]
null
null
null
lib/galaxy/managers/configuration.py
userssss/galaxy
9662164ad68b39adf5a5606a7aa8e388f6a79f1e
[ "CC-BY-3.0" ]
null
null
null
""" Serializers for Galaxy config file data: ConfigSerializer for all users and a more expanded set of data for admin in AdminConfigSerializer. Used by both the API and bootstrapped data. """ # TODO: this is a bit of an odd duck. It uses the serializer structure from managers # but doesn't have a model like them. It...
55.957265
136
0.57049
4a05aa0bb3d18920aeba286988e9d527050d0bd7
1,050
py
Python
experiments/data_augmentation/main.py
ClementPla/Retinal-Lesions-Segmentation
20fa4ac8eae24814470095bb6e7f08d6751c4e11
[ "MIT" ]
1
2021-10-10T02:44:13.000Z
2021-10-10T02:44:13.000Z
experiments/data_augmentation/main.py
ClementPla/Retinal-Lesions-Segmentation
20fa4ac8eae24814470095bb6e7f08d6751c4e11
[ "MIT" ]
null
null
null
experiments/data_augmentation/main.py
ClementPla/Retinal-Lesions-Segmentation
20fa4ac8eae24814470095bb6e7f08d6751c4e11
[ "MIT" ]
null
null
null
import sys sys.path.append('../../') from experiment import RetinExp, DA, Dataset from nntools.utils import Config import argparse if __name__ == '__main__': parser = argparse.ArgumentParser() parser.add_argument("--config", help="Path to the configuration file") parser.add_argument("--models", help="List...
32.8125
114
0.589524
4a05aa4c5a0753c6b87efc399bd0e4417a414753
54,720
py
Python
Bio/SeqRecord.py
Manoo-hao/biopython
5a55811d57880cbc9e6f198374e81ef3a4fbfa05
[ "BSD-3-Clause" ]
1
2021-07-09T23:35:05.000Z
2021-07-09T23:35:05.000Z
Bio/SeqRecord.py
Manoo-hao/biopython
5a55811d57880cbc9e6f198374e81ef3a4fbfa05
[ "BSD-3-Clause" ]
null
null
null
Bio/SeqRecord.py
Manoo-hao/biopython
5a55811d57880cbc9e6f198374e81ef3a4fbfa05
[ "BSD-3-Clause" ]
null
null
null
# Copyright 2000-2002 Andrew Dalke. All rights reserved. # Copyright 2002-2004 Brad Chapman. All rights reserved. # Copyright 2006-2020 by Peter Cock. All rights reserved. # # This file is part of the Biopython distribution and governed by your # choice of the "Biopython License Agreement" or the "BSD 3-Clause Licen...
39.825328
215
0.608333
4a05ab01e040309dba78e2f4e923dda8b4636103
1,834
py
Python
bots/zulip_git_config.py
dehnert/zulip
f5935e81c7cf2f11ff4ccfcd31d2a1061b8d7ff5
[ "Apache-2.0" ]
1
2017-07-27T19:49:12.000Z
2017-07-27T19:49:12.000Z
bots/zulip_git_config.py
dehnert/zulip
f5935e81c7cf2f11ff4ccfcd31d2a1061b8d7ff5
[ "Apache-2.0" ]
8
2021-03-31T18:45:09.000Z
2022-03-11T23:25:59.000Z
bots/zulip_git_config.py
tobby2002/zulip
66e7c455759f9368bae16b9a604cf63f8e3524cd
[ "Apache-2.0" ]
null
null
null
# Zulip, Inc's internal git plugin configuration. # The plugin and example config are under api/integrations/ # Leaving all the instructions out of this file to avoid having to # sync them as we update the comments. if False: from typing import Dict, Optional, Text ZULIP_USER = "commit-bot@zulip.com" ZULIP_API_KEY =...
39.021277
105
0.707743
4a05ab0415c16125519b2d153c74cf75808d366b
1,838
py
Python
python/runtime/pai/submit_pai_task.py
awsl-dbq/sqlflow
6684ac4b4f26774bd10e437bc52080fdbae5ce49
[ "Apache-2.0" ]
null
null
null
python/runtime/pai/submit_pai_task.py
awsl-dbq/sqlflow
6684ac4b4f26774bd10e437bc52080fdbae5ce49
[ "Apache-2.0" ]
null
null
null
python/runtime/pai/submit_pai_task.py
awsl-dbq/sqlflow
6684ac4b4f26774bd10e437bc52080fdbae5ce49
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 The SQLFlow Authors. All rights reserved. # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law o...
32.821429
74
0.650163
4a05ab8530e27e17b018e1ecabb59b37439cf336
2,247
py
Python
alipay/aop/api/domain/AlipaySecurityRiskAuthenticationInitializeModel.py
snowxmas/alipay-sdk-python-all
96870ced60facd96c5bce18d19371720cbda3317
[ "Apache-2.0" ]
213
2018-08-27T16:49:32.000Z
2021-12-29T04:34:12.000Z
alipay/aop/api/domain/AlipaySecurityRiskAuthenticationInitializeModel.py
snowxmas/alipay-sdk-python-all
96870ced60facd96c5bce18d19371720cbda3317
[ "Apache-2.0" ]
29
2018-09-29T06:43:00.000Z
2021-09-02T03:27:32.000Z
alipay/aop/api/domain/AlipaySecurityRiskAuthenticationInitializeModel.py
snowxmas/alipay-sdk-python-all
96870ced60facd96c5bce18d19371720cbda3317
[ "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 * from alipay.aop.api.domain.AuthenticationInfo import AuthenticationInfo class AlipaySecurityRiskAuthenticationInitializeModel(object): def __init__(self): self._authentication_info = None ...
29.96
89
0.628393
4a05aba3534c3a49f898c10db3e7681f8fb28389
14,676
py
Python
models/train_chalearn_main.py
Lalit-garg/Gesture-Detection
fa405c57fa8497fbeb7b462968dd2534c32412cf
[ "MIT" ]
null
null
null
models/train_chalearn_main.py
Lalit-garg/Gesture-Detection
fa405c57fa8497fbeb7b462968dd2534c32412cf
[ "MIT" ]
null
null
null
models/train_chalearn_main.py
Lalit-garg/Gesture-Detection
fa405c57fa8497fbeb7b462968dd2534c32412cf
[ "MIT" ]
null
null
null
import tensorflow as tf import sys import os import numpy as np import c3D_main as conv3d1 import c3D2 as conv3d2 import c3D3 as conv3d3 import time import pickle import random import argparse from tensorflow.python.client import device_lib from AdamWOptimizer import create_optimizer def append_frames(cut_frame_array...
39.989101
115
0.569365
4a05abbad07ed4e7f72391db2df0abe080b62a05
1,375
py
Python
thehood/urls.py
Alexanderoke/Neighbourhood
75bcffbc72288e2d2b58cfca2c6b415e47f0ec1a
[ "MIT" ]
null
null
null
thehood/urls.py
Alexanderoke/Neighbourhood
75bcffbc72288e2d2b58cfca2c6b415e47f0ec1a
[ "MIT" ]
null
null
null
thehood/urls.py
Alexanderoke/Neighbourhood
75bcffbc72288e2d2b58cfca2c6b415e47f0ec1a
[ "MIT" ]
null
null
null
"""thehood URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/4.0/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home') Class-based...
41.666667
100
0.728
4a05ac647a686d4078e96c1aec42c19824501721
5,377
py
Python
tests/test_utils.py
LemontechSA/glide
a84ec1b9c8a982430308e8b0a04f84f26200765c
[ "MIT" ]
19
2019-09-09T18:51:26.000Z
2021-11-23T21:15:37.000Z
tests/test_utils.py
LemontechSA/glide
a84ec1b9c8a982430308e8b0a04f84f26200765c
[ "MIT" ]
null
null
null
tests/test_utils.py
LemontechSA/glide
a84ec1b9c8a982430308e8b0a04f84f26200765c
[ "MIT" ]
4
2019-12-01T22:40:04.000Z
2022-03-23T18:06:52.000Z
import configparser import logging import os from shutil import copyfile import sqlite3 try: import pymysql except ImportError: pymysql = None try: from redis import Redis from redis.exceptions import ConnectionError except: Redis = None import sqlalchemy as sa from tlbx import st, rmfile from gli...
26.357843
86
0.675098
4a05ac857f23cb032431dca22e9f9dc234c173f4
370
py
Python
pype9/utils/mpi.py
tclose/Pype9
23f96c0885fd9df12d9d11ff800f816520e4b17a
[ "MIT" ]
null
null
null
pype9/utils/mpi.py
tclose/Pype9
23f96c0885fd9df12d9d11ff800f816520e4b17a
[ "MIT" ]
null
null
null
pype9/utils/mpi.py
tclose/Pype9
23f96c0885fd9df12d9d11ff800f816520e4b17a
[ "MIT" ]
1
2021-04-08T12:46:21.000Z
2021-04-08T12:46:21.000Z
class DummyMPICom(object): rank = 0 size = 1 def barrier(self): pass try: from mpi4py import MPI # @UnusedImport @IgnorePep8 This is imported before NEURON to avoid a bug in NEURON except ImportError: mpi_comm = DummyMPICom() else: mpi_comm = MPI.COMM_WORLD MPI_ROOT = 0 def is_mpi...
17.619048
111
0.678378
4a05acd8f5e80560ae9e9fc73108bca43bc7a6af
3,386
py
Python
webapp/starter/starter/settings.py
djshen-ponddy/docker-django-mysql
53e053ac9252512e3c4a878fd6f06ee316bfa37d
[ "MIT" ]
null
null
null
webapp/starter/starter/settings.py
djshen-ponddy/docker-django-mysql
53e053ac9252512e3c4a878fd6f06ee316bfa37d
[ "MIT" ]
null
null
null
webapp/starter/starter/settings.py
djshen-ponddy/docker-django-mysql
53e053ac9252512e3c4a878fd6f06ee316bfa37d
[ "MIT" ]
null
null
null
""" Django settings for starter project. Generated by 'django-admin startproject' using Django 1.9.1. For more information on this file, see https://docs.djangoproject.com/en/1.9/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/1.9/ref/settings/ """ import os #...
26.661417
91
0.696102
4a05ad5ece5f980999f58dff4d1b584c168f83f2
1,159
py
Python
tests/terraform/graph/checks_infra/attribute_solvers/not_exists_solver/test_solver.py
jamesholland-uk/checkov
d73fd4bd7096d48ab3434a92a177bcc55605460a
[ "Apache-2.0" ]
1
2022-02-20T21:20:39.000Z
2022-02-20T21:20:39.000Z
tests/terraform/graph/checks_infra/attribute_solvers/not_exists_solver/test_solver.py
jamesholland-uk/checkov
d73fd4bd7096d48ab3434a92a177bcc55605460a
[ "Apache-2.0" ]
3
2022-03-07T20:37:31.000Z
2022-03-21T20:20:14.000Z
tests/terraform/graph/checks_infra/attribute_solvers/not_exists_solver/test_solver.py
jamesholland-uk/checkov
d73fd4bd7096d48ab3434a92a177bcc55605460a
[ "Apache-2.0" ]
null
null
null
import os from tests.terraform.graph.checks_infra.test_base import TestBaseSolver TEST_DIRNAME = os.path.dirname(os.path.realpath(__file__)) class TestNotExistsSolver(TestBaseSolver): def setUp(self): self.checks_dir = TEST_DIRNAME super(TestNotExistsSolver, self).setUp() def test_nested_at...
38.633333
100
0.721311
4a05af024e51c7a312a711a2d7ccac42ed4363fd
19,574
py
Python
tensor2tensor/models/research/autoencoders.py
xueeinstein/tensor2tensor
b42e7bae72044916d465b7e298569b2823fe9bc0
[ "Apache-2.0" ]
null
null
null
tensor2tensor/models/research/autoencoders.py
xueeinstein/tensor2tensor
b42e7bae72044916d465b7e298569b2823fe9bc0
[ "Apache-2.0" ]
null
null
null
tensor2tensor/models/research/autoencoders.py
xueeinstein/tensor2tensor
b42e7bae72044916d465b7e298569b2823fe9bc0
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # Copyright 2018 The Tensor2Tensor Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable...
40.358763
80
0.678247
4a05af656d59b46a2b528386759e8b3d5b9cc9d1
834
py
Python
muadib/celery.py
lordoftheflies/muadib-notebook
0bba86d775e25800a92e490e71f4e2aba7a09cd3
[ "Apache-2.0" ]
1
2018-05-16T06:31:13.000Z
2018-05-16T06:31:13.000Z
muadib/celery.py
lordoftheflies/muadib-notebook
0bba86d775e25800a92e490e71f4e2aba7a09cd3
[ "Apache-2.0" ]
4
2018-03-27T00:08:11.000Z
2018-04-21T20:30:53.000Z
muadib/celery.py
lordoftheflies/muadib-notebook
0bba86d775e25800a92e490e71f4e2aba7a09cd3
[ "Apache-2.0" ]
null
null
null
from __future__ import absolute_import, unicode_literals import os from celery import Celery # set the default Django settings module for the 'celery' program. os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'muadib.settings') os.environ.setdefault('DJANGO_CONFIGURATION', 'DevelopmentConfiguration') import configurat...
32.076923
73
0.78777
4a05af711e2883d526b852e812be5565d7a98163
3,114
py
Python
integration_tests/test_suites/celery-k8s-integration-test-suite/test_queued_run_coordinator.py
dbatten5/dagster
d76e50295054ffe5a72f9b292ef57febae499528
[ "Apache-2.0" ]
4,606
2018-06-21T17:45:20.000Z
2022-03-31T23:39:42.000Z
integration_tests/test_suites/celery-k8s-integration-test-suite/test_queued_run_coordinator.py
dbatten5/dagster
d76e50295054ffe5a72f9b292ef57febae499528
[ "Apache-2.0" ]
6,221
2018-06-12T04:36:01.000Z
2022-03-31T21:43:05.000Z
integration_tests/test_suites/celery-k8s-integration-test-suite/test_queued_run_coordinator.py
dbatten5/dagster
d76e50295054ffe5a72f9b292ef57febae499528
[ "Apache-2.0" ]
619
2018-08-22T22:43:09.000Z
2022-03-31T22:48:06.000Z
import os from dagster.core.test_utils import create_run_for_test from dagster.utils import merge_dicts from dagster.utils.yaml_utils import merge_yamls from dagster_k8s.test import wait_for_job_and_get_raw_logs from dagster_k8s_test_infra.helm import TEST_AWS_CONFIGMAP_NAME from dagster_k8s_test_infra.integration_uti...
35.793103
96
0.692678
4a05af7a54cf79742ced720b2ddf8a0277209b66
403
py
Python
searchlist/searchlist/custom_storages.py
kurtrm/homeless_to_health
c60f8f54c1bc4716cd34dbd718b4930c71c781a3
[ "MIT" ]
5
2017-07-27T03:11:30.000Z
2017-08-10T20:02:02.000Z
searchlist/searchlist/custom_storages.py
kurtrm/homeless_to_health
c60f8f54c1bc4716cd34dbd718b4930c71c781a3
[ "MIT" ]
26
2017-07-28T17:44:53.000Z
2017-09-20T22:52:26.000Z
searchlist/searchlist/custom_storages.py
kurtrm/homeless_to_hearth
c60f8f54c1bc4716cd34dbd718b4930c71c781a3
[ "MIT" ]
1
2018-03-23T23:18:25.000Z
2018-03-23T23:18:25.000Z
"""Custom storage classes for static and media files.""" from django.conf import settings from storages.backends.s3boto import S3BotoStorage class StaticStorage(S3BotoStorage): """Custom storage class for static files.""" location = settings.STATICFILES_LOCATION class MediaStorage(S3BotoStorage): """Cu...
26.866667
56
0.769231
4a05b042ad53c5f80517ff22d82ae86a6c3a953d
1,155
py
Python
trinity/_utils/connect.py
dendisuhubdy/trinity
001664781259c7dd0779a0ef6f822451b608ded4
[ "MIT" ]
14
2020-08-24T18:23:31.000Z
2021-11-04T14:11:04.000Z
trinity/_utils/connect.py
dendisuhubdy/trinity
001664781259c7dd0779a0ef6f822451b608ded4
[ "MIT" ]
19
2020-08-25T15:57:05.000Z
2021-07-07T00:49:45.000Z
trinity/_utils/connect.py
dendisuhubdy/trinity
001664781259c7dd0779a0ef6f822451b608ded4
[ "MIT" ]
7
2020-08-24T22:53:02.000Z
2022-03-28T18:51:48.000Z
from typing import Iterator import contextlib from eth.abc import ChainAPI from lahja import EndpointAPI from trinity.boot_info import BootInfo from trinity.db.eth1.header import AsyncHeaderDB from trinity.chains.light_eventbus import ( EventBusLightPeerChain, ) from trinity.config import ( Eth1AppConfig, ) f...
28.875
80
0.714286
4a05b0450ccaab66e53328b3ece0906adf27dabc
2,673
py
Python
terraform_validator/custom_rules/IamManagedPolicyNotActionRule.py
rubelw/terraform-validator
a9d0335a532acdb4070e5537155b03b34915b73e
[ "MIT" ]
7
2018-11-18T00:29:55.000Z
2020-05-18T13:23:37.000Z
terraform_validator/custom_rules/IamManagedPolicyNotActionRule.py
rubelw/terraform-validator
a9d0335a532acdb4070e5537155b03b34915b73e
[ "MIT" ]
1
2021-05-26T06:58:46.000Z
2021-05-26T06:58:46.000Z
terraform_validator/custom_rules/IamManagedPolicyNotActionRule.py
rubelw/terraform-validator
a9d0335a532acdb4070e5537155b03b34915b73e
[ "MIT" ]
2
2019-10-23T15:22:52.000Z
2020-06-22T07:00:45.000Z
from __future__ import absolute_import, division, print_function import sys import inspect from builtins import (str) from terraform_validator.custom_rules.BaseRule import BaseRule def lineno(): """Returns the current line number in our program.""" return str(' - IamManagedPolicyNotActionRule - caller: '+str(i...
29.373626
151
0.541339
4a05b08a3d31ae45be79e15d36ee20f6ba866a2b
3,518
py
Python
critiquebrainz/db/test/spam_report_test.py
akshaaatt/critiquebrainz
39184152af5f23adaa991c4b43ecbbb6f086f809
[ "Apache-2.0" ]
70
2015-03-10T00:08:21.000Z
2022-02-20T05:36:53.000Z
critiquebrainz/db/test/spam_report_test.py
akshaaatt/critiquebrainz
39184152af5f23adaa991c4b43ecbbb6f086f809
[ "Apache-2.0" ]
279
2015-12-08T14:10:45.000Z
2022-03-29T13:54:23.000Z
critiquebrainz/db/test/spam_report_test.py
akshaaatt/critiquebrainz
39184152af5f23adaa991c4b43ecbbb6f086f809
[ "Apache-2.0" ]
95
2015-03-12T21:39:42.000Z
2022-03-10T00:51:04.000Z
import critiquebrainz.db.license as db_license import critiquebrainz.db.review as db_review import critiquebrainz.db.spam_report as db_spam_report import critiquebrainz.db.users as db_users from critiquebrainz.data.testing import DataTestCase from critiquebrainz.db.user import User class SpamReportTestCase(DataTestCa...
42.902439
116
0.639852
4a05b0a051a8034562d125e5a2727fd7fcc407f8
241
py
Python
manager/downloads/downloads/application/use_cases/__init__.py
G4brym/download-manager
8795d09d8f63511c980d3f10e6b2b762d41bff0c
[ "MIT" ]
3
2021-04-28T14:29:06.000Z
2022-03-27T21:02:32.000Z
manager/downloads/downloads/application/use_cases/__init__.py
G4brym/docker-download-manager
8795d09d8f63511c980d3f10e6b2b762d41bff0c
[ "MIT" ]
5
2021-08-04T21:37:00.000Z
2021-08-04T21:37:02.000Z
manager/downloads/downloads/application/use_cases/__init__.py
G4brym/docker-download-manager
8795d09d8f63511c980d3f10e6b2b762d41bff0c
[ "MIT" ]
1
2021-09-06T15:45:37.000Z
2021-09-06T15:45:37.000Z
__all__ = ["FileDownload", "FileRetry", "FileRetryAll", "TaskDownloadFile"] from .file_download import FileDownload from .file_retry import FileRetry from .file_retry_all import FileRetryAll from .task_download_file import TaskDownloadFile
34.428571
75
0.829876
4a05b0d0f62645c83e9016c17e4880add62d7376
5,203
py
Python
Solutions/mailroom/mailroom_fp/mailroom_mfr.py
UWPCE-PythonCert/InstructorResources
13b1cfa4cad6a8c3491f8a602c8afda5400c9ac7
[ "Unlicense" ]
null
null
null
Solutions/mailroom/mailroom_fp/mailroom_mfr.py
UWPCE-PythonCert/InstructorResources
13b1cfa4cad6a8c3491f8a602c8afda5400c9ac7
[ "Unlicense" ]
1
2020-12-20T17:07:17.000Z
2020-12-20T17:07:17.000Z
Solutions/mailroom/mailroom_fp/mailroom_mfr.py
UWPCE-PythonCert/InstructorResources
13b1cfa4cad6a8c3491f8a602c8afda5400c9ac7
[ "Unlicense" ]
null
null
null
#!/usr/bin/env python3 # http://uwpce-pythoncert.github.io/IntroToPython/exercises/mailroom-fp.html import glob import pickle def print_usage(): print( ''' mailroom>> a: Add a donor and donation c: run a Challenge fundraiser h: Help (this message) l: List donors ...
25.380488
128
0.600231
4a05b19a64641a5c115279e7a2ba7f65247f5b39
792
py
Python
var/spack/repos/builtin/packages/py-entrypoints/package.py
dwstreetNNL/spack
8f929707147c49606d00386a10161529dad4ec56
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
null
null
null
var/spack/repos/builtin/packages/py-entrypoints/package.py
dwstreetNNL/spack
8f929707147c49606d00386a10161529dad4ec56
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
null
null
null
var/spack/repos/builtin/packages/py-entrypoints/package.py
dwstreetNNL/spack
8f929707147c49606d00386a10161529dad4ec56
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
null
null
null
# Copyright 2013-2020 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) from spack import * class PyEntrypoints(PythonPackage): """Discover and load entry points from installed packages.""...
39.6
95
0.737374
4a05b32b5716e7e2c5b93746c1394979281e5c7e
36,007
py
Python
invest_natcap/carbon/carbon_biophysical.py
phargogh/invest-natcap.invest-3
ee96055a4fa034d9a95fa8ccc6259ab03264e6c1
[ "BSD-3-Clause" ]
null
null
null
invest_natcap/carbon/carbon_biophysical.py
phargogh/invest-natcap.invest-3
ee96055a4fa034d9a95fa8ccc6259ab03264e6c1
[ "BSD-3-Clause" ]
null
null
null
invest_natcap/carbon/carbon_biophysical.py
phargogh/invest-natcap.invest-3
ee96055a4fa034d9a95fa8ccc6259ab03264e6c1
[ "BSD-3-Clause" ]
null
null
null
"""InVEST Carbon biophysical module at the "uri" level""" import sys import os import math import logging import shutil from osgeo import gdal from osgeo import ogr from scipy.stats import norm import numpy import pygeoprocessing.geoprocessing from invest_natcap.carbon import carbon_utils logging.basicConfig(format...
47.006527
150
0.629211
4a05b363287b5f7f12de460f96701f8638385110
2,638
py
Python
docs_build/tutorials_templates/data_management/upload_and_manage_data_and_metadata/scripts.py
dataloop-ai/sdk_examples
422d5629df5af343d2dc275e9570bb83c4e2f49d
[ "MIT" ]
3
2022-01-07T20:33:49.000Z
2022-03-22T12:41:30.000Z
docs_build/tutorials_templates/data_management/upload_and_manage_data_and_metadata/scripts.py
dataloop-ai/sdk_examples
422d5629df5af343d2dc275e9570bb83c4e2f49d
[ "MIT" ]
null
null
null
docs_build/tutorials_templates/data_management/upload_and_manage_data_and_metadata/scripts.py
dataloop-ai/sdk_examples
422d5629df5af343d2dc275e9570bb83c4e2f49d
[ "MIT" ]
3
2021-12-29T13:11:30.000Z
2022-03-22T12:25:50.000Z
def section1(): import dtlpy as dl if dl.token_expired(): dl.login() project = dl.projects.get(project_name='project_name') dataset = project.datasets.get(dataset_name='dataset_name') dataset.items.upload(local_path=[r'C:/home/project/images/John Morris.jpg', ...
46.280702
128
0.619409
4a05b39641e2409ccbdc0cacceb67062ccd82a77
11,223
py
Python
homeassistant/components/abode/__init__.py
andersop91/core
0e0ef0aa17073609eae7c974cf4c73306b7c414b
[ "Apache-2.0" ]
1
2021-12-07T08:14:59.000Z
2021-12-07T08:14:59.000Z
homeassistant/components/abode/__init__.py
andersop91/core
0e0ef0aa17073609eae7c974cf4c73306b7c414b
[ "Apache-2.0" ]
60
2021-01-25T12:30:32.000Z
2022-03-30T08:52:14.000Z
homeassistant/components/abode/__init__.py
andersop91/core
0e0ef0aa17073609eae7c974cf4c73306b7c414b
[ "Apache-2.0" ]
2
2021-11-19T23:20:40.000Z
2021-11-20T00:18:40.000Z
"""Support for the Abode Security System.""" from functools import partial from abodepy import Abode from abodepy.exceptions import AbodeAuthenticationException, AbodeException import abodepy.helpers.timeline as TIMELINE from requests.exceptions import ConnectTimeout, HTTPError import voluptuous as vol from homeassis...
31.883523
88
0.68324
4a05b5b7aa9b2e916d1da2477a0d98bc5ddc80dd
24,402
py
Python
tests/system_tests_delivery_abort.py
prvn002/qpid-dispatch
f277905077e164aac2d38736441be5c49d2dfaf7
[ "Apache-2.0" ]
null
null
null
tests/system_tests_delivery_abort.py
prvn002/qpid-dispatch
f277905077e164aac2d38736441be5c49d2dfaf7
[ "Apache-2.0" ]
157
2019-06-11T21:22:19.000Z
2022-03-30T21:02:59.000Z
tests/system_tests_delivery_abort.py
prvn002/qpid-dispatch
f277905077e164aac2d38736441be5c49d2dfaf7
[ "Apache-2.0" ]
1
2017-02-06T15:13:27.000Z
2017-02-06T15:13:27.000Z
# # 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"); you may not...
39.937807
132
0.571101
4a05b662f762dd551e4e593ec650d32be1eb2966
226
py
Python
src/examples_in_my_book/general_problems/modules/passing_cmd_line_args.py
lucidrohit/Over-100-Exercises-Python-and-Algorithms
62345c7d7c9cc2269f240d134189645fc96c3e80
[ "MIT" ]
2
2022-01-07T11:46:32.000Z
2022-02-24T08:44:31.000Z
src/examples_in_my_book/general_problems/modules/passing_cmd_line_args.py
lucidrohit/Over-100-Exercises-Python-and-Algorithms
62345c7d7c9cc2269f240d134189645fc96c3e80
[ "MIT" ]
null
null
null
src/examples_in_my_book/general_problems/modules/passing_cmd_line_args.py
lucidrohit/Over-100-Exercises-Python-and-Algorithms
62345c7d7c9cc2269f240d134189645fc96c3e80
[ "MIT" ]
1
2021-10-01T15:35:05.000Z
2021-10-01T15:35:05.000Z
#!/usr/bin/python3 # mari von steinkirch @2013 # steinkirch at gmail import sys def main(): ''' print command line arguments ''' for arg in sys.argv[1:]: print arg if __name__ == "__main__": main()
11.894737
40
0.610619
4a05b795ba81b97cf61d2fc4db0e399695da8ad9
586
py
Python
docs/support/pcontracts_example_2.py
pmacosta/putil
416cea52df8221981727e25d133e9b4e3f464798
[ "MIT" ]
6
2015-12-15T04:09:08.000Z
2020-02-21T01:40:57.000Z
docs/support/pcontracts_example_2.py
pmacosta/putil
416cea52df8221981727e25d133e9b4e3f464798
[ "MIT" ]
null
null
null
docs/support/pcontracts_example_2.py
pmacosta/putil
416cea52df8221981727e25d133e9b4e3f464798
[ "MIT" ]
2
2016-01-21T23:29:17.000Z
2020-02-21T01:41:05.000Z
# pcontracts_example_2.py # Copyright (c) 2013-2016 Pablo Acosta-Serafini # See LICENSE for details # pylint: disable=C0111,W0702 import putil.pcontracts @putil.pcontracts.new_contract('Only one exception') def custom_contract_a(name): msg = putil.pcontracts.get_exdesc() if not name: raise ValueError(...
27.904762
68
0.706485
4a05b9430077b9f6ee381bef5379bce035ef86b8
8,480
py
Python
run_meson_command_tests.py
keith-packard/meson
ee2e06dafae756056f82bf1994c2a52c05d137ee
[ "Apache-2.0" ]
null
null
null
run_meson_command_tests.py
keith-packard/meson
ee2e06dafae756056f82bf1994c2a52c05d137ee
[ "Apache-2.0" ]
null
null
null
run_meson_command_tests.py
keith-packard/meson
ee2e06dafae756056f82bf1994c2a52c05d137ee
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 # Copyright 2018 The Meson development team # # 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 a...
42.4
101
0.635495
4a05ba38bfaac58e68da68906e162115e1fdfeb6
2,120
py
Python
ws/handler/appliance/light/zone/__init__.py
fabaff/automate-ws
a9442f287692787e3f253e1ff23758bec8f3902e
[ "MIT" ]
null
null
null
ws/handler/appliance/light/zone/__init__.py
fabaff/automate-ws
a9442f287692787e3f253e1ff23758bec8f3902e
[ "MIT" ]
1
2021-12-21T11:34:47.000Z
2021-12-21T11:34:47.000Z
ws/handler/appliance/light/zone/__init__.py
fabaff/automate-ws
a9442f287692787e3f253e1ff23758bec8f3902e
[ "MIT" ]
1
2021-12-21T10:10:13.000Z
2021-12-21T10:10:13.000Z
import home from ws.handler.appliance.light import Handler as Parent class Handler(Parent): KLASS = home.appliance.light.zone.Appliance LABEL_ALARMED_ON = "Alarmed On" LABEL_ALARMED_OFF = "Alarmed Off" ICON_ALARMED_ON = "fas fa-bell" ICON_ALARMED_OFF = "fa fa-bell" def get_label(self, applia...
31.641791
83
0.600472
4a05bb7142a7163fd0a9dd5bd4698fd20ce3efef
1,065
py
Python
sdk/test/test_location_other_location_category.py
bs-yapily/yapily-sdk-python
0bba45e351b674eb655425a51190f539c4e9896f
[ "MIT" ]
null
null
null
sdk/test/test_location_other_location_category.py
bs-yapily/yapily-sdk-python
0bba45e351b674eb655425a51190f539c4e9896f
[ "MIT" ]
null
null
null
sdk/test/test_location_other_location_category.py
bs-yapily/yapily-sdk-python
0bba45e351b674eb655425a51190f539c4e9896f
[ "MIT" ]
null
null
null
# coding: utf-8 """ Yapily API To access endpoints that require authentication, use your application key and secret created in the Dashboard (https://dashboard.yapily.com) # noqa: E501 OpenAPI spec version: 0.0.155 Generated by: https://github.com/swagger-api/swagger-codegen.git """ from __fu...
25.97561
158
0.738028
4a05bbcfd6845171141d1925e2a86a96dcd0feb2
3,408
py
Python
python/curagridder/test_wst.py
astronomical-data-processing/curig
4d0e944b8c67e99106e56decda00c9c424002625
[ "MIT" ]
null
null
null
python/curagridder/test_wst.py
astronomical-data-processing/curig
4d0e944b8c67e99106e56decda00c9c424002625
[ "MIT" ]
1
2022-03-14T02:06:55.000Z
2022-03-14T08:50:30.000Z
python/curagridder/test_wst.py
astronomical-data-processing/curig
4d0e944b8c67e99106e56decda00c9c424002625
[ "MIT" ]
1
2022-03-13T10:42:03.000Z
2022-03-13T10:42:03.000Z
from curig import ms2dirty, dirty2ms import numpy as np import time import pytest from numpy.testing import assert_, assert_allclose, assert_array_almost_equal pmp = pytest.mark.parametrize # some functions are refered to NIFTY # test this content by - pytest python/curagridder/test_wst.py (test after curig install...
34.77551
102
0.635563
4a05bc38e0d858c16220b68d3227a322e3bdafe2
1,125
py
Python
mayan/apps/ocr/tests/test_views.py
nadwiabd/insight_edms
90a09d7ca77cb111c791e307b55a603e82042dfe
[ "Apache-2.0" ]
null
null
null
mayan/apps/ocr/tests/test_views.py
nadwiabd/insight_edms
90a09d7ca77cb111c791e307b55a603e82042dfe
[ "Apache-2.0" ]
null
null
null
mayan/apps/ocr/tests/test_views.py
nadwiabd/insight_edms
90a09d7ca77cb111c791e307b55a603e82042dfe
[ "Apache-2.0" ]
null
null
null
from __future__ import unicode_literals from django.test import override_settings from documents.tests.test_views import GenericDocumentViewTestCase from ..permissions import permission_ocr_content_view @override_settings(OCR_AUTO_OCR=True) class OCRViewsTestCase(GenericDocumentViewTestCase): # PyOCR's leak de...
29.605263
76
0.743111
4a05be812218724a0c8721b52008a9c3af374a15
6,839
py
Python
app/main/session_interface.py
tassaron2/flask-template
a4705ee82556dba17afcbebf1dbd3d27e6c6b366
[ "MIT" ]
1
2021-01-11T00:02:53.000Z
2021-01-11T00:02:53.000Z
app/main/session_interface.py
tassaron/flask-template
a4705ee82556dba17afcbebf1dbd3d27e6c6b366
[ "MIT" ]
null
null
null
app/main/session_interface.py
tassaron/flask-template
a4705ee82556dba17afcbebf1dbd3d27e6c6b366
[ "MIT" ]
null
null
null
from datetime import datetime from uuid import uuid4 import pickle from flask import current_app from flask.sessions import SessionInterface from flask.sessions import SessionMixin from itsdangerous import Signer, BadSignature, want_bytes from werkzeug.datastructures import CallbackDict class ServerSideSession(Callb...
36.185185
95
0.605059
4a05bf277c760f6e9d45128503c9b9cc2540680c
451
py
Python
viewlet/api.py
andreif/django-viewlet
7931e899e064869a13fc6cd16ae7bb205b740605
[ "MIT" ]
null
null
null
viewlet/api.py
andreif/django-viewlet
7931e899e064869a13fc6cd16ae7bb205b740605
[ "MIT" ]
null
null
null
viewlet/api.py
andreif/django-viewlet
7931e899e064869a13fc6cd16ae7bb205b740605
[ "MIT" ]
null
null
null
# coding=utf-8 from __future__ import unicode_literals from viewlet.library import library __all__ = ['viewlet', 'get', 'call', 'refresh'] # The decorator viewlet = library._decorator def get(viewlet_name): return library.get(viewlet_name) def call(viewlet_name, context, *args, **kwargs): return get(view...
20.5
65
0.711752
4a05c11e257e8caaf481886d9a62aed8d1c01d1c
1,311
py
Python
deepracer_follow_the_leader_ws/build/async_web_server_cpp/test/tests_.py
amitjain-3/working_add
ddd3b10d854477e86bf7a8558b3d447ec03a8a5f
[ "Apache-2.0" ]
1
2022-03-11T20:15:27.000Z
2022-03-11T20:15:27.000Z
deepracer_follow_the_leader_ws/build/async_web_server_cpp/test/tests_.py
amitjain-3/working_add
ddd3b10d854477e86bf7a8558b3d447ec03a8a5f
[ "Apache-2.0" ]
null
null
null
deepracer_follow_the_leader_ws/build/async_web_server_cpp/test/tests_.py
amitjain-3/working_add
ddd3b10d854477e86bf7a8558b3d447ec03a8a5f
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 import os import sys from launch import LaunchDescription from launch import LaunchService from launch.actions import ExecuteProcess from launch_testing.legacy import LaunchTestService def main(argv=sys.argv[1:]): ld = LaunchDescription() web_server_action = ExecuteProcess( ...
27.893617
161
0.715484
4a05c1f6c2f5b1a7a3adbb89872e6719beebfd5a
5,348
py
Python
training/training/report/new_joinees_details/new_joinees_details.py
vhrspvl/Minda-Training
6d54d44b718506d6fe460abe5796bdee9e74d0ad
[ "MIT" ]
null
null
null
training/training/report/new_joinees_details/new_joinees_details.py
vhrspvl/Minda-Training
6d54d44b718506d6fe460abe5796bdee9e74d0ad
[ "MIT" ]
null
null
null
training/training/report/new_joinees_details/new_joinees_details.py
vhrspvl/Minda-Training
6d54d44b718506d6fe460abe5796bdee9e74d0ad
[ "MIT" ]
1
2020-02-14T12:56:53.000Z
2020-02-14T12:56:53.000Z
# Copyright (c) 2013, Minda Sai Pvt LTd and contributors # For license information, please see license.txt from __future__ import unicode_literals import frappe from frappe import _ import math from calendar import monthrange from datetime import datetime,timedelta,date from frappe.utils import add_days from dateutil....
33.217391
271
0.56077
4a05c217de9e9ff00299566bcc0044dc7da7c0ba
16,348
py
Python
talent/google/cloud/talent_v4beta1/proto/company_pb2.py
TheNeuralBit/google-cloud-python
226cdf12f5dd69afb0ef665bb9e897d32d56f4b6
[ "Apache-2.0" ]
null
null
null
talent/google/cloud/talent_v4beta1/proto/company_pb2.py
TheNeuralBit/google-cloud-python
226cdf12f5dd69afb0ef665bb9e897d32d56f4b6
[ "Apache-2.0" ]
null
null
null
talent/google/cloud/talent_v4beta1/proto/company_pb2.py
TheNeuralBit/google-cloud-python
226cdf12f5dd69afb0ef665bb9e897d32d56f4b6
[ "Apache-2.0" ]
1
2021-07-21T17:59:33.000Z
2021-07-21T17:59:33.000Z
# -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: google/cloud/talent_v4beta1/proto/company.proto import sys _b = sys.version_info[0] < 3 and (lambda x: x) or (lambda x: x.encode("latin1")) from google.protobuf import descriptor as _descriptor from google.protobuf import mes...
36.737079
1,184
0.61769
4a05c2a1723c65317a1dac8d210ce79285780f1e
413
py
Python
old/park_prise.py
archu2020/python-2
19c626ca9fd37168db8a7ac075fd80c8e2971313
[ "Apache-2.0" ]
48
2017-12-24T12:19:55.000Z
2022-02-26T13:14:27.000Z
old/park_prise.py
17610178081/python
3975c678d985c468deecd03560d882e9d316bb63
[ "Apache-2.0" ]
3
2018-12-05T08:48:14.000Z
2020-07-29T01:56:16.000Z
old/park_prise.py
17610178081/python
3975c678d985c468deecd03560d882e9d316bb63
[ "Apache-2.0" ]
113
2017-08-09T03:10:04.000Z
2022-03-26T16:05:01.000Z
class Park: def __init__(self,weekdays,adult,kid): self.weekdays = int(weekdays) self.adult = float(adult) self.kid = float(kid) def weekday(self): self.weekday = (self.adult + self.kid * 0.5) * self.weekdays return self.weekday def weekend(self): sel...
34.416667
74
0.588378
4a05c2adc90d8d28c4aa207d668a4de564199d60
135
py
Python
app.py
mboudet/askosite
69c19bc5d1b494339fb61fc1133b9206ac2a4db5
[ "MIT" ]
null
null
null
app.py
mboudet/askosite
69c19bc5d1b494339fb61fc1133b9206ac2a4db5
[ "MIT" ]
null
null
null
app.py
mboudet/askosite
69c19bc5d1b494339fb61fc1133b9206ac2a4db5
[ "MIT" ]
null
null
null
from askosite.app import create_app application = create_app(config='../local.cfg') if __name__ == '__main__': application.run()
19.285714
47
0.725926
4a05c4305e66f61dd057d2ee15ee3993e5ff4a15
210
py
Python
abuse_whois/schemas/api_model.py
t4d/abuse_whois
32c897da124f6404199484a7395c0f96a7a344f8
[ "MIT" ]
28
2018-11-24T09:00:04.000Z
2022-02-17T01:31:40.000Z
abuse_whois/schemas/api_model.py
t4d/abuse_whois
32c897da124f6404199484a7395c0f96a7a344f8
[ "MIT" ]
5
2018-11-24T04:41:09.000Z
2021-10-31T23:36:35.000Z
abuse_whois/schemas/api_model.py
t4d/abuse_whois
32c897da124f6404199484a7395c0f96a7a344f8
[ "MIT" ]
7
2019-06-07T16:26:29.000Z
2021-11-15T19:38:26.000Z
from humps import camelize from pydantic import BaseModel class APIModel(BaseModel): class Config: orm_mode = True alias_generator = camelize allow_population_by_field_name = True
21
45
0.72381
4a05c6d24e48834b5ef82ccbb5bde0cd8989e08c
2,381
py
Python
text_processing/tf_idf_cosine_similarity.py
pri1311/PodMatcher
a9f614152e57f97885804d1762eac5f65025ed5c
[ "MIT" ]
4
2022-02-05T14:11:57.000Z
2022-02-06T09:54:42.000Z
text_processing/tf_idf_cosine_similarity.py
pri1311/PodMatcher
a9f614152e57f97885804d1762eac5f65025ed5c
[ "MIT" ]
null
null
null
text_processing/tf_idf_cosine_similarity.py
pri1311/PodMatcher
a9f614152e57f97885804d1762eac5f65025ed5c
[ "MIT" ]
2
2022-02-05T15:22:09.000Z
2022-02-06T22:14:08.000Z
from sklearn.feature_extraction.text import TfidfVectorizer from sklearn.metrics.pairwise import cosine_similarity from nltk.stem.wordnet import WordNetLemmatizer from nltk.corpus import stopwords as stp from preprocessing import tf_idf_lemmetizer as tf_idf_lemma def get_tf_idf_cosine_similarity(compare_doc,doc_corpus...
47.62
105
0.767325
4a05c711df01d45cac268700058ac09a160b2aa2
24,258
py
Python
salt/modules/dockercompose.py
tschmittni/salt
ccfcd5ed1272576799797ec7f259b676fd130585
[ "Apache-2.0" ]
2
2018-11-08T02:59:24.000Z
2021-01-04T00:30:50.000Z
salt/modules/dockercompose.py
The-Loeki/salt
8ff8212cc1eacfe409eb9cc017b21250f28dd305
[ "Apache-2.0" ]
4
2020-09-04T10:19:34.000Z
2020-11-09T12:55:59.000Z
salt/modules/dockercompose.py
The-Loeki/salt
8ff8212cc1eacfe409eb9cc017b21250f28dd305
[ "Apache-2.0" ]
5
2017-06-16T23:48:13.000Z
2021-04-08T17:43:48.000Z
# -*- coding: utf-8 -*- ''' Module to import docker-compose via saltstack .. versionadded:: 2016.3.0 :maintainer: Jean Praloran <jeanpralo@gmail.com> :maturity: new :depends: docker-compose>=1.5 :platform: all Introduction ------------ This module allows one to deal with docker-compose file in a directory. This is...
31.42228
122
0.632286
4a05c7f72f2f5e03db78c75818f0e881e812c6b5
9,908
py
Python
sovrin_client/client/wallet/link.py
TechWritingWhiz/sovrin-client
b5633dd7767b4aaf08f622181f3937a104b290fb
[ "Apache-2.0" ]
13
2017-02-16T11:45:50.000Z
2017-06-13T20:07:51.000Z
sovrin_client/client/wallet/link.py
TechWritingWhiz/sovrin-client
b5633dd7767b4aaf08f622181f3937a104b290fb
[ "Apache-2.0" ]
20
2017-06-29T17:59:57.000Z
2017-07-13T23:20:44.000Z
sovrin_client/client/wallet/link.py
TechWritingWhiz/sovrin-client
b5633dd7767b4aaf08f622181f3937a104b290fb
[ "Apache-2.0" ]
57
2017-01-21T22:29:27.000Z
2017-06-29T10:24:19.000Z
from typing import List from plenum.common.constants import NAME, NONCE from plenum.common.signer_did import DidIdentity from plenum.common.types import f from plenum.common.util import prettyDateDifference, friendlyToRaw from plenum.common.verifier import DidVerifier from sovrin_client.client.wallet.types import Avai...
37.388679
96
0.617885
4a05c8e9b615bf612f9fc1e2e6299244a1879ae1
343
py
Python
src/base/network_manger.py
charlestian/NetEaseMusic
5d8fa4747fcecabb5a09174ff6838718d62c2b31
[ "MIT" ]
19
2015-04-18T15:16:58.000Z
2021-04-12T06:19:48.000Z
src/base/network_manger.py
charlestian/NetEaseMusic
5d8fa4747fcecabb5a09174ff6838718d62c2b31
[ "MIT" ]
null
null
null
src/base/network_manger.py
charlestian/NetEaseMusic
5d8fa4747fcecabb5a09174ff6838718d62c2b31
[ "MIT" ]
12
2015-04-18T15:16:59.000Z
2016-04-20T17:22:58.000Z
# -*- coding:utf8 -*- from PyQt5.QtNetwork import QNetworkAccessManager, QNetworkRequest from base.common import singleton @singleton class NetworkManager(QNetworkAccessManager): """ One QNetworkAccessManager should be enough for the whole Qt application """ def __init__(self, parent=None): s...
26.384615
75
0.740525
4a05c939b32756afbfdc9c582b5714ff570621a7
18,767
py
Python
tests/keras_contrib/layers/test_normalization.py
WiproOpenSourcePractice/keras-contrib
3e77ba234f46b82997271996946b731bc774fb9f
[ "MIT" ]
7
2017-07-22T09:05:44.000Z
2019-04-30T02:08:04.000Z
tests/keras_contrib/layers/test_normalization.py
WiproOpenSourcePractice/keras-contrib
3e77ba234f46b82997271996946b731bc774fb9f
[ "MIT" ]
1
2017-12-26T02:59:59.000Z
2017-12-26T02:59:59.000Z
tests/keras_contrib/layers/test_normalization.py
WiproOpenSourcePractice/keras-contrib
3e77ba234f46b82997271996946b731bc774fb9f
[ "MIT" ]
11
2017-07-06T14:11:51.000Z
2021-08-21T23:18:20.000Z
import pytest import numpy as np from numpy.testing import assert_allclose from keras.layers import Dense, Activation, Input from keras import regularizers from keras.utils.test_utils import layer_test, keras_test from keras_contrib.layers import normalization from keras.models import Sequential, Model from keras impo...
32.752182
107
0.629722
4a05c9c431be1226afea5ed0a249451881d71f32
1,784
py
Python
algorithms/q_learning_to_policy.py
punk95/Continual-Learning-With-Curiosity
af0c507040e1352beb8740b6b3a7849417fc879a
[ "MIT" ]
2
2021-07-12T17:11:35.000Z
2021-07-13T05:56:30.000Z
algorithms/q_learning_to_policy.py
punk95/Continual-Learning-With-Curiosity
af0c507040e1352beb8740b6b3a7849417fc879a
[ "MIT" ]
null
null
null
algorithms/q_learning_to_policy.py
punk95/Continual-Learning-With-Curiosity
af0c507040e1352beb8740b6b3a7849417fc879a
[ "MIT" ]
null
null
null
import torch import numpy as np from q_learning import Q_learning class Q_learner_Policy(): def __init__(self, q_function, nn_param): self.nn_params = nn_param self.Q = q_function def sample(self, state, format="torch"): state = torch.Tensor(state).to(self.nn_params.device) ...
32.436364
117
0.609865
4a05ca4c0111bdc5c2ad722cf38f13bc9beb467c
1,685
py
Python
tests/tests_assemble_workflow/test_assemble_args.py
lobdelle/opensearch-build
d2d77fb4282cc3f3c0f938f0bfc83b640621a0f6
[ "Apache-2.0" ]
null
null
null
tests/tests_assemble_workflow/test_assemble_args.py
lobdelle/opensearch-build
d2d77fb4282cc3f3c0f938f0bfc83b640621a0f6
[ "Apache-2.0" ]
null
null
null
tests/tests_assemble_workflow/test_assemble_args.py
lobdelle/opensearch-build
d2d77fb4282cc3f3c0f938f0bfc83b640621a0f6
[ "Apache-2.0" ]
null
null
null
# SPDX-License-Identifier: Apache-2.0 # # The OpenSearch Contributors require contributions made to # this file be licensed under the Apache-2.0 license or a # compatible open source license. import logging import os import unittest from unittest.mock import patch from assemble_workflow.assemble_args import AssembleA...
31.792453
92
0.688427
4a05caebb525446303f174113a466a00f0d5b800
7,279
py
Python
d3rlpy/algos/torch/crr_impl.py
aiueola/d3rlpy
6058d4dab7484d1d38103210081711f6e05b0c1e
[ "MIT" ]
null
null
null
d3rlpy/algos/torch/crr_impl.py
aiueola/d3rlpy
6058d4dab7484d1d38103210081711f6e05b0c1e
[ "MIT" ]
null
null
null
d3rlpy/algos/torch/crr_impl.py
aiueola/d3rlpy
6058d4dab7484d1d38103210081711f6e05b0c1e
[ "MIT" ]
null
null
null
from typing import Optional, Sequence import torch import torch.nn.functional as F from ...gpu import Device from ...models.builders import create_squashed_normal_policy from ...models.encoders import EncoderFactory from ...models.optimizers import OptimizerFactory from ...models.q_functions import QFunctionFactory f...
36.949239
79
0.638137
4a05cb27bf9419408a7b9d26578c37769c83d0df
9,739
py
Python
config/settings/base.py
parkgeonhu/vople-server
55d1dd5f37800266878f47f7d3bc643ef9e99379
[ "MIT" ]
1
2020-06-16T09:09:33.000Z
2020-06-16T09:09:33.000Z
config/settings/base.py
parkgeonhu/vople-server
55d1dd5f37800266878f47f7d3bc643ef9e99379
[ "MIT" ]
null
null
null
config/settings/base.py
parkgeonhu/vople-server
55d1dd5f37800266878f47f7d3bc643ef9e99379
[ "MIT" ]
null
null
null
""" Base settings to build other settings files upon. """ import environ ROOT_DIR = environ.Path(__file__) - 3 # (vople/config/settings/base.py - 3 = vople/) APPS_DIR = ROOT_DIR.path('vople') env = environ.Env() READ_DOT_ENV_FILE = env.bool('DJANGO_READ_DOT_ENV_FILE', default=False) if READ_DOT_ENV_FILE: # OS ...
38.494071
98
0.629428
4a05cb2e7c10b14bad5b4aad177b25f6905c8163
52,276
py
Python
lib/requests/test_requests.py
clayz/crazy-quiz-web
7601809ad521d95ae251a026f171b9ec6939c55f
[ "Apache-2.0" ]
3
2018-03-27T16:20:47.000Z
2019-04-15T12:18:25.000Z
lib/requests/test_requests.py
clayz/crazy-quiz-web
7601809ad521d95ae251a026f171b9ec6939c55f
[ "Apache-2.0" ]
null
null
null
lib/requests/test_requests.py
clayz/crazy-quiz-web
7601809ad521d95ae251a026f171b9ec6939c55f
[ "Apache-2.0" ]
2
2016-03-18T05:30:32.000Z
2021-05-26T20:06:48.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- """Tests for Requests.""" from __future__ import division import json import os import pickle import unittest import collections import io import requests import pytest from requests.adapters import HTTPAdapter from requests.auth import HTTPDigestAuth, _basic_auth_str fr...
34.078227
112
0.591457
4a05cb35e176a19b4d37aecd2a0f922763b1997d
7,017
py
Python
entity/item_entity.py
Danycraft98/pythonProject
1b1be6576e018776be0caf869d427edde2214976
[ "Cube", "Unlicense" ]
null
null
null
entity/item_entity.py
Danycraft98/pythonProject
1b1be6576e018776be0caf869d427edde2214976
[ "Cube", "Unlicense" ]
null
null
null
entity/item_entity.py
Danycraft98/pythonProject
1b1be6576e018776be0caf869d427edde2214976
[ "Cube", "Unlicense" ]
null
null
null
import pygame as pg from entity import equips from settings import tools, prepare ITEM_SHEET = prepare.GFX["objects"]["items"] ITEM_COORDS = {"heart": [(0, 0), (1, 0)], "diamond": [(0, 1), (1, 1)], "potion": [(0, 2), (1, 2)], "key": [(0, 3), (1, 3)]} RISE_SPEED = 1.5 MAX...
36.931579
79
0.608665
4a05cb8502905e5d7ae4c9a4bc32797740b27e17
2,715
py
Python
toughio/_io/_common.py
keurfonluu/ToughMeshio
9f374f5c72df4d76bf63ae4f87f2f2d4e52c81e0
[ "BSD-3-Clause-LBNL" ]
null
null
null
toughio/_io/_common.py
keurfonluu/ToughMeshio
9f374f5c72df4d76bf63ae4f87f2f2d4e52c81e0
[ "BSD-3-Clause-LBNL" ]
null
null
null
toughio/_io/_common.py
keurfonluu/ToughMeshio
9f374f5c72df4d76bf63ae4f87f2f2d4e52c81e0
[ "BSD-3-Clause-LBNL" ]
null
null
null
import numpy as np def read_record(data, fmt): """Parse string to data given format.""" token_to_type = { "s": str, "S": str, "d": int, "f": to_float, "e": to_float, } i = 0 out = [] for token in fmt.split(","): n = int(token[:-1].split(".")[0])...
25.373832
84
0.47477
4a05cc13916a38f996aba10f2098ef887d00c755
8,696
py
Python
heat/tests/openstack/neutron/lbaas/test_pool.py
stackriot/heat
9ed612906e388eda8bf850420cbceef54e05841c
[ "Apache-2.0" ]
265
2015-01-02T09:33:22.000Z
2022-03-26T23:19:54.000Z
heat/tests/openstack/neutron/lbaas/test_pool.py
stackriot/heat
9ed612906e388eda8bf850420cbceef54e05841c
[ "Apache-2.0" ]
8
2015-09-01T15:43:19.000Z
2021-12-14T05:18:23.000Z
heat/tests/openstack/neutron/lbaas/test_pool.py
stackriot/heat
9ed612906e388eda8bf850420cbceef54e05841c
[ "Apache-2.0" ]
295
2015-01-06T07:00:40.000Z
2021-09-06T08:05:06.000Z
# # Copyright 2015 IBM Corp. # # All Rights Reserved. # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless require...
41.409524
78
0.645009
4a05cd915b66ef2be12b655af2302b7e7c8e280b
980
py
Python
pigeon_sort.py
gary-mayfield/AOTW
e320342f8918d2bf0352d8479d866dbc7db58e5e
[ "MIT" ]
null
null
null
pigeon_sort.py
gary-mayfield/AOTW
e320342f8918d2bf0352d8479d866dbc7db58e5e
[ "MIT" ]
null
null
null
pigeon_sort.py
gary-mayfield/AOTW
e320342f8918d2bf0352d8479d866dbc7db58e5e
[ "MIT" ]
null
null
null
from random import randint def pigeon_sort(array): if len(array) == 0: return array min = array[0] max = array[0] for i in range(len(array)): if array[i] < min: min = array[i] elif array[i] > max: max = array[i] holes_range = max - min + 1 hole...
23.902439
54
0.537755
4a05ce0705d273cc1716f0d56fb9622251e2fbef
801
py
Python
test_project/urls.py
trotmarin/test_project_2
a50c588398e86f6427eb18efb3c715ab7151e697
[ "MIT" ]
null
null
null
test_project/urls.py
trotmarin/test_project_2
a50c588398e86f6427eb18efb3c715ab7151e697
[ "MIT" ]
null
null
null
test_project/urls.py
trotmarin/test_project_2
a50c588398e86f6427eb18efb3c715ab7151e697
[ "MIT" ]
null
null
null
"""test_project URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/2.1/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home') Class-...
34.826087
77
0.705368
4a05ce19aafb13843c5f1eaf3b36eabc0646a8ca
6,000
py
Python
src/oidctest/cp/op_handler.py
dannysauer/oidctest
e7593e02af7caa71f92220ad0f5b67bb40e30f97
[ "Apache-2.0" ]
53
2017-05-11T18:21:28.000Z
2021-01-04T02:17:20.000Z
src/oidctest/cp/op_handler.py
dannysauer/oidctest
e7593e02af7caa71f92220ad0f5b67bb40e30f97
[ "Apache-2.0" ]
222
2017-04-14T17:45:18.000Z
2020-06-24T17:32:42.000Z
src/oidctest/cp/op_handler.py
dannysauer/oidctest
e7593e02af7caa71f92220ad0f5b67bb40e30f97
[ "Apache-2.0" ]
19
2017-06-21T11:19:45.000Z
2020-09-30T23:41:47.000Z
import copy import json import os from oic import rndstr from oic.utils.keyio import KeyJar from oic.utils.keyio import key_summary from oic.utils.sdb import create_session_db from otest.conversation import Conversation from oidctest import UnknownTestID def write_jwks_uri(op, op_arg, folder): _name = "jwks_{}....
36.363636
84
0.539333
4a05d091e0eb3798b3d3e986b010f3ca21b32356
2,652
py
Python
tests/unit/utils/test_misc.py
satrialoka/trieste
b58eb924a49ad86e27fa2e082defe2d37afcc14a
[ "Apache-2.0" ]
119
2020-10-06T16:27:05.000Z
2022-03-28T00:27:18.000Z
tests/unit/utils/test_misc.py
satrialoka/trieste
b58eb924a49ad86e27fa2e082defe2d37afcc14a
[ "Apache-2.0" ]
275
2020-10-07T22:32:53.000Z
2022-03-31T15:57:44.000Z
tests/unit/utils/test_misc.py
satrialoka/trieste
b58eb924a49ad86e27fa2e082defe2d37afcc14a
[ "Apache-2.0" ]
30
2020-10-08T23:00:01.000Z
2022-02-25T17:04:22.000Z
# Copyright 2020 The Trieste Contributors # # 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...
31.571429
95
0.688537
4a05d212fb6ebb36722dea75c5b3348cc5f4fd11
1,512
py
Python
disciplinesite/demo/models.py
pombredanne/discipline
f9d2041c9f1fbb5577a1682d858d487c1f4fce1b
[ "MIT" ]
null
null
null
disciplinesite/demo/models.py
pombredanne/discipline
f9d2041c9f1fbb5577a1682d858d487c1f4fce1b
[ "MIT" ]
null
null
null
disciplinesite/demo/models.py
pombredanne/discipline
f9d2041c9f1fbb5577a1682d858d487c1f4fce1b
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from django.db.models import * from discipline.models import DisciplinedModel class LanguageKey(DisciplinedModel): code = CharField(max_length=6,unique=True) def __unicode__(self): return self.code class Word(DisciplinedModel): def __unicode__(self): return "%s (...
27
66
0.635582
4a05d48f07f00d7e9a55df39c41db0a2d2ea31cb
12,752
py
Python
bearfield/document.py
lunixbochs/bearfield
1dd2f6932af900393ca764d8aa1ec6c043dd24ed
[ "BSD-3-Clause" ]
1
2020-02-10T04:10:47.000Z
2020-02-10T04:10:47.000Z
bearfield/document.py
lunixbochs/bearfield
1dd2f6932af900393ca764d8aa1ec6c043dd24ed
[ "BSD-3-Clause" ]
null
null
null
bearfield/document.py
lunixbochs/bearfield
1dd2f6932af900393ca764d8aa1ec6c043dd24ed
[ "BSD-3-Clause" ]
null
null
null
"""Document and subdocument classes.""" from __future__ import absolute_import from .cursor import Cursor from .encoders import SortEncoder, UpdateEncoder from .errors import OperationError, ValidationError from .meta import DocumentBuilder from .query import Query from .utils import get_projection import six class D...
41.268608
99
0.602651
4a05d5ed13016a7d19743655b5b2184982e8b05e
2,224
py
Python
util/image_pool.py
Huage001/Artistic-Video-Partial-Conv-Depth-Loss
c990b8bcc88ce0655f3ac78b526324b1ff5deb41
[ "BSD-3-Clause" ]
9
2020-10-14T03:32:51.000Z
2022-01-14T20:38:05.000Z
util/image_pool.py
Huage001/Artistic-Video-Partial-Conv-Depth-Loss
c990b8bcc88ce0655f3ac78b526324b1ff5deb41
[ "BSD-3-Clause" ]
1
2021-03-03T20:15:42.000Z
2021-08-07T12:29:22.000Z
util/image_pool.py
Huage001/Artistic-Video-Partial-Conv-Depth-Loss
c990b8bcc88ce0655f3ac78b526324b1ff5deb41
[ "BSD-3-Clause" ]
2
2020-09-02T00:58:29.000Z
2020-11-25T16:41:51.000Z
import random import torch class ImagePool: """This class implements an image buffer that stores previously generated images. This buffer enables us to update discriminators using a history of generated images rather than the ones produced by the latest generators. """ def __init__(self, pool_si...
40.436364
140
0.607014
4a05d6cec22b74e37ab76aefd3932969bfd3c0bd
8,892
py
Python
fixture/contact.py
MakatevaElvira/python_training
323c7dd0b4f6316348d7a4c66085cae445b7edbe
[ "Apache-2.0" ]
null
null
null
fixture/contact.py
MakatevaElvira/python_training
323c7dd0b4f6316348d7a4c66085cae445b7edbe
[ "Apache-2.0" ]
null
null
null
fixture/contact.py
MakatevaElvira/python_training
323c7dd0b4f6316348d7a4c66085cae445b7edbe
[ "Apache-2.0" ]
null
null
null
import re from model.contact import Contact class ContactHelper: def __init__(self, app): self.app = app def init_contact_creation(self): wd = self.app.wd wd.find_element_by_link_text("add new").click() def open_contact_page(self): wd = self.app.wd self.app.navi...
42.14218
109
0.600652
4a05d77ea72c1b02954db7777409a5ddf4d360d4
5,246
py
Python
tests/ti_deps/deps/test_prev_dagrun_dep.py
emilioego/airflow
3457c7847cd24413ff5b622e65c27d8370f94502
[ "Apache-2.0", "BSD-2-Clause", "MIT", "ECL-2.0", "BSD-3-Clause" ]
79
2021-10-15T07:32:27.000Z
2022-03-28T04:10:19.000Z
tests/ti_deps/deps/test_prev_dagrun_dep.py
emilioego/airflow
3457c7847cd24413ff5b622e65c27d8370f94502
[ "Apache-2.0", "BSD-2-Clause", "MIT", "ECL-2.0", "BSD-3-Clause" ]
153
2021-10-15T05:23:46.000Z
2022-02-23T06:07:10.000Z
tests/ti_deps/deps/test_prev_dagrun_dep.py
emilioego/airflow
3457c7847cd24413ff5b622e65c27d8370f94502
[ "Apache-2.0", "BSD-2-Clause", "MIT", "ECL-2.0", "BSD-3-Clause" ]
23
2021-10-15T02:36:37.000Z
2022-03-17T02:59:27.000Z
# # 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"); you may not...
43.355372
110
0.695959
4a05d7cf7c2c31ba13402ce16e6ae6416b88cbfb
78
py
Python
kwat/density/__init__.py
KwatME/ccal
d96dfa811482eee067f346386a2181ec514625f4
[ "MIT" ]
5
2017-05-05T17:50:28.000Z
2019-01-30T19:23:02.000Z
kwat/density/__init__.py
KwatME/ccal
d96dfa811482eee067f346386a2181ec514625f4
[ "MIT" ]
5
2017-05-05T01:52:31.000Z
2019-04-20T21:06:05.000Z
kwat/density/__init__.py
KwatME/ccal
d96dfa811482eee067f346386a2181ec514625f4
[ "MIT" ]
5
2017-07-17T18:55:54.000Z
2019-02-02T04:46:19.000Z
from .get_bandwidth import get_bandwidth from .get_density import get_density
26
40
0.871795
4a05d7f5f7d8f05e899cd5385943a59a16c0e934
162
py
Python
version.py
fake-name/AutoOrg
db17a3db7a89c7bc1e9d4bd333e82f11402c69a5
[ "BSD-3-Clause" ]
5
2021-11-07T01:20:12.000Z
2022-02-02T22:13:31.000Z
version.py
fake-name/AutoOrg
db17a3db7a89c7bc1e9d4bd333e82f11402c69a5
[ "BSD-3-Clause" ]
null
null
null
version.py
fake-name/AutoOrg
db17a3db7a89c7bc1e9d4bd333e82f11402c69a5
[ "BSD-3-Clause" ]
null
null
null
# Do not touch the next line's formatting, it's (manually) extracted in the EXE assembly process. # You can increment the number, if you want. VERSION = "0.0.1"
32.4
97
0.728395
4a05d815306de3445d951ea30dce027e46841473
4,949
py
Python
models/imagenet/mobilenetv2.py
RuiLin0212/EZCrop
5cfdc4f2413e37c1338a5f85e5562a70eabf1099
[ "MIT" ]
1
2021-11-05T09:21:34.000Z
2021-11-05T09:21:34.000Z
models/imagenet/mobilenetv2.py
scott-mao/CPD
953a6d1dfcafca44b9960aec17b65ac9d1ad576b
[ "MIT" ]
null
null
null
models/imagenet/mobilenetv2.py
scott-mao/CPD
953a6d1dfcafca44b9960aec17b65ac9d1ad576b
[ "MIT" ]
1
2021-11-05T09:21:35.000Z
2021-11-05T09:21:35.000Z
import torch.nn as nn import math import pdb def conv_bn(inp, oup, stride): return nn.Sequential( nn.Conv2d(inp, oup, 3, stride, 1, bias=False), nn.BatchNorm2d(oup), nn.ReLU6(inplace=True) ) def conv_1x1_bn(inp, oup): return nn.Sequential( nn.Conv2d(inp, oup,...
35.099291
108
0.53728
4a05db535329e1a08150be11eca216738e02794a
932
py
Python
dashboard/urls.py
fiterace/slamapp
a921b07f02fba6efbdf391afbca3fb4ecfe62a56
[ "MIT" ]
2
2020-09-10T16:52:33.000Z
2021-06-27T07:15:58.000Z
dashboard/urls.py
bhu800/slamapp
aaeb6af2e4799b1089f74e69dea56caa92f518fb
[ "MIT" ]
19
2020-07-03T22:29:58.000Z
2022-03-12T00:39:12.000Z
dashboard/urls.py
bhu800/slamapp
aaeb6af2e4799b1089f74e69dea56caa92f518fb
[ "MIT" ]
2
2020-06-30T12:04:58.000Z
2020-06-30T12:39:42.000Z
from django.urls import path from dashboard import views from .views import * #template tagging app_name = 'myapp' urlpatterns = [ path('', HomePageView, name='home'), path('dashboard', dashboardPageView, name="dashboard"), path('base', basePageView, name="base"), path('user', userPageView, name="us...
42.363636
147
0.683476