hexsha
stringlengths
40
40
size
int64
4
1.02M
ext
stringclasses
8 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
209
max_stars_repo_name
stringlengths
5
121
max_stars_repo_head_hexsha
stringlengths
40
40
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
⌀
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
⌀
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
⌀
max_issues_repo_path
stringlengths
4
209
max_issues_repo_name
stringlengths
5
121
max_issues_repo_head_hexsha
stringlengths
40
40
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
⌀
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
⌀
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
⌀
max_forks_repo_path
stringlengths
4
209
max_forks_repo_name
stringlengths
5
121
max_forks_repo_head_hexsha
stringlengths
40
40
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
⌀
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
⌀
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
⌀
content
stringlengths
4
1.02M
avg_line_length
float64
1.07
66.1k
max_line_length
int64
4
266k
alphanum_fraction
float64
0.01
1
6b03be8661682364d5ef34cd2b428939fd0a6664
13,052
py
Python
user/migrations/0001_initial.py
gcivil-nyu-org/spring2021-cs-gy-9223-class
97121291c2a79dfec87c8b50e5f7e002a6020bfd
[ "MIT" ]
1
2021-02-25T23:17:27.000Z
2021-02-25T23:17:27.000Z
user/migrations/0001_initial.py
xiaodan-tang/sprint2021-team-1-repo
cb3595d808e47bb9ff77b432213ffa5d45593dff
[ "MIT" ]
102
2021-03-01T21:57:35.000Z
2021-04-28T21:36:57.000Z
user/migrations/0001_initial.py
gcivil-nyu-org/spring2021-cs-gy-9223-class
97121291c2a79dfec87c8b50e5f7e002a6020bfd
[ "MIT" ]
5
2021-02-25T22:31:41.000Z
2021-11-21T21:56:30.000Z
# Generated by Django 3.1.7 on 2021-04-12 16:05 import datetime from django.conf import settings import django.contrib.auth.models import django.contrib.auth.validators from django.db import migrations, models import django.db.models.deletion import django.utils.timezone import phonenumber_field.modelfields class Mi...
67.979167
1,480
0.618143
0c1cee1d2f7286d87f8e94259b7d500ff968510b
6,563
py
Python
main.py
luguo124/gitee-pages-action
7fc438c508df7e22985dfd5c589d69301b3d55f0
[ "MIT" ]
null
null
null
main.py
luguo124/gitee-pages-action
7fc438c508df7e22985dfd5c589d69301b3d55f0
[ "MIT" ]
null
null
null
main.py
luguo124/gitee-pages-action
7fc438c508df7e22985dfd5c589d69301b3d55f0
[ "MIT" ]
null
null
null
import base64 import os import random import re import requests import rsa PUBLIC_KEY = """-----BEGIN PUBLIC KEY----- MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDIrn+WB2Yi4ABAL5Tq6E09tumY qVTFdpU01kCDUmClczJOCGZriLNMrshmN9NJxazpqizPthwS1OIK3HwRLEP9D3GL 7gCnvN6lpIpoVwppWd65f/rK2ewv6dstN0fCmtVj4WsLUchWlgNuVTfWljiBK/Dc Ykfsl...
41.01875
78
0.556148
13e8f21df6a87788084bb994d9bc3dd2ac0f52d9
3,361
py
Python
fast_style_transfer.py
evsmithx/neural-style-keras
9d4744beaa684279aa18acd191aeab07697d0937
[ "MIT" ]
null
null
null
fast_style_transfer.py
evsmithx/neural-style-keras
9d4744beaa684279aa18acd191aeab07697d0937
[ "MIT" ]
null
null
null
fast_style_transfer.py
evsmithx/neural-style-keras
9d4744beaa684279aa18acd191aeab07697d0937
[ "MIT" ]
null
null
null
''' Use a trained pastiche net to stylize images. ''' from __future__ import print_function import os import argparse import numpy as np import tensorflow as tf import keras import keras.backend as K from utils import config_gpu, preprocess_image_scale, deprocess_image import h5py import yaml import time # from scip...
38.193182
100
0.656947
bf8c243cdd29303ef318a63defcdbcc39d611e81
407
py
Python
coursecompanion/wsgi.py
Neo945/CourseCompanion
697169e813dc2e5769a514ba525aa01ce1b067ca
[ "MIT" ]
null
null
null
coursecompanion/wsgi.py
Neo945/CourseCompanion
697169e813dc2e5769a514ba525aa01ce1b067ca
[ "MIT" ]
null
null
null
coursecompanion/wsgi.py
Neo945/CourseCompanion
697169e813dc2e5769a514ba525aa01ce1b067ca
[ "MIT" ]
1
2021-04-05T13:34:50.000Z
2021-04-05T13:34:50.000Z
""" WSGI config for coursecompanion 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/3.1/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault('DJAN...
23.941176
78
0.793612
df90a870ff0072408b2bf2fc1d4af62994060bd0
4,771
py
Python
pysnmp/BW-ClientManagementProfileServerFault.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
11
2021-02-02T16:27:16.000Z
2021-08-31T06:22:49.000Z
pysnmp/BW-ClientManagementProfileServerFault.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
75
2021-02-24T17:30:31.000Z
2021-12-08T00:01:18.000Z
pysnmp/BW-ClientManagementProfileServerFault.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
10
2019-04-30T05:51:36.000Z
2022-02-16T03:33:41.000Z
# # PySNMP MIB module BW-ClientManagementProfileServerFault (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/BW-ClientManagementProfileServerFault # Produced by pysmi-0.3.4 at Mon Apr 29 17:25:03 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 #...
170.392857
477
0.79082
95817ca63d52285d0a320710a0a5e16f532192b8
21,164
py
Python
model-optimizer/mo/front/kaldi/loader/loader.py
fujunwei/dldt
09497b7724de4be92629f7799b8538b483d809a2
[ "Apache-2.0" ]
null
null
null
model-optimizer/mo/front/kaldi/loader/loader.py
fujunwei/dldt
09497b7724de4be92629f7799b8538b483d809a2
[ "Apache-2.0" ]
null
null
null
model-optimizer/mo/front/kaldi/loader/loader.py
fujunwei/dldt
09497b7724de4be92629f7799b8538b483d809a2
[ "Apache-2.0" ]
null
null
null
""" Copyright (C) 2018-2020 Intel Corporation Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to i...
42.243513
116
0.625685
303f694896a58657293e5650a473c97420153626
18,698
py
Python
python/tvm/relay/_parser.py
ttyang1018/tvm
ade26cacd0767cf14dc053ac4d7778859f83a32c
[ "Apache-2.0" ]
16
2019-11-20T03:43:19.000Z
2021-11-25T02:32:17.000Z
python/tvm/relay/_parser.py
ttyang1018/tvm
ade26cacd0767cf14dc053ac4d7778859f83a32c
[ "Apache-2.0" ]
2
2020-02-20T10:01:48.000Z
2021-08-21T02:23:57.000Z
python/tvm/relay/_parser.py
ttyang1018/tvm
ade26cacd0767cf14dc053ac4d7778859f83a32c
[ "Apache-2.0" ]
5
2020-03-18T10:14:30.000Z
2021-04-01T12:09:20.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 u...
33.152482
96
0.619906
f9bb32e252ffb5e2c37c435c624ba5aea4d2f0e0
24,688
py
Python
nova/objects/flavor.py
hashsos/hashcloudos-nova
8350f20167f256f740c5bb94f9222c95fa3e32ad
[ "Apache-2.0" ]
null
null
null
nova/objects/flavor.py
hashsos/hashcloudos-nova
8350f20167f256f740c5bb94f9222c95fa3e32ad
[ "Apache-2.0" ]
null
null
null
nova/objects/flavor.py
hashsos/hashcloudos-nova
8350f20167f256f740c5bb94f9222c95fa3e32ad
[ "Apache-2.0" ]
1
2020-07-22T21:17:41.000Z
2020-07-22T21:17:41.000Z
# Copyright 2013 Red Hat, Inc # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ag...
39.627608
79
0.621841
9fca63dc3b28a4467bbca1ded5a33cfe7135189f
2,365
py
Python
whales_model.py
avain/DeepLearningTutorial
423de3f4595a357167e01e9145b5147c611976bc
[ "MIT" ]
1
2018-07-03T08:30:24.000Z
2018-07-03T08:30:24.000Z
whales_model.py
avain/DeepLearningTutorial
423de3f4595a357167e01e9145b5147c611976bc
[ "MIT" ]
null
null
null
whales_model.py
avain/DeepLearningTutorial
423de3f4595a357167e01e9145b5147c611976bc
[ "MIT" ]
null
null
null
from keras.models import Sequential from keras.layers import Flatten,Dense,Conv2D,MaxPooling2D from keras.engine import Layer import keras.backend as K def my_ConvNet(input_shape): model = Sequential() #conv1 model.add(Conv2D(filters=96, kernel_size=(11, 11), strides=2, ...
29.936709
65
0.52093
79c562684d511fa9cc2a7fb25a99e80f65a995fa
3,741
py
Python
github_jobs/main.py
sonegishi/scraping
95ca84f005f8db69bb6604eb9fb105507346a7bb
[ "MIT" ]
null
null
null
github_jobs/main.py
sonegishi/scraping
95ca84f005f8db69bb6604eb9fb105507346a7bb
[ "MIT" ]
null
null
null
github_jobs/main.py
sonegishi/scraping
95ca84f005f8db69bb6604eb9fb105507346a7bb
[ "MIT" ]
null
null
null
from datetime import date, timedelta import re from bs4 import BeautifulSoup import requests class Job(object): '''Stores per job data. Attributes: position: Position title. description_link: Description link. company_name: Company name. company_url: Company URL. job_...
32.530435
109
0.57792
f2e22c6b0a016c67ae5405826355443e0201aadd
660
py
Python
jpchar/sortCharactersDic.py
riku22/nvdajp
66a828ea89d317e4aa0ad2aed4b3b1e08920afb6
[ "bzip2-1.0.6" ]
19
2016-05-11T05:15:31.000Z
2022-03-17T12:40:10.000Z
jpchar/sortCharactersDic.py
riku22/nvdajp
66a828ea89d317e4aa0ad2aed4b3b1e08920afb6
[ "bzip2-1.0.6" ]
307
2015-08-27T11:22:33.000Z
2022-03-29T10:43:34.000Z
jpchar/sortCharactersDic.py
riku22/nvdajp
66a828ea89d317e4aa0ad2aed4b3b1e08920afb6
[ "bzip2-1.0.6" ]
14
2016-03-28T07:31:49.000Z
2022-03-30T04:56:35.000Z
# coding: utf-8 # source/local/ja/characters.dic を Unicode 番号順に並べる from __future__ import print_function, unicode_literals import csv import unicodedata from _checkCharDesc import read_characters_file FILENAME = r'..\source\locale\ja\characters.dic' with open(FILENAME) as file: items = {} for src in ...
21.290323
56
0.619697
bc05933a5b38f97ea4b0a561cf9da8c992a9123a
1,252
py
Python
ch11/ch11_1.py
denislavdenov/python-book
7376a2cb81c94e8a75fa03163ecc51180f9eb8ab
[ "MIT" ]
null
null
null
ch11/ch11_1.py
denislavdenov/python-book
7376a2cb81c94e8a75fa03163ecc51180f9eb8ab
[ "MIT" ]
null
null
null
ch11/ch11_1.py
denislavdenov/python-book
7376a2cb81c94e8a75fa03163ecc51180f9eb8ab
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 from typing import Set, TextIO from io import StringIO def observe_birds(observations_file: TextIO) -> Set[str]: birds_observed = set() for line in observations_file: bird = line.strip() birds_observed.add(bird) for species in birds_observed: print(spec...
21.220339
111
0.698882
14c4da0ec33375ad2d3645ae686b7dc768fdf60a
115
py
Python
api/api.py
japan-api/api
7669d9abc55822dd7baa264d20abd1786581aeb7
[ "MIT" ]
27
2020-09-17T11:11:09.000Z
2021-10-07T21:58:24.000Z
api/api.py
irevenko/japan-api
80ab37bbe2758c5c1a5274f403c5626525cdb39c
[ "MIT" ]
2
2021-04-06T18:09:55.000Z
2021-06-02T02:22:02.000Z
api/api.py
irevenko/japan-api
80ab37bbe2758c5c1a5274f403c5626525cdb39c
[ "MIT" ]
2
2021-01-21T03:20:41.000Z
2021-02-01T20:02:31.000Z
from flask import Flask app = Flask(__name__) from routes import * if __name__ == 'main': app.run()
12.777778
24
0.626087
4f285f2ade195b3d51026ec86c7d8d3b3003024d
8,460
py
Python
tests/test_snippets.py
fernandobrito/diff_cover
fc4be9767ebd5c31d29c34d1720c8fe2ad5f00ca
[ "Apache-2.0" ]
276
2019-07-08T10:11:46.000Z
2022-03-30T09:36:28.000Z
tests/test_snippets.py
fernandobrito/diff_cover
fc4be9767ebd5c31d29c34d1720c8fe2ad5f00ca
[ "Apache-2.0" ]
153
2019-06-30T19:55:51.000Z
2022-03-25T19:12:04.000Z
tests/test_snippets.py
fernandobrito/diff_cover
fc4be9767ebd5c31d29c34d1720c8fe2ad5f00ca
[ "Apache-2.0" ]
73
2019-08-14T10:06:44.000Z
2022-03-14T00:38:55.000Z
# pylint: disable=missing-function-docstring """Test for diff_cover.snippets""" import os import pytest from pygments.token import Token from diff_cover.git_path import GitPathTool from diff_cover.snippets import Snippet from tests.helpers import fixture_path, load_fixture SRC_TOKENS = [ (Token.Comment, "# Tes...
27.828947
84
0.668558
c8c741155b07f6adde535939d54e41e91965a7fe
1,204
py
Python
grapher.py
niebardzo/Power_Control
d809dac220de0436cc3924401b5492fc7fcf142a
[ "MIT" ]
null
null
null
grapher.py
niebardzo/Power_Control
d809dac220de0436cc3924401b5492fc7fcf142a
[ "MIT" ]
null
null
null
grapher.py
niebardzo/Power_Control
d809dac220de0436cc3924401b5492fc7fcf142a
[ "MIT" ]
null
null
null
import sqlite3 import matplotlib.pyplot as plt import sys def db_read(start, end, ms): """Function connects to database with measurements history and fetch data from it, data is initially filtered by SQL querry and then filtered again, due to python3 well implemented string comparison Input: start...
28
86
0.602159
fafe60393ed4b460b69f31e04d57261ecb82d0f9
8,526
py
Python
nets/temporal_warp.py
SauravMaheshkar/meta-pretraining
e64ded04f31eb45781641b2bf9c5cba1bb786113
[ "Apache-2.0" ]
null
null
null
nets/temporal_warp.py
SauravMaheshkar/meta-pretraining
e64ded04f31eb45781641b2bf9c5cba1bb786113
[ "Apache-2.0" ]
12
2022-01-06T21:19:52.000Z
2022-03-15T08:46:00.000Z
nets/temporal_warp.py
SauravMaheshkar/meta-pretraining
e64ded04f31eb45781641b2bf9c5cba1bb786113
[ "Apache-2.0" ]
null
null
null
from typing import List, Sequence, Tuple import numpy as np import torch import torch.nn as nn import torch.nn.functional as F from scipy.ndimage import gaussian_filter1d __all__ = ["RandWarpAugLearnExMag"] # ======================== SpatialTransformer ======================== # class SpatialTransformer(nn.Module)...
32.295455
96
0.571311
b069db8b54af6586a5d755d7a05afc5fcf48ce97
5,756
py
Python
demo/utils/npz2pt.py
haiyangxue/fairseq
b142ceec20d69130aea823054b193a0d04a780e3
[ "MIT" ]
null
null
null
demo/utils/npz2pt.py
haiyangxue/fairseq
b142ceec20d69130aea823054b193a0d04a780e3
[ "MIT" ]
null
null
null
demo/utils/npz2pt.py
haiyangxue/fairseq
b142ceec20d69130aea823054b193a0d04a780e3
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) 2017-present, Facebook, Inc. # All rights reserved. # # This source code is licensed under the license found in the LICENSE file in # the root directory of this source tree. An additional grant of patent rights # can be found in the PATENTS file in the same directory. import argp...
38.891892
136
0.622655
f7f15e2d7325219161153d5165741493a537f886
1,596
py
Python
dj_diabetes/forms/appointments.py
foxmask/dj-diabetes
f19487cb1d4a251f03c1ba3772a01d7666b194a4
[ "BSD-3-Clause" ]
57
2015-10-30T17:09:25.000Z
2022-02-21T01:25:08.000Z
dj_diabetes/forms/appointments.py
shuvro-zz/dj-diabetes
999f55421b2ca9e4170df1f1c974393f657e9b53
[ "BSD-3-Clause" ]
11
2015-04-09T19:33:04.000Z
2018-01-26T10:33:47.000Z
dj_diabetes/forms/appointments.py
foxmask/dj-diabetes
f19487cb1d4a251f03c1ba3772a01d7666b194a4
[ "BSD-3-Clause" ]
14
2016-04-04T21:05:17.000Z
2022-02-15T07:20:06.000Z
# coding: utf-8 from dj_diabetes.models.appointments import Appointments from django import forms class AppointmentsForm(forms.ModelForm): """ Appointments Form """ # to " suit " the HTML textearea title = forms.CharField(widget=forms.TextInput( attrs={'class': 'form-control'})) b...
40.923077
79
0.64787
b04c6209028636b0e0cc309fd3252d2309870477
1,417
py
Python
install/app_store/tk-multi-workfiles2/v0.9.9/hooks/filter_publishes.py
JoanAzpeitia/lp_sg
e0ee79555e419dd2ae3a5f31e5515b3f40b22a62
[ "MIT" ]
4
2019-01-11T03:41:28.000Z
2019-09-12T06:57:17.000Z
bundle_cache/app_store/tk-multi-workfiles2/v0.11.6/hooks/filter_publishes.py
ColinKennedy/tk-config-default2-respawn
855fb8033daa549b92615792442f19a7f9c4f55c
[ "Linux-OpenIB" ]
null
null
null
bundle_cache/app_store/tk-multi-workfiles2/v0.11.6/hooks/filter_publishes.py
ColinKennedy/tk-config-default2-respawn
855fb8033daa549b92615792442f19a7f9c4f55c
[ "Linux-OpenIB" ]
2
2019-01-10T05:00:18.000Z
2020-02-15T16:32:56.000Z
# Copyright (c) 2015 Shotgun Software Inc. # # CONFIDENTIAL AND PROPRIETARY # # This work is provided "AS IS" and subject to the Shotgun Pipeline Toolkit # Source Code License included in this distribution package. See LICENSE. # By accessing, using, copying or modifying this work you indicate your # agreement to the S...
33.738095
104
0.623853
d9f423653f93a96e0faea3eecff406fa53d6c7b0
28,526
py
Python
ipgen/ipgen.py
PyHDI/ipgen
811bdcfae61c6003dfc5f9b90ba7660a6f74a109
[ "Apache-2.0" ]
20
2015-11-13T02:01:18.000Z
2021-11-22T01:50:37.000Z
ipgen/ipgen.py
PyHDI/ipgen
811bdcfae61c6003dfc5f9b90ba7660a6f74a109
[ "Apache-2.0" ]
1
2018-11-01T15:14:18.000Z
2018-11-01T15:14:18.000Z
ipgen/ipgen.py
PyHDI/ipgen
811bdcfae61c6003dfc5f9b90ba7660a6f74a109
[ "Apache-2.0" ]
5
2017-04-11T04:33:57.000Z
2019-02-07T06:41:31.000Z
#------------------------------------------------------------------------- # ipgen.py # # IPgen: IP-core package generator for AXI4/Avalon # # Copyright (C) 2013, Shinya Takamaeda-Yamazaki # License: Apache 2.0 #------------------------------------------------------------------------- from __future__ import absolute_i...
39.023256
86
0.513847
955f4d840d03fda25d69a46cc5f66d01a6ff978e
4,061
py
Python
testflows/_core/transform/log/report/fails.py
testflows/TestFlows-Core
0aa17247dffd2f7199465031ab16cc4f12c9cfb0
[ "Apache-2.0" ]
3
2020-06-25T19:23:19.000Z
2021-10-20T19:29:56.000Z
testflows/_core/transform/log/report/fails.py
testflows/TestFlows-Core
0aa17247dffd2f7199465031ab16cc4f12c9cfb0
[ "Apache-2.0" ]
null
null
null
testflows/_core/transform/log/report/fails.py
testflows/TestFlows-Core
0aa17247dffd2f7199465031ab16cc4f12c9cfb0
[ "Apache-2.0" ]
1
2020-02-24T12:31:45.000Z
2020-02-24T12:31:45.000Z
# Copyright 2019 Katteli Inc. # TestFlows.com Open-Source Software Testing Framework (http://testflows.com) # # 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/lice...
32.488
83
0.621276
31ff6dd3dcbe8abe9ecc92e846758499d1e31821
3,868
py
Python
selfdrive/controls/lib/latcontrol_indi.py
archlyga/openpilot-1
8ea26c5888d71400cc4a33752bb7cfdcea662edb
[ "MIT" ]
2
2019-07-13T18:34:23.000Z
2019-10-11T00:23:58.000Z
selfdrive/controls/lib/latcontrol_indi.py
archlyga/openpilot-1
8ea26c5888d71400cc4a33752bb7cfdcea662edb
[ "MIT" ]
null
null
null
selfdrive/controls/lib/latcontrol_indi.py
archlyga/openpilot-1
8ea26c5888d71400cc4a33752bb7cfdcea662edb
[ "MIT" ]
2
2019-07-14T13:58:10.000Z
2020-03-18T02:58:19.000Z
import math import numpy as np from cereal import log from common.realtime import DT_CTRL from common.numpy_fast import clip from selfdrive.car.toyota.carcontroller import SteerLimitParams from selfdrive.car import apply_toyota_steer_torque_limits from selfdrive.controls.lib.drive_helpers import get_steer_max class ...
36.490566
149
0.668563
ac5991dc967a2aae16bd1adc9c4d2e76041d95b3
3,926
py
Python
flink-python/pyflink/table/__init__.py
PrachiPrakash/flink
6d7a15e328e8af6f001d6191c3f167bd8038bf14
[ "Apache-2.0" ]
1
2020-05-12T09:30:56.000Z
2020-05-12T09:30:56.000Z
flink-python/pyflink/table/__init__.py
PrachiPrakash/flink
6d7a15e328e8af6f001d6191c3f167bd8038bf14
[ "Apache-2.0" ]
1
2019-06-07T13:04:18.000Z
2019-06-07T13:04:18.000Z
flink-python/pyflink/table/__init__.py
PrachiPrakash/flink
6d7a15e328e8af6f001d6191c3f167bd8038bf14
[ "Apache-2.0" ]
null
null
null
################################################################################ # 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...
44.11236
94
0.698166
3be3f81db9685bf3cdcc3f3472b82a4103bf910e
2,437
py
Python
doc/conf.py
Madricas/sphinxcontrib-programoutput
93f620beb7dfae34dbe332cc8c5df080ea2e89e1
[ "BSD-2-Clause" ]
null
null
null
doc/conf.py
Madricas/sphinxcontrib-programoutput
93f620beb7dfae34dbe332cc8c5df080ea2e89e1
[ "BSD-2-Clause" ]
null
null
null
doc/conf.py
Madricas/sphinxcontrib-programoutput
93f620beb7dfae34dbe332cc8c5df080ea2e89e1
[ "BSD-2-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright (c) 2011, Sebastian Wiesner <lunaryorn@gmail.com> # All rights reserved. # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # 1. Redistributions of source code must retain the above copy...
36.373134
85
0.731227
9fd4885e9fb105ab7a56466c50d57f0af7d068a6
28
py
Python
Measure/regionprops_table.py
Joevaen/Scikit-image_On_CT
e3bf0eeadc50691041b4b7c44a19d07546a85001
[ "Apache-2.0" ]
null
null
null
Measure/regionprops_table.py
Joevaen/Scikit-image_On_CT
e3bf0eeadc50691041b4b7c44a19d07546a85001
[ "Apache-2.0" ]
null
null
null
Measure/regionprops_table.py
Joevaen/Scikit-image_On_CT
e3bf0eeadc50691041b4b7c44a19d07546a85001
[ "Apache-2.0" ]
null
null
null
# 计算图像属性,并将其作为与Pandas兼容的表返回。
28
28
0.857143
7db986026624302e170b75d541a74912fcee8eb7
531
py
Python
01-About_file_practice_option/04-about_openpyxl_read_excel.py
jiaxiaochu/spider
4b0f751f76a31556a91dea719873cf2979e4be94
[ "MIT" ]
null
null
null
01-About_file_practice_option/04-about_openpyxl_read_excel.py
jiaxiaochu/spider
4b0f751f76a31556a91dea719873cf2979e4be94
[ "MIT" ]
null
null
null
01-About_file_practice_option/04-about_openpyxl_read_excel.py
jiaxiaochu/spider
4b0f751f76a31556a91dea719873cf2979e4be94
[ "MIT" ]
null
null
null
# !/Library/Frameworks/Python.framework/Versions/3.7/bin/python3 # -*- coding:utf-8 -*- # @Author : Jiazhixiang # @Time : 2019/12/11 ''' 1.调用openpyxl.load_workbook()函数,打开“.xlsx”文件 2.获取“.xlsx”工作薄中名为“new title”的工作表。 3.sheetnames是用来获取工作薄所有工作表的名字的。如果你不知道工作薄到底有几个工作表,就可以把工作表的名字都打印出来。 4.把“new title”工作表中A1单元格赋值给A1_cell,再利用单元格...
24.136364
64
0.757062
c7239eac2e86a62a7d81c2af5d7753e9b6238bad
15,650
py
Python
python_data_utils/nlp/utils.py
surajiyer/python-data-utils
d6e9bf81204a01545a3edb165c5724eb24f37c18
[ "MIT" ]
4
2019-01-06T00:09:21.000Z
2022-01-28T06:03:13.000Z
python_data_utils/nlp/utils.py
surajiyer/python-data-utils
d6e9bf81204a01545a3edb165c5724eb24f37c18
[ "MIT" ]
null
null
null
python_data_utils/nlp/utils.py
surajiyer/python-data-utils
d6e9bf81204a01545a3edb165c5724eb24f37c18
[ "MIT" ]
null
null
null
# coding: utf-8 """ description: NLP utils author: Suraj Iyer """ __all__ = [ 'words', 'count_words', 'edits_1', 'edits_n', 'cluster_words_by_edit_distance', 'join_bigrams_with_replacements', 'correct_word_compounding', # 'tf_idf', 'knn_name_matching', 'bigram_context',...
35.649203
92
0.580447
78a892a26edcfbf11e5cc7cf50308c4845c8a863
2,245
py
Python
pixelize.py
deliastephens/post-it
38272de629cafc25aa04360ec0e1ea4f6b424798
[ "MIT" ]
null
null
null
pixelize.py
deliastephens/post-it
38272de629cafc25aa04360ec0e1ea4f6b424798
[ "MIT" ]
null
null
null
pixelize.py
deliastephens/post-it
38272de629cafc25aa04360ec0e1ea4f6b424798
[ "MIT" ]
null
null
null
from PIL import Image import PIL borderColor = (0, 0, 0) # RGB values for post-it border colors cardSize = 10 # How big you want your "cards" (post it notes) to be img_src = 'sunset.jpg' # Input file. Make sure to save in same directory as pixelize. num_colors = 5 # How many different post it note colors ya got image...
31.619718
89
0.657016
0efb51872ff2f39d3c90ea53f22081ee6d319bd4
579
py
Python
pablo/interactive-1.py
jfizzy/ResistanceDB
829d2912c92f645172cdc984a5a2e6119eae8226
[ "MIT" ]
null
null
null
pablo/interactive-1.py
jfizzy/ResistanceDB
829d2912c92f645172cdc984a5a2e6119eae8226
[ "MIT" ]
null
null
null
pablo/interactive-1.py
jfizzy/ResistanceDB
829d2912c92f645172cdc984a5a2e6119eae8226
[ "MIT" ]
null
null
null
import dash from dash.dependencies import Input, Output import dash_core_components as dcc import dash_html_components as html app = dash.Dash() # magic happens below! :O app.layout = html.Div([ dcc.Input(id='my-id', value='initial value', type="text"), html.Div(id='my-div') ]) @app.callback( Output(com...
24.125
65
0.70639
c3032492ac69665c47834a44c14889f14a8540b6
4,149
py
Python
rawcooked/corefuncs.py
jyocum/RDC-transcoding_scripts
2fbbd59d38c9fbe19023c99a5b5b4c83a3e364a1
[ "MIT" ]
null
null
null
rawcooked/corefuncs.py
jyocum/RDC-transcoding_scripts
2fbbd59d38c9fbe19023c99a5b5b4c83a3e364a1
[ "MIT" ]
7
2021-07-08T15:51:47.000Z
2022-03-25T22:05:04.000Z
AV/Film/dpx2ffv1/dpx2ffv1/corefuncs.py
nulib/nul-rdc-scripts
ed76576335950d0c4c46c68e103ac42613d30441
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 ''' Functions that will be in multiple scripts Handle things like: input, output, checksumming, checking that software exists, etc. ''' import os import hashlib import sys import subprocess from dpx2ffv1parameters import args def input_check(): ''' Checks if input was provided and if i...
26.767742
80
0.606411
70cf04ca88d42e7b80f05770a34a7b8dc21b90c6
843
py
Python
webapp/utils/request_params.py
n3k0fi5t/ClonePttWeb
f2a5abb523c244389113b653ed20252fbcec5251
[ "MIT" ]
null
null
null
webapp/utils/request_params.py
n3k0fi5t/ClonePttWeb
f2a5abb523c244389113b653ed20252fbcec5251
[ "MIT" ]
null
null
null
webapp/utils/request_params.py
n3k0fi5t/ClonePttWeb
f2a5abb523c244389113b653ed20252fbcec5251
[ "MIT" ]
null
null
null
def param2type(request, method, param, data_type, defval=None): """ get http request paramter Args: request: HttpRequest instance method: string of HTTP method param: string of parameter data_type: type of parameter defval: default value if parameter do not exist in requ...
27.193548
73
0.650059
7149833cfda69050caff6b8f40f2f8caf3791a10
11,104
py
Python
pgqdif.py
asylumcs/pgqdiff
0aeca156af08b4f8832b7219094aac13c5d00393
[ "MIT" ]
null
null
null
pgqdif.py
asylumcs/pgqdiff
0aeca156af08b4f8832b7219094aac13c5d00393
[ "MIT" ]
null
null
null
pgqdif.py
asylumcs/pgqdiff
0aeca156af08b4f8832b7219094aac13c5d00393
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ pgqdiff.py MIT license (c) 2021 Asylum Computer Services LLC https://asylumcs.net """ import sys import os import re import argparse import envoy # pip3 install envoy import tempfile import html import datetime # from https://raw.githubusercontent.com/c-w/gut...
36.646865
105
0.561599
d567099e6bf6f5ce2f650aa7949780c2e6cc8e50
3,957
py
Python
Chapter3/Framework_pipeline/pipeline/5_serving/Docker/brainserving.py
bpbpublications/Continuous-Machine-Learning-with-Kubeflow
a774502905beac33ce62acd55d0006db3e88f3db
[ "MIT" ]
1
2021-12-19T23:58:52.000Z
2021-12-19T23:58:52.000Z
Chapter3/Framework_pipeline/pipeline/5_serving/Docker/.ipynb_checkpoints/brainserving-checkpoint.py
bpbpublications/Continuous-Machine-Learning-with-Kubeflow
a774502905beac33ce62acd55d0006db3e88f3db
[ "MIT" ]
null
null
null
Chapter3/Framework_pipeline/pipeline/5_serving/Docker/.ipynb_checkpoints/brainserving-checkpoint.py
bpbpublications/Continuous-Machine-Learning-with-Kubeflow
a774502905beac33ce62acd55d0006db3e88f3db
[ "MIT" ]
1
2021-12-17T04:24:17.000Z
2021-12-17T04:24:17.000Z
import kfserving from typing import List, Dict import argparse import numpy as np import json import logging import cv2 import os import base64 from PIL import Image import io import imutils import tensorflow as tf def crop_imgs(set_name, add_pixels_value=0): """ Finds the extreme points on the image and ...
31.404762
122
0.626232
98b0b3165606b1d1ebe4fcd3025436bc462c04c7
17,747
py
Python
mtml_model.py
iganna/mtmlSEM
653964346285849f6b27fd21e2735cb6779132a3
[ "MIT" ]
2
2021-02-07T15:37:54.000Z
2021-10-03T15:55:45.000Z
mtml_model.py
iganna/mtmlsem
653964346285849f6b27fd21e2735cb6779132a3
[ "MIT" ]
null
null
null
mtml_model.py
iganna/mtmlsem
653964346285849f6b27fd21e2735cb6779132a3
[ "MIT" ]
null
null
null
""" Main class with a model """ from semopy import Model as semopyModel from gwas_mtsl import gwas_w from add_snps import * from dataset import * from lat_struct import * from optimisation import * from offspring import * from utils import * from itertools import product, combinations class mtmlModel: dict_la...
33.359023
99
0.537443
84c1ddf8c9195c3b16f588730aad5b8c1a000c47
2,292
py
Python
tests/test_global_minimum.py
jungtaekkim/bayeso-benchmarks
3650aaeeaa123da14f0f839da664b071ee17bf9a
[ "MIT" ]
20
2019-12-17T09:01:59.000Z
2022-01-17T02:06:28.000Z
tests/test_global_minimum.py
jungtaekkim/bayeso-benchmarks
3650aaeeaa123da14f0f839da664b071ee17bf9a
[ "MIT" ]
null
null
null
tests/test_global_minimum.py
jungtaekkim/bayeso-benchmarks
3650aaeeaa123da14f0f839da664b071ee17bf9a
[ "MIT" ]
5
2019-12-18T08:41:36.000Z
2020-11-06T07:25:57.000Z
# # author: Jungtaek Kim (jtkim@postech.ac.kr) # last updated: July 12, 2021 # import numpy as np import scipy.optimize as scio import pytest from bayeso_benchmarks import Ackley from bayeso_benchmarks import Branin from bayeso_benchmarks import DeJong5 from bayeso_benchmarks import Eggholder from bayeso_benchmarks i...
24.382979
100
0.732112
d9a7d309cac60a465e81ba3e67e64408d9758286
13,271
py
Python
log_mito_act/model_274.py
LoLab-VU/Bayesian_Inference_of_Network_Dynamics
54a5ef7e868be34289836bbbb024a2963c0c9c86
[ "MIT" ]
null
null
null
log_mito_act/model_274.py
LoLab-VU/Bayesian_Inference_of_Network_Dynamics
54a5ef7e868be34289836bbbb024a2963c0c9c86
[ "MIT" ]
null
null
null
log_mito_act/model_274.py
LoLab-VU/Bayesian_Inference_of_Network_Dynamics
54a5ef7e868be34289836bbbb024a2963c0c9c86
[ "MIT" ]
null
null
null
# exported from PySB model 'model' from pysb import Model, Monomer, Parameter, Expression, Compartment, Rule, Observable, Initial, MatchOnce, Annotation, ANY, WILD Model() Monomer('Ligand', ['Receptor']) Monomer('ParpU', ['C3A']) Monomer('C8A', ['BidU']) Monomer('BaxM', ['BidM', 'BaxA']) Monomer('Apop', ['C3pro', 'X...
79.467066
614
0.809736
fea300f60a8a71817c31935c6bde1565e56735ac
8,265
py
Python
cyborg_enhancement/mitaka_version/cyborg/cyborg/tests/unit/objects/test_virtual_function.py
opnfv/cran
60a2982c7b9de09880005b23da88bff0a8d59467
[ "Apache-2.0" ]
1
2018-01-26T06:33:05.000Z
2018-01-26T06:33:05.000Z
cyborg_enhancement/mitaka_version/cyborg/cyborg/tests/unit/objects/test_virtual_function.py
opnfv/cran
60a2982c7b9de09880005b23da88bff0a8d59467
[ "Apache-2.0" ]
null
null
null
cyborg_enhancement/mitaka_version/cyborg/cyborg/tests/unit/objects/test_virtual_function.py
opnfv/cran
60a2982c7b9de09880005b23da88bff0a8d59467
[ "Apache-2.0" ]
null
null
null
# Copyright 2018 Huawei Technologies Co.,LTD. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by...
40.915842
79
0.608469
51a00206fe58a1b5900af1e2fcb1aac1529a903d
7,351
py
Python
server1.py
Daim-Akram/chat_app-Socket
c9591b68e08dcca0d018558545223a35158b2543
[ "Apache-2.0" ]
null
null
null
server1.py
Daim-Akram/chat_app-Socket
c9591b68e08dcca0d018558545223a35158b2543
[ "Apache-2.0" ]
null
null
null
server1.py
Daim-Akram/chat_app-Socket
c9591b68e08dcca0d018558545223a35158b2543
[ "Apache-2.0" ]
null
null
null
''' This module defines the behaviour of server in your Chat Application ''' import sys import getopt import socket import util import threading class Server: ''' This is the main Server Class. You will to write Server code inside this class. ''' def __init__(self, dest, port, window): self.se...
35.684466
98
0.470004
4ddd3d35e8ade11a3db2417d8349175b7d80c74f
5,741
py
Python
storagevet/ValueStreams/SpinningReserve.py
epri-dev/StorageVET
26b740ba03b1ad4fc0734af56787ec5c0ebd3824
[ "BSD-3-Clause" ]
35
2020-06-04T18:04:11.000Z
2022-02-24T07:48:29.000Z
storagevet/ValueStreams/SpinningReserve.py
epri-dev/StorageVET
26b740ba03b1ad4fc0734af56787ec5c0ebd3824
[ "BSD-3-Clause" ]
4
2021-05-13T22:36:24.000Z
2022-01-13T03:42:16.000Z
storagevet/ValueStreams/SpinningReserve.py
epri-dev/StorageVET
26b740ba03b1ad4fc0734af56787ec5c0ebd3824
[ "BSD-3-Clause" ]
16
2020-06-04T18:07:18.000Z
2022-03-10T13:27:08.000Z
""" Copyright (c) 2021, Electric Power Research Institute 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 li...
45.563492
135
0.68873
f74e7b233bbb33cccf804f4c4cd582fd0442b5f4
1,526
py
Python
tensorflow/mandelbrot-set.py
MaraniMatias/machine-learning
5346a60d0a16942a889d67b4c313b9332eb8f50a
[ "MIT" ]
null
null
null
tensorflow/mandelbrot-set.py
MaraniMatias/machine-learning
5346a60d0a16942a889d67b4c313b9332eb8f50a
[ "MIT" ]
null
null
null
tensorflow/mandelbrot-set.py
MaraniMatias/machine-learning
5346a60d0a16942a889d67b4c313b9332eb8f50a
[ "MIT" ]
null
null
null
# Import libraries for simulation import tensorflow as tf import numpy as np # Imports for visualization import PIL.Image from io import BytesIO from IPython.display import Image, display def DisplayFractal(a, fmt='jpeg'): """Display an array of iteration counts as a colorful picture of a fractal.""" ...
24.222222
55
0.653342
8b5fc4795b2a91679ae2850439fd66982c23a676
1,692
py
Python
src/fiicha/doc.py
ZipFile/fiicha
37c18decb32583410ca69451168a74612bf5739f
[ "BSD-2-Clause" ]
null
null
null
src/fiicha/doc.py
ZipFile/fiicha
37c18decb32583410ca69451168a74612bf5739f
[ "BSD-2-Clause" ]
null
null
null
src/fiicha/doc.py
ZipFile/fiicha
37c18decb32583410ca69451168a74612bf5739f
[ "BSD-2-Clause" ]
null
null
null
from typing import Any, Mapping, Tuple from .core import FeatureFlag TITLE = "Feature Flags class." DESCRIPTION = "Unknown feature flags are ignored." INIT_ARGS = ( ("values", "Feature flag states."), ("default", "Default state for unset feature flags."), ("default_key", "Key from ``values`` with default ...
27.290323
82
0.51182
ed1f0959042f9ce3c06947c53c01fa72725b4a06
12,014
py
Python
src/tests/base/test_permissions.py
fabm3n/pretix
520fb620888d5c434665a6a4a33cb2ab22dd42c7
[ "Apache-2.0" ]
1,248
2015-04-24T13:32:06.000Z
2022-03-29T07:01:36.000Z
src/tests/base/test_permissions.py
fabm3n/pretix
520fb620888d5c434665a6a4a33cb2ab22dd42c7
[ "Apache-2.0" ]
2,113
2015-02-18T18:58:16.000Z
2022-03-31T11:12:32.000Z
src/tests/base/test_permissions.py
fabm3n/pretix
520fb620888d5c434665a6a4a33cb2ab22dd42c7
[ "Apache-2.0" ]
453
2015-05-13T09:29:06.000Z
2022-03-24T13:39:16.000Z
# # This file is part of pretix (Community Edition). # # Copyright (C) 2014-2020 Raphael Michel and contributors # Copyright (C) 2020-2021 rami.io GmbH and contributors # # This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General # Public License as published by ...
39.913621
119
0.749292
e98268cec22493e71be402023d2854776944af67
4,828
py
Python
intelligence_bots_test/download_tweets.py
detiuaveiro/social-network-mining
283ca46b9bdbcc2dffb71e5d4e3718040121380c
[ "BSD-3-Clause" ]
4
2020-07-16T16:01:11.000Z
2020-07-21T15:17:34.000Z
intelligence_bots_test/download_tweets.py
detiuaveiro/social-network-mining
283ca46b9bdbcc2dffb71e5d4e3718040121380c
[ "BSD-3-Clause" ]
null
null
null
intelligence_bots_test/download_tweets.py
detiuaveiro/social-network-mining
283ca46b9bdbcc2dffb71e5d4e3718040121380c
[ "BSD-3-Clause" ]
1
2020-07-16T15:54:53.000Z
2020-07-16T15:54:53.000Z
import twint import fire import re import csv from tqdm import tqdm import logging from datetime import datetime from time import sleep import os # Surpress random twint warnings logger = logging.getLogger() logger.disabled = True def is_reply(tweet): """ Determines if the tweet is a reply to another tweet. ...
31.763158
87
0.550953
140e598b744cfa9ed5d86d8027712688acd91841
488
py
Python
exercises/ja/test_02_15.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
2,085
2019-04-17T13:10:40.000Z
2022-03-30T21:51:46.000Z
exercises/ja/test_02_15.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
79
2019-04-18T14:42:55.000Z
2022-03-07T08:15:43.000Z
exercises/ja/test_02_15.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
361
2019-04-17T13:34:32.000Z
2022-03-28T04:42:45.000Z
def test(): assert "list(doc.ents) + [span]" in __solution__, "doc.entsにスパンを追加しましたか?" assert "span_root_head = span.root.head" in __solution__, "スパンのルートのヘッドトークンを取得しましたか?" assert "print(span_root_head.text" in __solution__, "スパンのルートのヘッドトークンをプリントしましたか?" ents = [ent for ent in doc.ents if ent.label_ == "GP...
48.8
88
0.713115
f40e49bdd7030ebafef80f0b61e6915f243975ad
422
py
Python
leetcode/1180_count_substring_with_only_one_distinct_letter.py
jacquerie/leetcode
a05e6b832eb0e0740aaff7b2eb3109038ad404bf
[ "MIT" ]
3
2018-05-10T09:56:49.000Z
2020-11-07T18:09:42.000Z
leetcode/1180_count_substring_with_only_one_distinct_letter.py
jacquerie/leetcode
a05e6b832eb0e0740aaff7b2eb3109038ad404bf
[ "MIT" ]
null
null
null
leetcode/1180_count_substring_with_only_one_distinct_letter.py
jacquerie/leetcode
a05e6b832eb0e0740aaff7b2eb3109038ad404bf
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import itertools class Solution: def countLetters(self, S): result = 0 for _, group in itertools.groupby(S): length = len(list(group)) result += length * (length + 1) / 2 return result if __name__ == '__main__': solution = Solution()...
19.181818
52
0.585308
fc20eda13ddf9aa9919d5da7184fb1705d9d247a
9,369
py
Python
vyper/parser/function_definitions/parse_external_function.py
timgates42/vyper
6bb01e1dd4639c41740719b86dd47098529feaf5
[ "Apache-2.0" ]
1
2020-11-21T11:31:52.000Z
2020-11-21T11:31:52.000Z
vyper/parser/function_definitions/parse_external_function.py
timgates42/vyper
6bb01e1dd4639c41740719b86dd47098529feaf5
[ "Apache-2.0" ]
2
2020-12-26T19:25:49.000Z
2020-12-26T19:27:24.000Z
vyper/parser/function_definitions/parse_external_function.py
timgates42/vyper
6bb01e1dd4639c41740719b86dd47098529feaf5
[ "Apache-2.0" ]
null
null
null
import ast from typing import Any, List, Union from vyper.parser.arg_clamps import make_arg_clamper from vyper.parser.context import Context, VariableRecord from vyper.parser.expr import Expr from vyper.parser.function_definitions.utils import ( get_default_names_to_set, get_nonreentrant_lock, get_sig_stat...
39.868085
99
0.523962
59c7d2aa6395089dd546f81506ce474a08580011
14,411
py
Python
sharppy/sharptab/winds.py
met-office-lab/SHARPpy
2ccfb6ea51be70f2a7a5be2256a2abbda9aedd33
[ "BSD-3-Clause" ]
null
null
null
sharppy/sharptab/winds.py
met-office-lab/SHARPpy
2ccfb6ea51be70f2a7a5be2256a2abbda9aedd33
[ "BSD-3-Clause" ]
null
null
null
sharppy/sharptab/winds.py
met-office-lab/SHARPpy
2ccfb6ea51be70f2a7a5be2256a2abbda9aedd33
[ "BSD-3-Clause" ]
1
2019-11-10T05:28:54.000Z
2019-11-10T05:28:54.000Z
''' Wind Manipulation Routines ''' from __future__ import division import numpy as np import numpy.ma as ma from sharppy.sharptab import interp, utils from sharppy.sharptab.constants import * import warnings __all__ = ['mean_wind', 'mean_wind_npw', 'mean_wind_old', 'mean_wind_npw_old'] __all__ += ['sr_wind', 'sr_wind_...
29.713402
176
0.615849
09fa454f3365266d1c1242e0cc0c3f5801b36cdc
988
py
Python
manager/song/migrations/0001_initial.py
chaocodes/playlist-manager-django
adfcd9388629438f4a3ac75d56e062d6bbb9af72
[ "MIT" ]
1
2020-07-20T20:45:22.000Z
2020-07-20T20:45:22.000Z
manager/song/migrations/0001_initial.py
chaocodes/playlist-manager-django
adfcd9388629438f4a3ac75d56e062d6bbb9af72
[ "MIT" ]
null
null
null
manager/song/migrations/0001_initial.py
chaocodes/playlist-manager-django
adfcd9388629438f4a3ac75d56e062d6bbb9af72
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations class Migration(migrations.Migration): dependencies = [ ('playlist', '0001_initial'), ] operations = [ migrations.CreateModel( name='Song', fields=[ ...
31.870968
114
0.554656
356548c72a9a94854340468921ac35524c482b94
599
py
Python
catkin_ws/src/lcROS/src/lsh_test.py
DivJAth/LoopClosureInCloud
de9b95bc98c252b6fa63e0853ddc2549094d583e
[ "MIT" ]
null
null
null
catkin_ws/src/lcROS/src/lsh_test.py
DivJAth/LoopClosureInCloud
de9b95bc98c252b6fa63e0853ddc2549094d583e
[ "MIT" ]
null
null
null
catkin_ws/src/lcROS/src/lsh_test.py
DivJAth/LoopClosureInCloud
de9b95bc98c252b6fa63e0853ddc2549094d583e
[ "MIT" ]
null
null
null
from lshash import LSHash lsh = LSHash(32, 8) lsh = LSHash(6, 8, 1, {"redis":{"host": 'localhost', "port": 6379}}) lsh.index([1, 2, 3, 4, 5, 6, 7, 8]) lsh.index([2, 3, 4, 5, 6, 7, 8, 9]) lsh.index([10, 12, 99, 1, 5, 31, 2, 3]) lsh.query([1, 2, 3, 4, 5, 6, 7, 7]) print(lsh.query([1, 2, 3, 4, 5, 6, 7, 7])) # # anoth...
31.526316
69
0.445743
509b06959d9022da1b309f0b4c8ee3c671358438
310
py
Python
my_code.py
Athenian-CT-Fall2020/double-it-maleich
fb9f5acb6f2af8daf0cd03340cc062df13a843e9
[ "Apache-2.0" ]
null
null
null
my_code.py
Athenian-CT-Fall2020/double-it-maleich
fb9f5acb6f2af8daf0cd03340cc062df13a843e9
[ "Apache-2.0" ]
null
null
null
my_code.py
Athenian-CT-Fall2020/double-it-maleich
fb9f5acb6f2af8daf0cd03340cc062df13a843e9
[ "Apache-2.0" ]
null
null
null
# Collaborators: A period! def double_it(x): x = int(x) product = x * 2 return product if __name__ == '__main__': # print(double_it(5)) # After you are satisfied with your results, use input() to prompt the user for a value: v = input("Value to double: ") print(double_it(v))
19.375
92
0.625806
f0fa63283dc0bd6a23f77e4daf1216a5940c1919
3,931
py
Python
src/oci/log_analytics/models/macro_command_descriptor.py
LaudateCorpus1/oci-python-sdk
b0d3ce629d5113df4d8b83b7a6502b2c5bfa3015
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
src/oci/log_analytics/models/macro_command_descriptor.py
LaudateCorpus1/oci-python-sdk
b0d3ce629d5113df4d8b83b7a6502b2c5bfa3015
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
src/oci/log_analytics/models/macro_command_descriptor.py
LaudateCorpus1/oci-python-sdk
b0d3ce629d5113df4d8b83b7a6502b2c5bfa3015
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
# coding: utf-8 # Copyright (c) 2016, 2022, Oracle and/or its affiliates. All rights reserved. # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may c...
46.247059
595
0.677945
fc9cc7091abec0b7594ec232acf7754a07e1d031
4,305
py
Python
tests/summarycode/test_score.py
abhi27-web/scancode-toolk
66f59168fb7824ab9be332712dcaf16340e1aa22
[ "Apache-2.0", "CC0-1.0" ]
1
2020-06-24T16:03:52.000Z
2020-06-24T16:03:52.000Z
tests/summarycode/test_score.py
abhi27-web/scancode-toolk
66f59168fb7824ab9be332712dcaf16340e1aa22
[ "Apache-2.0", "CC0-1.0" ]
1
2021-06-02T02:50:07.000Z
2021-06-02T02:50:07.000Z
tests/summarycode/test_score.py
abhi27-web/scancode-toolk
66f59168fb7824ab9be332712dcaf16340e1aa22
[ "Apache-2.0", "CC0-1.0" ]
null
null
null
# # Copyright (c) 2018 nexB Inc. and others. All rights reserved. # http://nexb.com and https://github.com/nexB/scancode-toolkit/ # The ScanCode software is licensed under the Apache License version 2.0. # Data generated with ScanCode require an acknowledgment. # ScanCode is a trademark of nexB Inc. # # You may not use...
34.717742
82
0.714983
7c7444b3903d0d88d9c9bd95fc59ed667e99e268
3,364
py
Python
ModularER_2D/DataAnalysis.py
FrankVeenstra/gym_rem2D
ea295e6398054c023c88df88d9c70f5486061207
[ "MIT" ]
27
2020-07-15T10:43:02.000Z
2021-04-15T15:01:12.000Z
ModularER_2D/DataAnalysis.py
FrankVeenstra/gym_rem2D
ea295e6398054c023c88df88d9c70f5486061207
[ "MIT" ]
3
2021-06-08T22:44:19.000Z
2021-09-15T08:50:44.000Z
ModularER_2D/DataAnalysis.py
FrankVeenstra/gym_rem2D
ea295e6398054c023c88df88d9c70f5486061207
[ "MIT" ]
6
2020-07-22T01:25:49.000Z
2021-09-21T12:07:31.000Z
import matplotlib.pyplot as plt import numpy as np import pickle from matplotlib import cm import matplotlib.transforms as transforms import math import os import configparser import scipy.stats as st """ for loading data from a single path """ def load_data(path, filename) : if path is None: raise Exception("No p...
30.862385
86
0.720273
2fd828ebab0c51d729e7c4d5d377dea92ed0a0f1
933
py
Python
src/linear_ae_net/dynamics.py
arnupretorius/lindaedynamics_icml2018
ce8966c3933a7d3585f0e3ed367964dd69f0c0a0
[ "MIT" ]
12
2018-06-19T23:16:33.000Z
2019-09-12T02:39:24.000Z
src/linear_ae_net/dynamics.py
scheeloong/lindaedynamics_icml2018
d03b450e254d33b019161a3cd015e44aafe407cb
[ "MIT" ]
1
2020-12-13T03:35:59.000Z
2020-12-13T03:35:59.000Z
src/linear_ae_net/dynamics.py
scheeloong/lindaedynamics_icml2018
d03b450e254d33b019161a3cd015e44aafe407cb
[ "MIT" ]
3
2018-06-12T07:01:03.000Z
2019-09-12T02:39:24.000Z
import numpy as np # Helper functions to compute theoretical learning dynamics def dae_learning_dynamics(lam, var, gamma, N, n_epoch, learning_rate, u0): dynamics = [] tau = N/learning_rate g = N*gamma xi = lam + N*var for t in range(n_epoch): E = np.exp((2*(lam - g)*t)/tau) n...
30.096774
76
0.606645
9eb3fece6d89e8afe0ade96994a91893ca7425c5
1,670
py
Python
challenges/stacks_and_queues/stacks_and_queues/stacks_and_queues/stacks_and_queues.py
nsinner1/data-structures-and-algorithms-python
6c15d3805ba052d6b884c8ddae1c926d81b97118
[ "MIT" ]
null
null
null
challenges/stacks_and_queues/stacks_and_queues/stacks_and_queues/stacks_and_queues.py
nsinner1/data-structures-and-algorithms-python
6c15d3805ba052d6b884c8ddae1c926d81b97118
[ "MIT" ]
null
null
null
challenges/stacks_and_queues/stacks_and_queues/stacks_and_queues/stacks_and_queues.py
nsinner1/data-structures-and-algorithms-python
6c15d3805ba052d6b884c8ddae1c926d81b97118
[ "MIT" ]
null
null
null
class Node: def __init__(self, value, next_=None): self.value = value self.next = next_ class Stack: def __init__(self): self.top = None def push(self, value): self.top = Node(value, self.top) def pop(self): if self.top: wanted = self.top ...
20.617284
54
0.543713
d350a4c378103e24b69c998f7764ea588be370ba
2,292
py
Python
rmgpy/pdep/__init__.py
pm15ma/RMG-Py
ca2f663c711ec45012afc911138716aaf0049296
[ "MIT" ]
1
2020-10-14T12:01:47.000Z
2020-10-14T12:01:47.000Z
rmgpy/pdep/__init__.py
pm15ma/RMG-Py
ca2f663c711ec45012afc911138716aaf0049296
[ "MIT" ]
null
null
null
rmgpy/pdep/__init__.py
pm15ma/RMG-Py
ca2f663c711ec45012afc911138716aaf0049296
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 ############################################################################### # # # RMG - Reaction Mechanism Generator # # ...
67.411765
79
0.495201
e73c84d718a5388999d465a07ce0ab8412e01c52
2,813
py
Python
ontology/sort_turtle.py
SINTEF-SE/DataOntoSearch
c27956f08fcbccef413361b9a5c250b69406272f
[ "MIT" ]
null
null
null
ontology/sort_turtle.py
SINTEF-SE/DataOntoSearch
c27956f08fcbccef413361b9a5c250b69406272f
[ "MIT" ]
null
null
null
ontology/sort_turtle.py
SINTEF-SE/DataOntoSearch
c27956f08fcbccef413361b9a5c250b69406272f
[ "MIT" ]
null
null
null
from otd.skosnavigate import SKOSNavigate from similarity.csv_parse import get_fragment from utils.graph import create_bound_graph def sort_turtle(prefix, identifiers, file_in, file_out): with open(file_in, encoding='utf8') as fd: line_iter = iter(fd) entities = dict() preamble_finished =...
31.255556
80
0.578386
cce781a3783b386ebfc3b730e18d1fb773fb432d
50,860
py
Python
multiStonk.py
steveman1123/multiStonk
f5ae03eaee0f25b0f64c07a6920b96cddfbd272e
[ "MIT" ]
1
2022-01-12T14:45:27.000Z
2022-01-12T14:45:27.000Z
multiStonk.py
Nllii/multiStonk
f5ae03eaee0f25b0f64c07a6920b96cddfbd272e
[ "MIT" ]
1
2021-12-08T02:37:32.000Z
2021-12-08T09:39:00.000Z
multiStonk.py
Nllii/multiStonk
f5ae03eaee0f25b0f64c07a6920b96cddfbd272e
[ "MIT" ]
5
2021-11-22T20:18:36.000Z
2021-12-19T04:00:39.000Z
#Steven Williams (2021) #Stock trading program to use multiple algorithms/strategies as defined in the config file and present in the algos directory to perform low frequency shortterm trades print("\nStarting up...") import otherfxns as o import alpacafxns as a import random, time, json, sys, os, traceback from glob...
55.04329
532
0.666142
6dfa16a8cc5a859312e8e94637cf53cd019d296a
5,665
py
Python
_tools/sitebuilder/pagebuilder.py
andersonfrailey/andersonfrailey.github.io
d005a0bac8820a2ae4e93f16cd2720e1c97bca97
[ "MIT" ]
null
null
null
_tools/sitebuilder/pagebuilder.py
andersonfrailey/andersonfrailey.github.io
d005a0bac8820a2ae4e93f16cd2720e1c97bca97
[ "MIT" ]
null
null
null
_tools/sitebuilder/pagebuilder.py
andersonfrailey/andersonfrailey.github.io
d005a0bac8820a2ae4e93f16cd2720e1c97bca97
[ "MIT" ]
null
null
null
import json import markdown from jinja2 import Template from bs4 import BeautifulSoup from pathlib import Path from utils import replace_code_blocks CUR_PATH = Path(__file__).resolve().parent TEMPLATE_PATH = Path(CUR_PATH, "templates") CONTENT_PATH = Path(CUR_PATH, "..", "..", "_mdcontent") BLOG_PATH = Path(CUR_PATH,...
39.615385
79
0.608297
e4d586abb96856d6bdc71e43c5691dfe807df970
2,083
py
Python
dem2stl_dialog.py
SuheybAden/DEM2STL-QGIS_Plugin
32e288f819fa3f901f00e316de445f31f8628538
[ "MIT" ]
null
null
null
dem2stl_dialog.py
SuheybAden/DEM2STL-QGIS_Plugin
32e288f819fa3f901f00e316de445f31f8628538
[ "MIT" ]
null
null
null
dem2stl_dialog.py
SuheybAden/DEM2STL-QGIS_Plugin
32e288f819fa3f901f00e316de445f31f8628538
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ /*************************************************************************** Dem2StlDialog A QGIS plugin This plugin lets you generate an STL from a DEM and allows the exclusion of nodata regions. Generated by Plugin Builder: http://g-sherman.github.io/Qgi...
46.288889
99
0.480557
773c329296b8da3fa9b663b62044abc8303ef2aa
338
py
Python
union-find/client.py
albexl/data-structures-for-teaching
4c27c7bc3f4516e42a39ac0a295717c2a79c56cf
[ "MIT" ]
2
2021-07-16T17:19:15.000Z
2021-07-16T19:59:32.000Z
union-find/client.py
albexl/data-structures-for-teaching
4c27c7bc3f4516e42a39ac0a295717c2a79c56cf
[ "MIT" ]
null
null
null
union-find/client.py
albexl/data-structures-for-teaching
4c27c7bc3f4516e42a39ac0a295717c2a79c56cf
[ "MIT" ]
null
null
null
from implementation import QuickFind, QuickUnion, WeightedQuickUnion if __name__ == '__main__': n = int(input()) union_find = QuickFind(n) m = int(input()) for _ in range(m): a, b = int(input()), int(input()) if not union_find.connected(a, b): union_find.union(a, b) ...
24.142857
68
0.58284
3a2b6bd86ea6e68e8f2a3c5f3dd3a344ebd7fb1e
10,018
py
Python
nerf/provider.py
kevin-thankyou-lin/torch-ngp
2bb55fb09512e7e8680db434d787c6bea1fa1cda
[ "MIT" ]
null
null
null
nerf/provider.py
kevin-thankyou-lin/torch-ngp
2bb55fb09512e7e8680db434d787c6bea1fa1cda
[ "MIT" ]
null
null
null
nerf/provider.py
kevin-thankyou-lin/torch-ngp
2bb55fb09512e7e8680db434d787c6bea1fa1cda
[ "MIT" ]
null
null
null
import os import glob import numpy as np import cv2 import torch from torch.utils.data import Dataset from active_nerf.utils.pybullet_visualization_utils import visualize_camera_frame, visualize_extrinsics from scipy.spatial.transform import Slerp, Rotation # NeRF dataset import json # ref: https://github.com/NVla...
40.395161
208
0.540827
e03d17764848038b13b46987961bbd695c266885
7,139
py
Python
src/sentry/api/endpoints/organization_member_index.py
lauryndbrown/sentry
c5304e303966566386f5e61df1b72624a30803b4
[ "BSD-3-Clause" ]
1
2020-02-27T02:46:25.000Z
2020-02-27T02:46:25.000Z
src/sentry/api/endpoints/organization_member_index.py
lauryndbrown/sentry
c5304e303966566386f5e61df1b72624a30803b4
[ "BSD-3-Clause" ]
1
2020-11-05T14:54:44.000Z
2020-11-19T21:54:19.000Z
src/sentry/api/endpoints/organization_member_index.py
lauryndbrown/sentry
c5304e303966566386f5e61df1b72624a30803b4
[ "BSD-3-Clause" ]
1
2017-02-09T06:36:57.000Z
2017-02-09T06:36:57.000Z
from __future__ import absolute_import import six from django.db import transaction, IntegrityError from django.db.models import Q from rest_framework import serializers from rest_framework.response import Response from django.conf import settings from sentry.app import locks from sentry import roles, features from s...
39.225275
120
0.625018
88ceecfed1edd5cb4bae032ee59adc2e18652056
9,775
py
Python
pynab/openapi/models/budget_summary.py
idwagner/pynab
26e0f2d2adc86374ff5caf5a614778fafa1c19d6
[ "Apache-2.0" ]
null
null
null
pynab/openapi/models/budget_summary.py
idwagner/pynab
26e0f2d2adc86374ff5caf5a614778fafa1c19d6
[ "Apache-2.0" ]
null
null
null
pynab/openapi/models/budget_summary.py
idwagner/pynab
26e0f2d2adc86374ff5caf5a614778fafa1c19d6
[ "Apache-2.0" ]
1
2020-11-05T22:28:13.000Z
2020-11-05T22:28:13.000Z
# coding: utf-8 """ YNAB API Endpoints Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at https://api.youneedabudge...
30.451713
294
0.608491
cb7f7a02251005fc2bb9ccc0c27b047701c9e4fb
3,005
py
Python
postgres/datadog_checks/postgres/config_models/instance.py
yonatan-ess/integrations-core
6737dd97f4531d39c85d6c6dbba868937514ab51
[ "BSD-3-Clause" ]
null
null
null
postgres/datadog_checks/postgres/config_models/instance.py
yonatan-ess/integrations-core
6737dd97f4531d39c85d6c6dbba868937514ab51
[ "BSD-3-Clause" ]
null
null
null
postgres/datadog_checks/postgres/config_models/instance.py
yonatan-ess/integrations-core
6737dd97f4531d39c85d6c6dbba868937514ab51
[ "BSD-3-Clause" ]
null
null
null
# (C) Datadog, Inc. 2021-present # All rights reserved # Licensed under a 3-clause BSD style license (see LICENSE) from __future__ import annotations from typing import Any, Mapping, Optional, Sequence, Union from pydantic import BaseModel, root_validator, validator from datadog_checks.base.utils.functions import id...
31.968085
110
0.735774
4d65d405e5a117326e774e0592b65ce9b96b8dfe
21,619
py
Python
evennia/comms/comms.py
michaelansel/evennia
c48f5b17fccff1f80f655ea3293f03ff16def9b5
[ "BSD-3-Clause" ]
null
null
null
evennia/comms/comms.py
michaelansel/evennia
c48f5b17fccff1f80f655ea3293f03ff16def9b5
[ "BSD-3-Clause" ]
null
null
null
evennia/comms/comms.py
michaelansel/evennia
c48f5b17fccff1f80f655ea3293f03ff16def9b5
[ "BSD-3-Clause" ]
null
null
null
""" Base typeclass for in-game Channels. """ from evennia.typeclasses.models import TypeclassBase from evennia.comms.models import TempMsg, ChannelDB from evennia.comms.managers import ChannelManager from evennia.utils import logger from evennia.utils.utils import make_iter from future.utils import with_metaclass _CHA...
37.146048
121
0.596235
5d5da9e7b7aef5ad234639c71e2f7b99489a8420
514
py
Python
notalib/date_test.py
m1kc/pyutil
8c2dfda585c86a4de139a13a403817b26ecb0cc2
[ "MIT" ]
null
null
null
notalib/date_test.py
m1kc/pyutil
8c2dfda585c86a4de139a13a403817b26ecb0cc2
[ "MIT" ]
null
null
null
notalib/date_test.py
m1kc/pyutil
8c2dfda585c86a4de139a13a403817b26ecb0cc2
[ "MIT" ]
null
null
null
from .date import get_week_number from arrow import get as arrow_get import pytest @pytest.mark.parametrize( "date, expected_week_number", [ (arrow_get('2022-01-01'), 1), (arrow_get('2022-01-06'), 2), (arrow_get('2021-12-31'), 53), ('', None), ([1, 2, 3], None), (None, None), ] ) def test_get_week_nu...
20.56
54
0.696498
54ccec495318441261b1a4c6bc5c9b357e1956a3
22,474
py
Python
Lib/distutils/sysconfig.py
pharrera/CS008
d516cf4e2da4f8b6cb8a4d7dc1c823ec6f9d0aa0
[ "PSF-2.0" ]
null
null
null
Lib/distutils/sysconfig.py
pharrera/CS008
d516cf4e2da4f8b6cb8a4d7dc1c823ec6f9d0aa0
[ "PSF-2.0" ]
null
null
null
Lib/distutils/sysconfig.py
pharrera/CS008
d516cf4e2da4f8b6cb8a4d7dc1c823ec6f9d0aa0
[ "PSF-2.0" ]
1
2021-02-23T21:57:26.000Z
2021-02-23T21:57:26.000Z
"""Provide access to Python's configuration information. The specific configuration variables available depend heavily on the platform and configuration. The values may be retrieved using get_config_var(name), and the list of variables is available via get_config_vars().keys(). Additional convenience functions are a...
37.085809
94
0.57631
f970d5e270a7879745042f7aca850137e85d004f
1,567
py
Python
deeplab/core/callback.py
YAMLONG/Deformable-ConvNets
ea937451e103ba1fbf4fdcbd08ef3ca1ca832ef4
[ "Apache-2.0" ]
270
2017-06-06T15:25:27.000Z
2021-11-18T16:16:18.000Z
deeplab/core/callback.py
YAMLONG/Deformable-ConvNets
ea937451e103ba1fbf4fdcbd08ef3ca1ca832ef4
[ "Apache-2.0" ]
10
2017-07-27T02:54:26.000Z
2018-07-03T14:36:37.000Z
deeplab/core/callback.py
YAMLONG/Deformable-ConvNets
ea937451e103ba1fbf4fdcbd08ef3ca1ca832ef4
[ "Apache-2.0" ]
53
2017-06-12T02:52:49.000Z
2021-11-24T12:25:34.000Z
# -------------------------------------------------------- # Deformable Convolutional Networks # Copyright (c) 2016 by Contributors # Copyright (c) 2017 Microsoft # Licensed under The Apache-2.0 License [see LICENSE for details] # Modified by Zheng Zhang # -------------------------------------------------------- impor...
34.065217
109
0.490108
f57ea819ab3a99dc888e8236441aec559bd3464c
1,173
py
Python
gollahalli_cms/welcome/tests/test_utils.py
akshaybabloo/gollahalli-cms
f74fbb6d88bf3a8acc7c4b0439e97d2bcc44a17f
[ "MIT" ]
1
2020-08-08T22:46:40.000Z
2020-08-08T22:46:40.000Z
gollahalli_cms/welcome/tests/test_utils.py
akshaybabloo/gollahalli-com
f74fbb6d88bf3a8acc7c4b0439e97d2bcc44a17f
[ "MIT" ]
41
2017-06-23T03:28:17.000Z
2018-03-01T08:26:42.000Z
gollahalli_cms/welcome/tests/test_utils.py
akshaybabloo/gollahalli-com
f74fbb6d88bf3a8acc7c4b0439e97d2bcc44a17f
[ "MIT" ]
null
null
null
from django.contrib.auth.models import User from django.test import TestCase, Client from welcome.utils import check_users class UtilityTestsNoUser(TestCase): """ Tests without user. """ def setUp(self): try: User.objects.all().delete() except User.DoesNotExist: ...
22.132075
100
0.611253
e9205d0ed57af6e723baf057c5e193f0f4a5537c
4,600
py
Python
data/cifar_10.py
peternara/graph-based-image-classification-gcn
60e93b47691e960b7f06f7a5dc11191efe881178
[ "MIT" ]
44
2017-02-26T16:52:48.000Z
2022-02-17T18:50:02.000Z
data/cifar_10.py
hungerzs/graph-based-image-classification
d44182c6a28b4ab9a691a9cb1ecd4c3b851875a8
[ "MIT" ]
2
2018-11-14T05:11:25.000Z
2020-06-23T16:24:41.000Z
data/cifar_10.py
hungerzs/graph-based-image-classification
d44182c6a28b4ab9a691a9cb1ecd4c3b851875a8
[ "MIT" ]
13
2018-04-26T07:46:35.000Z
2022-02-28T15:38:53.000Z
import os import tensorflow as tf from .dataset import DataSet from .helper.record import Record from .helper.download import maybe_download_and_extract from .helper.distort_image import distort_image_for_train,\ distort_image_for_eval DATA_URL = 'http://www.cs.toronto.edu/~kriz/ci...
32.624113
79
0.643261
17d3461b18acb350fd6626c32295f8cb20217385
3,757
py
Python
pkg/codegen/internal/test/testdata/naming-collisions/python/pulumi_example/resource.py
pcen/pulumi
1bb85ca98c90f2161fe915df083d47c56c135e4d
[ "Apache-2.0" ]
12,004
2018-06-17T23:56:29.000Z
2022-03-31T18:00:09.000Z
pkg/codegen/internal/test/testdata/naming-collisions/python/pulumi_example/resource.py
pcen/pulumi
1bb85ca98c90f2161fe915df083d47c56c135e4d
[ "Apache-2.0" ]
6,263
2018-06-17T23:27:24.000Z
2022-03-31T19:20:35.000Z
pkg/codegen/internal/test/testdata/naming-collisions/python/pulumi_example/resource.py
pcen/pulumi
1bb85ca98c90f2161fe915df083d47c56c135e4d
[ "Apache-2.0" ]
706
2018-06-17T23:56:50.000Z
2022-03-31T11:20:23.000Z
# coding=utf-8 # *** WARNING: this file was generated by test. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from . import _utilities __all__ = ['ResourceArgs...
37.949495
134
0.636678
3f2242b4f6238f95c019615f76ff8ddb1b8ce1b0
2,070
py
Python
Food/models.py
Amwata-Albert/Fast-Food
1a6667efb10652852877422616ff80f69c3b066a
[ "MIT" ]
null
null
null
Food/models.py
Amwata-Albert/Fast-Food
1a6667efb10652852877422616ff80f69c3b066a
[ "MIT" ]
2
2020-11-13T06:51:26.000Z
2020-11-17T07:22:36.000Z
Food/models.py
Amwata-Albert/Fast-Food
1a6667efb10652852877422616ff80f69c3b066a
[ "MIT" ]
null
null
null
from django.db import models from cloudinary.models import CloudinaryField # Models class Customer(models.Model): user_id=models.IntegerField(primary_key=True) name=models.CharField(max_length=100,null=True) password=models.CharField(max_length=100,null=True) email=models.EmailField(max_length=254) contact=models...
27.972973
68
0.768116
62c92235e752e15db1379cba761c7a1fe25b282d
18,341
py
Python
neutron/tests/unit/plugins/ml2/drivers/test_type_vlan.py
smackdabinthesquash/neutron
2ac08f36ea1b7b11419f51bcbf0b1cd46b36d6d9
[ "Apache-2.0" ]
4
2015-11-07T01:58:32.000Z
2019-10-08T06:18:36.000Z
neutron/tests/unit/plugins/ml2/drivers/test_type_vlan.py
gaozhengwei/neutron
d93fd9794fd550f2ef575d04a09065e896031baf
[ "Apache-2.0" ]
null
null
null
neutron/tests/unit/plugins/ml2/drivers/test_type_vlan.py
gaozhengwei/neutron
d93fd9794fd550f2ef575d04a09065e896031baf
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2014 Thales Services SAS # 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 r...
45.967419
79
0.672319
4ada8aeeaa5742a83acb32d9938b72c651f3ca89
3,081
py
Python
appengine/components/components/auth/check.py
stefb965/luci-py
e0a8a5640c4104e5c90781d833168aa8a8d1f24d
[ "Apache-2.0" ]
null
null
null
appengine/components/components/auth/check.py
stefb965/luci-py
e0a8a5640c4104e5c90781d833168aa8a8d1f24d
[ "Apache-2.0" ]
null
null
null
appengine/components/components/auth/check.py
stefb965/luci-py
e0a8a5640c4104e5c90781d833168aa8a8d1f24d
[ "Apache-2.0" ]
1
2020-07-05T19:54:40.000Z
2020-07-05T19:54:40.000Z
# Copyright 2018 The LUCI Authors. All rights reserved. # Use of this source code is governed under the Apache License, Version 2.0 # that can be found in the LICENSE file. """Defines high level authorization function called for all incoming requests. Lives in its own module to avoid introducing module dependency cyc...
39
80
0.757546
f0370262ee6507ccb536d73a6794f8c889b02399
18,136
py
Python
openmdao/components/tests/test_deprecated_component.py
hwangjt/blue
609defbe476c86a4a2eddd12977b47e649ea7f50
[ "Apache-2.0" ]
null
null
null
openmdao/components/tests/test_deprecated_component.py
hwangjt/blue
609defbe476c86a4a2eddd12977b47e649ea7f50
[ "Apache-2.0" ]
null
null
null
openmdao/components/tests/test_deprecated_component.py
hwangjt/blue
609defbe476c86a4a2eddd12977b47e649ea7f50
[ "Apache-2.0" ]
null
null
null
""" Test the DeprecatedComponent which allows openmmdao 1.x components to run. """ import unittest from six import iteritems from six.moves import cStringIO import numpy as np from openmdao.api import Problem, IndepVarComp, Component, Group, NewtonSolver, NonLinearRunOnce from openmdao.api import ScipyIterativeSolve...
36.199601
96
0.553595
062f241a4b3f07934a582b3536cc38a0aed28534
671
py
Python
Backend/emr-cluster-ops/src/scripts/emr_create.py
sandipnahak/QuickFabric
1010fb40235254c7a5e8d225e7d34d1abd6ec543
[ "Apache-2.0" ]
22
2020-03-10T20:55:26.000Z
2022-02-03T04:03:09.000Z
Backend/emr-cluster-ops/src/scripts/emr_create.py
sandipnahak/QuickFabric
1010fb40235254c7a5e8d225e7d34d1abd6ec543
[ "Apache-2.0" ]
13
2020-03-30T09:28:14.000Z
2021-10-06T05:53:40.000Z
Backend/emr-cluster-ops/src/scripts/emr_create.py
sandipnahak/QuickFabric
1010fb40235254c7a5e8d225e7d34d1abd6ec543
[ "Apache-2.0" ]
15
2020-03-30T09:12:22.000Z
2022-02-24T08:05:47.000Z
""" Lambda function to launch EMR cluster using Boto3 SDK """ from src.scripts.emr_create_nonkerb import lambda_handler as emr_nonkerb from src.util.commlib import construct_error_response from src.util import exceptions def lambda_handler(event, context): cluster_type = event.get('sub_type', 'unknown').lower()...
37.277778
74
0.757079
60c53c4be04614157c359724729e56b2ca7ca223
19,568
py
Python
exercises/ex08/glib-2.60.0/gio/gdbus-2.0/codegen/dbustypes.py
Athmika/ExercisesInC
19ccc846debd8588340a3d39d828ded05407295f
[ "MIT" ]
4
2019-05-31T19:55:23.000Z
2020-10-27T10:00:32.000Z
exercises/ex08/glib-2.60.0/gio/gdbus-2.0/codegen/dbustypes.py
Athmika/ExercisesInC
19ccc846debd8588340a3d39d828ded05407295f
[ "MIT" ]
null
null
null
exercises/ex08/glib-2.60.0/gio/gdbus-2.0/codegen/dbustypes.py
Athmika/ExercisesInC
19ccc846debd8588340a3d39d828ded05407295f
[ "MIT" ]
3
2019-04-29T14:09:38.000Z
2020-10-27T10:00:33.000Z
# -*- Mode: Python -*- # GDBus - GLib D-Bus Library # # Copyright (C) 2008-2011 Red Hat, Inc. # # This library is free software; you can redistribute it and/or # modify it under the terms of the GNU Lesser General Public # License as published by the Free Software Foundation; either # version 2.1 of the License, or (a...
41.457627
127
0.560149
4be559e993d1bd6ab9539934f6dc8edd468e4dc2
318
py
Python
lambkin/ux.py
perezbarbosa/lambkin
f6016203c9565f150afcddfe25548fb084d03a8d
[ "Apache-2.0" ]
81
2016-08-22T15:41:37.000Z
2021-04-15T14:38:12.000Z
lambkin/ux.py
perezbarbosa/lambkin
f6016203c9565f150afcddfe25548fb084d03a8d
[ "Apache-2.0" ]
15
2016-08-29T18:40:03.000Z
2017-11-29T10:31:45.000Z
lambkin/ux.py
perezbarbosa/lambkin
f6016203c9565f150afcddfe25548fb084d03a8d
[ "Apache-2.0" ]
14
2016-09-10T12:57:13.000Z
2019-12-17T04:53:41.000Z
from click import echo def say(message): """Write an info message to STDERR. We deliberatly send the message to STDERR to keep STDOUT clear for any JSON output we may return. Interleaving info messages would break the ability to pipe our output to a JSON parser. """ echo(message, err=True)
26.5
74
0.713836
a29df07bc1f99ccb081f092f75ac257c716251c4
110,771
py
Python
tests/components/alexa/test_smart_home.py
finnysamuel/home-assistant
3b2df51678fd25c0c388b5db70b87b013fcbeb22
[ "Apache-2.0" ]
2
2017-01-24T09:40:05.000Z
2021-02-28T15:51:44.000Z
tests/components/alexa/test_smart_home.py
finnysamuel/home-assistant
3b2df51678fd25c0c388b5db70b87b013fcbeb22
[ "Apache-2.0" ]
1
2017-01-20T22:09:40.000Z
2017-01-20T22:09:40.000Z
tests/components/alexa/test_smart_home.py
finnysamuel/home-assistant
3b2df51678fd25c0c388b5db70b87b013fcbeb22
[ "Apache-2.0" ]
3
2017-01-19T23:38:38.000Z
2021-02-06T07:20:36.000Z
"""Test for smart home alexa support.""" import pytest from homeassistant.components.alexa import messages, smart_home from homeassistant.components.media_player.const import ( SUPPORT_NEXT_TRACK, SUPPORT_PAUSE, SUPPORT_PLAY, SUPPORT_PLAY_MEDIA, SUPPORT_PREVIOUS_TRACK, SUPPORT_SEEK, SUPPORT...
32.427108
106
0.629623
b660be9a8c54ba2d7bb0eac6de43063db8a62821
1,031
py
Python
test/test_resources.py
lemarconi/plot_boundary
675a60e0756ef04fcdcf19ab6101a17590dabb0c
[ "MIT" ]
null
null
null
test/test_resources.py
lemarconi/plot_boundary
675a60e0756ef04fcdcf19ab6101a17590dabb0c
[ "MIT" ]
1
2020-10-28T08:35:48.000Z
2020-10-28T13:26:36.000Z
test/test_resources.py
lemarconi/plot_boundary
675a60e0756ef04fcdcf19ab6101a17590dabb0c
[ "MIT" ]
1
2022-03-01T11:37:49.000Z
2022-03-01T11:37:49.000Z
# coding=utf-8 """Resources test. .. note:: This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. """ __author__ = '...
22.911111
78
0.666343
81449ad94cd0eebe3d31e8b4c71ae28511c57e42
2,903
py
Python
virt/ansible-latest/lib/python2.7/site-packages/ansible/modules/cloud/scaleway/scaleway_snapshot_facts.py
lakhlaifi/RedHat-Ansible
27c5077cced9d416081fcd5d69ea44bca0317fa4
[ "Apache-2.0" ]
1
2020-03-29T18:41:01.000Z
2020-03-29T18:41:01.000Z
ansible/ansible/modules/cloud/scaleway/scaleway_snapshot_facts.py
SergeyCherepanov/ansible
875711cd2fd6b783c812241c2ed7a954bf6f670f
[ "MIT" ]
7
2020-09-07T17:27:56.000Z
2022-03-02T06:25:46.000Z
ansible/ansible/modules/cloud/scaleway/scaleway_snapshot_facts.py
SergeyCherepanov/ansible
875711cd2fd6b783c812241c2ed7a954bf6f670f
[ "MIT" ]
1
2020-10-30T12:48:24.000Z
2020-10-30T12:48:24.000Z
#!/usr/bin/python # -*- coding: utf-8 -*- # # (c) 2018, Yanis Guenane <yanis+ansible@guenane.org> # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import (absolute_import, division, print_function) __metaclass__ = type ANSIBLE_METADATA = {'metadata_version':...
26.633028
100
0.657251
2fbc29dbd1a0ccdf37a233d473083e5f7b058b89
267
py
Python
venv/Lib/site-packages/pandas_datareader/tests/test_stooq.py
shehzadulislam/Quiz2Shehzad
c06c51bdd21ed20c446e137c7930f6312e11c437
[ "MIT" ]
null
null
null
venv/Lib/site-packages/pandas_datareader/tests/test_stooq.py
shehzadulislam/Quiz2Shehzad
c06c51bdd21ed20c446e137c7930f6312e11c437
[ "MIT" ]
null
null
null
venv/Lib/site-packages/pandas_datareader/tests/test_stooq.py
shehzadulislam/Quiz2Shehzad
c06c51bdd21ed20c446e137c7930f6312e11c437
[ "MIT" ]
null
null
null
import pandas_datareader.data as web from pandas_datareader.data import get_data_stooq def test_stooq_dji(): f = web.DataReader('^DJI', 'stooq') assert f.shape[0] > 0 def test_get_data_stooq_dji(): f = get_data_stooq('^DAX') assert f.shape[0] > 0
20.538462
49
0.70412
391780a63b95e802d22016b133e58e5394f85169
605
py
Python
app/api/utils.py
daghan/MarkDownBlog
63cc2d3993092138d8f66636cf8a19a76a88e2bb
[ "MIT" ]
25
2015-02-24T18:47:56.000Z
2022-03-27T22:21:48.000Z
app/api/utils.py
daghan/MarkDownBlog
63cc2d3993092138d8f66636cf8a19a76a88e2bb
[ "MIT" ]
2
2015-02-24T18:52:27.000Z
2020-01-13T09:21:57.000Z
app/api/utils.py
daghan/MarkDownBlog
63cc2d3993092138d8f66636cf8a19a76a88e2bb
[ "MIT" ]
11
2015-05-07T07:53:51.000Z
2022-03-27T22:07:34.000Z
# -*- coding: utf-8 -*- from flask import g, request from flask_restless import ProcessingException from app.models import User def auth_required(data=None, **kwargs): if 'Authorization' in request.headers: token = request.headers.get('Authorization') elif data and 'token' in data: token = ...
28.809524
87
0.702479
e3b409bae73a7f41dd129f757de89dd1d97729ea
4,177
py
Python
tools/deployment_options.py
priyanka19-98/assisted-service
f2d9619d6a32300e2560194229a3f6dd9b1608ac
[ "Apache-2.0" ]
null
null
null
tools/deployment_options.py
priyanka19-98/assisted-service
f2d9619d6a32300e2560194229a3f6dd9b1608ac
[ "Apache-2.0" ]
null
null
null
tools/deployment_options.py
priyanka19-98/assisted-service
f2d9619d6a32300e2560194229a3f6dd9b1608ac
[ "Apache-2.0" ]
null
null
null
import argparse import base64 import os import requests import yaml IMAGE_FQDN_TEMPLATE = "quay.io/ocpmetal/{}:{}" def load_deployment_options(parser=None): if not parser: parser = argparse.ArgumentParser() parser.add_argument( '--namespace', help='Namespace for all deployment image...
39.037383
163
0.713191
0482cb506048dc84158840e1d14b46a11e006c75
8,681
py
Python
spinup/run.py
shaolinkhoa/spinningup
8b92b8a6fb1de63de59be61cd7a9a6ab7304c283
[ "MIT" ]
52
2019-01-12T00:36:08.000Z
2022-03-20T12:22:42.000Z
spinup/run.py
wonseokjung/spinningup
8b92b8a6fb1de63de59be61cd7a9a6ab7304c283
[ "MIT" ]
2
2020-07-31T10:26:26.000Z
2021-12-16T07:19:51.000Z
spinup/run.py
wonseokjung/spinningup
8b92b8a6fb1de63de59be61cd7a9a6ab7304c283
[ "MIT" ]
17
2019-01-10T08:13:17.000Z
2022-01-11T01:58:33.000Z
import spinup from spinup.utils.run_utils import ExperimentGrid from spinup.utils.serialization_utils import convert_json import argparse import gym import json import os, subprocess, sys import os.path as osp import string import tensorflow as tf from textwrap import dedent # Command line args that will go to Experi...
37.580087
87
0.627923
66375950fb95af0e2672b398581a05cea1df151e
3,688
py
Python
tools/system_design/xmlparser/container.py
roboterclubaachen/xpcc
010924901947381d20e83b838502880eb2ffea72
[ "BSD-3-Clause" ]
161
2015-01-13T15:52:06.000Z
2020-02-13T01:26:04.000Z
tools/system_design/xmlparser/container.py
salkinium/xpcc
010924901947381d20e83b838502880eb2ffea72
[ "BSD-3-Clause" ]
281
2015-01-06T12:46:40.000Z
2019-01-06T13:06:57.000Z
tools/system_design/xmlparser/container.py
salkinium/xpcc
010924901947381d20e83b838502880eb2ffea72
[ "BSD-3-Clause" ]
51
2015-03-03T19:56:12.000Z
2020-03-22T02:13:36.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- from . import utils from . import xml_utils from .component import EventContainer from .parser_exception import ParserException class Container: """ Representation of a container which bundles components. For microcontrollers, each container runs on a separate contro...
29.504
100
0.704718
a7f7ef897d4195ee7b5d67194d33a999574804a4
2,299
py
Python
tests/terraform/checks/resource/azure/test_AKSUsesDiskEncryptionSet.py
pmalkki/checkov
b6cdf386dd976fe27c16fed6d550756a678a5d7b
[ "Apache-2.0" ]
4,013
2019-12-09T13:16:54.000Z
2022-03-31T14:31:01.000Z
tests/terraform/checks/resource/azure/test_AKSUsesDiskEncryptionSet.py
pmalkki/checkov
b6cdf386dd976fe27c16fed6d550756a678a5d7b
[ "Apache-2.0" ]
1,258
2019-12-17T09:55:51.000Z
2022-03-31T19:17:17.000Z
tests/terraform/checks/resource/azure/test_AKSUsesDiskEncryptionSet.py
pmalkki/checkov
b6cdf386dd976fe27c16fed6d550756a678a5d7b
[ "Apache-2.0" ]
638
2019-12-19T08:57:38.000Z
2022-03-30T21:38:37.000Z
import unittest import hcl2 from checkov.terraform.checks.resource.azure.AKSUsesDiskEncryptionSet import check from checkov.common.models.enums import CheckResult class TestAKSUsesDiskEncryptionSet(unittest.TestCase): def test_failure(self): hcl_res = hcl2.loads(""" resource "azurerm_kubern...
33.318841
87
0.522836
658fba1b45cd8bf8610f613ca67b245ba8efe96f
893
py
Python
src/pyhgnc/manager/defaults.py
LeKono/PyHGNC
568490676aef8fbb327285e73aff91f3329935bc
[ "Apache-2.0" ]
2
2021-02-07T05:16:19.000Z
2021-05-28T03:47:04.000Z
src/pyhgnc/manager/defaults.py
LeKono/PyHGNC
568490676aef8fbb327285e73aff91f3329935bc
[ "Apache-2.0" ]
1
2022-01-07T10:31:17.000Z
2022-01-07T10:31:17.000Z
src/pyhgnc/manager/defaults.py
LeKono/PyHGNC
568490676aef8fbb327285e73aff91f3329935bc
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """This file contains default URL settings for PyHGNC.""" import os from ..constants import PYHGNC_DIR, PYHGNC_DATA_DIR DEFAULT_SQLITE_DATABASE_NAME = 'pyhgnc.db' DEFAULT_SQLITE_TEST_DATABASE_NAME = 'pyhgnc_test.db' DEFAULT_DATABASE_LOCATION = os.path.join(PYHGNC_DATA_DIR, DEFAULT_SQLITE_DATAB...
42.52381
111
0.827548
2ee58372db213443d4575b5a3ba905a6b23bf590
11,123
py
Python
fec/home/migrations/0018_record_digest_press_release.py
cnlucas/fec-cms
aa67a0d4c19a350420d2f8c4b4e6f93acb808639
[ "CC0-1.0" ]
39
2018-03-09T21:56:17.000Z
2022-01-20T02:31:38.000Z
fec/home/migrations/0018_record_digest_press_release.py
rbtrsv/fec-cms
3136d1cf300ce1505d7035de38038e1c045937e6
[ "CC0-1.0" ]
3,183
2018-03-09T20:30:55.000Z
2022-03-30T21:27:49.000Z
fec/home/migrations/0018_record_digest_press_release.py
rbtrsv/fec-cms
3136d1cf300ce1505d7035de38038e1c045937e6
[ "CC0-1.0" ]
19
2018-03-09T20:47:31.000Z
2022-03-10T02:54:33.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.9.9 on 2016-08-31 00:35 from __future__ import unicode_literals import datetime from django.db import migrations, models import django.db.models.deletion import home.models import modelcluster.fields import wagtail.contrib.table_block.blocks import wagtail.core.blocks im...
67.006024
691
0.634631
2abdf24c38743dbfe4c9c7bc4e9212b27bc2618a
3,316
py
Python
rules/TaskHasValidNameRule.py
ssato/ansibl-lint-custom-rules
bdef2bab13bdb08509aed45a274f9f1a681542ec
[ "MIT" ]
null
null
null
rules/TaskHasValidNameRule.py
ssato/ansibl-lint-custom-rules
bdef2bab13bdb08509aed45a274f9f1a681542ec
[ "MIT" ]
null
null
null
rules/TaskHasValidNameRule.py
ssato/ansibl-lint-custom-rules
bdef2bab13bdb08509aed45a274f9f1a681542ec
[ "MIT" ]
null
null
null
# Copyright (C) 2020,2021 Satoru SATOH <satoru.satoh@gmail.com> # SPDX-License-Identifier: MIT # r"""Lint rule class to test if tasks have valid names. """ import functools import re import typing import warnings import ansiblelint.utils import ansiblelint.rules if typing.TYPE_CHECKING: from typing import Optiona...
28.101695
79
0.645054
366caa6cb7bbf88d4037e752b1b7e8cfdcb83ee0
347
py
Python
setup.py
RadRobot/deta
bba1da99eb377e554ec4a0bd717087340826799d
[ "MIT" ]
null
null
null
setup.py
RadRobot/deta
bba1da99eb377e554ec4a0bd717087340826799d
[ "MIT" ]
null
null
null
setup.py
RadRobot/deta
bba1da99eb377e554ec4a0bd717087340826799d
[ "MIT" ]
null
null
null
from setuptools import setup setup( name = "deta", version = "0.0.1", author = "Radu Nicolae", author_email = "ranicolae@gmail.com", description = ("Tag based debug printing"), license = "MIT", keywords = "logging configuration json tags tagging", url = "https://github.com/RadRobot/deta...
24.785714
57
0.634006
3bc81e3030d5da4041fd3ca533760fef4fd7ab84
20,696
py
Python
wagtail/images/tests/test_models.py
shreyashsrivastava/wagtail
e3340368b32f5ac28dbd688e7e2ba8a7d446ebe1
[ "BSD-3-Clause" ]
1
2021-05-24T13:15:04.000Z
2021-05-24T13:15:04.000Z
wagtail/images/tests/test_models.py
shreyashsrivastava/wagtail
e3340368b32f5ac28dbd688e7e2ba8a7d446ebe1
[ "BSD-3-Clause" ]
null
null
null
wagtail/images/tests/test_models.py
shreyashsrivastava/wagtail
e3340368b32f5ac28dbd688e7e2ba8a7d446ebe1
[ "BSD-3-Clause" ]
2
2021-08-23T01:41:30.000Z
2021-08-23T17:02:32.000Z
import unittest from django.contrib.auth.models import Group, Permission from django.core.cache import caches from django.core.files.uploadedfile import SimpleUploadedFile from django.db.utils import IntegrityError from django.test import TestCase from django.test.utils import override_settings from django.urls import...
35.621343
139
0.663703
39f02e5dbda14d7be5f5321de62d014cc467e677
5,519
py
Python
zwhk_blog/utils.py
MinXiaoBo/django_blog
3ce199a8144dda417b20595bf210ccfe42c0ff4e
[ "MIT" ]
1
2019-09-25T07:58:45.000Z
2019-09-25T07:58:45.000Z
zwhk_blog/utils.py
MinXiaoBo/django_blog
3ce199a8144dda417b20595bf210ccfe42c0ff4e
[ "MIT" ]
null
null
null
zwhk_blog/utils.py
MinXiaoBo/django_blog
3ce199a8144dda417b20595bf210ccfe42c0ff4e
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from django.core.cache import cache from django.contrib.sites.models import Site from hashlib import md5 import mistune from mistune import escape, escape_link from pygments import highlight from pygments.lexers import get_lexer_by_name from pygments.formatters import html import logging import...
32.087209
100
0.608444
8d1fae37714819453802b548a7a304cbc4306e36
1,748
py
Python
librec/cf/similarity.py
kcviuas/PCI
d84742647a61d0ca8363dcac95e16d564823fbc8
[ "MIT" ]
null
null
null
librec/cf/similarity.py
kcviuas/PCI
d84742647a61d0ca8363dcac95e16d564823fbc8
[ "MIT" ]
null
null
null
librec/cf/similarity.py
kcviuas/PCI
d84742647a61d0ca8363dcac95e16d564823fbc8
[ "MIT" ]
null
null
null
from math import sqrt def sim_euclid(dict2dim, name1, name2): ''' :param dict2dim: two dimension dictionary: dict2dim[name1][name2]=rating :param name1: pass :param name2: pass :return: similarity ''' same = {} for item in dict2dim[name1]: if item in dict2dim[name2]: ...
21.580247
81
0.563501
e3fbca27742db16606816e811302ae5d2502bee4
19,145
py
Python
saleor/graphql/product/bulk_mutations/products.py
mrkevinomar/saleor
5e5f83288aa3d2c916520cc7267f3cb6ec2ab29a
[ "CC-BY-4.0" ]
null
null
null
saleor/graphql/product/bulk_mutations/products.py
mrkevinomar/saleor
5e5f83288aa3d2c916520cc7267f3cb6ec2ab29a
[ "CC-BY-4.0" ]
12
2020-09-21T02:31:36.000Z
2022-03-12T00:37:52.000Z
saleor/graphql/product/bulk_mutations/products.py
mrkevinomar/saleor
5e5f83288aa3d2c916520cc7267f3cb6ec2ab29a
[ "CC-BY-4.0" ]
null
null
null
from collections import defaultdict import graphene from django.core.exceptions import ValidationError from django.db import transaction from ....core.permissions import ProductPermissions from ....product import models from ....product.error_codes import ProductErrorCode from ....product.tasks import update_product_...
35.064103
88
0.642622
501b09bd92f0fdabcd6a997c1a2a738383ac538e
220
py
Python
reconnaissance/subdomains.py
coffeegist/nlzr
eff7b3790f90ab60e605807fe2349f7e418094e1
[ "MIT" ]
10
2018-03-13T13:34:36.000Z
2022-01-13T15:34:13.000Z
reconnaissance/subdomains.py
coffeegist/nlzr
eff7b3790f90ab60e605807fe2349f7e418094e1
[ "MIT" ]
2
2020-07-06T13:05:27.000Z
2020-08-13T17:48:30.000Z
reconnaissance/subdomains.py
coffeegist/nlzr
eff7b3790f90ab60e605807fe2349f7e418094e1
[ "MIT" ]
6
2019-04-10T13:35:32.000Z
2021-04-23T15:27:41.000Z
import sys import sublist3r domain = sys.argv[1] fileout = str(domain) + "_subdomains.txt" subdomains = sublist3r.main(domain, 40, fileout, ports=None, silent=False, verbose=False, enable_bruteforce=False, engines=None)
44
128
0.777273
6633bb50fe065a656e87230adcd18336ecc6f58f
27,517
py
Python
lib/tests/streamlit/state/session_state_test.py
arraydude/streamlit-1
ab7c339623b457c71e3b77e3162c86962ac167d0
[ "Apache-2.0" ]
1
2022-01-19T10:48:49.000Z
2022-01-19T10:48:49.000Z
lib/tests/streamlit/state/session_state_test.py
arraydude/streamlit-1
ab7c339623b457c71e3b77e3162c86962ac167d0
[ "Apache-2.0" ]
52
2021-10-04T21:52:48.000Z
2021-12-29T02:18:44.000Z
lib/tests/streamlit/state/session_state_test.py
arraydude/streamlit-1
ab7c339623b457c71e3b77e3162c86962ac167d0
[ "Apache-2.0" ]
null
null
null
# Copyright 2018-2021 Streamlit Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in wr...
33.516443
87
0.640513
22e2b18d5eecc273108b5276c177a209899063b4
2,799
py
Python
paser/CorePaser.py
StephenZSIR/csdn2hexo_python
a1a319b3e05022822a33b576ce7b80ba314fb2e6
[ "MIT" ]
2
2021-03-15T12:51:12.000Z
2021-04-09T03:07:06.000Z
paser/CorePaser.py
StephenZSIR/csdn2hexo_python
a1a319b3e05022822a33b576ce7b80ba314fb2e6
[ "MIT" ]
null
null
null
paser/CorePaser.py
StephenZSIR/csdn2hexo_python
a1a319b3e05022822a33b576ce7b80ba314fb2e6
[ "MIT" ]
null
null
null
#-*- coding: utf-8 -*- from properties import Properties from util import FileUtil from paser import ArticlePaser from bs4 import BeautifulSoup class CorePaser: articlePaser = ArticlePaser.ArticlePaser() fileutil = FileUtil.FileUtil() def __init__(self): print("CorePaser初始化") # 解析博客的入口函数 def paserCore(self): ...
26.40566
76
0.649518
4efc0c02db13bd368f42f287cb3623cec79c709a
4,602
py
Python
chia/wallet/util/peer_request_cache.py
Starcoder0x/chia-blockchain
5b2f5772780d0370f76b0134db6a7fdc7af42862
[ "Apache-2.0" ]
2
2022-03-22T22:00:46.000Z
2022-03-22T22:42:45.000Z
chia/wallet/util/peer_request_cache.py
zcomputerwiz/experiments-blockchain
841754b44494451a9e3e537575eeec431fe533d1
[ "Apache-2.0" ]
3
2022-03-21T22:00:11.000Z
2022-03-21T22:00:40.000Z
chia/wallet/util/peer_request_cache.py
zcomputerwiz/experiments-blockchain
841754b44494451a9e3e537575eeec431fe533d1
[ "Apache-2.0" ]
1
2022-03-15T05:17:02.000Z
2022-03-15T05:17:02.000Z
import asyncio from typing import Optional from chia.protocols.wallet_protocol import CoinState, RespondSESInfo from chia.types.blockchain_format.sized_bytes import bytes32 from chia.types.header_block import HeaderBlock from chia.util.ints import uint32, uint64 from chia.util.lru_cache import LRUCache class PeerReq...
42.220183
107
0.699261