hexsha
stringlengths
40
40
size
int64
3
1.03M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
972
max_stars_repo_name
stringlengths
6
130
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
⌀
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
⌀
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
⌀
max_issues_repo_path
stringlengths
3
972
max_issues_repo_name
stringlengths
6
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
116k
⌀
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
⌀
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
⌀
max_forks_repo_path
stringlengths
3
972
max_forks_repo_name
stringlengths
6
130
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
⌀
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
⌀
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
⌀
content
stringlengths
3
1.03M
avg_line_length
float64
1.13
941k
max_line_length
int64
2
941k
alphanum_fraction
float64
0
1
fb4037961f216a552f19065e8ea0ab4f49037c5e
395
py
Python
python_wrapper/cost_time_wrapper.py
tobegit3hub/code_examples
d5500a4e68078fbe051e3dc845b7c2be0c3d4ab1
[ "Apache-2.0" ]
23
2020-03-31T10:46:39.000Z
2022-02-06T12:34:54.000Z
python_wrapper/cost_time_wrapper.py
tobegit3hub/code_examples
d5500a4e68078fbe051e3dc845b7c2be0c3d4ab1
[ "Apache-2.0" ]
null
null
null
python_wrapper/cost_time_wrapper.py
tobegit3hub/code_examples
d5500a4e68078fbe051e3dc845b7c2be0c3d4ab1
[ "Apache-2.0" ]
22
2020-05-30T17:48:22.000Z
2022-03-01T08:08:39.000Z
#!/usr/bin/env python import time def cost_time(func): def wrapper(*args, **kwargs): start_time = time.time() result = func(*args, **kwargs) end_time = time.time() print("Cost time: {}".format(end_time - start_time)) return result return wrapper @cost_time def main(): for i in range(100...
14.62963
56
0.63038
49014c6276ca345c4034f5c83da72e825e6ff718
7,702
py
Python
config/api_router.py
arpancodes/care
e4f295c29f70c7a356c0ef25f7326579992ef0cb
[ "MIT" ]
null
null
null
config/api_router.py
arpancodes/care
e4f295c29f70c7a356c0ef25f7326579992ef0cb
[ "MIT" ]
null
null
null
config/api_router.py
arpancodes/care
e4f295c29f70c7a356c0ef25f7326579992ef0cb
[ "MIT" ]
null
null
null
from django.conf import settings from django.conf.urls import include, url from rest_framework.routers import DefaultRouter, SimpleRouter from rest_framework_nested.routers import NestedSimpleRouter from care.facility.api.viewsets.ambulance import AmbulanceCreateViewSet, AmbulanceViewSet from care.facility.api.viewset...
43.514124
104
0.843417
479773b4eff170ed6f35aaabeb5d18e2d02419de
3,331
py
Python
lib/aquilon/aqdb/column_types/IP.py
ned21/aquilon
6562ea0f224cda33b72a6f7664f48d65f96bd41a
[ "Apache-2.0" ]
7
2015-07-31T05:57:30.000Z
2021-09-07T15:18:56.000Z
lib/aquilon/aqdb/column_types/IP.py
ned21/aquilon
6562ea0f224cda33b72a6f7664f48d65f96bd41a
[ "Apache-2.0" ]
115
2015-03-03T13:11:46.000Z
2021-09-20T12:42:24.000Z
lib/aquilon/aqdb/column_types/IP.py
ned21/aquilon
6562ea0f224cda33b72a6f7664f48d65f96bd41a
[ "Apache-2.0" ]
13
2015-03-03T11:17:59.000Z
2021-09-09T09:16:41.000Z
# -*- cpy-indent-level: 4; indent-tabs-mode: nil -*- # ex: set expandtab softtabstop=4 shiftwidth=4: # # Copyright (C) 2008,2009,2010,2011,2012,2013,2014,2017 Contributor # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obt...
33.989796
99
0.64245
a6df52ec7aee3526857ee494d97e42cb26b59421
2,846
py
Python
Py exercises/09_01_Rev0.2.py
arvindkarir/python-pandas-code
fb3b68f07f0438cd0ef6d7ad669ce78650d884a8
[ "MIT" ]
null
null
null
Py exercises/09_01_Rev0.2.py
arvindkarir/python-pandas-code
fb3b68f07f0438cd0ef6d7ad669ce78650d884a8
[ "MIT" ]
null
null
null
Py exercises/09_01_Rev0.2.py
arvindkarir/python-pandas-code
fb3b68f07f0438cd0ef6d7ad669ce78650d884a8
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Tue Jan 16 16:42:48 2018 for group by in dictionaries https://www.safaribooksonline.com/library/view/python-cookbook-3rd/9781449357337/ch01s15.html with itertools @author: User """ # this is to get Names and courses in a list of lists: #def getNames(): # nameFile = ...
28.178218
105
0.576599
fe4b4a28c5d6ea87ebb370c978dcb55e1076bbd7
85
py
Python
codebase/scheduler/register.py
ashok-arjun/image-classification-codebase
a944e1c0cd161e87f7c04fd35acf01a13d3fca9a
[ "BSD-3-Clause" ]
5
2020-12-27T02:11:33.000Z
2021-12-21T14:11:18.000Z
codebase/scheduler/register.py
ashok-arjun/image-classification-codebase
a944e1c0cd161e87f7c04fd35acf01a13d3fca9a
[ "BSD-3-Clause" ]
4
2021-06-30T16:17:26.000Z
2022-01-25T15:00:31.000Z
codebase/scheduler/register.py
ashok-arjun/image-classification-codebase
a944e1c0cd161e87f7c04fd35acf01a13d3fca9a
[ "BSD-3-Clause" ]
4
2021-05-02T21:12:45.000Z
2021-12-30T09:53:17.000Z
from codebase.torchutils.register import Register SCHEDULER = Register("scheduler")
21.25
49
0.823529
b42c3227693455ba050398cbd63916a05da3614d
6,444
py
Python
configs/configgen.py
jessicayuen/envoy
a240824c376693b16ca8be51e435b95c42f3449f
[ "Apache-2.0" ]
2
2021-04-22T21:38:58.000Z
2021-04-22T21:39:40.000Z
configs/configgen.py
jessicayuen/envoy
a240824c376693b16ca8be51e435b95c42f3449f
[ "Apache-2.0" ]
8
2022-03-01T20:32:32.000Z
2022-03-23T22:08:49.000Z
configs/configgen.py
yanavlasov/envoy
2b8a744bf0b77717be889d4f514edd22a76cbe8e
[ "Apache-2.0" ]
null
null
null
import jinja2 import json from collections import OrderedDict import os import shutil import sys SCRIPT_DIR = os.path.dirname(__file__) OUT_DIR = sys.argv[1] # # About this script: Envoy configurations needed for a complete infrastructure are complicated. # This script demonstrates how to programatically build Envoy ...
44.136986
100
0.685754
c2145a28b8098d26c67f49818369dff92c2ac06b
11,662
py
Python
apiosintDS/apiosintDS.py
davidonzo/apiosintDS
b5bb1c42e1a3d984a69e8794a4c5da6969dcd917
[ "MIT" ]
13
2019-10-15T06:54:49.000Z
2022-03-28T23:23:29.000Z
apiosintDS/apiosintDS.py
davidonzo/apiosintDS
b5bb1c42e1a3d984a69e8794a4c5da6969dcd917
[ "MIT" ]
1
2019-11-12T15:00:53.000Z
2019-11-14T09:37:46.000Z
apiosintDS/apiosintDS.py
davidonzo/apiosintDS
b5bb1c42e1a3d984a69e8794a4c5da6969dcd917
[ "MIT" ]
4
2019-12-05T05:34:07.000Z
2022-03-24T09:59:26.000Z
import sys import logging import pytz logging.basicConfig(format='%(levelname)s: %(message)s') if (sys.version_info < (3, 0)):#NO MORE PYTHON 2!!! https://pythonclock.org/ logging.error(" ########################### ERROR ###########################") logging.error(" ============================================...
51.149123
428
0.607271
23b75bd2dab7b88d25997bbafad65780c523e88a
1,485
py
Python
visualisation/python/map.py
piermafrost/GEOCLIM5_sulf
26c8d1e2cabc64619ae7ea000a9a507f6ed39982
[ "NetCDF" ]
null
null
null
visualisation/python/map.py
piermafrost/GEOCLIM5_sulf
26c8d1e2cabc64619ae7ea000a9a507f6ed39982
[ "NetCDF" ]
null
null
null
visualisation/python/map.py
piermafrost/GEOCLIM5_sulf
26c8d1e2cabc64619ae7ea000a9a507f6ed39982
[ "NetCDF" ]
null
null
null
from netCDF4 import Dataset import matplotlib.pyplot as plt import cartopy.crs as ccrs import numpy as np from matplotlib.backends.backend_pdf import PdfPages pdf_pages=PdfPages('map.pdf') def plot_z(lat, lon, z): """ Plot data. Parameters ---------- lat : latitude vector...
29.117647
103
0.644444
a71c3f50be940deb036d6dd4d33df798c901677a
12,811
py
Python
api_tests/private/friendships.py
zmike808/instagram_private_api_old
7dc1b5c1f95906f25a992ba70898069998751196
[ "MIT" ]
6
2019-07-29T08:27:51.000Z
2020-08-24T04:33:36.000Z
api_tests/private/friendships.py
zmike808/instagram_private_api_old
7dc1b5c1f95906f25a992ba70898069998751196
[ "MIT" ]
null
null
null
api_tests/private/friendships.py
zmike808/instagram_private_api_old
7dc1b5c1f95906f25a992ba70898069998751196
[ "MIT" ]
3
2020-09-05T09:45:56.000Z
2020-10-01T12:42:51.000Z
import unittest from .common import ApiTestBase, compat_mock class FriendshipTests(ApiTestBase): """Tests for FriendshipsEndpointsMixin.""" @staticmethod def init_all(api): return [ { 'name': 'test_autocomplete_user_list', 'test': FriendshipTests('test...
40.286164
88
0.589103
a1168e0df4c6ae7b1f4ce4142aa0597eebd58964
45,565
py
Python
src/twisted/conch/test/test_session.py
DefaultUser/twisted
2cd9e005f228d999342914a6aff39818784223fb
[ "MIT", "Unlicense" ]
null
null
null
src/twisted/conch/test/test_session.py
DefaultUser/twisted
2cd9e005f228d999342914a6aff39818784223fb
[ "MIT", "Unlicense" ]
null
null
null
src/twisted/conch/test/test_session.py
DefaultUser/twisted
2cd9e005f228d999342914a6aff39818784223fb
[ "MIT", "Unlicense" ]
null
null
null
# Copyright (c) Twisted Matrix Laboratories. # See LICENSE for details. """ Tests for the 'session' channel implementation in twisted.conch.ssh.session. See also RFC 4254. """ import os import signal import struct import sys from unittest import skipIf from zope.interface import implementer from twisted.internet ...
34.65019
88
0.623176
00a52fbf5e205ec802c45970bcaa205976ddf25d
391
py
Python
sfotipy/wsgi.py
daatrujillopu/Sfotipy
b77466b0b04b1f47b02b66a51b00df0be9b136bc
[ "MIT" ]
null
null
null
sfotipy/wsgi.py
daatrujillopu/Sfotipy
b77466b0b04b1f47b02b66a51b00df0be9b136bc
[ "MIT" ]
null
null
null
sfotipy/wsgi.py
daatrujillopu/Sfotipy
b77466b0b04b1f47b02b66a51b00df0be9b136bc
[ "MIT" ]
null
null
null
""" WSGI config for sfotipy project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/1.8/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault("DJANGO_SETTI...
23
78
0.785166
61c4b11426741013aa45d949f1a2d1ace39a1bff
1,461
py
Python
model.py
phanxuanphucnd/B-MRC
73de73fab27de1d90aabfa8281a6d87a7d5a3387
[ "MIT" ]
2
2022-02-08T05:21:25.000Z
2022-02-10T03:19:20.000Z
model.py
phanxuanphucnd/B-MRC
73de73fab27de1d90aabfa8281a6d87a7d5a3387
[ "MIT" ]
null
null
null
model.py
phanxuanphucnd/B-MRC
73de73fab27de1d90aabfa8281a6d87a7d5a3387
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright (c) 2022 by Phuc Phan import torch.nn as nn from transformers import ( BertModel, BertTokenizer ) class BMRCBertModel(nn.Module): def __init__(self, args): hidden_size = args.hidden_size super(BMRCBertModel, self).__init__() if args.model_type ...
35.634146
84
0.639973
1290d894d52a792208111293f45633cdb8e441ef
850
py
Python
src/sample/main.py
TestowanieAutomatyczneUG/laboratorium-8-wiktormorawski
a189d5e5f31325e628c8307106a077a853e64138
[ "MIT" ]
null
null
null
src/sample/main.py
TestowanieAutomatyczneUG/laboratorium-8-wiktormorawski
a189d5e5f31325e628c8307106a077a853e64138
[ "MIT" ]
null
null
null
src/sample/main.py
TestowanieAutomatyczneUG/laboratorium-8-wiktormorawski
a189d5e5f31325e628c8307106a077a853e64138
[ "MIT" ]
null
null
null
import requests class MealApi: def searchByName(self, name): req = requests.get("https://www.themealdb.com/api/json/v1/1/search.php?", {"s": name}) return req.json()["meals"] def searchByMainIngredient(self, ingredient): req = requests.get("https://www.themealdb.com/api/json/v1/1/filter...
44.736842
100
0.634118
54521d5611dc16a01483ceccb07f166f84b2ced2
1,937
py
Python
tests/st/ops/gpu/test_ms_greater_equal.py
KnowingNothing/akg-test
114d8626b824b9a31af50a482afc07ab7121862b
[ "Apache-2.0" ]
null
null
null
tests/st/ops/gpu/test_ms_greater_equal.py
KnowingNothing/akg-test
114d8626b824b9a31af50a482afc07ab7121862b
[ "Apache-2.0" ]
null
null
null
tests/st/ops/gpu/test_ms_greater_equal.py
KnowingNothing/akg-test
114d8626b824b9a31af50a482afc07ab7121862b
[ "Apache-2.0" ]
null
null
null
# Copyright 2020-2021 Huawei Technologies Co., Ltd # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agre...
43.044444
114
0.708828
0f10dc297b8e97845611d77bdd471dfcd80cf6d9
15,502
py
Python
tools/nntool/expressions/symbolic/symbol.py
mfkiwl/gap_sdk
642b798dfdc7b85ccabe6baba295033f0eadfcd4
[ "Apache-2.0" ]
null
null
null
tools/nntool/expressions/symbolic/symbol.py
mfkiwl/gap_sdk
642b798dfdc7b85ccabe6baba295033f0eadfcd4
[ "Apache-2.0" ]
null
null
null
tools/nntool/expressions/symbolic/symbol.py
mfkiwl/gap_sdk
642b798dfdc7b85ccabe6baba295033f0eadfcd4
[ "Apache-2.0" ]
null
null
null
# Copyright (C) 2020 GreenWaves Technologies, SAS # 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 the Free Software Foundation, either version 3 of the # License, or (at your option) any later version. # This progr...
30.100971
113
0.605986
cfbdbd652fd6f5743f4298a420a11adbcbe94270
248
py
Python
weather/serializer.py
CodeEnvironment/django-rest-framework-deploy-heroku
c6ffb20961c193b0f4dc1289de904b5d6750f335
[ "MIT" ]
3
2021-04-05T14:02:44.000Z
2022-01-25T07:50:20.000Z
weather/serializer.py
CodeEnvironment/django-rest-framework-deploy-aws
d9cf1d016e22b9b5697c769bd094776d25a3f90b
[ "MIT" ]
null
null
null
weather/serializer.py
CodeEnvironment/django-rest-framework-deploy-aws
d9cf1d016e22b9b5697c769bd094776d25a3f90b
[ "MIT" ]
1
2022-01-23T15:09:59.000Z
2022-01-23T15:09:59.000Z
from rest_framework import serializers from .models import Forecast class ForecastSerializer(serializers.ModelSerializer): class Meta: model = Forecast fields = ["id", "timestamp", "temperatuer", "description","city"]
24.8
73
0.697581
9b23d7a2b249e62ac82f092a9ff7bfb057467f00
420
py
Python
Day02/var_type.py
kakakeven/Follow-Python-100-Days
492883dedfc1a5ec4bff0880aa03a7df07c1bb1d
[ "MIT" ]
null
null
null
Day02/var_type.py
kakakeven/Follow-Python-100-Days
492883dedfc1a5ec4bff0880aa03a7df07c1bb1d
[ "MIT" ]
null
null
null
Day02/var_type.py
kakakeven/Follow-Python-100-Days
492883dedfc1a5ec4bff0880aa03a7df07c1bb1d
[ "MIT" ]
null
null
null
""" 1 使用 type() 来检查变量的类型 2 使用 chr() 将整数转换成对应的字符 3 使用 ord() 将字符转换成对应的整数 @author: kakakeven """ a = 100 b = 12.345 c = 1 + 5j d = 'hello,world' e = True f = 89 g = 'A' print(type(a)) # <class 'int'> print(type(b)) # <class 'float'> print(type(c)) # <class 'complex'> print(type(d)) # <class 'str'> print(type(e)) # ...
18.26087
42
0.578571
ee24c2a9d49f3cff4b34e45b6203f658950b175e
4,508
py
Python
lm_eval/tasks/winogrande.py
ucinlp/lm-evaluation-harness
52bb90e2a161dc7c5d93478406c4cfe489caf2b2
[ "MIT" ]
null
null
null
lm_eval/tasks/winogrande.py
ucinlp/lm-evaluation-harness
52bb90e2a161dc7c5d93478406c4cfe489caf2b2
[ "MIT" ]
null
null
null
lm_eval/tasks/winogrande.py
ucinlp/lm-evaluation-harness
52bb90e2a161dc7c5d93478406c4cfe489caf2b2
[ "MIT" ]
null
null
null
""" WinoGrande: An Adversarial Winograd Schema Challenge at Scale https://arxiv.org/pdf/1907.10641.pdf WinoGrande is a collection of 44k problems, inspired by Winograd Schema Challenge (Levesque, Davis, and Morgenstern 2011), but adjusted to improve the scale and robustness against the dataset-specific bias. For...
35.777778
93
0.638642
fe1b50889e4d43f5ab0c40d159002eb05521992a
1,486
py
Python
_lark/card/objects.py
ouranoshong/errbot-backend-lark
73748a9e814f01df325b89a98a84be8a0a79162a
[ "Unlicense" ]
6
2021-01-14T02:14:11.000Z
2022-02-14T12:01:43.000Z
_lark/card/objects.py
ouranoshong/errbot-backend-lark
73748a9e814f01df325b89a98a84be8a0a79162a
[ "Unlicense" ]
null
null
null
_lark/card/objects.py
ouranoshong/errbot-backend-lark
73748a9e814f01df325b89a98a84be8a0a79162a
[ "Unlicense" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- from typing import Optional class Obj: pass class TextObj(Obj): def __init__(self, tag: str, content: str, lines: Optional[int] = None): self.tag = tag self.content = content self.lines = lines class PlainTextObj(TextObj): def __in...
24.360656
78
0.606326
6898838d7991e29ed0bf607e46e1af74c1561dc7
6,991
py
Python
examples/tenant_tutorial/tenant_tutorial/settings.py
sim1234/django-tenants
a8b98c5c779214f8003dd766ab754936d0afc26c
[ "MIT" ]
514
2015-06-12T00:31:32.000Z
2020-06-08T17:49:23.000Z
examples/tenant_tutorial/tenant_tutorial/settings.py
sim1234/django-tenants
a8b98c5c779214f8003dd766ab754936d0afc26c
[ "MIT" ]
363
2015-06-12T07:04:04.000Z
2020-06-09T17:10:17.000Z
examples/tenant_tutorial/tenant_tutorial/settings.py
sim1234/django-tenants
a8b98c5c779214f8003dd766ab754936d0afc26c
[ "MIT" ]
159
2015-06-12T13:09:15.000Z
2020-06-04T00:48:35.000Z
# Django settings for tenant_tutorial project. import sys import os DEBUG = True ADMINS = ( # ('Your Name', 'your_email@example.com'), ) MANAGERS = ADMINS BASE_DIR = os.path.dirname(os.path.dirname(__file__)) PROJECT_DIR = os.path.join(BASE_DIR, os.pardir) TENANT_APPS_DIR = os.path.join(PROJECT_DIR, os.pardi...
32.821596
107
0.692176
8c6ac97ea908a28429860d5be42e2dcbe7d1b4c1
798
py
Python
blog/urls.py
wadasworths/Blog
a4ac7fa3c160f665455120dda90690560329493b
[ "Apache-2.0" ]
null
null
null
blog/urls.py
wadasworths/Blog
a4ac7fa3c160f665455120dda90690560329493b
[ "Apache-2.0" ]
1
2021-05-09T09:03:39.000Z
2021-05-09T09:03:39.000Z
blog/urls.py
wadasworths/Blog
a4ac7fa3c160f665455120dda90690560329493b
[ "Apache-2.0" ]
null
null
null
"""blog URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/2.0/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home') Class-based vi...
34.695652
77
0.703008
ad1b729bfffca1f9200a7bd1bb190ecc817b2f8b
178
py
Python
bin/iamonds/heptiamonds-stepped-obtuse-triangle.py
tiwo/puzzler
7ad3d9a792f0635f7ec59ffa85fb46b54fd77a7e
[ "Intel" ]
null
null
null
bin/iamonds/heptiamonds-stepped-obtuse-triangle.py
tiwo/puzzler
7ad3d9a792f0635f7ec59ffa85fb46b54fd77a7e
[ "Intel" ]
null
null
null
bin/iamonds/heptiamonds-stepped-obtuse-triangle.py
tiwo/puzzler
7ad3d9a792f0635f7ec59ffa85fb46b54fd77a7e
[ "Intel" ]
1
2022-01-02T16:54:14.000Z
2022-01-02T16:54:14.000Z
#!/usr/bin/env python # $Id$ """many solutions""" import puzzler from puzzler.puzzles.heptiamonds import HeptiamondsSteppedObtuseTriangle \ as puzzle puzzler.run(puzzle)
16.181818
74
0.752809
ef6fe336aed328fac8b2403dfba6b0ad6f8b6289
5,368
py
Python
simulation/src/gazebo_simulation/src/car_model/camera_specs.py
LeonardII/KitCarFork
b2802c5b08cc8250446ce3731cb622af064db4ca
[ "MIT" ]
null
null
null
simulation/src/gazebo_simulation/src/car_model/camera_specs.py
LeonardII/KitCarFork
b2802c5b08cc8250446ce3731cb622af064db4ca
[ "MIT" ]
null
null
null
simulation/src/gazebo_simulation/src/car_model/camera_specs.py
LeonardII/KitCarFork
b2802c5b08cc8250446ce3731cb622af064db4ca
[ "MIT" ]
null
null
null
import math from dataclasses import dataclass, field from functools import partial from typing import Dict import numpy as np import yaml from simulation.utils.basics.init_options import InitOptions from simulation.utils.geometry import Vector @dataclass class CameraSpecs(InitOptions): """Camera specifications ...
30.327684
92
0.604881
11542aadba2e0dbb9618c7dd8951951c8eabebc7
264
py
Python
modules/zoneconfig_gen.py
Anna-KhrystynaKhauliak18/Sitebloker
76b9eb2c2e60b0202743df7a50d0dc4ab4dbb692
[ "BSD-3-Clause" ]
null
null
null
modules/zoneconfig_gen.py
Anna-KhrystynaKhauliak18/Sitebloker
76b9eb2c2e60b0202743df7a50d0dc4ab4dbb692
[ "BSD-3-Clause" ]
null
null
null
modules/zoneconfig_gen.py
Anna-KhrystynaKhauliak18/Sitebloker
76b9eb2c2e60b0202743df7a50d0dc4ab4dbb692
[ "BSD-3-Clause" ]
null
null
null
def create_zonefile(domain, redirect_address): print(f"Started for {domain} to {redirect_address}") zone_file = open("fakedns.banlist.conf", "a+") zone_file.write(f'a {domain} {redirect_address}\n') def wipe_zonefile(file): open(file, 'w').close()
37.714286
56
0.700758
b35d74d9a1976cd66d1c7219bf69fd8583e48e08
1,462
py
Python
sdklib/util/design_pattern.py
jframos/sdklib
0cc1126e94b823fad6cc47e6a00549cad6d2f771
[ "BSD-2-Clause" ]
3
2016-12-15T15:54:37.000Z
2021-08-10T03:16:18.000Z
sdklib/util/design_pattern.py
jframos/sdklib
0cc1126e94b823fad6cc47e6a00549cad6d2f771
[ "BSD-2-Clause" ]
44
2016-04-13T08:19:45.000Z
2022-01-14T12:58:44.000Z
sdklib/util/design_pattern.py
jframos/sdklib
0cc1126e94b823fad6cc47e6a00549cad6d2f771
[ "BSD-2-Clause" ]
5
2016-11-22T11:23:28.000Z
2020-01-28T12:26:10.000Z
class Singleton: """ Based on Singleton class implementation of Paul Manta: http://stackoverflow.com/questions/31875/is-there-a-simple-elegant-way-to-define-singletons-in-python A non-thread-safe helper class to ease implementing singletons. This should be used as a decorator -- not a metaclass -...
34.809524
105
0.686047
15d99478cc19fd12f9baa7e96c7a835ae13487cf
564
py
Python
sshcon/exceptions.py
racoonx2p/sshcon
b09cfa1f8092c8013d0e06ea468e5f240276aa71
[ "MIT" ]
null
null
null
sshcon/exceptions.py
racoonx2p/sshcon
b09cfa1f8092c8013d0e06ea468e5f240276aa71
[ "MIT" ]
null
null
null
sshcon/exceptions.py
racoonx2p/sshcon
b09cfa1f8092c8013d0e06ea468e5f240276aa71
[ "MIT" ]
null
null
null
class SshConSftpError(Exception): def __init__(self, cmd, rcode): self.cmd = cmd self.rcode = rcode self.message = "Function has failed." super().__init__(self.message) def __str__(self): return f"Function:{self.cmd}, RC:{self.rcode} -> {self.message}" class...
28.2
73
0.593972
f52c9ae81ba7689e804e5861b8378b03f0fc311c
19,646
py
Python
ClassifyMembranes/train_gpu_randomforest.py
Rhoana/rhoana
b4027a57451d175ea02c2c7ef472cf9c4e1a0efc
[ "MIT" ]
26
2015-01-08T08:30:10.000Z
2021-07-08T06:21:35.000Z
ClassifyMembranes/train_gpu_randomforest.py
andudu/rhoana
b4027a57451d175ea02c2c7ef472cf9c4e1a0efc
[ "MIT" ]
null
null
null
ClassifyMembranes/train_gpu_randomforest.py
andudu/rhoana
b4027a57451d175ea02c2c7ef472cf9c4e1a0efc
[ "MIT" ]
11
2015-01-23T23:30:26.000Z
2019-02-06T21:56:33.000Z
############################################################ # GPU Implementation of Random Forest Classifier - Training # v0.1 # Seymour Knowles-Barley ############################################################ # Based on c code from: # http://code.google.com/p/randomforest-matlab/ # License: GPLv2 #################...
30.793103
125
0.670467
641da63153a61f120326328e218710bdf2a6698a
163
py
Python
test.py
bryanlincoln/gvgai-rl-models
9d1ca1ab35a911ba920c77b166b63ca6705895b4
[ "MIT" ]
1
2019-07-08T21:46:07.000Z
2019-07-08T21:46:07.000Z
test.py
bryanlincoln/gvgai-rl-models
9d1ca1ab35a911ba920c77b166b63ca6705895b4
[ "MIT" ]
null
null
null
test.py
bryanlincoln/gvgai-rl-models
9d1ca1ab35a911ba920c77b166b63ca6705895b4
[ "MIT" ]
null
null
null
from tensorboardX import SummaryWriter import numpy as np writer = SummaryWriter() r = 5 for i in range(10): writer.add_scalar('run_14h', i, i) writer.close()
20.375
38
0.736196
26987c0097c34287f77de076e91addad1a46961c
284
py
Python
cisco_config_parser/vlan_ip_netmask.py
Maliek/staging
aa94653681de2d7a4fdf910739f218226e4b0277
[ "Apache-2.0" ]
null
null
null
cisco_config_parser/vlan_ip_netmask.py
Maliek/staging
aa94653681de2d7a4fdf910739f218226e4b0277
[ "Apache-2.0" ]
null
null
null
cisco_config_parser/vlan_ip_netmask.py
Maliek/staging
aa94653681de2d7a4fdf910739f218226e4b0277
[ "Apache-2.0" ]
null
null
null
import re from ciscoconfparse import CiscoConfParse from ciscoconfparse.ccp_util import IPv4Obj parse = CiscoConfParse('config.conf', factory=True) obj = parse.find_objects(r'interface\sVlan\S+') for vlan in obj: print vlan.interface_number, vlan.ipv4_addr, vlan.ipv4_netmask
35.5
70
0.799296
df0b5fe057f307a84c36ae44524587f3c8b1a856
2,303
py
Python
setup.py
leakec/tfc
f814be4643270498a68bb0859720191ff7216012
[ "MIT" ]
15
2021-01-04T16:30:59.000Z
2022-03-26T22:12:45.000Z
setup.py
leakec/tfc
f814be4643270498a68bb0859720191ff7216012
[ "MIT" ]
3
2021-12-10T23:17:56.000Z
2022-03-12T18:39:18.000Z
setup.py
leakec/tfc
f814be4643270498a68bb0859720191ff7216012
[ "MIT" ]
2
2021-04-27T10:34:20.000Z
2022-02-25T13:02:49.000Z
from os import path import numpy from setuptools import setup, Extension, find_packages from setuptools.command.build_py import build_py as _build_py # Get long description this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README.md'), encoding='utf-8') as f: long_descripti...
31.547945
162
0.661746
093ee1ce2b53cc31dc5421637cac88b2626c803a
15,359
py
Python
util.py
MasterOdin/LogicalEquivalency
c1f4e053c4c18b8fc23a5842944bbd9ef9f37843
[ "MIT" ]
1
2018-02-02T17:11:24.000Z
2018-02-02T17:11:24.000Z
util.py
MasterOdin/LogicalEquivalency
c1f4e053c4c18b8fc23a5842944bbd9ef9f37843
[ "MIT" ]
null
null
null
util.py
MasterOdin/LogicalEquivalency
c1f4e053c4c18b8fc23a5842944bbd9ef9f37843
[ "MIT" ]
1
2019-01-16T21:11:52.000Z
2019-01-16T21:11:52.000Z
# -*- coding: utf-8 -*- from __future__ import unicode_literals from copy import deepcopy from forseti.formula import Symbol, Predicate, Not, And, Or, Iff, If from extra_formulas import GeneralizedAnd, GeneralizedOr, Contradiction, Tautology class StepTypes(object): START = 0 IFF = 1 IF = 2 NOT = 3 ...
32.334737
118
0.571782
b24474384d49762597fd1665884c2254d35327ef
4,828
py
Python
tests/test_sandbox.py
forked-group/invest-python
3398391f5bb4a52020c312855de175cfe8cdc021
[ "Apache-2.0" ]
41
2022-01-21T05:38:57.000Z
2022-03-30T03:54:41.000Z
tests/test_sandbox.py
forked-group/invest-python
3398391f5bb4a52020c312855de175cfe8cdc021
[ "Apache-2.0" ]
20
2022-01-24T05:46:02.000Z
2022-03-31T16:54:04.000Z
tests/test_sandbox.py
forked-group/invest-python
3398391f5bb4a52020c312855de175cfe8cdc021
[ "Apache-2.0" ]
15
2022-01-25T06:53:27.000Z
2022-03-30T03:49:07.000Z
# pylint: disable=redefined-outer-name,unused-variable import os from datetime import datetime import pytest from tinkoff.invest import ( Account, Client, CloseSandboxAccountResponse, MoneyValue, OperationState, OrderDirection, OrderType, ) pytestmark = pytest.mark.xfail @pytest.fixtur...
29.439024
86
0.717896
4831da6c74d4ba0674ab2832abf05d77c0d41c36
9,307
py
Python
ckanext/reclineview/plugin.py
hackhit/ckan
53b9442509b46525d653f2f705e98319752ceb2d
[ "BSD-3-Clause" ]
6
2015-11-09T00:44:51.000Z
2019-11-21T14:56:01.000Z
ckanext/reclineview/plugin.py
hackhit/ckan
53b9442509b46525d653f2f705e98319752ceb2d
[ "BSD-3-Clause" ]
39
2015-02-18T17:32:23.000Z
2022-03-11T18:03:36.000Z
ckanext/reclineview/plugin.py
hackhit/ckan
53b9442509b46525d653f2f705e98319752ceb2d
[ "BSD-3-Clause" ]
17
2015-03-13T18:05:05.000Z
2020-11-06T13:55:32.000Z
# encoding: utf-8 from logging import getLogger import six from ckan.common import json, config import ckan.plugins as p import ckan.plugins.toolkit as toolkit from ckan.plugins.toolkit import _ log = getLogger(__name__) ignore_empty = p.toolkit.get_validator('ignore_empty') natural_number_validator = p.toolkit.get...
34.857678
78
0.600946
c9d1b875a2cda834660debfae5cb02c109ad3307
2,096
py
Python
pycoki/mysql.py
uezo/pycoki
192200c0ee80cbb325114a64497f214058de9800
[ "Apache-2.0" ]
4
2018-02-12T18:59:07.000Z
2020-10-24T13:25:45.000Z
pycoki/mysql.py
uezo/pycoki
192200c0ee80cbb325114a64497f214058de9800
[ "Apache-2.0" ]
null
null
null
pycoki/mysql.py
uezo/pycoki
192200c0ee80cbb325114a64497f214058de9800
[ "Apache-2.0" ]
null
null
null
"""Pycoki MySQL implement""" from pycoki import KeyValueStore import MySQLdb from MySQLdb.cursors import DictCursor class MySQLKeyValueStore(KeyValueStore): @staticmethod def get_connection(connection_str): """Get connection by given connection string :param connection_str: Connection string ...
46.577778
198
0.650763
3b41fef6b7beb23a224e15cc0df47a5e4019a6f4
4,814
py
Python
cupy/_math/window.py
prkhrsrvstv1/cupy
ea86c8225b575af9d2855fb77a306cf86fd098ea
[ "MIT" ]
6,180
2016-11-01T14:22:30.000Z
2022-03-31T08:39:20.000Z
cupy/_math/window.py
prkhrsrvstv1/cupy
ea86c8225b575af9d2855fb77a306cf86fd098ea
[ "MIT" ]
6,281
2016-12-22T07:42:31.000Z
2022-03-31T19:57:02.000Z
cupy/_math/window.py
prkhrsrvstv1/cupy
ea86c8225b575af9d2855fb77a306cf86fd098ea
[ "MIT" ]
829
2017-02-23T05:46:12.000Z
2022-03-27T17:40:03.000Z
import numpy import cupy from cupy import _core _blackman_kernel = _core.ElementwiseKernel( "float32 alpha", "float64 out", """ out = 0.42 - 0.5 * cos(i * alpha) + 0.08 * cos(2 * alpha * i); """, name="cupy_blackman") _bartlett_kernel = _core.ElementwiseKernel( "float32 alpha", "T arr", ...
24.313131
76
0.54757
1fc14c64445854e03c096c59f0c516115e68cb70
1,062
py
Python
words.py
wnkr/pyfund
32ae9fbeddbef2626e7284bb87d5d308f2d8b935
[ "MIT" ]
null
null
null
words.py
wnkr/pyfund
32ae9fbeddbef2626e7284bb87d5d308f2d8b935
[ "MIT" ]
null
null
null
words.py
wnkr/pyfund
32ae9fbeddbef2626e7284bb87d5d308f2d8b935
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 """Retrieve and print words from a URL. Usage: python3 words.py <URL> """ import sys from urllib.request import urlopen def fetch_words(url): """Fetch a list of words from a URL. Args: url: The URL of a UTF-8 text document. Returns: A list of strings cont...
20.037736
58
0.599812
e7a08db725a138ddaf148f9f136f185ca08c6a8c
4,537
py
Python
gogamechen2/api/rpc/config.py
lolizeppelin/gogamechen2
eaa27a43671e0a14eab184e6adfb5ca150975ac6
[ "MIT" ]
null
null
null
gogamechen2/api/rpc/config.py
lolizeppelin/gogamechen2
eaa27a43671e0a14eab184e6adfb5ca150975ac6
[ "MIT" ]
null
null
null
gogamechen2/api/rpc/config.py
lolizeppelin/gogamechen2
eaa27a43671e0a14eab184e6adfb5ca150975ac6
[ "MIT" ]
null
null
null
import re import copy from simpleutil.config import cfg from gogamechen2 import common CONF = cfg.CONF REGEXUSER = re.compile('^%s$' % common.REGEXUSER) REGEXPASS = re.compile('^%s$' % common.REGEXPASS) agent_opts = [ cfg.IntOpt('agent_affinity', choices=[1, 2, 3, 4, 5, 6, 7], defa...
31.075342
105
0.610756
00c76969973fb60d81a5f425b228ee0ee02c115e
15,623
py
Python
torchrec/distributed/test_utils/test_model.py
wangkuiyi/torchrec
1318d91608f40f56fb20b2bd8cd97114e30902bf
[ "BSD-3-Clause" ]
1
2022-03-27T14:04:45.000Z
2022-03-27T14:04:45.000Z
torchrec/distributed/test_utils/test_model.py
wangkuiyi/torchrec
1318d91608f40f56fb20b2bd8cd97114e30902bf
[ "BSD-3-Clause" ]
null
null
null
torchrec/distributed/test_utils/test_model.py
wangkuiyi/torchrec
1318d91608f40f56fb20b2bd8cd97114e30902bf
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) Meta Platforms, Inc. and affiliates. # All rights reserved. # # This source code is licensed under the BSD-style license found in the # LICENSE file in the root directory of this source tree. from dataclasses import dataclass from typing import List, cast, Optional, Tuple, Any, D...
32.080082
88
0.607054
1063e4121ffe7a41d482c7d97552270f46ee1013
1,213
py
Python
proyecto/main.py
esaenz7/bigdataclass
545d7ce2e9bca9ab73c62e3d16d269a683ce5f66
[ "Apache-2.0" ]
1
2021-08-04T22:56:40.000Z
2021-08-04T22:56:40.000Z
proyecto/main.py
esaenz7/bigdataclass
545d7ce2e9bca9ab73c62e3d16d269a683ce5f66
[ "Apache-2.0" ]
null
null
null
proyecto/main.py
esaenz7/bigdataclass
545d7ce2e9bca9ab73c62e3d16d269a683ce5f66
[ "Apache-2.0" ]
null
null
null
''' Nombre de archivo: +main.py Descripción: +Archivo principal para ejecución del programa ''' #librerías from recursos import * from preprocesamiento import * #llamado a las funciones #crear_df #['/src/datasources/flights.csv', '/src/datasources/airports.csv', '/src/datasources/weather.csv'] df_list = crear_df...
36.757576
123
0.743611
3c5e3933e01da44c4aab57c6bfc51b2d75b43ff8
306
py
Python
erri/python/lesson_26/tableau_test.py
TGITS/programming-workouts
799e805ccf3fd0936ec8ac2417f7193b8e9bcb55
[ "MIT" ]
null
null
null
erri/python/lesson_26/tableau_test.py
TGITS/programming-workouts
799e805ccf3fd0936ec8ac2417f7193b8e9bcb55
[ "MIT" ]
16
2020-05-30T12:38:13.000Z
2022-02-19T09:23:31.000Z
erri/python/lesson_26/tableau_test.py
TGITS/programming-workouts
799e805ccf3fd0936ec8ac2417f7193b8e9bcb55
[ "MIT" ]
null
null
null
import tableau def test_séparation_positif_negatif(): input = [0, -1, 2, -2, 1, -3, 5, -9] t_positif = [0, 2, 1, 5] t_negatif = [-1, -2, -3, -9] r_t_positif, r_t_negatif = tableau.séparation_positif_negatif(input) assert(t_positif == r_t_positif) assert(t_negatif == r_t_negatif)
27.818182
72
0.647059
8322b2cb29a37cd9bbce965d5c02137ce76bbede
301
py
Python
identificacion_rifci/models/account_invoice.py
Chief0-0/Localizacion_ERP_V12
f59e56564e29525f772b59db7fef7c7cde347336
[ "Apache-2.0" ]
null
null
null
identificacion_rifci/models/account_invoice.py
Chief0-0/Localizacion_ERP_V12
f59e56564e29525f772b59db7fef7c7cde347336
[ "Apache-2.0" ]
null
null
null
identificacion_rifci/models/account_invoice.py
Chief0-0/Localizacion_ERP_V12
f59e56564e29525f772b59db7fef7c7cde347336
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. from odoo import api, fields, models class AccountInvoice(models.Model): _inherit = 'account.invoice' rif = fields.Char(string='rif', required=True, readonly=True, related='partner_id.vat')
27.363636
91
0.717608
76fbfe573fa4ba571c993a060e34ebefdc13a25e
7,895
py
Python
PyFlow/Core/AGraphCommon.py
pedroCabrera/PyFlow
8b439d9b47fff450e91c09d40c7b286e88cb624f
[ "MIT" ]
7
2018-06-24T15:55:00.000Z
2021-07-13T08:11:25.000Z
PyFlow/Core/AGraphCommon.py
pedroCabrera/PyFlow
8b439d9b47fff450e91c09d40c7b286e88cb624f
[ "MIT" ]
32
2019-02-18T20:47:46.000Z
2019-05-30T12:51:10.000Z
PyFlow/Core/AGraphCommon.py
pedroCabrera/PyFlow
8b439d9b47fff450e91c09d40c7b286e88cb624f
[ "MIT" ]
5
2019-02-19T23:26:21.000Z
2020-12-23T00:32:59.000Z
"""@file AGraphCommon.py **AGraphCommon.py** is a common definitions file this file is imported in almost all others files of the program """ import math import time from Settings import * import inspect from threading import Thread from functools import wraps from Queue import Queue import uuid import sys #from enum...
27.604895
153
0.665231
033558fdadda3e8eb903d0edc24aa899a32daeb2
6,034
py
Python
src/etcd/tests/unit/test_client.py
shentaosky/traswarp_etcd_client
dd58b29e1478ef6fd0db4253d75a95de7469b819
[ "MIT" ]
null
null
null
src/etcd/tests/unit/test_client.py
shentaosky/traswarp_etcd_client
dd58b29e1478ef6fd0db4253d75a95de7469b819
[ "MIT" ]
null
null
null
src/etcd/tests/unit/test_client.py
shentaosky/traswarp_etcd_client
dd58b29e1478ef6fd0db4253d75a95de7469b819
[ "MIT" ]
null
null
null
import json import unittest import urllib3 import dns.name import dns.rdtypes.IN.SRV import dns.resolver from ...common import EtcdException from ...client import Client try: import mock except ImportError: from unittest import mock class TestClientApiBase(unittest.TestCase): def setUp(self): ...
31.264249
113
0.611203
fc2a5e85db40c50446cfe6a3cd27a6c3b27b984c
993
py
Python
chapter_2/py_2_6_base_list.py
kfrime/algo-in-python
e017dd20385fd9ea2086a72698fbfcb7d706dd86
[ "MIT" ]
null
null
null
chapter_2/py_2_6_base_list.py
kfrime/algo-in-python
e017dd20385fd9ea2086a72698fbfcb7d706dd86
[ "MIT" ]
null
null
null
chapter_2/py_2_6_base_list.py
kfrime/algo-in-python
e017dd20385fd9ea2086a72698fbfcb7d706dd86
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ 2.6.列表 Python 内置数据结构 list 的性能分析 """ from __future__ import print_function import sys import os sys.path.extend([os.path.abspath('..')]) def test1(): """ 拼接运算符'+':O(n) T = O(n^2) """ l = [] for i in range(1000): l = l + [i] def test2(): """ 'app...
17.421053
57
0.557905
d50fce3896f401d2fcd35f2a8ed61e500e0ab82e
21,590
py
Python
respy/tests/test_f2py.py
boryana-ilieva/respy
c3f600eefbb54d4f34ae2cc1e52d4d32c03ba0dc
[ "MIT" ]
null
null
null
respy/tests/test_f2py.py
boryana-ilieva/respy
c3f600eefbb54d4f34ae2cc1e52d4d32c03ba0dc
[ "MIT" ]
null
null
null
respy/tests/test_f2py.py
boryana-ilieva/respy
c3f600eefbb54d4f34ae2cc1e52d4d32c03ba0dc
[ "MIT" ]
1
2020-10-31T19:40:22.000Z
2020-10-31T19:40:22.000Z
import statsmodels.api as sm from scipy.stats import norm import numpy as np import pytest import scipy import sys import os from respy.python.solve.solve_auxiliary import get_predictions from codes.auxiliary import write_interpolation_grid from codes.random_init import generate_init from respy.python.shared.shared_...
39.981481
222
0.668087
d4dba49833f589a520354744636205b52a1225da
5,355
py
Python
main.py
svram/trumpifyBot
a4012523d51728dc12726c222e31d4f043c56a3b
[ "Apache-2.0" ]
null
null
null
main.py
svram/trumpifyBot
a4012523d51728dc12726c222e31d4f043c56a3b
[ "Apache-2.0" ]
null
null
null
main.py
svram/trumpifyBot
a4012523d51728dc12726c222e31d4f043c56a3b
[ "Apache-2.0" ]
null
null
null
import StringIO import json import logging import random import urllib import urllib2 # for sending images from PIL import Image import multipart # standard app engine imports from google.appengine.api import urlfetch from google.appengine.ext import ndb import webapp2 TOKEN = '160447166:AAFcrzSaKA0vq4i1CX5scuFrZeQV...
33.679245
138
0.561531
4b706a73097fb602e86374db6f1f8071b3f30b60
2,597
py
Python
photutils/utils/tests/test_cutouts.py
nden/photutils
87879b2464ccfcd160f6a0c53ea4c0869a6e1cc2
[ "BSD-3-Clause" ]
null
null
null
photutils/utils/tests/test_cutouts.py
nden/photutils
87879b2464ccfcd160f6a0c53ea4c0869a6e1cc2
[ "BSD-3-Clause" ]
null
null
null
photutils/utils/tests/test_cutouts.py
nden/photutils
87879b2464ccfcd160f6a0c53ea4c0869a6e1cc2
[ "BSD-3-Clause" ]
null
null
null
# Licensed under a 3-clause BSD style license - see LICENSE.rst import numpy as np from numpy.testing import assert_allclose import pytest from astropy.tests.helper import catch_warnings from astropy.utils.exceptions import AstropyDeprecationWarning from ..cutouts import cutout_footprint XCS = [25.7] YCS = [26.2] ...
35.575342
77
0.576434
3a469c0bd4589feeead27185a6da0fd7459c34c2
449
py
Python
profile/migrations/0009_profile_unread.py
2014mchidamb/cs3240-f16-team18
3ed5b9572d73465b869fe027a142fa094dc158fe
[ "MIT" ]
null
null
null
profile/migrations/0009_profile_unread.py
2014mchidamb/cs3240-f16-team18
3ed5b9572d73465b869fe027a142fa094dc158fe
[ "MIT" ]
null
null
null
profile/migrations/0009_profile_unread.py
2014mchidamb/cs3240-f16-team18
3ed5b9572d73465b869fe027a142fa094dc158fe
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.10.2 on 2016-12-05 23:58 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('profile', '0008_auto_20161205_0621'), ] operations = [ migrations.AddField(...
21.380952
49
0.614699
a81e59b2b748f98b3a32f61c9524363c16297ab0
1,607
py
Python
personal_env/lib/python3.8/site-packages/astroid/brain/brain_responses.py
jestinmwilson/personal-website
6e47a7f33ed3b1ca5c1d42c89c5380d22992ed74
[ "MIT" ]
null
null
null
personal_env/lib/python3.8/site-packages/astroid/brain/brain_responses.py
jestinmwilson/personal-website
6e47a7f33ed3b1ca5c1d42c89c5380d22992ed74
[ "MIT" ]
null
null
null
personal_env/lib/python3.8/site-packages/astroid/brain/brain_responses.py
jestinmwilson/personal-website
6e47a7f33ed3b1ca5c1d42c89c5380d22992ed74
[ "MIT" ]
null
null
null
""" Astroid hooks for responses. It might need to be manually updated from the public methods of :class:`responses.RequestsMock`. See: https://github.com/getsentry/responses/blob/master/responses.py """ import astroid def responses_funcs(): return astroid.parse( """ DELETE = "DEL...
21.716216
86
0.505912
d86209053426e6bd112c41199b552b85be1474a3
2,018
py
Python
_unittests/ut_module/test_js_version.py
sdpython/jyquickhelper
b8b106ada7f8b606d4f152e186a3343b6c4ab2bb
[ "MIT" ]
3
2020-03-06T23:17:14.000Z
2021-10-16T05:51:21.000Z
_unittests/ut_module/test_js_version.py
sdpython/jyquickhelper
b8b106ada7f8b606d4f152e186a3343b6c4ab2bb
[ "MIT" ]
9
2016-12-07T10:28:01.000Z
2021-10-16T10:45:43.000Z
_unittests/ut_module/test_js_version.py
sdpython/jyquickhelper
b8b106ada7f8b606d4f152e186a3343b6c4ab2bb
[ "MIT" ]
null
null
null
""" @brief test log(time=0s) """ import os import unittest from pyquickhelper.loghelper import fLOG import jyquickhelper from jyquickhelper.js.c3 import version as vc3 from jyquickhelper.js.d3 import version as vd3 from jyquickhelper.js.eve import version as vexe from jyquickhelper.js.raphael import version as vra...
37.37037
87
0.630823
790e3c6c1d1a3772687a9a748e4a4bba53b42c2c
3,039
py
Python
tests/test_mgear/test_core/test_vector.py
tk-aria/mgear4
eac1af6882dd7dc4cec1a4b71854040d376704ce
[ "MIT" ]
72
2020-09-28T20:00:59.000Z
2022-03-25T14:35:14.000Z
tests/test_mgear/test_core/test_vector.py
Mikfr83/mgear4
2fa28080027f1004e8e0139ccf93f7ec2448b1fd
[ "MIT" ]
101
2020-09-28T19:53:53.000Z
2022-03-31T01:44:41.000Z
tests/test_mgear/test_core/test_vector.py
Mikfr83/mgear4
2fa28080027f1004e8e0139ccf93f7ec2448b1fd
[ "MIT" ]
32
2020-10-09T10:49:45.000Z
2022-03-31T08:27:37.000Z
"""mgear.core.vector test""" def test_get_distance(run_with_maya_pymel, setup_path): # Maya imports from maya import OpenMaya import pymel.core as pm # mGear imports from mgear.core.vector import get_distance v_1 = [0, 0, 0] v_2 = [1, 0, 0] assert get_distance(v_1, v_2) == 1.0 v_...
31.989474
62
0.657782
b540d70d031eff27dcd288bf32d26e31097cc751
535
py
Python
src/manage.py
pyzh/f2s.py
508bd402e10040a66b4a66f003986662f3f50f12
[ "BSD-2-Clause" ]
null
null
null
src/manage.py
pyzh/f2s.py
508bd402e10040a66b4a66f003986662f3f50f12
[ "BSD-2-Clause" ]
8
2018-11-14T21:47:04.000Z
2018-11-17T01:52:08.000Z
src/manage.py
pyzh/f2s.py
508bd402e10040a66b4a66f003986662f3f50f12
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/env python import os import sys if __name__ == '__main__': os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'f2s.settings') try: from django.core.management import execute_from_command_line except ImportError as exc: raise ImportError( "Couldn't import Django. Are you ...
33.4375
73
0.684112
47efc144ee10183a268a79481378987a037ac7f7
5,129
py
Python
prepareImageDataSetForCNN.py
siddhaling/Prepare-Image-Datasets-for-CNN
31964343815629da14b979b35eaacb12bdb9ec69
[ "MIT" ]
null
null
null
prepareImageDataSetForCNN.py
siddhaling/Prepare-Image-Datasets-for-CNN
31964343815629da14b979b35eaacb12bdb9ec69
[ "MIT" ]
null
null
null
prepareImageDataSetForCNN.py
siddhaling/Prepare-Image-Datasets-for-CNN
31964343815629da14b979b35eaacb12bdb9ec69
[ "MIT" ]
1
2020-08-30T07:34:50.000Z
2020-08-30T07:34:50.000Z
import numpy as np import os from skimage.io import imread from skimage.transform import resize from skimage.color import gray2rgb import pandas as pd from keras.utils import to_categorical #change to current directory os.chdir('') #folder containing images imFolder='images' #ground truth file grndTruthPath='groundTru...
42.741667
125
0.737181
7b72523b1593c1caea294accd73a14e602776ffb
84
py
Python
src/shoe/apps.py
edbolivar/perfectpair-django
798a88d16c6689bad2248add0e4e4958bda64545
[ "MIT" ]
null
null
null
src/shoe/apps.py
edbolivar/perfectpair-django
798a88d16c6689bad2248add0e4e4958bda64545
[ "MIT" ]
9
2019-12-04T23:15:54.000Z
2022-02-10T11:05:43.000Z
src/shoe/apps.py
edbolivar/perfectpair
c165cff40353c602fe0dc418375b90e9b25de674
[ "MIT" ]
null
null
null
from django.apps import AppConfig class ShoeConfig(AppConfig): name = 'shoe'
12
33
0.72619
95b9273543399cb8e9c998b3a424e86617c9931d
4,661
py
Python
core/settings.py
Divyanshukalola/Alchemeo
fd32b47450eb2fea9f1bdf4a2f253e5655aca1d4
[ "MIT" ]
null
null
null
core/settings.py
Divyanshukalola/Alchemeo
fd32b47450eb2fea9f1bdf4a2f253e5655aca1d4
[ "MIT" ]
null
null
null
core/settings.py
Divyanshukalola/Alchemeo
fd32b47450eb2fea9f1bdf4a2f253e5655aca1d4
[ "MIT" ]
null
null
null
# -*- encoding: utf-8 -*- """ Copyright (c) 2019 - present AppSeed.us """ import os from decouple import config from unipath import Path import dj_database_url # Build paths inside the project like this: os.path.join(BASE_DIR, ...) BASE_DIR = Path(__file__).parent CORE_DIR = os.path.dirname(os.path.dirname(os.path.ab...
25.751381
97
0.674319
ee0ef7fea0c8ce9abb39c0b84b1c9d0ea4915ea4
872
py
Python
.idea/fileTemplates/FhirBackboneElement.py
icanbwell/SparkAutoMapper.FHIR
98f368e781b46523142c7cb513c670d659a93c9b
[ "Apache-2.0" ]
1
2021-11-18T18:06:45.000Z
2021-11-18T18:06:45.000Z
.idea/fileTemplates/FhirBackboneElement.py
icanbwell/SparkAutoMapper.FHIR
98f368e781b46523142c7cb513c670d659a93c9b
[ "Apache-2.0" ]
null
null
null
.idea/fileTemplates/FhirBackboneElement.py
icanbwell/SparkAutoMapper.FHIR
98f368e781b46523142c7cb513c670d659a93c9b
[ "Apache-2.0" ]
null
null
null
from __future__ import annotations from typing import Optional from spark_auto_mapper_fhir.extensions.extension_base import ExtensionBase from spark_auto_mapper_fhir.fhir_types.id import FhirId from spark_auto_mapper_fhir.fhir_types.list import FhirList from spark_auto_mapper_fhir.backbone_elements.fhir_backbone_elemen...
41.52381
106
0.729358
d9f6085a23fb53aec8cfd1e73de8a996d0df79b3
298
py
Python
Python Codes/metaweather.py
swetarani-G/Crio-Winter-of-Doing
a2df22d0d507777f621f6b8e3a232098a3c45298
[ "Apache-2.0" ]
null
null
null
Python Codes/metaweather.py
swetarani-G/Crio-Winter-of-Doing
a2df22d0d507777f621f6b8e3a232098a3c45298
[ "Apache-2.0" ]
null
null
null
Python Codes/metaweather.py
swetarani-G/Crio-Winter-of-Doing
a2df22d0d507777f621f6b8e3a232098a3c45298
[ "Apache-2.0" ]
null
null
null
# Import a library that allows to make HTTP request import requests # Set the API endpoint url = "https://www.metaweather.com/api/location/search/?query=san" # Use the library to perform an HTTP GET request to the URL response = requests.get(url) # Print out the data print(response.text)
16.555556
66
0.744966
265c7518e6ac3dede63d581c977e9780d97257fc
826
py
Python
datawinners/dcs_web/urls.py
ICT4H/dcs-web
fb0f53fad4401cfac1c1789ff28b9d5bda40c975
[ "Apache-2.0" ]
1
2015-11-02T09:11:12.000Z
2015-11-02T09:11:12.000Z
datawinners/dcs_web/urls.py
ICT4H/dcs-web
fb0f53fad4401cfac1c1789ff28b9d5bda40c975
[ "Apache-2.0" ]
null
null
null
datawinners/dcs_web/urls.py
ICT4H/dcs-web
fb0f53fad4401cfac1c1789ff28b9d5bda40c975
[ "Apache-2.0" ]
null
null
null
from django.conf.urls.defaults import patterns, include from django.views.generic.simple import direct_to_template from datawinners.accountmanagement.forms import MinimalRegistrationForm import datawinners.settings as settings urlpatterns = patterns('', (r'^media/homepage/(?P<path>.*)$', 'django.views.static.serv...
41.3
113
0.751816
688015de30be59929c854e667b380c087d0718f5
8,596
py
Python
multibar/utils.py
Animatea/DiscordProgressbar
654807f7eddcc19b0357fb11de700e09da0379da
[ "Apache-2.0" ]
12
2021-03-16T17:01:07.000Z
2021-04-26T19:16:13.000Z
multibar/utils.py
Animatea/python-multibar
654807f7eddcc19b0357fb11de700e09da0379da
[ "Apache-2.0" ]
1
2021-09-12T21:38:40.000Z
2022-02-22T20:54:15.000Z
multibar/utils.py
Animatea/python-multibar
654807f7eddcc19b0357fb11de700e09da0379da
[ "Apache-2.0" ]
5
2021-09-10T13:30:37.000Z
2021-12-31T19:26:53.000Z
""" Copyright [2021] [DenyS] 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, software dist...
29.138983
105
0.614007
012ef39b002e5141e680b872dba96c9dce5bf3cd
1,413
py
Python
python/smallest-int.py
kirigaine/Notes-and-Programs
e3b8a60776e12c2461c5a6f388bcef76f87e6901
[ "MIT" ]
null
null
null
python/smallest-int.py
kirigaine/Notes-and-Programs
e3b8a60776e12c2461c5a6f388bcef76f87e6901
[ "MIT" ]
null
null
null
python/smallest-int.py
kirigaine/Notes-and-Programs
e3b8a60776e12c2461c5a6f388bcef76f87e6901
[ "MIT" ]
null
null
null
""" ********************************************************* * * * Project Name: Smallest Integer * * Author: github.com/kirigaine * * Description: A simple program to search an array for * * the smallest positive ...
31.4
89
0.493277
a15bfc9c40cba44530d0d028e228453c208aa376
11,074
py
Python
src/oled_monitor/rascsi_oled_monitor.py
ggr8/RASCSI
cf9a578c82160eafa79ce36b9cc27457de5fd254
[ "BSD-3-Clause" ]
3
2020-11-03T18:34:39.000Z
2022-02-07T15:41:56.000Z
src/oled_monitor/rascsi_oled_monitor.py
ggr8/RASCSI
cf9a578c82160eafa79ce36b9cc27457de5fd254
[ "BSD-3-Clause" ]
3
2021-11-13T16:22:04.000Z
2021-12-02T23:56:10.000Z
src/oled_monitor/rascsi_oled_monitor.py
ggr8/RASCSI
cf9a578c82160eafa79ce36b9cc27457de5fd254
[ "BSD-3-Clause" ]
2
2021-12-26T03:37:24.000Z
2022-02-07T04:05:56.000Z
#!/usr/bin/env python3 # # RaSCSI Updates: # Updates to output rascsi status to an OLED display # Copyright (C) 2020 Tony Kuker # Author: Tony Kuker # Developed for: # https://www.makerfocus.com/collections/oled/products/2pcs-i2c-oled-display-module-0-91-inch-i2c-ssd1306-oled-display-module-1 # # All other code...
32.380117
140
0.633285
7462d07aad95529cdc00213fb0da95c869aa1da2
5,777
py
Python
V2RaycSpider1225/BusinessCentralLayer/middleware/subscribe_io.py
kujie0121/V2RayCloudSpider
32cd65f7811374679fe09cfae2fda805d42fe7ab
[ "MIT" ]
1
2021-02-17T07:51:09.000Z
2021-02-17T07:51:09.000Z
V2RaycSpider1225/BusinessCentralLayer/middleware/subscribe_io.py
kujie0121/V2RayCloudSpider
32cd65f7811374679fe09cfae2fda805d42fe7ab
[ "MIT" ]
null
null
null
V2RaycSpider1225/BusinessCentralLayer/middleware/subscribe_io.py
kujie0121/V2RayCloudSpider
32cd65f7811374679fe09cfae2fda805d42fe7ab
[ "MIT" ]
null
null
null
__all__ = ['FlexibleDistribute', 'pop_subs_to_admin', 'detach'] import threading from uuid import uuid4 from BusinessCentralLayer.middleware.flow_io import FlowTransferStation from BusinessCentralLayer.middleware.redis_io import RedisClient from BusinessCentralLayer.middleware.work_io import Middleware from BusinessC...
32.638418
117
0.580232
860ec035d9eb6f9c61d63584dcb4f61873553fcf
3,539
py
Python
nav2_rosdevday_2021/scripts/inspection_demo.py
bolturobotics/nav2_rosdevday_2021
12d9c5bf6130f04922bccac37cb183b7c0cf8340
[ "Apache-2.0" ]
25
2021-06-02T20:58:27.000Z
2022-02-26T19:21:12.000Z
nav2_rosdevday_2021/scripts/inspection_demo.py
lyleokoth/nav2_rosdevday_2021
7ddc321dfa9552df67032bc5fa580b7178a0c086
[ "Apache-2.0" ]
7
2021-06-02T18:45:58.000Z
2021-12-11T22:51:16.000Z
nav2_rosdevday_2021/scripts/inspection_demo.py
lyleokoth/nav2_rosdevday_2021
7ddc321dfa9552df67032bc5fa580b7178a0c086
[ "Apache-2.0" ]
11
2021-06-18T01:45:38.000Z
2022-03-11T07:28:36.000Z
#! /usr/bin/env python3 # Copyright 2021 Samsung Research America # # 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 app...
34.028846
97
0.690591
7bc43bb305deeb62ff3d7532c328615321eb6459
12,199
py
Python
tests/providers/test_currency.py
tactlabs/randum
11274a52d206f9fcc2ec1a8935257d93fd83fe66
[ "MIT" ]
null
null
null
tests/providers/test_currency.py
tactlabs/randum
11274a52d206f9fcc2ec1a8935257d93fd83fe66
[ "MIT" ]
null
null
null
tests/providers/test_currency.py
tactlabs/randum
11274a52d206f9fcc2ec1a8935257d93fd83fe66
[ "MIT" ]
null
null
null
from unittest.mock import patch import pytest class TestCurrencyProvider: """Test currency provider methods""" num_samples = 100 @classmethod def setup_class(cls): from randum.providers.currency import Provider as CurrencyProvider cls.provider = CurrencyProvider cls.currencie...
30.72796
94
0.67358
77186be329fd7eb04f92df5a3e8ec073e0c1e827
248
py
Python
tests/logging_tests/views.py
MikeAmy/django
00cb9e13b4cf06ed2be27ee9e7fc18969ae69f7d
[ "PSF-2.0", "BSD-3-Clause" ]
3
2015-09-26T13:33:07.000Z
2020-03-08T07:34:38.000Z
tests/logging_tests/views.py
MikeAmy/django
00cb9e13b4cf06ed2be27ee9e7fc18969ae69f7d
[ "PSF-2.0", "BSD-3-Clause" ]
1
2021-03-24T12:21:05.000Z
2021-03-24T12:31:52.000Z
tests/logging_tests/views.py
MikeAmy/django
00cb9e13b4cf06ed2be27ee9e7fc18969ae69f7d
[ "PSF-2.0", "BSD-3-Clause" ]
15
2016-01-08T14:28:41.000Z
2019-04-19T08:33:31.000Z
from __future__ import unicode_literals from django.core.exceptions import DisallowedHost, SuspiciousOperation def suspicious(request): raise SuspiciousOperation('dubious') def suspicious_spec(request): raise DisallowedHost('dubious')
20.666667
70
0.810484
7e5f68958b871469fe6200884352ff30034c83de
3,733
py
Python
qa/rpc-tests/maxblocksinflight.py
gdcoins/gdcoin
26580ac3fc3ad6d67c51699058a5ac6bf135adb1
[ "MIT" ]
null
null
null
qa/rpc-tests/maxblocksinflight.py
gdcoins/gdcoin
26580ac3fc3ad6d67c51699058a5ac6bf135adb1
[ "MIT" ]
null
null
null
qa/rpc-tests/maxblocksinflight.py
gdcoins/gdcoin
26580ac3fc3ad6d67c51699058a5ac6bf135adb1
[ "MIT" ]
null
null
null
#!/usr/bin/env python2 # # Distributed under the MIT/X11 software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. # from test_framework.mininode import * from test_framework.test_framework import BitcoinTestFramework from test_framework.util import * import logging ...
38.484536
110
0.63086
814b43acaf52bbf0c066ff4bbdce2a0165508a2d
11,468
py
Python
python/pipeline/analyse.py
hysunflower/Serving
50d0c2900f3385b049f76b91e38cc69d8e8a102d
[ "Apache-2.0" ]
1
2021-05-30T02:17:39.000Z
2021-05-30T02:17:39.000Z
python/pipeline/analyse.py
hysunflower/Serving
50d0c2900f3385b049f76b91e38cc69d8e8a102d
[ "Apache-2.0" ]
1
2021-02-24T08:34:45.000Z
2021-02-24T08:34:45.000Z
python/pipeline/analyse.py
hysunflower/Serving
50d0c2900f3385b049f76b91e38cc69d8e8a102d
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2020 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 app...
35.286154
80
0.544908
8f367a2a6b1d09195df72f69bd703cf6d61d7d46
1,229
py
Python
python/pd/pd.py
FYPYTHON/method
94c8768b284f498dd4876ff152c355d76655f6c0
[ "Apache-2.0" ]
null
null
null
python/pd/pd.py
FYPYTHON/method
94c8768b284f498dd4876ff152c355d76655f6c0
[ "Apache-2.0" ]
null
null
null
python/pd/pd.py
FYPYTHON/method
94c8768b284f498dd4876ff152c355d76655f6c0
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 import time t1 = time.time() import pandas as pd import numpy as np import matplotlib.pyplot as plt print("import used", time.time() - t1) ts = pd.Series(np.random.randn(100), index=pd.date_range('12/12/2019', periods=100)) dates = pd.date_range('20130101', periods=6) print(dates) df = pd.DataFrame(np....
23.188679
84
0.598047
53759ff0213e3fb04358adbac9c909156986a30a
611
py
Python
ee/management/commands/migrate_clickhouse.py
avoajaugochukwu/posthog
7e7fd42b0542ebc4734aedb926df11d462e3dd4f
[ "MIT" ]
1
2021-04-26T13:28:46.000Z
2021-04-26T13:28:46.000Z
ee/management/commands/migrate_clickhouse.py
avoajaugochukwu/posthog
7e7fd42b0542ebc4734aedb926df11d462e3dd4f
[ "MIT" ]
null
null
null
ee/management/commands/migrate_clickhouse.py
avoajaugochukwu/posthog
7e7fd42b0542ebc4734aedb926df11d462e3dd4f
[ "MIT" ]
null
null
null
from django.core.management.base import BaseCommand from infi.clickhouse_orm import Database # type: ignore from posthog.settings import CLICKHOUSE_DATABASE, CLICKHOUSE_HTTP_URL, CLICKHOUSE_PASSWORD, CLICKHOUSE_USER class Command(BaseCommand): help = "Migrate clickhouse" def handle(self, *args, **options):...
32.157895
107
0.705401
bf55a289b1843433c4377659fbdaf2f98b234ceb
387
py
Python
network_links.py
schwehr/bag-py
3805a85a57d993ea12af228076eb5d8ac5b011fd
[ "Apache-2.0" ]
7
2015-03-25T01:28:47.000Z
2020-06-16T14:02:20.000Z
network_links.py
xavierherron/bag-py
3805a85a57d993ea12af228076eb5d8ac5b011fd
[ "Apache-2.0" ]
null
null
null
network_links.py
xavierherron/bag-py
3805a85a57d993ea12af228076eb5d8ac5b011fd
[ "Apache-2.0" ]
4
2015-02-08T13:31:52.000Z
2021-05-18T19:09:22.000Z
#!/usr/bin/env python import sys print '''<?xml version="1.0" encoding="utf-8"?> <kml xmlns="http://earth.google.com/kml/2.1"> <Document> <Folder> ''' for filename in sys.argv[1:]: print ''' <NetworkLink> <Link> <href>{filename}</href> </Link> </NetworkLink> '''.for...
15.48
47
0.552972
bc68b22b261794296d1e9ab38f64508856d57253
171
py
Python
mariamalia/wsgi.py
marie0901/portfolio-django-api
eeacc4f75ae7d0ecfe573d5098cc97dbc822b565
[ "MIT" ]
null
null
null
mariamalia/wsgi.py
marie0901/portfolio-django-api
eeacc4f75ae7d0ecfe573d5098cc97dbc822b565
[ "MIT" ]
null
null
null
mariamalia/wsgi.py
marie0901/portfolio-django-api
eeacc4f75ae7d0ecfe573d5098cc97dbc822b565
[ "MIT" ]
null
null
null
import os from django.core.wsgi import get_wsgi_application os.environ.setdefault("DJANGO_SETTINGS_MODULE", "mariamalia.settings") application = get_wsgi_application()
21.375
70
0.830409
e91344e9a4ce75dfd50e2469139335df15279c6a
111
py
Python
run.py
bamboo-pan/bamboo_devops_manual
5afefeb563f3817aadb6a8f70e6c8f2c0262fa2a
[ "MIT" ]
null
null
null
run.py
bamboo-pan/bamboo_devops_manual
5afefeb563f3817aadb6a8f70e6c8f2c0262fa2a
[ "MIT" ]
null
null
null
run.py
bamboo-pan/bamboo_devops_manual
5afefeb563f3817aadb6a8f70e6c8f2c0262fa2a
[ "MIT" ]
null
null
null
import os import datetime print(os.getcwd()) print("hello world") print("time") print(datetime.datetime.now())
15.857143
30
0.747748
3b077a5a3d6174f05ef6c55846144d10a44a601e
987
py
Python
3. Shared codes/Codes for detecting and tracking vehicles/Detecting and tracking vehicle (CPU version)/blobs/blob2.py
0AnonymousSite0/Data-and-Codes-for-Integrating-Computer-Vision-and-Traffic-Modelling
2b445aefebc86a88c2fc8debbdec3b727ff3e0f6
[ "MIT" ]
2
2020-12-08T11:51:25.000Z
2021-04-22T07:54:25.000Z
3. Shared codes/Codes for detecting and tracking vehicles/Detecting and tracking vehicle (CPU version)/blobs/blob2.py
0AnonymousSite0/Data-and-Codes-for-Integrating-Computer-Vision-and-Traffic-Modelling
2b445aefebc86a88c2fc8debbdec3b727ff3e0f6
[ "MIT" ]
null
null
null
3. Shared codes/Codes for detecting and tracking vehicles/Detecting and tracking vehicle (CPU version)/blobs/blob2.py
0AnonymousSite0/Data-and-Codes-for-Integrating-Computer-Vision-and-Traffic-Modelling
2b445aefebc86a88c2fc8debbdec3b727ff3e0f6
[ "MIT" ]
2
2021-04-22T07:54:29.000Z
2022-03-17T08:04:23.000Z
from blobs.utils import get_centroid, get_area class Blob: def __init__(self, _bounding_box, _type, _confidence, _tracker): self.bounding_box = _bounding_box self.type = _type self.type_confidence = _confidence self.centroid = get_centroid(_bounding_box) self.area = get_are...
41.125
90
0.696049
33c108e0d6bd0dd46a3ec8aef8ef08108513e43a
8,010
py
Python
web/conf.py
clfounta/nltk
edf0154618ac9a06ab9c4acab54fa5320d129f83
[ "Apache-2.0" ]
1
2021-05-26T01:05:55.000Z
2021-05-26T01:05:55.000Z
web/conf.py
sumitcodes1/nltk
b8e6705ebb08b5b9232d182e25129b635e9fd3f4
[ "Apache-2.0" ]
null
null
null
web/conf.py
sumitcodes1/nltk
b8e6705ebb08b5b9232d182e25129b635e9fd3f4
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # # NLTK documentation build configuration file, created by # sphinx-quickstart on Wed Nov 2 17:02:59 2011. # # This file is execfile()d with the current directory set to its containing dir. # # Note that not all possible configuration values are present in this # autogenerated file. # # All co...
32.298387
88
0.702497
3054d145d96aa0877fb49cdb40de57f9b643a79b
7,856
py
Python
docs/source/conf.py
jnothman/liac-arff
45fc0a87fe31e165fd912ed9973c5de3c345787b
[ "MIT" ]
84
2015-01-08T13:55:09.000Z
2022-02-18T20:15:47.000Z
docs/source/conf.py
jnothman/liac-arff
45fc0a87fe31e165fd912ed9973c5de3c345787b
[ "MIT" ]
84
2015-01-12T16:00:16.000Z
2021-04-26T07:10:13.000Z
docs/source/conf.py
jnothman/liac-arff
45fc0a87fe31e165fd912ed9973c5de3c345787b
[ "MIT" ]
47
2015-01-22T12:16:28.000Z
2021-11-30T04:31:50.000Z
# -*- coding: utf-8 -*- # # liac-arff documentation build configuration file, created by # sphinx-quickstart on Wed Feb 12 21:11:24 2014. # # This file is execfile()d with the current directory set to its containing dir. # # Note that not all possible configuration values are present in this # autogenerated file. # # A...
32.329218
80
0.713849
3604c05a6a2f363ddbb9709020ff86d5d7becb10
800
py
Python
newspaper/models/journalist.py
saraivaufc/jornalEletronico
d53da33c4684e1403f7e4b8943d5306e053afb02
[ "MIT" ]
null
null
null
newspaper/models/journalist.py
saraivaufc/jornalEletronico
d53da33c4684e1403f7e4b8943d5306e053afb02
[ "MIT" ]
null
null
null
newspaper/models/journalist.py
saraivaufc/jornalEletronico
d53da33c4684e1403f7e4b8943d5306e053afb02
[ "MIT" ]
null
null
null
from django.db import models from django.utils.translation import ugettext as _ from .userAuthenticated import UserAuthenticated class Journalist(UserAuthenticated): def registeringNews(self, form): form.setAuthor(self.id) if form.is_valid(): form.save() return True else: return False def deleteNew...
21.621622
50
0.69375
91b067e31bc20d93f469b149e5471b9eef5b7dcf
342
py
Python
blogs/admin.py
Dimanjan/webblog
a4a527595a4ecdaecd2763f47e91f3115ddf34db
[ "MIT" ]
null
null
null
blogs/admin.py
Dimanjan/webblog
a4a527595a4ecdaecd2763f47e91f3115ddf34db
[ "MIT" ]
1
2021-06-10T22:32:58.000Z
2021-06-10T22:32:58.000Z
blogs/admin.py
Dimanjan/webblog
a4a527595a4ecdaecd2763f47e91f3115ddf34db
[ "MIT" ]
null
null
null
from django.contrib import admin from .models import Post # Register your models here. class PostAdmin(admin.ModelAdmin): list_display = ('title', 'slug', 'status','created_on') list_filter = ("status",) search_fields = ['title', 'content'] prepopulated_fields = {'slug': ('title',)} admin.site.regi...
26.307692
59
0.690058
b656a986ec7045f9494bad95aad405668dbc64b4
2,203
py
Python
rekallpy/rekall/__init__.py
pierrerappolt/rekall
f63659c6b12c68f235bca8df11e418daa2f82995
[ "Apache-2.0" ]
58
2019-04-06T08:22:07.000Z
2021-09-24T17:06:48.000Z
rekallpy/rekall/__init__.py
pierrerappolt/rekall
f63659c6b12c68f235bca8df11e418daa2f82995
[ "Apache-2.0" ]
17
2019-03-31T18:00:57.000Z
2021-03-08T23:09:07.000Z
rekallpy/rekall/__init__.py
pierrerappolt/rekall
f63659c6b12c68f235bca8df11e418daa2f82995
[ "Apache-2.0" ]
12
2018-12-09T05:04:08.000Z
2021-01-28T05:22:18.000Z
"""Rekall is a spatiotemporal query language. It operates over sets of intervals and allows for combining and filtering on temporal and spatial predicates. This module defines classes ``Interval``, ``IntervalSet``, and ``IntervalSetMapping``. An ``Interval`` is a spatiotemporal volume defined by a bounds and a paylo...
44.959184
83
0.778484
6eba9f5fd841798e0a929771548c262347603283
3,275
py
Python
CellModeller/Signalling/NeighbourDiffusion.py
avimanyu786/CellModeller
5b26104592446348d1d3c4b4c92be12a076ea687
[ "BSD-3-Clause" ]
2
2019-09-02T08:07:59.000Z
2020-01-08T11:43:32.000Z
CellModeller/Signalling/NeighbourDiffusion.py
mbottery/CDI_cellmodeller
2248a22e8b616adddf4df8636e70693d739c4e02
[ "BSD-3-Clause" ]
null
null
null
CellModeller/Signalling/NeighbourDiffusion.py
mbottery/CDI_cellmodeller
2248a22e8b616adddf4df8636e70693d739c4e02
[ "BSD-3-Clause" ]
1
2019-05-19T04:21:41.000Z
2019-05-19T04:21:41.000Z
import numpy class NeighbourDiffusion: """Diffusion between neighbouring cells. """ biophys = None regul = None def __init__(self, simulator, nSignals, D): self.sim = simulator self.nSignals = nSignals self.diffRates = numpy.array(D) self.nCells = 0 def reset(self): """ Reset the model...
30.045872
84
0.698015
8a27c13381f77f46bbaad92dfcc3b6583ba76804
9,797
py
Python
tests/test_types.py
lars-petter-hauge/configsuite
fa566e523053d4df9574c5d5d7d4b325be21f584
[ "MIT" ]
null
null
null
tests/test_types.py
lars-petter-hauge/configsuite
fa566e523053d4df9574c5d5d7d4b325be21f584
[ "MIT" ]
null
null
null
tests/test_types.py
lars-petter-hauge/configsuite
fa566e523053d4df9574c5d5d7d4b325be21f584
[ "MIT" ]
null
null
null
"""Copyright 2018 Equinor ASA and The Netherlands Organisation for Applied Scientific Research TNO. Licensed under the MIT license. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restric...
44.73516
88
0.623048
4fb2f7b09d72614d7887e405dc5247f908b7f471
25,970
py
Python
venv/lib/python3.9/site-packages/weasyprint/svg/__init__.py
almmello/frozen
c9928491f694b56a0023926bc763c703ba1fd75a
[ "BSD-2-Clause" ]
null
null
null
venv/lib/python3.9/site-packages/weasyprint/svg/__init__.py
almmello/frozen
c9928491f694b56a0023926bc763c703ba1fd75a
[ "BSD-2-Clause" ]
null
null
null
venv/lib/python3.9/site-packages/weasyprint/svg/__init__.py
almmello/frozen
c9928491f694b56a0023926bc763c703ba1fd75a
[ "BSD-2-Clause" ]
null
null
null
""" weasyprint.svg -------------- Render SVG images. """ import re from math import cos, hypot, pi, radians, sin, sqrt from xml.etree import ElementTree from cssselect2 import ElementWrapper from .bounding_box import bounding_box, is_valid_bounding_box from .css import parse_declarations, parse_stylesh...
35.189702
79
0.558876
9e53948d75e04bc2b95dba4188bbf03eedd8273a
330
py
Python
tests/test_embedmd.py
kylepollina/embedmd
df9f0022aff299207146e13f422afdd2b66dcb83
[ "Unlicense" ]
null
null
null
tests/test_embedmd.py
kylepollina/embedmd
df9f0022aff299207146e13f422afdd2b66dcb83
[ "Unlicense" ]
null
null
null
tests/test_embedmd.py
kylepollina/embedmd
df9f0022aff299207146e13f422afdd2b66dcb83
[ "Unlicense" ]
null
null
null
import subprocess def test_embedmd(): result = subprocess.run([ 'embedmd', 'tests/test1/input.html' ], capture_output=True).stdout.decode('utf-8') assert result == '<p>Hello world!</p>\n<p><a href="https://duckduckgo.com/">Here is a link to duckduckgo</a></p>\n<pre><code>and some code\n</code></...
30
162
0.645455
9295ac028cb278ec85abb594d2599c1dcc0b3d4d
694
py
Python
google/ads/googleads/v8/services/services/income_range_view_service/__init__.py
wxxlouisa/google-ads-python
f24137966f6bfcb765a9b1fae79f2d23041825fe
[ "Apache-2.0" ]
285
2018-10-05T16:47:58.000Z
2022-03-31T00:58:39.000Z
google/ads/googleads/v8/services/services/income_range_view_service/__init__.py
wxxlouisa/google-ads-python
f24137966f6bfcb765a9b1fae79f2d23041825fe
[ "Apache-2.0" ]
425
2018-09-10T13:32:41.000Z
2022-03-31T14:50:05.000Z
google/ads/googleads/v8/services/services/income_range_view_service/__init__.py
wxxlouisa/google-ads-python
f24137966f6bfcb765a9b1fae79f2d23041825fe
[ "Apache-2.0" ]
369
2018-11-28T07:01:00.000Z
2022-03-28T09:53:22.000Z
# -*- coding: utf-8 -*- # Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or...
36.526316
74
0.759366
1a302e27e1fa1d06835c690f86b03d4b5266920b
4,272
py
Python
src/cocoa/toga_cocoa/keys.py
marian-vignau/toga
25e455a73aae9a94e4d6b26d37ce79bf00926ad7
[ "BSD-3-Clause" ]
null
null
null
src/cocoa/toga_cocoa/keys.py
marian-vignau/toga
25e455a73aae9a94e4d6b26d37ce79bf00926ad7
[ "BSD-3-Clause" ]
null
null
null
src/cocoa/toga_cocoa/keys.py
marian-vignau/toga
25e455a73aae9a94e4d6b26d37ce79bf00926ad7
[ "BSD-3-Clause" ]
null
null
null
from toga import Key from toga_cocoa.libs import ( NSEventModifierFlagCapsLock, NSEventModifierFlagShift, NSEventModifierFlagControl, NSEventModifierFlagOption, NSEventModifierFlagCommand, ) ###################################################################### # Utilities to convert Cocoa constan...
31.411765
85
0.578418
7ee1339c40e29a62f8247a3e6080086d2ad48a80
10,200
py
Python
pyeiotcloud/eiot.py
BinyaminSharet/pyeiotcloud
16639514b8705a6760cb29a697dd247d06017ad4
[ "MIT" ]
1
2022-02-06T19:15:12.000Z
2022-02-06T19:15:12.000Z
pyeiotcloud/eiot.py
BinyaminSharet/pyeiotcloud
16639514b8705a6760cb29a697dd247d06017ad4
[ "MIT" ]
null
null
null
pyeiotcloud/eiot.py
BinyaminSharet/pyeiotcloud
16639514b8705a6760cb29a697dd247d06017ad4
[ "MIT" ]
null
null
null
#!/usr/bin/env python ''' Usage: eiot.py <INSTANCE_ID> <TOKEN_FILE> Parameters: INSTANCE_ID the instance id of the user TOKEN_FILE file path to load/store token ''' import httplib import json import urllib from docopt import docopt class EIoTRequestBuilder(object): ''' Basic request bui...
36.956522
108
0.62
dd2d113a4092cc080c504284e27247a9ad2694cd
9,331
py
Python
tensorflow/python/kernel_tests/matrix_exponential_op_test.py
nkgwer/tensorflow
9cfb4b13c4639f741ec6b92e24c77d294a44c2d5
[ "Apache-2.0" ]
190,993
2015-11-09T13:17:30.000Z
2022-03-31T23:05:27.000Z
tensorflow/python/kernel_tests/matrix_exponential_op_test.py
govl-psb/tensorflow-1
60028072a1c3b4376e145b6fea8e4ccd3324377f
[ "Apache-2.0" ]
48,461
2015-11-09T14:21:11.000Z
2022-03-31T23:17:33.000Z
tensorflow/python/kernel_tests/matrix_exponential_op_test.py
govl-psb/tensorflow-1
60028072a1c3b4376e145b6fea8e4ccd3324377f
[ "Apache-2.0" ]
104,981
2015-11-09T13:40:17.000Z
2022-03-31T19:51:54.000Z
# Copyright 2017 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
35.479087
80
0.659844
bdbdc0d0e6a9101bd8775818e139a7f0c65983c7
132,051
py
Python
mrcnn/model.py
leeshienxdt/Mask_RCNN
f3e1ff01e59c6025e6a5d4a422b46e484b9970e9
[ "MIT" ]
null
null
null
mrcnn/model.py
leeshienxdt/Mask_RCNN
f3e1ff01e59c6025e6a5d4a422b46e484b9970e9
[ "MIT" ]
null
null
null
mrcnn/model.py
leeshienxdt/Mask_RCNN
f3e1ff01e59c6025e6a5d4a422b46e484b9970e9
[ "MIT" ]
null
null
null
""" Mask R-CNN The main Mask R-CNN model implementation. Copyright (c) 2017 Matterport, Inc. Licensed under the MIT License (see LICENSE for details) Written by Waleed Abdulla """ import os import random import datetime import re import math import logging from collections import OrderedDict import multiprocessing imp...
47.161071
150
0.625501
a84a7e2ac0aab39cdcf3e06d5f3ada87a9558e00
1,922
py
Python
baseClasses/MethodFusion.py
jbcnrlz/san
1eab20f83d3c7dba5607e22d1c70768905b62b12
[ "MIT" ]
null
null
null
baseClasses/MethodFusion.py
jbcnrlz/san
1eab20f83d3c7dba5607e22d1c70768905b62b12
[ "MIT" ]
null
null
null
baseClasses/MethodFusion.py
jbcnrlz/san
1eab20f83d3c7dba5607e22d1c70768905b62b12
[ "MIT" ]
null
null
null
from baseClasses.DatabaseProcessingUtility import * import numpy as np from sklearn import svm class MethodFusion: __galleries = None def getGalleries(self): return self.__galleries def setGalleries(self,value): if self.__galleries == None: self.__galleries = [value] ...
30.507937
93
0.554631
58ae8d33f1f02836d6c4277120590cf46c193558
20,466
py
Python
pony/orm/dbschema.py
liaiby/pony
6bc1fe7a32fc49668df3d1067f517b26ff5ffa4c
[ "Apache-2.0" ]
null
null
null
pony/orm/dbschema.py
liaiby/pony
6bc1fe7a32fc49668df3d1067f517b26ff5ffa4c
[ "Apache-2.0" ]
null
null
null
pony/orm/dbschema.py
liaiby/pony
6bc1fe7a32fc49668df3d1067f517b26ff5ffa4c
[ "Apache-2.0" ]
null
null
null
from __future__ import absolute_import, print_function, division from pony.py23compat import int_types from operator import attrgetter from pony.orm import core from pony.orm.core import log_sql, DBSchemaError, MappingError from pony.utils import throw class DBSchema(object): dialect = None inline_fk_syntax ...
48.612827
145
0.622447
efaad76dde3a4fe3e2a9d3f8a302e84bdd168614
1,066
py
Python
Examples/python_client/test/test_complete_stored_search__document_api.py
H21lab/5GC_build
bbc8bbd9158a2124ca486572906020a91789733e
[ "Apache-2.0" ]
12
2020-06-04T06:58:13.000Z
2021-12-15T14:26:56.000Z
Examples/python_client/test/test_complete_stored_search__document_api.py
H21lab/5GC_build
bbc8bbd9158a2124ca486572906020a91789733e
[ "Apache-2.0" ]
3
2021-05-27T12:13:58.000Z
2021-12-15T05:45:44.000Z
Examples/python_client/test/test_complete_stored_search__document_api.py
H21lab/5GC_build
bbc8bbd9158a2124ca486572906020a91789733e
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ NRF NFDiscovery Service NRF NFDiscovery Service. © 2020, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved. # noqa: E501 The version of the OpenAPI document: 1.1.0.alpha-4 Generated by: https://openapi-generator.tech """ from __future_...
26.65
145
0.747655
65aa292c3bff74b4f3ba7fa2cf9e75220e3dae4e
2,348
py
Python
consensus/poet/cli/sawtooth_poet_cli/enclave.py
ajenie/sawtooth-core
959fa7f26a67b745654225b56277f9b204fc7975
[ "Apache-2.0" ]
null
null
null
consensus/poet/cli/sawtooth_poet_cli/enclave.py
ajenie/sawtooth-core
959fa7f26a67b745654225b56277f9b204fc7975
[ "Apache-2.0" ]
null
null
null
consensus/poet/cli/sawtooth_poet_cli/enclave.py
ajenie/sawtooth-core
959fa7f26a67b745654225b56277f9b204fc7975
[ "Apache-2.0" ]
null
null
null
# Copyright 2017 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 in wri...
36.123077
80
0.673765
24f3cad77630c24185591429165053fc93de14e4
4,009
py
Python
js/a-sky-forge/src/python/parse_visible_stars_to_json.py
seemesmile/SkyForge
1afa6d444dcb33927ac955bcc922ec245ad51784
[ "MIT" ]
1
2019-06-26T22:42:42.000Z
2019-06-26T22:42:42.000Z
js/a-sky-forge/src/python/parse_visible_stars_to_json.py
seemesmile/SkyForge
1afa6d444dcb33927ac955bcc922ec245ad51784
[ "MIT" ]
null
null
null
js/a-sky-forge/src/python/parse_visible_stars_to_json.py
seemesmile/SkyForge
1afa6d444dcb33927ac955bcc922ec245ad51784
[ "MIT" ]
null
null
null
import csv, os, json, math #From https://stackoverflow.com/questions/21977786/star-b-v-color-index-to-apparent-rgb-color def bv2rgb(bv): if bv < -0.4: bv = -0.4 if bv > 2.0: bv = 2.0 if bv >= -0.40 and bv < 0.00: t = (bv + 0.40) / (0.00 + 0.40) r = 0.61 + 0.11 * t + 0.1 * t * t g = ...
34.86087
124
0.483662
f5019636b466abf1e9bcdb7355e4a358360ca2e6
2,524
py
Python
python/datadb2/core/bp/db_credentials_api.py
jiportilla/ontology
8a66bb7f76f805c64fc76cfc40ab7dfbc1146f40
[ "MIT" ]
null
null
null
python/datadb2/core/bp/db_credentials_api.py
jiportilla/ontology
8a66bb7f76f805c64fc76cfc40ab7dfbc1146f40
[ "MIT" ]
null
null
null
python/datadb2/core/bp/db_credentials_api.py
jiportilla/ontology
8a66bb7f76f805c64fc76cfc40ab7dfbc1146f40
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: UTF-8 -*- import getpass import os from base import BaseObject from base import CryptoBase class DBCredentialsAPI(BaseObject): """ Set Input Credentials """ def __init__(self, dbusername_env=None, dbpassword_env=None): """ Created: 18-July-20...
28.681818
102
0.591125
3c5d46568c0e2863f13ef39d807c1ef0efd8252c
17
py
Python
test_data/parse_retree/expected/quantifier/greedy/at_most_3/source.py
aas-core-works/aas-core-codegen
afec2cf363b6cb69816e7724a2b58626e2165869
[ "MIT" ]
5
2021-12-29T12:55:34.000Z
2022-03-01T17:57:21.000Z
test_data/parse_retree/expected/quantifier/greedy/at_most_3/source.py
aas-core-works/aas-core-codegen
afec2cf363b6cb69816e7724a2b58626e2165869
[ "MIT" ]
10
2021-12-29T02:15:55.000Z
2022-03-09T11:04:22.000Z
test_data/parse_retree/expected/quantifier/greedy/at_most_3/source.py
aas-core-works/aas-core-codegen
afec2cf363b6cb69816e7724a2b58626e2165869
[ "MIT" ]
2
2021-12-29T01:42:12.000Z
2022-02-15T13:46:33.000Z
"a{ \t, \t3 \t}"
8.5
16
0.294118
f943f655a780208921bd5ebca153108c6148d3ea
2,905
py
Python
src/run.py
alexey-tsvetkov/jigsaw-puzzle
2622e7b35c16289c2eabcfdf99e9f0cfdbd3de79
[ "MIT" ]
9
2017-10-30T05:51:10.000Z
2019-05-13T07:26:56.000Z
src/run.py
AlexeyTsvetkov/jigsaw-puzzle
2622e7b35c16289c2eabcfdf99e9f0cfdbd3de79
[ "MIT" ]
null
null
null
src/run.py
AlexeyTsvetkov/jigsaw-puzzle
2622e7b35c16289c2eabcfdf99e9f0cfdbd3de79
[ "MIT" ]
1
2019-05-13T07:27:27.000Z
2019-05-13T07:27:27.000Z
#!/usr/bin/python # -*-coding: utf-8 -*- import os import argparse from PIL import Image import measures from puzzle_generator import generate_puzzle from puzzle_solver import PuzzleSolver from helpers import read_pieces def parse_args(): parser = argparse.ArgumentParser() mode = parser.add_mutually_exclu...
42.101449
106
0.661618
d0f91ad6fa5d2ce97e1e5d21c8439b31fba69bd1
1,838
py
Python
setup.py
linhuiwzqu/clxcommunications
5f5fe593402fdb014c17fa5ef200ee9b39d42caf
[ "Apache-2.0" ]
3
2018-01-23T14:18:25.000Z
2019-02-12T07:35:37.000Z
setup.py
linhuiwzqu/clxcommunications
5f5fe593402fdb014c17fa5ef200ee9b39d42caf
[ "Apache-2.0" ]
3
2017-01-20T08:23:05.000Z
2017-01-20T10:38:10.000Z
setup.py
linhuiwzqu/clxcommunications
5f5fe593402fdb014c17fa5ef200ee9b39d42caf
[ "Apache-2.0" ]
2
2019-03-07T18:33:52.000Z
2021-06-24T01:23:03.000Z
# This setup is based on the recommendations from the # https://packaging.python.org/ documentation. from setuptools import setup, find_packages from codecs import open from os import path def read(fname): here = path.abspath(path.dirname(__file__)) return open(path.join(here, fname), encoding = 'utf-8').read...
30.131148
73
0.639282
48f2ce3effcf8c80c8ec10b79aa56a34a4ca785e
29,880
py
Python
trax/models/reformer/reformer.py
hepaajan/trax
eadbd4dba71d6536ec162ecf33786d1bdda683e1
[ "Apache-2.0" ]
null
null
null
trax/models/reformer/reformer.py
hepaajan/trax
eadbd4dba71d6536ec162ecf33786d1bdda683e1
[ "Apache-2.0" ]
null
null
null
trax/models/reformer/reformer.py
hepaajan/trax
eadbd4dba71d6536ec162ecf33786d1bdda683e1
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # Copyright 2020 The Trax Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or a...
40.597826
102
0.666064
56d086e8f2af3bcbbac02a7dd7162824739155d6
543
py
Python
setup.py
Ashaya123/angr-utils
06ac5ce4946345c0ae3d134c6d77326a982e73f6
[ "BSD-2-Clause" ]
226
2016-04-10T03:26:30.000Z
2022-03-24T14:39:26.000Z
setup.py
Ashaya123/angr-utils
06ac5ce4946345c0ae3d134c6d77326a982e73f6
[ "BSD-2-Clause" ]
33
2016-04-08T07:51:24.000Z
2022-03-13T22:42:40.000Z
setup.py
Ashaya123/angr-utils
06ac5ce4946345c0ae3d134c6d77326a982e73f6
[ "BSD-2-Clause" ]
44
2016-04-28T23:24:07.000Z
2021-12-17T02:02:39.000Z
from distutils.core import setup setup( name='angr-utils', version='0.5.0', author='Attila Axt', author_email='axt@load.hu', license='BSD', platforms=['Linux'], packages=['angrutils'], install_requires=[ 'pydot', 'networkx', 'angr', 'claripy', 'bi...
24.681818
76
0.616943
373d0a14eed3ef6c9e2dd3d2a084cb9f4ec130d4
1,247
py
Python
week07/utils.py
neolaw84/data_science_using_python_labs
15bd2445577c5e254831f2acd97ea4b93a224229
[ "Apache-2.0" ]
1
2022-03-20T12:49:43.000Z
2022-03-20T12:49:43.000Z
week07/utils.py
neolaw84/data_science_using_python_labs
15bd2445577c5e254831f2acd97ea4b93a224229
[ "Apache-2.0" ]
null
null
null
week07/utils.py
neolaw84/data_science_using_python_labs
15bd2445577c5e254831f2acd97ea4b93a224229
[ "Apache-2.0" ]
null
null
null
from io import StringIO from matplotlib.pyplot import gray from matplotlib import pyplot as plt import requests import cv2 import numpy as np from scipy import misc import pandas as pd my_data = """id, length, width height 1,10.0,10.0 9.0 2,12.0,8.0 17.5 """ readable_data = StringIO(my_data) df = pd.read_csv(readab...
24.45098
76
0.660786
960414ab23715015844adbdb2ac717f842c4eaf4
99
py
Python
hello_world.py
mojtabashirkhani/profiles-rest-api
aa890f29eea82f8b0d74621da1e0b7b5a3d699ee
[ "MIT" ]
null
null
null
hello_world.py
mojtabashirkhani/profiles-rest-api
aa890f29eea82f8b0d74621da1e0b7b5a3d699ee
[ "MIT" ]
null
null
null
hello_world.py
mojtabashirkhani/profiles-rest-api
aa890f29eea82f8b0d74621da1e0b7b5a3d699ee
[ "MIT" ]
null
null
null
def print_hello_world(): print('Hello World') # Press Ctrl+F8 to toggle the breakpoint.
11
67
0.676768