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
1c4353fef35e15660683e78f01919ecd4744808d
574
py
Python
flask_monitoringdashboard/test/core/profiler/util/test_stringhash.py
timgates42/Flask-MonitoringDashboard
0404b05b9a8f1917796e0f314a77a53a754a0b15
[ "MIT" ]
3
2020-07-17T05:37:41.000Z
2021-09-06T19:46:15.000Z
flask_monitoringdashboard/test/core/profiler/util/test_stringhash.py
timgates42/Flask-MonitoringDashboard
0404b05b9a8f1917796e0f314a77a53a754a0b15
[ "MIT" ]
null
null
null
flask_monitoringdashboard/test/core/profiler/util/test_stringhash.py
timgates42/Flask-MonitoringDashboard
0404b05b9a8f1917796e0f314a77a53a754a0b15
[ "MIT" ]
1
2020-11-21T01:25:51.000Z
2020-11-21T01:25:51.000Z
import unittest from flask_monitoringdashboard.core.profiler.util.stringHash import StringHash
31.888889
78
0.709059
1c45545157e97f9c4e1cc68b6cafb654b5d57282
439
py
Python
news/views.py
valch85/newssite
ef612a7bde4ff1d6e1e35f5cc4ec9407f031270e
[ "Apache-2.0" ]
null
null
null
news/views.py
valch85/newssite
ef612a7bde4ff1d6e1e35f5cc4ec9407f031270e
[ "Apache-2.0" ]
2
2020-02-12T00:16:37.000Z
2020-06-05T20:42:49.000Z
news/views.py
valch85/newssite
ef612a7bde4ff1d6e1e35f5cc4ec9407f031270e
[ "Apache-2.0" ]
null
null
null
from django.shortcuts import render, get_object_or_404 from .models import News # Create your views here.
27.4375
62
0.728929
1c4559619debbfab81b5667b6115f6d8185615c5
1,229
py
Python
benchmark/generate_libs/jamplus.py
chadaustin/ibb
ea1e25cc53a1ad7c302a12d95fc704c443924dff
[ "MIT" ]
4
2015-04-09T17:24:58.000Z
2019-07-02T12:05:56.000Z
benchmark/generate_libs/jamplus.py
chadaustin/ibb
ea1e25cc53a1ad7c302a12d95fc704c443924dff
[ "MIT" ]
null
null
null
benchmark/generate_libs/jamplus.py
chadaustin/ibb
ea1e25cc53a1ad7c302a12d95fc704c443924dff
[ "MIT" ]
1
2019-11-08T15:38:29.000Z
2019-11-08T15:38:29.000Z
#!/usr/bin/python import os.path import cppcodebase import random
29.261905
107
0.643613
1c45bee0b72f7290f98a152d2fd4047f74e16502
8,482
py
Python
inbm/dispatcher-agent/dispatcher/fota/fota.py
intel/intel-inb-manageability
cdb17765120857fd41cacb838d6ee6e34e1f5047
[ "Apache-2.0" ]
5
2021-12-13T21:19:31.000Z
2022-01-18T18:29:43.000Z
inbm/dispatcher-agent/dispatcher/fota/fota.py
intel/intel-inb-manageability
cdb17765120857fd41cacb838d6ee6e34e1f5047
[ "Apache-2.0" ]
45
2021-12-30T17:21:09.000Z
2022-03-29T22:47:32.000Z
inbm/dispatcher-agent/dispatcher/fota/fota.py
intel/intel-inb-manageability
cdb17765120857fd41cacb838d6ee6e34e1f5047
[ "Apache-2.0" ]
4
2022-01-26T17:42:54.000Z
2022-03-30T04:48:04.000Z
""" FOTA update tool which is called from the dispatcher during installation Copyright (C) 2017-2022 Intel Corporation SPDX-License-Identifier: Apache-2.0 """ import logging import os import platform from threading import Timer from typing import Any, Optional, Mapping from future.moves.urllib.parse impo...
42.838384
113
0.630512
1c46065a2d7cec80d32a5396991fd1b74b074e66
8,727
py
Python
syncflux.py
nagylzs/syncflux
c070267065cad817708d0680e17bfe5f8942310f
[ "Apache-2.0" ]
null
null
null
syncflux.py
nagylzs/syncflux
c070267065cad817708d0680e17bfe5f8942310f
[ "Apache-2.0" ]
null
null
null
syncflux.py
nagylzs/syncflux
c070267065cad817708d0680e17bfe5f8942310f
[ "Apache-2.0" ]
null
null
null
import copy import datetime import sys import os import time import argparse import traceback import pytz import syncthing from influxdb import InfluxDBClient import yaml from yaml2dataclass import Schema, SchemaPath from typing import Optional, Dict, Type, List from dataclasses import dataclass, asdict, field ...
33.694981
119
0.605936
1c48374373ae16db6dbcfd16316661e717dab9fc
5,230
py
Python
tests/input/pdf/test_pdf.py
asweeney86/preview-generator
354cbac1c131ebbb81cd9cfd9b4bc0c184d10103
[ "MIT" ]
null
null
null
tests/input/pdf/test_pdf.py
asweeney86/preview-generator
354cbac1c131ebbb81cd9cfd9b4bc0c184d10103
[ "MIT" ]
null
null
null
tests/input/pdf/test_pdf.py
asweeney86/preview-generator
354cbac1c131ebbb81cd9cfd9b4bc0c184d10103
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import os import re import shutil import typing from PIL import Image from PyPDF2 import PdfFileReader import PyPDF2.utils import pytest from preview_generator.exception import UnavailablePreviewType from preview_generator.manager import PreviewManager from tests import test_utils CURRENT_DI...
39.621212
100
0.759656
1c4921cfeca9e8e27f2d0b623dc27dabba9abc92
10,495
py
Python
ipt/ipt_filter_contour_by_size.py
tpmp-inra/ipapi
b0f6be8960a20dbf95ef9df96efdd22bd6e031c5
[ "MIT" ]
1
2020-06-30T06:53:36.000Z
2020-06-30T06:53:36.000Z
ipt/ipt_filter_contour_by_size.py
tpmp-inra/ipapi
b0f6be8960a20dbf95ef9df96efdd22bd6e031c5
[ "MIT" ]
null
null
null
ipt/ipt_filter_contour_by_size.py
tpmp-inra/ipapi
b0f6be8960a20dbf95ef9df96efdd22bd6e031c5
[ "MIT" ]
null
null
null
from ipso_phen.ipapi.base.ipt_abstract import IptBase from ipso_phen.ipapi.tools import regions import numpy as np import cv2 import logging logger = logging.getLogger(__name__) from ipso_phen.ipapi.base import ip_common as ipc
38.443223
107
0.429252
1c49c9837d339902372100015afa8dd09aa825df
718
py
Python
tests/main.py
deeso/json-search-replace
d1dd75cfaecb65bf8fcbad0c80a0bd839eccaa8d
[ "Apache-2.0" ]
1
2019-02-08T14:42:45.000Z
2019-02-08T14:42:45.000Z
tests/main.py
deeso/manipin-json
d1dd75cfaecb65bf8fcbad0c80a0bd839eccaa8d
[ "Apache-2.0" ]
null
null
null
tests/main.py
deeso/manipin-json
d1dd75cfaecb65bf8fcbad0c80a0bd839eccaa8d
[ "Apache-2.0" ]
null
null
null
from wrapper_tests.upsert_test import * from wrapper_tests.upsertvaluedict_test import * import os import logging import sys import argparse import signal logging.getLogger().setLevel(logging.DEBUG) ch = logging.StreamHandler(sys.stdout) ch.setLevel(logging.DEBUG) formatter = logging.Formatter('[%(asctime)s - %(name)s...
26.592593
71
0.721448
1c4b4d3e7fde53ff67c2f5b9ffd3aee5b505137c
598
py
Python
Sending_email/email.py
Satyam-Bhalla/Python-Scripts
39c46a362acd63cc5d1b9ab57ecb7250eaff35f7
[ "MIT" ]
8
2018-09-25T16:30:12.000Z
2022-03-25T05:13:43.000Z
Sending_email/email.py
Satyam-Bhalla/Python-Scripts
39c46a362acd63cc5d1b9ab57ecb7250eaff35f7
[ "MIT" ]
1
2021-03-31T18:43:43.000Z
2021-03-31T18:43:43.000Z
Sending_email/email.py
Satyam-Bhalla/Python-Scripts
39c46a362acd63cc5d1b9ab57ecb7250eaff35f7
[ "MIT" ]
6
2018-01-29T19:00:42.000Z
2022-03-25T05:13:47.000Z
import smtplib gmail_user = 'your email' gmail_password = 'your password' sent_from = gmail_user to = ['reciever email'] #Create a list for all the recievers subject = 'OMG Super Important Message' body = 'Hey, what\'s up?\n- You' email_text = """\ From: %s To: %s Subject: %s %s """ % (sent_from, ", "....
21.357143
61
0.653846
1c4b532b4b156dd08dc3bcca54d167230e8c8b2a
4,532
py
Python
FlaskDaemon/load_test.py
caffeinate/test-pylot
3380208ea0e7ee5fed4299f22ab592a3d3232b3a
[ "MIT" ]
null
null
null
FlaskDaemon/load_test.py
caffeinate/test-pylot
3380208ea0e7ee5fed4299f22ab592a3d3232b3a
[ "MIT" ]
1
2021-10-31T17:46:54.000Z
2021-10-31T17:46:54.000Z
FlaskDaemon/load_test.py
caffeinate/test-pylot
3380208ea0e7ee5fed4299f22ab592a3d3232b3a
[ "MIT" ]
1
2020-07-20T04:10:40.000Z
2020-07-20T04:10:40.000Z
''' Created on 11 Sep 2015 @author: si ''' import json import random import time from threading import Thread # import urllib import urllib2 from Queue import Queue import logging logger = logging.getLogger(__name__) API_URL = "http://127.0.0.1:5000/" if __name__ == '__main__': l = LoadTest(10,30) l.go() ...
29.23871
86
0.559797
1c4b641cf08d14aaba12ee7b055b0523dd40710b
407
py
Python
urls.py
jeylani99/Real-Estate
5ccb4bf23c73b4acb77427faa202a15216ef58c3
[ "Apache-2.0" ]
null
null
null
urls.py
jeylani99/Real-Estate
5ccb4bf23c73b4acb77427faa202a15216ef58c3
[ "Apache-2.0" ]
null
null
null
urls.py
jeylani99/Real-Estate
5ccb4bf23c73b4acb77427faa202a15216ef58c3
[ "Apache-2.0" ]
null
null
null
from django.contrib import admin from django.conf.urls import include,url from .import views urlpatterns = [ url(r'^$', views.IndexView.as_view(),name='index'), #homeapp_detail_view_url url(r'^(?P<pk>[0-9]+)/$',views.LocationView.as_view(),name='property'), #homeapp/detailview/moredetailview url(r'...
29.071429
88
0.668305
1c4bdbc2c162e12eac3d923f38fe6b53d36966ae
541
py
Python
main.py
ngh3053/auto_spacing_with_tensorflow
0569b734c087d13cdf6cbb8e79dd8c579d7e66e4
[ "MIT" ]
null
null
null
main.py
ngh3053/auto_spacing_with_tensorflow
0569b734c087d13cdf6cbb8e79dd8c579d7e66e4
[ "MIT" ]
null
null
null
main.py
ngh3053/auto_spacing_with_tensorflow
0569b734c087d13cdf6cbb8e79dd8c579d7e66e4
[ "MIT" ]
null
null
null
from utils import * from model import Model2 if __name__ == '__main__': train_data = DataLoader('../data/trainX.txt', '../data/trainY.txt') test_data = DataLoader('../data/testX.txt', '../data/testY.txt') train_data.set_batch(100) test_data.set_batch(100) char_dic = CharDic([train_data]...
28.473684
72
0.608133
1c4c3d7288804166b00482d9413cd64068adedd3
3,475
py
Python
src/sardana/taurus/qt/qtgui/extra_macroexecutor/macrodescriptionviewer.py
marc2332/sardana
48dc9191baaa63f6c714d8c025e8f3f96548ad26
[ "CC-BY-3.0" ]
43
2016-11-25T15:21:23.000Z
2021-08-20T06:09:40.000Z
src/sardana/taurus/qt/qtgui/extra_macroexecutor/macrodescriptionviewer.py
marc2332/sardana
48dc9191baaa63f6c714d8c025e8f3f96548ad26
[ "CC-BY-3.0" ]
1,263
2016-11-25T15:58:37.000Z
2021-11-02T22:23:47.000Z
src/sardana/taurus/qt/qtgui/extra_macroexecutor/macrodescriptionviewer.py
marc2332/sardana
48dc9191baaa63f6c714d8c025e8f3f96548ad26
[ "CC-BY-3.0" ]
58
2016-11-21T11:33:55.000Z
2021-09-01T06:21:21.000Z
#!/usr/bin/env python ############################################################################## ## # This file is part of Sardana ## # http://www.sardana-controls.org/ ## # Copyright 2011 CELLS / ALBA Synchrotron, Bellaterra, Spain ## # Sardana is free software: you can redistribute it and/or modify # it under th...
35.10101
90
0.649784
1c4d007b31f3f642fe520a7abaa4b88348fd22fe
179
py
Python
torch/metrics/accuracy_score.py
LilDataScientist/PyTorch-From-Scratch
ae3c0bffc5a36a9a7c123b98f52bdaa32fbedef6
[ "MIT" ]
null
null
null
torch/metrics/accuracy_score.py
LilDataScientist/PyTorch-From-Scratch
ae3c0bffc5a36a9a7c123b98f52bdaa32fbedef6
[ "MIT" ]
null
null
null
torch/metrics/accuracy_score.py
LilDataScientist/PyTorch-From-Scratch
ae3c0bffc5a36a9a7c123b98f52bdaa32fbedef6
[ "MIT" ]
null
null
null
import numpy as np
22.375
53
0.664804
1c4e17f4910c6d5e94aabd5e46b41369a206e931
462
py
Python
asaas/financial_transactions.py
marlonjsilva/asaas_sdk_python
871a199e8156d9baa9f78972232feee38b0608bb
[ "MIT" ]
null
null
null
asaas/financial_transactions.py
marlonjsilva/asaas_sdk_python
871a199e8156d9baa9f78972232feee38b0608bb
[ "MIT" ]
4
2022-02-16T13:53:36.000Z
2022-02-16T14:10:40.000Z
asaas/financial_transactions.py
marlonjsilva/asaas_sdk_python
871a199e8156d9baa9f78972232feee38b0608bb
[ "MIT" ]
null
null
null
from asaas.typing import SyncAsync from typing import Any, Optional, Dict
25.666667
66
0.588745
1c4fabe61f50bb8ab5d328236ac8daab3e74249e
17,672
py
Python
datahub/core/serializers.py
uktrade/data-hub-api
c698cba533ff002293b821d01916f6334549f778
[ "MIT" ]
6
2019-12-02T16:11:24.000Z
2022-03-18T10:02:02.000Z
datahub/core/serializers.py
uktrade/data-hub-api
c698cba533ff002293b821d01916f6334549f778
[ "MIT" ]
1,696
2019-10-31T14:08:37.000Z
2022-03-29T12:35:57.000Z
datahub/core/serializers.py
uktrade/data-hub-api
c698cba533ff002293b821d01916f6334549f778
[ "MIT" ]
9
2019-11-22T12:42:03.000Z
2021-09-03T14:25:05.000Z
from functools import partial from uuid import UUID from dateutil.parser import parse as dateutil_parse from django.apps import apps from django.conf import settings from django.core.exceptions import ObjectDoesNotExist from rest_framework import serializers from rest_framework.exceptions import ValidationError from r...
33.093633
99
0.587992
1c50b9af34c1306cdbc9fec048d28309381c28e4
4,763
py
Python
samples/s07-rigid-objects/main.py
nomadsinteractive/ark
52f84c6dbd5ca6bdd07d450b3911be1ffd995922
[ "Apache-2.0" ]
5
2018-03-28T09:14:55.000Z
2018-04-02T11:54:33.000Z
samples/s07-rigid-objects/main.py
nomadsinteractive/ark
52f84c6dbd5ca6bdd07d450b3911be1ffd995922
[ "Apache-2.0" ]
null
null
null
samples/s07-rigid-objects/main.py
nomadsinteractive/ark
52f84c6dbd5ca6bdd07d450b3911be1ffd995922
[ "Apache-2.0" ]
null
null
null
import math import random from ark import dear_imgui, ApplicationFacade, Arena, Event, Integer, Collider, RenderObject, Size, Camera, Vec3, Numeric if __name__ == '__main__': main(Application(_application))
43.3
153
0.669116
1c51a22587be89037e69f604118ecdbeda84cab5
11,693
py
Python
jamf/models/computer_extension_attribute.py
jensenbox/python-jamf
85213085b1064a00375a7aa7df5e33c19f5178eb
[ "RSA-MD" ]
1
2021-04-20T15:28:57.000Z
2021-04-20T15:28:57.000Z
jamf/models/computer_extension_attribute.py
jensenbox/python-jamf
85213085b1064a00375a7aa7df5e33c19f5178eb
[ "RSA-MD" ]
null
null
null
jamf/models/computer_extension_attribute.py
jensenbox/python-jamf
85213085b1064a00375a7aa7df5e33c19f5178eb
[ "RSA-MD" ]
null
null
null
# coding: utf-8 """ Jamf Pro API ## Overview This is a sample Jamf Pro server which allows for usage without any authentication. The Jamf Pro environment which supports the Try it Out functionality does not run the current beta version of Jamf Pro, thus any newly added endpoints will result in an error and sh...
33.408571
342
0.625673
1c5289b76fb10d8b256a4000027a462353b8a389
1,342
py
Python
SSOKeyGen/ssokeygendialog.py
chrcoe/sso-keygen
c149f6202fbecb38874c75bf82e0d4857d1249f9
[ "MIT" ]
null
null
null
SSOKeyGen/ssokeygendialog.py
chrcoe/sso-keygen
c149f6202fbecb38874c75bf82e0d4857d1249f9
[ "MIT" ]
null
null
null
SSOKeyGen/ssokeygendialog.py
chrcoe/sso-keygen
c149f6202fbecb38874c75bf82e0d4857d1249f9
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'ssokeygendialog.ui' # # Created: Sun Feb 1 12:33:36 2015 # by: PyQt5 UI code generator 5.4 # # WARNING! All changes made in this file will be lost! from PyQt5 import QtCore, QtGui, QtWidgets
38.342857
106
0.708644
1c5370b938a0a9b556d9850b79dfef4883c667c0
4,138
py
Python
util/n_download_util.py
TwrFyr/n-hen.py
8d20639ee78cc34e4333fb247574ff10af81556c
[ "MIT" ]
null
null
null
util/n_download_util.py
TwrFyr/n-hen.py
8d20639ee78cc34e4333fb247574ff10af81556c
[ "MIT" ]
22
2020-12-04T15:16:36.000Z
2021-04-29T12:20:04.000Z
util/n_download_util.py
TwrFyr/n-henpy
8d20639ee78cc34e4333fb247574ff10af81556c
[ "MIT" ]
null
null
null
import urllib.request import os from typing import List from util.n_util import NUser from util.n_util import get_n_entry import time import threading from util.array_util import slice_array delay: float = 2.5 def save_files_to_dir(file_url_list: List[str], path: str, update=None, thread_count: int = 1) -> None: ...
38.672897
150
0.646931
1c542217eb772ffd5114bee20efa5d974df6a3d5
2,907
py
Python
stable-baselines/tests/test_deterministic.py
princeton-vl/PackIt
9894d252c5238d582cba7c3d19540f89d47e4166
[ "BSD-3-Clause" ]
49
2020-07-24T18:17:12.000Z
2022-01-04T15:30:52.000Z
stable-baselines/tests/test_deterministic.py
princeton-vl/PackIt
9894d252c5238d582cba7c3d19540f89d47e4166
[ "BSD-3-Clause" ]
14
2020-07-21T20:21:08.000Z
2022-03-12T00:42:18.000Z
stable-baselines/tests/test_deterministic.py
princeton-vl/PackIt
9894d252c5238d582cba7c3d19540f89d47e4166
[ "BSD-3-Clause" ]
5
2020-07-27T12:35:00.000Z
2021-07-19T03:04:21.000Z
import pytest from stable_baselines import A2C, ACER, ACKTR, DeepQ, DDPG, PPO1, PPO2, TRPO from stable_baselines.ddpg import AdaptiveParamNoiseSpec from stable_baselines.common.identity_env import IdentityEnv, IdentityEnvBox from stable_baselines.common.vec_env import DummyVecEnv PARAM_NOISE_DDPG = AdaptiveParamNoise...
40.943662
112
0.711042
1c547eed055111ebe6fcfe3bbff16bf6a9eb3360
1,129
py
Python
tests/models/tensorflow/convert_to_tensorflow_serving.py
filipecosta90/dlbench
11dd2fb58050c38a4baa429b207aaecad9097ce3
[ "MIT" ]
14
2019-09-14T16:37:39.000Z
2022-03-19T08:28:50.000Z
tests/models/tensorflow/convert_to_tensorflow_serving.py
filipecosta90/dlbench
11dd2fb58050c38a4baa429b207aaecad9097ce3
[ "MIT" ]
40
2019-11-14T16:07:08.000Z
2022-03-29T21:47:15.000Z
tests/models/tensorflow/convert_to_tensorflow_serving.py
filipecosta90/dlbench
11dd2fb58050c38a4baa429b207aaecad9097ce3
[ "MIT" ]
2
2021-01-07T01:50:53.000Z
2021-02-24T22:22:23.000Z
import tensorflow as tf from tensorflow.python.saved_model import signature_constants from tensorflow.python.saved_model import tag_constants export_dir = './reference/00000002' graph_pb = './creditcardfraud.pb' builder = tf.saved_model.builder.SavedModelBuilder(export_dir) with tf.gfile.GFile(graph_pb, "rb") as f: ...
34.212121
70
0.689105
1c54af7d2bc1fc02891b6239b955a52d082c20b2
936
py
Python
pycuda/characterize.py
grlee77/pycuda
cfb787ac73a523fe4b32eff31ecffac485388bbf
[ "Apache-2.0" ]
null
null
null
pycuda/characterize.py
grlee77/pycuda
cfb787ac73a523fe4b32eff31ecffac485388bbf
[ "Apache-2.0" ]
null
null
null
pycuda/characterize.py
grlee77/pycuda
cfb787ac73a523fe4b32eff31ecffac485388bbf
[ "Apache-2.0" ]
1
2020-08-31T08:52:24.000Z
2020-08-31T08:52:24.000Z
from __future__ import division from __future__ import absolute_import from pycuda.tools import context_dependent_memoize import numpy as np
24
72
0.700855
1c5536cbf34d028ddd3a2b10367f5360508e1251
1,666
py
Python
bopt/transforms.py
georgedeath/bomean
0dad35e0d584cf7c46c9a8cb0445f225875cfa86
[ "MIT" ]
2
2020-05-19T15:48:37.000Z
2021-08-16T10:41:49.000Z
bopt/transforms.py
georgedeath/bomean
0dad35e0d584cf7c46c9a8cb0445f225875cfa86
[ "MIT" ]
null
null
null
bopt/transforms.py
georgedeath/bomean
0dad35e0d584cf7c46c9a8cb0445f225875cfa86
[ "MIT" ]
null
null
null
import torch from scipy.stats import median_absolute_deviation
25.630769
76
0.617047
1c556489b0d99f41db32e59ce5f01f383067703c
2,797
py
Python
pygs/graphserver/compiler/dedupe.py
abyrd/graphserver
42edcad2618635310c57fa6ab4a13974025248ba
[ "BSD-3-Clause-Clear" ]
2
2015-02-25T21:46:02.000Z
2019-04-27T20:22:33.000Z
pygs/graphserver/compiler/dedupe.py
ninowalker/graphserver
dc08070bc6e295986633cf510ca46a2f8d451b92
[ "BSD-3-Clause-Clear" ]
null
null
null
pygs/graphserver/compiler/dedupe.py
ninowalker/graphserver
dc08070bc6e295986633cf510ca46a2f8d451b92
[ "BSD-3-Clause-Clear" ]
null
null
null
# eliminate duplicate service periods from a GTFS database from graphserver.ext.gtfs.gtfsdb import GTFSDatabase import sys from optparse import OptionParser if __name__=='__main__':
39.957143
271
0.631748
1c5786ec0bae08a5ef1c18dbc1ab79a0a17bfc34
105
py
Python
10/01/03/2.py
pylangstudy/201707
c1cc72667f1e0b6e8eef4ee85067d7fa4ca500b6
[ "CC0-1.0" ]
null
null
null
10/01/03/2.py
pylangstudy/201707
c1cc72667f1e0b6e8eef4ee85067d7fa4ca500b6
[ "CC0-1.0" ]
46
2017-06-30T22:19:07.000Z
2017-07-31T22:51:31.000Z
10/01/03/2.py
pylangstudy/201707
c1cc72667f1e0b6e8eef4ee85067d7fa4ca500b6
[ "CC0-1.0" ]
null
null
null
print(MyClass().__repr__())
26.25
61
0.704762
1c57a86a468018b2042fa4b09d8dfca249bb7498
9,562
py
Python
tests/tasks/core/test_core.py
andykawabata/prefect
a11061c19847beeea26616ccaf4b404ad939676b
[ "ECL-2.0", "Apache-2.0" ]
2
2020-09-28T16:24:02.000Z
2020-10-08T17:08:19.000Z
tests/tasks/core/test_core.py
andykawabata/prefect
a11061c19847beeea26616ccaf4b404ad939676b
[ "ECL-2.0", "Apache-2.0" ]
5
2021-06-28T20:52:27.000Z
2022-02-27T13:04:42.000Z
tests/tasks/core/test_core.py
yalaudah/prefect
2f7f92c39a4575119c3268b0415841c6aca5df60
[ "Apache-2.0" ]
1
2020-05-04T13:22:11.000Z
2020-05-04T13:22:11.000Z
import pytest from prefect.core import Edge, Flow, Parameter, Task from prefect.tasks.core import collections from prefect.tasks.core.constants import Constant from prefect.tasks.core.function import FunctionTask
33.787986
87
0.587743
1c57c91d84e8ef886ecab5c688f26666500663aa
536
py
Python
Tree/node.py
philipwerner/python_data_structures
554c38376b732f65c5c168d0e1bd30bea3d1ab6b
[ "MIT" ]
null
null
null
Tree/node.py
philipwerner/python_data_structures
554c38376b732f65c5c168d0e1bd30bea3d1ab6b
[ "MIT" ]
null
null
null
Tree/node.py
philipwerner/python_data_structures
554c38376b732f65c5c168d0e1bd30bea3d1ab6b
[ "MIT" ]
null
null
null
"""Node class module for Binary Tree."""
26.8
88
0.585821
1c5842430ac7ddf81b0dae7e72f5e8595722304e
26,713
py
Python
qutip/operators.py
pschindler/qutip
dc399135b77a01077898e13bb7d30d60db9b6e67
[ "BSD-3-Clause" ]
1
2018-05-31T17:38:03.000Z
2018-05-31T17:38:03.000Z
qutip/operators.py
pschindler/qutip
dc399135b77a01077898e13bb7d30d60db9b6e67
[ "BSD-3-Clause" ]
3
2021-08-23T19:00:52.000Z
2021-08-24T21:38:04.000Z
qutip/operators.py
pschindler/qutip
dc399135b77a01077898e13bb7d30d60db9b6e67
[ "BSD-3-Clause" ]
2
2017-08-11T11:14:52.000Z
2022-03-13T21:37:47.000Z
# This file is part of QuTiP: Quantum Toolbox in Python. # # Copyright (c) 2011 and later, Paul D. Nation and Robert J. Johansson. # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: ...
26.370188
79
0.573129
1c59215728acaff76dbcdca05ce20bf9c254f9f4
1,627
py
Python
tests/test_deepsv.py
lsantuari/deepsv
debaa1442d1d97b8220be70e12321cf047d3e6a0
[ "Apache-2.0" ]
null
null
null
tests/test_deepsv.py
lsantuari/deepsv
debaa1442d1d97b8220be70e12321cf047d3e6a0
[ "Apache-2.0" ]
null
null
null
tests/test_deepsv.py
lsantuari/deepsv
debaa1442d1d97b8220be70e12321cf047d3e6a0
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import pytest from deepsv import deepsv from unittest.mock import patch """Tests for the deepsv module. """ # Fixture example
22.287671
71
0.695144
1c59d4c3c8cb7118c29dce871107ae825dc23c99
8,959
py
Python
tcex/bin/dep.py
phuerta-tc/tcex
4a4e800e1a6114c1fde663f8c3ab7a1d58045c79
[ "Apache-2.0" ]
null
null
null
tcex/bin/dep.py
phuerta-tc/tcex
4a4e800e1a6114c1fde663f8c3ab7a1d58045c79
[ "Apache-2.0" ]
null
null
null
tcex/bin/dep.py
phuerta-tc/tcex
4a4e800e1a6114c1fde663f8c3ab7a1d58045c79
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python """TcEx Dependencies Command""" # standard library import os import platform import shutil import subprocess # nosec import sys from distutils.version import StrictVersion # pylint: disable=no-name-in-module from pathlib import Path from typing import List from urllib.parse import quote # third...
36.125
99
0.58444
1c5a7f175c98d892dc83db59726cb2f27a8bed94
2,198
py
Python
parser/fase2/team20/execution/executeSentence2.py
LopDlMa/tytus
0b43ee1c7300cb11ddbe593e08239321b71dc443
[ "MIT" ]
null
null
null
parser/fase2/team20/execution/executeSentence2.py
LopDlMa/tytus
0b43ee1c7300cb11ddbe593e08239321b71dc443
[ "MIT" ]
null
null
null
parser/fase2/team20/execution/executeSentence2.py
LopDlMa/tytus
0b43ee1c7300cb11ddbe593e08239321b71dc443
[ "MIT" ]
null
null
null
from .AST.sentence import * from .AST.expression import * from .AST.error import * import sys sys.path.append("../") from console import *
36.032787
135
0.641947
1c5b0f1bcbcc57bddee91b24e585d8faf96244eb
5,592
py
Python
src/test/cli/component.py
huseyinbolt/cord-tester
ed9b79916e6326a45bfaf3227b8ff922d76df4f1
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
src/test/cli/component.py
huseyinbolt/cord-tester
ed9b79916e6326a45bfaf3227b8ff922d76df4f1
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
src/test/cli/component.py
huseyinbolt/cord-tester
ed9b79916e6326a45bfaf3227b8ff922d76df4f1
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
# Copyright 2017-present Open Networking Foundation # # 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...
35.392405
76
0.619456
1c5cd63de747901926f8ddd0a4d149ca05999677
2,575
py
Python
python-framework/handlers/base/auth.py
huangxingx/python-framework
a62618b0ee5ecff9de426327892cdd690d10510d
[ "MIT" ]
7
2019-10-24T03:26:22.000Z
2019-10-27T14:55:07.000Z
python-framework/handlers/base/auth.py
PJoemu/python-framework
a62618b0ee5ecff9de426327892cdd690d10510d
[ "MIT" ]
3
2021-06-08T19:13:10.000Z
2022-01-13T00:38:48.000Z
python-framework/handlers/base/auth.py
PJoemu/python-framework
a62618b0ee5ecff9de426327892cdd690d10510d
[ "MIT" ]
2
2019-10-25T03:54:51.000Z
2020-06-28T08:50:12.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- # @author: x.huang # @date:17-8-4 import logging from pony.orm import db_session from handlers.base.base import BaseRequestHandler
32.1875
107
0.533204
1c5d3932d3d58eb3852f548752bb665e5c02d910
475
py
Python
pysol/core/helpers.py
lotfio/pysol
34fac6d1ec246a7a037d8237e00974a9a9548faa
[ "MIT" ]
2
2019-10-09T21:58:20.000Z
2020-01-08T07:29:28.000Z
pysol/core/helpers.py
lotfio/pysol
34fac6d1ec246a7a037d8237e00974a9a9548faa
[ "MIT" ]
null
null
null
pysol/core/helpers.py
lotfio/pysol
34fac6d1ec246a7a037d8237e00974a9a9548faa
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- #| This file is part of cony #| #| @package Pysol python cli application #| @author <lotfio lakehal> #| @license MIT #| @version 0.1.0 #| @copyright 2019 lotfio lakehal import sys # load module function # this function loads a module by string name
23.75
53
0.673684
1c5dc3f5290f019cca3cade7daba3d9be28fa2da
6,387
py
Python
autograd_hacks/test_autograd_hacks.py
jusjusjus/autograd-hacks
c12556d03e40cccaa0e70e14b0120b723002ed9e
[ "Unlicense" ]
1
2020-05-01T12:14:43.000Z
2020-05-01T12:14:43.000Z
autograd_hacks/test_autograd_hacks.py
jusjusjus/autograd-hacks
c12556d03e40cccaa0e70e14b0120b723002ed9e
[ "Unlicense" ]
null
null
null
autograd_hacks/test_autograd_hacks.py
jusjusjus/autograd-hacks
c12556d03e40cccaa0e70e14b0120b723002ed9e
[ "Unlicense" ]
null
null
null
import torch import torch.nn as nn import torch.nn.functional as F import pytest from . import autograd_hacks # Autograd helpers, from https://gist.github.com/apaszke/226abdf867c4e9d6698bd198f3b45fb7 def jacobian(y: torch.Tensor, x: torch.Tensor, create_graph=False): jac = [] flat_y = y.reshape(-1) ...
29.706977
102
0.614686
1c5e34faccefb41600dc36e2445e46683f4cb6c1
5,213
py
Python
tests/test_command.py
paulfurley/Mailpile
f89611d916e41e74dd00997327a2c2d042a96399
[ "Apache-2.0" ]
1
2017-04-19T11:10:05.000Z
2017-04-19T11:10:05.000Z
tests/test_command.py
paulfurley/Mailpile
f89611d916e41e74dd00997327a2c2d042a96399
[ "Apache-2.0" ]
null
null
null
tests/test_command.py
paulfurley/Mailpile
f89611d916e41e74dd00997327a2c2d042a96399
[ "Apache-2.0" ]
null
null
null
import unittest import mailpile from mock import patch from mailpile.commands import Action as action from tests import MailPileUnittest if __name__ == '__main__': unittest.main()
32.378882
87
0.619029
1c5fd36ae0b1a46a987890321b0748ee13ed63f6
7,739
py
Python
navrep/envs/rosnavtrainencodedenv.py
ReykCS/navrep
22ee4727268188414a8121f069e45c2ab798ca19
[ "MIT" ]
null
null
null
navrep/envs/rosnavtrainencodedenv.py
ReykCS/navrep
22ee4727268188414a8121f069e45c2ab798ca19
[ "MIT" ]
null
null
null
navrep/envs/rosnavtrainencodedenv.py
ReykCS/navrep
22ee4727268188414a8121f069e45c2ab798ca19
[ "MIT" ]
null
null
null
from gym import spaces import numpy as np from scipy import interpolate import yaml from navrep.envs.navreptrainenv import NavRepTrainEnv from navrep.rosnav_models.utils.reward import RewardCalculator from navrep.rosnav_models.utils.reward import RewardCalculator
35.663594
127
0.580178
1c6030cb89b906c901110530b42acd2d1d95f2a5
9,789
py
Python
pdm/models/repositories.py
gaojiuli/pdm
9aedd12e864b57826e850a10eeea45900bb62aad
[ "MIT" ]
1
2021-02-04T19:43:38.000Z
2021-02-04T19:43:38.000Z
pdm/models/repositories.py
gaojiuli/pdm
9aedd12e864b57826e850a10eeea45900bb62aad
[ "MIT" ]
null
null
null
pdm/models/repositories.py
gaojiuli/pdm
9aedd12e864b57826e850a10eeea45900bb62aad
[ "MIT" ]
null
null
null
from __future__ import annotations import sys from functools import wraps from typing import TYPE_CHECKING, Callable, Dict, Iterable, List, Optional, Tuple from pdm._types import CandidateInfo, Source from pdm.context import context from pdm.exceptions import CandidateInfoNotFound, CorruptedCacheError from pdm.models...
39.156
88
0.629073
1c6036ce4a4bea03f2bf60037b8ba69bf71a83e1
713
py
Python
tests/backends/test_cookie.py
euri10/starsessions
6bd258a0f94d30b6ec4a8da41910f97c5dabbe54
[ "MIT" ]
31
2021-07-15T13:00:06.000Z
2022-03-17T08:25:52.000Z
tests/backends/test_cookie.py
euri10/starsessions
6bd258a0f94d30b6ec4a8da41910f97c5dabbe54
[ "MIT" ]
6
2021-09-01T15:25:20.000Z
2022-03-13T07:29:19.000Z
tests/backends/test_cookie.py
euri10/starsessions
6bd258a0f94d30b6ec4a8da41910f97c5dabbe54
[ "MIT" ]
5
2021-08-19T04:46:35.000Z
2022-03-09T15:27:22.000Z
import pytest from starsessions import SessionBackend
27.423077
88
0.775596
1c60d6b7074a5670b3d1308323fd21a043a33869
4,888
py
Python
sqlalchemy_dremio/db.py
thbeh/sqlalchemy_dremio
180169a86200977a8087d39afe67d3594bd66523
[ "Apache-2.0" ]
14
2020-04-19T16:14:37.000Z
2021-11-14T01:45:51.000Z
sqlalchemy_dremio/db.py
thbeh/sqlalchemy_dremio
180169a86200977a8087d39afe67d3594bd66523
[ "Apache-2.0" ]
13
2020-04-18T14:44:49.000Z
2022-03-14T13:45:22.000Z
sqlalchemy_dremio/db.py
thbeh/sqlalchemy_dremio
180169a86200977a8087d39afe67d3594bd66523
[ "Apache-2.0" ]
6
2020-04-29T10:18:59.000Z
2021-08-19T13:46:30.000Z
from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals import logging from pyarrow import flight from sqlalchemy_dremio.exceptions import Error, NotSupportedError from sqlalchemy_dremio.flight_auth import HttpDremioClientAu...
25.591623
115
0.618658
1c61e6c641ff5d3b13cd3eb58254039918bc75f6
2,081
py
Python
docker-images/rasa2/snips_services/tts_server.py
sanyaade-machine-learning/opensnips_original
3c7d4aa2ef7dec7b0b8c532a537b79c3ef9df7cc
[ "MIT" ]
57
2017-12-28T22:50:20.000Z
2022-01-25T16:05:36.000Z
docker-images/rasa2/snips_services/tts_server.py
sanyaade-machine-learning/opensnips_original
3c7d4aa2ef7dec7b0b8c532a537b79c3ef9df7cc
[ "MIT" ]
28
2018-04-18T06:45:20.000Z
2022-03-08T22:50:50.000Z
docker-images/rasa2/snips_services/tts_server.py
sanyaade-machine-learning/opensnips_original
3c7d4aa2ef7dec7b0b8c532a537b79c3ef9df7cc
[ "MIT" ]
18
2017-12-27T01:57:14.000Z
2021-03-02T14:13:06.000Z
#!/opt/rasa/anaconda/bin/python # -*-: coding utf-8 -*- """ Snips core and nlu server. """ from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals import json import time import os from socket import error as socket_error fr...
29.728571
166
0.605478
1c625b305422a96fe496b35f015f87dde84dd1cd
462
py
Python
gtd/migrations/0018_context_color.py
jimbofreedman/naggingnelly-api
510d801791dcce39560bac227c12e5f6d9e80dcc
[ "BSD-3-Clause" ]
null
null
null
gtd/migrations/0018_context_color.py
jimbofreedman/naggingnelly-api
510d801791dcce39560bac227c12e5f6d9e80dcc
[ "BSD-3-Clause" ]
null
null
null
gtd/migrations/0018_context_color.py
jimbofreedman/naggingnelly-api
510d801791dcce39560bac227c12e5f6d9e80dcc
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.11.9 on 2018-08-02 17:53 from __future__ import unicode_literals from django.db import migrations, models
22
67
0.614719
1c627c266e817eb089303a3e29f35bf34a1b6c4c
6,652
py
Python
neuralintents/main.py
nitori/neuralintents
7a63075fbdca24ec6a6e5281552f64325dd279ff
[ "MIT" ]
null
null
null
neuralintents/main.py
nitori/neuralintents
7a63075fbdca24ec6a6e5281552f64325dd279ff
[ "MIT" ]
null
null
null
neuralintents/main.py
nitori/neuralintents
7a63075fbdca24ec6a6e5281552f64325dd279ff
[ "MIT" ]
null
null
null
from abc import ABCMeta, abstractmethod import random import json import pickle import numpy as np import os os.environ['TF_CPP_MIN_LOG_LEVEL'] = '3' import nltk from nltk.stem import WordNetLemmatizer from tensorflow.keras.models import Sequential from tensorflow.keras.layers import Dense, Dropout from tensorflow....
33.766497
109
0.599519
1c63f92718131c9edb3951c411929fc66600dca1
607
py
Python
cogs/TieThePie.py
Engineer152/Engineer-Bot
9654666776d5ba91b1c8afdb32c86a7aedad7143
[ "MIT" ]
null
null
null
cogs/TieThePie.py
Engineer152/Engineer-Bot
9654666776d5ba91b1c8afdb32c86a7aedad7143
[ "MIT" ]
null
null
null
cogs/TieThePie.py
Engineer152/Engineer-Bot
9654666776d5ba91b1c8afdb32c86a7aedad7143
[ "MIT" ]
null
null
null
import discord from discord.ext import commands client = commands.Bot(command_prefix='your prefix',owner_ids = {your user id},case_insensitive=True )
33.722222
224
0.742998
1c6537848455d77ed4e22e5c61b4d2a5153fa5e0
3,359
py
Python
python/lsst/eotest/simulation/generate_Fe55_images.py
tguillemLSST/eotest
c6f150984fa5dff85b9805028645bf46fc846f11
[ "BSD-3-Clause-LBNL" ]
3
2016-04-21T07:05:45.000Z
2020-08-05T08:37:37.000Z
python/lsst/eotest/simulation/generate_Fe55_images.py
tguillemLSST/eotest
c6f150984fa5dff85b9805028645bf46fc846f11
[ "BSD-3-Clause-LBNL" ]
70
2015-03-26T09:48:53.000Z
2020-04-22T16:29:43.000Z
python/lsst/eotest/simulation/generate_Fe55_images.py
tguillemLSST/eotest
c6f150984fa5dff85b9805028645bf46fc846f11
[ "BSD-3-Clause-LBNL" ]
5
2017-08-15T20:52:44.000Z
2022-03-25T12:54:07.000Z
""" @brief Generate Fe55 images and associated darks and bias images according to section 5.4 of the E/O document (Dec 19, 2012 version). @author J. Chiang <jchiang@slac.stanford.edu> """ import os import numpy as np from sim_inputs import * from sim_tools import * if __name__ == '__main__': nexp = 10 expt...
39.988095
74
0.61953
1c6615aacc368931eb1fadc13190d4aad9dc4cda
32,663
py
Python
pcdet/models/backbones_3d/pfe/voxel_set_abstraction.py
rayguan97/M3DETR
cb76890a28c1555f2c0138030e0a432df6ee731b
[ "Apache-2.0" ]
21
2022-01-21T11:02:15.000Z
2022-03-08T14:55:30.000Z
pcdet/models/backbones_3d/pfe/voxel_set_abstraction.py
rayguan97/M3DETR
cb76890a28c1555f2c0138030e0a432df6ee731b
[ "Apache-2.0" ]
2
2022-01-21T08:10:49.000Z
2022-01-21T23:44:40.000Z
pcdet/models/backbones_3d/pfe/voxel_set_abstraction.py
rayguan97/M3DETR
cb76890a28c1555f2c0138030e0a432df6ee731b
[ "Apache-2.0" ]
3
2022-01-21T11:41:55.000Z
2022-01-24T14:20:19.000Z
import math import numpy as np import torch import torch.nn as nn from ....ops.pointnet2.pointnet2_stack import pointnet2_modules as pointnet2_stack_modules from ....ops.pointnet2.pointnet2_stack import pointnet2_utils as pointnet2_stack_utils from ....utils import common_utils from ...backbones_2d.transformer import ...
42.585398
174
0.608732
1c66241d3877e47cd775f05edef325a5a8e7b8d8
451
py
Python
metabot2txt/display.py
HeitorBoschirolli/metabot2txt
845c6b1042f7e586cf80de56e78c976e3c919f0a
[ "MIT" ]
null
null
null
metabot2txt/display.py
HeitorBoschirolli/metabot2txt
845c6b1042f7e586cf80de56e78c976e3c919f0a
[ "MIT" ]
null
null
null
metabot2txt/display.py
HeitorBoschirolli/metabot2txt
845c6b1042f7e586cf80de56e78c976e3c919f0a
[ "MIT" ]
null
null
null
import os
22.55
64
0.536585
1c66f42291c5ccace3a10ed12cc3202e55caf594
47,394
py
Python
cogs/errors.py
i1470s/IVRY
922908b19b57881ad6fef2b45fabe6bc1ff7a298
[ "MIT" ]
3
2020-10-03T20:53:39.000Z
2020-10-11T07:58:57.000Z
cogs/errors.py
i1470s/IVRY
922908b19b57881ad6fef2b45fabe6bc1ff7a298
[ "MIT" ]
3
2020-10-11T22:23:30.000Z
2020-10-14T16:54:37.000Z
cogs/errors.py
i1470s/IVRY
922908b19b57881ad6fef2b45fabe6bc1ff7a298
[ "MIT" ]
null
null
null
#PRIMARY IMPORTS import discord, os, datetime, sys, json, traceback, logging #SECONDARY IMPORTS from apscheduler.schedulers.asyncio import AsyncIOScheduler from discord.ext import commands from data import config #LOGGING logger = logging.getLogger("ivry") logger.debug("errors.py Started")
65.551867
138
0.531502
1c672bcb64cc19b33318c71e9093a770db7e263e
1,315
py
Python
Using Python to Access Web Data/Problem 6_Extracting Data from JSON 5.py
Karoline0097/University-of-Michigan-Python-for-Everybody
8b3999638c0c074ae3c1120de87cf8f31740ebb8
[ "MIT" ]
null
null
null
Using Python to Access Web Data/Problem 6_Extracting Data from JSON 5.py
Karoline0097/University-of-Michigan-Python-for-Everybody
8b3999638c0c074ae3c1120de87cf8f31740ebb8
[ "MIT" ]
null
null
null
Using Python to Access Web Data/Problem 6_Extracting Data from JSON 5.py
Karoline0097/University-of-Michigan-Python-for-Everybody
8b3999638c0c074ae3c1120de87cf8f31740ebb8
[ "MIT" ]
null
null
null
## Problem 5: Extracting Data from JSON # Example: http://py4e-data.dr-chuck.net/comments_42.json # data consists of a number of names and comment counts in JSON # { # comments: [ # { # name: "Matthias" # count: 97 # }, # { # name: "Geomer" # count: 97 # } # ... # ] # } ...
24.811321
90
0.686692
1c67babe06797acaab8d0e9b738376ce3cb3ee88
376
py
Python
lessons/day_05/python/app.py
jiaguilera/a-walk-in-graphql
ed4f44b4f4bf283cc7342141eb8127a2745ea2d7
[ "MIT" ]
16
2020-06-16T17:12:16.000Z
2021-12-03T14:19:38.000Z
lessons/day_05/python/app.py
martinarnesi/a-walk-in-graphql
56cd949cbeb4c4322882bd15398a867b16900ccd
[ "MIT" ]
8
2020-06-11T21:53:03.000Z
2020-07-26T01:47:10.000Z
lessons/day_05/python/app.py
martinarnesi/a-walk-in-graphql
56cd949cbeb4c4322882bd15398a867b16900ccd
[ "MIT" ]
9
2020-06-15T13:09:57.000Z
2022-03-06T14:49:17.000Z
from ariadne import make_executable_schema, load_schema_from_path from ariadne.asgi import GraphQL from resolvers import query, skill, person, eye_color, mutation # import schema from GraphQL file type_defs = load_schema_from_path("./schema.gql") schema = make_executable_schema( type_defs, query, skill, person, ...
28.923077
65
0.800532
1c6bbe01f2a25c56bbd4e7b84c94d14c49d0cee9
1,127
py
Python
src/__main__.py
andreaswatch/piTomation
140bff77ad0b84ad17898106c7be7dc48a2d0783
[ "MIT" ]
null
null
null
src/__main__.py
andreaswatch/piTomation
140bff77ad0b84ad17898106c7be7dc48a2d0783
[ "MIT" ]
null
null
null
src/__main__.py
andreaswatch/piTomation
140bff77ad0b84ad17898106c7be7dc48a2d0783
[ "MIT" ]
null
null
null
import importlib import time from pathlib import Path import os import sys print("Import plugins ..") import_plugins() print("Import app ..") import modules.app.App as piTomation app: piTomation.App print("Start app ..") app = piTomation.App() #try: # app = piTomation.App() #except Exception as ex: # print(e...
21.673077
92
0.624667
1c6d48cdfb7c008c470c879e2a06b5ce0223008d
1,208
py
Python
src/decanter/core/extra/utils.py
MatthewK3023/decanter-ai-core-sdk
d09a0316d5c3f28d55fd0dd83ef7f3e141d421de
[ "MIT" ]
null
null
null
src/decanter/core/extra/utils.py
MatthewK3023/decanter-ai-core-sdk
d09a0316d5c3f28d55fd0dd83ef7f3e141d421de
[ "MIT" ]
null
null
null
src/decanter/core/extra/utils.py
MatthewK3023/decanter-ai-core-sdk
d09a0316d5c3f28d55fd0dd83ef7f3e141d421de
[ "MIT" ]
null
null
null
""" Functions support other modules. """ import uuid def check_response(response, key=None): """CHeck the api response. Make sure the status call is successful and the response have specific key. Return: class: `Response <Response>` """ code = response.status_code if not 200 <= code ...
23.686275
79
0.626656
1c6e264ceb5ab2e61f2f2b6e3294aa8858b8f9fd
1,064
py
Python
03/03.py
stevenpclark/aoc2021
726009e5a2a87025943a736e8676784ca7cdc8bd
[ "MIT" ]
1
2021-11-30T05:25:58.000Z
2021-11-30T05:25:58.000Z
03/03.py
stevenpclark/aoc2021
726009e5a2a87025943a736e8676784ca7cdc8bd
[ "MIT" ]
null
null
null
03/03.py
stevenpclark/aoc2021
726009e5a2a87025943a736e8676784ca7cdc8bd
[ "MIT" ]
null
null
null
import numpy as np if __name__ == '__main__': main()
20.461538
67
0.535714
1c6f742ff7bb6409fa5b1d806e2433034d2aa878
1,096
py
Python
distillation/build_student.py
fengxiaoshuai/CNN_model_optimizer
4c48420989ffe31a4075d36a5133fee0d999466a
[ "Apache-2.0" ]
null
null
null
distillation/build_student.py
fengxiaoshuai/CNN_model_optimizer
4c48420989ffe31a4075d36a5133fee0d999466a
[ "Apache-2.0" ]
1
2021-01-05T10:41:24.000Z
2021-01-05T10:41:24.000Z
distillation/build_student.py
fengxiaoshuai/CNN_model_optimizer
4c48420989ffe31a4075d36a5133fee0d999466a
[ "Apache-2.0" ]
1
2020-08-07T02:56:20.000Z
2020-08-07T02:56:20.000Z
import tensorflow as tf import numpy as np with tf.variable_scope("student"): input_label = tf.placeholder(dtype=tf.float32, shape=[10, 10], name="label") input_image = tf.placeholder(dtype=tf.float32, shape=[10, 224, 224, 3], name="input") conv1 = tf.layers.conv2d(inputs=input_image, filters=64, kernel_s...
40.592593
96
0.681569
1c70409e75cdadbb3949d0d1cde6a6029abd620b
5,365
py
Python
code/statistical_tests.py
ChamiLamelas/Math36B_FinalProject
0bdb5d17769553a4edb163534c21cc641860a07a
[ "MIT" ]
null
null
null
code/statistical_tests.py
ChamiLamelas/Math36B_FinalProject
0bdb5d17769553a4edb163534c21cc641860a07a
[ "MIT" ]
null
null
null
code/statistical_tests.py
ChamiLamelas/Math36B_FinalProject
0bdb5d17769553a4edb163534c21cc641860a07a
[ "MIT" ]
null
null
null
import scipy.stats import numpy as np def f_test(sample_x, sample_y, larger_varx_alt): """ Computes the F-value and corresponding p-value for a pair of samples and alternative hypothesis. Parameters ---------- sample_x : list A random sample x1,...,xnx. Let its (underlying) variance be ox...
41.269231
261
0.654054
1c71ba0a22523d640266f7845ef799a8f73cbe39
243
py
Python
pawpyseed/compiler.py
akashkumarsingh612/pawpyseed
6f5aa0b8ca8c28a0221e5256afeb939c3344560b
[ "BSD-3-Clause" ]
null
null
null
pawpyseed/compiler.py
akashkumarsingh612/pawpyseed
6f5aa0b8ca8c28a0221e5256afeb939c3344560b
[ "BSD-3-Clause" ]
null
null
null
pawpyseed/compiler.py
akashkumarsingh612/pawpyseed
6f5aa0b8ca8c28a0221e5256afeb939c3344560b
[ "BSD-3-Clause" ]
null
null
null
import os, subprocess def compile_core(comp, scilib): """ ATTENTION, NOT FINISHED """ subprocess.call(("make pawpy_%s"%comp).split()) def compile_core(comp, scilib): """ ATTENTION, NOT FINISHED """ subprocess.call("make hfc".split())
18.692308
48
0.691358
1c720e3c45ed8efa4771cbbb3a3b55d0385c9d41
1,125
py
Python
finnhub_python/socket.py
humdings/finnhub-python
ca98681e5a529598e9d17e3ebc2f6d49c64b54de
[ "MIT" ]
null
null
null
finnhub_python/socket.py
humdings/finnhub-python
ca98681e5a529598e9d17e3ebc2f6d49c64b54de
[ "MIT" ]
null
null
null
finnhub_python/socket.py
humdings/finnhub-python
ca98681e5a529598e9d17e3ebc2f6d49c64b54de
[ "MIT" ]
null
null
null
""" Example usage of Finnhub socket API. """ from __future__ import print_function # Py2 compat import websocket from finnhub_python.utils import get_finnhub_api_key tick_file = 'raw_ticks.txt' token = get_finnhub_api_key() SYMBOLS = [ "AAPL", "SPY", "VXX", "BINANCE:ETHUSDT", "BINANCE:BTCU...
20.089286
69
0.604444
1c722363623f21dde32f8eb4058f20a248ddb2fd
2,570
py
Python
pycovjson/cli/convert.py
RileyWilliams/pycovjson
741737f53ef18ef1476eccb5e626866843c152bd
[ "BSD-3-Clause" ]
10
2016-08-16T17:46:30.000Z
2021-04-06T22:03:58.000Z
pycovjson/cli/convert.py
RileyWilliams/pycovjson
741737f53ef18ef1476eccb5e626866843c152bd
[ "BSD-3-Clause" ]
46
2016-07-21T13:14:14.000Z
2020-07-02T09:16:29.000Z
pycovjson/cli/convert.py
RileyWilliams/pycovjson
741737f53ef18ef1476eccb5e626866843c152bd
[ "BSD-3-Clause" ]
6
2016-07-29T09:56:37.000Z
2020-08-23T18:20:47.000Z
""" Pycovjson - Command line interface Author: rileywilliams Version: 0.1.0 """ import argparse from pycovjson.write import Writer from pycovjson.read_netcdf import NetCDFReader as Reader def main(): """ Command line interface for pycovjson - Converts Scientific Data Formats into CovJSON and saves to disk. ...
36.714286
107
0.649027
1c72ce0a57a6b20d9f3b0b840d03685a73126b0e
22,727
py
Python
duels/duels.py
ridinginstyle00/redcogs
216869935f322f7e5927740da22fa36f728c48db
[ "MIT" ]
8
2016-08-23T16:56:17.000Z
2021-07-24T16:44:31.000Z
duels/duels.py
ridinginstyle00/redcogs
216869935f322f7e5927740da22fa36f728c48db
[ "MIT" ]
1
2018-04-25T14:20:06.000Z
2018-04-25T14:20:06.000Z
duels/duels.py
ridinginstyle00/redcogs
216869935f322f7e5927740da22fa36f728c48db
[ "MIT" ]
8
2016-07-26T21:36:44.000Z
2019-08-03T16:38:57.000Z
import discord from discord.ext import commands from .utils import checks from .utils.dataIO import dataIO from __main__ import send_cmd_help from __main__ import settings from datetime import datetime from random import choice from random import sample from copy import deepcopy from collections import namedt...
44.215953
195
0.6267
1c741e6bc69fc8671df5a15c26f40ce7a3bf09f3
2,839
py
Python
paranuara/citizens/models/citizens.py
SPLAYER-HD/Paranuara
5a42f23d761e16e3b486ba04d9185551614f06a5
[ "MIT" ]
null
null
null
paranuara/citizens/models/citizens.py
SPLAYER-HD/Paranuara
5a42f23d761e16e3b486ba04d9185551614f06a5
[ "MIT" ]
4
2021-06-08T20:53:43.000Z
2022-03-12T00:13:51.000Z
paranuara/citizens/models/citizens.py
SPLAYER-HD/RestServiceDjango
5a42f23d761e16e3b486ba04d9185551614f06a5
[ "MIT" ]
null
null
null
"""Citizens model.""" # Django from django.db import models from django.contrib.auth.models import AbstractUser from django.core.validators import RegexValidator # models from paranuara.companies.models import Company # PostgreSQL fields from django.contrib.postgres.fields import JSONField # Utilities from paranuar...
22.007752
98
0.62205
1c75ba48ae7018192a5f6740f29aabe6961aa8fd
103
py
Python
tests/utils.py
niwibe/cobrascript
4c6a193d8745771e5fb0e277394f83e47cc7ede8
[ "BSD-3-Clause" ]
1
2015-05-03T00:25:17.000Z
2015-05-03T00:25:17.000Z
tests/utils.py
niwibe/cobrascript
4c6a193d8745771e5fb0e277394f83e47cc7ede8
[ "BSD-3-Clause" ]
null
null
null
tests/utils.py
niwibe/cobrascript
4c6a193d8745771e5fb0e277394f83e47cc7ede8
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- from cobra.utils import normalize
14.714286
33
0.669903
1c770de3012ff3f97ad6bf07fd17d96b765a28e4
2,442
py
Python
chess/rules.py
DevStrikerTech/Chess-Engine
f0d2e0fc48b820325b1826e4379bf0520c8d3b52
[ "MIT" ]
18
2021-01-26T19:21:45.000Z
2021-01-27T00:32:49.000Z
chess/rules.py
KingCobra2018/Chess-Engine
f0d2e0fc48b820325b1826e4379bf0520c8d3b52
[ "MIT" ]
null
null
null
chess/rules.py
KingCobra2018/Chess-Engine
f0d2e0fc48b820325b1826e4379bf0520c8d3b52
[ "MIT" ]
9
2021-01-26T19:51:20.000Z
2021-01-26T22:39:28.000Z
import pygame from chess.board import Board from .variable_declaration import black_piece, white_piece, position_piece, board_square_size
29.421687
97
0.620393
1c77f1e65b1460f3b0a09bd95f3c03183aa1bcf6
1,542
py
Python
kivygames/games/noughtsandcrosses/__init__.py
jonathanjameswatson/kivygames
7636580956562af0814c973f94afede926cfa4b9
[ "MIT" ]
null
null
null
kivygames/games/noughtsandcrosses/__init__.py
jonathanjameswatson/kivygames
7636580956562af0814c973f94afede926cfa4b9
[ "MIT" ]
null
null
null
kivygames/games/noughtsandcrosses/__init__.py
jonathanjameswatson/kivygames
7636580956562af0814c973f94afede926cfa4b9
[ "MIT" ]
null
null
null
import numpy as np from kivygames.games import Game import kivygames.games.noughtsandcrosses.c as c
26.135593
74
0.586252
1c7894b14ef779955e6bd0f109d8986f10e8fa84
1,206
py
Python
03-Decouvrez-POO/download_agents.py
gruiick/openclassrooms-py
add4b28eab8b311dea7c1d3915a22061f54326a9
[ "BSD-2-Clause" ]
null
null
null
03-Decouvrez-POO/download_agents.py
gruiick/openclassrooms-py
add4b28eab8b311dea7c1d3915a22061f54326a9
[ "BSD-2-Clause" ]
null
null
null
03-Decouvrez-POO/download_agents.py
gruiick/openclassrooms-py
add4b28eab8b311dea7c1d3915a22061f54326a9
[ "BSD-2-Clause" ]
null
null
null
#! /usr/bin/env python import argparse import json import time import urllib.error import urllib.request if __name__ == "__main__": main()
30.923077
109
0.630182
1c78aef6937bac0c47b2a7aeef06915d8ec4cebe
3,681
py
Python
Commands/images.py
Mariobob/Proton
7c5eab0251266ca1da83591d396b357bab692399
[ "MIT" ]
null
null
null
Commands/images.py
Mariobob/Proton
7c5eab0251266ca1da83591d396b357bab692399
[ "MIT" ]
null
null
null
Commands/images.py
Mariobob/Proton
7c5eab0251266ca1da83591d396b357bab692399
[ "MIT" ]
null
null
null
import functools import re import asyncio from io import BytesIO from discord.ext import commands import discord from Utils import canvas import random
41.359551
125
0.620212
1c79747bf1ea18f4c3b8be4f42301cb16c8ee8f3
223
py
Python
labJS/conf.py
lpomfrey/django-labjs
f35346ec7f3b87ae24b2d7a01c06001ceb4173bc
[ "MIT" ]
null
null
null
labJS/conf.py
lpomfrey/django-labjs
f35346ec7f3b87ae24b2d7a01c06001ceb4173bc
[ "MIT" ]
null
null
null
labJS/conf.py
lpomfrey/django-labjs
f35346ec7f3b87ae24b2d7a01c06001ceb4173bc
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals from appconf import AppConf from django.conf import settings # noqa
18.583333
40
0.730942
1c7b1135efb3bd7f94a1f1a7d47294ebfd74cbde
10,416
py
Python
tests/test_nanoevents_vector.py
danbarto/coffea
2b28e28f602f8b81a1449ee85578187a7f52b602
[ "BSD-3-Clause" ]
null
null
null
tests/test_nanoevents_vector.py
danbarto/coffea
2b28e28f602f8b81a1449ee85578187a7f52b602
[ "BSD-3-Clause" ]
null
null
null
tests/test_nanoevents_vector.py
danbarto/coffea
2b28e28f602f8b81a1449ee85578187a7f52b602
[ "BSD-3-Clause" ]
null
null
null
import awkward as ak from coffea.nanoevents.methods import vector import pytest ATOL = 1e-8
28.075472
93
0.368856
1c7b1f4e4b7bfbf72b788463867c6a1ec1a46c6d
900
py
Python
testing/python/telBuggyScript2.py
sys-bio/rrplugins
03af6ea70d73462ad88103f1e446dc0c5f3f971c
[ "Apache-2.0" ]
null
null
null
testing/python/telBuggyScript2.py
sys-bio/rrplugins
03af6ea70d73462ad88103f1e446dc0c5f3f971c
[ "Apache-2.0" ]
8
2015-12-02T18:20:43.000Z
2021-08-20T17:13:34.000Z
testing/python/telBuggyScript2.py
sys-bio/telPlugins
03af6ea70d73462ad88103f1e446dc0c5f3f971c
[ "Apache-2.0" ]
3
2015-01-27T18:53:45.000Z
2015-07-13T17:07:50.000Z
import roadrunner import teplugins as tel i = 0 #for i in range(100): try: noisePlugin = tel.Plugin ("tel_add_noise") print noisePlugin.listOfProperties() # Create a roadrunner instance rr = roadrunner.RoadRunner() rr.load("sbml_test_0001.xml") # Generate data data = rr.simulate(0, 10, 51...
20
52
0.637778
1c7b885a3c4fad049ff2d1a6a859aa95838e0630
2,954
py
Python
encyclopaedia/labels.py
tcyrus/renpy-encyclopaedia
900517b34ab7b870f6ee03057f898fb5eb61313c
[ "MIT" ]
null
null
null
encyclopaedia/labels.py
tcyrus/renpy-encyclopaedia
900517b34ab7b870f6ee03057f898fb5eb61313c
[ "MIT" ]
null
null
null
encyclopaedia/labels.py
tcyrus/renpy-encyclopaedia
900517b34ab7b870f6ee03057f898fb5eb61313c
[ "MIT" ]
null
null
null
from renpy import store
32.461538
94
0.635748
1c7bed607992f89cbbe011d8fbb3d755bb77d244
1,816
py
Python
ncservice/ncDeviceOps/threaded/get_configs.py
cunningr/yanccm
2d8f891d704672f4d3a15472c7a13edf7832d53d
[ "MIT" ]
null
null
null
ncservice/ncDeviceOps/threaded/get_configs.py
cunningr/yanccm
2d8f891d704672f4d3a15472c7a13edf7832d53d
[ "MIT" ]
null
null
null
ncservice/ncDeviceOps/threaded/get_configs.py
cunningr/yanccm
2d8f891d704672f4d3a15472c7a13edf7832d53d
[ "MIT" ]
null
null
null
import logging from ncservice.ncDeviceOps.nc_device_ops import NcDeviceOps from ncservice.ncDeviceOps.task_report import TaskReport from ncservice.ncDeviceOps.threaded.base_thread_class import BaseThreadClass logger = logging.getLogger('main.{}'.format(__name__)) extra = {'signature': '---SIGNATURE-NOT-SET---'}
37.061224
108
0.643722
1c7de0aa67e4761191bbc1f1c380a31439d54c36
258
py
Python
CodeHS/Looping/DoubleForLoop.py
Kev-in123/ICS2O7
425c59975d4ce6aa0937fd8715b51d04487e4fa9
[ "MIT" ]
2
2021-08-10T18:16:08.000Z
2021-09-26T19:49:26.000Z
CodeHS/Looping/DoubleForLoop.py
Kev-in123/ICS2O7
425c59975d4ce6aa0937fd8715b51d04487e4fa9
[ "MIT" ]
null
null
null
CodeHS/Looping/DoubleForLoop.py
Kev-in123/ICS2O7
425c59975d4ce6aa0937fd8715b51d04487e4fa9
[ "MIT" ]
null
null
null
""" This program visualizes nested for loops by printing number 0 through 3 and then 0 through 3 for the nested loop. """ for i in range(4): print("Outer for loop: " + str(i)) for j in range(4): print(" Inner for loop: " + str(j))
28.666667
72
0.612403
1c7e58a1470bb1ce0a1146ec377bf0292d1e20e6
4,657
py
Python
saleor/graphql/channel/tests/test_base_channel_listing.py
fairhopeweb/saleor
9ac6c22652d46ba65a5b894da5f1ba5bec48c019
[ "CC-BY-4.0" ]
15,337
2015-01-12T02:11:52.000Z
2021-10-05T19:19:29.000Z
saleor/graphql/channel/tests/test_base_channel_listing.py
fairhopeweb/saleor
9ac6c22652d46ba65a5b894da5f1ba5bec48c019
[ "CC-BY-4.0" ]
7,486
2015-02-11T10:52:13.000Z
2021-10-06T09:37:15.000Z
saleor/graphql/channel/tests/test_base_channel_listing.py
aminziadna/saleor
2e78fb5bcf8b83a6278af02551a104cfa555a1fb
[ "CC-BY-4.0" ]
5,864
2015-01-16T14:52:54.000Z
2021-10-05T23:01:15.000Z
from collections import defaultdict import graphene import pytest from django.core.exceptions import ValidationError from ....shipping.error_codes import ShippingErrorCode from ..mutations import BaseChannelListingMutation
30.84106
83
0.721065
1c7ea7eccdeaa85272171df846b591a0afd65d34
9,843
py
Python
francoralite/apps/francoralite_front/tools.py
Francoralite/francoralite
f8c5eeffe6d395c7e4222a9f5a4a7a01841b503c
[ "BSD-3-Clause" ]
2
2021-07-26T08:29:26.000Z
2021-07-26T08:29:27.000Z
francoralite/apps/francoralite_front/tools.py
lluc/telemeta-integration
c2fb116471235674eae597abac84a7113e0f7c82
[ "BSD-3-Clause" ]
167
2018-10-20T14:34:46.000Z
2021-06-01T10:40:55.000Z
francoralite/apps/francoralite_front/tools.py
Francoralite/francoralite
f8c5eeffe6d395c7e4222a9f5a4a7a01841b503c
[ "BSD-3-Clause" ]
1
2021-06-06T12:16:49.000Z
2021-06-06T12:16:49.000Z
# -*- coding: utf-8 -*- # You should have received a copy of the GNU Affero General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. # # Authors: Luc LEGER / Cooprative ARTEFACTS <artefacts.lle@gmail.com> import requests from django.conf import settings from django.contrib import...
30.286154
90
0.607843
1c7f5af1d319f74fdb488cde790b4cffce3502aa
5,173
py
Python
python2.7/site-packages/twisted/internet/iocpreactor/client.py
84KaliPleXon3/sslstrip-hsts-openwrt
f875ded48078a3ed84bffef1e69dcbeaf2e77ae3
[ "MIT" ]
4
2020-10-31T19:52:05.000Z
2021-09-22T11:39:27.000Z
python2.7/site-packages/twisted/internet/iocpreactor/client.py
84KaliPleXon3/sslstrip-hsts-openwrt
f875ded48078a3ed84bffef1e69dcbeaf2e77ae3
[ "MIT" ]
null
null
null
python2.7/site-packages/twisted/internet/iocpreactor/client.py
84KaliPleXon3/sslstrip-hsts-openwrt
f875ded48078a3ed84bffef1e69dcbeaf2e77ae3
[ "MIT" ]
2
2020-02-27T08:28:35.000Z
2020-09-13T12:39:26.000Z
# Copyright (c) 2001-2004 Twisted Matrix Laboratories. # See LICENSE for details. import socket from twisted.persisted import styles from twisted.internet.base import BaseConnector from twisted.internet import defer, interfaces, error from twisted.python import failure from abstract import ConnectedSocket from ops ...
30.429412
127
0.64972
1c7f78b673d9e154cc86707fcd75f178c99f6089
2,678
py
Python
pypika/tests/dialects/test_mssql.py
uhrm/pypika
b390aa33c980704555d75d27ade5bfa4d1d4bae7
[ "Apache-2.0" ]
null
null
null
pypika/tests/dialects/test_mssql.py
uhrm/pypika
b390aa33c980704555d75d27ade5bfa4d1d4bae7
[ "Apache-2.0" ]
null
null
null
pypika/tests/dialects/test_mssql.py
uhrm/pypika
b390aa33c980704555d75d27ade5bfa4d1d4bae7
[ "Apache-2.0" ]
null
null
null
import unittest from pypika import Table from pypika.analytics import Count from pypika.dialects import MSSQLQuery from pypika.utils import QueryException
38.257143
118
0.647872
1c7fbcb14ea301bda84e83c0a6cddb4f13bae6fe
14,860
py
Python
Postprocessing/Hardt/Hardt.py
maliha93/Fairness-Analysis-Code
acf13c6e7993704fc627249fe4ada44d8b616264
[ "MIT" ]
null
null
null
Postprocessing/Hardt/Hardt.py
maliha93/Fairness-Analysis-Code
acf13c6e7993704fc627249fe4ada44d8b616264
[ "MIT" ]
null
null
null
Postprocessing/Hardt/Hardt.py
maliha93/Fairness-Analysis-Code
acf13c6e7993704fc627249fe4ada44d8b616264
[ "MIT" ]
null
null
null
import cvxpy as cvx import numpy as np from collections import namedtuple from metric import metric, cd import pandas as pd import sys from helper import make_dataset
43.323615
113
0.611844
1c802e1801de4019c3b100aff72c042e2ff702ed
1,632
py
Python
tests/test_exceptions.py
nesnahnoj/py3-textract
61290fb44c964cf78ce64593fdf0076143dbcd91
[ "MIT" ]
2
2015-03-03T12:40:17.000Z
2015-03-03T13:05:14.000Z
tests/test_exceptions.py
anderser/textract
8f7b32cadabcd13ad1eab1a56b9aa151901d0453
[ "MIT" ]
null
null
null
tests/test_exceptions.py
anderser/textract
8f7b32cadabcd13ad1eab1a56b9aa151901d0453
[ "MIT" ]
null
null
null
import unittest import os import subprocess import base
37.090909
72
0.692402
1c81071b5834983f0325a721292427a8ce6ce5f8
1,998
py
Python
dloud_ads/circular_queue.py
dataloudlabs/dloud-ads
d0ad3f169c2384292db4097e00ba7858f37a8198
[ "MIT" ]
null
null
null
dloud_ads/circular_queue.py
dataloudlabs/dloud-ads
d0ad3f169c2384292db4097e00ba7858f37a8198
[ "MIT" ]
null
null
null
dloud_ads/circular_queue.py
dataloudlabs/dloud-ads
d0ad3f169c2384292db4097e00ba7858f37a8198
[ "MIT" ]
null
null
null
"""Queue implementation using circularly linked list for storage."""
29.382353
76
0.578579
1c828f50eb6739af4655f73774016c25d4ee4ac9
1,389
py
Python
suplemon/helpers.py
johnmbaughman/suplemon
fdde20f2181c280236d40f89b89b9bbe5843440e
[ "MIT" ]
null
null
null
suplemon/helpers.py
johnmbaughman/suplemon
fdde20f2181c280236d40f89b89b9bbe5843440e
[ "MIT" ]
null
null
null
suplemon/helpers.py
johnmbaughman/suplemon
fdde20f2181c280236d40f89b89b9bbe5843440e
[ "MIT" ]
null
null
null
# -*- encoding: utf-8 """ Various helper constants and functions. """ import os import re import sys import time import traceback def curr_time(): """Current time in %H:%M""" return time.strftime("%H:%M") def curr_time_sec(): """Current time in %H:%M:%S""" return time.strftime("%H:%M:%S") def ge...
21.369231
83
0.592513
1c850ddd900887b33d213aba43297d734592063b
31,713
py
Python
geofem/emg3d/meshes.py
iisadoramacedo/geofem-master
cc5cf4ae660480dd4dc3d805310f7207fb28230e
[ "MIT" ]
null
null
null
geofem/emg3d/meshes.py
iisadoramacedo/geofem-master
cc5cf4ae660480dd4dc3d805310f7207fb28230e
[ "MIT" ]
1
2020-10-29T11:42:21.000Z
2020-10-29T11:42:21.000Z
build/lib/geofem/emg3d/meshes.py
iisadoramacedo/geofem-master
cc5cf4ae660480dd4dc3d805310f7207fb28230e
[ "MIT" ]
1
2020-07-09T18:15:10.000Z
2020-07-09T18:15:10.000Z
""" :mod:`meshes` -- Discretization =============================== Everything related to meshes appropriate for the multigrid solver. """ # Copyright 2018-2020 The emg3d Developers. # # This file is part of emg3d. # # Licensed under the Apache License, Version 2.0 (the "License"); you may not # use this file except...
35.833898
79
0.590578
1c855f3c4b60017317473eca05c6f77584434cbc
2,464
py
Python
QUICK_START/NODE_SQUEEZESEG_CLUSTER/src/script/squeezeseg/utils/clock.py
Hqss/DINK
5fecaa65e2f9da48eb8ac38ef709aa555fca8766
[ "BSD-3-Clause" ]
189
2019-01-16T03:05:23.000Z
2020-09-14T14:54:16.000Z
QUICK_START/NODE_SQUEEZESEG_CLUSTER/src/script/squeezeseg/utils/clock.py
jtpils/DINK
5f6b3eaba279126f79ae6607f965311002d7451c
[ "BSD-3-Clause" ]
3
2019-02-11T06:20:15.000Z
2020-04-05T07:03:53.000Z
QUICK_START/NODE_SQUEEZESEG_CLUSTER/src/script/squeezeseg/utils/clock.py
jtpils/DINK
5f6b3eaba279126f79ae6607f965311002d7451c
[ "BSD-3-Clause" ]
25
2019-01-16T03:05:24.000Z
2020-04-04T21:07:53.000Z
#! /usr/bin/python2 # -*- coding: utf-8 -*- """ Clock function to take running time following Segmatch. """ # BSD 3-Clause License # # Copyright (c) 2019, FPAI # Copyright (c) 2019, SeriouslyHAO # Copyright (c) 2019, xcj2019 # Copyright (c) 2019, Leonfirst # # All rights reserved. # # Redistribution and use in source a...
39.741935
114
0.745536
1c8628f13d65ff3439c3fbd013fa30e504e0ca89
918
py
Python
office365/sharepoint/view_collection.py
andebor/Office365-REST-Python-Client
ffd0ab4cf742b2e5ae7d8c44e937495aece41e07
[ "MIT" ]
null
null
null
office365/sharepoint/view_collection.py
andebor/Office365-REST-Python-Client
ffd0ab4cf742b2e5ae7d8c44e937495aece41e07
[ "MIT" ]
null
null
null
office365/sharepoint/view_collection.py
andebor/Office365-REST-Python-Client
ffd0ab4cf742b2e5ae7d8c44e937495aece41e07
[ "MIT" ]
null
null
null
from office365.runtime.client_object_collection import ClientObjectCollection from office365.runtime.resource_path_service_operation import ResourcePathServiceOperation from office365.sharepoint.view import View
45.9
111
0.734205
1c88139e81ccf155fe77c897a8674f07ab2d5797
1,461
py
Python
common-scrapers/common_src/scrapers/second_extinction.py
mrPaintMan/blog-scraper
9b1ff3d398bd23d799d86c9a62ec76a6950555cc
[ "MIT" ]
null
null
null
common-scrapers/common_src/scrapers/second_extinction.py
mrPaintMan/blog-scraper
9b1ff3d398bd23d799d86c9a62ec76a6950555cc
[ "MIT" ]
null
null
null
common-scrapers/common_src/scrapers/second_extinction.py
mrPaintMan/blog-scraper
9b1ff3d398bd23d799d86c9a62ec76a6950555cc
[ "MIT" ]
1
2020-03-11T14:49:00.000Z
2020-03-11T14:49:00.000Z
from common_src.lib.model.post import Post from common_src.lib.model.source import Source from common_src.scrapers.abstract_scraper import make_soup, remove_dups, now SOURCE_CODE = "second_extinction" WEBSITE = "https://www.secondextinctiongame.com/news" ALT_IMAGE = 'https://www.secondextinctiongame.com/static/242486b...
39.486486
119
0.699521
1c88d1e1834d792edf9c14b13846bd1ee7d80360
3,860
py
Python
systems/ILSVRC12/AlexNet/alexnet.py
mdatres/quantlab
09fb24ede78f49768f829afe0fac2ac291b8fd4f
[ "Apache-2.0" ]
7
2021-07-01T17:02:50.000Z
2022-03-29T10:54:41.000Z
systems/ILSVRC12/AlexNet/alexnet.py
mdatres/quantlab
09fb24ede78f49768f829afe0fac2ac291b8fd4f
[ "Apache-2.0" ]
null
null
null
systems/ILSVRC12/AlexNet/alexnet.py
mdatres/quantlab
09fb24ede78f49768f829afe0fac2ac291b8fd4f
[ "Apache-2.0" ]
2
2021-07-10T20:57:06.000Z
2022-01-02T10:10:25.000Z
# # alexnet.py # # Author(s): # Matteo Spallanzani <spmatteo@iis.ee.ethz.ch> # # Copyright (c) 2020-2021 ETH Zurich. # # 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...
31.900826
91
0.591192
1c8a214cb9301b78671cb8aa70f1cebef2a6167b
448
py
Python
e/mail-relay/web/apps/core/migrations/0012_auto_20151105_1442.py
zhouli121018/nodejsgm
0ccbc8acf61badc812f684dd39253d55c99f08eb
[ "MIT" ]
null
null
null
e/mail-relay/web/apps/core/migrations/0012_auto_20151105_1442.py
zhouli121018/nodejsgm
0ccbc8acf61badc812f684dd39253d55c99f08eb
[ "MIT" ]
18
2020-06-05T18:17:40.000Z
2022-03-11T23:25:21.000Z
e/mail-relay/web/apps/core/migrations/0012_auto_20151105_1442.py
zhouli121018/nodejsgm
0ccbc8acf61badc812f684dd39253d55c99f08eb
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations
22.4
93
0.625
1c8bf817623bc83ae0e3cfb38c83d93d7647579a
1,068
py
Python
madlib/main.py
FredericIV/PythonPractice
36b3a321eb8fefc38befe83b15a7596418250756
[ "CC0-1.0" ]
null
null
null
madlib/main.py
FredericIV/PythonPractice
36b3a321eb8fefc38befe83b15a7596418250756
[ "CC0-1.0" ]
null
null
null
madlib/main.py
FredericIV/PythonPractice
36b3a321eb8fefc38befe83b15a7596418250756
[ "CC0-1.0" ]
null
null
null
#!/bin/python3 # Libraries import sys import array import textwrap # Variable Declaration madlib_selection = "example.txt" madlib_array = array.array('i') copy_state = False user_filler = "" new_madlib = [] if len(sys.argv) != 1: print(len(sys.argv)) if sys.argv[1] == "-": print("This program takes t...
31.411765
93
0.659176
1c8d061b0e5a02933d936632c10e61f84e6418bb
2,558
py
Python
src/tests/control/test_devices.py
bsod85/pretix
d86b3a217352f7ad24008685393f9af18fcf6e6c
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
src/tests/control/test_devices.py
bsod85/pretix
d86b3a217352f7ad24008685393f9af18fcf6e6c
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
src/tests/control/test_devices.py
bsod85/pretix
d86b3a217352f7ad24008685393f9af18fcf6e6c
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
import pytest from django.utils.timezone import now from pretix.base.models import Device, Event, Organizer, Team, User from pretix.base.models.devices import generate_api_token
30.452381
106
0.713057
1c8e802ab7e5ab17bb7b662f2406ded9d3de6507
11,773
py
Python
mcp/augmentation/album.py
j20232/moco_image_pipeline
997ae76e795548e75f95e862284c1fc0a3c7541a
[ "BSD-3-Clause" ]
5
2020-03-18T14:36:12.000Z
2022-01-26T09:36:11.000Z
mcp/augmentation/album.py
j20232/moco_image_pipeline
997ae76e795548e75f95e862284c1fc0a3c7541a
[ "BSD-3-Clause" ]
null
null
null
mcp/augmentation/album.py
j20232/moco_image_pipeline
997ae76e795548e75f95e862284c1fc0a3c7541a
[ "BSD-3-Clause" ]
null
null
null
import numpy as np from PIL import Image, ImageOps, ImageEnhance import albumentations as A # ndarray: H x W x C # ----------------------------------- Blur ------------------------------------------- # ----------------------------------- Noise ------------------------------------------- # ---------------------...
35.460843
99
0.599507
1c8ea0dcd3e4b0f8ab68d4a876a677661904e6f8
2,959
py
Python
website/util/sanitize.py
bdyetton/prettychart
e8b33a7dfdc8c33d15969586be7f68172795f76d
[ "Apache-2.0" ]
null
null
null
website/util/sanitize.py
bdyetton/prettychart
e8b33a7dfdc8c33d15969586be7f68172795f76d
[ "Apache-2.0" ]
null
null
null
website/util/sanitize.py
bdyetton/prettychart
e8b33a7dfdc8c33d15969586be7f68172795f76d
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- import bleach import json def strip_html(unclean): """Sanitize a string, removing (as opposed to escaping) HTML tags :param unclean: A string to be stripped of HTML tags :return: stripped string :rtype: str """ return bleach.clean(unclean, strip=True, tags=[], attribu...
26.185841
103
0.627239
1c8eddd2bd80bb485d60b7d54110b5642d861af4
16,525
py
Python
mainTrain.py
PolarizedLightFieldMicroscopy/LFMNet2
c9b064d7625e018ef54b8dd8a0e53801c4565397
[ "Apache-2.0" ]
null
null
null
mainTrain.py
PolarizedLightFieldMicroscopy/LFMNet2
c9b064d7625e018ef54b8dd8a0e53801c4565397
[ "Apache-2.0" ]
null
null
null
mainTrain.py
PolarizedLightFieldMicroscopy/LFMNet2
c9b064d7625e018ef54b8dd8a0e53801c4565397
[ "Apache-2.0" ]
null
null
null
import torch import torch.nn as nn import torch.nn.functional as F from torch.utils.tensorboard import SummaryWriter from torch.utils import data from torch import optim import torchvision.models as models from torch.autograd import Variable import torchvision as tv import random import math import time from datetime i...
47.34957
191
0.616884
1c8fed7e472142a2a42ee1131ff8f6b28599bc16
1,295
py
Python
tools/utils.py
valsworthen/toxic-comment-classification
12ceb4d78410a14fba05e43f6f424cec52e6665d
[ "MIT" ]
10
2018-03-26T05:46:39.000Z
2020-04-30T08:03:18.000Z
tools/utils.py
valsworthen/toxic_comment_classification
12ceb4d78410a14fba05e43f6f424cec52e6665d
[ "MIT" ]
null
null
null
tools/utils.py
valsworthen/toxic_comment_classification
12ceb4d78410a14fba05e43f6f424cec52e6665d
[ "MIT" ]
null
null
null
"""Utilities""" import pandas as pd import numpy as np from attrdict import AttrDict import yaml def average_predictions(cv_predictions, n_splits, num_samples = 153164, num_labels = 6): """Average k-fold predictions stored in a dict""" preds = np.zeros((num_samples, num_labels)) for preds_i in cv_predictio...
33.205128
93
0.67722
1c9014f0cf5d96c8108b4c96a94c876f92838ff8
530
py
Python
dags/exercise1.py
mikef-nl/airflow-training-skeleton
85a0e9103772be012a41ee0daa9f67ba401bfddc
[ "Apache-2.0" ]
null
null
null
dags/exercise1.py
mikef-nl/airflow-training-skeleton
85a0e9103772be012a41ee0daa9f67ba401bfddc
[ "Apache-2.0" ]
null
null
null
dags/exercise1.py
mikef-nl/airflow-training-skeleton
85a0e9103772be012a41ee0daa9f67ba401bfddc
[ "Apache-2.0" ]
null
null
null
import airflow from airflow.models import DAG from airflow.operators.dummy_operator import DummyOperator args = { 'owner': 'Mike', 'start_date': airflow.utils.dates.days_ago(2), } dag = DAG( dag_id='exercise1', default_args=args, schedule_interval=None ) t1 = DummyOperator(task_id='task1', dag=da...
23.043478
58
0.70566
1c90552cf52e653e519bda73228f741afee1058c
3,148
py
Python
pyhelp/scripts/produce_meteo_maps.py
jnsebgosselin/help
f0194a96ba7e1474fe1864d79447ee20cee949ec
[ "MIT" ]
12
2019-03-11T12:38:35.000Z
2021-06-26T03:40:18.000Z
pyhelp/scripts/produce_meteo_maps.py
jnsebgosselin/help
f0194a96ba7e1474fe1864d79447ee20cee949ec
[ "MIT" ]
23
2018-11-22T15:16:12.000Z
2022-03-25T12:55:33.000Z
pyhelp/scripts/produce_meteo_maps.py
jnsebgosselin/help
f0194a96ba7e1474fe1864d79447ee20cee949ec
[ "MIT" ]
2
2019-04-18T17:47:00.000Z
2021-08-31T04:45:30.000Z
# -*- coding: utf-8 -*- """ Created on Tue Feb 27 10:54:25 2018 @author: jsgosselin """ # ---- Standard Library Imports from itertools import product import os.path as osp import os # ---- Third Party Imports import netCDF4 from geopandas import GeoDataFrame import pandas as pd from shapely.geometry import Point, P...
29.420561
79
0.67249
1c90b62f02619f835bc7d89b23d75b9ecf0b6be0
1,803
py
Python
platform/core/tests/test_activitylogs/test_service.py
hackerwins/polyaxon
ff56a098283ca872abfbaae6ba8abba479ffa394
[ "Apache-2.0" ]
null
null
null
platform/core/tests/test_activitylogs/test_service.py
hackerwins/polyaxon
ff56a098283ca872abfbaae6ba8abba479ffa394
[ "Apache-2.0" ]
null
null
null
platform/core/tests/test_activitylogs/test_service.py
hackerwins/polyaxon
ff56a098283ca872abfbaae6ba8abba479ffa394
[ "Apache-2.0" ]
null
null
null
# pylint:disable=ungrouped-imports import uuid import pytest import activitylogs from db.models.activitylogs import ActivityLog from events.registry.experiment import EXPERIMENT_DELETED_TRIGGERED from events.registry.user import USER_ACTIVATED from factories.factory_experiments import ExperimentFactory from factorie...
36.795918
68
0.658902
1c9164529ab22e884811a536f6b8ba91eb8bbe19
420
py
Python
tests/framework/test_ingress.py
praus/shapy
7fa5512d9015b4921870f212495280fbb0675164
[ "MIT" ]
54
2015-01-14T10:14:11.000Z
2022-02-25T17:12:10.000Z
tests/framework/test_ingress.py
praus/shapy
7fa5512d9015b4921870f212495280fbb0675164
[ "MIT" ]
1
2015-12-29T07:37:17.000Z
2015-12-30T06:17:41.000Z
tests/framework/test_ingress.py
praus/shapy
7fa5512d9015b4921870f212495280fbb0675164
[ "MIT" ]
14
2015-02-10T15:29:48.000Z
2021-09-22T03:01:13.000Z
import unittest from shapy.framework.tcelements import * from shapy.framework.executor import run from tests import TCTestCase
24.705882
54
0.688095
1c91c9a08ce7e29a5358fe242bc8b960fc941c8f
1,844
py
Python
software/hippietrap/gradient.py
mayhem/led-chandelier
899caa8d81e6aac6e954f78b4f5b4ab101bf5257
[ "MIT" ]
2
2018-09-20T08:36:11.000Z
2019-08-25T20:06:11.000Z
software/hippietrap/gradient.py
mayhem/led-chandelier
899caa8d81e6aac6e954f78b4f5b4ab101bf5257
[ "MIT" ]
null
null
null
software/hippietrap/gradient.py
mayhem/led-chandelier
899caa8d81e6aac6e954f78b4f5b4ab101bf5257
[ "MIT" ]
1
2020-12-12T18:21:18.000Z
2020-12-12T18:21:18.000Z
from colorsys import hsv_to_rgb from math import fabs, fmod import os from hippietrap.color import Color
29.741935
107
0.58026
1c95c503cb53578803e2dbe2dd22ba875018dd47
817
py
Python
stix_shifter_modules/elastic/entry_point.py
6un9-h0-Dan/stix-shifter
f99feee8c247b9fc1d79f6db623c301b49685b63
[ "Apache-2.0" ]
1
2020-04-06T21:28:19.000Z
2020-04-06T21:28:19.000Z
stix_shifter_modules/elastic/entry_point.py
6un9-h0-Dan/stix-shifter
f99feee8c247b9fc1d79f6db623c301b49685b63
[ "Apache-2.0" ]
null
null
null
stix_shifter_modules/elastic/entry_point.py
6un9-h0-Dan/stix-shifter
f99feee8c247b9fc1d79f6db623c301b49685b63
[ "Apache-2.0" ]
null
null
null
from stix_shifter_utils.utils.entry_point_base import EntryPointBase from stix_shifter_utils.modules.cim.stix_translation.cim_data_mapper import CimDataMapper from stix_shifter_utils.modules.car.stix_translation.car_data_mapper import CarDataMapper from .stix_translation.stix_to_elastic import StixToElastic
74.272727
124
0.812729
1c962e345da89a5eb411a0b3f49cfb775dfe43b5
1,850
py
Python
src/http_pick/pickergui.py
thomaspcole/http-pick
c470869878483241672c2928fd85458ab30555c4
[ "MIT" ]
null
null
null
src/http_pick/pickergui.py
thomaspcole/http-pick
c470869878483241672c2928fd85458ab30555c4
[ "MIT" ]
null
null
null
src/http_pick/pickergui.py
thomaspcole/http-pick
c470869878483241672c2928fd85458ab30555c4
[ "MIT" ]
null
null
null
from PyQt5.QtWidgets import (QMainWindow, QToolButton, QWidget, QHBoxLayout) from PyQt5.QtGui import QIcon from PyQt5 import QtCore from math import floor import sys
40.217391
148
0.591892
1c967254ce0d2a6e7d37a5e738a1749e4d64b857
6,324
py
Python
genetic_pwdcrack.py
robotenique/AI-programming
41a690963b452165342cfd3caa81bfad13d1cc76
[ "Unlicense" ]
3
2018-04-05T16:38:48.000Z
2020-11-15T21:24:57.000Z
genetic_pwdcrack.py
robotenique/AI-programming
41a690963b452165342cfd3caa81bfad13d1cc76
[ "Unlicense" ]
null
null
null
genetic_pwdcrack.py
robotenique/AI-programming
41a690963b452165342cfd3caa81bfad13d1cc76
[ "Unlicense" ]
null
null
null
""" Crack a password using a genetic algorithm! """ import random as rnd def main(): """ This file implements a genetic algorithm to solve the problem of cracking a given password, by creating 'generations' of different words, selecting the best, breeeding them, applying a simple crossover (randomi...
34
108
0.669355