hexsha
stringlengths
40
40
size
int64
3
1.03M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
972
max_stars_repo_name
stringlengths
6
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
972
max_issues_repo_name
stringlengths
6
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
116k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
3
972
max_forks_repo_name
stringlengths
6
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
3
1.03M
avg_line_length
float64
1.13
941k
max_line_length
int64
2
941k
alphanum_fraction
float64
0
1
6da85dd49ae88f6a362e97825e7b4bc1a7bdda28
19,597
py
Python
main/models/diffusion/unet_openai.py
kpandey008/DiffuseVAE
b505894668ac1e4ef9a66ec220f5b40f5c83629e
[ "MIT" ]
90
2022-01-04T05:53:13.000Z
2022-03-31T02:04:46.000Z
main/models/diffusion/unet_openai.py
kpandey008/DiffuseVAE
b505894668ac1e4ef9a66ec220f5b40f5c83629e
[ "MIT" ]
2
2022-01-28T04:15:40.000Z
2022-02-17T13:47:54.000Z
main/models/diffusion/unet_openai.py
kpandey008/DiffuseVAE
b505894668ac1e4ef9a66ec220f5b40f5c83629e
[ "MIT" ]
5
2022-01-13T08:25:11.000Z
2022-02-09T18:40:37.000Z
import math from abc import abstractmethod import torch as th import torch.nn as nn import torch.nn.functional as F class GroupNorm32(nn.GroupNorm): def forward(self, x): return super().forward(x.float()).type(x.dtype) def conv_nd(dims, *args, **kwargs): """ Create a 1D, 2D, or 3D convolution m...
34.200698
124
0.58412
b2eeb9fed58e19935ad863c0174952b0a57e03b7
566
py
Python
pdffitx/tests/test_peakmatcher.py
xpdAcq/pdffitx
56d8415bba2bd6ff4d59cae7e1c5308f6e356997
[ "BSD-3-Clause" ]
1
2022-03-10T11:59:34.000Z
2022-03-10T11:59:34.000Z
pdffitx/tests/test_peakmatcher.py
xpdAcq/pdffitx
56d8415bba2bd6ff4d59cae7e1c5308f6e356997
[ "BSD-3-Clause" ]
null
null
null
pdffitx/tests/test_peakmatcher.py
xpdAcq/pdffitx
56d8415bba2bd6ff4d59cae7e1c5308f6e356997
[ "BSD-3-Clause" ]
2
2020-12-14T18:38:43.000Z
2022-03-30T00:25:35.000Z
import xarray as xr from pdffitx.peakmatcher import PeakMactherConfig, PeakMatcher, get_distances, get_atomic_pairs def test_PeakMatcher(db): r, g = db["Ni_gr"] r, g = r[100:500], g[100:500] crystal = db["Ni_stru"] data = xr.Dataset({"G": (["r"], g)}, coords={"r": r}) config = PeakMactherConfig(rw...
33.294118
95
0.657244
c9df629a18bf01226b65bd107e78c874ce34a134
154
py
Python
Algorithms/Implementation/Find_Digits.py
gauthamkrishna-g/HackerRank
472d7a56fc1c1c4f8f03fcabc09d08da4000efde
[ "MIT" ]
1
2017-12-02T14:23:44.000Z
2017-12-02T14:23:44.000Z
Algorithms/Implementation/Find_Digits.py
gauthamkrishna-g/HackerRank
472d7a56fc1c1c4f8f03fcabc09d08da4000efde
[ "MIT" ]
null
null
null
Algorithms/Implementation/Find_Digits.py
gauthamkrishna-g/HackerRank
472d7a56fc1c1c4f8f03fcabc09d08da4000efde
[ "MIT" ]
null
null
null
t = int(input()) for _ in range(t): n = input() a = [int(i) for i in n] a = [int(n) % int(i) for i in a if i > 0] print(a.count(0))
22
46
0.461039
2afdd00bbcf6030f3aa74767a13fd2421852bf44
4,593
py
Python
webhdfs.py
angushe/fuse-webhdfs
0592a4ad87d1ff660214b85b65d07cee53375dfc
[ "Apache-2.0" ]
null
null
null
webhdfs.py
angushe/fuse-webhdfs
0592a4ad87d1ff660214b85b65d07cee53375dfc
[ "Apache-2.0" ]
null
null
null
webhdfs.py
angushe/fuse-webhdfs
0592a4ad87d1ff660214b85b65d07cee53375dfc
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 import os import getpass import pwd import grp from netrc import netrc, NetrcParseError from pywebhdfs.webhdfs import PyWebHdfsClient from stat import S_IFDIR, S_IFLNK, S_IFREG from time import time import datetime import configparser cfg = configparser.ConfigParser() def write_default_config()...
36.165354
143
0.605704
21b7b4c8300dfd2b403059f46c9c59f9659a7ccd
7,240
py
Python
trie.py
iambabao/chinese_fuzzy_matching
1d1257531c320e2445fd1fdd8c25ce2b706ad9dc
[ "MIT" ]
null
null
null
trie.py
iambabao/chinese_fuzzy_matching
1d1257531c320e2445fd1fdd8c25ce2b706ad9dc
[ "MIT" ]
null
null
null
trie.py
iambabao/chinese_fuzzy_matching
1d1257531c320e2445fd1fdd8c25ce2b706ad9dc
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ @Author : sorahjy @Date : 2020/6/18 13:57 @Desc : @Last modified by : Bao @Last modified date : 2020/6/18 13:57 """ def tokenize(seq): """ change the tokenizer according to your language and application :param seq: :return: ""...
33.518519
117
0.545028
94e47a918f94bc740a75a2b1329cbd74989b3c2d
1,145
py
Python
mk/doc-gen.py
billygout/confluent-kafka-go
3819f9a0e47107712ae9a6aebe31037c9536a2c6
[ "Apache-2.0" ]
55
2015-09-18T05:38:32.000Z
2021-03-11T04:55:12.000Z
mk/doc-gen.py
billygout/confluent-kafka-go
3819f9a0e47107712ae9a6aebe31037c9536a2c6
[ "Apache-2.0" ]
2
2017-12-02T21:31:43.000Z
2018-04-15T21:33:18.000Z
mk/doc-gen.py
billygout/confluent-kafka-go
3819f9a0e47107712ae9a6aebe31037c9536a2c6
[ "Apache-2.0" ]
3
2018-04-15T16:17:45.000Z
2021-01-21T22:33:35.000Z
#!/usr/bin/env python # Extract godoc HTML documentation for our packages, # remove some nonsense, update some links and make it ready # for inclusion in Confluent doc tree. import subprocess, re from bs4 import BeautifulSoup if __name__ == '__main__': # Use godoc client to extract our package docs ht...
30.131579
110
0.661135
96d3e601faac7beeff041470daf2d01b010b95b6
422
py
Python
tests/test_project_fixtures/test_project_rename_table/test_project_rename_table/wsgi.py
fevral13/django-migration-linter
6fcc7b4719ab93acf3036cb27fc185de30be0bde
[ "Apache-2.0" ]
null
null
null
tests/test_project_fixtures/test_project_rename_table/test_project_rename_table/wsgi.py
fevral13/django-migration-linter
6fcc7b4719ab93acf3036cb27fc185de30be0bde
[ "Apache-2.0" ]
1
2019-04-10T10:56:13.000Z
2019-04-10T12:15:51.000Z
tests/test_project_fixtures/test_project_rename_table/test_project_rename_table/wsgi.py
fevral13/django-migration-linter
6fcc7b4719ab93acf3036cb27fc185de30be0bde
[ "Apache-2.0" ]
null
null
null
""" WSGI config for linter_test_project project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/1.11/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault(...
24.823529
85
0.800948
55b150eba49b1af16e98223bbaa3666b3c88e4ca
9,338
py
Python
SRNET48.py
GuptaVishu2002/IRNET
a430d17df3ececfe6cfd8ab469fff070e1c262e7
[ "MIT" ]
null
null
null
SRNET48.py
GuptaVishu2002/IRNET
a430d17df3ececfe6cfd8ab469fff070e1c262e7
[ "MIT" ]
null
null
null
SRNET48.py
GuptaVishu2002/IRNET
a430d17df3ececfe6cfd8ab469fff070e1c262e7
[ "MIT" ]
null
null
null
# Larger CNN for the MNIST Dataset import tensorflow as tf from tensorflow.keras.models import Sequential from tensorflow.keras.layers import Dense from tensorflow.keras.layers import Dropout from tensorflow.keras.layers import Flatten from tensorflow.keras.models import Model from tensorflow.keras.layers import Input ...
29.18125
131
0.71782
260046a6d7b75343b160badb990941bb88c41eb2
586
py
Python
utils.py
LeeDoYup/posco_gradcam
5e2cf4e8d83ba576951472b8615b26d6a8ca9b1b
[ "MIT" ]
1
2020-08-18T01:17:28.000Z
2020-08-18T01:17:28.000Z
utils.py
LeeDoYup/posco_gradcam
5e2cf4e8d83ba576951472b8615b26d6a8ca9b1b
[ "MIT" ]
null
null
null
utils.py
LeeDoYup/posco_gradcam
5e2cf4e8d83ba576951472b8615b26d6a8ca9b1b
[ "MIT" ]
1
2019-01-08T21:08:52.000Z
2019-01-08T21:08:52.000Z
import numpy as np import pickle def load_result(filename): return pickle.load(open(filename, 'rb')) def confusion_matrix(pred, gt): num_data, num_class = np.shape(pred) result = np.zeros([num_class, num_class]) pred_class = np.argmax(pred, axis=1) for idx, p in enumerate(pred_class): res...
24.416667
45
0.662116
dd10783fa03ecfaa908e164450dd17c52c56be10
17,633
py
Python
python/q1tsim.py
frogtd/q1tsim
ec6f923da2c78ef9a9dcda9d74ca1e726b026eb4
[ "Apache-2.0" ]
14
2019-05-30T18:25:37.000Z
2022-03-05T03:06:49.000Z
python/q1tsim.py
frogtd/q1tsim
ec6f923da2c78ef9a9dcda9d74ca1e726b026eb4
[ "Apache-2.0" ]
2
2019-05-29T11:55:36.000Z
2021-11-22T08:25:41.000Z
python/q1tsim.py
frogtd/q1tsim
ec6f923da2c78ef9a9dcda9d74ca1e726b026eb4
[ "Apache-2.0" ]
8
2019-04-25T07:26:58.000Z
2021-12-27T13:20:19.000Z
import cffi import json import q1tsimffi class RefParam(object): """Structure for reference parameters A RefPrama struct is used for passing parameters to a gate by reference, i.e. one can change these parameters between executions of the same circuit. To use them, simply construct a RefParam with an ...
33.269811
103
0.612998
008f17be81dcfd31b81811ef667fe63eb4bd59b6
213,987
py
Python
mypy/checkexpr.py
oda/mypy
f04fc89d4f1c120386b3c3ce167d3f0185289fd7
[ "PSF-2.0" ]
1
2020-03-18T16:04:29.000Z
2020-03-18T16:04:29.000Z
mypy/checkexpr.py
oda/mypy
f04fc89d4f1c120386b3c3ce167d3f0185289fd7
[ "PSF-2.0" ]
null
null
null
mypy/checkexpr.py
oda/mypy
f04fc89d4f1c120386b3c3ce167d3f0185289fd7
[ "PSF-2.0" ]
null
null
null
"""Expression type checker. This file is conceptually part of TypeChecker.""" from collections import OrderedDict from contextlib import contextmanager import itertools from typing import ( cast, Dict, Set, List, Tuple, Callable, Union, Optional, Sequence, Iterator ) from typing_extensions import ClassVar, Final, ...
48.956074
99
0.591779
67b56cc1964e73d80399594e7dbfc7d97700d9cd
8,219
py
Python
sql_queries.py
danjaq/sparkify-etl-redshift
1485b7820f8901b8a6d890a4d72ba10fe1de3140
[ "MIT" ]
null
null
null
sql_queries.py
danjaq/sparkify-etl-redshift
1485b7820f8901b8a6d890a4d72ba10fe1de3140
[ "MIT" ]
null
null
null
sql_queries.py
danjaq/sparkify-etl-redshift
1485b7820f8901b8a6d890a4d72ba10fe1de3140
[ "MIT" ]
null
null
null
import configparser # CONFIG config = configparser.ConfigParser() config.read('dwh.cfg') # DROP TABLES staging_events_table_drop = "DROP TABLE IF EXISTS staging_events" staging_songs_table_drop = "DROP TABLE IF EXISTS staging_songs" songplay_table_drop = "DROP TABLE IF EXISTS songplays" user_table_drop = "DROP TABL...
41.095
181
0.410756
655351223940c27853d9835c19908230a387bdf2
13,022
py
Python
solentware_grid/gui/tests/test_datadelete.py
RogerMarsh/solentware-grid
b977638c11f641ff0aaf1bacf47677d5e83be99d
[ "BSD-3-Clause" ]
null
null
null
solentware_grid/gui/tests/test_datadelete.py
RogerMarsh/solentware-grid
b977638c11f641ff0aaf1bacf47677d5e83be99d
[ "BSD-3-Clause" ]
null
null
null
solentware_grid/gui/tests/test_datadelete.py
RogerMarsh/solentware-grid
b977638c11f641ff0aaf1bacf47677d5e83be99d
[ "BSD-3-Clause" ]
null
null
null
# test_datadelete.py # Copyright 2012 Roger Marsh # Licence: See LICENCE (BSD licence) """datadelete tests""" import unittest import tkinter from .. import datadelete class ModuleConstants(unittest.TestCase): def test_001_constants_001(self): self.assertEqual( sorted(k for k in dir(datadele...
30.712264
82
0.570112
998264b11d24d793ca322e8e235683cd7f90226e
163,217
py
Python
ekmmeters.py
vintozver/ekmmeters
e0ce8dddb9c931485a6ac87d7423fa6ccc8b9d15
[ "MIT" ]
null
null
null
ekmmeters.py
vintozver/ekmmeters
e0ce8dddb9c931485a6ac87d7423fa6ccc8b9d15
[ "MIT" ]
null
null
null
ekmmeters.py
vintozver/ekmmeters
e0ce8dddb9c931485a6ac87d7423fa6ccc8b9d15
[ "MIT" ]
null
null
null
""" ekmmeters.py (c) 2015, 2016 EKM Metering. The ekmmeters library API for v3 and v4 EKM Omnimeters. Tested and released under Python 2.6 (tested Centos 6.x only) and Python 2.7x (Python and Iron Python). This software is provided under an MIT license: https://opensource.org/licenses/MIT """ import struct impor...
42.738151
130
0.590331
acbd6505d259efdd0f51be887ea72c3b84e2b288
32,314
py
Python
tests/test_name.py
cameron/datahog
815178ae576bc4b4e1994ca9fcdc0c1f854bfccf
[ "BSD-3-Clause" ]
4
2015-09-09T23:05:39.000Z
2016-10-20T15:24:58.000Z
tests/test_name.py
cameron/datahog
815178ae576bc4b4e1994ca9fcdc0c1f854bfccf
[ "BSD-3-Clause" ]
null
null
null
tests/test_name.py
cameron/datahog
815178ae576bc4b4e1994ca9fcdc0c1f854bfccf
[ "BSD-3-Clause" ]
null
null
null
# vim: fileencoding=utf8:et:sw=4:ts=8:sts=4 import os import sys import unittest import datahog from datahog import error import fuzzy import psycopg2 sys.path.append(os.path.dirname(os.path.abspath(__file__))) import base from pgmock import * def _dm(full): dm, dmalt = fuzzy.DMetaphone()(full) dm = dm.lj...
23.795287
78
0.511791
c52208a4a3849cf17e267b61c14590ce418b8ada
9,228
py
Python
ml/kubeflow-pipelines/samples/kubeflow-tf/workflow2.py
bhjeong-goldenplanet/automl
0e24ef5d57b005a1185d1a583eff88ee9e45f748
[ "Apache-2.0" ]
146
2018-02-18T22:57:51.000Z
2022-02-03T10:27:40.000Z
ml/kubeflow-pipelines/samples/kubeflow-tf/workflow2.py
bhjeong-goldenplanet/automl
0e24ef5d57b005a1185d1a583eff88ee9e45f748
[ "Apache-2.0" ]
15
2019-02-15T10:05:30.000Z
2022-02-10T02:37:12.000Z
ml/kubeflow-pipelines/samples/kubeflow-tf/workflow2.py
bhjeong-goldenplanet/automl
0e24ef5d57b005a1185d1a583eff88ee9e45f748
[ "Apache-2.0" ]
88
2017-08-31T22:58:24.000Z
2022-02-18T05:30:47.000Z
# Copyright 2018 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
49.347594
160
0.6373
a7e5026fb9dc89c1b155ad1f982882f7fc36dfff
704
py
Python
thefuck/rules/ifconfig_device_not_found.py
MJGrey/thefuck
c88b0792b8a2db3c181938af6c357662993a30c3
[ "MIT" ]
1
2018-07-06T04:10:56.000Z
2018-07-06T04:10:56.000Z
thefuck/rules/ifconfig_device_not_found.py
MJGrey/thefuck
c88b0792b8a2db3c181938af6c357662993a30c3
[ "MIT" ]
null
null
null
thefuck/rules/ifconfig_device_not_found.py
MJGrey/thefuck
c88b0792b8a2db3c181938af6c357662993a30c3
[ "MIT" ]
1
2018-07-06T04:11:05.000Z
2018-07-06T04:11:05.000Z
import subprocess from thefuck.utils import for_app, replace_command, eager @for_app('ifconfig') def match(command): return 'error fetching interface information: Device not found' \ in command.stderr @eager def _get_possible_interfaces(): proc = subprocess.Popen(['ifconfig', '-a'], stdout=subpro...
29.333333
71
0.691761
6b42c783c4ce90a1cad2d55baa7cf3c2db3a7258
13,104
py
Python
tests/test_runner/test_eval_hook.py
tycoer/rflib-1
5746c668f990841bd8b8385408e8ddb268d22dd4
[ "Apache-2.0" ]
null
null
null
tests/test_runner/test_eval_hook.py
tycoer/rflib-1
5746c668f990841bd8b8385408e8ddb268d22dd4
[ "Apache-2.0" ]
null
null
null
tests/test_runner/test_eval_hook.py
tycoer/rflib-1
5746c668f990841bd8b8385408e8ddb268d22dd4
[ "Apache-2.0" ]
2
2021-07-30T04:22:46.000Z
2021-07-30T05:08:43.000Z
import os.path as osp import tempfile import unittest.mock as mock from collections import OrderedDict from unittest.mock import MagicMock, patch import pytest import torch import torch.nn as nn from torch.utils.data import DataLoader, Dataset from rflib.runner import DistEvalHook as BaseDistEvalHook from rflib.runne...
35.705722
79
0.670482
55efa17e33e9aa354a8957472bcdb8eae854c2cf
1,869
py
Python
fup/core/manager.py
tnikodem/futureplaner
4db9a5685b2c0065c1142c561a60dfba0159652f
[ "MIT" ]
null
null
null
fup/core/manager.py
tnikodem/futureplaner
4db9a5685b2c0065c1142c561a60dfba0159652f
[ "MIT" ]
21
2021-04-28T20:02:19.000Z
2022-03-21T22:09:54.000Z
fup/core/manager.py
tnikodem/futureplanner
4db9a5685b2c0065c1142c561a60dfba0159652f
[ "MIT" ]
null
null
null
import collections import copy class Manager: def __init__(self, config, profile_blueprint, current_account_name, module_blueprints=None): self.config = copy.deepcopy(config) self.year = config["simulation"]["start_year"] self.modules = collections.OrderedDict() self.profile = prof...
36.647059
104
0.664526
c213135ed81f61a31d96ce7478113263be29cb8d
3,191
py
Python
tests/IntegrationTests.py
renovate-tests/dash
1de85b387ae56f19d70b1c148953dce6ddb0ecfc
[ "MIT" ]
1
2019-04-02T13:27:19.000Z
2019-04-02T13:27:19.000Z
tests/IntegrationTests.py
renovate-tests/dash
1de85b387ae56f19d70b1c148953dce6ddb0ecfc
[ "MIT" ]
null
null
null
tests/IntegrationTests.py
renovate-tests/dash
1de85b387ae56f19d70b1c148953dce6ddb0ecfc
[ "MIT" ]
null
null
null
import multiprocessing import sys import time import unittest import percy from selenium import webdriver from selenium.webdriver.common.by import By from selenium.webdriver.support.ui import WebDriverWait from selenium.webdriver.support import expected_conditions as EC TIMEOUT = 20 class IntegrationTests(unittest....
29.546296
99
0.601065
d60e80599bc038a1db949a152e818ddcf8509c88
8,560
py
Python
remote_robot.py
RobertLucian/RemoteControlPi
e9295dcb11d59065b661ee4af7d44e3bb31616f5
[ "MIT" ]
3
2019-08-23T20:06:50.000Z
2021-08-29T19:42:03.000Z
remote_robot.py
RobertLucian/RemoteControlPi
e9295dcb11d59065b661ee4af7d44e3bb31616f5
[ "MIT" ]
6
2017-08-28T14:49:15.000Z
2018-05-30T21:00:27.000Z
remote_robot.py
RobertLucian/RemoteControlPi
e9295dcb11d59065b661ee4af7d44e3bb31616f5
[ "MIT" ]
5
2018-09-26T05:37:29.000Z
2021-11-26T12:54:52.000Z
# Dexter Industries GoPiGo3 Remote Camera robot # With this project you can control your Raspberry Pi Robot, the GoPiGo3, with a phone, tablet, or browser. # Remotely view your robot as first person in your browser. # # You MUST run this with python3 # To Run: python3 flask_server.py import signal import sys import l...
32.671756
114
0.640421
f94888f9f579298fdebdf2dea2a1518759cee6a4
151
py
Python
py-helloworld/flaskHello.py
Nuuttu/Koulu_PythonWeppiAppi
0b364dc5e485524058c340987f955272ce6bd991
[ "MIT" ]
null
null
null
py-helloworld/flaskHello.py
Nuuttu/Koulu_PythonWeppiAppi
0b364dc5e485524058c340987f955272ce6bd991
[ "MIT" ]
null
null
null
py-helloworld/flaskHello.py
Nuuttu/Koulu_PythonWeppiAppi
0b364dc5e485524058c340987f955272ce6bd991
[ "MIT" ]
null
null
null
from flask import Flask app = Flask(__name__) @app.route("/") def index(): return "Moi Tuomo" if __name__ == '__main__': app.run(debug=True)
15.1
26
0.655629
4d8b051cd7a21b2615e42efbc13fbaa730300dc8
2,893
py
Python
PIE/individual_TF.py
ericyinyzy/MTN_trajectory
2c6e2cb07f89a118094257d6bea4e024d5ceda54
[ "BSD-3-Clause" ]
8
2021-12-29T08:43:34.000Z
2022-03-16T01:40:25.000Z
PIE/individual_TF.py
ericyinyzy/MTN_trajectory
2c6e2cb07f89a118094257d6bea4e024d5ceda54
[ "BSD-3-Clause" ]
1
2021-12-17T15:44:10.000Z
2021-12-31T02:22:48.000Z
PIE/individual_TF.py
ericyinyzy/MTN_trajectory
2c6e2cb07f89a118094257d6bea4e024d5ceda54
[ "BSD-3-Clause" ]
null
null
null
import torch.nn as nn from transformer.decoder import Decoder from transformer.multihead_attention import MultiHeadAttention from transformer.positional_encoding import PositionalEncoding from transformer.pointerwise_feedforward import PointerwiseFeedforward from transformer.encoder_decoder import EncoderDecoder from t...
38.065789
105
0.687867
1f3abd4a33ddd04f2f7c828199f14fcf84f997cf
6,259
py
Python
moncli/entities/item.py
anthonypreza/moncli
194d6284da8c6c65c58039646500a6c87c89a31f
[ "MIT" ]
1
2020-08-17T17:05:03.000Z
2020-08-17T17:05:03.000Z
moncli/entities/item.py
anthonypreza/moncli
194d6284da8c6c65c58039646500a6c87c89a31f
[ "MIT" ]
null
null
null
moncli/entities/item.py
anthonypreza/moncli
194d6284da8c6c65c58039646500a6c87c89a31f
[ "MIT" ]
null
null
null
import json from typing import List from .. import entities as e from .. import api_v2 as client from ..enums import ColumnType from ..constants import COLUMN_TYPE_MAPPINGS from ..columnvalue import create_column_value, ColumnValue from . import exceptions as ex class Item(): def __init__(self, **kwargs): ...
29.947368
97
0.548171
ff3cfc15df9b8490a45e0d8b4d48e1b922b03aa4
2,559
py
Python
tests/backends/test_memory_cache_backend.py
musebc/starlette-cache-middleware
d880cc64cff14b443c43de84db1cbc5473ec2814
[ "Apache-2.0" ]
1
2021-06-14T21:14:49.000Z
2021-06-14T21:14:49.000Z
tests/backends/test_memory_cache_backend.py
musebc/starlette-cache-middleware
d880cc64cff14b443c43de84db1cbc5473ec2814
[ "Apache-2.0" ]
null
null
null
tests/backends/test_memory_cache_backend.py
musebc/starlette-cache-middleware
d880cc64cff14b443c43de84db1cbc5473ec2814
[ "Apache-2.0" ]
null
null
null
from unittest.mock import patch, MagicMock import pytest from starlette_cache.backends.memory_cache_backend import MemoryCacheBackend class ExampleClass(object): def __init__(self, value: str): self.value = value def __eq__(self, other): return isinstance(other, ExampleClass) and self.value...
30.831325
88
0.670965
1a4e6a77642261737a839f340d02fd1e65052ec4
2,204
py
Python
tests/test_api.py
andrehedesand/platformdirs
e438af25e1d682d09794f33fa64e60d175304395
[ "MIT" ]
92
2021-05-13T12:41:20.000Z
2022-03-22T18:05:40.000Z
tests/test_api.py
andrehedesand/platformdirs
e438af25e1d682d09794f33fa64e60d175304395
[ "MIT" ]
62
2021-05-13T17:16:27.000Z
2022-03-30T14:08:52.000Z
tests/test_api.py
andrehedesand/platformdirs
e438af25e1d682d09794f33fa64e60d175304395
[ "MIT" ]
27
2021-07-12T06:52:14.000Z
2022-03-05T10:26:17.000Z
from __future__ import annotations import inspect from pathlib import Path import pytest from _pytest.monkeypatch import MonkeyPatch import platformdirs from platformdirs.android import Android def test_package_metadata() -> None: assert hasattr(platformdirs, "__version__") assert hasattr(platformdirs, "__...
33.393939
94
0.731397
b7dee4ab77cd8bf23d493b05fe5f375f58daceca
17,283
py
Python
Classification/tensornets/utils.py
ardywibowo/LBD
1c56917fa0797c98ef1233879849c9ec536fe896
[ "MIT" ]
null
null
null
Classification/tensornets/utils.py
ardywibowo/LBD
1c56917fa0797c98ef1233879849c9ec536fe896
[ "MIT" ]
null
null
null
Classification/tensornets/utils.py
ardywibowo/LBD
1c56917fa0797c98ef1233879849c9ec536fe896
[ "MIT" ]
null
null
null
from __future__ import absolute_import from __future__ import division from __future__ import print_function import numpy as np import tensorflow as tf import warnings from contextlib import contextmanager from distutils.version import LooseVersion from tensorflow.contrib.framework import arg_scope from tensorflow.c...
34.635271
103
0.568709
8adc8fb397241dffb0373fae58d9a91a0eedc2f5
3,829
py
Python
extractTool/extractTool/getShapefileInfo.py
corneliazy/Geosoftware2
8604c79c58a61b84c602f16b5f1e74e30dfcbd0e
[ "MIT" ]
null
null
null
extractTool/extractTool/getShapefileInfo.py
corneliazy/Geosoftware2
8604c79c58a61b84c602f16b5f1e74e30dfcbd0e
[ "MIT" ]
47
2018-11-13T13:55:01.000Z
2019-09-16T13:38:11.000Z
extractTool/extractTool/getShapefileInfo.py
corneliazy/Geosoftware2
8604c79c58a61b84c602f16b5f1e74e30dfcbd0e
[ "MIT" ]
4
2018-11-27T12:36:51.000Z
2020-10-14T18:07:04.000Z
import click import shapefile import extractTool from scipy.spatial import ConvexHull def getShapefilebbx(filepath, detail, folder, time): """Extracts metadata from shapefiles. :param filepath: Path to the file :param detail: bbox, convexHull or time :param folder: whole or single :return: selecte...
39.071429
119
0.50666
9a2f54d8cbb29de7dc7c18475726032c019e6021
892
py
Python
tests/test_forms.py
narnikgamarnikus/django-url-shorter
dcea9f77af951ec3cfc41fbbc4bab951ccab7f41
[ "MIT" ]
null
null
null
tests/test_forms.py
narnikgamarnikus/django-url-shorter
dcea9f77af951ec3cfc41fbbc4bab951ccab7f41
[ "MIT" ]
null
null
null
tests/test_forms.py
narnikgamarnikus/django-url-shorter
dcea9f77af951ec3cfc41fbbc4bab951ccab7f41
[ "MIT" ]
null
null
null
from django.test import TestCase, LiveServerTestCase from django.contrib.staticfiles.testing import StaticLiveServerTestCase from selenium.webdriver.firefox.webdriver import WebDriver from url_shorter import views from django.urls import reverse ''' class TestURLCreateForm(LiveServerTestCase): port = 8082 @c...
30.758621
80
0.711883
b91e62dfd96e0878f85c00e91a335a618fc06ad3
521
py
Python
test/test_init.py
volfpeter/markyp
7c34dc8b8aed4aa24471fc3c0e8032c1814417d5
[ "MIT" ]
11
2019-07-16T17:27:55.000Z
2022-03-12T04:35:30.000Z
test/test_init.py
volfpeter/markyp
7c34dc8b8aed4aa24471fc3c0e8032c1814417d5
[ "MIT" ]
3
2019-06-18T06:44:09.000Z
2019-10-22T19:00:03.000Z
test/test_init.py
volfpeter/markyp
7c34dc8b8aed4aa24471fc3c0e8032c1814417d5
[ "MIT" ]
1
2019-10-22T10:23:37.000Z
2019-10-22T10:23:37.000Z
import pytest from markyp import IElement, is_element def test_IElement(): with pytest.raises(NotImplementedError): str(IElement()) with pytest.raises(NotImplementedError): IElement().markup def test_is_element(): assert is_element(IElement()) assert is_element("string element") ...
24.809524
50
0.710173
5e1179793c35b432327f6e61248b7085848a722b
428
py
Python
actstream/migrations/0002_remove_action_data.py
slated/django-activity-stream
8d38fd45b4bef1f7137fb8185b04ee0d8cdb5e3b
[ "BSD-3-Clause" ]
1,489
2015-01-02T02:46:30.000Z
2022-03-30T07:32:45.000Z
actstream/migrations/0002_remove_action_data.py
slated/django-activity-stream
8d38fd45b4bef1f7137fb8185b04ee0d8cdb5e3b
[ "BSD-3-Clause" ]
277
2015-01-02T19:54:09.000Z
2022-03-28T12:07:20.000Z
actstream/migrations/0002_remove_action_data.py
slated/django-activity-stream
8d38fd45b4bef1f7137fb8185b04ee0d8cdb5e3b
[ "BSD-3-Clause" ]
345
2015-01-13T01:02:42.000Z
2022-03-21T09:39:26.000Z
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import migrations from actstream.settings import USE_JSONFIELD class Migration(migrations.Migration): dependencies = [ ('actstream', '0001_initial'), ] if not USE_JSONFIELD: operations = [ migrati...
20.380952
44
0.591121
16ee31cd7db0640df306e3345ecace1166462ca7
5,665
py
Python
bokeh/_testing/plugins/file_server.py
g-parki/bokeh
664ead5306bba64609e734d4105c8aa8cfb76d81
[ "BSD-3-Clause" ]
null
null
null
bokeh/_testing/plugins/file_server.py
g-parki/bokeh
664ead5306bba64609e734d4105c8aa8cfb76d81
[ "BSD-3-Clause" ]
null
null
null
bokeh/_testing/plugins/file_server.py
g-parki/bokeh
664ead5306bba64609e734d4105c8aa8cfb76d81
[ "BSD-3-Clause" ]
null
null
null
#----------------------------------------------------------------------------- # Copyright (c) 2012 - 2022, Anaconda, Inc., and Bokeh Contributors. # All rights reserved. # # The full license is in the file LICENSE.txt, distributed with this software. #-------------------------------------------------------------------...
34.754601
158
0.51827
9c8f6c0c24d4578634c7b3d255197ce74e233327
18,010
py
Python
MAIN/STM32F405_C/NORMAL/history/V37/DataBase.py
ozturkahmetcevdet/VSenst
07c068fefcbd66ae4d8ec0480b4da10d6b5c7410
[ "MIT" ]
null
null
null
MAIN/STM32F405_C/NORMAL/history/V37/DataBase.py
ozturkahmetcevdet/VSenst
07c068fefcbd66ae4d8ec0480b4da10d6b5c7410
[ "MIT" ]
null
null
null
MAIN/STM32F405_C/NORMAL/history/V37/DataBase.py
ozturkahmetcevdet/VSenst
07c068fefcbd66ae4d8ec0480b4da10d6b5c7410
[ "MIT" ]
null
null
null
import gc from micropython import const from PXSensor import PxHub, key, T import os import peripheral import binascii import ujson as js from machine import RTC DEBUG = False OPEN_SCENE_SHOW_TIME = const(5000) CLOSING_TIME = const(10000) CLOSE_SCENE_SHOW_TIME = const(1000) class TextColour: HEA...
54.575758
525
0.498501
9f6076bf66826d7669e9022de20828591f3b8755
5,873
py
Python
third_party/blink/renderer/devtools/scripts/build/generate_devtools_grd.py
zipated/src
2b8388091c71e442910a21ada3d97ae8bc1845d3
[ "BSD-3-Clause" ]
2,151
2020-04-18T07:31:17.000Z
2022-03-31T08:39:18.000Z
third_party/blink/renderer/devtools/scripts/build/generate_devtools_grd.py
cangulcan/src
2b8388091c71e442910a21ada3d97ae8bc1845d3
[ "BSD-3-Clause" ]
395
2020-04-18T08:22:18.000Z
2021-12-08T13:04:49.000Z
third_party/blink/renderer/devtools/scripts/build/generate_devtools_grd.py
cangulcan/src
2b8388091c71e442910a21ada3d97ae8bc1845d3
[ "BSD-3-Clause" ]
338
2020-04-18T08:03:10.000Z
2022-03-29T12:33:22.000Z
#!/usr/bin/env python # # Copyright (C) 2011 Google Inc. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: # # * Redistributions of source code must retain the above copyright # notice, this...
39.416107
120
0.726205
0492713c09aba417d5772d7fd5db1ed62570c3c1
515
py
Python
sdl2/test/platform_test.py
py-sdl/py-sdl2
38ba051a39b86ccd2c5a95125c8d7cfea3ddb691
[ "CC0-1.0" ]
12
2022-02-10T17:04:08.000Z
2022-03-30T21:05:12.000Z
sdl2/test/platform_test.py
py-sdl/py-sdl2
38ba051a39b86ccd2c5a95125c8d7cfea3ddb691
[ "CC0-1.0" ]
4
2022-02-08T14:16:24.000Z
2022-03-18T01:32:00.000Z
sdl2/test/platform_test.py
py-sdl/py-sdl2
38ba051a39b86ccd2c5a95125c8d7cfea3ddb691
[ "CC0-1.0" ]
1
2022-03-21T22:23:34.000Z
2022-03-21T22:23:34.000Z
import sys import pytest import sdl2 def test_SDL_GetPlatform(): retval = sdl2.SDL_GetPlatform() if sys.platform in ("win32", "cygwin"): assert retval == b"Windows" elif sys.platform.startswith("linux"): assert retval == b"Linux" elif sys.platform.startswith("freebsd"): assert ...
28.611111
73
0.658252
6fef211a16d20ae0aa763f6ec7d62e4171824ab2
915
py
Python
app/signals.py
beedev-services/dragonsEdgeCreations
13a80c96feb5c7eaf4823b0e039dec30e791c7b0
[ "MIT" ]
null
null
null
app/signals.py
beedev-services/dragonsEdgeCreations
13a80c96feb5c7eaf4823b0e039dec30e791c7b0
[ "MIT" ]
null
null
null
app/signals.py
beedev-services/dragonsEdgeCreations
13a80c96feb5c7eaf4823b0e039dec30e791c7b0
[ "MIT" ]
null
null
null
from django.db.models.signals import post_save from django.dispatch import receiver from .models import * @receiver(post_save, sender=Product) def create_picture(sender, instance, created, **kwargs): if created: Picture.objects.create(product=instance) @receiver(post_save, sender=Product) def save_picture...
30.5
56
0.751913
66dbf851dcd089502ce11244ee7c748c8a9e4147
915
py
Python
google/cloud/trace_v1/types/__init__.py
tswast/python-trace
c162047a779478a43561a7e1f1b8687dda5ecc89
[ "Apache-2.0" ]
null
null
null
google/cloud/trace_v1/types/__init__.py
tswast/python-trace
c162047a779478a43561a7e1f1b8687dda5ecc89
[ "Apache-2.0" ]
null
null
null
google/cloud/trace_v1/types/__init__.py
tswast/python-trace
c162047a779478a43561a7e1f1b8687dda5ecc89
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright 2020 Google LLC # # 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...
24.078947
74
0.706011
825fe7d8886a6623cfbae93f0a738d443652cb4c
3,881
py
Python
vidsz/interfaces/writer.py
BlueMirrors/vidsz
c47f09a6b8cb8da9a0b6c97caf99bc2baab6fee7
[ "Apache-2.0" ]
10
2021-06-13T07:09:42.000Z
2022-02-03T16:29:13.000Z
vidsz/interfaces/writer.py
BlueMirrors/vidsz
c47f09a6b8cb8da9a0b6c97caf99bc2baab6fee7
[ "Apache-2.0" ]
3
2021-09-30T18:40:57.000Z
2022-01-31T08:09:31.000Z
vidsz/interfaces/writer.py
BlueMirrors/vidsz
c47f09a6b8cb8da9a0b6c97caf99bc2baab6fee7
[ "Apache-2.0" ]
1
2021-09-30T21:02:55.000Z
2021-09-30T21:02:55.000Z
"""Defines interface for video writer """ import abc from typing import List, Union import numpy as np from .reader import IReader class IWriter(metaclass=abc.ABCMeta): """Video Writing Interface which will be implemented for every supported backend. """ @property @abc.abstractmethod def nam...
20.643617
92
0.517392
3388d44d8af3d576a8808c5daeaa2f3d405dd800
183
py
Python
builder/Builder Pattern/BeforeBuilder3/__main__.py
Tomvictor/python-design-patterns
6b99607d721bbe03d26a0a451a10e88cd1c1d112
[ "MIT" ]
null
null
null
builder/Builder Pattern/BeforeBuilder3/__main__.py
Tomvictor/python-design-patterns
6b99607d721bbe03d26a0a451a10e88cd1c1d112
[ "MIT" ]
null
null
null
builder/Builder Pattern/BeforeBuilder3/__main__.py
Tomvictor/python-design-patterns
6b99607d721bbe03d26a0a451a10e88cd1c1d112
[ "MIT" ]
null
null
null
from computer import Computer from mycomputer import MyComputer builder = MyComputer() builder.build_computer() computer = builder.get_computer() computer.display()
14.076923
34
0.743169
90ef6d4145214c2484c43f6c50e45d2fd2609b79
154
py
Python
mmdetection/configs/GRCNN/mask_rcnn_grcnn55_share_fpn_2x_coco.py
Jianf-Wang/GRCNN
77eba718f31982d80a9d791656a71cf47078eea2
[ "MIT" ]
94
2021-03-07T01:34:35.000Z
2022-03-05T15:47:41.000Z
mmdetection/configs/GRCNN/mask_rcnn_grcnn55_share_fpn_2x_coco.py
Jianf-Wang/GRCNN
77eba718f31982d80a9d791656a71cf47078eea2
[ "MIT" ]
null
null
null
mmdetection/configs/GRCNN/mask_rcnn_grcnn55_share_fpn_2x_coco.py
Jianf-Wang/GRCNN
77eba718f31982d80a9d791656a71cf47078eea2
[ "MIT" ]
19
2021-06-08T14:04:07.000Z
2022-01-17T20:06:42.000Z
_base_ = './mask_rcnn_grcnn55_fpn_2x_coco.py' model = dict(pretrained='./checkpoint_params_grcnn55_weight_share.pt', backbone=dict(name='GRCNN55_SHARE'))
51.333333
107
0.811688
33df0bdd1cb4006dde7c9efe1c23313394099efe
15,598
py
Python
mesonbuild/modules/unstable_cuda.py
gh-fork-dump/meson
10c8bd0e6742b297ea5f78bf19711c451f8f0165
[ "Apache-2.0" ]
null
null
null
mesonbuild/modules/unstable_cuda.py
gh-fork-dump/meson
10c8bd0e6742b297ea5f78bf19711c451f8f0165
[ "Apache-2.0" ]
null
null
null
mesonbuild/modules/unstable_cuda.py
gh-fork-dump/meson
10c8bd0e6742b297ea5f78bf19711c451f8f0165
[ "Apache-2.0" ]
1
2021-07-15T05:25:47.000Z
2021-07-15T05:25:47.000Z
# Copyright 2017 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 applicable law or agreed to ...
46.011799
139
0.543082
332c9c2b1f3856f2979f8f97cca3e36ed0323ab7
645
py
Python
setup.py
ameyagaikwad/VizAlert_Copy
9ce26b97a37af09f9729ad9edf5b0a2e9f9e54c5
[ "MIT" ]
null
null
null
setup.py
ameyagaikwad/VizAlert_Copy
9ce26b97a37af09f9729ad9edf5b0a2e9f9e54c5
[ "MIT" ]
1
2021-02-24T10:18:26.000Z
2021-02-24T10:18:26.000Z
setup.py
ameyagaikwad/VizAlert_Copy
9ce26b97a37af09f9729ad9edf5b0a2e9f9e54c5
[ "MIT" ]
null
null
null
from distutils.core import setup import py2exe import os includes = [] includefiles = os.listdir('D:\\Python27\\Lib\\site-packages\\phonenumbers\\data') for file in includefiles: if file.endswith('.py'): includes.append('phonenumbers.data.' + file.replace('.py', '')) #data_files = [('cacert.pem', ['D:\\Py...
25.8
94
0.603101
d3e5850f7214d9f95cd7afded6f86ac5177df7f4
1,422
py
Python
src/app.py
gabfl/mockapi
07b144441ff075da4e8fc44634817243ea4ef50e
[ "MIT" ]
null
null
null
src/app.py
gabfl/mockapi
07b144441ff075da4e8fc44634817243ea4ef50e
[ "MIT" ]
3
2019-09-29T19:04:09.000Z
2021-12-18T03:41:39.000Z
src/app.py
gabfl/mockapi
07b144441ff075da4e8fc44634817243ea4ef50e
[ "MIT" ]
null
null
null
import json import os from flask import Flask, render_template, request, redirect, url_for, send_from_directory, jsonify from .bootstrap import get_or_create_app from .models import RouteModel from . import api_handler, routes_handler app = get_or_create_app() @app.route("/") def hp(): return render_template(...
24.517241
98
0.679325
e3ca714cf6602437ce85976bbcd26a8d945139c2
9,842
py
Python
keras/distribute/dataset_creator_model_fit_test.py
ErosMLima/keras
70d7d07bd186b929d81f7a8ceafff5d78d8bd701
[ "Apache-2.0" ]
1
2021-06-11T03:10:56.000Z
2021-06-11T03:10:56.000Z
keras/distribute/dataset_creator_model_fit_test.py
ErosMLima/keras
70d7d07bd186b929d81f7a8ceafff5d78d8bd701
[ "Apache-2.0" ]
null
null
null
keras/distribute/dataset_creator_model_fit_test.py
ErosMLima/keras
70d7d07bd186b929d81f7a8ceafff5d78d8bd701
[ "Apache-2.0" ]
null
null
null
# Lint as: python3 # Copyright 2021 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 requ...
38
98
0.686039
4243e26d43e03c718ebb7118469a673dcf2abd00
143
py
Python
c_translator/formative/f6.py
mahudu97/ANSI-C_Compiler
0e3f9960bf6c4e1e03f5d4d41b5f162be4d55131
[ "Unlicense" ]
6
2019-05-21T09:42:10.000Z
2021-03-22T04:34:20.000Z
c_translator/formative/f6.py
mahudu97/ANSI-C_Compiler
0e3f9960bf6c4e1e03f5d4d41b5f162be4d55131
[ "Unlicense" ]
null
null
null
c_translator/formative/f6.py
mahudu97/ANSI-C_Compiler
0e3f9960bf6c4e1e03f5d4d41b5f162be4d55131
[ "Unlicense" ]
1
2019-06-25T22:35:24.000Z
2019-06-25T22:35:24.000Z
def main(): x=0 x=5 x=x*x return x # Boilerplate if __name__ == "__main__": import sys ret=main() sys.exit(ret)
10.214286
26
0.531469
1ac007362893e36f4fe4d6548e289ad4c7dc4066
1,442
py
Python
var/spack/repos/builtin/packages/xsimd/package.py
LiamBindle/spack
e90d5ad6cfff2ba3de7b537d6511adccd9d5fcf1
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
2,360
2017-11-06T08:47:01.000Z
2022-03-31T14:45:33.000Z
var/spack/repos/builtin/packages/xsimd/package.py
LiamBindle/spack
e90d5ad6cfff2ba3de7b537d6511adccd9d5fcf1
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
13,838
2017-11-04T07:49:45.000Z
2022-03-31T23:38:39.000Z
var/spack/repos/builtin/packages/xsimd/package.py
LiamBindle/spack
e90d5ad6cfff2ba3de7b537d6511adccd9d5fcf1
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
1,793
2017-11-04T07:45:50.000Z
2022-03-30T14:31:53.000Z
# Copyright 2013-2021 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 Xsimd(CMakePackage): """C++ wrappers for SIMD intrinsics""" homepage = "https://quant...
36.05
96
0.714979
e75fcbfe66e6ae2e7483e4b3bfc0ffb91da30f75
7,950
py
Python
app/portal/horizon/openstack_dashboard/dashboards/project/security_groups/tables.py
haoshen61/f5-adcaas-openstack
4bda29271930bf7c621f4184bda8d43b2fa96336
[ "Apache-2.0" ]
4
2019-06-21T06:42:07.000Z
2020-12-04T11:59:25.000Z
app/portal/horizon/openstack_dashboard/dashboards/project/security_groups/tables.py
haoshen61/f5-adcaas-openstack
4bda29271930bf7c621f4184bda8d43b2fa96336
[ "Apache-2.0" ]
106
2019-01-18T03:06:55.000Z
2019-11-29T05:06:18.000Z
app/portal/horizon/openstack_dashboard/dashboards/project/security_groups/tables.py
haoshen61/f5-adcaas-openstack
4bda29271930bf7c621f4184bda8d43b2fa96336
[ "Apache-2.0" ]
23
2019-01-10T01:49:08.000Z
2020-05-26T01:10:38.000Z
# Copyright 2012 Nebula, 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 agree...
32.716049
79
0.632579
b118bcdd8c6582a62e4093b01955bb17ff5faba1
428
py
Python
articles/migrations/0063_auto_20150930_1924.py
losolio/website
5b983e9dfaf604212aab87c51d8904ffc29527a3
[ "MIT" ]
10
2015-12-18T16:41:33.000Z
2018-11-11T08:36:46.000Z
articles/migrations/0063_auto_20150930_1924.py
losolio/website
5b983e9dfaf604212aab87c51d8904ffc29527a3
[ "MIT" ]
96
2015-07-14T22:45:56.000Z
2017-07-25T19:59:48.000Z
articles/migrations/0063_auto_20150930_1924.py
losolio/website
5b983e9dfaf604212aab87c51d8904ffc29527a3
[ "MIT" ]
9
2015-07-28T14:38:43.000Z
2019-01-04T17:38:42.000Z
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('articles', '0062_auto_20150930_1633'), ] operations = [ migrations.RemoveField( model_name='citation', ...
19.454545
48
0.581776
5bb9f3c722f4422cdf5cc4f7246e5862d613df0d
1,112
py
Python
Q_learning_Games_v2/Q_Learning_Games_v2_/Q_Learning_Games_v2_Sarsa/Taxi_Q_Learning_Game_Sarsa/Taxi_Analysis/print_taxi_rewards_plot.py
GiacomoFerro/Bachelor-Thesis
a9ac91a208dfc175084cf22673f88add6ec15281
[ "MIT" ]
null
null
null
Q_learning_Games_v2/Q_Learning_Games_v2_/Q_Learning_Games_v2_Sarsa/Taxi_Q_Learning_Game_Sarsa/Taxi_Analysis/print_taxi_rewards_plot.py
GiacomoFerro/Bachelor-Thesis
a9ac91a208dfc175084cf22673f88add6ec15281
[ "MIT" ]
null
null
null
Q_learning_Games_v2/Q_Learning_Games_v2_/Q_Learning_Games_v2_Sarsa/Taxi_Q_Learning_Game_Sarsa/Taxi_Analysis/print_taxi_rewards_plot.py
GiacomoFerro/Bachelor-Thesis
a9ac91a208dfc175084cf22673f88add6ec15281
[ "MIT" ]
null
null
null
#libreria per generare grafici import matplotlib.pyplot as plt #lib to remove files import os print("Make the Rewards Plot") plt.rc('xtick', labelsize=8) plt.rc('ytick', labelsize=8) plt.figure(figsize=(10, 5)) f=open("rewards_taxi_sarsa.txt","r") stringa=f.readline() n=0 while stringa!="":#count the number...
23.659574
166
0.726619
6d2cfb0a529246c99c34569e44e8feaf5f4d523b
5,419
py
Python
blog/models.py
Onlyonechl/myblog
fa98475567a0c5e828a2d07a31215303c9d26d7a
[ "MIT" ]
null
null
null
blog/models.py
Onlyonechl/myblog
fa98475567a0c5e828a2d07a31215303c9d26d7a
[ "MIT" ]
null
null
null
blog/models.py
Onlyonechl/myblog
fa98475567a0c5e828a2d07a31215303c9d26d7a
[ "MIT" ]
null
null
null
from django.db import models from django.contrib.auth.models import User from django.urls import reverse from django.utils import timezone from django.utils.text import slugify from markdown.extensions.toc import TocExtension from django.utils.functional import cached_property import markdown, re from django.core.cach...
35.188312
113
0.7136
3d290ad6b13ed6119a2c761f01e9ece39581c5ef
4,029
py
Python
features/cards.py
ptbrown121/l5r-discord-bot
67e61d119394f2d258d97e8d7c342e2c226d7f54
[ "MIT" ]
4
2017-09-05T13:52:15.000Z
2020-07-24T20:06:29.000Z
features/cards.py
ptbrown121/l5r-discord-bot
67e61d119394f2d258d97e8d7c342e2c226d7f54
[ "MIT" ]
11
2017-07-07T06:29:32.000Z
2017-10-24T04:25:32.000Z
features/cards.py
ptbrown121/l5r-discord-bot
67e61d119394f2d258d97e8d7c342e2c226d7f54
[ "MIT" ]
12
2017-07-05T17:00:11.000Z
2022-02-20T07:16:05.000Z
import urllib import requests import json import datetime from fuzzywuzzy import fuzz from fuzzywuzzy import process import logging logger = logging.getLogger('discord') def get_card_url(command): logger.info("Getting a card URL for " + str(command)) card_name = '' for string in command: if card...
35.654867
152
0.602383
46e97a3bc01f55e9d47396cf638fc3d47a400d92
2,152
py
Python
share/qt/extract_strings_qt.py
danrachita/EBSCoin
aa10e327e60e823d5699e3fff26744e0f297a979
[ "MIT" ]
null
null
null
share/qt/extract_strings_qt.py
danrachita/EBSCoin
aa10e327e60e823d5699e3fff26744e0f297a979
[ "MIT" ]
null
null
null
share/qt/extract_strings_qt.py
danrachita/EBSCoin
aa10e327e60e823d5699e3fff26744e0f297a979
[ "MIT" ]
null
null
null
#!/usr/bin/python ''' Extract _("...") strings for translation and convert to Qt stringdefs so that they can be picked up by Qt linguist. ''' from __future__ import division,print_function,unicode_literals from subprocess import Popen, PIPE import glob import operator import os import sys OUT_CPP="qt/ebsstrings.cpp" E...
25.619048
105
0.617565
0dbeb51940145da9fa4f5334018bd6da388b3387
1,905
py
Python
qstrader/price_parser.py
ivanliu1989/qstrader
95cbe6d0abdf53bc145daa96d5352c60b5030540
[ "MIT" ]
113
2019-01-11T05:55:41.000Z
2022-03-27T23:49:47.000Z
qstrader/price_parser.py
ivanliu1989/qstrader
95cbe6d0abdf53bc145daa96d5352c60b5030540
[ "MIT" ]
7
2019-04-09T05:30:24.000Z
2020-09-09T04:52:49.000Z
qstrader/price_parser.py
ivanliu1989/qstrader
95cbe6d0abdf53bc145daa96d5352c60b5030540
[ "MIT" ]
54
2019-01-10T17:22:14.000Z
2022-03-15T23:47:43.000Z
from __future__ import division from multipledispatch import dispatch from .compat import PY2 import numpy as np if PY2: int_t = (int, long, np.int64) else: int_t = (int, np.int64) class PriceParser(object): """ PriceParser is designed to abstract away the underlying number used as a price within...
28.432836
82
0.677165
98e9040feb88dc6d65b41d0fe875424805110315
1,274
py
Python
src/ecole_direct.py
gregonmac/school-checker
16cb23e2810a39937fc35eea93ce35aa197e6d62
[ "MIT" ]
null
null
null
src/ecole_direct.py
gregonmac/school-checker
16cb23e2810a39937fc35eea93ce35aa197e6d62
[ "MIT" ]
null
null
null
src/ecole_direct.py
gregonmac/school-checker
16cb23e2810a39937fc35eea93ce35aa197e6d62
[ "MIT" ]
null
null
null
from flask import Flask, render_template, request import pymongo import requests from pymongo import MongoClient import json from datetime import datetime import hashlib class EcoleDirect: """Class to handle access Ecole Directe API.""" def __init__(self, api_url: str, login: str, pwd: str, student_id: int):...
34.432432
83
0.61303
725788043dff7e351610103fc92f9f8b5d24239e
626
py
Python
pyscaleio/__init__.py
C2Devel/pyscaleio
10c36a9ef217a208e4ebe3478125afee4961c350
[ "Apache-2.0" ]
null
null
null
pyscaleio/__init__.py
C2Devel/pyscaleio
10c36a9ef217a208e4ebe3478125afee4961c350
[ "Apache-2.0" ]
2
2021-09-28T09:56:19.000Z
2021-12-30T11:04:48.000Z
pyscaleio/__init__.py
C2Devel/pyscaleio
10c36a9ef217a208e4ebe3478125afee4961c350
[ "Apache-2.0" ]
5
2020-09-24T13:05:08.000Z
2022-02-07T11:37:18.000Z
from .client import ScaleIOSession, ScaleIOClient, inject # noqa from .config import ScaleIOConfig from .manager import ScaleIOClientsManager from .models import ( System, ProtectionDomain, StoragePool, VTree, Sdc, Volume ) __all__ = ( ScaleIOSession.__name__, ScaleIOClient.__name__, System.__name__, ...
28.454545
65
0.784345
00143ce843bceeaaa5246fa996c162b53608ff93
18,402
py
Python
src/campero_robot_real/campero_robot_real_leap_motion/scripts/lm_robot_manipulator.py
Serru/MultiCobot-UR10-Gripper-Campero
d442a35efe24f8361afedb5e09249b309ed7c93e
[ "CC-BY-4.0" ]
null
null
null
src/campero_robot_real/campero_robot_real_leap_motion/scripts/lm_robot_manipulator.py
Serru/MultiCobot-UR10-Gripper-Campero
d442a35efe24f8361afedb5e09249b309ed7c93e
[ "CC-BY-4.0" ]
null
null
null
src/campero_robot_real/campero_robot_real_leap_motion/scripts/lm_robot_manipulator.py
Serru/MultiCobot-UR10-Gripper-Campero
d442a35efe24f8361afedb5e09249b309ed7c93e
[ "CC-BY-4.0" ]
null
null
null
#!/usr/bin/env python import sys import copy import rospy from std_msgs.msg import Header from trajectory_msgs.msg import JointTrajectory, JointTrajectoryPoint import geometry_msgs.msg from sensor_msgs.msg import JointState import tf.transformations as tf from geometry_msgs.msg import Pose, Quaternion from kinematic...
51.116667
253
0.619063
7080f59366ca622d25a3dd71abe90e9d36f22207
2,297
py
Python
pepdb/core/migrations/0114_auto_20170907_2314.py
dchaplinsky/pep.org.ua
8633a65fb657d7f04dbdb12eb8ae705fa6be67e3
[ "MIT" ]
7
2015-12-21T03:52:46.000Z
2020-07-24T19:17:23.000Z
pepdb/core/migrations/0114_auto_20170907_2314.py
dchaplinsky/pep.org.ua
8633a65fb657d7f04dbdb12eb8ae705fa6be67e3
[ "MIT" ]
12
2016-03-05T18:11:05.000Z
2021-06-17T20:20:03.000Z
pepdb/core/migrations/0114_auto_20170907_2314.py
dchaplinsky/pep.org.ua
8633a65fb657d7f04dbdb12eb8ae705fa6be67e3
[ "MIT" ]
4
2016-07-17T20:19:38.000Z
2021-03-23T12:47:20.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.11.5 on 2017-09-07 20:14 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('core', '0113_auto_20170905_1435'), ] operations = [ migrations.AlterField( ...
76.566667
1,443
0.715716
0273a3ff0e420a844f820567337513bef62eb68d
6,069
py
Python
trpovil/code/modular_rl/misc_utils.py
ponythewhite/trpovil
ce16bb4728d9605833ea19ae0a97c7eca8098974
[ "MIT" ]
null
null
null
trpovil/code/modular_rl/misc_utils.py
ponythewhite/trpovil
ce16bb4728d9605833ea19ae0a97c7eca8098974
[ "MIT" ]
null
null
null
trpovil/code/modular_rl/misc_utils.py
ponythewhite/trpovil
ce16bb4728d9605833ea19ae0a97c7eca8098974
[ "MIT" ]
null
null
null
from __future__ import print_function import atexit, numpy as np, scipy, sys, os.path as osp from collections import defaultdict # ================================================================ # Math utilities # ================================================================ def discount(x, gamma): """ co...
30.044554
101
0.560224
3b7fbde9e4ad2f6f87d621e5dc64e4500568a47f
652
py
Python
tests/_test_shear_psf.py
liuyenting/utoolbox-legacy
dfcb24701ca25a37a223cc3c14b4433e6c296bfd
[ "Apache-2.0" ]
2
2020-09-03T06:22:14.000Z
2020-10-04T10:14:56.000Z
tests/_test_shear_psf.py
liuyenting/utoolbox-legacy
dfcb24701ca25a37a223cc3c14b4433e6c296bfd
[ "Apache-2.0" ]
null
null
null
tests/_test_shear_psf.py
liuyenting/utoolbox-legacy
dfcb24701ca25a37a223cc3c14b4433e6c296bfd
[ "Apache-2.0" ]
null
null
null
import imageio import matplotlib.pyplot as plt import numpy as np import utoolbox.simulate.psf as psf parms = psf.FastGibsonLanni.Parameters( M=68, # magnification NA=1.1, # numerical aperture ni0=1.33, # immersion medium refraction index, design value ni=1.33, # immersion medium refraction ind...
24.148148
69
0.699387
b14d4912697e35d0a61feb2045243a4419487819
67,419
py
Python
plotly/plotly/plotly.py
llovo-code/python-plotly
07294e65e2c0f5b093a45a36167fcbec1c35c581
[ "MIT" ]
2
2018-02-06T10:43:31.000Z
2018-08-11T02:43:38.000Z
plotly/plotly/plotly.py
llovo-code/python-plotly
07294e65e2c0f5b093a45a36167fcbec1c35c581
[ "MIT" ]
1
2022-02-17T16:47:20.000Z
2022-02-17T16:47:20.000Z
plotly/plotly/plotly.py
llovo-code/python-plotly
07294e65e2c0f5b093a45a36167fcbec1c35c581
[ "MIT" ]
2
2018-02-13T10:40:10.000Z
2021-06-04T11:15:53.000Z
""" plotly ====== A module that contains the plotly class, a liaison between the user and ploty's servers. 1. get DEFAULT_PLOT_OPTIONS for options 2. update plot_options with .plotly/ dir 3. update plot_options with _plot_options 4. update plot_options with kwargs! """ from __future__ import absolute_import impo...
36.383702
111
0.577849
e2fe41372b6708efc3e162e89d6be84fcfe3348c
916
py
Python
tests/conftest.py
vkruoso/receita-tools
fd62a252c76541c9feac6470b9048b31348ffe86
[ "MIT" ]
27
2015-01-20T11:33:56.000Z
2019-10-26T18:12:47.000Z
tests/conftest.py
maisonsakamoto/receita-tools
feddfdd4ef0450cb9d16832d0a40498b2a0a58f7
[ "MIT" ]
29
2015-07-19T04:25:07.000Z
2019-08-19T12:52:21.000Z
tests/conftest.py
maisonsakamoto/receita-tools
feddfdd4ef0450cb9d16832d0a40498b2a0a58f7
[ "MIT" ]
5
2015-07-29T22:48:36.000Z
2018-10-08T13:53:07.000Z
import os import sys import pytest # Add module to the path base = os.path.abspath(os.path.dirname(__file__)) sys.path.insert(0, (os.path.join(base, '..'))) # Create resources path resources = os.path.join(base, 'resources') @pytest.fixture def response(): class Response(object): def __init__(self, cn...
19.913043
51
0.594978
2080353273cd43426dbc8c4094941a3f55f2183a
159
py
Python
contrib/wallettools/walletunlock.py
equitrader/Equitrader
496d9d9a86b059ec20e958e91e462dda1b0a7bef
[ "MIT" ]
4
2017-08-08T10:44:23.000Z
2018-05-23T11:10:12.000Z
contrib/wallettools/walletunlock.py
equitrader/Equitrader
496d9d9a86b059ec20e958e91e462dda1b0a7bef
[ "MIT" ]
1
2017-09-22T10:20:03.000Z
2017-09-22T10:20:03.000Z
contrib/wallettools/walletunlock.py
equitrader/Equitrader
496d9d9a86b059ec20e958e91e462dda1b0a7bef
[ "MIT" ]
null
null
null
from jsonrpc import ServiceProxy access = ServiceProxy("http://127.0.0.1:12562") pwd = raw_input("Enter wallet passphrase: ") access.walletpassphrase(pwd, 60)
31.8
47
0.767296
5dc8847b099a4bcd5e36e368871e1187dcb97582
674
py
Python
saffio_wv/w2v.py
Ivorian/saffio_wv
911a3827c8aa14b6f22767590921c27d9ab723a3
[ "MIT" ]
null
null
null
saffio_wv/w2v.py
Ivorian/saffio_wv
911a3827c8aa14b6f22767590921c27d9ab723a3
[ "MIT" ]
null
null
null
saffio_wv/w2v.py
Ivorian/saffio_wv
911a3827c8aa14b6f22767590921c27d9ab723a3
[ "MIT" ]
null
null
null
import torch class W2V(torch.nn.Module): def __init__(self, tok_num, code_num): super(W2V, self).__init__() self.embd = torch.nn.Embedding( num_embeddings=tok_num, embedding_dim=code_num ) self.fc = torch.nn.Sequential( torch.nn.Linear(code_num, tok_num,...
25.923077
58
0.568249
e505a9d988dd40826ee496057433c8e6df3ca458
2,568
py
Python
setup.py
saymedia/batchhttp
4e3f51d8b28827abfd3b2d121dd8605670f2e447
[ "BSD-3-Clause" ]
7
2015-01-04T18:13:08.000Z
2021-07-29T16:44:01.000Z
setup.py
saymedia/batchhttp
4e3f51d8b28827abfd3b2d121dd8605670f2e447
[ "BSD-3-Clause" ]
1
2021-02-08T20:15:46.000Z
2021-02-08T20:15:46.000Z
setup.py
saymedia/batchhttp
4e3f51d8b28827abfd3b2d121dd8605670f2e447
[ "BSD-3-Clause" ]
3
2015-01-04T18:13:10.000Z
2021-07-29T16:44:29.000Z
#!/usr/bin/env python # Copyright (c) 2009-2010 Six Apart Ltd. # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # # * Redistributions of source code must retain the above copyright notice, # thi...
38.909091
77
0.721963
1a501e591a35d905f5fceb39c6594644e6762cf8
2,004
py
Python
py2api/examples/wrapping_a_module.py
SRHerzog/py2api
8070571b6b9e1e484df87ef716a61a9798523cc9
[ "Apache-2.0" ]
null
null
null
py2api/examples/wrapping_a_module.py
SRHerzog/py2api
8070571b6b9e1e484df87ef716a61a9798523cc9
[ "Apache-2.0" ]
null
null
null
py2api/examples/wrapping_a_module.py
SRHerzog/py2api
8070571b6b9e1e484df87ef716a61a9798523cc9
[ "Apache-2.0" ]
null
null
null
""" Say you have a module (say, operator) and you want to expose everything in it to a webservice. This shows you how you can do this in a few lines. WARNING: DO THIS AT HOME (but never on an actual prod server). --> Reason is, since you're giving access to EVERYTHING, there's ways to use the power of python to backtr...
46.604651
120
0.704591
692ce10eefaee7d76f7364a6575771f4263d0ab6
4,541
py
Python
main.py
soredive/pyWebtoon
7ca8fedb1451b9ce0309af4a3b144af6b056f76f
[ "Apache-2.0" ]
null
null
null
main.py
soredive/pyWebtoon
7ca8fedb1451b9ce0309af4a3b144af6b056f76f
[ "Apache-2.0" ]
null
null
null
main.py
soredive/pyWebtoon
7ca8fedb1451b9ce0309af4a3b144af6b056f76f
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- from NaverWebtoonCommentScraper import * from NaverWebtoonImgScraper import * from SQLite3DB import * from tkinter import * from tkinter import colorchooser from tkinter import filedialog from tkinter import messagebox database = 'sqlWebtoonComment.db' savefile = 'query.csv' ''' def SaveWebTo...
27.689024
148
0.715261
e192a9ba352d2cf738bd90033dfe49580e83a2a9
3,647
py
Python
azure-mgmt-network/azure/mgmt/network/v2016_09_01/models/application_gateway_backend_http_settings.py
v-Ajnava/azure-sdk-for-python
a1f6f80eb5869c5b710e8bfb66146546697e2a6f
[ "MIT" ]
4
2016-06-17T23:25:29.000Z
2022-03-30T22:37:45.000Z
azure/mgmt/network/v2016_09_01/models/application_gateway_backend_http_settings.py
EnjoyLifeFund/Debian_py36_packages
1985d4c73fabd5f08f54b922e73a9306e09c77a5
[ "BSD-3-Clause", "BSD-2-Clause", "MIT" ]
2
2016-09-30T21:40:24.000Z
2017-11-10T18:16:18.000Z
azure/mgmt/network/v2016_09_01/models/application_gateway_backend_http_settings.py
EnjoyLifeFund/Debian_py36_packages
1985d4c73fabd5f08f54b922e73a9306e09c77a5
[ "BSD-3-Clause", "BSD-2-Clause", "MIT" ]
3
2016-05-03T20:49:46.000Z
2017-10-05T21:05:27.000Z
# 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 ...
48.626667
201
0.676172
4df8eeec32a33cf4f27ba0e9f1ee55df7389c59c
2,232
py
Python
wallhaven.py
zengqiu/spider
029251326fb46387c6a3dd54ad534a387ebf63be
[ "BSD-2-Clause" ]
17
2015-01-31T10:32:24.000Z
2017-07-29T04:45:04.000Z
wallhaven.py
zengqiu/spider
029251326fb46387c6a3dd54ad534a387ebf63be
[ "BSD-2-Clause" ]
2
2015-05-12T15:30:24.000Z
2015-05-25T13:03:44.000Z
wallhaven.py
zengqiu/spider
029251326fb46387c6a3dd54ad534a387ebf63be
[ "BSD-2-Clause" ]
11
2015-02-10T06:57:59.000Z
2020-02-23T03:03:58.000Z
#!/usr/bin/env python #encoding: utf-8 #author: zengqiu import urllib2 import urllib from BeautifulSoup import BeautifulSoup import re import urlparse import os import socket image_path = "/home/mini/wallhaven" def spider(url): user_agent = "Mozilla/4.0 (compatible; MSIE 5.5; Windows NT)" headers = {'User-Ag...
26.571429
76
0.604839
3f8f661920bc6cc9c78a11756c684958326f91c2
3,892
py
Python
polyply/src/gen_itp.py
jan-stevens/polyply_1.0
17578a0ea546584164722129f0d718a5c9533a1a
[ "Apache-2.0" ]
null
null
null
polyply/src/gen_itp.py
jan-stevens/polyply_1.0
17578a0ea546584164722129f0d718a5c9533a1a
[ "Apache-2.0" ]
null
null
null
polyply/src/gen_itp.py
jan-stevens/polyply_1.0
17578a0ea546584164722129f0d718a5c9533a1a
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 University of Groningen # # 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 i...
38.534653
103
0.6963
19d1794c8836cacae14ae776745f25cbecc2dc10
1,417
py
Python
tools/console/upload_state.py
mindthegrow/cannlytics
c266bc1169bef75214985901cd3165f415ad9ba7
[ "MIT" ]
7
2021-05-31T15:30:22.000Z
2022-02-05T14:12:31.000Z
tools/console/upload_state.py
mindthegrow/cannlytics
c266bc1169bef75214985901cd3165f415ad9ba7
[ "MIT" ]
17
2021-06-09T01:04:27.000Z
2022-03-18T14:48:12.000Z
tools/console/upload_state.py
mindthegrow/cannlytics
c266bc1169bef75214985901cd3165f415ad9ba7
[ "MIT" ]
5
2021-06-07T13:52:33.000Z
2021-08-04T00:09:39.000Z
""" Upload State | Cannlytics Console Author: Keegan Skeate Contact: <keegan@cannlytics.com> Created: 7/5/2021 Updated: 7/5/2021 License: MIT License <https://opensource.org/licenses/MIT> """ import os import environ import sys sys.path.append('../../') from cannlytics import firebase # pylint: disable=import-error ...
33.738095
118
0.730416
4b6420e42d331bdaa2273c3f34d808c8e28c09c9
5,564
py
Python
wrappers/python/manual/virgil_crypto/common/_c_bridge/_vsc_buffer.py
odidev/virgil-crypto-c
3d5d5cb19fdcf81eab08cdc63647f040117ecbd8
[ "BSD-3-Clause" ]
26
2018-12-17T13:45:25.000Z
2022-01-16T20:00:04.000Z
wrappers/python/manual/virgil_crypto/common/_c_bridge/_vsc_buffer.py
odidev/virgil-crypto-c
3d5d5cb19fdcf81eab08cdc63647f040117ecbd8
[ "BSD-3-Clause" ]
4
2019-01-03T12:08:52.000Z
2021-12-02T05:21:13.000Z
wrappers/python/manual/virgil_crypto/common/_c_bridge/_vsc_buffer.py
odidev/virgil-crypto-c
3d5d5cb19fdcf81eab08cdc63647f040117ecbd8
[ "BSD-3-Clause" ]
8
2019-01-24T08:22:06.000Z
2022-02-07T11:37:00.000Z
from ctypes import Structure, POINTER, c_size_t, c_byte, c_bool, c_char_p from ._vsc_data import vsc_data_t from virgil_crypto._libs import LowLevelLibs # C structure wrapper class vsc_buffer_t(Structure): pass class VscBuffer(object): def __init__(self): self._lib = LowLevelLibs().phe def vs...
39.183099
82
0.721963
7b8e855f2ea275b505e69331aa15a52ba32f2593
12,750
py
Python
mtgjson5/output_generator.py
staghouse/mtgjson
da62f6399951a10f4cbc6102c419e47c31ad3b9d
[ "MIT" ]
null
null
null
mtgjson5/output_generator.py
staghouse/mtgjson
da62f6399951a10f4cbc6102c419e47c31ad3b9d
[ "MIT" ]
null
null
null
mtgjson5/output_generator.py
staghouse/mtgjson
da62f6399951a10f4cbc6102c419e47c31ad3b9d
[ "MIT" ]
null
null
null
""" MTGJSON output generator to write out contents to file & accessory methods """ import json import logging import pathlib from typing import Any, Dict, List from .classes import MtgjsonDeckHeaderObject, MtgjsonMetaObject from .compiled_classes import ( MtgjsonAllIdentifiersObject, MtgjsonAllPrintingsObject,...
30.21327
88
0.68698
6c0ab14d609593add5ed4f3c803ada39418cdacb
13,272
py
Python
keras/layers/preprocessing/hashing_test.py
Halo9Pan/dive-keras
7d4c5572fa3a9fc2542a1314d06c555f67575cb0
[ "Apache-2.0" ]
1
2021-09-11T21:25:20.000Z
2021-09-11T21:25:20.000Z
keras/layers/preprocessing/hashing_test.py
Halo9Pan/dive-keras
7d4c5572fa3a9fc2542a1314d06c555f67575cb0
[ "Apache-2.0" ]
null
null
null
keras/layers/preprocessing/hashing_test.py
Halo9Pan/dive-keras
7d4c5572fa3a9fc2542a1314d06c555f67575cb0
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 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...
41.089783
80
0.659057
ca80a04234bc9e15e603986960dcd8602ff402b2
977
py
Python
visualize/usecases/generate_wordcloud.py
RevanthRyo/Alize
60f4153c0c4b665e60c02bc90f99f833bf3173c8
[ "Unlicense" ]
160
2018-05-08T09:12:35.000Z
2021-11-08T14:45:18.000Z
visualize/usecases/generate_wordcloud.py
RevanthRyo/Alize
60f4153c0c4b665e60c02bc90f99f833bf3173c8
[ "Unlicense" ]
15
2018-05-08T09:13:53.000Z
2022-03-11T23:20:39.000Z
visualize/usecases/generate_wordcloud.py
RevanthRyo/Alize
60f4153c0c4b665e60c02bc90f99f833bf3173c8
[ "Unlicense" ]
12
2018-05-08T16:19:11.000Z
2021-11-08T14:45:58.000Z
import uuid from os import path from PIL import Image import numpy as np import matplotlib.pyplot as plt from wordcloud import WordCloud, STOPWORDS from django.conf import settings class GenerateWordCloud(object): """ docstring for GenerateWordCloud """ def execute(self, text): extract_words = ["README", "...
30.53125
112
0.715455
c6ef368ee807076881264fcb757347c98ec22bbc
7,024
py
Python
examples/example2.py
ndimubanzisenga/acoular
c7abace657d2602f9a4e9d2e4e1fabe44ec3927b
[ "BSD-3-Clause" ]
1
2019-08-30T22:45:09.000Z
2019-08-30T22:45:09.000Z
examples/example2.py
ndimubanzisenga/acoular
c7abace657d2602f9a4e9d2e4e1fabe44ec3927b
[ "BSD-3-Clause" ]
null
null
null
examples/example2.py
ndimubanzisenga/acoular
c7abace657d2602f9a4e9d2e4e1fabe44ec3927b
[ "BSD-3-Clause" ]
1
2019-08-30T03:29:09.000Z
2019-08-30T03:29:09.000Z
# -*- coding: utf-8 -*- """ Example 2 for acoular library demonstrates use of acoular for a point source moving on a circle trajectory uses synthesized data Copyright (c) 2006-2015 The Acoular developers. All rights reserved. """ import acoular print acoular.__file__ from os import path import sys ...
38.382514
81
0.542853
6a491b3b3d8508ed071b9c4876dc7cb48cc85560
9,521
py
Python
pzc/battle.py
miquelramirez/CMPzC
0022c8c27af177426a91d982d250018248a72ecf
[ "Unlicense" ]
null
null
null
pzc/battle.py
miquelramirez/CMPzC
0022c8c27af177426a91d982d250018248a72ecf
[ "Unlicense" ]
null
null
null
pzc/battle.py
miquelramirez/CMPzC
0022c8c27af177426a91d982d250018248a72ecf
[ "Unlicense" ]
null
null
null
import sys import os from oob import OrderOfBattle from units import Unit, morale_table, service_loss_type_table from locations import VictoryLocation, FortifiedLocation import n44 class Casualties : def __init__( self ) : self.losses = { 'INF':0, 'GUN':0, 'AFV':0, 'ABN':0, 'NAV':0 } self.vp...
35.659176
180
0.621468
ee71f6019db8c15c5174b865a33fc785e31438ab
1,464
py
Python
setup.py
mylibrar/stave
43145015253d0577dfc757419ad8b4fa06a04042
[ "Apache-2.0" ]
35
2020-01-29T04:21:10.000Z
2021-12-13T01:44:28.000Z
setup.py
mylibrar/stave
43145015253d0577dfc757419ad8b4fa06a04042
[ "Apache-2.0" ]
86
2020-04-17T16:36:13.000Z
2022-03-25T22:51:34.000Z
setup.py
mylibrar/stave
43145015253d0577dfc757419ad8b4fa06a04042
[ "Apache-2.0" ]
18
2020-02-04T17:40:02.000Z
2021-06-17T07:11:42.000Z
import sys from pathlib import Path import setuptools long_description = (Path(__file__).parent / "README.md").read_text() if sys.version_info < (3, 6): sys.exit('Python>=3.6 is required by Stave.') setuptools.setup( name="stave", version="0.0.2", url="https://github.com/asyml/stave", descriptio...
29.28
74
0.616803
5ee061222855d642e230531d35ccb0b04a6856ce
110,022
py
Python
ocs_ci/utility/utils.py
prsurve/ocs-ci
a8e229755e1f9d43c8c71e5ba693cb14bfb38aed
[ "MIT" ]
null
null
null
ocs_ci/utility/utils.py
prsurve/ocs-ci
a8e229755e1f9d43c8c71e5ba693cb14bfb38aed
[ "MIT" ]
null
null
null
ocs_ci/utility/utils.py
prsurve/ocs-ci
a8e229755e1f9d43c8c71e5ba693cb14bfb38aed
[ "MIT" ]
null
null
null
from functools import reduce import io import json import logging import os import platform import random import re import shlex import smtplib import string import subprocess import time import traceback import stat from copy import deepcopy from email.mime.multipart import MIMEMultipart from email.mime.text import MI...
32.454867
110
0.630065
93d92f6ccdf88e30258a68a6ab003a3107ec6033
1,026
py
Python
src/zinc/services/__init__.py
mindsnacks/Zinc
a5f39ca4c4a4894f265f1f2b61d6ea53b8db01f8
[ "MIT" ]
7
2015-01-09T07:15:18.000Z
2022-03-24T14:27:45.000Z
src/zinc/services/__init__.py
amrox/Zinc
699c81ff39549647139b6f8e1eb84566f97cf033
[ "MIT" ]
5
2018-09-04T22:56:38.000Z
2021-09-01T13:11:23.000Z
src/zinc/services/__init__.py
amrox/Zinc
699c81ff39549647139b6f8e1eb84566f97cf033
[ "MIT" ]
1
2015-09-22T13:48:25.000Z
2015-09-22T13:48:25.000Z
import logging from zinc.catalog import ZincCatalog log = logging.getLogger(__name__) ################################################################################ class ZincServiceProvider(object): pass class ZincServiceConsumer(object): def __init__(self, **kwargs): pass def create_cat...
25.65
80
0.637427
02c2e1dc78a4632254588782393bfd8a68121f5d
903
py
Python
app/core/admin.py
Ilyazv/recipe-app-api
da20425abaecb9581e78ae797bb6ce48c507c2c0
[ "MIT" ]
null
null
null
app/core/admin.py
Ilyazv/recipe-app-api
da20425abaecb9581e78ae797bb6ce48c507c2c0
[ "MIT" ]
null
null
null
app/core/admin.py
Ilyazv/recipe-app-api
da20425abaecb9581e78ae797bb6ce48c507c2c0
[ "MIT" ]
null
null
null
from django.contrib import admin from django.contrib.auth.admin import UserAdmin as BaseUserAdmin from django.utils.translation import gettext as _ from core import models class UserAdmin(BaseUserAdmin): ordering = ['id'] list_display = ['email', 'name'] fieldsets = ( (None, {'fields': ('email', ...
26.558824
67
0.574751
760d2bafe5f4956c85ef256add47359aa9712d3b
3,326
py
Python
tools/ad_map_access_qgis/ad_map_access_qgis/MapSnapper.py
woojinjjang/map-1
d12bb410f03d078a995130b4e671746ace8b6287
[ "MIT" ]
61
2019-12-19T20:57:24.000Z
2022-03-29T15:20:51.000Z
tools/ad_map_access_qgis/ad_map_access_qgis/MapSnapper.py
woojinjjang/map-1
d12bb410f03d078a995130b4e671746ace8b6287
[ "MIT" ]
54
2020-04-05T05:32:47.000Z
2022-03-15T18:42:33.000Z
tools/ad_map_access_qgis/ad_map_access_qgis/MapSnapper.py
woojinjjang/map-1
d12bb410f03d078a995130b4e671746ace8b6287
[ "MIT" ]
31
2019-12-20T07:37:39.000Z
2022-03-16T13:06:16.000Z
# ----------------- BEGIN LICENSE BLOCK --------------------------------- # # Copyright (C) 2018-2021 Intel Corporation # # SPDX-License-Identifier: MIT # # ----------------- END LICENSE BLOCK ----------------------------------- "..." import ad_map_access as ad from utility import * import Globs from qgis.gui import Q...
34.645833
83
0.564342
a530dccdf0bdaff9c683ce221256d93cabd1c26b
1,925
py
Python
dj_secret_settings/stores/from_json.py
damycra/dj_secret_settings
8ad122a58a27270ebfa280a74fa5e0e63f821e75
[ "MIT" ]
1
2021-09-10T20:06:57.000Z
2021-09-10T20:06:57.000Z
dj_secret_settings/stores/from_json.py
damycra/dj_secret_settings
8ad122a58a27270ebfa280a74fa5e0e63f821e75
[ "MIT" ]
null
null
null
dj_secret_settings/stores/from_json.py
damycra/dj_secret_settings
8ad122a58a27270ebfa280a74fa5e0e63f821e75
[ "MIT" ]
null
null
null
import json import os from typing import Any, Optional, Type from collections.abc import Mapping, Sequence from ..settings_store import BadData, DoNotCoerceBool, SettingsStore class JsonSettingsStore: """ A settings store created from a JSON encoded string """ data: dict def __init__(self, enc...
33.77193
99
0.624935
2e06a32dc800c67a70cddb8cb9f23bffe632a90e
1,677
py
Python
pyuavcan/util/_broadcast.py
wiboticalex/pyuavcan
fdada810f29db3f800bd6148a62b76a3e841346d
[ "MIT" ]
1
2020-08-14T17:55:49.000Z
2020-08-14T17:55:49.000Z
pyuavcan/util/_broadcast.py
wiboticalex/pyuavcan
fdada810f29db3f800bd6148a62b76a3e841346d
[ "MIT" ]
null
null
null
pyuavcan/util/_broadcast.py
wiboticalex/pyuavcan
fdada810f29db3f800bd6148a62b76a3e841346d
[ "MIT" ]
null
null
null
# Copyright (c) 2020 UAVCAN Consortium # This software is distributed under the terms of the MIT License. # Author: Pavel Kirienko <pavel@uavcan.org> import typing import logging R = typing.TypeVar("R") _logger = logging.getLogger(__name__) def broadcast( functions: typing.Iterable[typing.Callable[..., R]] ) -...
33.54
119
0.627311
018f52a9a1d91588bb0404b5bd579a818bd779aa
13,050
py
Python
scenic/dataset_lib/cityscapes_dataset.py
NielsRogge/scenic
4418bf4c6954fffe61d9bafc802981baa9440e49
[ "Apache-2.0" ]
1
2022-01-18T07:44:45.000Z
2022-01-18T07:44:45.000Z
scenic/dataset_lib/cityscapes_dataset.py
NielsRogge/scenic
4418bf4c6954fffe61d9bafc802981baa9440e49
[ "Apache-2.0" ]
null
null
null
scenic/dataset_lib/cityscapes_dataset.py
NielsRogge/scenic
4418bf4c6954fffe61d9bafc802981baa9440e49
[ "Apache-2.0" ]
null
null
null
# Copyright 2021 The Scenic Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in w...
36.049724
80
0.664215
14774695f8512e7c3ac303a2abb48edff6abe130
3,123
py
Python
src/PairwiseVariationMPHF.py
iqbal-lab-org/pangenome_variations
0aa8f5233bb2130b1876a5197f3ffbe7c3830601
[ "MIT" ]
null
null
null
src/PairwiseVariationMPHF.py
iqbal-lab-org/pangenome_variations
0aa8f5233bb2130b1876a5197f3ffbe7c3830601
[ "MIT" ]
9
2021-03-30T12:28:36.000Z
2022-01-13T03:28:10.000Z
src/PairwiseVariationMPHF.py
iqbal-lab-org/pangenome_variations
0aa8f5233bb2130b1876a5197f3ffbe7c3830601
[ "MIT" ]
1
2020-11-04T15:13:30.000Z
2020-11-04T15:13:30.000Z
import pickle from typing import List, Tuple import logging from src.AlleleMPHF import AlleleMPHF from src.MPHF import MPHF from src.PairwiseVariation import PairwiseVariation from src.VarifierDataframe import VarifierDataframe class PairwiseVariationMPHF(MPHF): """ This class mostly aggregates helper functi...
49.571429
121
0.727506
73418d0ab8f10e000e23d49eefa7afc2984c7606
1,987
py
Python
official/modeling/fast_training/progressive/utils.py
mcasanova1445/models
37be0fdb4abccca633bb3199a4e6f3f71cd174d9
[ "Apache-2.0" ]
1
2022-02-02T06:29:41.000Z
2022-02-02T06:29:41.000Z
official/modeling/fast_training/progressive/utils.py
mdsaifhaider/models
7214e17eb425963ec3d0295be215d5d26deaeb32
[ "Apache-2.0" ]
8
2020-05-19T00:52:30.000Z
2020-06-04T23:57:20.000Z
official/modeling/fast_training/progressive/utils.py
mdsaifhaider/models
7214e17eb425963ec3d0295be215d5d26deaeb32
[ "Apache-2.0" ]
2
2021-10-07T04:47:04.000Z
2021-12-18T04:18:19.000Z
# Copyright 2022 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...
34.859649
80
0.751384
9fd09c59e3d3c2b1803c7b1bcf11f19d2ab5d820
19,358
py
Python
sockeye/image_captioning/train.py
shuoyangd/sockeye
8ee6fd87b0c9c6bfa691bd3efb29e2eda7219480
[ "Apache-2.0" ]
7
2019-04-10T03:06:12.000Z
2021-11-29T09:37:11.000Z
sockeye/image_captioning/train.py
shuoyangd/sockeye
8ee6fd87b0c9c6bfa691bd3efb29e2eda7219480
[ "Apache-2.0" ]
2
2018-11-13T19:08:18.000Z
2018-11-27T02:16:11.000Z
sockeye/image_captioning/train.py
shuoyangd/sockeye
8ee6fd87b0c9c6bfa691bd3efb29e2eda7219480
[ "Apache-2.0" ]
1
2020-05-05T15:55:45.000Z
2020-05-05T15:55:45.000Z
# Copyright 2018 Amazon.com, Inc. or its affiliates. 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. A copy of the License # is located at # # http://aws.amazon.com/apache2.0/ # # or in the "license" file acc...
49.382653
130
0.610497
83254880b56babfce4324d9aa01f0994da6ae7f1
236
py
Python
Hackerrank/Python/List Comprehensions.py
willingtonortiz/CPSolutions
66c48995ba0f8658e000a1ef828ab5759549975e
[ "MIT" ]
null
null
null
Hackerrank/Python/List Comprehensions.py
willingtonortiz/CPSolutions
66c48995ba0f8658e000a1ef828ab5759549975e
[ "MIT" ]
null
null
null
Hackerrank/Python/List Comprehensions.py
willingtonortiz/CPSolutions
66c48995ba0f8658e000a1ef828ab5759549975e
[ "MIT" ]
null
null
null
if __name__ == '__main__': x = int(raw_input()) y = int(raw_input()) z = int(raw_input()) n = int(raw_input()) print([[i, j, k] for i in range(x + 1) for j in range(y + 1) for k in range(z + 1) if (i + j + k != n)])
33.714286
108
0.521186
59f738cbd49e2384f091c75ee80688a6e59862c4
421
py
Python
app/importers/base.py
OPEN-NEXT/import-export
db3e720f29cdc30846667f7cd6ba3cc653146fc4
[ "MIT" ]
null
null
null
app/importers/base.py
OPEN-NEXT/import-export
db3e720f29cdc30846667f7cd6ba3cc653146fc4
[ "MIT" ]
25
2021-03-09T15:27:44.000Z
2021-06-09T10:09:43.000Z
app/importers/base.py
wikifactory/import-export
f7775d52d23b06a47cdaad13ae48e7727bb850fd
[ "MIT" ]
null
null
null
from sqlalchemy.orm import Session from app.schemas.manifest import ManifestInput class BaseImporter: def __init__(self, db: Session, job_id: str): raise NotImplementedError() def process(self) -> None: raise NotImplementedError() def populate_project_description(self, manifest_input: M...
22.157895
82
0.729216
4db9dd4c7debb479437fd4d34fb366c758491e26
2,049
py
Python
Network Automation/Router/Mikrotik/Basic_Configure.py
kuhakuu04/Network_Automation
f3eb99943e569f3311233f437ea17cd1862e3dc9
[ "Apache-2.0" ]
null
null
null
Network Automation/Router/Mikrotik/Basic_Configure.py
kuhakuu04/Network_Automation
f3eb99943e569f3311233f437ea17cd1862e3dc9
[ "Apache-2.0" ]
null
null
null
Network Automation/Router/Mikrotik/Basic_Configure.py
kuhakuu04/Network_Automation
f3eb99943e569f3311233f437ea17cd1862e3dc9
[ "Apache-2.0" ]
null
null
null
#set basic configure for router can access internet def Set_Basic_Access(internet_port=""): ''' set port for internet access and automation dhcp client ''' access_internet = ( 'ip firewall nat add chain=srcnat action=masquerade out-interface='+ internet_port ) return access_internet ...
31.045455
99
0.643729
d98d575d22cb432f853d24322c3b2e7752c66d1d
4,462
py
Python
fn_portal/tests/pydantic_schemas/test_FN123.py
AdamCottrill/FishNetPortal
4e58e05f52346ac1ab46698a03d4229c74828406
[ "MIT" ]
null
null
null
fn_portal/tests/pydantic_schemas/test_FN123.py
AdamCottrill/FishNetPortal
4e58e05f52346ac1ab46698a03d4229c74828406
[ "MIT" ]
null
null
null
fn_portal/tests/pydantic_schemas/test_FN123.py
AdamCottrill/FishNetPortal
4e58e05f52346ac1ab46698a03d4229c74828406
[ "MIT" ]
null
null
null
"""============================================================= c:/Users/COTTRILLAD/1work/Python/pydantic_playground/tests/test_FN123.py Created: 26 Aug 2021 16:43:50 DESCRIPTION: A suite of unit tests to ensure that the Pydantic model for FN123 objects validate as expected. The script includes: 1. a d...
21.980296
90
0.579561
380db94799c70a61846419afe5d9be64d4b4dcf0
11,063
py
Python
examples/lenovo_ssl_certificate_import.py
samerhaj/python-redfish-lenovo
ec37e01e56937bf1389731f84d5d70914f798788
[ "Apache-2.0" ]
56
2017-10-12T23:47:27.000Z
2022-03-17T08:58:24.000Z
examples/lenovo_ssl_certificate_import.py
samerhaj/python-redfish-lenovo
ec37e01e56937bf1389731f84d5d70914f798788
[ "Apache-2.0" ]
38
2018-09-06T12:29:01.000Z
2022-03-11T15:36:27.000Z
examples/lenovo_ssl_certificate_import.py
samerhaj/python-redfish-lenovo
ec37e01e56937bf1389731f84d5d70914f798788
[ "Apache-2.0" ]
34
2018-04-23T03:44:03.000Z
2022-03-19T19:59:12.000Z
### # # Lenovo Redfish examples - import ssl certificate that is signed via CA by CSR(certificate signing request) # # Copyright Notice: # # Copyright 2020 Lenovo Corporation # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may ob...
45.155102
298
0.619091
e216f633f336b244d804d44fea05d74706d88538
2,503
py
Python
bucket/bucket/settings.py
TheBricksThatHacked/DjanoAPI
4e3dbbd074096b7aec7c195e0239607ab9c84daf
[ "MIT" ]
3
2015-08-03T01:49:32.000Z
2021-05-11T00:13:54.000Z
bucket/bucket/settings.py
TheBricksThatHacked/DjanoAPI
4e3dbbd074096b7aec7c195e0239607ab9c84daf
[ "MIT" ]
9
2015-05-12T14:05:43.000Z
2019-07-06T01:00:05.000Z
bucket/bucket/settings.py
TheBricksThatHacked/DjangoAPI
4e3dbbd074096b7aec7c195e0239607ab9c84daf
[ "MIT" ]
null
null
null
""" Django settings for bucket project. For more information on this file, see https://docs.djangoproject.com/en/1.7/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/1.7/ref/settings/ """ # Build paths inside the project like this: os.path.join(BASE_DIR, ...) im...
24.067308
77
0.730324
32095d493aa2af96783d37c8ed4a90adc464cc61
1,755
py
Python
process_dataset.py
TheZepto/Car_Counter
a2ce003a7e72534b749b8fea4bada4b32609ea3f
[ "Apache-2.0" ]
1
2021-12-23T05:51:00.000Z
2021-12-23T05:51:00.000Z
process_dataset.py
TheZepto/Car_Counter
a2ce003a7e72534b749b8fea4bada4b32609ea3f
[ "Apache-2.0" ]
null
null
null
process_dataset.py
TheZepto/Car_Counter
a2ce003a7e72534b749b8fea4bada4b32609ea3f
[ "Apache-2.0" ]
1
2019-05-18T00:18:15.000Z
2019-05-18T00:18:15.000Z
import numpy as np import itertools from random import shuffle def compile_datafiles(data_range): X0_list = list([]) X1_list = list([]) for i, j in itertools.product(range(data_range[0]), range(data_range[1])): file = str(i) + str(j) X0_file = 'classified_arrays/'+file+'_X0.npy' X1...
27.421875
78
0.652422
7d9cd786c7251d985f2b2568a7f59ed6914566c6
834
py
Python
api_basebone/const/field_map.py
git-men/bsm-django
46d1fcbd8ca379d20a3396fd7ea529ccf998f59d
[ "MIT" ]
90
2020-12-07T04:49:43.000Z
2022-03-31T08:24:35.000Z
api_basebone/const/field_map.py
flyowl/lightning
946c98986c1c42bf8c28f203cdf8512262283c25
[ "MIT" ]
4
2021-01-11T16:10:55.000Z
2022-02-18T12:13:23.000Z
api_basebone/const/field_map.py
flyowl/lightning
946c98986c1c42bf8c28f203cdf8512262283c25
[ "MIT" ]
16
2020-12-07T12:32:05.000Z
2022-01-30T05:36:51.000Z
from rest_framework import fields from api_basebone.core import drf_field from api_basebone.export.specs import FieldType # 计算字段的类型和序列化字段的映射 ComputedFieldTypeSerializerMap = { FieldType.STRING: fields.CharField, FieldType.INTEGER: fields.IntegerField, FieldType.BOOL: fields.BooleanField, FieldType.TEX...
30.888889
54
0.786571
8abd6e7f84f76886b325db3f2da6c1fad47dbb6a
2,889
py
Python
socialcops/api/app/models.py
yutiansut/Long-Running-Jobs-Manager
ed12bebb7872b95e1f65548be4a00715f2ad47a6
[ "MIT" ]
1
2019-09-15T19:52:10.000Z
2019-09-15T19:52:10.000Z
socialcops/api/app/models.py
yutiansut/Long-Running-Jobs-Manager
ed12bebb7872b95e1f65548be4a00715f2ad47a6
[ "MIT" ]
null
null
null
socialcops/api/app/models.py
yutiansut/Long-Running-Jobs-Manager
ed12bebb7872b95e1f65548be4a00715f2ad47a6
[ "MIT" ]
1
2019-09-15T19:53:04.000Z
2019-09-15T19:53:04.000Z
from app import db from flask import Flask, url_for # Task Model Definition class Task(db.Model): __tablename__ = 'tasks' id = db.Column(db.String(36), primary_key=True) operation = db.Column(db.String(30), index=True) state = db.Column(db.String(30), index=True) complete = db.Column(db.Boolean, de...
35.231707
86
0.669782
92664b7d9418361527c0ecf5090ae70454c23fe0
2,331
py
Python
server_app/helpers/search1_serving.py
enjoybeta/ProjectHash
24c7de674543c4b9ce51b566798656e21e8d1813
[ "MIT" ]
null
null
null
server_app/helpers/search1_serving.py
enjoybeta/ProjectHash
24c7de674543c4b9ce51b566798656e21e8d1813
[ "MIT" ]
null
null
null
server_app/helpers/search1_serving.py
enjoybeta/ProjectHash
24c7de674543c4b9ce51b566798656e21e8d1813
[ "MIT" ]
2
2018-05-09T02:10:07.000Z
2018-08-16T02:45:25.000Z
import sys import json import cassandra from cassandra.cluster import Cluster ''' python function that return json file based on a numberofserving search in database @request: json object of input data (numberofserving, having, not_having) ''' def search_serving(request): #create connection to database cluster...
31.931507
87
0.707851
c9b738cd6f44c49b4ebb9d2b18d00439abb9d9ef
618
py
Python
requests-example.py
jamesacampbell/python-examples
03b8c0ec33bd0a6ef08b6d7469874e6e92112a0a
[ "MIT" ]
39
2016-01-28T18:46:08.000Z
2021-03-29T21:54:37.000Z
requests-example.py
jamesacampbell/python-examples
03b8c0ec33bd0a6ef08b6d7469874e6e92112a0a
[ "MIT" ]
1
2019-06-19T20:23:36.000Z
2019-07-03T14:07:57.000Z
requests-example.py
jamesacampbell/python-examples
03b8c0ec33bd0a6ef08b6d7469874e6e92112a0a
[ "MIT" ]
25
2016-01-28T18:46:30.000Z
2021-07-02T15:02:58.000Z
# Author: James Campbell # What: requests example that checks domain for RSS feed import requests from bs4 import BeautifulSoup def get_rss_feed(website_url): """Get RSS feed.""" if website_url is None: print("URL should not be null") else: source_code = requests.get(website_url) p...
29.428571
75
0.63754
d70b70f388c22635479e217c39b49d8f8eb7ebbd
1,593
gyp
Python
binding.gyp
mikaelsahlstrom/sse4_crc32
15cf479892911afa4bfed9c8952690c2afd071fb
[ "MIT" ]
57
2016-09-25T08:18:09.000Z
2022-03-27T17:29:09.000Z
binding.gyp
mikaelsahlstrom/sse4_crc32
15cf479892911afa4bfed9c8952690c2afd071fb
[ "MIT" ]
39
2015-01-14T05:12:13.000Z
2016-06-05T13:50:38.000Z
binding.gyp
mikaelsahlstrom/sse4_crc32
15cf479892911afa4bfed9c8952690c2afd071fb
[ "MIT" ]
18
2016-12-23T08:14:31.000Z
2022-02-24T18:29:05.000Z
{ "includes": [ "./common.gypi" ], "conditions":[ ['target_arch in "ia32 x32 x64 x86 x86_64"', { "targets": [{ "target_name": "sse42", "type": "static_library", "sources": [ "src/sse42.cpp" ], "xcode_settings": { ...
33.1875
79
0.350282
ac2a56420ef4b61473ea055a0ad192299fc8d99b
1,991
py
Python
outlierRemoval.py
kv6737/outlier
a5b5d2efdc0d231aeffb25581422560ebfcdd4cd
[ "MIT" ]
null
null
null
outlierRemoval.py
kv6737/outlier
a5b5d2efdc0d231aeffb25581422560ebfcdd4cd
[ "MIT" ]
null
null
null
outlierRemoval.py
kv6737/outlier
a5b5d2efdc0d231aeffb25581422560ebfcdd4cd
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Tue Feb 11 22:14:38 2020 @author: Kunal Jindal """ import sys import pandas as pd import numpy as np def remove_outlier(dataset,file="Final.csv"): data=pd.read_csv(dataset) X=data.iloc[:,:-1].values Y=data.iloc[:,-1].values numOutliers=0 ou...
25.857143
160
0.540934