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
5c041cdbf282f4acdfb6599f8aefee37b9cdbc18
2,405
py
Python
allennlp-tutorial/venue/venue_reader.py
thomakl/BDSC
3c4f10126ff7dabe631839c47fc2362bf16e8588
[ "MIT" ]
null
null
null
allennlp-tutorial/venue/venue_reader.py
thomakl/BDSC
3c4f10126ff7dabe631839c47fc2362bf16e8588
[ "MIT" ]
null
null
null
allennlp-tutorial/venue/venue_reader.py
thomakl/BDSC
3c4f10126ff7dabe631839c47fc2362bf16e8588
[ "MIT" ]
null
null
null
import json from typing import Iterator, List, Dict, Optional from allennlp.data import Instance from allennlp.data.fields import TextField, SequenceLabelField, LabelField from allennlp.data.dataset_readers import DatasetReader from allennlp.common.file_utils import cached_path from allennlp.data.token_indexers import...
40.762712
83
0.622453
584b28c3f07f7802d95e59900f5148b8f733f722
2,932
py
Python
upvote/gae/modules/upvote_app/api/handlers/lookups.py
cclauss/upvote
9d526fec72690cde1575dbd32dacf68cbbab81d1
[ "Apache-2.0" ]
null
null
null
upvote/gae/modules/upvote_app/api/handlers/lookups.py
cclauss/upvote
9d526fec72690cde1575dbd32dacf68cbbab81d1
[ "Apache-2.0" ]
null
null
null
upvote/gae/modules/upvote_app/api/handlers/lookups.py
cclauss/upvote
9d526fec72690cde1575dbd32dacf68cbbab81d1
[ "Apache-2.0" ]
null
null
null
# Copyright 2017 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or a...
38.578947
80
0.713506
7a83585f06778ea221f4502215e52c2b2b52fce5
576
py
Python
tests/token/test_setIssuer.py
blockchain-jedi/erc20-contract-template
4364d131e5046d0534f6b92304e6f91b5e8adb23
[ "MIT" ]
null
null
null
tests/token/test_setIssuer.py
blockchain-jedi/erc20-contract-template
4364d131e5046d0534f6b92304e6f91b5e8adb23
[ "MIT" ]
null
null
null
tests/token/test_setIssuer.py
blockchain-jedi/erc20-contract-template
4364d131e5046d0534f6b92304e6f91b5e8adb23
[ "MIT" ]
null
null
null
import pytest from brownie import reverts from tests.fixtures.token import token from tests.fixtures.accounts import admin, issuer, non_holders def test_setIssuer_from_non_owner(token, non_holders): with reverts("dev: missing role"): token.setIssuer(non_holders[0], {'from': non_holders[0]}) def test_setI...
33.882353
65
0.751736
49db783a5aa85d7bd85fef1e576c1214082745e4
537
py
Python
meiduo_mall/meiduo_mall/apps/goods/urls.py
tuhao1250/meiduo-mall
7f0e64de72a0ad5b883fd8eb568aca3befd6e120
[ "MIT" ]
null
null
null
meiduo_mall/meiduo_mall/apps/goods/urls.py
tuhao1250/meiduo-mall
7f0e64de72a0ad5b883fd8eb568aca3befd6e120
[ "MIT" ]
null
null
null
meiduo_mall/meiduo_mall/apps/goods/urls.py
tuhao1250/meiduo-mall
7f0e64de72a0ad5b883fd8eb568aca3befd6e120
[ "MIT" ]
null
null
null
from django.urls import path from rest_framework.routers import DefaultRouter from . import views app_name = 'goods' urlpatterns = [ path(r'categories/<int:category_id>/hotskus/', views.HotSKUListView.as_view()), # 返回商品SKU热销数据 path(r'categories/<int:category_id>/skus/', views.SKUListView.as_view()), # 获取商品...
31.588235
98
0.746741
0998faa6975800bce7455b021367e3870c976389
535
py
Python
test/test_create_vendor.py
oostapenko84/My-project
eba54a6f6d58f486b650877417457404962483e0
[ "Apache-2.0" ]
null
null
null
test/test_create_vendor.py
oostapenko84/My-project
eba54a6f6d58f486b650877417457404962483e0
[ "Apache-2.0" ]
null
null
null
test/test_create_vendor.py
oostapenko84/My-project
eba54a6f6d58f486b650877417457404962483e0
[ "Apache-2.0" ]
null
null
null
__author__ = 'olga.ostapenko' from model.vendor import Vendor def test_create_vendor(app): app.session.login(username="admin@admin.com", password="12345678") app.vendor.create( Vendor(Company_Name="Test Company vv", Phone="12345678", Address="San Francisco", City="San Francisco", Zip_Co...
44.583333
113
0.693458
c79aed851cbe87c5e43289b0130b14b817dcaa34
3,111
py
Python
MEng Portfolio Scripts/PyVISA/main_sweep_script.py
aidansmyth95/Masters-Project-Characterization-of-Reflectors-in-a-Wireless-Channel
66780e7d0be8b3929e657a3f30455cfa224655f6
[ "MIT" ]
null
null
null
MEng Portfolio Scripts/PyVISA/main_sweep_script.py
aidansmyth95/Masters-Project-Characterization-of-Reflectors-in-a-Wireless-Channel
66780e7d0be8b3929e657a3f30455cfa224655f6
[ "MIT" ]
null
null
null
MEng Portfolio Scripts/PyVISA/main_sweep_script.py
aidansmyth95/Masters-Project-Characterization-of-Reflectors-in-a-Wireless-Channel
66780e7d0be8b3929e657a3f30455cfa224655f6
[ "MIT" ]
3
2019-10-25T16:32:29.000Z
2021-02-28T06:48:40.000Z
import csv import visa import socket import vxi11 import time import sys import math import string from SA_CTRL_function import * from SG_CTRL_function import * # sig gen settings start_freq = 2.0000000 # GHz end_freq = 3.000000 # GHz delta_freq = 0.0005000 # GHz pwr = 14 # dBm #...
37.035714
98
0.575699
96ee38f9fcb432ded99fa0682078966d30627c56
1,868
py
Python
main.py
M-Faheem-Khan/Flickr-Image-Downloader
db3d3e98f2892d8f85b61a925f9848d1c0ae2e10
[ "MIT" ]
null
null
null
main.py
M-Faheem-Khan/Flickr-Image-Downloader
db3d3e98f2892d8f85b61a925f9848d1c0ae2e10
[ "MIT" ]
null
null
null
main.py
M-Faheem-Khan/Flickr-Image-Downloader
db3d3e98f2892d8f85b61a925f9848d1c0ae2e10
[ "MIT" ]
null
null
null
import urllib.request import requests from bs4 import BeautifulSoup def flickr_img(search, no_img): # gets page source url = "https://www.flickr.com/search/?text="+search html = urllib.request.urlopen(url) soup = BeautifulSoup(html, "html.parser") # gets the urls from the div tags ls = soup.find_all("d...
27.880597
178
0.664347
7572dea154e64a43ca5d0ecca2d2efb4987f7b85
315
py
Python
terra_sdk/core/wasm/__init__.py
terra-money/terra.py
d66de6bb4d9d78f08ad8ffe05ae72d847fc5099d
[ "MIT" ]
66
2021-10-21T23:29:38.000Z
2022-03-30T15:58:13.000Z
terra_sdk/core/wasm/__init__.py
terra-money/terra.py
d66de6bb4d9d78f08ad8ffe05ae72d847fc5099d
[ "MIT" ]
50
2021-10-19T06:11:56.000Z
2022-03-31T17:06:57.000Z
terra_sdk/core/wasm/__init__.py
terra-money/terra.py
d66de6bb4d9d78f08ad8ffe05ae72d847fc5099d
[ "MIT" ]
39
2021-11-07T17:28:31.000Z
2022-03-31T15:03:57.000Z
from .msgs import ( MsgClearAdmin, MsgExecuteContract, MsgInstantiateContract, MsgMigrateContract, MsgStoreCode, MsgUpdateAdmin, ) __all__ = [ "MsgStoreCode", "MsgInstantiateContract", "MsgExecuteContract", "MsgMigrateContract", "MsgUpdateAdmin", "MsgClearAdmin", ]
17.5
29
0.68254
847f001692f213cbce96a8fc0a4df79fe2d7d963
9,071
py
Python
src/mca.py
jakub-stejskal/mca
7344f3b77f2a4d6c0440bc0aaa99945d108162b2
[ "BSD-3-Clause" ]
9
2015-01-31T08:22:34.000Z
2021-04-14T16:01:27.000Z
src/mca.py
dataculture/mca
7344f3b77f2a4d6c0440bc0aaa99945d108162b2
[ "BSD-3-Clause" ]
null
null
null
src/mca.py
dataculture/mca
7344f3b77f2a4d6c0440bc0aaa99945d108162b2
[ "BSD-3-Clause" ]
2
2017-07-19T18:36:06.000Z
2019-03-12T01:00:29.000Z
# -*- coding: utf-8 -*- from scipy.linalg import diagsvd import numpy as np import pandas as pd import functools def process_df(DF, cols, ncols): if cols: # if you want us to do the dummy coding K = len(cols) # the number of categories X = dummy(DF, cols) else: # if you want to dummy code ...
41.420091
86
0.572373
3ce562331fb9b252dc47d035be921a9c455d692c
103,416
py
Python
core/domain/exp_domain_test.py
vibhor98/oppia
47aeba6879467ac53e8a9dc89bbf73a4fbb7ebaf
[ "Apache-2.0" ]
null
null
null
core/domain/exp_domain_test.py
vibhor98/oppia
47aeba6879467ac53e8a9dc89bbf73a4fbb7ebaf
[ "Apache-2.0" ]
null
null
null
core/domain/exp_domain_test.py
vibhor98/oppia
47aeba6879467ac53e8a9dc89bbf73a4fbb7ebaf
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 # # Copyright 2014 The Oppia 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 requi...
30.089031
80
0.602847
073a3a60d65039749141c86d3900c24c9d0654e6
15,316
py
Python
tensorflow/python/framework/sparse_tensor.py
Faagerholm/tensorflow
98e30b8748eb018f33836ac9269db67ab60483ab
[ "Apache-2.0" ]
4
2021-02-01T01:01:11.000Z
2021-07-21T15:22:20.000Z
tensorflow/python/framework/sparse_tensor.py
Faagerholm/tensorflow
98e30b8748eb018f33836ac9269db67ab60483ab
[ "Apache-2.0" ]
null
null
null
tensorflow/python/framework/sparse_tensor.py
Faagerholm/tensorflow
98e30b8748eb018f33836ac9269db67ab60483ab
[ "Apache-2.0" ]
5
2020-12-22T10:17:47.000Z
2021-05-06T14:14:52.000Z
# Copyright 2015 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
36.906024
80
0.717159
9bf61f81628046eaa73b588c7fdb26e08998dadc
67,925
py
Python
Incident-Response/Tools/grr/grr/server/grr_response_server/databases/db_paths_test.py
sn0b4ll/Incident-Playbook
cf519f58fcd4255674662b3620ea97c1091c1efb
[ "MIT" ]
1
2021-07-24T17:22:50.000Z
2021-07-24T17:22:50.000Z
Incident-Response/Tools/grr/grr/server/grr_response_server/databases/db_paths_test.py
sn0b4ll/Incident-Playbook
cf519f58fcd4255674662b3620ea97c1091c1efb
[ "MIT" ]
2
2022-02-28T03:40:31.000Z
2022-02-28T03:40:52.000Z
Incident-Response/Tools/grr/grr/server/grr_response_server/databases/db_paths_test.py
sn0b4ll/Incident-Playbook
cf519f58fcd4255674662b3620ea97c1091c1efb
[ "MIT" ]
2
2022-02-25T08:34:51.000Z
2022-03-16T17:29:44.000Z
#!/usr/bin/env python # -*- encoding: utf-8 -*- from __future__ import absolute_import from __future__ import division from __future__ import unicode_literals import hashlib from grr_response_core.lib import rdfvalue from grr_response_core.lib.rdfvalues import client_fs as rdf_client_fs from grr_response_core.lib.rd...
38.59375
80
0.681693
67e5f4d81ec655b27d240c9001979a3e6f1a44d0
3,453
py
Python
ajaxuploader/views/base.py
skoczen/django-ajax-uploader
90cbd93c3d80d047da596e2348edb9619dee3852
[ "BSD-3-Clause" ]
75
2015-02-09T22:49:57.000Z
2021-01-31T23:47:39.000Z
ajaxuploader/views/base.py
skoczen/django-ajax-uploader
90cbd93c3d80d047da596e2348edb9619dee3852
[ "BSD-3-Clause" ]
13
2015-02-27T03:01:30.000Z
2020-11-18T10:11:53.000Z
ajaxuploader/views/base.py
skoczen/django-ajax-uploader
90cbd93c3d80d047da596e2348edb9619dee3852
[ "BSD-3-Clause" ]
29
2015-02-09T22:50:16.000Z
2019-12-25T06:41:43.000Z
try: import json except ImportError: from django.utils import simplejson as json from django.core.files.base import File from django.core.serializers.json import DjangoJSONEncoder from django.http import HttpResponse, HttpResponseBadRequest, Http404, HttpResponseNotAllowed from ajaxuploader.backends.local im...
42.109756
117
0.584419
ef491a4dd2d23e78f303972dac0bb5b86f25ea5d
5,415
py
Python
inference/utils/common_utils.py
videetparekh/latentai-sdk-examples
2104c097045105957ef7403b09b5a2c114677147
[ "Apache-2.0" ]
null
null
null
inference/utils/common_utils.py
videetparekh/latentai-sdk-examples
2104c097045105957ef7403b09b5a2c114677147
[ "Apache-2.0" ]
null
null
null
inference/utils/common_utils.py
videetparekh/latentai-sdk-examples
2104c097045105957ef7403b09b5a2c114677147
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2019 by LatentAI Inc. # All rights reserved. # This file is part of the LEIP(tm) SDK, # and is released under the "LatentAI Commercial Software License". # Please see the LICENSE file that should have been included as part of # this package. # # @file common_utils.py # # @author Videet Parekh ...
29.752747
128
0.682733
ca65a1d31a020f1618a22db5745636441be1d2dd
8,245
py
Python
vae_restore_seg.py
mevah/Unsupervised-Lesion-Detection-via-Image-Restoration-with-a-Normative-Prior
bbedc446cfe6b028e6e9f9d150931e1e1cccf367
[ "MIT" ]
null
null
null
vae_restore_seg.py
mevah/Unsupervised-Lesion-Detection-via-Image-Restoration-with-a-Normative-Prior
bbedc446cfe6b028e6e9f9d150931e1e1cccf367
[ "MIT" ]
null
null
null
vae_restore_seg.py
mevah/Unsupervised-Lesion-Detection-via-Image-Restoration-with-a-Normative-Prior
bbedc446cfe6b028e6e9f9d150931e1e1cccf367
[ "MIT" ]
1
2022-02-19T11:25:14.000Z
2022-02-19T11:25:14.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Thu Jan 30 16:03:45 2020 @author: himeva """ #!/usr/bin/env python2 # -*- coding: utf-8 -*- """ Created on Fri Dec 28 15:26:16 2018 Restoration on VAE @author: syou """ import numpy as np import tensorflow as tf import os import pandas as pd from vars_...
38.348837
131
0.654821
87e00060c54c376d4c1793eca6a3c0a219a7ce92
15,312
py
Python
verto/tests/InteractiveTagTest.py
uccser/verto
d36aa88b208f1700fafc033679bd1e9775496d25
[ "MIT" ]
4
2017-04-10T06:09:54.000Z
2019-05-04T02:07:40.000Z
verto/tests/InteractiveTagTest.py
uccser/verto
d36aa88b208f1700fafc033679bd1e9775496d25
[ "MIT" ]
268
2017-04-03T20:40:46.000Z
2022-02-04T20:10:08.000Z
verto/tests/InteractiveTagTest.py
uccser/kordac
d36aa88b208f1700fafc033679bd1e9775496d25
[ "MIT" ]
1
2019-01-07T15:46:31.000Z
2019-01-07T15:46:31.000Z
import markdown from unittest.mock import Mock from collections import defaultdict from verto.VertoExtension import VertoExtension from verto.processors.InteractiveTagBlockProcessor import InteractiveTagBlockProcessor from verto.errors.ArgumentMissingError import ArgumentMissingError from verto.errors.ArgumentValueErr...
46.969325
206
0.685867
50b46680f9e1bf708b16f8142498e38c2e805278
2,812
py
Python
covid-chestxray-dataset-master/scripts/browser.py
dhruv-varshney/dhrCOVID-19-Testing-Using-X-Ray-Images-Web-App-Development
4c37df7e47d32af255c26729d6c454759819b8c3
[ "MIT" ]
2
2021-10-06T15:17:33.000Z
2021-11-03T05:20:55.000Z
covid-chestxray-dataset-master/scripts/browser.py
dhruv-varshney/dhrCOVID-19-Testing-Using-X-Ray-Images-Web-App-Development
4c37df7e47d32af255c26729d6c454759819b8c3
[ "MIT" ]
null
null
null
covid-chestxray-dataset-master/scripts/browser.py
dhruv-varshney/dhrCOVID-19-Testing-Using-X-Ray-Images-Web-App-Development
4c37df7e47d32af255c26729d6c454759819b8c3
[ "MIT" ]
null
null
null
import os import shutil from selenium import webdriver import time import tempfile chromedriver_path = os.path.abspath( os.path.join( os.path.dirname(__file__), "../../chromedriver" ) ) class Browser(webdriver.Chrome): def __init__(self, downloads_dir=None): self.tempdir = None ...
33.879518
105
0.575391
776d42043b5d8a85e12297cc6fba24583c7e873b
9,590
py
Python
VoiceAssistant.py
Lee-Kevin/VoiceAssistant
da37dc6b2bb57d7def5595d515502a37786ff853
[ "MIT" ]
null
null
null
VoiceAssistant.py
Lee-Kevin/VoiceAssistant
da37dc6b2bb57d7def5595d515502a37786ff853
[ "MIT" ]
null
null
null
VoiceAssistant.py
Lee-Kevin/VoiceAssistant
da37dc6b2bb57d7def5595d515502a37786ff853
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import logging from evernote.api.client import EvernoteClient from HTMLParser import HTMLParser import talkey from weather import weatherReport import threading import time # import library using grovepi from grovepi import * from grove_oled import * from Nettime import...
31.136364
192
0.565589
a667fcd4135d13e37e601156e5153914d11cb4bb
1,599
py
Python
knowledge_repo/app/deploy/gunicorn.py
johri21/knowledge-repo
d22a459ed129bd2eebbfec32e180069bcaf83d9a
[ "Apache-2.0" ]
1
2019-04-09T20:11:15.000Z
2019-04-09T20:11:15.000Z
knowledge_repo/app/deploy/gunicorn.py
johri21/knowledge-repo
d22a459ed129bd2eebbfec32e180069bcaf83d9a
[ "Apache-2.0" ]
null
null
null
knowledge_repo/app/deploy/gunicorn.py
johri21/knowledge-repo
d22a459ed129bd2eebbfec32e180069bcaf83d9a
[ "Apache-2.0" ]
1
2019-05-06T13:22:14.000Z
2019-05-06T13:22:14.000Z
""" gunicorn.py Utilities for running the knowledge app via gunicorn. Adapted from example in http://docs.gunicorn.org/en/stable/custom.html. """ from __future__ import absolute_import from gunicorn.app.base import BaseApplication from .common import KnowledgeDeployer class GunicornDeployer(BaseApplicati...
31.98
106
0.644153
3cda8396fd1d40f0796a5f2653bbd5d9e74679e8
895
py
Python
tlssecondopinion/urls.py
MiWCryptAnalytics/tlssecondopinion
f1eebf753cc898ba546bf1371f3ce1ea848d17d6
[ "BSD-2-Clause" ]
null
null
null
tlssecondopinion/urls.py
MiWCryptAnalytics/tlssecondopinion
f1eebf753cc898ba546bf1371f3ce1ea848d17d6
[ "BSD-2-Clause" ]
4
2017-04-13T02:51:42.000Z
2017-04-13T02:53:12.000Z
tlssecondopinion/urls.py
MiWCryptAnalytics/tlssecondopinion
f1eebf753cc898ba546bf1371f3ce1ea848d17d6
[ "BSD-2-Clause" ]
null
null
null
"""tlssecondopinion URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/1.8/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: url(r'^$', views.home, name='home') ...
34.423077
77
0.699441
0a0209ad5dbb303b1a095721bb81092d757703f0
399
py
Python
numba_compile.py
saturdays/hyperlearn
42b80c2b83c43d8bb84730efc3a9614e6affc01d
[ "BSD-3-Clause" ]
null
null
null
numba_compile.py
saturdays/hyperlearn
42b80c2b83c43d8bb84730efc3a9614e6affc01d
[ "BSD-3-Clause" ]
null
null
null
numba_compile.py
saturdays/hyperlearn
42b80c2b83c43d8bb84730efc3a9614e6affc01d
[ "BSD-3-Clause" ]
null
null
null
print("******* Now compiling Numba and LLVM code..... *******") print("******* This can be VERY SLOW. Please wait.... *******\n" "Progress: |||||||||||||||", end = "") from hyperlearn.numba.funcs import * print("|||||||||||||||", end = "") from hyperlearn.utils import * print("|||||||||||||||") from hyperlearn.s...
23.470588
64
0.516291
eef2d22aab0bd829ef7e53418473d6a91f19fa09
6,219
py
Python
uuv_control/uuv_control_utils/scripts/set_thruster_state.py
jpliquid/testActions2
6f314fa1430f654e5943e47ac278101b9c24f938
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
uuv_control/uuv_control_utils/scripts/set_thruster_state.py
jpliquid/testActions2
6f314fa1430f654e5943e47ac278101b9c24f938
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
uuv_control/uuv_control_utils/scripts/set_thruster_state.py
jpliquid/testActions2
6f314fa1430f654e5943e47ac278101b9c24f938
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) 2020 The Plankton Authors. # All rights reserved. # # This source code is derived from UUV Simulator # (https://github.com/uuvsimulator/uuv_simulator) # Copyright (c) 2016-2019 The UUV Simulator Authors # licensed under the Apache license, Version 2.0 # cf. 3rd-party-licenses.txt ...
38.153374
138
0.644798
992511a0d9d3aa34cdce51276881f3f775e4493f
439
py
Python
dice_prog/mult_diceroll.py
fededev01/programs-py
62c633d4958540f98c0914020ad123fda55504dc
[ "Apache-2.0" ]
null
null
null
dice_prog/mult_diceroll.py
fededev01/programs-py
62c633d4958540f98c0914020ad123fda55504dc
[ "Apache-2.0" ]
null
null
null
dice_prog/mult_diceroll.py
fededev01/programs-py
62c633d4958540f98c0914020ad123fda55504dc
[ "Apache-2.0" ]
null
null
null
import random import time roll_again = "yes" while roll_again == "yes" or roll_again == "y": print("Rolling the dices...") time.sleep(2) fir = random.randint(1,6) sec = random.randint(1,6) print("Your first number is: ") time.sleep(2) print(fir) print("Your second number is: ") tim...
23.105263
58
0.624146
0713dfcc7991ceaf2417e066944d9c380f603416
953
py
Python
security_monkey/watchers/iam/iam_user.py
cncoder/security_monkey
7d14c00e6c18a0edf87830ff4191007b6296b945
[ "Apache-2.0" ]
null
null
null
security_monkey/watchers/iam/iam_user.py
cncoder/security_monkey
7d14c00e6c18a0edf87830ff4191007b6296b945
[ "Apache-2.0" ]
null
null
null
security_monkey/watchers/iam/iam_user.py
cncoder/security_monkey
7d14c00e6c18a0edf87830ff4191007b6296b945
[ "Apache-2.0" ]
1
2019-06-15T14:03:34.000Z
2019-06-15T14:03:34.000Z
from security_monkey.cloudaux_watcher import CloudAuxWatcher from cloudaux.aws.iam import list_users from cloudaux.orchestration.aws.iam.user import get_user class IAMUser(CloudAuxWatcher): index = 'iamuser' i_am_singular = 'IAM User' i_am_plural = 'IAM Users' def __init__(self, *args, **kwargs): ...
28.878788
60
0.644281
cd4a875e9eb95fab65008f88e3afc6bf01fc7cd4
3,553
py
Python
test/test_heartbeat_monitoring.py
Namyalg/mongo-python-driver
fc85a24888e3c1fe556eb8f755aeecb053b5815e
[ "Apache-2.0" ]
null
null
null
test/test_heartbeat_monitoring.py
Namyalg/mongo-python-driver
fc85a24888e3c1fe556eb8f755aeecb053b5815e
[ "Apache-2.0" ]
null
null
null
test/test_heartbeat_monitoring.py
Namyalg/mongo-python-driver
fc85a24888e3c1fe556eb8f755aeecb053b5815e
[ "Apache-2.0" ]
null
null
null
# Copyright 2016-present MongoDB, 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 wri...
37.797872
100
0.650155
ff0a6249fe000bcd8206c203319547d893f8d93d
8,559
py
Python
YOLO/Stronger-yolo-pytorch/dataset/augment/image.py
ForrestPi/ObjectDetection
54e0821e73f67be5360c36f01229a123c34ab3b3
[ "MIT" ]
12
2020-03-25T01:24:22.000Z
2021-09-18T06:40:16.000Z
YOLO/Stronger-yolo-pytorch/dataset/augment/image.py
ForrestPi/ObjectDetection
54e0821e73f67be5360c36f01229a123c34ab3b3
[ "MIT" ]
1
2020-04-22T07:52:36.000Z
2020-04-22T07:52:36.000Z
YOLO/Stronger-yolo-pytorch/dataset/augment/image.py
ForrestPi/ObjectDetection
54e0821e73f67be5360c36f01229a123c34ab3b3
[ "MIT" ]
4
2020-03-25T01:24:26.000Z
2020-09-20T11:29:09.000Z
import cv2 import numpy as np import random from PIL import Image import matplotlib.pyplot as plt def fixed_crop(src, x0, y0, w, h, size=None, interp=2): """Crop src at fixed location, and (optionally) resize it to size. Parameters ---------- src : NDArray Input image x0 : int Left boundary of t...
26.416667
87
0.621217
7c03113b5d02d4bd5598e8556d08e3de523476de
15,215
py
Python
CurrUncertEllipses_ChiSqProb.py
hadjt/CurrUncertEllipses
d64dca9f4d18e2526748bb5980bf793c74fbe3cc
[ "CC0-1.0" ]
null
null
null
CurrUncertEllipses_ChiSqProb.py
hadjt/CurrUncertEllipses
d64dca9f4d18e2526748bb5980bf793c74fbe3cc
[ "CC0-1.0" ]
null
null
null
CurrUncertEllipses_ChiSqProb.py
hadjt/CurrUncertEllipses
d64dca9f4d18e2526748bb5980bf793c74fbe3cc
[ "CC0-1.0" ]
null
null
null
from netCDF4 import Dataset,num2date import pdb import numpy as np import matplotlib.pyplot as plt from datetime import datetime#,timedelta #import xarray #lon = np.arange(-19.888889,12.99967+1/9.,1/9.) #lat = np.arange(40.066669,65+1/15.,1/15.) #import os from scipy.stats import chi2 from CurrUncertEllipse...
45.553892
297
0.700559
b1ab1e18a0d320ad1c67938a99877338a8f1515e
3,680
py
Python
tests/platonpm/_utils/test_registry_utils.py
shinnng/platon.py
3197fac3839896290210da04dd0d45f0bdc731ce
[ "MIT" ]
null
null
null
tests/platonpm/_utils/test_registry_utils.py
shinnng/platon.py
3197fac3839896290210da04dd0d45f0bdc731ce
[ "MIT" ]
null
null
null
tests/platonpm/_utils/test_registry_utils.py
shinnng/platon.py
3197fac3839896290210da04dd0d45f0bdc731ce
[ "MIT" ]
null
null
null
import pytest from platonpm.exceptions import ( PlatonPMValidationError, ) from platonpm.validation.uri import ( validate_registry_uri, ) @pytest.mark.parametrize( "uri", ( # no package id in uri ("erc1319://zeppelinos.platon"), ("erc1319://zeppelinos.platon:1"), ("erc...
43.294118
97
0.63913
8fc1fca748815b002b23b5bed79698a778a5feac
15,554
py
Python
core/language_core.py
macwinlin-studio/GithuT
fc00080f9d65f585a78cebca936fb53a7441f718
[ "Apache-2.0" ]
null
null
null
core/language_core.py
macwinlin-studio/GithuT
fc00080f9d65f585a78cebca936fb53a7441f718
[ "Apache-2.0" ]
null
null
null
core/language_core.py
macwinlin-studio/GithuT
fc00080f9d65f585a78cebca936fb53a7441f718
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 import sqlite3 from os.path import isfile as os_path_isfile from os.path import isdir as os_path_isdir from os import rmdir as os_rmdir from locale import getdefaultlocale as getlanguage from platform import platform from os import popen as os_popen # project: GitHub Tools Language Core # file: language_...
45.479532
577
0.577986
0ac49721987d44c1e81cab0aae66fe6470c2d844
1,692
py
Python
adminmgr/media/code/A3/task3/BD_114_345_411_727_XQgmU0b.py
IamMayankThakur/test-bigdata
cef633eb394419b955bdce479699d0115d8f99c3
[ "Apache-2.0" ]
9
2019-11-08T02:05:27.000Z
2021-12-13T12:06:35.000Z
adminmgr/media/code/A3/task3/BD_114_345_411_727_XQgmU0b.py
IamMayankThakur/test-bigdata
cef633eb394419b955bdce479699d0115d8f99c3
[ "Apache-2.0" ]
6
2019-11-27T03:23:16.000Z
2021-06-10T19:15:13.000Z
adminmgr/media/code/A3/task3/BD_114_345_411_727_XQgmU0b.py
IamMayankThakur/test-bigdata
cef633eb394419b955bdce479699d0115d8f99c3
[ "Apache-2.0" ]
4
2019-11-26T17:04:27.000Z
2021-12-13T11:57:03.000Z
import findspark findspark.init() from pyspark import SparkConf,SparkContext from pyspark.streaming import StreamingContext from pyspark.sql import Row,SQLContext import sys import requests def splitHashtags(hashtags): for i in hashtags: yield (i,1) def sprint(p): if not p.isEmpty(): ...
29.172414
91
0.565603
42ba5c247744521660ea54e804287b7a1b7b72ab
287
py
Python
torch_tools/models/util/lambda_fn.py
gregunz/TorchTools
19a33f2e4cd38f86b74bd732949516df66f9e24f
[ "MIT" ]
null
null
null
torch_tools/models/util/lambda_fn.py
gregunz/TorchTools
19a33f2e4cd38f86b74bd732949516df66f9e24f
[ "MIT" ]
null
null
null
torch_tools/models/util/lambda_fn.py
gregunz/TorchTools
19a33f2e4cd38f86b74bd732949516df66f9e24f
[ "MIT" ]
null
null
null
from torch import nn, Tensor class Lambda(nn.Module): def __init__(self, lambda_fn, *modules): super().__init__() self.lambda_fn = lambda_fn self.modules = nn.ModuleList(modules) def forward(self, x: Tensor) -> Tensor: return self.lambda_fn(x)
23.916667
45
0.644599
517ac628d27ce111b6dee99a810dabab81af6b0d
1,174
py
Python
third_party/gpus/compress_find_cuda_config.py
storypku/tensorflow
71fdb8266f5c0b099993b09e616a8eddeb664f04
[ "Apache-2.0" ]
null
null
null
third_party/gpus/compress_find_cuda_config.py
storypku/tensorflow
71fdb8266f5c0b099993b09e616a8eddeb664f04
[ "Apache-2.0" ]
null
null
null
third_party/gpus/compress_find_cuda_config.py
storypku/tensorflow
71fdb8266f5c0b099993b09e616a8eddeb664f04
[ "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...
31.72973
80
0.691652
ef9bbded2a4a7a5c4f6824e261e2d8ef26909b96
48,359
py
Python
tensorflow/contrib/lite/python/lite_test.py
caszkgui/tensorflow
2db20be49c660a0c475cb57fe0935791d66433ed
[ "Apache-2.0" ]
null
null
null
tensorflow/contrib/lite/python/lite_test.py
caszkgui/tensorflow
2db20be49c660a0c475cb57fe0935791d66433ed
[ "Apache-2.0" ]
null
null
null
tensorflow/contrib/lite/python/lite_test.py
caszkgui/tensorflow
2db20be49c660a0c475cb57fe0935791d66433ed
[ "Apache-2.0" ]
null
null
null
# Copyright 2018 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.226769
105
0.687876
d4e1f9d735a4cdce9505227516f57a581ec32e6e
24,092
py
Python
python/mnrl.py
Agnishom/mnrl
11c94ab3c984971a87fce5fc3fb0274dc007e5ff
[ "BSD-3-Clause" ]
8
2017-06-06T19:55:20.000Z
2021-11-14T16:55:43.000Z
python/mnrl.py
Agnishom/mnrl
11c94ab3c984971a87fce5fc3fb0274dc007e5ff
[ "BSD-3-Clause" ]
null
null
null
python/mnrl.py
Agnishom/mnrl
11c94ab3c984971a87fce5fc3fb0274dc007e5ff
[ "BSD-3-Clause" ]
4
2017-08-03T18:06:18.000Z
2021-06-23T18:22:23.000Z
# Kevin Angstadt # angstadt {at} umich.edu # University of Virginia # # Python objects for manipulating MNRL files import json import mnrlerror import jsonschema import os def loadMNRL(filename): with open(os.path.dirname(os.path.abspath(__file__))+"/mnrl-schema.json", "r") as s: schema = json.load(s) ...
33.461111
164
0.53358
3ff8778f3ad263a88a6ad0fbf5059949d9c7d727
855
py
Python
build/piman.app/pysnmp/proto/secmod/rfc3414/auth/base.py
jackgisel/team-athens
91e2aa810c0064f8b6b39ee53c3b05f037e0aeb0
[ "Apache-2.0" ]
null
null
null
build/piman.app/pysnmp/proto/secmod/rfc3414/auth/base.py
jackgisel/team-athens
91e2aa810c0064f8b6b39ee53c3b05f037e0aeb0
[ "Apache-2.0" ]
null
null
null
build/piman.app/pysnmp/proto/secmod/rfc3414/auth/base.py
jackgisel/team-athens
91e2aa810c0064f8b6b39ee53c3b05f037e0aeb0
[ "Apache-2.0" ]
null
null
null
# # This file is part of pysnmp software. # # Copyright (c) 2005-2019, Ilya Etingof <etingof@gmail.com> # License: http://snmplabs.com/pysnmp/license.html # from pysnmp.proto import errind, error class AbstractAuthenticationService(object): serviceID = None def hashPassphrase(self, authKey): raise er...
28.5
73
0.733333
2b339cf605facc99f1e0af6e3dd9b7481aac3a42
844
py
Python
bot/persist.py
dronesoc/dronebot
ed4bb8a8f774eb59ac0d9a3a7e7e3a4d8ded7264
[ "MIT" ]
null
null
null
bot/persist.py
dronesoc/dronebot
ed4bb8a8f774eb59ac0d9a3a7e7e3a4d8ded7264
[ "MIT" ]
null
null
null
bot/persist.py
dronesoc/dronebot
ed4bb8a8f774eb59ac0d9a3a7e7e3a4d8ded7264
[ "MIT" ]
null
null
null
import requests import os import json """ Defines a connection to a Persist Key/Value Store """ class PersistStore: def __init__(self): self.base_url = 'https://beepboophq.com/api/v1/persist/kv' self.token = os.getenv("BEEPBOOP_TOKEN", "") def list_keys(self): r = requests.get(self.bas...
32.461538
153
0.626777
65752e430072e99d3cb3aaad99b6af5d0e83dd7e
1,025
py
Python
cyborg/accelerator/drivers/nic/intel/driver.py
NeCTAR-RC/cyborg
e0fab29181467c0c72667ea26a8b04c53b238ddb
[ "Apache-2.0" ]
37
2017-03-23T02:10:35.000Z
2021-11-25T07:57:36.000Z
cyborg/accelerator/drivers/nic/intel/driver.py
openstack/nomad
8cd846a16c2da04c2f204b02b90db814e32acd63
[ "Apache-2.0" ]
null
null
null
cyborg/accelerator/drivers/nic/intel/driver.py
openstack/nomad
8cd846a16c2da04c2f204b02b90db814e32acd63
[ "Apache-2.0" ]
27
2017-07-14T02:26:24.000Z
2022-01-19T07:55:10.000Z
# Copyright 2020 Intel, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing,...
29.285714
75
0.730732
67a0e3d96e072d7671b47efd1217891ad09dd9b8
4,866
py
Python
python/Client.py
Taren-Ko/Taren-Ko.github.io
7e5890e96113236577087145d96035c68d3cb265
[ "MIT" ]
null
null
null
python/Client.py
Taren-Ko/Taren-Ko.github.io
7e5890e96113236577087145d96035c68d3cb265
[ "MIT" ]
null
null
null
python/Client.py
Taren-Ko/Taren-Ko.github.io
7e5890e96113236577087145d96035c68d3cb265
[ "MIT" ]
null
null
null
import sys from socket import * def mail_reader(): # Tests for proper number of arguments passed # Then passes arguments to hostname and port for Socket if len(sys.argv) != 3: sys.stderr.write("Error: Too many or too few arguments.\n") sys.stderr.write("QUIT\n") sys.exit(0) else: hostname = sys.argv[1] p...
25.746032
84
0.672626
12a850a8564bdc3c0e7b934e6b4093f9a8fdcde4
509
py
Python
app_sirene/migrations/0029_auto_20191228_1401.py
cavaliba/sirene
ccbf67ba169fb65f7d51550bd86b6fe5a217ef63
[ "BSD-3-Clause" ]
null
null
null
app_sirene/migrations/0029_auto_20191228_1401.py
cavaliba/sirene
ccbf67ba169fb65f7d51550bd86b6fe5a217ef63
[ "BSD-3-Clause" ]
null
null
null
app_sirene/migrations/0029_auto_20191228_1401.py
cavaliba/sirene
ccbf67ba169fb65f7d51550bd86b6fe5a217ef63
[ "BSD-3-Clause" ]
null
null
null
# Generated by Django 3.0 on 2019-12-28 13:01 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('app_sirene', '0028_auto_20191228_1400'), ] operations = [ migrations.RemoveField( model_name='info', name='hide', ...
22.130435
76
0.577603
9f2ff455945bd337b35f3d27f0e6c6818d84c45f
42
py
Python
openmdao/__init__.py
garobed1/OpenMDAO
6b93aca2ce235a8ebdf2ba65a9b798f2a807c1a5
[ "Apache-2.0" ]
null
null
null
openmdao/__init__.py
garobed1/OpenMDAO
6b93aca2ce235a8ebdf2ba65a9b798f2a807c1a5
[ "Apache-2.0" ]
null
null
null
openmdao/__init__.py
garobed1/OpenMDAO
6b93aca2ce235a8ebdf2ba65a9b798f2a807c1a5
[ "Apache-2.0" ]
null
null
null
__version__ = '2.7.1' INF_BOUND = 1.0E30
10.5
21
0.666667
8c4394e29ef3476e4d50a87586c9076e6253a2ab
499
py
Python
Books/GodOfPython/P00_OriginalSource/ch14/gui_07_2.py
Tim232/Python-Things
05f0f373a4cf298e70d9668c88a6e3a9d1cd8146
[ "MIT" ]
2
2020-12-05T07:42:55.000Z
2021-01-06T23:23:18.000Z
Books/GodOfPython/P00_OriginalSource/ch14/gui_07_2.py
Tim232/Python-Things
05f0f373a4cf298e70d9668c88a6e3a9d1cd8146
[ "MIT" ]
null
null
null
Books/GodOfPython/P00_OriginalSource/ch14/gui_07_2.py
Tim232/Python-Things
05f0f373a4cf298e70d9668c88a6e3a9d1cd8146
[ "MIT" ]
null
null
null
# gui_07_2.py import tkinter SMILE = """ #define smileywe_width 16 #define smiley_height 16 static unsigned char smiley_bits[] = { 0xc0, 0x07, 0x30, 0x18, 0x08, 0x20, 0x04, 0x40, 0x44, 0x44, 0x02, 0x80, 0x02, 0x80, 0x02, 0x80, 0x22, 0x88, 0x62, 0x8c, 0xc4, 0x47, 0x04, 0x40, 0x08, 0x20, 0x30, 0x18, 0xc0, 0x07, 0x00, 0x...
26.263158
71
0.705411
5847f68d5c5a8bdb335ca8b1e11cba3bac26388e
4,369
py
Python
tools/cfgparser.py
dp92987/nginx-amplify-agent
1b2eed6eab52a82f35974928d75044451b4bedaf
[ "BSD-2-Clause" ]
308
2015-11-17T13:15:33.000Z
2022-03-24T12:03:40.000Z
tools/cfgparser.py
dp92987/nginx-amplify-agent
1b2eed6eab52a82f35974928d75044451b4bedaf
[ "BSD-2-Clause" ]
211
2015-11-16T15:27:41.000Z
2022-03-28T16:20:15.000Z
tools/cfgparser.py
dp92987/nginx-amplify-agent
1b2eed6eab52a82f35974928d75044451b4bedaf
[ "BSD-2-Clause" ]
80
2015-11-16T18:20:30.000Z
2022-03-02T12:47:56.000Z
#!/usr/bin/python # -*- coding: utf-8 -*- import json import os import sys import time # make amplify libs available script_location = os.path.abspath(os.path.expanduser(__file__)) agent_repo_path = os.path.dirname(os.path.dirname(script_location)) agent_config_file = os.path.join(agent_repo_path, 'etc', 'agent.conf.d...
33.607692
106
0.642939
8eca3f84be810b3a58fff4a148b13b05b368ced3
3,030
py
Python
omok/gui/gui.py
NohGod/BMT_Projects
c8bb9dc06a1693db7f9e9eeb524f5ef307fac2b8
[ "MIT" ]
null
null
null
omok/gui/gui.py
NohGod/BMT_Projects
c8bb9dc06a1693db7f9e9eeb524f5ef307fac2b8
[ "MIT" ]
null
null
null
omok/gui/gui.py
NohGod/BMT_Projects
c8bb9dc06a1693db7f9e9eeb524f5ef307fac2b8
[ "MIT" ]
1
2021-08-28T04:16:48.000Z
2021-08-28T04:16:48.000Z
from tkinter import Tk, Frame, Label, Button, PhotoImage from omok.core.board import Board from omok.gui.omokslot import OmokSlot class GUI: """Omok GUI created with tkinter""" status_text = {Board.BLACK_TURN: "Black's turn", Board.BLACK_WIN: 'Black wins!', Board.WHITE_TUR...
44.558824
129
0.568317
7cf7888816e4558607b47a718b63fd3a1e6d39a8
14,133
py
Python
contrib/dummy_tv.py
Tigger2014/async_upnp_client
fa10aac4a98290559b4c258e23ba31d7b1177d5f
[ "Apache-2.0" ]
null
null
null
contrib/dummy_tv.py
Tigger2014/async_upnp_client
fa10aac4a98290559b4c258e23ba31d7b1177d5f
[ "Apache-2.0" ]
null
null
null
contrib/dummy_tv.py
Tigger2014/async_upnp_client
fa10aac4a98290559b4c258e23ba31d7b1177d5f
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """Dummy TV supporting DLNA/DMR.""" # Instructions: # - Change `SOURCE``. When using IPv6, be sure to set the scope_id, the last value in the tuple. # - Run this module. # - Run upnp-client (change IP to your own IP): # upnp-client call-action 'http://0.0.0.0:8000/devic...
34.220339
96
0.607019
81e0e1e3dbe7461e03fd3e29c7df2fca41cecc91
12,922
py
Python
diffimg/diffimg.py
exoplanetvetting/DAVE
aea19a30d987b214fb4c0cf01aa733f127c411b9
[ "MIT" ]
7
2019-05-07T02:01:51.000Z
2022-03-16T08:09:39.000Z
diffimg/diffimg.py
barentsen/dave
45ba97b7b535ad26dd555c33c963c6224a9af23c
[ "MIT" ]
18
2015-12-09T22:18:59.000Z
2017-04-26T13:11:44.000Z
diffimg/diffimg.py
barentsen/dave
45ba97b7b535ad26dd555c33c963c6224a9af23c
[ "MIT" ]
5
2017-03-08T11:42:53.000Z
2020-05-07T00:10:37.000Z
# -*- coding: utf-8 -*- """ Created on Tue Aug 18 21:08:35 2015 @author: fergal $Id$ $URL$ """ from __future__ import division, print_function, absolute_import import matplotlib.pyplot as mp import numpy as np import dave.fileio.kplrfits as kplrfits def constructK2DifferenceImage(cube, indexOfCadenceInTransit, r...
29.1693
86
0.650209
daf91a40f7ad7935d355a287819ad1dbcdd84eb8
11,462
py
Python
python/paddle/fluid/layers/learning_rate_scheduler.py
skylarch/Paddle
d58d8df6f5f7aa6fd2f0780f87475055db57a80d
[ "Apache-2.0" ]
null
null
null
python/paddle/fluid/layers/learning_rate_scheduler.py
skylarch/Paddle
d58d8df6f5f7aa6fd2f0780f87475055db57a80d
[ "Apache-2.0" ]
null
null
null
python/paddle/fluid/layers/learning_rate_scheduler.py
skylarch/Paddle
d58d8df6f5f7aa6fd2f0780f87475055db57a80d
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2016 PaddlePaddle 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 applic...
34.214925
102
0.646222
8b19c6c99034dddd70e781640ca56664a60d18e9
55,415
py
Python
active_projects/diffyq/part1/pendulum.py
thevivekpandey/manim
483dbfc232fa684e7722969221bd416fde8bd55a
[ "MIT" ]
null
null
null
active_projects/diffyq/part1/pendulum.py
thevivekpandey/manim
483dbfc232fa684e7722969221bd416fde8bd55a
[ "MIT" ]
null
null
null
active_projects/diffyq/part1/pendulum.py
thevivekpandey/manim
483dbfc232fa684e7722969221bd416fde8bd55a
[ "MIT" ]
null
null
null
from manimlib.imports import * from active_projects.diffyq.part1.shared_constructs import * class Pendulum(VGroup): CONFIG = { "length": 3, "gravity": 9.8, "weight_diameter": 0.5, "initial_theta": 0.3, "omega": 0, "damping": 0.1, "top_point": 2 * UP, ...
29.242744
73
0.531625
a56e2c67e428411ddde467b6e6ea0c3c8e69d1e3
2,580
py
Python
(35)Search_Insert_Position.py
ElnuraMusaoglu/LeetCodeQuestions
ce13a2a790d77d1f17f7874beebe3c78d6064cc2
[ "MIT" ]
null
null
null
(35)Search_Insert_Position.py
ElnuraMusaoglu/LeetCodeQuestions
ce13a2a790d77d1f17f7874beebe3c78d6064cc2
[ "MIT" ]
null
null
null
(35)Search_Insert_Position.py
ElnuraMusaoglu/LeetCodeQuestions
ce13a2a790d77d1f17f7874beebe3c78d6064cc2
[ "MIT" ]
null
null
null
''' Given a sorted array of distinct integers and a target value, return the index if the target is found. If not, return the index where it would be if it were inserted in order. You must write an algorithm with O(log n) runtime complexity. Example 1: Input: nums = [1,3,5,6], target = 5 Output: 2 Example 2: Input:...
28.351648
175
0.551163
5ea10a37e7917087a99abf9e1efa44eb9332fbaf
3,095
py
Python
tests/test_client.py
BruceNUAA/mqttools
b3c4bb9db4a42eea74f90f343ee4ee7f6f932d12
[ "MIT" ]
null
null
null
tests/test_client.py
BruceNUAA/mqttools
b3c4bb9db4a42eea74f90f343ee4ee7f6f932d12
[ "MIT" ]
null
null
null
tests/test_client.py
BruceNUAA/mqttools
b3c4bb9db4a42eea74f90f343ee4ee7f6f932d12
[ "MIT" ]
null
null
null
import logging import asyncio import unittest import mqttools async def broker_main(listener): async with listener: try: await listener.serve_forever() except asyncio.CancelledError: pass class ClientTest(unittest.TestCase): def test_connack_timeout(self): a...
30.048544
82
0.569305
fe0299a57ca97e2898525ea9c5fc1192719a183d
965
py
Python
web/prepare/dump_kv.py
Ahacad/YYeTsBot
423d7d29f248e9f181378028dafd23903816c887
[ "MIT" ]
5
2021-03-04T03:44:50.000Z
2021-08-09T01:19:09.000Z
web/prepare/dump_kv.py
sekkit/YYeTsBot
bc7096f5c2371f0654c20188c6b0ecfb662b2e22
[ "MIT" ]
17
2021-03-07T03:08:18.000Z
2021-05-31T09:14:34.000Z
web/prepare/dump_kv.py
sekkit/YYeTsBot
bc7096f5c2371f0654c20188c6b0ecfb662b2e22
[ "MIT" ]
3
2021-06-19T11:03:14.000Z
2021-09-07T16:15:06.000Z
#!/usr/local/bin/python3 # coding: utf-8 # YYeTsBot - dump_kv.py # 2/6/21 18:12 # __author__ = "Benny <benny.think@gmail.com>" import threading import requests import json from concurrent.futures.thread import ThreadPoolExecutor s = requests.Session() with open("index.json", ) as f: ids = json.load(f) chunk =...
21.444444
70
0.613472
7db267904f8a5da0de76922c73db45bfdca60b1d
572
py
Python
setup.py
LairdCP/weblcm-python
ccaa554391ad4f993e3c01929bff252ca48991fb
[ "0BSD" ]
null
null
null
setup.py
LairdCP/weblcm-python
ccaa554391ad4f993e3c01929bff252ca48991fb
[ "0BSD" ]
null
null
null
setup.py
LairdCP/weblcm-python
ccaa554391ad4f993e3c01929bff252ca48991fb
[ "0BSD" ]
null
null
null
#!/usr/bin/python from setuptools import setup import os environment_variable_value = os.environ.get('WEBLCM_PYTHON_EXTRA_MODULES', '') if len(environment_variable_value) > 0: extra_modules = [s.strip() for s in environment_variable_value.split()] else: extra_modules = [] setup( name='weblcm-python', version='1...
26
78
0.746503
5dbe4bb26e1e79f3dbab3aee373b09c484981c8e
3,624
py
Python
aii/components/design.py
Tranquangdai/Auto-Image-Improvements
a5e5b5a57f76b1c95c83fbf7650e2eb40325e6cc
[ "MIT" ]
2
2020-08-03T02:36:14.000Z
2020-08-03T03:09:48.000Z
aii/components/design.py
Tranquangdai/Auto-Image-Improvements
a5e5b5a57f76b1c95c83fbf7650e2eb40325e6cc
[ "MIT" ]
null
null
null
aii/components/design.py
Tranquangdai/Auto-Image-Improvements
a5e5b5a57f76b1c95c83fbf7650e2eb40325e6cc
[ "MIT" ]
null
null
null
import json import os import uuid from os.path import exists import numpy as np from PIL import Image from tqdm import trange from aii.utils import array_to_PIL from .background import BackGround from .collect import PatchCollect, SignCollect from .segment import Segment class Designer: def __init__(self, cfg...
29.950413
69
0.533113
9124f80a8559562f017e96a59233249fcb32c253
13,976
py
Python
packages/pytea/pytest/benchmarks/transformers/missing_idx/src/transformers/commands/user.py
lego0901/pytea
8ede650def2e68f4610ba816451d8b9e28f09f76
[ "MIT" ]
96
2021-06-16T09:06:52.000Z
2022-03-26T09:56:32.000Z
packages/pytea/pytest/benchmarks/transformers/missing_idx/src/transformers/commands/user.py
lego0901/pytea
8ede650def2e68f4610ba816451d8b9e28f09f76
[ "MIT" ]
16
2021-07-01T05:34:48.000Z
2022-03-28T09:40:15.000Z
packages/pytea/pytest/benchmarks/transformers/missing_idx/src/transformers/commands/user.py
lego0901/pytea
8ede650def2e68f4610ba816451d8b9e28f09f76
[ "MIT" ]
24
2021-06-19T15:58:31.000Z
2022-03-14T09:17:19.000Z
import os import subprocess import sys from argparse import ArgumentParser from getpass import getpass from typing import List, Union from requests.exceptions import HTTPError from transformers.commands import BaseTransformersCLICommand from transformers.hf_api import HfApi, HfFolder UPLOAD_MAX_FILES = 15 class Us...
39.258427
120
0.58028
5806442cfbe53423fba65e091345627971617fb5
42
py
Python
je_auto_control/utils/image/__init__.py
JE-Chen/Python_JEAutoControl
477bf9612e28e9ab6d0a8e269db2f699e50a3744
[ "MIT" ]
9
2020-10-12T06:33:36.000Z
2021-09-13T07:07:36.000Z
je_auto_control/utils/image/__init__.py
JE-Chen/Python_JEAutoControl
477bf9612e28e9ab6d0a8e269db2f699e50a3744
[ "MIT" ]
null
null
null
je_auto_control/utils/image/__init__.py
JE-Chen/Python_JEAutoControl
477bf9612e28e9ab6d0a8e269db2f699e50a3744
[ "MIT" ]
null
null
null
from je_auto_control.utils.image import *
21
41
0.833333
e3509efd6eb45f4fd020c24bc56279513b6f8865
5,563
py
Python
configs/swin/cascade_mask_rcnn_swin_tiny_patch4_window7_mstrain_480-800_giou_4conv1f_adamw_3x_coco_retrograde.py
vampireacen/NonMotor
8a144793ffc0211494b86aefe6201a7466a5c03f
[ "Apache-2.0" ]
null
null
null
configs/swin/cascade_mask_rcnn_swin_tiny_patch4_window7_mstrain_480-800_giou_4conv1f_adamw_3x_coco_retrograde.py
vampireacen/NonMotor
8a144793ffc0211494b86aefe6201a7466a5c03f
[ "Apache-2.0" ]
null
null
null
configs/swin/cascade_mask_rcnn_swin_tiny_patch4_window7_mstrain_480-800_giou_4conv1f_adamw_3x_coco_retrograde.py
vampireacen/NonMotor
8a144793ffc0211494b86aefe6201a7466a5c03f
[ "Apache-2.0" ]
null
null
null
_base_ = [ '../_base_/models/cascade_mask_rcnn_swin_fpn_retrograde.py', '../_base_/datasets/coco_detection_retrograde.py', '../_base_/schedules/schedule_1x.py', '../_base_/default_runtime_3.py' ] model = dict( backbone=dict( embed_dim=96, depths=[2, 2, 6, 2], num_heads=[3, 6, 12...
39.453901
101
0.495236
560c9cfd4156364d3b939f914567ea0a6c8eda31
4,819
py
Python
gmocoin/public/api.py
makotookamura/GmoCoin
025d3e68364bf52418dbc3445987ff21528db732
[ "Apache-2.0" ]
1
2021-05-20T01:34:28.000Z
2021-05-20T01:34:28.000Z
gmocoin/public/api.py
makotookamura/GmoCoin
025d3e68364bf52418dbc3445987ff21528db732
[ "Apache-2.0" ]
44
2020-11-15T01:17:38.000Z
2021-07-20T13:45:12.000Z
gmocoin/public/api.py
makotookamura/GmoCoin
025d3e68364bf52418dbc3445987ff21528db732
[ "Apache-2.0" ]
1
2021-04-27T12:12:47.000Z
2021-04-27T12:12:47.000Z
#!python3 import requests import json from datetime import datetime, date, timedelta import pandas as pd from ..common.annotation import post_request from ..common.const import GMOConst from ..common.logging import get_logger, log from ..common.dto import Status from .dto import GetStatusResSchema, GetStatusRes, \ ...
30.5
155
0.591409
9c039e3aad80f998fb7bf057071263ff29ad236a
43,902
py
Python
backend/venv/Lib/site-packages/sphinx/builders/html.py
analurandis/Tur
b4b5d1230d70659be0c3f477f0baea68fc46ba39
[ "MIT" ]
1
2019-07-29T02:53:51.000Z
2019-07-29T02:53:51.000Z
backend/venv/Lib/site-packages/sphinx/builders/html.py
analurandis/Tur
b4b5d1230d70659be0c3f477f0baea68fc46ba39
[ "MIT" ]
1
2021-09-11T14:30:32.000Z
2021-09-11T14:30:32.000Z
backend/venv/Lib/site-packages/sphinx/builders/html.py
analurandis/Tur
b4b5d1230d70659be0c3f477f0baea68fc46ba39
[ "MIT" ]
2
2016-12-19T02:27:46.000Z
2019-07-29T02:53:54.000Z
# -*- coding: utf-8 -*- """ sphinx.builders.html ~~~~~~~~~~~~~~~~~~~~ Several HTML builders. :copyright: Copyright 2007-2014 by the Sphinx team, see AUTHORS. :license: BSD, see LICENSE for details. """ import os import sys import zlib import codecs import posixpath import cPickle as pickle from o...
39.622744
86
0.580976
6fb110d24c968e30dd0108e4b896483f301cef61
273
py
Python
src/genres/models.py
kostinbrodorg/open-library
bbceb953b2d78d7eb0f2c64b81c6deac13d73531
[ "MIT" ]
null
null
null
src/genres/models.py
kostinbrodorg/open-library
bbceb953b2d78d7eb0f2c64b81c6deac13d73531
[ "MIT" ]
null
null
null
src/genres/models.py
kostinbrodorg/open-library
bbceb953b2d78d7eb0f2c64b81c6deac13d73531
[ "MIT" ]
null
null
null
from django.db import models from django.utils.translation import ugettext as _ class Genres(models.Model): name = models.CharField(verbose_name=_('Name'), max_length=255) class Meta: verbose_name = _('Genre') verbose_name_plural = _('Genres')
21
67
0.699634
beef5008f5219ff8f5cf4cfc934318a4ad5eada6
118
py
Python
src/abstract_http_client/exceptions.py
QualiSystemsLab/abstract-requests-client
eb8281082cdfbd54b78451e907b9e7eef21b718a
[ "MIT" ]
1
2021-12-08T20:54:40.000Z
2021-12-08T20:54:40.000Z
src/abstract_http_client/exceptions.py
QualiSystemsLab/abstract-requests-client
eb8281082cdfbd54b78451e907b9e7eef21b718a
[ "MIT" ]
null
null
null
src/abstract_http_client/exceptions.py
QualiSystemsLab/abstract-requests-client
eb8281082cdfbd54b78451e907b9e7eef21b718a
[ "MIT" ]
null
null
null
class RestClientException(Exception): pass class RestClientUnauthorizedException(RestClientException): pass
16.857143
59
0.813559
8904413206eff09ceb53107fe086e38d6ee069d7
740
py
Python
newton_interpolasyonu.py
berfinsari/numerical-methods
72ce37da1df44d5ed4b7bf32263e38db55b3a532
[ "Unlicense" ]
null
null
null
newton_interpolasyonu.py
berfinsari/numerical-methods
72ce37da1df44d5ed4b7bf32263e38db55b3a532
[ "Unlicense" ]
null
null
null
newton_interpolasyonu.py
berfinsari/numerical-methods
72ce37da1df44d5ed4b7bf32263e38db55b3a532
[ "Unlicense" ]
null
null
null
#!/usr/bin/python3 # -*- coding: utf-8 -*- dosya=open("newton.txt") d = [] for line in dosya.readlines(): line = line.rstrip('\n').split(' ') d.append(line) dosya.close() x = float(input("hangi değerin hesaplanmasını istiyorsunuz: ")) boyut = len(line) boyut2= len(d) for m in range(boyut2): for i in ra...
23.870968
149
0.489189
eea5674ded8feb83b8abbde72f72fcbffd11e0ed
10,175
py
Python
aioquant/utils/web.py
liiklin/aioquant
254238a031b6a1312ae6a7890fa17b3c01f89741
[ "MIT" ]
1
2022-01-06T01:54:35.000Z
2022-01-06T01:54:35.000Z
aioquant/utils/web.py
PopMa/aioquant
8e1f6a802dc1487348b5f540a1c44220d70715ba
[ "MIT" ]
null
null
null
aioquant/utils/web.py
PopMa/aioquant
8e1f6a802dc1487348b5f540a1c44220d70715ba
[ "MIT" ]
2
2020-11-29T17:13:09.000Z
2022-01-07T01:34:02.000Z
# -*- coding:utf-8 -*- """ Web module. Author: HuangTao Date: 2018/08/26 Email: huangtao@ifclover.com """ import json import aiohttp from urllib.parse import urlparse from aioquant.utils import logger from aioquant.configure import config from aioquant.tasks import LoopRunTask, SingleTask from aioquant.utils.de...
40.376984
123
0.599902
6ee1d92dd0786d02cbbdf576d2c5710d733a04a6
29,513
py
Python
rllib/evaluation/sampler.py
maximsmol/ray
9f3e9e7e9fd19fffe5ff647965ace2a0b022f899
[ "Apache-2.0" ]
null
null
null
rllib/evaluation/sampler.py
maximsmol/ray
9f3e9e7e9fd19fffe5ff647965ace2a0b022f899
[ "Apache-2.0" ]
null
null
null
rllib/evaluation/sampler.py
maximsmol/ray
9f3e9e7e9fd19fffe5ff647965ace2a0b022f899
[ "Apache-2.0" ]
null
null
null
from collections import defaultdict, namedtuple import logging import numpy as np import queue import threading import time from ray.util.debug import log_once from ray.rllib.evaluation.episode import MultiAgentEpisode, _flatten_action from ray.rllib.evaluation.rollout_metrics import RolloutMetrics from ray.rllib.eval...
40.707586
79
0.599295
eb163fdcbdfb434ed6e9a4981ca9b7448a4af170
29,429
py
Python
tests/components/device_tracker/test_owntracks.py
jamescurtin/home-assistant
6a9968ccb9b0082f5629e50955549d432aba7d90
[ "Apache-2.0" ]
1
2017-09-26T06:13:10.000Z
2017-09-26T06:13:10.000Z
tests/components/device_tracker/test_owntracks.py
moose51789/home-assistant
63c9d59d5455850fd4b37c2475fe6f10effb5245
[ "Apache-2.0" ]
null
null
null
tests/components/device_tracker/test_owntracks.py
moose51789/home-assistant
63c9d59d5455850fd4b37c2475fe6f10effb5245
[ "Apache-2.0" ]
null
null
null
"""The tests for the Owntracks device tracker.""" import asyncio import json import unittest from unittest.mock import patch from tests.common import ( assert_setup_component, fire_mqtt_message, mock_coro, mock_component, get_test_home_assistant, mock_mqtt_component) import homeassistant.components.device_trac...
35.118138
79
0.640253
41072594cc550039e7dd24bfc41f900046691dbb
2,793
py
Python
Studenti/hash_generator.py
romeorizzi/exams_in_remote
5d037ecbab1998fd2eeca00cbe999872ba9031ab
[ "MIT" ]
null
null
null
Studenti/hash_generator.py
romeorizzi/exams_in_remote
5d037ecbab1998fd2eeca00cbe999872ba9031ab
[ "MIT" ]
null
null
null
Studenti/hash_generator.py
romeorizzi/exams_in_remote
5d037ecbab1998fd2eeca00cbe999872ba9031ab
[ "MIT" ]
null
null
null
import hashlib import os import xml.etree.cElementTree as ET import time from watchdog.events import FileSystemEventHandler from watchdog.observers import Observer BLOCKSIZE = 65536 def fn_hash(input_path): hasher = hashlib.sha1() with open(str(input_path), "rb") as file: buf = file.read(BLOCKSIZE) ...
29.712766
88
0.601862
3cd8c0c90d98e6fd217a3606ac0aaeccb1d6fb4c
751
py
Python
LanguageModel/anna/predict.py
STHSF/DeepNaturallanguageprocessing
1fe79a961abf3e55fb3ce2b0266b26f56ade2483
[ "Apache-2.0" ]
15
2016-09-13T05:41:53.000Z
2019-12-30T13:01:33.000Z
LanguageModel/anna/predict.py
STHSF/DeepNaturallanguageprocessing
1fe79a961abf3e55fb3ce2b0266b26f56ade2483
[ "Apache-2.0" ]
20
2020-01-28T21:42:25.000Z
2022-02-10T00:44:02.000Z
LanguageModel/anna/predict.py
STHSF/DeepNaturallanguageprocessing
1fe79a961abf3e55fb3ce2b0266b26f56ade2483
[ "Apache-2.0" ]
10
2016-09-28T02:56:11.000Z
2022-03-12T16:41:20.000Z
#!/usr/bin/env python # coding=utf-8 """ @function: @version: ?? @author: Li Yu @license: Apache Licence @file: predict.py @time: 2017/7/3 下午2:26 """ import time from collections import namedtuple import numpy as np import tensorflow as tf import time from collections import namedtuple import numpy as np import ten...
18.317073
68
0.693742
8acb53bc8cda258e6a4d9cc736746060af28e826
15,068
py
Python
tensorflow_asr/models/encoders/conformer.py
Thumb-Technologies/TensorFlowASR
37ea12af04a8f2c13f75a617f4aa4331f95ce945
[ "Apache-2.0" ]
null
null
null
tensorflow_asr/models/encoders/conformer.py
Thumb-Technologies/TensorFlowASR
37ea12af04a8f2c13f75a617f4aa4331f95ce945
[ "Apache-2.0" ]
null
null
null
tensorflow_asr/models/encoders/conformer.py
Thumb-Technologies/TensorFlowASR
37ea12af04a8f2c13f75a617f4aa4331f95ce945
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 Huy Le Nguyen (@usimarit) # # 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 t...
35.123543
94
0.603265
a75329d9d9f01c358efa767b3e9f3e2167416ea0
2,171
py
Python
lists/tests/test_forms.py
elyak123/obeying-the-testing-goat
8359febf7d28215133c5933512f8e737aacdff8f
[ "MIT" ]
null
null
null
lists/tests/test_forms.py
elyak123/obeying-the-testing-goat
8359febf7d28215133c5933512f8e737aacdff8f
[ "MIT" ]
null
null
null
lists/tests/test_forms.py
elyak123/obeying-the-testing-goat
8359febf7d28215133c5933512f8e737aacdff8f
[ "MIT" ]
null
null
null
from django.test import TestCase from lists.models import Item, List from lists.forms import (ItemForm, EMPTY_ITEM_ERROR, DUPLICATE_ITEM_ERROR, ExistingListItemForm ) class ItemFormTest(TestCase): def test_form_item_input_has_placeholder_and_css_classes(self): form = ItemForm() self.assertIn(...
38.767857
79
0.667895
019902fd823def4e117ea65ffc273ad7678112be
7,817
py
Python
mergejs.py
tmcw/OpenLayerer
44212b0f9a8aae71f6f96f6357671e89f6ea6cc5
[ "Apache-2.0", "BSD-2-Clause" ]
1
2015-07-17T19:01:07.000Z
2015-07-17T19:01:07.000Z
mergejs.py
tmcw/OpenLayerer
44212b0f9a8aae71f6f96f6357671e89f6ea6cc5
[ "Apache-2.0", "BSD-2-Clause" ]
null
null
null
mergejs.py
tmcw/OpenLayerer
44212b0f9a8aae71f6f96f6357671e89f6ea6cc5
[ "Apache-2.0", "BSD-2-Clause" ]
null
null
null
#!/usr/bin/env python # # Merge multiple JavaScript source code files into one. # # Usage: # This script requires source files to have dependencies specified in them. # # Dependencies are specified with a comment of the form: # # // @requires <file path> # # e.g. # # // @requires Geo/DataSource.js # # This scri...
32.707113
102
0.612639
0c2e9cca1ca218441828f9e1b709c00c7ac13a3d
98
py
Python
output/models/ms_data/attribute/att_j004_xsd/__init__.py
tefra/xsdata-w3c-tests
b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f
[ "MIT" ]
1
2021-08-14T17:59:21.000Z
2021-08-14T17:59:21.000Z
output/models/ms_data/attribute/att_j004_xsd/__init__.py
tefra/xsdata-w3c-tests
b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f
[ "MIT" ]
4
2020-02-12T21:30:44.000Z
2020-04-15T20:06:46.000Z
output/models/ms_data/attribute/att_j004_xsd/__init__.py
tefra/xsdata-w3c-tests
b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f
[ "MIT" ]
null
null
null
from output.models.ms_data.attribute.att_j004_xsd.att_j004 import Test __all__ = [ "Test", ]
16.333333
70
0.744898
7fc788421d5f34f4379493ea2bd07d336465209f
716
py
Python
change_png_color.py
prasertcbs/HueIconPackPng
269476ce74c05ed26e4213fb1d3492b99c7b8ef9
[ "MIT" ]
6
2020-06-07T14:10:54.000Z
2021-07-16T06:20:33.000Z
change_png_color.py
prasertcbs/HueIconPackPng
269476ce74c05ed26e4213fb1d3492b99c7b8ef9
[ "MIT" ]
null
null
null
change_png_color.py
prasertcbs/HueIconPackPng
269476ce74c05ed26e4213fb1d3492b99c7b8ef9
[ "MIT" ]
5
2020-10-02T14:44:16.000Z
2022-01-21T21:21:16.000Z
# source: https://stackoverflow.com/questions/3752476/python-pil-replace-a-single-rgba-color from PIL import Image import numpy as np def x(): im = Image.open('test.png') im = im.convert('RGBA') data = np.array(im) # "data" is a height x width x 4 numpy array red, green, blue, alpha = data.T #...
29.833333
92
0.629888
d9b4ef912739d9a4c8ff489f8a38535394aedc3d
1,193
bzl
Python
dotnet/private/actions/resx_net.bzl
Perilynn/rules_dotnet
0c80abcfe023fe32f8908d6cac6dbab5c4455ee6
[ "Apache-2.0" ]
null
null
null
dotnet/private/actions/resx_net.bzl
Perilynn/rules_dotnet
0c80abcfe023fe32f8908d6cac6dbab5c4455ee6
[ "Apache-2.0" ]
null
null
null
dotnet/private/actions/resx_net.bzl
Perilynn/rules_dotnet
0c80abcfe023fe32f8908d6cac6dbab5c4455ee6
[ "Apache-2.0" ]
null
null
null
load( "@io_bazel_rules_dotnet//dotnet/private:common.bzl", "as_iterable", "sets" ) load( "@io_bazel_rules_dotnet//dotnet/private:providers.bzl", "DotnetLibrary", ) load( "@io_bazel_rules_dotnet//dotnet/private:common.bzl", "paths", ) def _make_runner_arglist(dotnet, source, output): ar...
20.929825
83
0.640402
e26c0f8864ddfcc75f2b4862f1ee5b59414a29ee
2,969
py
Python
lp2jira/user.py
pawelzny/launchpad2jira
b3724275837ae2968172d51676d01c2636489419
[ "MIT" ]
null
null
null
lp2jira/user.py
pawelzny/launchpad2jira
b3724275837ae2968172d51676d01c2636489419
[ "MIT" ]
null
null
null
lp2jira/user.py
pawelzny/launchpad2jira
b3724275837ae2968172d51676d01c2636489419
[ "MIT" ]
2
2018-08-30T12:34:19.000Z
2018-12-14T10:55:30.000Z
# -*- coding: utf-8 -*- import logging import os from tqdm import tqdm from lp2jira.config import config, lp from lp2jira.export import Export from lp2jira.utils import clean_id, get_user_groups, json_dump, generate_mail class User: def __init__(self, name, display_name, email=None, user_groups=None, active=Tru...
29.989899
99
0.607275
75cc237bd6a8664e50af164f4724f5008013d381
369
py
Python
lib/external/setup.py
shachargluska/centerpose
01c2c8bfa9d3ee91807f2ffdcc48728d104265bd
[ "MIT" ]
245
2019-11-29T02:55:25.000Z
2022-03-30T07:30:18.000Z
lib/external/setup.py
shachargluska/centerpose
01c2c8bfa9d3ee91807f2ffdcc48728d104265bd
[ "MIT" ]
24
2019-11-29T10:05:00.000Z
2022-03-30T07:16:06.000Z
lib/external/setup.py
FishLiuabc/centerpose
555d753cd82693476f91f78c53aa4147f5a83015
[ "MIT" ]
45
2019-11-29T05:12:02.000Z
2022-03-21T02:20:36.000Z
from distutils.core import setup from distutils.extension import Extension import numpy from Cython.Build import cythonize extensions = [ Extension( "nms", ["nms.pyx"], extra_compile_args=["-Wno-cpp", "-Wno-unused-function"] ) ] setup( name="coco", ext_modules=cythonize(exten...
18.45
63
0.666667
43762d4a93a68a87619a65a64d8427722aaef450
58,947
py
Python
pyNastran/bdf/bdf_interface/write_mesh.py
numenic/pyNastran
fd5d3f0bf18db6595d85b9ac152f611e23122a68
[ "BSD-3-Clause" ]
null
null
null
pyNastran/bdf/bdf_interface/write_mesh.py
numenic/pyNastran
fd5d3f0bf18db6595d85b9ac152f611e23122a68
[ "BSD-3-Clause" ]
null
null
null
pyNastran/bdf/bdf_interface/write_mesh.py
numenic/pyNastran
fd5d3f0bf18db6595d85b9ac152f611e23122a68
[ "BSD-3-Clause" ]
null
null
null
# coding: utf-8 """ This file defines: - WriteMesh """ import sys from io import StringIO, IOBase from typing import List, Dict, Union, Optional, Tuple, Any, cast from pyNastran.bdf.field_writer_8 import print_card_8 from pyNastran.bdf.field_writer_16 import print_card_16 from pyNastran.bdf.bdf_interface.attributes...
49.081599
116
0.590055
4c0d3fa49e5ece2ecf9e464bb9bad46ebf95c4ac
11,355
py
Python
sunpy/net/dataretriever/client.py
drewleonard42/sunpy
79ca90a032213d82d42a3657a693b20b99b22464
[ "BSD-2-Clause" ]
null
null
null
sunpy/net/dataretriever/client.py
drewleonard42/sunpy
79ca90a032213d82d42a3657a693b20b99b22464
[ "BSD-2-Clause" ]
null
null
null
sunpy/net/dataretriever/client.py
drewleonard42/sunpy
79ca90a032213d82d42a3657a693b20b99b22464
[ "BSD-2-Clause" ]
null
null
null
# -*- coding: utf-8 -*- import copy import os from collections import OrderedDict, namedtuple from functools import partial import pathlib import numpy as np import astropy.table import astropy.units as u import sunpy from sunpy.time import TimeRange from sunpy.util import replacement_filename from sunpy import confi...
32.913043
93
0.579568
985684c0b72bed6996bbe60c27150d194a82a223
4,321
py
Python
reinforcement/valueIterationAgents.py
yuhang-lin/Reinforcement-Learning-Pacman
c178ce5f06f4132992c254c75c1e43e97348da47
[ "MIT" ]
null
null
null
reinforcement/valueIterationAgents.py
yuhang-lin/Reinforcement-Learning-Pacman
c178ce5f06f4132992c254c75c1e43e97348da47
[ "MIT" ]
null
null
null
reinforcement/valueIterationAgents.py
yuhang-lin/Reinforcement-Learning-Pacman
c178ce5f06f4132992c254c75c1e43e97348da47
[ "MIT" ]
null
null
null
# valueIterationAgents.py # ----------------------- # Licensing Information: You are free to use or extend these projects for # educational purposes provided that (1) you do not distribute or publish # solutions, (2) you retain this notice, and (3) you provide clear # attribution to UC Berkeley, including a link to ht...
39.642202
127
0.629715
472fb9cb14aac89eea64bcbddca688d1afe7ecca
1,803
py
Python
ipproxytool/spiders/proxy/usproxy.py
Victorchi/proxy
caabc2bfc6ee7fd2eaed76f5630028e4e3117de3
[ "MIT" ]
null
null
null
ipproxytool/spiders/proxy/usproxy.py
Victorchi/proxy
caabc2bfc6ee7fd2eaed76f5630028e4e3117de3
[ "MIT" ]
1
2022-03-02T14:53:50.000Z
2022-03-02T14:53:50.000Z
ipproxytool/spiders/proxy/usproxy.py
Victorchi/proxy
caabc2bfc6ee7fd2eaed76f5630028e4e3117de3
[ "MIT" ]
1
2017-12-05T06:00:09.000Z
2017-12-05T06:00:09.000Z
# coding=utf-8 import re from proxy import Proxy from .basespider import BaseSpider class UsProxySpider(BaseSpider): name = 'usproxy' def __init__(self, *a, **kwargs): super(UsProxySpider, self).__init__(*a, **kwargs) self.urls = [ 'http://www.us-proxy.org/', 'http:...
33.388889
111
0.510261
6a34afd951e5ffae5cab2768911cbe3fe66af99d
28,995
py
Python
flexx/app/_component2.py
tbnorth/flexx
458823ccd554e57b1db709e97dce287db6b06c80
[ "BSD-2-Clause" ]
null
null
null
flexx/app/_component2.py
tbnorth/flexx
458823ccd554e57b1db709e97dce287db6b06c80
[ "BSD-2-Clause" ]
null
null
null
flexx/app/_component2.py
tbnorth/flexx
458823ccd554e57b1db709e97dce287db6b06c80
[ "BSD-2-Clause" ]
null
null
null
""" Implementation of the app Component classes (LocalComponent, ProxyComponent, StubComponent), which form the basis for the PyComponent and JsComponent classes (and their proxies). """ import sys from pscript import window, JSString, this_is_js from .. import event from ..event import Component, loop, Dict from ....
40.214979
85
0.62866
abf27d180991fc068917f476f9f25200f7461429
8,086
py
Python
6-VGG16-CIFAR10-xavier_init.py
SunnyHaze/CIFAR10-VGG-Pytorch
c2794f7c709b85059ee06779ac2b8e1cc672e2c5
[ "Apache-2.0" ]
null
null
null
6-VGG16-CIFAR10-xavier_init.py
SunnyHaze/CIFAR10-VGG-Pytorch
c2794f7c709b85059ee06779ac2b8e1cc672e2c5
[ "Apache-2.0" ]
null
null
null
6-VGG16-CIFAR10-xavier_init.py
SunnyHaze/CIFAR10-VGG-Pytorch
c2794f7c709b85059ee06779ac2b8e1cc672e2c5
[ "Apache-2.0" ]
null
null
null
import os from matplotlib.pyplot import imshow import torch from torch.utils.data import Dataset, DataLoader, TensorDataset from torch import conv2d, dropout, nn, sigmoid, tensor import numpy as np from imports.ParametersManager import * from imports.utlis import * from matplotlib import pyplot as plt import torchvisio...
37.262673
176
0.607593
5751013ff187b2d2d07594aff3ecb037faa7e656
81,210
py
Python
elf/src/python/elf.py
kaitai-io/formats-kaitai-io.github.io
2700514a2a8f67c5351fe93962c70abea02fd3d3
[ "0BSD" ]
4
2018-12-10T09:21:19.000Z
2021-11-03T16:43:22.000Z
elf/src/python/elf.py
kaitai-io/formats-kaitai-io.github.io
2700514a2a8f67c5351fe93962c70abea02fd3d3
[ "0BSD" ]
null
null
null
elf/src/python/elf.py
kaitai-io/formats-kaitai-io.github.io
2700514a2a8f67c5351fe93962c70abea02fd3d3
[ "0BSD" ]
3
2019-04-08T08:22:22.000Z
2021-10-10T19:11:51.000Z
# This is a generated file! Please edit source .ksy file and use kaitai-struct-compiler to rebuild from pkg_resources import parse_version import kaitaistruct from kaitaistruct import KaitaiStruct, KaitaiStream, BytesIO from enum import Enum if parse_version(kaitaistruct.__version__) < parse_version('0.9'): rais...
39.595319
641
0.545807
2c9bb8d1b8173c07629008dc36e41b77154f4a7d
120
py
Python
lg_activity/src/lg_activity/__init__.py
FuriousJulius/lg_ros_nodes
15a84c5022ab2f5b038d11a5589cd4a34010b1d6
[ "Apache-2.0" ]
16
2015-10-10T11:55:37.000Z
2022-02-24T22:47:48.000Z
lg_activity/src/lg_activity/__init__.py
FuriousJulius/lg_ros_nodes
15a84c5022ab2f5b038d11a5589cd4a34010b1d6
[ "Apache-2.0" ]
292
2015-09-29T21:59:53.000Z
2022-03-31T15:59:31.000Z
lg_activity/src/lg_activity/__init__.py
constantegonzalez/lg_ros_nodes
1c7b08c42e90205922602c86805285508d1b7971
[ "Apache-2.0" ]
5
2017-05-03T06:22:43.000Z
2021-08-19T16:54:14.000Z
from .activity import ActivitySource from .activity import ActivityTracker from .activity import ActivitySourceDetector
30
44
0.875
ff5dd41c4e64a2eebf1e3235d404e18b243d67cf
14,598
py
Python
arelle/DialogOpenArchive.py
theredpea/Arelle
e53097f142a69b2fefc18298a72f1f1b219b973d
[ "Apache-2.0" ]
null
null
null
arelle/DialogOpenArchive.py
theredpea/Arelle
e53097f142a69b2fefc18298a72f1f1b219b973d
[ "Apache-2.0" ]
null
null
null
arelle/DialogOpenArchive.py
theredpea/Arelle
e53097f142a69b2fefc18298a72f1f1b219b973d
[ "Apache-2.0" ]
null
null
null
''' Created on Oct 20, 2010 @author: Mark V Systems Limited (c) Copyright 2010 Mark V Systems Limited, All rights reserved. ''' from tkinter import Toplevel, StringVar, VERTICAL, HORIZONTAL, N, S, E, W, messagebox try: from tkinter.ttk import Frame, Button, Treeview, Scrollbar except ImportError: from ttk impo...
43.446429
110
0.534388
d4fb15afd9f2101ee993194855c7399b2ce1e7a9
1,477
py
Python
setup.py
webji/pyops
df3403c8900ea76bf62d68610ae9d024fa046fc3
[ "Apache-2.0" ]
1
2018-01-11T06:27:19.000Z
2018-01-11T06:27:19.000Z
setup.py
webji/pyops
df3403c8900ea76bf62d68610ae9d024fa046fc3
[ "Apache-2.0" ]
3
2018-01-10T05:51:18.000Z
2018-01-11T06:34:37.000Z
setup.py
webji/pyops
df3403c8900ea76bf62d68610ae9d024fa046fc3
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- encoding: utf-8 -*- # Author: Will<willji@outlook.com> # Created on 2018-01-10 12:45:12 import sys from setuptools import setup, find_packages from codecs import open from os import path here = path.abspath(path.dirname(__file__)) with open(path.join(here, 'README.md'), encoding='utf8') ...
20.802817
71
0.628978
372c8aca962b9fab23f7a5c1aea1a66332581d24
3,340
py
Python
lib/surface/compute/routers/add_bgp_peer.py
bopopescu/SDK
e6d9aaee2456f706d1d86e8ec2a41d146e33550d
[ "Apache-2.0" ]
null
null
null
lib/surface/compute/routers/add_bgp_peer.py
bopopescu/SDK
e6d9aaee2456f706d1d86e8ec2a41d146e33550d
[ "Apache-2.0" ]
null
null
null
lib/surface/compute/routers/add_bgp_peer.py
bopopescu/SDK
e6d9aaee2456f706d1d86e8ec2a41d146e33550d
[ "Apache-2.0" ]
2
2020-11-04T03:08:21.000Z
2020-11-05T08:14:41.000Z
# Copyright 2015 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ag...
29.557522
79
0.653293
cb9ed7cb6cf673b479d2a7c9960e04b277d9123f
11,350
py
Python
sdk/python/pulumi_azure_nextgen/network/express_route_port.py
pulumi/pulumi-azure-nextgen
452736b0a1cf584c2d4c04666e017af6e9b2c15c
[ "Apache-2.0" ]
31
2020-09-21T09:41:01.000Z
2021-02-26T13:21:59.000Z
sdk/python/pulumi_azure_nextgen/network/express_route_port.py
pulumi/pulumi-azure-nextgen
452736b0a1cf584c2d4c04666e017af6e9b2c15c
[ "Apache-2.0" ]
231
2020-09-21T09:38:45.000Z
2021-03-01T11:16:03.000Z
sdk/python/pulumi_azure_nextgen/network/express_route_port.py
pulumi/pulumi-azure-nextgen
452736b0a1cf584c2d4c04666e017af6e9b2c15c
[ "Apache-2.0" ]
4
2020-09-29T14:14:59.000Z
2021-02-10T20:38:16.000Z
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** 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 from .. import _utilities, _tables from ...
43.992248
1,418
0.660088
a53bc4555ea6052f05f65f5bde9d03cb452d7896
426
py
Python
Parte 2/classificando-atletas.py
ohniluap/python-exercises
7a7af8eced2811791bc4dfebcfab84100b46224c
[ "MIT" ]
null
null
null
Parte 2/classificando-atletas.py
ohniluap/python-exercises
7a7af8eced2811791bc4dfebcfab84100b46224c
[ "MIT" ]
null
null
null
Parte 2/classificando-atletas.py
ohniluap/python-exercises
7a7af8eced2811791bc4dfebcfab84100b46224c
[ "MIT" ]
null
null
null
from datetime import date atual = date.today().year nascimento = int(input('Ano de nascimento: ')) idade = atual - nascimento print('O atleta tem {} anos.'.format(idade)) if idade <= 9: print('CLASSIFICAÇÃO: MIRIM') elif idade <= 14: print('CLASSIFICAÇÃO: INFANTIL') elif idade <= 19: print('CLASSIFICAÇÃO: J...
26.625
46
0.678404
27264a8c6440aa048dea24d80482f2feb070a924
132,608
py
Python
neutron/tests/unit/agent/l3/test_agent.py
prap4source/Neutron
bd7c3a7708de2aaeaa374a9ee563da1e1a0955c8
[ "Apache-2.0" ]
null
null
null
neutron/tests/unit/agent/l3/test_agent.py
prap4source/Neutron
bd7c3a7708de2aaeaa374a9ee563da1e1a0955c8
[ "Apache-2.0" ]
null
null
null
neutron/tests/unit/agent/l3/test_agent.py
prap4source/Neutron
bd7c3a7708de2aaeaa374a9ee563da1e1a0955c8
[ "Apache-2.0" ]
null
null
null
# Copyright 2012 VMware, Inc. # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by ...
45.853389
79
0.605831
435099dae2522df08fca20c0261dbbf5e79db279
4,063
py
Python
huaweicloud-sdk-bss/huaweicloudsdkbss/v2/model/list_conversions_request.py
huaweicloud/huaweicloud-sdk-python-v3
7a6270390fcbf192b3882bf763e7016e6026ef78
[ "Apache-2.0" ]
64
2020-06-12T07:05:07.000Z
2022-03-30T03:32:50.000Z
huaweicloud-sdk-bss/huaweicloudsdkbss/v2/model/list_conversions_request.py
huaweicloud/huaweicloud-sdk-python-v3
7a6270390fcbf192b3882bf763e7016e6026ef78
[ "Apache-2.0" ]
11
2020-07-06T07:56:54.000Z
2022-01-11T11:14:40.000Z
huaweicloud-sdk-bss/huaweicloudsdkbss/v2/model/list_conversions_request.py
huaweicloud/huaweicloud-sdk-python-v3
7a6270390fcbf192b3882bf763e7016e6026ef78
[ "Apache-2.0" ]
24
2020-06-08T11:42:13.000Z
2022-03-04T06:44:08.000Z
# coding: utf-8 import re import six from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization class ListConversionsRequest: """ Attributes: openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The...
28.612676
120
0.582821
6ba079819c4c68750132637ad758d8e392efba83
10,953
py
Python
conans/client/conf/detect.py
ssaavedra/conan
e15dc7902fbbeaf469798a3b9948ead1ecfc8e3c
[ "MIT" ]
1
2021-08-05T15:33:08.000Z
2021-08-05T15:33:08.000Z
conans/client/conf/detect.py
ssaavedra/conan
e15dc7902fbbeaf469798a3b9948ead1ecfc8e3c
[ "MIT" ]
9
2017-10-07T06:23:10.000Z
2021-06-29T15:22:27.000Z
conans/client/conf/detect.py
ssaavedra/conan
e15dc7902fbbeaf469798a3b9948ead1ecfc8e3c
[ "MIT" ]
1
2022-03-23T18:07:31.000Z
2022-03-23T18:07:31.000Z
import os import platform import re import tempfile import textwrap from conans.client.conf.compiler_id import UNKNOWN_COMPILER, LLVM_GCC, detect_compiler_id from conans.client.output import Color from conans.client.tools import detected_os, OSInfo from conans.client.tools.win import latest_visual_studio_version_insta...
37.768966
99
0.601114
4130d22e601be1fb94d742cff8a711f420447948
20,213
py
Python
model-optimizer/mo/ops/convolution_test.py
zhoub/dldt
e42c01cf6e1d3aefa55e2c5df91f1054daddc575
[ "Apache-2.0" ]
3
2020-02-09T23:25:37.000Z
2021-01-19T09:44:12.000Z
model-optimizer/mo/ops/convolution_test.py
zhoub/dldt
e42c01cf6e1d3aefa55e2c5df91f1054daddc575
[ "Apache-2.0" ]
null
null
null
model-optimizer/mo/ops/convolution_test.py
zhoub/dldt
e42c01cf6e1d3aefa55e2c5df91f1054daddc575
[ "Apache-2.0" ]
2
2020-04-18T16:24:39.000Z
2021-01-19T09:42:19.000Z
""" Copyright (c) 2018-2019 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...
53.052493
120
0.46381
106734a7c8f4de3ba29409b6682e3662f296d54c
9,070
py
Python
Algorithms/General/MergeStates.py
icsa-caps/HieraGen
4026c1718878d2ef69dd13d3e6e10cab69174fda
[ "MIT" ]
6
2020-07-07T15:45:13.000Z
2021-08-29T06:44:29.000Z
Algorithms/General/MergeStates.py
icsa-caps/HieraGen
4026c1718878d2ef69dd13d3e6e10cab69174fda
[ "MIT" ]
null
null
null
Algorithms/General/MergeStates.py
icsa-caps/HieraGen
4026c1718878d2ef69dd13d3e6e10cab69174fda
[ "MIT" ]
null
null
null
from typing import List from DataObjects.ClassState import State ######################################################################################################################## # 8) STATE MERGING #################################################################################################################...
36.572581
120
0.553032
a3bf0574f3e683591dfd6ab052a76784ab5a69b4
904
py
Python
microcosm_flask/tests/swagger/parameters/test_default.py
Sinon/microcosm-flask
c1404ebc94459c8156b04f5e04490a330117524c
[ "Apache-2.0" ]
11
2017-01-30T21:53:20.000Z
2020-05-29T22:39:19.000Z
microcosm_flask/tests/swagger/parameters/test_default.py
Sinon/microcosm-flask
c1404ebc94459c8156b04f5e04490a330117524c
[ "Apache-2.0" ]
139
2016-03-09T19:09:59.000Z
2021-09-03T17:14:00.000Z
microcosm_flask/tests/swagger/parameters/test_default.py
Sinon/microcosm-flask
c1404ebc94459c8156b04f5e04490a330117524c
[ "Apache-2.0" ]
10
2016-12-19T22:39:42.000Z
2021-03-09T19:23:15.000Z
from hamcrest import assert_that, equal_to, is_ from marshmallow import Schema, fields from microcosm_flask.swagger.api import build_parameter class TestSchema(Schema): id = fields.UUID() foo = fields.String(description="Foo", default="bar") payload = fields.Dict() datetime = fields.DateTime() def ...
25.111111
63
0.659292
f34a6ae451e182d06ec6217aa282c77cd96c4737
288
py
Python
cms/admin.py
opendream/asip
20583aca6393102d425401d55ea32ac6b78be048
[ "MIT" ]
null
null
null
cms/admin.py
opendream/asip
20583aca6393102d425401d55ea32ac6b78be048
[ "MIT" ]
8
2020-03-24T17:11:49.000Z
2022-01-13T01:18:11.000Z
cms/admin.py
opendream/asip
20583aca6393102d425401d55ea32ac6b78be048
[ "MIT" ]
null
null
null
from django.contrib import admin # Register your models here. from cms.models import News from cms.models import Event class NewsAdmin(admin.ModelAdmin): pass class EventAdmin(admin.ModelAdmin): pass admin.site.register(News, NewsAdmin) admin.site.register(Event, EventAdmin)
19.2
38
0.784722
1ad216932a4659e29b033611bdc81bfb7d71a330
2,109
py
Python
gurobi-test/test.py
jontev/postnord-optimization
38dd1738dd4a930531d70bd914ae34918ad7f1d2
[ "MIT" ]
null
null
null
gurobi-test/test.py
jontev/postnord-optimization
38dd1738dd4a930531d70bd914ae34918ad7f1d2
[ "MIT" ]
null
null
null
gurobi-test/test.py
jontev/postnord-optimization
38dd1738dd4a930531d70bd914ae34918ad7f1d2
[ "MIT" ]
null
null
null
import gurobipy as gp from gurobipy import GRB import pandas as pd import os S = pd.read_csv('Sj.csv') L = pd.read_csv('Lj.csv') m = pd.read_csv('mj.csv') dij = pd.read_csv('dij.csv') aip = pd.read_csv('aip.csv') S = S.to_numpy() L = L.to_numpy() m = m.to_numpy() dij = dij.to_numpy() aip = aip.to_numpy() P = list(r...
29.704225
117
0.626363
5d87ef8f3887cbc92ad9250cf847974199e0a850
6,801
py
Python
hubspot/crm/deals/models/error_category.py
fakepop/hubspot-api-python
f04103a09f93f5c26c99991b25fa76801074f3d3
[ "Apache-2.0" ]
null
null
null
hubspot/crm/deals/models/error_category.py
fakepop/hubspot-api-python
f04103a09f93f5c26c99991b25fa76801074f3d3
[ "Apache-2.0" ]
null
null
null
hubspot/crm/deals/models/error_category.py
fakepop/hubspot-api-python
f04103a09f93f5c26c99991b25fa76801074f3d3
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ Deals No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 The version of the OpenAPI document: v3 Generated by: https://openapi-generator.tech """ import pprint import re # noqa: F401 import six from hubspot...
29.960352
124
0.545802
2e744bdbea3ef1528e5cc99fad0837fc41280333
2,774
py
Python
python/shopping_store_v2/main.py
matheuskiser/pdx_code_guild
49a5c62fb468253eb4d9a1fb11166df79bb10873
[ "MIT" ]
null
null
null
python/shopping_store_v2/main.py
matheuskiser/pdx_code_guild
49a5c62fb468253eb4d9a1fb11166df79bb10873
[ "MIT" ]
null
null
null
python/shopping_store_v2/main.py
matheuskiser/pdx_code_guild
49a5c62fb468253eb4d9a1fb11166df79bb10873
[ "MIT" ]
null
null
null
from store import Store from login import Login import os # Starts store and sets up all items store = Store("Fred Meyer", "Portland, OR") # Temporary code to load or not load items load = raw_input("Load items? ") if load == "y": store.load_items_store() # Starts user's login user = Login() # Global user ID ...
24.333333
74
0.582913
c63da9c501d44ecf97a3883c4b9f6e890b7acacc
5,786
py
Python
costar_task_plan/python/costar_task_plan/mcts/node.py
cpaxton/costar_plan
be5c12f9d0e9d7078e6a5c283d3be059e7f3d040
[ "Apache-2.0" ]
66
2018-10-31T04:58:53.000Z
2022-03-17T02:32:25.000Z
costar_task_plan/python/costar_task_plan/mcts/node.py
cpaxton/costar_plan
be5c12f9d0e9d7078e6a5c283d3be059e7f3d040
[ "Apache-2.0" ]
8
2018-10-23T21:19:25.000Z
2018-12-03T02:08:41.000Z
costar_task_plan/python/costar_task_plan/mcts/node.py
cpaxton/costar_plan
be5c12f9d0e9d7078e6a5c283d3be059e7f3d040
[ "Apache-2.0" ]
25
2018-10-19T00:54:17.000Z
2021-10-10T08:28:15.000Z
from costar_task_plan.abstract import * ''' An MCTS node is a TYPE of state, but contains a different type of state. Why? So that we can do interesting learning over MCTS states. ''' class Node(AbstractState): next_idx = 0 def __init__(self, world=None, action=None, prior=1., root=False): ''' ...
33.252874
81
0.566367
2cbac16d3c0517f00cfe53f177d6717a71a2d97e
1,635
py
Python
module_factions.py
invisiblebob395/awefawe
42daf9d3ae06bcdb3b91973d94eed8bed1303e2b
[ "BSD-3-Clause" ]
17
2015-01-19T07:53:57.000Z
2021-07-10T02:26:51.000Z
module_factions.py
qt911025/pw_module_system
dbd257e5231d16c47f17091a3ab18972be7687e5
[ "BSD-3-Clause" ]
1
2017-08-31T03:55:09.000Z
2017-08-31T03:55:09.000Z
module_factions.py
qt911025/pw_module_system
dbd257e5231d16c47f17091a3ab18972be7687e5
[ "BSD-3-Clause" ]
14
2015-05-03T05:20:01.000Z
2021-12-29T17:10:50.000Z
from header_factions import * #################################################################################################################### # Each faction record contains the following fields: # 1) Faction id: used for referencing factions in other files. # The prefix fac_ is automatically added before ea...
48.088235
116
0.545566
aa4c074f87300d5bfab6688794b519d2b8710174
241
py
Python
backend/urls.py
sauravsharmaz/Quote_app_DRF
3a634a7be95d1c812d69c98590963cec946d24bc
[ "MIT" ]
1
2021-09-03T15:44:27.000Z
2021-09-03T15:44:27.000Z
backend/urls.py
sauravsharmaz/Quote_app_DRF
3a634a7be95d1c812d69c98590963cec946d24bc
[ "MIT" ]
null
null
null
backend/urls.py
sauravsharmaz/Quote_app_DRF
3a634a7be95d1c812d69c98590963cec946d24bc
[ "MIT" ]
null
null
null
from django.contrib import admin from django.urls import path from django.urls.conf import include urlpatterns = [ path('admin/', admin.site.urls), path('api/',include('API.urls')), path('scrapper/',include('scrapper.urls')), ]
24.1
47
0.697095
b749aba6260cd374342434aa517543a36b619616
9,452
py
Python
nova/virt/hyperv/volumeops.py
bopopescu/nova-40
d8d5e4c4e30d0e605001ebab9f19005d2ea96f99
[ "Apache-2.0" ]
null
null
null
nova/virt/hyperv/volumeops.py
bopopescu/nova-40
d8d5e4c4e30d0e605001ebab9f19005d2ea96f99
[ "Apache-2.0" ]
null
null
null
nova/virt/hyperv/volumeops.py
bopopescu/nova-40
d8d5e4c4e30d0e605001ebab9f19005d2ea96f99
[ "Apache-2.0" ]
1
2020-07-24T09:44:17.000Z
2020-07-24T09:44:17.000Z
# vim: tabstop=4 shiftwidth=4 softtabstop=4 # Copyright 2012 Pedro Navarro Perez # Copyright 2013 Cloudbase Solutions Srl # 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...
42.38565
79
0.614473