hexsha
stringlengths
40
40
size
int64
5
2.06M
ext
stringclasses
11 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
251
max_stars_repo_name
stringlengths
4
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
251
max_issues_repo_name
stringlengths
4
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
251
max_forks_repo_name
stringlengths
4
130
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
1
1.05M
avg_line_length
float64
1
1.02M
max_line_length
int64
3
1.04M
alphanum_fraction
float64
0
1
0dd32e9ca2c7ce0add00ea94a0758f176b038de9
27,038
py
Python
src/summarization/metric/rouge_metric.py
youngerous/kobart-voice-summarization
bf48edea602c0661d638f0ed6f4a35c2ced4009f
[ "Apache-2.0" ]
8
2021-05-16T05:40:29.000Z
2022-03-14T08:32:54.000Z
src/summarization/metric/rouge_metric.py
youngerous/kobart-voice-summarization
bf48edea602c0661d638f0ed6f4a35c2ced4009f
[ "Apache-2.0" ]
null
null
null
src/summarization/metric/rouge_metric.py
youngerous/kobart-voice-summarization
bf48edea602c0661d638f0ed6f4a35c2ced4009f
[ "Apache-2.0" ]
3
2021-08-09T08:06:24.000Z
2021-11-29T05:04:56.000Z
""" Ref: https://dacon.io/competitions/official/235673/talkboard/401911?page=1&dtype=recent """ import os import re import platform import itertools import collections import pkg_resources # pip install py-rouge from io import open if platform.system() == "Windows": try: from eunjeon import Mecab exc...
38.625714
97
0.492529
0dd358ad72eca9a8df86326685bf5bf8a52c322f
717
py
Python
algorithm_web/admin/contest.py
KMU-algolab/algorithm
2b734978da78b936244580ed1febe4f9f6cf1aea
[ "MIT" ]
null
null
null
algorithm_web/admin/contest.py
KMU-algolab/algorithm
2b734978da78b936244580ed1febe4f9f6cf1aea
[ "MIT" ]
10
2019-03-15T05:12:23.000Z
2020-05-06T13:05:49.000Z
algorithm_web/admin/contest.py
KMU-algolab/algorithm
2b734978da78b936244580ed1febe4f9f6cf1aea
[ "MIT" ]
null
null
null
from django.contrib import admin from .. import models
19.378378
100
0.658298
0dd372748b3a10e7f2c3a966dab7085e18c12458
3,566
py
Python
kubernetes_env/cpu_script.py
Kn99HN/tracing_env
192d41d945aa1a642250ee1415a7a9babe7d2ba5
[ "Apache-2.0" ]
null
null
null
kubernetes_env/cpu_script.py
Kn99HN/tracing_env
192d41d945aa1a642250ee1415a7a9babe7d2ba5
[ "Apache-2.0" ]
null
null
null
kubernetes_env/cpu_script.py
Kn99HN/tracing_env
192d41d945aa1a642250ee1415a7a9babe7d2ba5
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 import seaborn as sns import argparse import numpy as np import pandas as pd import matplotlib.pyplot as plt import pathlib import pathlib import kube_env import kube_util as util if __name__ == '__main__': path = pathlib.Path().absolute(...
42.963855
124
0.530006
0dd4787568192c17a9f65ae09cd6486c8711bd89
4,920
py
Python
predix/admin/cf/spaces.py
Saifinbox/predix
d4a69da0adbc503fcf5d569e91c8ebb1aeac0605
[ "BSD-3-Clause" ]
null
null
null
predix/admin/cf/spaces.py
Saifinbox/predix
d4a69da0adbc503fcf5d569e91c8ebb1aeac0605
[ "BSD-3-Clause" ]
null
null
null
predix/admin/cf/spaces.py
Saifinbox/predix
d4a69da0adbc503fcf5d569e91c8ebb1aeac0605
[ "BSD-3-Clause" ]
null
null
null
import logging import predix.admin.cf.api import predix.admin.cf.orgs import predix.admin.cf.apps import predix.admin.cf.services
28.114286
76
0.57378
0dd5ea13d1486dc2358d111b35e9609c1546878c
953
py
Python
services/traction/api/endpoints/routes/v1/tenant/admin/issuer.py
bcgov/traction
90cec4f1aebccd68eb986cb89dfae5819a07a2ee
[ "Apache-2.0" ]
12
2022-01-29T20:30:03.000Z
2022-03-29T11:46:14.000Z
services/traction/api/endpoints/routes/v1/tenant/admin/issuer.py
bcgov/traction
90cec4f1aebccd68eb986cb89dfae5819a07a2ee
[ "Apache-2.0" ]
38
2021-11-22T17:52:50.000Z
2022-03-31T17:52:00.000Z
services/traction/api/endpoints/routes/v1/tenant/admin/issuer.py
bcgov/traction
90cec4f1aebccd68eb986cb89dfae5819a07a2ee
[ "Apache-2.0" ]
9
2021-11-22T18:05:48.000Z
2022-03-29T11:25:08.000Z
import logging from fastapi import APIRouter from starlette import status from api.endpoints.dependencies.tenant_security import get_from_context from api.endpoints.models.v1.tenant import TenantGetResponse from api.services.v1 import tenant_service router = APIRouter() logger = logging.getLogger(__name__)
26.472222
84
0.757608
0dd723ba9c179cbdcdb30d82337ea92feb517a2e
1,573
py
Python
problems/sorting/quick_sort.py
colin-valentini/python-utils
7bbbf6603c050291ee56df266257a351919f5e04
[ "MIT" ]
null
null
null
problems/sorting/quick_sort.py
colin-valentini/python-utils
7bbbf6603c050291ee56df266257a351919f5e04
[ "MIT" ]
1
2021-02-27T23:35:17.000Z
2021-02-27T23:38:49.000Z
problems/sorting/quick_sort.py
colin-valentini/python
7bbbf6603c050291ee56df266257a351919f5e04
[ "MIT" ]
null
null
null
def quick_sort(array): ''' Prototypical quick sort algorithm using Python Time and Space Complexity: * Best: O(n * log(n)) time | O(log(n)) space * Avg: O(n * log(n)) time | O(log(n)) space * Worst: O(n^2) time | O(log(n)) space ''' return _quick_sort(array, 0, len(array)-1) def swap(array, i, ...
24.578125
78
0.607756
0dd777da72c858ecb1ea267bb078c8de582008a6
1,618
py
Python
learning_files/loops.py
MineJockey/python-basics
bd0370413362c69e55fc81366d8c995875f9308a
[ "MIT" ]
null
null
null
learning_files/loops.py
MineJockey/python-basics
bd0370413362c69e55fc81366d8c995875f9308a
[ "MIT" ]
null
null
null
learning_files/loops.py
MineJockey/python-basics
bd0370413362c69e55fc81366d8c995875f9308a
[ "MIT" ]
null
null
null
if __name__ == '__main__': loops()
25.68254
66
0.524722
0dd779133e9d6620bb5632b19fd63b4c804181f6
52,299
py
Python
openplaning/openplaning.py
elcf/python-openplaning
58c5db7b2c42e951138430db883759b6143f4adc
[ "MIT" ]
1
2021-12-17T00:30:40.000Z
2021-12-17T00:30:40.000Z
openplaning/openplaning.py
AltamiroAJ/python-openplaning
5dbb7ec83257173673651c098d8406c38f5c3bb8
[ "MIT" ]
1
2021-09-20T15:12:15.000Z
2021-09-21T18:02:46.000Z
openplaning/openplaning.py
AltamiroAJ/python-openplaning
5dbb7ec83257173673651c098d8406c38f5c3bb8
[ "MIT" ]
1
2021-12-17T00:30:42.000Z
2021-12-17T00:30:42.000Z
import numpy as np from scipy import interpolate, signal from scipy.special import gamma import ndmath import warnings import pkg_resources
52.561809
312
0.569533
0dd86d6751b718e9a801f6c2b5674a1aa993cf90
959
py
Python
curve2map.py
jmilou/image_utilities
92399acf045b4f839afb105b0aa513a27fb31094
[ "MIT" ]
null
null
null
curve2map.py
jmilou/image_utilities
92399acf045b4f839afb105b0aa513a27fb31094
[ "MIT" ]
null
null
null
curve2map.py
jmilou/image_utilities
92399acf045b4f839afb105b0aa513a27fb31094
[ "MIT" ]
1
2018-01-08T19:24:32.000Z
2018-01-08T19:24:32.000Z
# -*- coding: utf-8 -*- """ Created on Tue Oct 6 09:54:17 2015 @author: jmilli """ import numpy as np from scipy.interpolate import interp1d def create2dMap(values,inputRadii=None,maxRadius=None): """ This function takes a 1D radial distribution in input and builds a 2map """ nbValues=len(values) ...
29.96875
76
0.61731
0dd886d9f601d6eaa6bdabd1f28a900d852bdcec
543
py
Python
lv1/hash_marathon.py
mrbartrns/programmers-algorithm
7ecbb14c25f0cb69bec766fa4bc6b37b8cfadc47
[ "MIT" ]
null
null
null
lv1/hash_marathon.py
mrbartrns/programmers-algorithm
7ecbb14c25f0cb69bec766fa4bc6b37b8cfadc47
[ "MIT" ]
null
null
null
lv1/hash_marathon.py
mrbartrns/programmers-algorithm
7ecbb14c25f0cb69bec766fa4bc6b37b8cfadc47
[ "MIT" ]
null
null
null
part = ['marina', 'josipa', 'nikola', 'vinko', 'filipa'] comp = ['josipa', 'filipa', 'marina', 'nikola'] print(solution(part, comp))
30.166667
56
0.585635
0dd8a408a2e9a9ec0eac6d95ae185d9b08ee30c4
7,882
py
Python
chemicals/data_reader.py
daar/chemicals
df3be046055055b99ae762e7a4b852a63134fc82
[ "MIT" ]
null
null
null
chemicals/data_reader.py
daar/chemicals
df3be046055055b99ae762e7a4b852a63134fc82
[ "MIT" ]
null
null
null
chemicals/data_reader.py
daar/chemicals
df3be046055055b99ae762e7a4b852a63134fc82
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """Chemical Engineering Design Library (ChEDL). Utilities for process modeling. Copyright (C) 2020 Caleb Bell <Caleb.Andrew.Bell@gmail.com> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal ...
37.35545
94
0.657194
0dd931b7114a74c84466bdcc4e2ddf5aa167ed20
4,604
py
Python
official/utils/misc/keras_utils.py
baranshad/models
aaf008855e9764f32d974e86f8e1f9cfddfafd9a
[ "Apache-2.0" ]
180
2018-09-20T07:27:40.000Z
2022-03-19T07:55:42.000Z
official/utils/misc/keras_utils.py
baranshad/models
aaf008855e9764f32d974e86f8e1f9cfddfafd9a
[ "Apache-2.0" ]
80
2018-09-26T18:55:56.000Z
2022-02-10T02:03:26.000Z
official/utils/misc/keras_utils.py
baranshad/models
aaf008855e9764f32d974e86f8e1f9cfddfafd9a
[ "Apache-2.0" ]
72
2018-08-30T00:49:15.000Z
2022-02-15T23:22:40.000Z
# 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...
35.145038
80
0.701347
0ddaf186f436077344b9ec71e5a8e4c734247389
2,102
py
Python
saleor/app/management/commands/install_app.py
greentornado/saleor
7f58917957a23c4dd90b47214a4500c91c735dee
[ "CC-BY-4.0" ]
3
2021-06-22T12:38:18.000Z
2021-07-11T15:01:57.000Z
saleor/app/management/commands/install_app.py
greentornado/saleor
7f58917957a23c4dd90b47214a4500c91c735dee
[ "CC-BY-4.0" ]
111
2021-07-19T04:19:30.000Z
2022-03-28T04:32:37.000Z
saleor/app/management/commands/install_app.py
aminziadna/saleor
2e78fb5bcf8b83a6278af02551a104cfa555a1fb
[ "CC-BY-4.0" ]
6
2021-11-08T16:43:05.000Z
2022-03-22T17:31:16.000Z
import json from typing import Any, Optional import requests from django.core.exceptions import ValidationError from django.core.management import BaseCommand, CommandError from django.core.management.base import CommandParser from ....app.validators import AppURLValidator from ....core import JobStatus from ...insta...
33.365079
84
0.670314
0ddb425d77d3e2f51449abccb667b4f56a4ea4c5
7,290
py
Python
google-cloud-sdk/.install/.backup/lib/googlecloudsdk/api_lib/sql/operations.py
KaranToor/MA450
c98b58aeb0994e011df960163541e9379ae7ea06
[ "Apache-2.0" ]
1
2017-11-29T18:52:27.000Z
2017-11-29T18:52:27.000Z
google-cloud-sdk/.install/.backup/lib/googlecloudsdk/api_lib/sql/operations.py
KaranToor/MA450
c98b58aeb0994e011df960163541e9379ae7ea06
[ "Apache-2.0" ]
null
null
null
google-cloud-sdk/.install/.backup/lib/googlecloudsdk/api_lib/sql/operations.py
KaranToor/MA450
c98b58aeb0994e011df960163541e9379ae7ea06
[ "Apache-2.0" ]
1
2020-07-25T12:09:01.000Z
2020-07-25T12:09:01.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...
40.276243
84
0.705898
0ddb5907cfb4e23bc38acc79b824cb21a1af696d
1,171
py
Python
objectDetection/detect_images.py
pklink/python-opencv
b1bb82f1e3eccc8e5dcba9e5b595e5976435bdbe
[ "Apache-2.0" ]
1
2022-01-19T14:01:09.000Z
2022-01-19T14:01:09.000Z
objectDetection/detect_images.py
pklink/python-opencv
b1bb82f1e3eccc8e5dcba9e5b595e5976435bdbe
[ "Apache-2.0" ]
1
2019-10-28T08:33:59.000Z
2019-10-28T08:33:59.000Z
objectDetection/detect_images.py
pklink/python-opencv
b1bb82f1e3eccc8e5dcba9e5b595e5976435bdbe
[ "Apache-2.0" ]
1
2019-10-28T08:26:38.000Z
2019-10-28T08:26:38.000Z
import argparse import glob import os, shutil import cv2 from YoloObjectDetector import YoloObjectDetector parser = argparse.ArgumentParser(description="Detect Objects in all images in the given folder.") parser.add_argument("-s", "--size", dest="size", default="320", type=str, help="Spatial Size (tiny, 320, 416, 60...
30.815789
130
0.693424
0ddc0bef32477eced0900bb0111e6a1dbf4f7271
186
py
Python
countries/api/urls.py
isidaruk/eurovision_project
976743e66a2fed17c0513f17a9a7d35850e9cde5
[ "MIT" ]
null
null
null
countries/api/urls.py
isidaruk/eurovision_project
976743e66a2fed17c0513f17a9a7d35850e9cde5
[ "MIT" ]
8
2020-02-12T00:23:27.000Z
2022-03-08T21:10:13.000Z
countries/api/urls.py
isidaruk/eurovision_project
976743e66a2fed17c0513f17a9a7d35850e9cde5
[ "MIT" ]
null
null
null
from rest_framework.routers import DefaultRouter from countries.api.views import CountryViewSet router = DefaultRouter() router.register('', CountryViewSet) urlpatterns = router.urls
20.666667
48
0.822581
0ddf3f1c726adc70203174632e31094c4c2d0306
232
py
Python
square/main.py
vishwamshuklaRazorpay/vishwam_test
b0925429385005dac37d92938b7daf6245d636c8
[ "MIT" ]
null
null
null
square/main.py
vishwamshuklaRazorpay/vishwam_test
b0925429385005dac37d92938b7daf6245d636c8
[ "MIT" ]
null
null
null
square/main.py
vishwamshuklaRazorpay/vishwam_test
b0925429385005dac37d92938b7daf6245d636c8
[ "MIT" ]
null
null
null
# Press the green button in the gutter to run the script. if __name__ == '__main__': main()
25.777778
74
0.659483
0ddfe1e0014be1bb17e25a898cf24f24861860f8
1,869
py
Python
src/GoTurnRemix.py
aakaashjois/Plant-Tracer
d56c8021665f419e08dddb1ac88d3a719b2c787a
[ "Apache-2.0" ]
null
null
null
src/GoTurnRemix.py
aakaashjois/Plant-Tracer
d56c8021665f419e08dddb1ac88d3a719b2c787a
[ "Apache-2.0" ]
1
2022-02-05T09:35:32.000Z
2022-02-05T09:35:32.000Z
src/GoTurnRemix.py
aakaashjois/Plant-Tracer
d56c8021665f419e08dddb1ac88d3a719b2c787a
[ "Apache-2.0" ]
2
2019-07-28T11:10:31.000Z
2021-05-19T02:27:39.000Z
import torch from torchvision import models from torch import nn
40.630435
114
0.612627
0de4d985008ec5f2946451370dc2a3228dbe91c7
609
py
Python
python/examples/provenance/index_svc/buildrandom.py
xkortex/medifor
2e715256ab170208255c935d1ae8e844ade27574
[ "Apache-2.0" ]
9
2019-09-16T20:37:37.000Z
2021-07-26T05:04:36.000Z
python/examples/provenance/index_svc/buildrandom.py
xkortex/medifor
2e715256ab170208255c935d1ae8e844ade27574
[ "Apache-2.0" ]
19
2019-10-28T22:18:56.000Z
2022-03-12T00:08:34.000Z
python/examples/provenance/index_svc/buildrandom.py
xkortex/medifor-lite
4567e16f59930417506e784e94f3fedb4afcc0c3
[ "Apache-2.0" ]
11
2019-08-02T18:56:43.000Z
2021-04-05T20:32:55.000Z
#!/usr/bin/env python3 import faiss import numpy as np if __name__ == '__main__': import argparse a = argparse.ArgumentParser() a.add_argument('outfile', type=str, help='output file') args = a.parse_args() main(args.outfile)
18.454545
59
0.627258
0de5d6a47d80b154cdbdae53819a355507f08a2e
800
py
Python
class3/exercises/exercise1.py
twin-bridges/netmiko_course
31943e4f6f66dbfe523d62d5a2f03285802a8c56
[ "Apache-2.0" ]
11
2020-09-16T06:53:16.000Z
2021-08-24T21:27:37.000Z
class3/exercises/exercise1.py
twin-bridges/netmiko_course
31943e4f6f66dbfe523d62d5a2f03285802a8c56
[ "Apache-2.0" ]
null
null
null
class3/exercises/exercise1.py
twin-bridges/netmiko_course
31943e4f6f66dbfe523d62d5a2f03285802a8c56
[ "Apache-2.0" ]
5
2020-10-18T20:25:59.000Z
2021-10-20T16:27:00.000Z
import os from getpass import getpass from pprint import pprint from netmiko import ConnectHandler # Code so automated tests will run properly password = os.getenv("NETMIKO_PASSWORD") if os.getenv("NETMIKO_PASSWORD") else getpass() arista1 = { "device_type": "arista_eos", "host": "arista1.lasthop.io", "us...
25.806452
88
0.6425
0de6a3bbc2e8361502ee097dee7d73b1ea8c48de
2,891
py
Python
invenio_records_rest/loaders/marshmallow.py
Glignos/invenio-records-rest
4020d9e8c8e21e7c760fa14f9c634636ef6fda38
[ "MIT" ]
null
null
null
invenio_records_rest/loaders/marshmallow.py
Glignos/invenio-records-rest
4020d9e8c8e21e7c760fa14f9c634636ef6fda38
[ "MIT" ]
null
null
null
invenio_records_rest/loaders/marshmallow.py
Glignos/invenio-records-rest
4020d9e8c8e21e7c760fa14f9c634636ef6fda38
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # # This file is part of Invenio. # Copyright (C) 2016-2018 CERN. # # Invenio is free software; you can redistribute it and/or modify it # under the terms of the MIT License; see LICENSE file for more details. """Marshmallow loader for record deserialization. Use marshmallow schema to transfor...
27.798077
77
0.64303
0de9893144b5910f320fefedfcebe7eebec65b42
475
py
Python
app/controllers/user.py
souravlahoti/GithubAction
6cda8f4ab022f78df7539b32571c1406f8943ad5
[ "MIT" ]
null
null
null
app/controllers/user.py
souravlahoti/GithubAction
6cda8f4ab022f78df7539b32571c1406f8943ad5
[ "MIT" ]
null
null
null
app/controllers/user.py
souravlahoti/GithubAction
6cda8f4ab022f78df7539b32571c1406f8943ad5
[ "MIT" ]
null
null
null
from flask import jsonify from flask_restful import Resource
16.964286
70
0.572632
0dea7700259f79cf79e451f3837519f4601762ad
2,079
py
Python
src/data_augmentation.py
AnweshCR7/autonomous_greenhouse
a29cfe37d0152001d2544216ed65c3472f572b4e
[ "MIT" ]
1
2021-08-09T14:59:16.000Z
2021-08-09T14:59:16.000Z
src/data_augmentation.py
AnweshCR7/autonomous_greenhouse
a29cfe37d0152001d2544216ed65c3472f572b4e
[ "MIT" ]
null
null
null
src/data_augmentation.py
AnweshCR7/autonomous_greenhouse
a29cfe37d0152001d2544216ed65c3472f572b4e
[ "MIT" ]
null
null
null
import os import cv2 import glob import random import numpy as np import matplotlib.pyplot as plt if __name__ == '__main__': dataset_dir = "../data/FirstTrainingData_AUG" augmentations = ["horizontal_flip"] # expect to increase the dataset 4x augment(dataset_dir, augmentations, save_copy=False)
30.573529
82
0.622896
0deb0c0b3259efb2f490fa173e3f279fb4d413e1
703
py
Python
hashmap-left-join/hashmap_left_join/left_join.py
Sewar-web/data-structures-and-algorithms1
d94f706fb3a30c114bd08a6c2d9b7ed269bc9a21
[ "MIT" ]
null
null
null
hashmap-left-join/hashmap_left_join/left_join.py
Sewar-web/data-structures-and-algorithms1
d94f706fb3a30c114bd08a6c2d9b7ed269bc9a21
[ "MIT" ]
null
null
null
hashmap-left-join/hashmap_left_join/left_join.py
Sewar-web/data-structures-and-algorithms1
d94f706fb3a30c114bd08a6c2d9b7ed269bc9a21
[ "MIT" ]
1
2021-06-26T09:19:43.000Z
2021-06-26T09:19:43.000Z
import os if __name__ == "__main__": hash = { 'fond':'enamored', 'wrath':'anger', 'diligent':'employed', 'outfit':'garb', 'guide':'usher' } hash1 = { 'fond':'averse', 'wrath':'delight', 'diligent':'idle', 'guide':'follow'...
17.146341
61
0.439545
0deb37fe04b5be7b019c80d0f79badcb0721fecc
2,583
py
Python
datable/web/columns.py
ofirr/dojango-datable
c4d27c23d66c023062270a31f05e21d0982e0b43
[ "MIT" ]
null
null
null
datable/web/columns.py
ofirr/dojango-datable
c4d27c23d66c023062270a31f05e21d0982e0b43
[ "MIT" ]
null
null
null
datable/web/columns.py
ofirr/dojango-datable
c4d27c23d66c023062270a31f05e21d0982e0b43
[ "MIT" ]
null
null
null
# /usr/bin/env python # -*- encoding: utf-8 -*- from django.utils.text import capfirst from django.utils.translation import ugettext as _ from datable.core.serializers import BooleanSerializer from datable.core.serializers import DateSerializer from datable.core.serializers import DateTimeSerializer from datable.core...
23.697248
70
0.663957
0deb6190172a042c803576352b9c214cd3809bff
1,233
py
Python
maskrcnn_benchmark/modeling/roi_heads/car_cls_rot_head/roi_car_cls_rot_predictor.py
witwitchayakarn/6DVNET
f13b35162ad90fa49d777f3a41383e9d34eb4820
[ "MIT" ]
null
null
null
maskrcnn_benchmark/modeling/roi_heads/car_cls_rot_head/roi_car_cls_rot_predictor.py
witwitchayakarn/6DVNET
f13b35162ad90fa49d777f3a41383e9d34eb4820
[ "MIT" ]
null
null
null
maskrcnn_benchmark/modeling/roi_heads/car_cls_rot_head/roi_car_cls_rot_predictor.py
witwitchayakarn/6DVNET
f13b35162ad90fa49d777f3a41383e9d34eb4820
[ "MIT" ]
null
null
null
from torch import nn import torch.nn.functional as F _ROI_CAR_CLS_ROT_PREDICTOR = {"FPNPredictor": FPNPredictor}
32.447368
79
0.696675
0decb58388efdb35753edb1a250f99a3c2fcefa4
771
py
Python
coderdojochi/migrations/0021_auto_20180815_1757.py
rgroves/weallcode-website
ead60d3272dbbfe610b2d500978d1de44aef6386
[ "MIT" ]
15
2019-05-04T00:24:00.000Z
2021-08-21T16:34:05.000Z
coderdojochi/migrations/0021_auto_20180815_1757.py
rgroves/weallcode-website
ead60d3272dbbfe610b2d500978d1de44aef6386
[ "MIT" ]
73
2019-04-24T15:53:42.000Z
2021-08-06T20:41:41.000Z
coderdojochi/migrations/0021_auto_20180815_1757.py
rgroves/weallcode-website
ead60d3272dbbfe610b2d500978d1de44aef6386
[ "MIT" ]
20
2019-04-26T20:13:08.000Z
2021-06-21T14:53:21.000Z
# Generated by Django 2.0.6 on 2018-08-15 22:57 from django.db import migrations, models
26.586207
74
0.581064
0def13794ee3ca070ffd095ffc65ba6c515362be
350
py
Python
archives/build_wget.py
onai/code-ecosystem-analyzer
964d1ef5ec4d8f774c52aa2718663bb455d62ecb
[ "Apache-2.0" ]
null
null
null
archives/build_wget.py
onai/code-ecosystem-analyzer
964d1ef5ec4d8f774c52aa2718663bb455d62ecb
[ "Apache-2.0" ]
null
null
null
archives/build_wget.py
onai/code-ecosystem-analyzer
964d1ef5ec4d8f774c52aa2718663bb455d62ecb
[ "Apache-2.0" ]
null
null
null
import sys with open(sys.argv[1]) as handle: for new_line in handle: dest = new_line.split('/')[4] + '_' + new_line.split('/')[5] + '.zip' #print('curl -Ls -I -o /dev/null -w \'%{url_effective}\\n\' ' + new_line.strip()) print('curl -L --user ' + sys.argv[2] + ':' + sys.argv[3] + ' ' + new_...
43.75
107
0.525714
0df3e3502236c625d081f0f74dbbd4aea76a92c9
630
py
Python
authors/apps/followers/models.py
andela/ah-code-titans
4f1fc77c2ecdf8ca15c24327d39fe661eac85785
[ "BSD-3-Clause" ]
null
null
null
authors/apps/followers/models.py
andela/ah-code-titans
4f1fc77c2ecdf8ca15c24327d39fe661eac85785
[ "BSD-3-Clause" ]
20
2018-11-26T16:22:46.000Z
2018-12-21T10:08:25.000Z
authors/apps/followers/models.py
andela/ah-code-titans
4f1fc77c2ecdf8ca15c24327d39fe661eac85785
[ "BSD-3-Clause" ]
3
2019-01-24T15:39:42.000Z
2019-09-25T17:57:08.000Z
from django.db import models from ..authentication.models import User
30
89
0.696825
0df56e29aeb7cee2f088a3c93b1f67587665424d
477
py
Python
dbt/adapters/doris/__init__.py
qiulin/dbt-doris
4786532ed288b32a729675a4dd01b6e4da993c60
[ "Apache-2.0" ]
2
2022-02-06T02:15:33.000Z
2022-02-22T03:58:53.000Z
dbt/adapters/doris/__init__.py
qiulin/dbt-doris
4786532ed288b32a729675a4dd01b6e4da993c60
[ "Apache-2.0" ]
null
null
null
dbt/adapters/doris/__init__.py
qiulin/dbt-doris
4786532ed288b32a729675a4dd01b6e4da993c60
[ "Apache-2.0" ]
null
null
null
from dbt.adapters.doris.connections import DorisConnectionManager from dbt.adapters.doris.connections import DorisCredentials from dbt.adapters.doris.relation import DorisRelation from dbt.adapters.doris.column import DorisColumn from dbt.adapters.doris.impl import DorisAdapter from dbt.adapters.base import AdapterPlu...
31.8
65
0.840671
0df7ced38cda902e631d021c1255e468e0aeb410
750
py
Python
revelation/core/urls.py
Federico-Comesana/revelatte
ccd50831dcdec8bc4a7e83b062d0309f6e4feee2
[ "MIT" ]
null
null
null
revelation/core/urls.py
Federico-Comesana/revelatte
ccd50831dcdec8bc4a7e83b062d0309f6e4feee2
[ "MIT" ]
null
null
null
revelation/core/urls.py
Federico-Comesana/revelatte
ccd50831dcdec8bc4a7e83b062d0309f6e4feee2
[ "MIT" ]
null
null
null
from django.contrib.auth.decorators import login_required from django.conf.urls import url import views urlpatterns = [ url(r'public/$', views.RevelationModelListView.as_view(), name='revelation-list'), url(r'u/(?P<pk>\d+)/$', views.UserProfileView.as_view(), name='user-view')...
24.193548
66
0.617333
0df83b2e848cfa6dd57435a1970875947775c426
6,395
py
Python
pycarddav/controllers.py
mathstuf/pycarddav
8bfdbef79c11ed9b14304773d26b1542d16ef2b2
[ "MIT" ]
null
null
null
pycarddav/controllers.py
mathstuf/pycarddav
8bfdbef79c11ed9b14304773d26b1542d16ef2b2
[ "MIT" ]
null
null
null
pycarddav/controllers.py
mathstuf/pycarddav
8bfdbef79c11ed9b14304773d26b1542d16ef2b2
[ "MIT" ]
null
null
null
#!/usr/bin/env python # coding: utf-8 # vim: set ts=4 sw=4 expandtab sts=4: # Copyright (c) 2011-2013 Christian Geier & contributors # # 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 ...
36.542857
83
0.640813
0dfaaf84879c7de397b353788d87c5237fcb9080
2,483
py
Python
_test_request.py
arshadkazmi42/crul
7b0b7674afaf4d8c75d961612f6813e97a7d7008
[ "MIT" ]
6
2021-05-18T13:47:55.000Z
2021-12-16T18:18:41.000Z
_test_request.py
arshadkazmi42/crul
7b0b7674afaf4d8c75d961612f6813e97a7d7008
[ "MIT" ]
null
null
null
_test_request.py
arshadkazmi42/crul
7b0b7674afaf4d8c75d961612f6813e97a7d7008
[ "MIT" ]
2
2022-01-05T04:56:46.000Z
2022-01-12T05:10:57.000Z
import unittest from unittest.mock import Mock, patch from request import Request RESPONSE = { "status": "success", "message": "Processed" } mock_response = Response() if __name__ == '__main__': unittest.main()
26.136842
102
0.662908
216e58dc7513012f69f864fede95e2d9e5c499dc
470
py
Python
kirbytoolkit/tests/test_jackknife.py
matthewkirby/kirby_toolkit
37968dfd05d628694f3c52a23a15641aa8eee5ff
[ "MIT" ]
null
null
null
kirbytoolkit/tests/test_jackknife.py
matthewkirby/kirby_toolkit
37968dfd05d628694f3c52a23a15641aa8eee5ff
[ "MIT" ]
null
null
null
kirbytoolkit/tests/test_jackknife.py
matthewkirby/kirby_toolkit
37968dfd05d628694f3c52a23a15641aa8eee5ff
[ "MIT" ]
null
null
null
import numpy as np import kirbytoolkit as ktk
27.647059
69
0.717021
216ebd24f2457cf9469911c06b29cd3b21471003
530
py
Python
demo-001.py
zhouyuanmin/MyCode
dbc7df8dc5eba419340ef9aafed75af24f883381
[ "MIT" ]
1
2021-01-22T03:15:29.000Z
2021-01-22T03:15:29.000Z
demo-001.py
zhouyuanmin/MyCode
dbc7df8dc5eba419340ef9aafed75af24f883381
[ "MIT" ]
null
null
null
demo-001.py
zhouyuanmin/MyCode
dbc7df8dc5eba419340ef9aafed75af24f883381
[ "MIT" ]
null
null
null
""" """ import functools if __name__ == '__main__': for i in range(20): demo(i, i ** 2)
17.096774
62
0.558491
216ee6cd0a2a320e0ac816601363649bae571b45
1,691
py
Python
test/tests/set.py
jvkersch/pyston
2c7e7a5e0ed7a0a8b4528919f855fa8336b43902
[ "BSD-2-Clause", "Apache-2.0" ]
null
null
null
test/tests/set.py
jvkersch/pyston
2c7e7a5e0ed7a0a8b4528919f855fa8336b43902
[ "BSD-2-Clause", "Apache-2.0" ]
null
null
null
test/tests/set.py
jvkersch/pyston
2c7e7a5e0ed7a0a8b4528919f855fa8336b43902
[ "BSD-2-Clause", "Apache-2.0" ]
null
null
null
s1 = {1} s1 = set() | set(range(3)) print sorted(s1) s2 = set(range(1, 5)) print sorted(s2) print repr(sorted(s1)), str(sorted(s1)) print sorted(s1 - s2) print sorted(s2 - s1) print sorted(s1 ^ s2) print sorted(s1 & s2) print sorted(s1 | s2) print len(set(range(5))) s = set(range(5)) print sorted(s) s.add(3) print...
15.234234
78
0.608516
216f4275a182a3efa14efecfb81fc95c79e95c84
2,720
py
Python
scripts/gen_train_test.py
wesleylp/CPE775
3df3c053e9d6da83035c8f2620c3951f7ff94975
[ "MIT" ]
13
2017-11-23T12:23:50.000Z
2020-12-27T10:36:08.000Z
scripts/gen_train_test.py
wesleylp/CPE775
3df3c053e9d6da83035c8f2620c3951f7ff94975
[ "MIT" ]
1
2018-04-19T02:16:34.000Z
2018-04-19T13:37:23.000Z
scripts/gen_train_test.py
wesleylp/CPE775
3df3c053e9d6da83035c8f2620c3951f7ff94975
[ "MIT" ]
3
2018-11-15T00:01:09.000Z
2021-05-11T06:27:46.000Z
import os import argparse import glob import pandas as pd from cpe775 import utils if __name__ == '__main__': parser = argparse.ArgumentParser() parser.add_argument('data_dir', metavar='DIR') parser.add_argument('--out-dir', metavar='DIR') args = parser.parse_args() # Output to the data dir fil...
44.590164
119
0.715074
21704be6a53209ee30b09ce10c3956a6c5b8c8ba
1,395
py
Python
plot.py
corollari/gradient-descent
089905ab0f4de2c360cfef4fa4957e9c181f27c3
[ "Unlicense" ]
1
2019-03-06T19:43:25.000Z
2019-03-06T19:43:25.000Z
plot.py
corollari/gradient-descent
089905ab0f4de2c360cfef4fa4957e9c181f27c3
[ "Unlicense" ]
null
null
null
plot.py
corollari/gradient-descent
089905ab0f4de2c360cfef4fa4957e9c181f27c3
[ "Unlicense" ]
null
null
null
import matplotlib import numpy as np import matplotlib.cm as cm import matplotlib.pyplot as plt import random from sympy import symbols, diff, N delta = 0.025 x = np.arange(-3.0, 3.0, delta) y = np.arange(-2.0, 2.0, delta) X, Y = np.meshgrid(x, y) Z1 = np.exp(-X**2 - Y**2) Z2 = np.exp(-(X - 1)**2 - (Y - 1)**2) Z = fun...
31.704545
122
0.5319
2170971213155f1239bf003e5ae24a6a445bc252
639
py
Python
src/app.py
reinzor/selfieboot2016
967a5cb429ae98293e2f0e8d99da2c8edf4e72c0
[ "MIT" ]
null
null
null
src/app.py
reinzor/selfieboot2016
967a5cb429ae98293e2f0e8d99da2c8edf4e72c0
[ "MIT" ]
null
null
null
src/app.py
reinzor/selfieboot2016
967a5cb429ae98293e2f0e8d99da2c8edf4e72c0
[ "MIT" ]
null
null
null
''' Selfiebooth Baas van Horst aan de Maas 2016 - CameraPuzzle =========================== This demonstrates using Scatter widgets with a live camera. You should see a shuffled grid of rectangles that make up the camera feed. You can drag the squares around to see the unscrambled camera feed or double click to scrambl...
23.666667
61
0.697966
217147b682f00559525d500ab3019c807cac7a67
521
py
Python
deploy/test.py
zhxiaohe/starwars_api
f1b729e819eb19e5eb59630bed56b13127eb1ef2
[ "MIT" ]
null
null
null
deploy/test.py
zhxiaohe/starwars_api
f1b729e819eb19e5eb59630bed56b13127eb1ef2
[ "MIT" ]
null
null
null
deploy/test.py
zhxiaohe/starwars_api
f1b729e819eb19e5eb59630bed56b13127eb1ef2
[ "MIT" ]
null
null
null
#coding=utf-8 import requests,json headers = {'X-Rundeck-Auth-Token': '2EcW3xe0urFLrilqUOGCVYLXSbdByk2e','Accept': 'application/json'} headers['Content-type']='application/json' rundeck_host= 'http://10.1.16.26:4440' url = rundeck_host+'/api/16/project/fengyang/run/command' data={ 'project':'fengyang', 'exec...
23.681818
99
0.712092
21716b55e61aaab71c09221c686d96dab513e84d
2,984
py
Python
app/models/payments.py
StartFuture/workstation-backend
3b88946a3a7e2c9449de938d008a665fc4a17d34
[ "MIT" ]
1
2022-03-20T23:55:34.000Z
2022-03-20T23:55:34.000Z
app/models/payments.py
StartFuture/workstation-backend
3b88946a3a7e2c9449de938d008a665fc4a17d34
[ "MIT" ]
1
2022-03-10T19:26:53.000Z
2022-03-10T19:26:53.000Z
app/models/payments.py
StartFuture/workstation-backend
3b88946a3a7e2c9449de938d008a665fc4a17d34
[ "MIT" ]
1
2022-03-08T21:40:51.000Z
2022-03-08T21:40:51.000Z
import re from flask_restful import Resource, reqparse acceptedCreditCards = { "visa": r"/^4[0-9]{12}(?:[0-9]{3})?$/", "mastercard": r"/^5[1-5][0-9]{14}$|^2(?:2(?:2[1-9]|[3-9][0-9])|[3-6][0-9][0-9]|7(?:[01][0-9]|20))[0-9]{12}$/", "amex": r"/^3[47][0-9]{13}$/", "discover": r"/^65[4-9][0-9]{13}|64[4-9][0-9]{13}|...
30.762887
142
0.467493
21731e6d861a39649ea198c473c43e6a73b5f540
2,916
py
Python
jmeter_api/configs/http_cache_manager/test_http_cache_manager.py
dashawn888/jmeter_api
1ab5b02f3a7c8ad1b84fc50db4fe1fc2fa7c91bd
[ "Apache-2.0" ]
11
2020-03-22T13:30:21.000Z
2021-12-25T06:23:44.000Z
jmeter_api/configs/http_cache_manager/test_http_cache_manager.py
dashawn888/jmeter_api
1ab5b02f3a7c8ad1b84fc50db4fe1fc2fa7c91bd
[ "Apache-2.0" ]
37
2019-12-18T13:12:50.000Z
2022-02-10T10:52:37.000Z
jmeter_api/configs/http_cache_manager/test_http_cache_manager.py
dashawn888/jmeter_api
1ab5b02f3a7c8ad1b84fc50db4fe1fc2fa7c91bd
[ "Apache-2.0" ]
5
2019-12-06T10:55:56.000Z
2020-06-01T19:32:32.000Z
import xmltodict import pytest from jmeter_api.configs.http_cache_manager.elements import HTTPCacheManager from jmeter_api.basics.utils import tag_wrapper
39.405405
86
0.645405
21749d76cf64e34fef78fa86bc1d6551d9be27aa
1,533
py
Python
main/configuration/token_config.py
anderswodenker/sams-app
d9ab3474a5b1f009afe803d14484c000059b61c3
[ "MIT" ]
null
null
null
main/configuration/token_config.py
anderswodenker/sams-app
d9ab3474a5b1f009afe803d14484c000059b61c3
[ "MIT" ]
1
2020-12-10T14:40:57.000Z
2020-12-10T14:40:57.000Z
main/configuration/token_config.py
anderswodenker/sams-app
d9ab3474a5b1f009afe803d14484c000059b61c3
[ "MIT" ]
null
null
null
import configparser import mapping from main.helper.time_helper import get_token_time
32.617021
83
0.637965
21758ae5b904cd586ad12411253dc0f4bd9495ef
350
py
Python
tests/data/dos.py
granrothge/multiphonon
486a998eeb6b73b964a58ba0f98fe3ece15bdf6e
[ "MIT" ]
1
2019-05-22T08:46:09.000Z
2019-05-22T08:46:09.000Z
tests/data/dos.py
granrothge/multiphonon
486a998eeb6b73b964a58ba0f98fe3ece15bdf6e
[ "MIT" ]
118
2016-04-04T12:27:15.000Z
2021-08-18T01:46:13.000Z
tests/data/dos.py
granrothge/multiphonon
486a998eeb6b73b964a58ba0f98fe3ece15bdf6e
[ "MIT" ]
5
2017-09-28T16:01:12.000Z
2020-01-31T18:58:09.000Z
#!/usr/bin/env python # # Jiao Lin <jiao.lin@gmail.com> import os datadir = os.path.abspath(os.path.dirname(__file__)) # End of file
19.444444
52
0.66
217837f8dc006967d37900044e0628322b10a71d
5,832
py
Python
weather/Weather.py
Eajay/chatting-bot-with-tasks
d02299cb9d84da719eec4950a69484058adc791a
[ "MIT" ]
null
null
null
weather/Weather.py
Eajay/chatting-bot-with-tasks
d02299cb9d84da719eec4950a69484058adc791a
[ "MIT" ]
null
null
null
weather/Weather.py
Eajay/chatting-bot-with-tasks
d02299cb9d84da719eec4950a69484058adc791a
[ "MIT" ]
null
null
null
from scrapy.crawler import CrawlerProcess from scrapy.utils.project import get_project_settings import re import pymysql import geocoder import datetime import os # host = 'localhost' # user = 'root' # passwd = '123456' # db = 'mydb' # port = 3306 # w = Weather(host=host, user=user, passwd=passwd, db=...
38.368421
479
0.573217
21784a3d87f08299948e420bf102a93e46449e8b
7,578
py
Python
tests/test_networks/test_brokers/test_publishers/test_producers.py
Clariteia/minos_microservice_networks
77f239429653272c5cb3447311513143f8521ed9
[ "MIT" ]
7
2021-04-12T15:40:11.000Z
2022-03-04T13:46:01.000Z
tests/test_networks/test_brokers/test_publishers/test_producers.py
Clariteia/minos_microservice_networks
77f239429653272c5cb3447311513143f8521ed9
[ "MIT" ]
275
2021-04-03T09:23:40.000Z
2022-01-28T11:56:25.000Z
tests/test_networks/test_brokers/test_publishers/test_producers.py
Clariteia/minos_microservice_networks
77f239429653272c5cb3447311513143f8521ed9
[ "MIT" ]
null
null
null
import asyncio import unittest from asyncio import ( gather, sleep, ) from unittest.mock import ( AsyncMock, call, ) from uuid import ( uuid4, ) import aiopg from minos.common import ( NotProvidedException, ) from minos.common.testing import ( PostgresAsyncTestCase, ) from minos.networks i...
35.246512
114
0.662048
217c49f0f1aaaa2893f92203a3e95b9ea7c76395
4,489
py
Python
text_collector/spiders/sumut_go.py
gusman/web-crawler
d7a41cab2ce82d0e6b0daf5db05944381f0a4bbd
[ "MIT" ]
null
null
null
text_collector/spiders/sumut_go.py
gusman/web-crawler
d7a41cab2ce82d0e6b0daf5db05944381f0a4bbd
[ "MIT" ]
null
null
null
text_collector/spiders/sumut_go.py
gusman/web-crawler
d7a41cab2ce82d0e6b0daf5db05944381f0a4bbd
[ "MIT" ]
null
null
null
import scrapy import datetime import re from datetime import timedelta from scrapy.spiders import CrawlSpider, Rule from scrapy.linkextractors import LinkExtractor
45.343434
155
0.58699
217d30de43b0686c9b6a097430ce64fd2cb78174
130
py
Python
test/conftest.py
eliasbrange/aws-cdk-template
7ba7bc921bdd9c0064a6a661a2f47ee767ed70cc
[ "MIT" ]
2
2022-01-03T11:11:32.000Z
2022-03-11T16:34:51.000Z
test/conftest.py
eliasbrange/aws-cdk-template
7ba7bc921bdd9c0064a6a661a2f47ee767ed70cc
[ "MIT" ]
null
null
null
test/conftest.py
eliasbrange/aws-cdk-template
7ba7bc921bdd9c0064a6a661a2f47ee767ed70cc
[ "MIT" ]
1
2022-03-25T20:35:16.000Z
2022-03-25T20:35:16.000Z
import os.path as op import sys path = op.abspath(op.join(op.dirname(op.realpath(__file__)), "..", "src")) sys.path.append(path)
21.666667
74
0.7
217d4e0e9bc044b34a21ee15c3e1def8c727534c
3,599
py
Python
addons/stock_landed_costs/models/account_move.py
SHIVJITH/Odoo_Machine_Test
310497a9872db7844b521e6dab5f7a9f61d365a4
[ "Apache-2.0" ]
null
null
null
addons/stock_landed_costs/models/account_move.py
SHIVJITH/Odoo_Machine_Test
310497a9872db7844b521e6dab5f7a9f61d365a4
[ "Apache-2.0" ]
null
null
null
addons/stock_landed_costs/models/account_move.py
SHIVJITH/Odoo_Machine_Test
310497a9872db7844b521e6dab5f7a9f61d365a4
[ "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
47.355263
130
0.674632
217ddb7ab709173147528cb6c585bd4df64516a7
4,025
py
Python
examples/highcharts/pie-donut.py
Jbrunn/python-highcharts
a4c488ae5c2e125616efad5a722f3dfd8a9bc450
[ "MIT" ]
370
2015-10-07T20:13:10.000Z
2022-03-31T03:43:17.000Z
examples/highcharts/pie-donut.py
Jbrunn/python-highcharts
a4c488ae5c2e125616efad5a722f3dfd8a9bc450
[ "MIT" ]
67
2016-03-14T12:18:44.000Z
2022-02-24T09:24:31.000Z
examples/highcharts/pie-donut.py
Jbrunn/python-highcharts
a4c488ae5c2e125616efad5a722f3dfd8a9bc450
[ "MIT" ]
159
2016-02-25T15:07:52.000Z
2022-03-12T13:04:14.000Z
# -*- coding: utf-8 -*- """ Highcharts Demos Donut chart: http://www.highcharts.com/demo/pie-donut """ from highcharts import Highchart H = Highchart(width = 850, height = 400) data = [{ 'y': 55.11, 'color': 'Highcharts.getOptions().colors[0]', 'drilldown': { 'name'...
32.459677
115
0.429814
217fa2fb2460ab023c2ba02ea8a4fbc0c4e79eb1
961
py
Python
computer_firm.py
GYosifov88/Python-Basics
f4290061264aebc417bde4948948e4a64739fec9
[ "MIT" ]
null
null
null
computer_firm.py
GYosifov88/Python-Basics
f4290061264aebc417bde4948948e4a64739fec9
[ "MIT" ]
null
null
null
computer_firm.py
GYosifov88/Python-Basics
f4290061264aebc417bde4948948e4a64739fec9
[ "MIT" ]
null
null
null
number_of_computers = int(input()) number_of_sales = 0 real_sales = 0 made_sales = 0 counter_sales = 0 total_ratings = 0 for i in range (number_of_computers): rating = int(input()) rating_scale = rating % 10 possible_sales = rating // 10 total_ratings += rating_scale if rating_scale == 2: r...
25.289474
52
0.661811
21803ff77639fb917a3ee0c55d6b108129313c9e
902
py
Python
cogs/messages.py
abdieg/cirila-bot-discord
e6956213cf42762b0260bd71dab47f3217c21560
[ "MIT" ]
null
null
null
cogs/messages.py
abdieg/cirila-bot-discord
e6956213cf42762b0260bd71dab47f3217c21560
[ "MIT" ]
null
null
null
cogs/messages.py
abdieg/cirila-bot-discord
e6956213cf42762b0260bd71dab47f3217c21560
[ "MIT" ]
null
null
null
import discord import os import asyncio from discord.ext import commands from random import randint from cogs.libs import Settings from cogs.libs import Utils
29.096774
59
0.645233
218267a67d6b77155bce24d14dba6bc7cf42c90c
315
py
Python
features/best_move.py
raaahuuulll/chess-concepts
92fbed433c1270f8235f454bb4f5416e577bf8a6
[ "Apache-2.0" ]
null
null
null
features/best_move.py
raaahuuulll/chess-concepts
92fbed433c1270f8235f454bb4f5416e577bf8a6
[ "Apache-2.0" ]
null
null
null
features/best_move.py
raaahuuulll/chess-concepts
92fbed433c1270f8235f454bb4f5416e577bf8a6
[ "Apache-2.0" ]
null
null
null
from features.move import Move
24.230769
66
0.698413
218374c68202eece0493e23ec9145bf2c5224fa4
728
py
Python
util.py
logonod/demoss
c792f6471fc4a30297688db90d221d31d447633a
[ "BSD-2-Clause" ]
null
null
null
util.py
logonod/demoss
c792f6471fc4a30297688db90d221d31d447633a
[ "BSD-2-Clause" ]
null
null
null
util.py
logonod/demoss
c792f6471fc4a30297688db90d221d31d447633a
[ "BSD-2-Clause" ]
null
null
null
import skimage.io import skimage.transform import numpy as np
25.103448
65
0.608516
21844501c3e337cf2b53931afe55bce1da09fdf2
248
py
Python
adgbot/slack.py
astrodatagroup/slack-bot
9e2bf073972c0ac34a76e86746dd77556cdf7451
[ "MIT" ]
2
2020-03-12T23:44:54.000Z
2020-04-24T12:59:08.000Z
adgbot/slack.py
astrodatagroup/slack-bot
9e2bf073972c0ac34a76e86746dd77556cdf7451
[ "MIT" ]
4
2020-04-24T12:57:30.000Z
2020-08-08T14:57:30.000Z
adgbot/slack.py
astrodatagroup/slack-bot
9e2bf073972c0ac34a76e86746dd77556cdf7451
[ "MIT" ]
2
2020-08-07T16:33:57.000Z
2021-10-04T15:26:57.000Z
# -*- coding: utf-8 -*- __all__ = ["post_message"] import requests from . import config
17.714286
70
0.689516
21854e402e44b3f6ade05c63d51b295cbf536a9f
10,054
py
Python
train_lirpa.py
eth-sri/3dcertify
bb10f339f80149a9ebc7c07d041b2ef222efb394
[ "Apache-2.0" ]
9
2021-03-31T20:27:50.000Z
2022-01-07T21:52:47.000Z
train_lirpa.py
eth-sri/3dcertify
bb10f339f80149a9ebc7c07d041b2ef222efb394
[ "Apache-2.0" ]
2
2021-06-21T15:38:07.000Z
2021-11-08T09:10:09.000Z
train_lirpa.py
eth-sri/3dcertify
bb10f339f80149a9ebc7c07d041b2ef222efb394
[ "Apache-2.0" ]
4
2021-07-17T15:04:14.000Z
2022-02-09T17:51:39.000Z
import argparse import multiprocessing import random import time import torch.optim as optim from auto_LiRPA.eps_scheduler import LinearScheduler, AdaptiveScheduler, SmoothedScheduler, FixedScheduler from auto_LiRPA.perturbations import * from auto_LiRPA.utils import MultiAverageMeter from torch.nn import CrossEntropy...
47.424528
136
0.647106
2185931a1852d943461e09408575acf28198d271
3,684
py
Python
qcs_api_client/models/client_application.py
rigetti/qcs-api-client-python
569cb9fa972dec1a706757374acb3df3ce649ec4
[ "Apache-2.0" ]
2
2021-12-15T23:24:40.000Z
2022-01-03T01:14:17.000Z
qcs_api_client/models/client_application.py
rigetti/qcs-api-client-python
569cb9fa972dec1a706757374acb3df3ce649ec4
[ "Apache-2.0" ]
3
2022-01-10T21:55:13.000Z
2022-02-22T19:41:01.000Z
qcs_api_client/models/client_application.py
rigetti/qcs-api-client-python
569cb9fa972dec1a706757374acb3df3ce649ec4
[ "Apache-2.0" ]
3
2021-12-15T23:24:42.000Z
2022-01-09T11:16:17.000Z
from typing import Any, Callable, Dict, List, Optional, Type, TypeVar, Union import attr from ..models.client_applications_download_link import ClientApplicationsDownloadLink from ..types import UNSET, Unset from ..util.serialization import is_not_none T = TypeVar("T", bound="ClientApplication")
31.758621
106
0.628664
2186641f0d4ffce02d56535a8ecd616ced38432d
73
py
Python
Configuration/Eras/python/Modifier_run2_GEM_2017_cff.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
852
2015-01-11T21:03:51.000Z
2022-03-25T21:14:00.000Z
Configuration/Eras/python/Modifier_run2_GEM_2017_cff.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
30,371
2015-01-02T00:14:40.000Z
2022-03-31T23:26:05.000Z
Configuration/Eras/python/Modifier_run2_GEM_2017_cff.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
3,240
2015-01-02T05:53:18.000Z
2022-03-31T17:24:21.000Z
import FWCore.ParameterSet.Config as cms run2_GEM_2017 = cms.Modifier()
18.25
40
0.808219
2187970fb1dec3395b976692b9ba5465f2f484c3
16,792
py
Python
d4rl/carla/data_collection_agent_lane.py
chappers/d4rl
b838da60b51c98c1d673a81657f58a44ccf5d3fe
[ "Apache-2.0" ]
552
2020-04-20T01:07:02.000Z
2022-03-31T16:47:39.000Z
d4rl/carla/data_collection_agent_lane.py
chappers/d4rl
b838da60b51c98c1d673a81657f58a44ccf5d3fe
[ "Apache-2.0" ]
103
2020-04-20T14:18:32.000Z
2022-03-30T14:33:45.000Z
d4rl/carla/data_collection_agent_lane.py
chappers/d4rl
b838da60b51c98c1d673a81657f58a44ccf5d3fe
[ "Apache-2.0" ]
135
2020-04-21T16:57:52.000Z
2022-03-30T14:29:55.000Z
# !/usr/bin/env python # Copyright (c) 2019 Computer Vision Center (CVC) at the Universitat Autonoma de # Barcelona (UAB). # # This work is licensed under the terms of the MIT license. # For a copy, see <https://opensource.org/licenses/MIT>. # # Modified by Rowan McAllister on 20 April 2020 import argparse import dat...
36.34632
138
0.632861
2189e908a5d40835988cf4b8179b93819c50451d
2,386
py
Python
wren/pomo.py
kthy/wren
62e9439ea82a1d984f07fa8cd00421e0e640196f
[ "MIT" ]
1
2021-06-04T07:15:02.000Z
2021-06-04T07:15:02.000Z
wren/pomo.py
kthy/wren
62e9439ea82a1d984f07fa8cd00421e0e640196f
[ "MIT" ]
9
2021-02-20T22:33:05.000Z
2021-04-12T17:35:48.000Z
wren/pomo.py
pyxy-dk/wren
62e9439ea82a1d984f07fa8cd00421e0e640196f
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """Gettext manipulation methods.""" from os import remove from os.path import exists from pathlib import Path from shutil import copyfile, copystat from typing import Sequence from filehash import FileHash from polib import MOFile, POFile, mofile from wren.change import Change def apply_cha...
34.57971
80
0.725482
218b02aeb89c1d716160e75933fbb97fec67090f
199
py
Python
mysite/polls/urls.py
cs-fullstack-fall-2018/django-intro1-psanon19
0ae36780fd664313a011e7a219bc401b158fe93f
[ "Apache-2.0" ]
null
null
null
mysite/polls/urls.py
cs-fullstack-fall-2018/django-intro1-psanon19
0ae36780fd664313a011e7a219bc401b158fe93f
[ "Apache-2.0" ]
null
null
null
mysite/polls/urls.py
cs-fullstack-fall-2018/django-intro1-psanon19
0ae36780fd664313a011e7a219bc401b158fe93f
[ "Apache-2.0" ]
null
null
null
from django.urls import path from . import views urlpatterns = [ path('language/', views.language), path('system/', views.system), path('ide/', views.ide), path('', views.nothing) ]
19.9
38
0.638191
218b26291a3fa107e3de76aeb9676ea1fe58456c
5,908
py
Python
Boston_House_Prices.py
Anuska-Ghosh2002/bostonproj
fa3e55ea8417d58a84a66b11dc093d106bd10c79
[ "MIT" ]
null
null
null
Boston_House_Prices.py
Anuska-Ghosh2002/bostonproj
fa3e55ea8417d58a84a66b11dc093d106bd10c79
[ "MIT" ]
null
null
null
Boston_House_Prices.py
Anuska-Ghosh2002/bostonproj
fa3e55ea8417d58a84a66b11dc093d106bd10c79
[ "MIT" ]
null
null
null
import streamlit as st import numpy as np import pandas as pd import matplotlib.pyplot as plt import seaborn as sns sns.set() from sklearn.datasets import load_boston from sklearn import preprocessing from sklearn.model_selection import train_test_split from sklearn.linear_model import LinearRegression from sklearn.met...
28.403846
82
0.676202
218bab7ad0514bef0bd2c2671ceec38449ab044f
4,585
py
Python
tests/controller/worker/test_worker_manager.py
scailfin/flowserv-core
69376f84bae71b5699688bd213c34a6bf8806319
[ "MIT" ]
1
2020-02-13T18:57:53.000Z
2020-02-13T18:57:53.000Z
tests/controller/worker/test_worker_manager.py
scailfin/flowserv-core
69376f84bae71b5699688bd213c34a6bf8806319
[ "MIT" ]
46
2020-02-14T22:14:33.000Z
2021-06-10T21:17:49.000Z
tests/controller/worker/test_worker_manager.py
scailfin/rob-core
791383085181747cf41c30f6cd13f6762e438d8a
[ "MIT" ]
3
2021-05-06T15:22:29.000Z
2021-06-01T16:19:36.000Z
# This file is part of the Reproducible and Reusable Data Analysis Workflow # Server (flowServ). # # Copyright (C) 2019-2021 NYU. # # flowServ is free software; you can redistribute it and/or modify it under the # terms of the MIT License; see LICENSE file for more details. """Unit tests for the worker factory.""" im...
37.892562
116
0.639258
218be87fd5642367ab0f3fbe799b44f1dfb60d9c
640
py
Python
pyconcz/announcements/migrations/0002_announcement_font_size.py
martinpucala/cz.pycon.org-2019
044337ed0e7f721e96d88da69511ba5493d127e6
[ "MIT" ]
6
2018-08-25T13:40:22.000Z
2019-05-25T21:58:41.000Z
pyconcz/announcements/migrations/0002_announcement_font_size.py
Giraafje/cz.pycon.org-2019
f7bfad2f0c0f98368e2f6163f7dce70335549a68
[ "MIT" ]
188
2018-08-26T06:53:50.000Z
2022-02-12T04:04:36.000Z
pyconcz/announcements/migrations/0002_announcement_font_size.py
Giraafje/cz.pycon.org-2019
f7bfad2f0c0f98368e2f6163f7dce70335549a68
[ "MIT" ]
15
2018-11-03T06:32:34.000Z
2020-02-11T21:17:14.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.11.20 on 2019-06-11 05:18 from __future__ import unicode_literals import django.core.validators from django.db import migrations, models
29.090909
206
0.676563
218c1665960b6db6a4d4a313af360d78024780d3
896
py
Python
docs/_ext/db_tables_extension.py
wdr-data/wdr-okr
71c9e6e8d3521b1bb67d30310a93584389de2127
[ "MIT" ]
2
2021-07-28T08:46:13.000Z
2022-01-19T17:05:48.000Z
docs/_ext/db_tables_extension.py
wdr-data/wdr-okr
71c9e6e8d3521b1bb67d30310a93584389de2127
[ "MIT" ]
3
2020-11-10T23:34:17.000Z
2021-03-31T16:19:21.000Z
docs/_ext/db_tables_extension.py
wdr-data/wdr-okr
71c9e6e8d3521b1bb67d30310a93584389de2127
[ "MIT" ]
null
null
null
"""Custom Sphinx extension to inject database documentation into a ReST document.""" from docutils import nodes from docutils.parsers.rst import Directive import sys import os import inspect currentdir = os.path.dirname(os.path.abspath(inspect.getfile(inspect.currentframe()))) parentdir = os.path.dirname(currentdir)...
24.216216
86
0.668527
218cc1a2784c43a8ecfb6c736b8023171e1890c1
149
py
Python
vb2py/PythonCard/__init__.py
ceprio/xl_vb2py
899fec0301140fd8bd313e8c80b3fa839b3f5ee4
[ "BSD-3-Clause" ]
null
null
null
vb2py/PythonCard/__init__.py
ceprio/xl_vb2py
899fec0301140fd8bd313e8c80b3fa839b3f5ee4
[ "BSD-3-Clause" ]
null
null
null
vb2py/PythonCard/__init__.py
ceprio/xl_vb2py
899fec0301140fd8bd313e8c80b3fa839b3f5ee4
[ "BSD-3-Clause" ]
null
null
null
""" Created: 2001/08/05 Purpose: Turn PythonCard into a package __version__ = "$Revision: 1.1.1.1 $" __date__ = "$Date: 2001/08/06 19:53:11 $" """
16.555556
41
0.651007
218d8e2910387226505ef85b9f0bcefc1939728c
764
py
Python
xschem/bandgap_opamp/test/bandgap_bmr_test_op.py
yrrapt/caravel_amsat_txrx_ic
53bef4537447a623f93772092daeac67c4cb3d45
[ "Apache-2.0" ]
15
2020-12-13T12:33:15.000Z
2022-02-17T18:09:25.000Z
xschem/bandgap_opamp/test/bandgap_bmr_test_op.py
yrrapt/caravel_amsat_txrx_ic
53bef4537447a623f93772092daeac67c4cb3d45
[ "Apache-2.0" ]
null
null
null
xschem/bandgap_opamp/test/bandgap_bmr_test_op.py
yrrapt/caravel_amsat_txrx_ic
53bef4537447a623f93772092daeac67c4cb3d45
[ "Apache-2.0" ]
6
2021-01-02T05:52:21.000Z
2022-03-28T06:55:07.000Z
import SpiceInterface import TestUtilities # create the test utility object test_utilities_obj = TestUtilities.TestUtilities() test_utilities_obj.netlist_generation('bandgap_opamp_test_op.sch', 'rundir') # create the spice interface spice_interface_obj = SpiceInterface.SpiceInterface(netlist_path="rundir/bandgap_opa...
28.296296
102
0.789267
218f388452a32732371a26acb9b1b26668fa0afb
238
py
Python
cloudmesh-exercises/cloudmesh-common-2.py
cybertraining-dsc/fa19-516-170
8746be5a89d897a155468303308efb71ce7ba849
[ "Apache-2.0" ]
null
null
null
cloudmesh-exercises/cloudmesh-common-2.py
cybertraining-dsc/fa19-516-170
8746be5a89d897a155468303308efb71ce7ba849
[ "Apache-2.0" ]
null
null
null
cloudmesh-exercises/cloudmesh-common-2.py
cybertraining-dsc/fa19-516-170
8746be5a89d897a155468303308efb71ce7ba849
[ "Apache-2.0" ]
1
2019-09-06T17:27:32.000Z
2019-09-06T17:27:32.000Z
# fa19-516-170 E.Cloudmesh.Common.2 from cloudmesh.common.dotdict import dotdict color = {"red": 255, "blue": 255, "green": 255, "alpha": 0} color = dotdict(color) print("A RGB color: ", color.red, color.blue, color.green, color.alpha)
29.75
71
0.697479
219042565e81d8c12997684eb40b91c86b416cb5
701
py
Python
ex18.py
arunkumarang/python
1960e285dfe2ef54d2e3ab37584bfef8b24ecca9
[ "Apache-2.0" ]
null
null
null
ex18.py
arunkumarang/python
1960e285dfe2ef54d2e3ab37584bfef8b24ecca9
[ "Apache-2.0" ]
null
null
null
ex18.py
arunkumarang/python
1960e285dfe2ef54d2e3ab37584bfef8b24ecca9
[ "Apache-2.0" ]
null
null
null
#this one is like your scripts with argv #ok, the *args is actually pointless, we can just do this #this just takes one argument #this one takes no arguments print_two("Zed","Shaw") print_two_again("Zed","Shaw") print_one("First!") print_none() print_places("Bengaluru", "Chennai", "New Delhi")
24.172414
76
0.663338
2190f77ed4afd28489afe1b10eb418ec19a517fe
5,182
py
Python
study_tool/entities/menu.py
cubeman99/russian-study-tool
b073df4694f1ad064a780088cdcb1436e1bde7e9
[ "MIT" ]
null
null
null
study_tool/entities/menu.py
cubeman99/russian-study-tool
b073df4694f1ad064a780088cdcb1436e1bde7e9
[ "MIT" ]
null
null
null
study_tool/entities/menu.py
cubeman99/russian-study-tool
b073df4694f1ad064a780088cdcb1436e1bde7e9
[ "MIT" ]
null
null
null
from enum import IntEnum import os import pygame import random import time import cmg import cmg.mathlib from cmg.application import * from cmg.graphics import * from cmg.input import * from study_tool.config import Config from study_tool.entities.entity import Entity
40.484375
84
0.614628
2191076de1edb4c0b0a54d9d4d3796be34c4306f
3,677
py
Python
zhangwei_helper/function/Regedit.py
zwzw911/zhangwei_helper
8696533f5df50464d619a35834ec19d514a1b13b
[ "MIT" ]
null
null
null
zhangwei_helper/function/Regedit.py
zwzw911/zhangwei_helper
8696533f5df50464d619a35834ec19d514a1b13b
[ "MIT" ]
null
null
null
zhangwei_helper/function/Regedit.py
zwzw911/zhangwei_helper
8696533f5df50464d619a35834ec19d514a1b13b
[ "MIT" ]
null
null
null
''' windows _open_key: key _read_key_valuekeyvalue _save_key_valuekey read_PATH_valuePATH append_value_in_PATHPATH del_value_in_PATHPATH check_key_value_exists(key,value_name)keyvalue_name create_value(key,value_name,value_type,value): _save_key_value delete_value(key,value_name): keyvalue ''' import winreg def re...
30.89916
82
0.700027
2192768bff882444e0830f98671a750d87dcfce9
22,767
py
Python
deep_staple/HybridIdLoader.py
multimodallearning/deep_staple
a27ed9e214bbac96aeab122b05b59b0222cce5c5
[ "MIT" ]
null
null
null
deep_staple/HybridIdLoader.py
multimodallearning/deep_staple
a27ed9e214bbac96aeab122b05b59b0222cce5c5
[ "MIT" ]
null
null
null
deep_staple/HybridIdLoader.py
multimodallearning/deep_staple
a27ed9e214bbac96aeab122b05b59b0222cce5c5
[ "MIT" ]
null
null
null
import warnings from collections.abc import Iterable from collections import OrderedDict import torch import numpy as np from torch.utils.data import Dataset from deep_staple.utils.torch_utils import interpolate_sample, augmentNoise, spatial_augment, torch_manual_seeded, ensure_dense from deep_staple.utils.common_uti...
45.172619
157
0.605877
2192db0d2cc72055b715c3531dbce38ec2537308
438
py
Python
scripts/model_assembly/parquet_explorer.py
rsulli55/automates
1647a8eef85c4f03086a10fa72db3b547f1a0455
[ "Apache-2.0" ]
17
2018-12-19T16:32:38.000Z
2021-10-05T07:58:15.000Z
scripts/model_assembly/parquet_explorer.py
rsulli55/automates
1647a8eef85c4f03086a10fa72db3b547f1a0455
[ "Apache-2.0" ]
183
2018-12-20T17:03:01.000Z
2022-02-23T22:21:42.000Z
scripts/model_assembly/parquet_explorer.py
rsulli55/automates
1647a8eef85c4f03086a10fa72db3b547f1a0455
[ "Apache-2.0" ]
5
2019-01-04T22:37:49.000Z
2022-01-19T17:34:16.000Z
import sys import json import pandas as pd if __name__ == "__main__": main()
20.857143
65
0.707763
219394299c86acbdbecacd314e8a2cf464bd2c78
1,720
py
Python
day02/main.py
aschmied/advent-of-code-2020
4112cebaf4dc4c6a931824da89ab894d21595673
[ "BSD-2-Clause" ]
null
null
null
day02/main.py
aschmied/advent-of-code-2020
4112cebaf4dc4c6a931824da89ab894d21595673
[ "BSD-2-Clause" ]
null
null
null
day02/main.py
aschmied/advent-of-code-2020
4112cebaf4dc4c6a931824da89ab894d21595673
[ "BSD-2-Clause" ]
null
null
null
if __name__ == '__main__': main()
38.222222
98
0.676744
21941897416bc012f80774571a8681a87ac48cad
6,858
py
Python
captcha_cnn/runbycolab.py
Rhysn/captcha_break
5c2675deaff105a323a80c4631f3cf01d76ae345
[ "MIT" ]
null
null
null
captcha_cnn/runbycolab.py
Rhysn/captcha_break
5c2675deaff105a323a80c4631f3cf01d76ae345
[ "MIT" ]
null
null
null
captcha_cnn/runbycolab.py
Rhysn/captcha_break
5c2675deaff105a323a80c4631f3cf01d76ae345
[ "MIT" ]
null
null
null
#! /usr/bin/python3 # coding:utf-8 #pip install graphic-verification-code from captcha.image import ImageCaptcha import random,gvcode import numpy as np import tensorflow as tf number = ['0', '1', '2', '3', '4', '5', '6', '7', '8', '9'] alphabet = ['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n...
37.681319
141
0.594051
2194785ae66285d905bdd54bde253e59e60bc9d5
1,476
py
Python
progs/PyEpoch-master/PyEpoch-master/example.py
am-3/TimeZoned
e8ae2e90c2d6addf13b145aa2a4c7a9a66c1346e
[ "MIT" ]
null
null
null
progs/PyEpoch-master/PyEpoch-master/example.py
am-3/TimeZoned
e8ae2e90c2d6addf13b145aa2a4c7a9a66c1346e
[ "MIT" ]
null
null
null
progs/PyEpoch-master/PyEpoch-master/example.py
am-3/TimeZoned
e8ae2e90c2d6addf13b145aa2a4c7a9a66c1346e
[ "MIT" ]
null
null
null
# PyEpoch Module Example File. import pyepoch # -- TODAY() -- # The today() function returns today's date. today = pyepoch.today() print("Today's date & time:") print(today) # -- TIMEZONE() -- # The timezone() function returns a date with a different timezone. # timezone() takes two(2) arguments: # - date = a da...
31.404255
117
0.680217
2195d746a275485f7b8e060e078812f4fd92ce29
9,615
py
Python
plugins.disable/warpy_plugin/warpy_plugin.py
StarryPy/StarryPy-Historic
b9dbd552b8c4631a5a8e9dda98b7ba447eca59da
[ "WTFPL" ]
38
2015-02-12T11:57:59.000Z
2018-11-15T16:03:45.000Z
plugins.disable/warpy_plugin/warpy_plugin.py
StarryPy/StarryPy-Historic
b9dbd552b8c4631a5a8e9dda98b7ba447eca59da
[ "WTFPL" ]
68
2015-02-05T23:29:47.000Z
2017-12-27T08:26:25.000Z
plugins.disable/warpy_plugin/warpy_plugin.py
StarryPy/StarryPy-Historic
b9dbd552b8c4631a5a8e9dda98b7ba447eca59da
[ "WTFPL" ]
21
2015-02-06T18:58:21.000Z
2017-12-24T20:08:59.000Z
# -*- coding: UTF-8 -*- from base_plugin import SimpleCommandPlugin from plugins.core.player_manager_plugin import permissions, UserLevels from utility_functions import build_packet, move_ship_to_coords, extract_name from packets import ( Packets, WarpAliasType, WarpWorldType, WarpActionType, player...
36.83908
79
0.555174
2197966d631c9c92b13301a3f1143b67b6729392
1,735
py
Python
sum/4-sum-II.py
windowssocket/py_leetcode
241dbf8d7dab7db5215c2526321fcdb378b45492
[ "Apache-2.0" ]
3
2018-05-29T02:29:40.000Z
2020-02-05T03:28:16.000Z
sum/4-sum-II.py
xidongc/py_leetcode
241dbf8d7dab7db5215c2526321fcdb378b45492
[ "Apache-2.0" ]
1
2019-03-08T13:22:32.000Z
2019-03-08T13:22:32.000Z
sum/4-sum-II.py
xidongc/py_leetcode
241dbf8d7dab7db5215c2526321fcdb378b45492
[ "Apache-2.0" ]
3
2018-05-29T11:50:24.000Z
2018-11-27T12:31:01.000Z
# LTE using two pointers O(n**3) # hashmap Solution AC O(n**2)
26.287879
71
0.311816
219817d56a9878e2e56c8fd6d1d6e60bcea7971d
1,693
py
Python
event/filetype_check_pull_request_handler.py
micnncim/spinnakerbot
449a1ba76c62619b515691dbd21f791f5f1d3e5b
[ "Apache-2.0" ]
null
null
null
event/filetype_check_pull_request_handler.py
micnncim/spinnakerbot
449a1ba76c62619b515691dbd21f791f5f1d3e5b
[ "Apache-2.0" ]
null
null
null
event/filetype_check_pull_request_handler.py
micnncim/spinnakerbot
449a1ba76c62619b515691dbd21f791f5f1d3e5b
[ "Apache-2.0" ]
null
null
null
from .handler import Handler from .pull_request_event import GetPullRequest, GetRepo format_message = ('We prefer that non-test backend code be written in Java or Kotlin, rather ' + 'than Groovy. The following files have been added and written in Groovy:\n\n' + '{}\n\n' + 'See our server-side ...
36.021277
140
0.606615
21995407ba2e718df75670c68ae5c377959bb276
96
py
Python
venv/lib/python3.8/site-packages/virtualenv/create/via_global_ref/builtin/cpython/cpython3.py
Retraces/UkraineBot
3d5d7f8aaa58fa0cb8b98733b8808e5dfbdb8b71
[ "MIT" ]
2
2022-03-13T01:58:52.000Z
2022-03-31T06:07:54.000Z
venv/lib/python3.8/site-packages/virtualenv/create/via_global_ref/builtin/cpython/cpython3.py
DesmoSearch/Desmobot
b70b45df3485351f471080deb5c785c4bc5c4beb
[ "MIT" ]
19
2021-11-20T04:09:18.000Z
2022-03-23T15:05:55.000Z
venv/lib/python3.8/site-packages/virtualenv/create/via_global_ref/builtin/cpython/cpython3.py
DesmoSearch/Desmobot
b70b45df3485351f471080deb5c785c4bc5c4beb
[ "MIT" ]
null
null
null
/home/runner/.cache/pip/pool/8f/3e/26/6ee86ef4171b7194b098a053f1e488bca8ba920931fd5f9fb809ad9a37
96
96
0.895833
21997f6cf26e1689e600188920ad6640d1b47a5e
4,231
py
Python
deployment/code/scp-03-Permission.py
weiping-bj/SCP-Workaround-in-AWS-ChinaRegions
f8feeed0fa568cf01b35e092681a975c5b7a8c54
[ "MIT" ]
1
2021-11-08T06:10:40.000Z
2021-11-08T06:10:40.000Z
deployment/code/scp-03-Permission.py
weiping-bj/SCP-Workaround-in-AWS-ChinaRegions
f8feeed0fa568cf01b35e092681a975c5b7a8c54
[ "MIT" ]
null
null
null
deployment/code/scp-03-Permission.py
weiping-bj/SCP-Workaround-in-AWS-ChinaRegions
f8feeed0fa568cf01b35e092681a975c5b7a8c54
[ "MIT" ]
1
2022-03-30T06:24:16.000Z
2022-03-30T06:24:16.000Z
import json import os import boto3 topicArn = os.environ['TOPIC_ARN'] assumedRole = os.environ['ASSUMED_ROLE'] scpBoundary = os.environ['SCP_BOUNDARY_POLICY'] sns_client = boto3.client('sns') sts_client = boto3.client('sts')
32.05303
120
0.605294
219a50648cf64b278567555f4d618a30757f4bc1
1,200
py
Python
betfairlightweight/endpoints/navigation.py
rozzac90/betfair
de885adf308e48bfc2614df46a5375a7df6386ef
[ "MIT" ]
1
2020-04-15T22:17:26.000Z
2020-04-15T22:17:26.000Z
betfairlightweight/endpoints/navigation.py
rozzac90/betfair
de885adf308e48bfc2614df46a5375a7df6386ef
[ "MIT" ]
null
null
null
betfairlightweight/endpoints/navigation.py
rozzac90/betfair
de885adf308e48bfc2614df46a5375a7df6386ef
[ "MIT" ]
1
2021-04-26T14:47:28.000Z
2021-04-26T14:47:28.000Z
from requests import ConnectionError from ..exceptions import APIError from ..utils import check_status_code from .baseendpoint import BaseEndpoint
30
85
0.66
219aa4d5dddc72d3249a60a8339ee2344c7a1e6b
3,733
py
Python
datasets/fbp_dataset.py
Zumo09/Feedback-Prize
e7e7343a81bfec2f5b187f2266154da0bbe48fb9
[ "MIT" ]
null
null
null
datasets/fbp_dataset.py
Zumo09/Feedback-Prize
e7e7343a81bfec2f5b187f2266154da0bbe48fb9
[ "MIT" ]
null
null
null
datasets/fbp_dataset.py
Zumo09/Feedback-Prize
e7e7343a81bfec2f5b187f2266154da0bbe48fb9
[ "MIT" ]
null
null
null
import os from tqdm import tqdm from functools import reduce from typing import Dict, List, Callable, Tuple import numpy as np import pandas as pd from sklearn.preprocessing import OrdinalEncoder import torch from torch.utils.data import Dataset def load_test_texts(path: str, preprocess: List[Callable[[str], str]...
30.85124
88
0.595232
219b49298771b09ffd76ddb885ed2c8ac603b1e4
614
py
Python
mtw/fl_user/urls.py
sukumar1612/medical-transcription-website
8ac2aaaec2e93a2f512e9f22fbf805c9c36a0d6d
[ "MIT" ]
2
2021-05-24T06:08:41.000Z
2021-05-26T19:21:01.000Z
mtw/fl_user/urls.py
sukumar1612/medical-transcription-website
8ac2aaaec2e93a2f512e9f22fbf805c9c36a0d6d
[ "MIT" ]
null
null
null
mtw/fl_user/urls.py
sukumar1612/medical-transcription-website
8ac2aaaec2e93a2f512e9f22fbf805c9c36a0d6d
[ "MIT" ]
3
2021-05-22T11:37:30.000Z
2021-06-01T08:34:01.000Z
from django.urls import path from fl_user import views app_name = 'fl_user' urlpatterns = [ path('receive_data/',views.receive_data, name='receive_data'), path('doctorhome/', views.doctorhome, name='doctorhome'), path('fluhome/', views.fluhome, name='fluhome'), path('sluhome/', views.sluhome, name='s...
36.117647
74
0.726384
219b950bb1bd75ed87fec4ee388a2ee1d19a75cf
4,350
py
Python
check_purefa_hw.py
frank-m/nagios-plugins
64681d8c89143f9deb9f3bd9a9c2d4e9bd040bb0
[ "Apache-2.0" ]
null
null
null
check_purefa_hw.py
frank-m/nagios-plugins
64681d8c89143f9deb9f3bd9a9c2d4e9bd040bb0
[ "Apache-2.0" ]
null
null
null
check_purefa_hw.py
frank-m/nagios-plugins
64681d8c89143f9deb9f3bd9a9c2d4e9bd040bb0
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # Copyright (c) 2018, 2019, 2020 Pure Storage, Inc. # # * Overview # # This short Nagios/Icinga plugin code shows how to build a simple plugin to monitor Pure Storage FlashArrays. # The Pure Storage Python REST Client is used to query the FlashArray. # # * Installation # # The script should be co...
39.189189
117
0.691494
219ba636e42aee8cec43580d423fc62e4f5c5cf3
686
py
Python
flaskr/models.py
ukeskin/cevrimici-kitap-galerisi
bea06dc417bb779e185b50d6f7f848a33e6f7bcb
[ "MIT" ]
null
null
null
flaskr/models.py
ukeskin/cevrimici-kitap-galerisi
bea06dc417bb779e185b50d6f7f848a33e6f7bcb
[ "MIT" ]
null
null
null
flaskr/models.py
ukeskin/cevrimici-kitap-galerisi
bea06dc417bb779e185b50d6f7f848a33e6f7bcb
[ "MIT" ]
null
null
null
from flask_wtf import FlaskForm from wtforms import StringField, PasswordField from wtforms.validators import DataRequired from database import db
31.181818
58
0.586006
219c423bdd2f170bbacb2a4f7c4d40c610971bf4
4,807
py
Python
project/interpreter_gql/interpreter_utils/set_operations.py
makar-pelogeiko/formal-lang-course
8d0e1ffb081aaccf19ab69103509928ecccb46d9
[ "Apache-2.0" ]
null
null
null
project/interpreter_gql/interpreter_utils/set_operations.py
makar-pelogeiko/formal-lang-course
8d0e1ffb081aaccf19ab69103509928ecccb46d9
[ "Apache-2.0" ]
3
2021-10-14T14:20:02.000Z
2022-01-22T23:51:11.000Z
project/interpreter_gql/interpreter_utils/set_operations.py
makar-pelogeiko/formal-lang-course
8d0e1ffb081aaccf19ab69103509928ecccb46d9
[ "Apache-2.0" ]
null
null
null
from pyformlang.regular_expression import Regex from pyformlang.regular_expression.regex_objects import Symbol from project.interpreter_gql.memory import MemBox from project.interpreter_gql.interpreter_utils.type_utils import get_target_type from project.interpreter_gql.interpreter_utils.interpreter_except import Inter...
34.582734
88
0.655918
219c724863fb056a3439c9d977aff6892d9fe9e5
2,757
py
Python
2021/day-09/solve.py
alexandru-dinu/aoc-2020
c7a5f648ea6fceb90ee3e2c1b9dd24bf206cf15f
[ "MIT" ]
1
2021-12-03T11:56:56.000Z
2021-12-03T11:56:56.000Z
2021/day-09/solve.py
alexandru-dinu/aoc-2020
c7a5f648ea6fceb90ee3e2c1b9dd24bf206cf15f
[ "MIT" ]
9
2021-12-04T19:16:06.000Z
2021-12-21T16:43:05.000Z
2021/day-09/solve.py
alexandru-dinu/aoc-2020
c7a5f648ea6fceb90ee3e2c1b9dd24bf206cf15f
[ "MIT" ]
null
null
null
from __future__ import annotations from argparse import ArgumentParser from collections import deque import numpy as np def count_lte(mat: np.ndarray) -> np.ndarray: """ lte[i,j] = count (neighbours <= mat[i,j]) . t . l . r . b . """ aug = np.pad(mat.astype(float), (1, 1), mode="constant...
21.372093
84
0.52811
219d913bf411991d2c2b4c9921337f7af16cc0c8
5,997
py
Python
applications/tensorflow2/image_classification/data/data_transformer.py
payoto/graphcore_examples
46d2b7687b829778369fc6328170a7b14761e5c6
[ "MIT" ]
260
2019-11-18T01:50:00.000Z
2022-03-28T23:08:53.000Z
applications/tensorflow2/image_classification/data/data_transformer.py
payoto/graphcore_examples
46d2b7687b829778369fc6328170a7b14761e5c6
[ "MIT" ]
27
2020-01-28T23:07:50.000Z
2022-02-14T15:37:06.000Z
applications/tensorflow2/image_classification/data/data_transformer.py
payoto/graphcore_examples
46d2b7687b829778369fc6328170a7b14761e5c6
[ "MIT" ]
56
2019-11-18T02:13:12.000Z
2022-02-28T14:36:09.000Z
# Copyright (c) 2021 Graphcore Ltd. All rights reserved. import tensorflow as tf from tensorflow.python.ops import math_ops import logging from . import imagenet_processing from custom_exceptions import UnsupportedFormat, DimensionError
38.941558
111
0.638486
219dec95a0e5d58334e741ed6c4d5f6ef28f50d0
273
py
Python
social/urls.py
zhongmei57485/SwiperPro
b00dde5af05f158d7cd2c649e8a07a2c19623b69
[ "Apache-2.0" ]
null
null
null
social/urls.py
zhongmei57485/SwiperPro
b00dde5af05f158d7cd2c649e8a07a2c19623b69
[ "Apache-2.0" ]
9
2019-12-04T23:48:54.000Z
2021-06-10T18:31:57.000Z
social/urls.py
zhongmei57485/SwiperPro
b00dde5af05f158d7cd2c649e8a07a2c19623b69
[ "Apache-2.0" ]
null
null
null
from django.urls import path from social import apis urlpatterns=[ path('recommend',apis.recommend), path('like',apis.like), path('dislike',apis.dislike), path('superlike',apis.superlike), path('rewind',apis.rewind), path('like-me',apis.like_me), ]
24.818182
37
0.681319
219edc590375fdad03e3c0c586530e16a13fd443
3,657
py
Python
GPIB_Control.py
TheHWcave/GPIB-to-USB
2f2469900ecca459fcee24f550519abc78480886
[ "MIT" ]
7
2020-02-02T06:29:13.000Z
2022-03-22T00:39:52.000Z
GPIB_Control.py
TheHWcave/GPIB-to-USB
2f2469900ecca459fcee24f550519abc78480886
[ "MIT" ]
null
null
null
GPIB_Control.py
TheHWcave/GPIB-to-USB
2f2469900ecca459fcee24f550519abc78480886
[ "MIT" ]
1
2019-03-21T15:49:40.000Z
2019-03-21T15:49:40.000Z
#MIT License # #Copyright (c) 2019 TheHWcave # #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 restriction, including without limitation the rights #to use, copy, modify, merge, publish,...
33.245455
86
0.699207
219eff34d4867620514405299c53bb4d517aed92
3,224
py
Python
scripts/check_spec.py
soasme/PeppaPEG
3ad481674ba3bbed6d495a6ad3b1f8087e6fd02d
[ "MIT" ]
30
2021-02-10T04:40:52.000Z
2022-03-04T07:49:35.000Z
scripts/check_spec.py
soasme/PeppaPEG
3ad481674ba3bbed6d495a6ad3b1f8087e6fd02d
[ "MIT" ]
30
2021-02-16T09:24:44.000Z
2022-01-09T02:45:17.000Z
scripts/check_spec.py
soasme/PeppaPEG
3ad481674ba3bbed6d495a6ad3b1f8087e6fd02d
[ "MIT" ]
4
2021-02-22T22:37:58.000Z
2021-12-24T16:28:27.000Z
import os.path import subprocess import sys import json import yaml import shlex if __name__ == '__main__': test_spec()
37.057471
125
0.433313
219f1d9b10fd7858f91ccf44c96ea3fd2cc531d1
4,874
py
Python
interlacer/utils.py
MedicalVisionGroup/interlacer
60c14782729031a2af48c27fddb649d37cdca0e9
[ "MIT" ]
null
null
null
interlacer/utils.py
MedicalVisionGroup/interlacer
60c14782729031a2af48c27fddb649d37cdca0e9
[ "MIT" ]
null
null
null
interlacer/utils.py
MedicalVisionGroup/interlacer
60c14782729031a2af48c27fddb649d37cdca0e9
[ "MIT" ]
null
null
null
import numpy as np import tensorflow as tf def split_reim(array): """Split a complex valued matrix into its real and imaginary parts. Args: array(complex): An array of shape (batch_size, N, N) or (batch_size, N, N, 1) Returns: split_array(float): An array of shape (batch_size, N, N, 2) conta...
29.719512
147
0.603816
219f201f5364e4e40d6488c12a95af6558fcad59
233
py
Python
workspace/src/barc/src/modify_cam_param.py
Cyphysecurity/darc
2fe4f35d4ac7dc52606f30b86bf52464d6ca0ac3
[ "MIT" ]
1
2019-07-31T11:55:34.000Z
2019-07-31T11:55:34.000Z
workspace/src/barc/src/modify_cam_param.py
Cyphysecurity/darc
2fe4f35d4ac7dc52606f30b86bf52464d6ca0ac3
[ "MIT" ]
4
2020-02-12T00:54:30.000Z
2021-06-10T20:26:26.000Z
workspace/src/barc/src/modify_cam_param.py
Cyphysecurity/darc
2fe4f35d4ac7dc52606f30b86bf52464d6ca0ac3
[ "MIT" ]
null
null
null
#!/usr/bin/env python ''' modify camera parameters using v4l ''' import os # change /dev/video6 resolution #os.system('v4l2-ctl -d /dev/video6 -v width=640,height=480') os.system('v4l2-ctl -d /dev/video6 -v width=160,height=120')
19.416667
61
0.703863
21a04335d89c7d0c5916d0d77c189c61e2cfb328
24,611
py
Python
GenerateSyntheticData.py
dragonfly-asl/SyntheticDataGenerator
368b8e6ba0489053e98abd7bc0b720b71d6cae99
[ "Apache-2.0" ]
null
null
null
GenerateSyntheticData.py
dragonfly-asl/SyntheticDataGenerator
368b8e6ba0489053e98abd7bc0b720b71d6cae99
[ "Apache-2.0" ]
null
null
null
GenerateSyntheticData.py
dragonfly-asl/SyntheticDataGenerator
368b8e6ba0489053e98abd7bc0b720b71d6cae99
[ "Apache-2.0" ]
1
2019-06-25T15:05:02.000Z
2019-06-25T15:05:02.000Z
# /bin/env python # coding: utf-8 from __future__ import print_function import sys import argparse import logging import os import math import cv2 import numpy as np if __name__ == "__main__": argparser = argparse.ArgumentParser() argparser.add_argument('-l', '--log-level', default='INFO', help="log-level ...
48.35167
135
0.557027
21a24250ffe367e1f9da7b56a97743385de6126c
10,065
py
Python
front/services/ingest_matches_service.py
jimixjay/acestats
015a26e084fda70ab5754b78ce2e5157fee29d10
[ "Apache-2.0" ]
null
null
null
front/services/ingest_matches_service.py
jimixjay/acestats
015a26e084fda70ab5754b78ce2e5157fee29d10
[ "Apache-2.0" ]
null
null
null
front/services/ingest_matches_service.py
jimixjay/acestats
015a26e084fda70ab5754b78ce2e5157fee29d10
[ "Apache-2.0" ]
1
2021-01-15T19:56:41.000Z
2021-01-15T19:56:41.000Z
from service_objects import services import numpy as np import pandas as pd from django.db import connection import datetime from front.models import Match, Match_Stats, Player, Tourney, Tourney_Level, Surface
52.696335
221
0.525286
21a39959b787e7f048c3956b733c098a43568590
5,583
py
Python
test/test_websocket.py
lmacken/binance-chain-python
483e51394ebc9f9998f5248910ac7b7dff7198f9
[ "MIT" ]
22
2019-04-27T02:14:52.000Z
2021-01-04T00:37:41.000Z
test/test_websocket.py
redquantum/binance-chain-python
483e51394ebc9f9998f5248910ac7b7dff7198f9
[ "MIT" ]
7
2019-04-28T20:57:49.000Z
2021-09-03T03:39:22.000Z
test/test_websocket.py
redquantum/binance-chain-python
483e51394ebc9f9998f5248910ac7b7dff7198f9
[ "MIT" ]
9
2019-04-27T23:43:51.000Z
2021-04-15T18:09:51.000Z
# Copyright 2019, Luke Macken, Kim Bui, and the binance-chain-python contributors # SPDX-License-Identifier: MIT """ Binance DEX WebSocket Test Suite """ import asyncio import pytest from binancechain import HTTPClient, WebSocket
21.980315
81
0.675981
21a3bdf657a4e6add202d0974b1f52333a1151c2
2,590
py
Python
opentaxii/config.py
eclecticiq/OpenTAXII
d04d0fcc65809cf8fd7baf0c69019c45c4243080
[ "BSD-3-Clause" ]
84
2018-04-16T18:35:27.000Z
2022-03-02T15:50:22.000Z
opentaxii/config.py
eclecticiq/OpenTAXII
d04d0fcc65809cf8fd7baf0c69019c45c4243080
[ "BSD-3-Clause" ]
90
2018-04-18T08:56:50.000Z
2022-03-30T12:42:21.000Z
opentaxii/config.py
eclecticiq/OpenTAXII
d04d0fcc65809cf8fd7baf0c69019c45c4243080
[ "BSD-3-Clause" ]
54
2018-05-05T03:10:39.000Z
2022-03-11T16:26:49.000Z
import os from collections import defaultdict import yaml from libtaxii.constants import ST_TYPES_10, ST_TYPES_11 current_dir = os.path.dirname(os.path.realpath(__file__)) ENV_VAR_PREFIX = 'OPENTAXII_' CONFIG_ENV_VAR = 'OPENTAXII_CONFIG' DEFAULT_CONFIG_NAME = 'defaults.yml' DEFAULT_CONFIG = os.path.join(current_dir...
32.375
76
0.666795
21a5fba047b0e38c889d6a4e058f430fb4400ae9
56,108
py
Python
classifier/quant_trees.py
bradysalz/MinVAD
4d4a396b381bbb4714b434f60e09fb2fa7d3c474
[ "MIT" ]
null
null
null
classifier/quant_trees.py
bradysalz/MinVAD
4d4a396b381bbb4714b434f60e09fb2fa7d3c474
[ "MIT" ]
2
2016-12-09T21:16:28.000Z
2016-12-09T21:29:10.000Z
classifier/quant_trees.py
bradysalz/MinVAD
4d4a396b381bbb4714b434f60e09fb2fa7d3c474
[ "MIT" ]
null
null
null
################################################## ################################################## ################################################## ################################################## ################################################## ################################################## ##############...
40.191977
58
0.55247
21a698ad6f8035ce96d6e79e8a6eb4d69be7b56f
1,193
py
Python
DS_Alog_Python/array_employeelist.py
abhigyan709/dsalgo
868448834b22e06e572b4a0b4ba85cb1b0c6d7ee
[ "MIT" ]
1
2021-06-03T10:20:50.000Z
2021-06-03T10:20:50.000Z
DS_Alog_Python/array_employeelist.py
abhigyan709/dsalgo
868448834b22e06e572b4a0b4ba85cb1b0c6d7ee
[ "MIT" ]
null
null
null
DS_Alog_Python/array_employeelist.py
abhigyan709/dsalgo
868448834b22e06e572b4a0b4ba85cb1b0c6d7ee
[ "MIT" ]
null
null
null
emp1=Employee("Kevin",24089, "Kevin_xyz@organization.com") emp2=Employee("Jack",56789,"Jack_xyz@organization.com") emp3=Employee("Jackson",67895,"Jackson_xyz@organization.com") emp4=Employee("Henry Jack",23456,"Jacky_xyz@organization.com") emp_list=[emp1,emp2,emp3,emp4] org_dir=OrganizationDirectory(emp_list) #Sear...
27.744186
78
0.674769