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
708a394ef1e0df69e0c499106dd15967d32aa202
2,001
py
Python
tutorials/basics/g_app.py
nunoedgarhubsoftphotoflow/py-fmas
241d942fe0cd6a49001b1bf110dd32bccc86bb16
[ "MIT" ]
4
2021-04-28T07:02:54.000Z
2022-01-25T13:15:49.000Z
tutorials/basics/g_app.py
Photonics-Precision-Technologies/py-fmas
241d942fe0cd6a49001b1bf110dd32bccc86bb16
[ "MIT" ]
3
2021-06-10T07:11:35.000Z
2021-11-22T15:23:01.000Z
tutorials/basics/g_app.py
Photonics-Precision-Technologies/py-fmas
241d942fe0cd6a49001b1bf110dd32bccc86bb16
[ "MIT" ]
5
2021-05-20T08:53:44.000Z
2022-01-25T13:18:34.000Z
r""" Using `fmas` as a black-box application ======================================= This examples shows how to use `py-fmas` as a black-box application, that only requires a minimal amount of scripting. .. codeauthor:: Oliver Melchert <melchert@iqo.uni-hannover.de> """ #############################################...
39.235294
79
0.594703
708b028c1ab718e2fb6ff3f78c3ef2f30aed6475
3,852
py
Python
tests.py
CTPUG/mdx_attr_cols
8aef79857685f9913c703befe717872d4e2d1bea
[ "0BSD" ]
null
null
null
tests.py
CTPUG/mdx_attr_cols
8aef79857685f9913c703befe717872d4e2d1bea
[ "0BSD" ]
null
null
null
tests.py
CTPUG/mdx_attr_cols
8aef79857685f9913c703befe717872d4e2d1bea
[ "0BSD" ]
null
null
null
from unittest import TestCase import xmltodict from markdown import Markdown from markdown.util import etree from mdx_attr_cols import AttrColTreeProcessor, AttrColExtension, makeExtension
32.369748
79
0.616044
708b7c3f2101b8cf722c8c1af351e895b4c6a938
621
py
Python
backend/tiles/migrations/0002_auto_20200526_0100.py
landdafku11/mobile-backend
3f3328afd81f85f90170a57689af72f8f705b8a3
[ "MIT" ]
null
null
null
backend/tiles/migrations/0002_auto_20200526_0100.py
landdafku11/mobile-backend
3f3328afd81f85f90170a57689af72f8f705b8a3
[ "MIT" ]
null
null
null
backend/tiles/migrations/0002_auto_20200526_0100.py
landdafku11/mobile-backend
3f3328afd81f85f90170a57689af72f8f705b8a3
[ "MIT" ]
null
null
null
# Generated by Django 3.0.5 on 2020-05-25 17:00 from django.db import migrations, models import django.db.models.deletion
24.84
116
0.602254
708c9cd7e0c47f6fd647b59adb4727ab13f448e2
1,764
py
Python
dialogbot/search/local/tfidfmodel.py
ishine/dialogbot
6c3d2f95555a05a3b935dda818e481ddc20eed08
[ "Apache-2.0" ]
68
2019-06-30T07:39:59.000Z
2022-03-30T12:15:40.000Z
dialogbot/search/local/tfidfmodel.py
ishine/dialogbot
6c3d2f95555a05a3b935dda818e481ddc20eed08
[ "Apache-2.0" ]
2
2021-06-30T10:22:17.000Z
2021-07-27T12:41:01.000Z
dialogbot/search/local/tfidfmodel.py
ishine/dialogbot
6c3d2f95555a05a3b935dda818e481ddc20eed08
[ "Apache-2.0" ]
16
2019-08-22T16:05:53.000Z
2022-03-11T07:51:27.000Z
# -*- coding: utf-8 -*- """ @author:XuMing(xuming624@qq.com) @description: """ import time from gensim import corpora, models, similarities from dialogbot.reader.data_helper import load_corpus_file from dialogbot.utils.log import logger
33.923077
108
0.647392
7090b5633b08f50dcfd4327962f33bf944fbe670
237
py
Python
LeetCode/lc0137-Single Number II.py
rahulbakshee/cp
0299de012e5d09bb13636f4fdcc9481da1fbc54f
[ "MIT" ]
null
null
null
LeetCode/lc0137-Single Number II.py
rahulbakshee/cp
0299de012e5d09bb13636f4fdcc9481da1fbc54f
[ "MIT" ]
null
null
null
LeetCode/lc0137-Single Number II.py
rahulbakshee/cp
0299de012e5d09bb13636f4fdcc9481da1fbc54f
[ "MIT" ]
null
null
null
# https://leetcode.com/problems/single-number-ii/
26.333333
51
0.586498
7091366072f1274a003619cb14cf65bebdc5b41f
6,052
py
Python
aslam_offline_calibration/kalibr/python/kalibr_evaluation_calibration.py
zhixy/multical
b5eeb6283f4ad68def4b62c10416a6764651e771
[ "BSD-3-Clause" ]
27
2021-03-26T12:03:48.000Z
2022-03-29T02:16:56.000Z
aslam_offline_calibration/kalibr/python/kalibr_evaluation_calibration.py
zhixy/multical
b5eeb6283f4ad68def4b62c10416a6764651e771
[ "BSD-3-Clause" ]
2
2021-03-26T14:34:51.000Z
2021-11-03T09:14:16.000Z
aslam_offline_calibration/kalibr/python/kalibr_evaluation_calibration.py
zhixy/multical
b5eeb6283f4ad68def4b62c10416a6764651e771
[ "BSD-3-Clause" ]
9
2021-08-23T11:25:29.000Z
2022-03-28T13:22:39.000Z
#!/usr/bin/env python import argparse import kalibr_common as kc from mpl_toolkits.mplot3d import art3d, Axes3D, proj3d import numpy as np import pylab as pl import sm import glob if __name__ == "__main__": main()
45.503759
119
0.666887
7092b52d42b2a6cc2e1c28dd93180668936123db
3,251
bzl
Python
antlir/vm/bzl/install_kernel_modules.bzl
zeroxoneb/antlir
811d88965610d16a5c85d831d317f087797ca732
[ "MIT" ]
28
2020-08-11T16:22:46.000Z
2022-03-04T15:41:52.000Z
antlir/vm/bzl/install_kernel_modules.bzl
zeroxoneb/antlir
811d88965610d16a5c85d831d317f087797ca732
[ "MIT" ]
137
2020-08-11T16:07:49.000Z
2022-02-27T10:59:05.000Z
antlir/vm/bzl/install_kernel_modules.bzl
zeroxoneb/antlir
811d88965610d16a5c85d831d317f087797ca732
[ "MIT" ]
10
2020-09-10T00:01:28.000Z
2022-03-08T18:00:28.000Z
# Copyright (c) Facebook, Inc. and its affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. load("@bazel_skylib//lib:paths.bzl", "paths") load("//antlir/bzl:image.bzl", "image") load("//antlir/bzl:oss_shim.bzl", "buck_genrule") load("...
38.702381
123
0.538296
709423185bdfdebb688bc7d5a18f61d78ced662c
22
py
Python
bifrost_min_read_check/__init__.py
ssi-dk/bifrost_min_read_check
120951280c4ca7dab07c59d73e677b701e2a5cca
[ "MIT" ]
null
null
null
bifrost_min_read_check/__init__.py
ssi-dk/bifrost_min_read_check
120951280c4ca7dab07c59d73e677b701e2a5cca
[ "MIT" ]
1
2020-08-21T07:14:36.000Z
2020-08-21T07:14:36.000Z
bifrost_min_read_check/__init__.py
ssi-dk/bifrost_min_read_check
120951280c4ca7dab07c59d73e677b701e2a5cca
[ "MIT" ]
null
null
null
__version__ = 'v2_2_8'
22
22
0.772727
70956e742f00e379dd33cde03763c0b2f6948b87
12,173
py
Python
medis/Detector/get_photon_data.py
RupertDodkins/medis
bdb1f00fb93506da2a1f251bc6780e70e97a16c5
[ "MIT" ]
1
2021-06-25T17:35:56.000Z
2021-06-25T17:35:56.000Z
medis/Detector/get_photon_data.py
RupertDodkins/medis
bdb1f00fb93506da2a1f251bc6780e70e97a16c5
[ "MIT" ]
null
null
null
medis/Detector/get_photon_data.py
RupertDodkins/medis
bdb1f00fb93506da2a1f251bc6780e70e97a16c5
[ "MIT" ]
2
2018-12-08T15:05:13.000Z
2019-08-08T17:28:24.000Z
"""Top level code that takes a atmosphere phase map and propagates a wavefront through the system""" import os import numpy as np import traceback import multiprocessing import glob import random import pickle as pickle import time from proper_mod import prop_run from medis.Utils.plot_tools import quicklook_im, view_d...
36.446108
147
0.594348
70974016c8294426ef58c0a0a53fcfaf197aee1a
332
py
Python
HW3/YaRa1312/Pleshyvtseva PythonCore HW 3.3.py
kolyasalubov/Lv-677.PythonCore
c9f9107c734a61e398154a90b8a3e249276c2704
[ "MIT" ]
null
null
null
HW3/YaRa1312/Pleshyvtseva PythonCore HW 3.3.py
kolyasalubov/Lv-677.PythonCore
c9f9107c734a61e398154a90b8a3e249276c2704
[ "MIT" ]
null
null
null
HW3/YaRa1312/Pleshyvtseva PythonCore HW 3.3.py
kolyasalubov/Lv-677.PythonCore
c9f9107c734a61e398154a90b8a3e249276c2704
[ "MIT" ]
6
2022-02-22T22:30:49.000Z
2022-03-28T12:51:19.000Z
#3.3 user_ineteger_1 = int(input("Enter an integer: ")) user_integer_2 = int(input("Enter an other integer or the same as the first one: ")) sameOrNot(user_ineteger_1, user_integer_2)
36.888889
84
0.713855
709771a132f3b39704dc8a78fa50fd197c2b9aca
144
py
Python
tests/fixtures/regressors/__init__.py
XavierJingfeng/starter
274566e491d5c7157f3c8deff136c56838022349
[ "MIT" ]
null
null
null
tests/fixtures/regressors/__init__.py
XavierJingfeng/starter
274566e491d5c7157f3c8deff136c56838022349
[ "MIT" ]
null
null
null
tests/fixtures/regressors/__init__.py
XavierJingfeng/starter
274566e491d5c7157f3c8deff136c56838022349
[ "MIT" ]
null
null
null
from tests.fixtures.regressors.simple_gaussian_mlp_regressor import ( SimpleGaussianMLPRegressor) __all__ = ['SimpleGaussianMLPRegressor']
28.8
69
0.840278
709b6bd1dc6310e9d17ea3ad5431e576cabcfddb
10,286
py
Python
src/utils/workflow_utils.py
cmikke97/AMSG
ddcfeb6262124e793fcee385405365417e57f91f
[ "Apache-2.0" ]
3
2021-06-30T07:22:46.000Z
2022-03-23T08:21:10.000Z
src/utils/workflow_utils.py
cmikke97/Automatic-Malware-Signature-Generation
ddcfeb6262124e793fcee385405365417e57f91f
[ "Apache-2.0" ]
null
null
null
src/utils/workflow_utils.py
cmikke97/Automatic-Malware-Signature-Generation
ddcfeb6262124e793fcee385405365417e57f91f
[ "Apache-2.0" ]
null
null
null
# Copyright 2021, Crepaldi Michele. # # Developed as a thesis project at the TORSEC research group of the Polytechnic of Turin (Italy) under the supervision # of professor Antonio Lioy and engineer Andrea Atzeni and with the support of engineer Andrea Marcelli. # # Licensed under the Apache License, Version 2.0 (the "L...
44.336207
118
0.66994
709bdbfb5b18720b7d117f1e6e1e246c7727a60a
1,578
py
Python
tests/test_data.py
joseph-nagel/torchutils
e13b5b156734dc1645e1d6c7b81738ca52904c92
[ "MIT" ]
null
null
null
tests/test_data.py
joseph-nagel/torchutils
e13b5b156734dc1645e1d6c7b81738ca52904c92
[ "MIT" ]
null
null
null
tests/test_data.py
joseph-nagel/torchutils
e13b5b156734dc1645e1d6c7b81738ca52904c92
[ "MIT" ]
null
null
null
'''Tests for the data module.''' import pytest import numpy as np import torch from torch.utils.data import TensorDataset from torchutils.data import mean_std_over_dataset, image2tensor, tensor2image
38.487805
77
0.707858
709be0e39f954015ae500d50e9d8b5505b26abc0
8,593
py
Python
src/model_execution_worker/tasks.py
OasisLMF/OasisPlatform_SQL
e3359d0bd3093e47bc46848c810b8876980d5cbc
[ "BSD-3-Clause" ]
1
2020-02-27T13:25:22.000Z
2020-02-27T13:25:22.000Z
src/model_execution_worker/tasks.py
OasisLMF/OasisPlatform_SQL
e3359d0bd3093e47bc46848c810b8876980d5cbc
[ "BSD-3-Clause" ]
3
2019-11-14T10:26:46.000Z
2021-03-25T22:33:52.000Z
src/model_execution_worker/tasks.py
OasisLMF/OasisPlatform_SQL
e3359d0bd3093e47bc46848c810b8876980d5cbc
[ "BSD-3-Clause" ]
2
2019-03-21T09:22:12.000Z
2019-05-24T15:13:51.000Z
from __future__ import absolute_import import importlib import logging import uuid from contextlib import contextmanager import fasteners import json import os import shutil import tarfile import glob import sys import time from oasislmf.model_execution.bin import prepare_model_run_directory, prepare_model_run_input...
39.237443
124
0.718375
709c91d65265a22a647756f08a9dbfdc545c3f18
1,088
py
Python
complejidad_algoritmica.py
francomanca93/poo-algoritmos-python
47bc0289cf1a91e2bee93f354bd39e1b592fa774
[ "MIT" ]
null
null
null
complejidad_algoritmica.py
francomanca93/poo-algoritmos-python
47bc0289cf1a91e2bee93f354bd39e1b592fa774
[ "MIT" ]
null
null
null
complejidad_algoritmica.py
francomanca93/poo-algoritmos-python
47bc0289cf1a91e2bee93f354bd39e1b592fa774
[ "MIT" ]
null
null
null
import time # Importo el modulo sys y aumento el limite de recursin, ya que viene predefinido con 1000 import sys sys.setrecursionlimit(1000000) # 1 000 000 if __name__ == '__main__': n = 10000000 print('Complejidad temporal de un algoritmo ITERATIVO. Factorial') comienzo = time.time() factorial_it...
23.652174
91
0.647059
709f375eec3da89e1429343cd567396c10876145
765
py
Python
wheel/notice/email_sender.py
kong5664546498/half_a_wheel
d50c2359ac7dda55f54dd08bb588091eb6232b81
[ "MIT" ]
null
null
null
wheel/notice/email_sender.py
kong5664546498/half_a_wheel
d50c2359ac7dda55f54dd08bb588091eb6232b81
[ "MIT" ]
null
null
null
wheel/notice/email_sender.py
kong5664546498/half_a_wheel
d50c2359ac7dda55f54dd08bb588091eb6232b81
[ "MIT" ]
null
null
null
import smtplib from email.header import Header from email.mime.text import MIMEText
34.772727
79
0.616993
70a04db5de55b9f9804753c3bf5f7a12c6fc7e92
6,590
py
Python
src/config_common.py
karawallace/mygene
35bf066eb50bc929b4bb4e2423d47b4c98797526
[ "Apache-2.0" ]
null
null
null
src/config_common.py
karawallace/mygene
35bf066eb50bc929b4bb4e2423d47b4c98797526
[ "Apache-2.0" ]
null
null
null
src/config_common.py
karawallace/mygene
35bf066eb50bc929b4bb4e2423d47b4c98797526
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- from biothings.www.settings.default import * from www.api.query_builder import ESQueryBuilder from www.api.query import ESQuery from www.api.transform import ESResultTransformer from www.api.handlers import GeneHandler, QueryHandler, MetadataHandler, StatusHandler, TaxonHandler, DemoHandler # *...
43.642384
136
0.57648
70a079756e35eca1c02df3f616492a74895b5e66
3,785
py
Python
makepip/makepip.py
ao/makepip
6552aa2161e69b63d0564c03b2f36a3f1cd90a34
[ "MIT" ]
null
null
null
makepip/makepip.py
ao/makepip
6552aa2161e69b63d0564c03b2f36a3f1cd90a34
[ "MIT" ]
null
null
null
makepip/makepip.py
ao/makepip
6552aa2161e69b63d0564c03b2f36a3f1cd90a34
[ "MIT" ]
null
null
null
#!/usr/bin/env python import os from pathlib import Path home = str(Path.home()) import datetime now = datetime.datetime.now() if __name__ == "__main__": main()
27.035714
123
0.674769
70a1fd6852d7db5fa6fd60e6b794975a1360fc9b
3,355
py
Python
hangouts-chat.py
matallen/ninja-points
a2af9f358bc302f4638d1516055c687cffa546ab
[ "Apache-2.0" ]
7
2018-11-27T10:13:48.000Z
2022-01-22T07:33:28.000Z
hangouts-chat.py
matallen/ninja-points
a2af9f358bc302f4638d1516055c687cffa546ab
[ "Apache-2.0" ]
29
2018-01-06T05:02:38.000Z
2021-05-20T15:27:15.000Z
hangouts-chat.py
matallen/ninja-points
a2af9f358bc302f4638d1516055c687cffa546ab
[ "Apache-2.0" ]
14
2017-12-09T14:58:53.000Z
2022-01-24T15:56:01.000Z
#!/usr/bin/env python from oauth2client.service_account import ServiceAccountCredentials from os import path import os, requests, sys, argparse SERVICE_ACCOUNT_KEY_FILE_NAME='SERVICE_ACCOUNT_KEY_FILE' HANGOUTS_CHATS_API='https://chat.googleapis.com/v1' GOOGLE_CHAT_SCOPE='https://www.googleapis.com/auth/chat.bot' SPAC...
29.690265
120
0.708793
70a52b1be3075c53fa2ae1d2c049a7526d9ddb9b
923
py
Python
pyRoovit/pyRoovit.extension/pyRoovit.tab/Tools.Panel/Document.pulldown/Find.pushbutton/script.py
jmcouffin/pyRoovit
acafa74fb6310a1042c703d791b0d53804c1882a
[ "BSD-3-Clause" ]
5
2022-03-14T01:58:34.000Z
2022-03-21T19:51:09.000Z
pyRoovit/pyRoovit.extension/pyRoovit.tab/Tools.Panel/Document.pulldown/Find.pushbutton/script.py
jmcouffin/pyRoovit
acafa74fb6310a1042c703d791b0d53804c1882a
[ "BSD-3-Clause" ]
1
2022-03-14T10:18:40.000Z
2022-03-14T15:52:25.000Z
pyRoovit/pyRoovit.extension/pyRoovit.tab/Tools.Panel/Document.pulldown/Find.pushbutton/script.py
jmcouffin/pyRoovit
acafa74fb6310a1042c703d791b0d53804c1882a
[ "BSD-3-Clause" ]
1
2022-03-14T10:15:22.000Z
2022-03-14T10:15:22.000Z
# import libraries import clr import os from os import listdir import System from System.IO import SearchOption from System import Environment # import pyrevit libraries from pyrevit import forms from pyrevit import revit,DB # get document doc = revit.doc # try to open cache path try: curdoc = DB.Document.PathNam...
31.827586
193
0.713976
70a65f53a022d6fe554e262dd2b61539aad6cfe3
15,323
py
Python
ansible_collection/hpe/nimble/plugins/modules/hpe_nimble_network.py
datamattsson/nimble-ansible-modules
ba306153f98db093a9af47c99bdfce1381660880
[ "Apache-2.0" ]
null
null
null
ansible_collection/hpe/nimble/plugins/modules/hpe_nimble_network.py
datamattsson/nimble-ansible-modules
ba306153f98db093a9af47c99bdfce1381660880
[ "Apache-2.0" ]
null
null
null
ansible_collection/hpe/nimble/plugins/modules/hpe_nimble_network.py
datamattsson/nimble-ansible-modules
ba306153f98db093a9af47c99bdfce1381660880
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python # # Copyright 2020 Hewlett Packard Enterprise Development LP # # 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 require...
34.825
149
0.601775
70a965ab4266b455f06fc24f6cfc9727034185be
1,428
py
Python
crawler.py
YellowDong/taohua
b61778d0e49d885141756ca52b1e426f03e89218
[ "MIT" ]
null
null
null
crawler.py
YellowDong/taohua
b61778d0e49d885141756ca52b1e426f03e89218
[ "MIT" ]
null
null
null
crawler.py
YellowDong/taohua
b61778d0e49d885141756ca52b1e426f03e89218
[ "MIT" ]
null
null
null
from requests_html import HTMLSession import re from .blog.models import (Article, Tag, Category) if __name__ == '__main__': test = Spider() links = test.get_list() if links: for i in links: resp = test.get_detail(i) text = test.parser(resp)
30.382979
96
0.556723
56061be80b560aeb56981297f4a7efbad2518c39
131
py
Python
question_repo/apps/repo/signal/signals.py
Quizas007/question_repo
e377257137077b17ed039b06d3d6990d56d63743
[ "Apache-2.0" ]
null
null
null
question_repo/apps/repo/signal/signals.py
Quizas007/question_repo
e377257137077b17ed039b06d3d6990d56d63743
[ "Apache-2.0" ]
null
null
null
question_repo/apps/repo/signal/signals.py
Quizas007/question_repo
e377257137077b17ed039b06d3d6990d56d63743
[ "Apache-2.0" ]
null
null
null
""" """ import django.dispatch mysignal = django.dispatch.Signal(providing_args=["arg1","arg2"]) #
10.916667
65
0.709924
5607fbf70d32a16b417fbba1a89c53e34ec639fc
4,674
py
Python
ultrasync/create_sync_samples.py
aeshky/ultrasync
0801bcb0312bba2eab07f12f9a68f3a431f5aaeb
[ "Apache-2.0" ]
7
2019-07-29T20:00:25.000Z
2021-06-22T21:21:50.000Z
ultrasync/create_sync_samples.py
aeshky/ultrasync
0801bcb0312bba2eab07f12f9a68f3a431f5aaeb
[ "Apache-2.0" ]
1
2019-10-01T14:25:33.000Z
2019-10-28T15:19:52.000Z
ultrasync/create_sync_samples.py
aeshky/ultrasync
0801bcb0312bba2eab07f12f9a68f3a431f5aaeb
[ "Apache-2.0" ]
null
null
null
""" Date: Jul 2018 Author: Aciel Eshky A script to create positive and negative samples using self-supervision. """ import os import sys import random import pandas as pd from numpy.random import seed as np_seed from ustools.folder_utils import get_utterance_id, get_dir_info from ultrasync.create_sync_samples_uti...
31.369128
111
0.632649
5608507a8fbe16afc4a2757ca530a21ae1157296
515
py
Python
setup.py
kaynhelga9/64-bit-Ninja
ba3ffa69797a6f52103142515f0ee253e69e0d49
[ "MIT" ]
3
2019-02-11T14:40:29.000Z
2019-04-21T21:59:11.000Z
setup.py
kaynhelga9/64-bit-Ninja
ba3ffa69797a6f52103142515f0ee253e69e0d49
[ "MIT" ]
null
null
null
setup.py
kaynhelga9/64-bit-Ninja
ba3ffa69797a6f52103142515f0ee253e69e0d49
[ "MIT" ]
null
null
null
import cx_Freeze import os os.environ['TCL_LIBRARY'] = r'C:\Users\Khanh Huynh\AppData\Local\Programs\Python\Python36\tcl\tcl8.6' os.environ['TK_LIBRARY'] = r'C:\Users\Khanh Huynh\AppData\Local\Programs\Python\Python36\tcl\tk8.6' executables = [cx_Freeze.Executable('game.py')] cx_Freeze.setup( name = '64...
34.333333
102
0.669903
5609ed8bf29ac968a3c75282d2fbdfa0946a74d7
1,475
py
Python
xiAnresturant/graph.py
wangteng200000318/-DataMiningMeiTuan
eb152a090c3025726bcb793484d4a88f2072b744
[ "MIT" ]
4
2020-11-23T04:50:41.000Z
2021-03-12T06:19:59.000Z
xiAnresturant/graph.py
wangteng200000318/-DataMiningMeiTuan
eb152a090c3025726bcb793484d4a88f2072b744
[ "MIT" ]
null
null
null
xiAnresturant/graph.py
wangteng200000318/-DataMiningMeiTuan
eb152a090c3025726bcb793484d4a88f2072b744
[ "MIT" ]
null
null
null
from wordcloud import WordCloud import jieba import matplotlib.pyplot as plt xiaozhai = ['', '', '', '', '', '', 'CoCo', '', '5', '82C', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '0057', 'M12', '', '' ...
37.820513
69
0.589831
560adc09db2a2d64ed970d3656db7a5e1e25da54
4,055
py
Python
api/server/routes/catchall.py
corentinthomasset/ibm-call-for-code-2021
2a3cbc7c9a5a21fd0caa9cbc0a57904bb2087872
[ "Apache-2.0" ]
null
null
null
api/server/routes/catchall.py
corentinthomasset/ibm-call-for-code-2021
2a3cbc7c9a5a21fd0caa9cbc0a57904bb2087872
[ "Apache-2.0" ]
null
null
null
api/server/routes/catchall.py
corentinthomasset/ibm-call-for-code-2021
2a3cbc7c9a5a21fd0caa9cbc0a57904bb2087872
[ "Apache-2.0" ]
null
null
null
import logging import json import warnings import time import datetime as dt from ast import literal_eval as make_tuple from flask import jsonify, abort, Response, request from server import app, cln_client from cloudant.error import CloudantException, ResultException from cloudant.query import Query import yfinanc...
33.237705
109
0.568927
560b81c62a615cdb5ce98cccdf4071f843bedca3
315
py
Python
setup.py
dkasak/pymodoro
fb17cb29f9473727d3607c14da59b12a9b63d02a
[ "MIT" ]
2
2020-06-12T11:11:14.000Z
2020-07-16T08:15:53.000Z
setup.py
dkasak/pymodoro
fb17cb29f9473727d3607c14da59b12a9b63d02a
[ "MIT" ]
null
null
null
setup.py
dkasak/pymodoro
fb17cb29f9473727d3607c14da59b12a9b63d02a
[ "MIT" ]
null
null
null
from setuptools import setup setup( name='pymodoro', version='0.4', packages=['pymodoro'], package_data={'pymodoro': ['data/*']}, entry_points={ "console_scripts": [ "pymodoro = pymodoro.pymodoro:main", "pymodoroi3 = pymodoro.pymodoroi3:main" ] }, )
21
51
0.565079
560c68d1de24eff114517db2454d489387dbeb48
267
py
Python
src/ralph/dns/apps.py
DoNnMyTh/ralph
97b91639fa68965ad3fd9d0d2652a6545a2a5b72
[ "Apache-2.0" ]
1,668
2015-01-01T12:51:20.000Z
2022-03-29T09:05:35.000Z
src/ralph/dns/apps.py
hq-git/ralph
e2448caf02d6e5abfd81da2cff92aefe0a534883
[ "Apache-2.0" ]
2,314
2015-01-02T13:26:26.000Z
2022-03-29T04:06:03.000Z
src/ralph/dns/apps.py
hq-git/ralph
e2448caf02d6e5abfd81da2cff92aefe0a534883
[ "Apache-2.0" ]
534
2015-01-05T12:40:28.000Z
2022-03-29T21:10:12.000Z
from django.conf import settings from ralph.apps import RalphAppConfig
20.538462
46
0.696629
560d0ef05a9d538d23b9e00d5bb4bf708502cb92
1,132
py
Python
RLTutorial/MDPValue.py
fyabc/MSRAPaperProject
2d7974acfe8065523d0c56da695807e94acd0b34
[ "MIT" ]
1
2016-08-17T10:04:30.000Z
2016-08-17T10:04:30.000Z
RLTutorial/MDPValue.py
fyabc/MSRAPaperProject
2d7974acfe8065523d0c56da695807e94acd0b34
[ "MIT" ]
null
null
null
RLTutorial/MDPValue.py
fyabc/MSRAPaperProject
2d7974acfe8065523d0c56da695807e94acd0b34
[ "MIT" ]
null
null
null
#! /usr/bin/python # -*- encoding: utf-8 -*- from __future__ import print_function, unicode_literals from MDP import MDP import version23 __author__ = 'fyabc' # random.seed(0) if __name__ == '__main__': test()
21.769231
72
0.550353
560d4c8d48ed8fbb6b163e3376983982a59d0792
19,002
py
Python
tests/test_component/test_task.py
andre-merzky/radical.entk
a63ad9158cf2f58d7bfff017f7da9cd5236429b5
[ "MIT" ]
null
null
null
tests/test_component/test_task.py
andre-merzky/radical.entk
a63ad9158cf2f58d7bfff017f7da9cd5236429b5
[ "MIT" ]
null
null
null
tests/test_component/test_task.py
andre-merzky/radical.entk
a63ad9158cf2f58d7bfff017f7da9cd5236429b5
[ "MIT" ]
null
null
null
#!/usr/bin/env python import os import glob import shutil import pytest import hypothesis.strategies as st from hypothesis import given, settings from radical.entk import Task from radical.entk import states import radical.entk.exceptions as ree # Hypothesis settings settings.register_profile("travis", ma...
41.041037
86
0.393801
560d83927ccbfa6f396f7f59b1122955d5914eea
3,689
py
Python
main.py
MNicaretta/picrosssolver
2919049b6a2beebb47d883ddee7ba830bf809a59
[ "MIT" ]
null
null
null
main.py
MNicaretta/picrosssolver
2919049b6a2beebb47d883ddee7ba830bf809a59
[ "MIT" ]
null
null
null
main.py
MNicaretta/picrosssolver
2919049b6a2beebb47d883ddee7ba830bf809a59
[ "MIT" ]
null
null
null
from enum import Enum picross = Picross([Clues(1,1,1),Clues(1,1),Clues(1,2),Clues(5),Clues(1,1,1)], [Clues(1,2), Clues(3), Clues(1,2),Clues(3),Clues(1,3)]) print(picross) picross.solve()
25.797203
100
0.500407
560df272ec26702a46aac33cc6e289b61e0a8412
3,055
py
Python
legonet_pytorch/module.py
max-liulin/CV-Backbones
b32239d10126c8f84e6f6283b95b42b3b60b1a06
[ "Apache-2.0" ]
220
2019-11-27T03:02:14.000Z
2020-02-26T14:08:41.000Z
legonet_pytorch/module.py
vickyqi7/CV-Backbones
1262dacffdea62f9983ef0231177aea720e25f12
[ "Apache-2.0" ]
3
2019-12-10T15:00:57.000Z
2020-02-02T12:02:47.000Z
legonet_pytorch/module.py
vickyqi7/CV-Backbones
1262dacffdea62f9983ef0231177aea720e25f12
[ "Apache-2.0" ]
35
2019-11-28T05:21:50.000Z
2020-02-26T13:46:11.000Z
''' Copyright (C) 2016. Huawei Technologies Co., Ltd. All rights reserved. This program is free software; you can redistribute it and/or modify it under the terms of the MIT license. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANT...
50.081967
144
0.67365
560eee76e44697ef904786e1db3a7b3facad82f0
488
py
Python
backend/trucks/migrations/0005_auto_20201029_2137.py
NikogSamonic/Log_app
197fb46b84d102942352d1a30d2a64680b18d943
[ "MIT" ]
11
2020-09-21T18:58:09.000Z
2020-10-21T19:08:50.000Z
backend/trucks/migrations/0005_auto_20201029_2137.py
NikogSamonic/Log_app
197fb46b84d102942352d1a30d2a64680b18d943
[ "MIT" ]
8
2020-09-22T02:59:26.000Z
2020-10-31T07:28:59.000Z
backend/trucks/migrations/0005_auto_20201029_2137.py
NikogSamonic/Log_app
197fb46b84d102942352d1a30d2a64680b18d943
[ "MIT" ]
21
2020-09-21T11:46:42.000Z
2020-10-29T22:57:47.000Z
# Generated by Django 3.1.2 on 2020-10-29 20:37 from django.db import migrations, models
21.217391
60
0.561475
560fa46d7efbe40812073452461efabc1cf83295
3,719
py
Python
pychron/dvc/util.py
ASUPychron/pychron
dfe551bdeb4ff8b8ba5cdea0edab336025e8cc76
[ "Apache-2.0" ]
31
2016-03-07T02:38:17.000Z
2022-02-14T18:23:43.000Z
pychron/dvc/util.py
ASUPychron/pychron
dfe551bdeb4ff8b8ba5cdea0edab336025e8cc76
[ "Apache-2.0" ]
1,626
2015-01-07T04:52:35.000Z
2022-03-25T19:15:59.000Z
pychron/dvc/util.py
UIllinoisHALPychron/pychron
f21b79f4592a9fb9dc9a4cb2e4e943a3885ededc
[ "Apache-2.0" ]
26
2015-05-23T00:10:06.000Z
2022-03-07T16:51:57.000Z
# =============================================================================== # Copyright 2019 ross # # 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/LICE...
32.33913
91
0.547728
560fcacc1a61a2c757a12a88e6d3d993d2d1a1d4
3,214
py
Python
processor/gen_record.py
Princeton-Penn-Vents/princeton-penn-flowmeter
85a5ca8357ca34e0b543fa1489d48ecbc8023294
[ "MIT" ]
3
2020-04-14T10:45:12.000Z
2022-01-06T16:40:30.000Z
processor/gen_record.py
Princeton-Penn-Vents/princeton-penn-flowmeter
85a5ca8357ca34e0b543fa1489d48ecbc8023294
[ "MIT" ]
36
2020-04-05T16:23:33.000Z
2020-10-02T02:58:21.000Z
processor/gen_record.py
Princeton-Penn-Vents/princeton-penn-flowmeter
85a5ca8357ca34e0b543fa1489d48ecbc8023294
[ "MIT" ]
1
2020-04-05T13:18:47.000Z
2020-04-05T13:18:47.000Z
from __future__ import annotations from typing import Optional from dataclasses import dataclass from logging import Logger from processor.device_names import address_to_name
26.561983
73
0.564717
56115c228ac0c726ff0df0045669becb3ae31e8a
22,024
py
Python
inputs/transformers.py
aayushk614/DTI
f0338918144c0efbb79556ac8e81cbcefc70e22f
[ "MIT" ]
null
null
null
inputs/transformers.py
aayushk614/DTI
f0338918144c0efbb79556ac8e81cbcefc70e22f
[ "MIT" ]
null
null
null
inputs/transformers.py
aayushk614/DTI
f0338918144c0efbb79556ac8e81cbcefc70e22f
[ "MIT" ]
null
null
null
from __future__ import print_function import math import nibabel as nib import nrrd import numpy as np import operator import os import random import torch import warnings from functools import reduce from inputs import Image, ImageType CHANNEL, DEPTH, HEIGHT, WIDTH = 0, 1, 2, 3
37.265651
120
0.593444
56116252a18b3ab533ede58656a33d7beedc09ce
1,198
py
Python
tests/test_image_xpress.py
jni/microscopium
b9cddd8ef5f3003a396ace602228651b3020c4a3
[ "BSD-3-Clause" ]
53
2016-08-30T09:45:12.000Z
2022-02-03T06:22:50.000Z
tests/test_image_xpress.py
jni/microscopium
b9cddd8ef5f3003a396ace602228651b3020c4a3
[ "BSD-3-Clause" ]
151
2015-01-15T06:16:27.000Z
2021-03-22T01:01:26.000Z
tests/test_image_xpress.py
jni/microscopium
b9cddd8ef5f3003a396ace602228651b3020c4a3
[ "BSD-3-Clause" ]
19
2015-01-15T06:13:26.000Z
2021-09-13T13:06:47.000Z
from microscopium.screens import image_xpress import collections as coll
39.933333
79
0.477462
561183bf158e6122876d8d2dc908ce0fd0c44f33
541
py
Python
tests/test_gui/test_components/test_copy_button.py
ryan-lingle/node-launcher
4f1f7087a28d76f5b8153adac548d09b0558f6d5
[ "MIT" ]
249
2019-02-01T17:17:09.000Z
2022-03-18T21:26:41.000Z
tests/test_gui/test_components/test_copy_button.py
justinmichael3x/node-launcher
5a2a646b01803fe284fa18bee99c13c7cbf04498
[ "MIT" ]
299
2019-02-02T02:01:02.000Z
2022-02-21T05:13:20.000Z
tests/test_gui/test_components/test_copy_button.py
justinmichael3x/node-launcher
5a2a646b01803fe284fa18bee99c13c7cbf04498
[ "MIT" ]
49
2019-02-11T14:46:40.000Z
2022-02-20T04:05:14.000Z
import pytest from PySide2.QtCore import Qt from PySide2.QtGui import QClipboard from PySide2.QtTest import QTest from node_launcher.gui.components.copy_button import CopyButton
28.473684
74
0.768946
5611a9096513cba2a9a68bf3992b55379db65e5b
3,581
py
Python
examples/vertex_pipeline/pipelines/batch_prediction_pipeline_runner.py
marcosgm/professional-services
f332b425c2f3b6538ebf65afda7e67de3bed1b3d
[ "Apache-2.0" ]
2,116
2017-05-18T19:33:05.000Z
2022-03-31T13:34:48.000Z
examples/vertex_pipeline/pipelines/batch_prediction_pipeline_runner.py
hyuatpc/professional-services
e5c811a8752e91fdf9f959a0414931010b0ea1ba
[ "Apache-2.0" ]
548
2017-05-20T05:05:35.000Z
2022-03-28T16:38:12.000Z
examples/vertex_pipeline/pipelines/batch_prediction_pipeline_runner.py
hyuatpc/professional-services
e5c811a8752e91fdf9f959a0414931010b0ea1ba
[ "Apache-2.0" ]
1,095
2017-05-19T00:02:36.000Z
2022-03-31T05:21:39.000Z
# Copyright 2021 Google LLC. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or a...
39.788889
78
0.726054
5612459fcdf8951d0bf375d61705d77efffeb9d8
1,642
py
Python
examples/slash_commands.py
z03h/discord.py
7e5831ba9cc3f881e11b3536159a3851fba6ab52
[ "MIT" ]
7
2021-09-12T02:31:57.000Z
2022-02-20T21:15:35.000Z
examples/slash_commands.py
jay3332/discord.py
953f067e3b5ee33f5be62ae614ac724afc289879
[ "MIT" ]
13
2021-11-04T00:32:25.000Z
2022-03-02T03:03:54.000Z
examples/slash_commands.py
jay3332/discord.py
953f067e3b5ee33f5be62ae614ac724afc289879
[ "MIT" ]
null
null
null
import discord from discord.application_commands import ApplicationCommand, ApplicationCommandTree, option tree = ApplicationCommandTree(guild_id=1234) # Replace with your guild ID, or ``None`` to commands global client = Client(update_application_commands_at_startup=True) client.add_application_command_tree(t...
34.93617
117
0.690621
5612e312b8ffbaa468da026af436acb1c1385add
10,887
py
Python
Examples/tk_simple_dialog.py
Aarif1430/Python-Awesome-notes-and-exercises-list
c8ad7f90ebd973025f37d4e79c2f1229a8a2915c
[ "MIT" ]
2
2021-01-13T21:20:57.000Z
2021-08-18T17:53:53.000Z
Examples/tk_simple_dialog.py
Aarif1430/Python-Awesome-notes-and-exercises-list
c8ad7f90ebd973025f37d4e79c2f1229a8a2915c
[ "MIT" ]
null
null
null
Examples/tk_simple_dialog.py
Aarif1430/Python-Awesome-notes-and-exercises-list
c8ad7f90ebd973025f37d4e79c2f1229a8a2915c
[ "MIT" ]
1
2020-11-05T09:56:55.000Z
2020-11-05T09:56:55.000Z
#!/usr/bin/env python import Tkinter import tkMessageBox import rwkpickle, rwkos, os, glob from Tkinter import StringVar, IntVar, DoubleVar pklpath = rwkos.FindFullPath('pygimp_lecturerc.pkl') ## def btnClick(self): ## self.answer = tkMessageBox.askyesno(title = "Your Choice", message = 'Please cli...
32.792169
117
0.524479
5613450d1a3d2afb56deff14d8b5138f01e852ba
3,159
py
Python
gqcnn/grasping/constraint_fn.py
richardliaw/gqcnn
a0930e9d2fef3c930c41dd91cde902d261348fbe
[ "CNRI-Python" ]
1
2019-05-29T00:16:56.000Z
2019-05-29T00:16:56.000Z
gqcnn/grasping/constraint_fn.py
richardliaw/gqcnn
a0930e9d2fef3c930c41dd91cde902d261348fbe
[ "CNRI-Python" ]
null
null
null
gqcnn/grasping/constraint_fn.py
richardliaw/gqcnn
a0930e9d2fef3c930c41dd91cde902d261348fbe
[ "CNRI-Python" ]
4
2019-05-22T17:33:30.000Z
2020-02-18T03:44:01.000Z
""" Constraint functions for grasp sampling Author: Jeff Mahler """ from abc import ABCMeta, abstractmethod import numpy as np
29.523364
91
0.598291
5614247b9f08fee16422d09e7313f385f4710f7f
1,198
py
Python
backend/apis/family_group/models/memberships.py
sango09/senasoft
d7e5b0fae620764b3af73955f7771dcee5746dfc
[ "MIT" ]
1
2020-10-17T03:39:56.000Z
2020-10-17T03:39:56.000Z
backend/apis/family_group/models/memberships.py
sango09/senasoft
d7e5b0fae620764b3af73955f7771dcee5746dfc
[ "MIT" ]
null
null
null
backend/apis/family_group/models/memberships.py
sango09/senasoft
d7e5b0fae620764b3af73955f7771dcee5746dfc
[ "MIT" ]
null
null
null
"""Modelo de pacientes""" # Django from django.db import models # Utilidades from apis.utils.models import ModelUtil
33.277778
90
0.724541
56149181b9ac3f4c3f13a262ec51ccae2f8c900c
193
py
Python
django_amenities/apps.py
okfde/django-amenities
a5522e33e27deb93a2ed49f89a6d9222fc146523
[ "MIT" ]
1
2020-09-17T12:27:04.000Z
2020-09-17T12:27:04.000Z
django_amenities/apps.py
okfde/django-amenities
a5522e33e27deb93a2ed49f89a6d9222fc146523
[ "MIT" ]
null
null
null
django_amenities/apps.py
okfde/django-amenities
a5522e33e27deb93a2ed49f89a6d9222fc146523
[ "MIT" ]
null
null
null
from django.apps import AppConfig from django.utils.translation import gettext_lazy as _
24.125
54
0.777202
5614d2570169d56a1b186afec8d94e21051b1226
8,051
py
Python
aiida/cmdline/commands/shell.py
astamminger/aiida_core
b01ad8236f21804f273c9d2a0365ecee62255cbb
[ "BSD-2-Clause" ]
null
null
null
aiida/cmdline/commands/shell.py
astamminger/aiida_core
b01ad8236f21804f273c9d2a0365ecee62255cbb
[ "BSD-2-Clause" ]
null
null
null
aiida/cmdline/commands/shell.py
astamminger/aiida_core
b01ad8236f21804f273c9d2a0365ecee62255cbb
[ "BSD-2-Clause" ]
null
null
null
# -*- coding: utf-8 -*- ########################################################################### # Copyright (c), The AiiDA team. All rights reserved. # # This file is part of the AiiDA code. # # ...
36.931193
85
0.531859
56179b533974125c261d08cc31294d0f7cdd2f1f
4,052
py
Python
hw4/dynamics.py
tombroz/berkeley-cs294_homework
5419b772c734093c750362d2e09b46ce59d79da6
[ "MIT" ]
null
null
null
hw4/dynamics.py
tombroz/berkeley-cs294_homework
5419b772c734093c750362d2e09b46ce59d79da6
[ "MIT" ]
null
null
null
hw4/dynamics.py
tombroz/berkeley-cs294_homework
5419b772c734093c750362d2e09b46ce59d79da6
[ "MIT" ]
null
null
null
import os import tensorflow as tf import numpy as np C = 1e-13 # Predefined function to build a feedforward neural network
44.527473
235
0.633761
56192f9c7a8a841e4444c9e8024df8a56b978917
4,881
py
Python
linux-distro/package/nuxleus/Source/Vendor/Microsoft/IronPython-2.0.1/Lib/Kamaelia/Util/Introspector.py
mdavid/nuxleus
653f1310d8bf08eaa5a7e3326c2349e56a6abdc2
[ "BSD-3-Clause" ]
1
2017-03-28T06:41:51.000Z
2017-03-28T06:41:51.000Z
linux-distro/package/nuxleus/Source/Vendor/Microsoft/IronPython-2.0.1/Lib/Kamaelia/Util/Introspector.py
mdavid/nuxleus
653f1310d8bf08eaa5a7e3326c2349e56a6abdc2
[ "BSD-3-Clause" ]
null
null
null
linux-distro/package/nuxleus/Source/Vendor/Microsoft/IronPython-2.0.1/Lib/Kamaelia/Util/Introspector.py
mdavid/nuxleus
653f1310d8bf08eaa5a7e3326c2349e56a6abdc2
[ "BSD-3-Clause" ]
1
2016-12-13T21:08:58.000Z
2016-12-13T21:08:58.000Z
#!/usr/bin/env python # Copyright (C) 2006 British Broadcasting Corporation and Kamaelia Contributors(1) # All Rights Reserved. # # You may only modify and redistribute this under the terms of any of the # following licenses(2): Mozilla Public License, V1.1, GNU General # Public License, V2.0, GNU Lesser Ge...
35.889706
93
0.69453
56196bbd9c6e856d4ee7624c88862a4b3d4c3852
1,017
py
Python
app/Product/service.py
psyphore/flask-phone-book
cceec3caabdeb03f260d37f3b55d5aa7a52c30c2
[ "MIT" ]
null
null
null
app/Product/service.py
psyphore/flask-phone-book
cceec3caabdeb03f260d37f3b55d5aa7a52c30c2
[ "MIT" ]
2
2021-03-19T03:39:56.000Z
2021-06-08T20:28:03.000Z
app/Product/service.py
psyphore/flask-phone-book
cceec3caabdeb03f260d37f3b55d5aa7a52c30c2
[ "MIT" ]
null
null
null
import maya from py2neo.ogm import Node from app.graph_context import GraphContext from .cypher_queries import get_product_by_id_query
28.25
91
0.610619
5619839185e18406d5f02290ccde9ac7b3a514d6
119
py
Python
oimdp/__init__.py
OpenITI/oimdp
9cb0dfb298b90d85f08e248633369c0c3c494c65
[ "MIT" ]
1
2022-02-21T11:55:39.000Z
2022-02-21T11:55:39.000Z
oimdp/__init__.py
OpenITI/oimdp
9cb0dfb298b90d85f08e248633369c0c3c494c65
[ "MIT" ]
7
2022-02-05T09:04:20.000Z
2022-02-06T15:31:28.000Z
oimdp/__init__.py
OpenITI/oimdp
9cb0dfb298b90d85f08e248633369c0c3c494c65
[ "MIT" ]
1
2021-07-09T06:23:26.000Z
2021-07-09T06:23:26.000Z
from .parser import parser __all__ = [ 'parse' ] __version__ = '1.1.0'
9.916667
26
0.638655
561cd253e6ea0665afa83c977dd5106cee35aeab
2,041
py
Python
adlib/tests/adversaries/feature_deletion_test.py
xyvivian/adlib
79a93baa8aa542080bbf55734168eb89317df83c
[ "MIT" ]
null
null
null
adlib/tests/adversaries/feature_deletion_test.py
xyvivian/adlib
79a93baa8aa542080bbf55734168eb89317df83c
[ "MIT" ]
null
null
null
adlib/tests/adversaries/feature_deletion_test.py
xyvivian/adlib
79a93baa8aa542080bbf55734168eb89317df83c
[ "MIT" ]
null
null
null
import pytest from adlib.adversaries.feature_deletion import AdversaryFeatureDeletion from sklearn import svm from adlib.learners import SimpleLearner from data_reader.dataset import EmailDataset from data_reader.operations import load_dataset def test_change_instance(feature_deletion, data): sample = next((x ...
35.189655
92
0.748653
5620a3700cb215b8dbfe4bc707bf2609413ae823
1,225
py
Python
cut_plist.py
labbbirder/cut-plist
115394d23fbb58044cb421c9c2c220267e80bad5
[ "MIT" ]
1
2021-05-15T14:44:27.000Z
2021-05-15T14:44:27.000Z
cut_plist.py
labbbirder/cut-plist
115394d23fbb58044cb421c9c2c220267e80bad5
[ "MIT" ]
null
null
null
cut_plist.py
labbbirder/cut-plist
115394d23fbb58044cb421c9c2c220267e80bad5
[ "MIT" ]
1
2021-05-15T15:49:58.000Z
2021-05-15T15:49:58.000Z
import plistlib import os import numpy as np from PIL import Image
28.488372
79
0.590204
56250bc919b313aa73d52cc5859b027f7a03d9eb
18,160
py
Python
aiida/scheduler/plugins/test_pbspro.py
BIGDATA2015-AIIDA-EXTENSION/query_engine
d1cfc7cfe6084854005d2376e3825310c66876b5
[ "MIT", "BSD-3-Clause" ]
null
null
null
aiida/scheduler/plugins/test_pbspro.py
BIGDATA2015-AIIDA-EXTENSION/query_engine
d1cfc7cfe6084854005d2376e3825310c66876b5
[ "MIT", "BSD-3-Clause" ]
null
null
null
aiida/scheduler/plugins/test_pbspro.py
BIGDATA2015-AIIDA-EXTENSION/query_engine
d1cfc7cfe6084854005d2376e3825310c66876b5
[ "MIT", "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- from aiida.scheduler.plugins.pbspro import * import unittest #import logging import uuid text_qstat_f_to_test = """Job Id: 68350.mycluster Job_Name = cell-Qnormal Job_Owner = usernum1@mycluster.cluster job_state = Q queue = Q_express server = mycluster Checkpoint...
40.626398
278
0.691244
5625a3407da98d220cca4d5d9645cc01df5da356
368
py
Python
server/server/posts/migrations/0003_auto_20210727_1618.py
connectiveproject/connective
8866082b2147feef0e5254ac4215987b9d881396
[ "MIT" ]
4
2021-07-05T10:49:26.000Z
2021-11-24T11:34:43.000Z
server/server/posts/migrations/0003_auto_20210727_1618.py
connectiveproject/connective
8866082b2147feef0e5254ac4215987b9d881396
[ "MIT" ]
39
2021-06-21T15:02:37.000Z
2022-02-28T15:07:42.000Z
server/server/posts/migrations/0003_auto_20210727_1618.py
Eyal-VR/connective
46857dd79dc58f63c3afb9791ecf8adf853a6c57
[ "MIT" ]
17
2021-06-16T08:59:45.000Z
2021-09-29T11:35:38.000Z
# Generated by Django 3.1.11 on 2021-07-27 13:18 from django.db import migrations
19.368421
48
0.589674
562632b9da3d75bd5559f771c9a43df116af2988
3,791
py
Python
examples/lstm2.py
neosensory/tflite_micro_compiler
2c21a364e9763e51706cf6f6b447ed908314e117
[ "Apache-2.0" ]
48
2020-05-10T13:33:02.000Z
2022-03-24T06:47:50.000Z
examples/lstm2.py
neosensory/tflite_micro_compiler
2c21a364e9763e51706cf6f6b447ed908314e117
[ "Apache-2.0" ]
49
2020-05-21T22:03:51.000Z
2022-03-09T08:09:45.000Z
examples/lstm2.py
neosensory/tflite_micro_compiler
2c21a364e9763e51706cf6f6b447ed908314e117
[ "Apache-2.0" ]
16
2020-05-10T12:59:20.000Z
2022-03-09T06:04:22.000Z
#!/usr/bin/python3 import random import math import numpy as np import tensorflow as tf from tensorflow.keras.models import Sequential from tensorflow.keras.layers import Dense, Dropout, LSTM train_batches=2000 eval_batches=50 train_sequlen=32 train_inputs=1 lstm_states=6 #activation="relu" activation=None rec_activat...
35.429907
214
0.724347
5626db7729bb19f378a1f3a643736beccf6c224a
1,251
py
Python
critiquebrainz/frontend/external/musicbrainz_db/includes.py
AbhinavOhri/critiquebrainz
d1c1c175209ec78bcced1dbfd5bd64a46be2d1f4
[ "Apache-2.0" ]
null
null
null
critiquebrainz/frontend/external/musicbrainz_db/includes.py
AbhinavOhri/critiquebrainz
d1c1c175209ec78bcced1dbfd5bd64a46be2d1f4
[ "Apache-2.0" ]
null
null
null
critiquebrainz/frontend/external/musicbrainz_db/includes.py
AbhinavOhri/critiquebrainz
d1c1c175209ec78bcced1dbfd5bd64a46be2d1f4
[ "Apache-2.0" ]
null
null
null
import critiquebrainz.frontend.external.musicbrainz_db.exceptions as mb_exceptions RELATABLE_TYPES = [ 'area', 'artist', 'label', 'place', 'event', 'recording', 'release', 'release-group', 'series', 'url', 'work', 'instrument' ] RELATION_INCLUDES = [entity + '-rels' for ...
35.742857
117
0.666667
562700dc0c3f61321ee677178dd5d439d1213e59
801
py
Python
djstripe/migrations/0007_auto_20200507_1913.py
bomba1990/dj-stripe
507593c619145c30264d0e85b39bdba6f671a6d6
[ "MIT" ]
null
null
null
djstripe/migrations/0007_auto_20200507_1913.py
bomba1990/dj-stripe
507593c619145c30264d0e85b39bdba6f671a6d6
[ "MIT" ]
null
null
null
djstripe/migrations/0007_auto_20200507_1913.py
bomba1990/dj-stripe
507593c619145c30264d0e85b39bdba6f671a6d6
[ "MIT" ]
null
null
null
# Generated by Django 2.2.11 on 2020-05-07 19:13 from django.db import migrations, models import djstripe.fields
30.807692
185
0.635456
5627c77651ef6fd4e5b5393b20243c305bd397e3
5,511
py
Python
Gradient Descent/Gradient_Descent_Housing.py
prasad-madhale/machine-learning
bb611f809c16e1425136052e215ca83bd1148652
[ "MIT" ]
null
null
null
Gradient Descent/Gradient_Descent_Housing.py
prasad-madhale/machine-learning
bb611f809c16e1425136052e215ca83bd1148652
[ "MIT" ]
null
null
null
Gradient Descent/Gradient_Descent_Housing.py
prasad-madhale/machine-learning
bb611f809c16e1425136052e215ca83bd1148652
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Fri Feb 1 01:07:37 2019 @author: prasad """ import numpy as np import pandas as pd import math import matplotlib.pyplot as plt def get_data(column_names): ''' Args column_names: names of the features in dataset Returns train_d...
27.974619
113
0.633279
56282d4008935ca3506817cc4fc64ad64b685ddf
2,833
py
Python
teamspirit/preorders/views.py
etienne86/oc_p13_team_spirit
fd3d45618d349ecd0a03e63c4a7e9c1044eeffaa
[ "MIT" ]
null
null
null
teamspirit/preorders/views.py
etienne86/oc_p13_team_spirit
fd3d45618d349ecd0a03e63c4a7e9c1044eeffaa
[ "MIT" ]
null
null
null
teamspirit/preorders/views.py
etienne86/oc_p13_team_spirit
fd3d45618d349ecd0a03e63c4a7e9c1044eeffaa
[ "MIT" ]
null
null
null
from django.contrib.auth.decorators import login_required from django.urls import reverse_lazy from django.views.generic import ListView from django.views.generic.edit import FormView from teamspirit.catalogs.models import Product from teamspirit.preorders.forms import AddToCartForm, DropFromCartForm from teamspirit.p...
31.831461
78
0.701024
562c8104d444901a4e792e4529b19010d3a451b2
40,079
py
Python
tasks/prime.py
transcom/milmove_load_testing
b46526d9332c864de8891ef391394c0e9e8e7b95
[ "MIT" ]
2
2021-07-20T13:41:14.000Z
2021-10-07T18:27:48.000Z
tasks/prime.py
transcom/milmove_load_testing
b46526d9332c864de8891ef391394c0e9e8e7b95
[ "MIT" ]
69
2020-07-08T21:05:58.000Z
2022-03-31T11:35:14.000Z
tasks/prime.py
transcom/milmove_load_testing
b46526d9332c864de8891ef391394c0e9e8e7b95
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ TaskSets and tasks for the Prime & Support APIs """ import logging import json import random from copy import deepcopy from typing import Dict from locust import tag, task, TaskSet from utils.constants import ( INTERNAL_API_KEY, TEST_PDF, ZERO_UUID, PRIME_API_KEY, SUPPO...
44.384275
120
0.637366
562d12ab0b477e0d9a560f4a82cf032a9804cac0
848
py
Python
BubbleSort.py
R-Magnotti/Python.Interesting_Sorting_Algortithms
e10f8105499ac2c90923def7c324c46acda920aa
[ "MIT" ]
null
null
null
BubbleSort.py
R-Magnotti/Python.Interesting_Sorting_Algortithms
e10f8105499ac2c90923def7c324c46acda920aa
[ "MIT" ]
null
null
null
BubbleSort.py
R-Magnotti/Python.Interesting_Sorting_Algortithms
e10f8105499ac2c90923def7c324c46acda920aa
[ "MIT" ]
null
null
null
####################################################################################################################### # Author: Richie Magnotti # # Goal of code is to demonstrate sorting via bubble sort algorithm ################################################################...
28.266667
119
0.325472
562ee8fc837ffcba58e8885e34e37a46643ca002
3,350
py
Python
lib/cell.py
rafelafrance/boyd-bird-journal
289744703220015cb61d22a8e6f8eff0040b296f
[ "MIT" ]
null
null
null
lib/cell.py
rafelafrance/boyd-bird-journal
289744703220015cb61d22a8e6f8eff0040b296f
[ "MIT" ]
5
2017-11-02T17:12:31.000Z
2021-04-21T19:07:39.000Z
lib/cell.py
rafelafrance/boyd-bird-journal
289744703220015cb61d22a8e6f8eff0040b296f
[ "MIT" ]
null
null
null
"""Data and functions for dealing with cell contents.""" # pylint: disable=no-member, too-many-instance-attributes, too-many-arguments import numpy as np from skimage import util from skimage.transform import probabilistic_hough_line from lib.util import Crop, Offset, intersection
37.222222
77
0.617015
5630aada68bd06afa2bf00f8393f4ecb9edd571f
1,124
py
Python
alembic/versions/uuid_ids_b6a452c73bc3.py
baverman/telenot
5b6e3a0ffc78b3a1eef2bb0ebf90244fb2b1ce1e
[ "MIT" ]
null
null
null
alembic/versions/uuid_ids_b6a452c73bc3.py
baverman/telenot
5b6e3a0ffc78b3a1eef2bb0ebf90244fb2b1ce1e
[ "MIT" ]
null
null
null
alembic/versions/uuid_ids_b6a452c73bc3.py
baverman/telenot
5b6e3a0ffc78b3a1eef2bb0ebf90244fb2b1ce1e
[ "MIT" ]
1
2020-09-21T14:22:10.000Z
2020-09-21T14:22:10.000Z
"""uuid ids Revision ID: b6a452c73bc3 Revises: 6df0d5aac594 Create Date: 2017-12-06 20:57:39.660665 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = 'b6a452c73bc3' down_revision = '6df0d5aac594' branch_labels = None depends_on = None
28.1
83
0.66726
5632552890c6924fe604b24e015f930f2f4fff85
575
py
Python
secondary_implementations/python/modules/RedditModule.py
SKsample/shard
3e581fdaa6be6ecb5b9b21a536ba9e3fb3b396e1
[ "MIT" ]
441
2016-07-07T11:13:35.000Z
2022-03-18T03:22:53.000Z
secondary_implementations/python/modules/RedditModule.py
SKsample/shard
3e581fdaa6be6ecb5b9b21a536ba9e3fb3b396e1
[ "MIT" ]
20
2016-07-07T14:38:07.000Z
2020-01-13T19:15:11.000Z
secondary_implementations/python/modules/RedditModule.py
SKsample/shard
3e581fdaa6be6ecb5b9b21a536ba9e3fb3b396e1
[ "MIT" ]
76
2016-07-07T14:09:09.000Z
2020-03-22T04:03:15.000Z
# vim: ts=2 sw=2 noexpandtab from __future__ import unicode_literals import requests from .AbstractModule import AbstractModule reddit = RedditModule()
25
69
0.721739
56330ea2eae7358118452b9d5a4b8adbc3462322
68
py
Python
app/src/main/python/youtube_dl/version.py
lprc/simple-dl
7321a4f62c7188998c0bf5b681e90eddb98eb9aa
[ "MIT" ]
null
null
null
app/src/main/python/youtube_dl/version.py
lprc/simple-dl
7321a4f62c7188998c0bf5b681e90eddb98eb9aa
[ "MIT" ]
null
null
null
app/src/main/python/youtube_dl/version.py
lprc/simple-dl
7321a4f62c7188998c0bf5b681e90eddb98eb9aa
[ "MIT" ]
null
null
null
from __future__ import unicode_literals __version__ = '2020.03.06'
17
39
0.808824
56337b5a8e649c6eb401d664fa33c75392141f25
4,469
py
Python
table_reclass_by_threshold.py
richpsharp/raster_calculations
28b18c34f49c2c275c46e332d7021a27703053cd
[ "Apache-2.0" ]
null
null
null
table_reclass_by_threshold.py
richpsharp/raster_calculations
28b18c34f49c2c275c46e332d7021a27703053cd
[ "Apache-2.0" ]
null
null
null
table_reclass_by_threshold.py
richpsharp/raster_calculations
28b18c34f49c2c275c46e332d7021a27703053cd
[ "Apache-2.0" ]
null
null
null
"""Table based reclassify triggered by probability threshold.""" import argparse import os import logging import hashlib from ecoshard import geoprocessing from ecoshard import taskgraph import pandas import numpy from osgeo import gdal gdal.SetCacheMax(2**27) logging.basicConfig( level=logging.DEBUG, format...
36.631148
81
0.65876
5633f5fb9e2ed30314c515784fbe70c043b5a858
13,887
py
Python
tests/test_api.py
SonOfLilit/kleenexp
87e7a6bd5c407499a15abe9b494c6dfe84de60b6
[ "MIT" ]
9
2021-11-27T20:29:16.000Z
2022-03-21T09:32:17.000Z
tests/test_api.py
SonOfLilit/kleenexp
87e7a6bd5c407499a15abe9b494c6dfe84de60b6
[ "MIT" ]
1
2022-01-03T12:53:43.000Z
2022-01-03T18:53:56.000Z
tests/test_api.py
SonOfLilit/kleenexp
87e7a6bd5c407499a15abe9b494c6dfe84de60b6
[ "MIT" ]
2
2021-12-15T09:16:10.000Z
2022-01-03T12:32:10.000Z
import pytest import midas import ke import re JABBERWOCKY = """\ 'Twas brillig, and the slithy toves Did gyre and gimble in the wabe: All mimsy were the borogoves, And the mome raths outgrabe. "Beware the Jabberwock, my son! The jaws that bite, the claws that catch! Beware the Jubjub bird, and shun The frumious...
31.924138
426
0.557356
56341b19d0cc7d858663c40581c0b7957017b17d
4,173
py
Python
androguard/misc.py
nawfling/androguard
67b992ce0feeeb01bc69a99257916487689c3bcf
[ "Apache-2.0" ]
1
2019-03-29T19:24:23.000Z
2019-03-29T19:24:23.000Z
androguard/misc.py
adiltirur/malware_classification
67b992ce0feeeb01bc69a99257916487689c3bcf
[ "Apache-2.0" ]
null
null
null
androguard/misc.py
adiltirur/malware_classification
67b992ce0feeeb01bc69a99257916487689c3bcf
[ "Apache-2.0" ]
null
null
null
from future import standard_library standard_library.install_aliases() from androguard import session from androguard.core.bytecodes.dvm import * from androguard.decompiler.decompiler import * from androguard.core.androconf import CONF def get_default_session(): """ Return the default Session from the c...
32.348837
109
0.632159
56368197977f246f771575ac14b13fe95e389918
31,263
py
Python
applications/init/controllers/default.py
himelpdas/insightpcmh
3dfdf5aec7738ed3160491badcbf96b20fb10283
[ "BSD-3-Clause" ]
null
null
null
applications/init/controllers/default.py
himelpdas/insightpcmh
3dfdf5aec7738ed3160491badcbf96b20fb10283
[ "BSD-3-Clause" ]
null
null
null
applications/init/controllers/default.py
himelpdas/insightpcmh
3dfdf5aec7738ed3160491badcbf96b20fb10283
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # this file is released under public domain and you can use without limitations # ------------------------------------------------------------------------- # This is a sample controller # - index is the default action of any application # - user is required for authentication and authorization ...
45.308696
143
0.581486
563876079d3f5e1179bfb42ae2c1c70daa64503e
2,582
py
Python
src/bpp/const.py
iplweb/django-bpp
85f183a99d8d5027ae4772efac1e4a9f21675849
[ "BSD-3-Clause" ]
1
2017-04-27T19:50:02.000Z
2017-04-27T19:50:02.000Z
src/bpp/const.py
mpasternak/django-bpp
434338821d5ad1aaee598f6327151aba0af66f5e
[ "BSD-3-Clause" ]
null
null
null
src/bpp/const.py
mpasternak/django-bpp
434338821d5ad1aaee598f6327151aba0af66f5e
[ "BSD-3-Clause" ]
null
null
null
from collections import OrderedDict from enum import Enum TO_AUTOR = 0 TO_REDAKTOR = 1 TO_INNY = 2 TO_TLUMACZ = 3 TO_KOMENTATOR = 4 TO_RECENZENT = 5 TO_OPRACOWAL = 6 TO_REDAKTOR_TLUMACZENIA = 7 TYP_OGOLNY_DO_PBN = { TO_AUTOR: "AUTHOR", TO_REDAKTOR: "EDITOR", TO_TLUMACZ: "TRANSLATOR", TO_REDAKTOR_TLUMA...
26.346939
99
0.763362
5639659aa605d44624d092a964d7a713b28f1136
16,604
py
Python
integration_tests/run_e2e_tests.py
elementary-data/dbt-data-reliability
2b54962950af61a5c83cff5105f4a0197e727beb
[ "Apache-2.0" ]
11
2022-01-26T14:25:47.000Z
2022-03-10T10:22:31.000Z
integration_tests/run_e2e_tests.py
elementary-data/dbt-data-reliability
2b54962950af61a5c83cff5105f4a0197e727beb
[ "Apache-2.0" ]
1
2022-01-27T05:00:29.000Z
2022-01-28T11:42:32.000Z
integration_tests/run_e2e_tests.py
elementary-data/dbt-data-reliability
2b54962950af61a5c83cff5105f4a0197e727beb
[ "Apache-2.0" ]
2
2022-03-02T18:40:23.000Z
2022-03-08T15:56:34.000Z
import csv from datetime import datetime, timedelta import random import string import os from os.path import expanduser from pathlib import Path from monitor.dbt_runner import DbtRunner import click any_type_columns = ['date', 'null_count', 'null_percent'] FILE_DIR = os.path.dirname(__file__) if __name__...
49.861862
134
0.675982
563a4921fb61340d4b8b99bfe1684f0fe71aff68
105
py
Python
botaclan/helpers/lists.py
bataclanofficial/botaclan
93f8ccab4f29c50a395a588b7779431eab8625e8
[ "Apache-2.0" ]
null
null
null
botaclan/helpers/lists.py
bataclanofficial/botaclan
93f8ccab4f29c50a395a588b7779431eab8625e8
[ "Apache-2.0" ]
null
null
null
botaclan/helpers/lists.py
bataclanofficial/botaclan
93f8ccab4f29c50a395a588b7779431eab8625e8
[ "Apache-2.0" ]
null
null
null
from typing import List, T
17.5
40
0.685714
563acc285f6bb6d32cc9472259e3ac6433995b1c
1,956
py
Python
resources/lib/routes/animesearch.py
jdollarKodi/plugin.video.animepie
874e58e153e2df53e5a47ec963584de16584ae52
[ "MIT" ]
null
null
null
resources/lib/routes/animesearch.py
jdollarKodi/plugin.video.animepie
874e58e153e2df53e5a47ec963584de16584ae52
[ "MIT" ]
null
null
null
resources/lib/routes/animesearch.py
jdollarKodi/plugin.video.animepie
874e58e153e2df53e5a47ec963584de16584ae52
[ "MIT" ]
null
null
null
import requests import logging import math import xbmcaddon from xbmcgui import ListItem from xbmcplugin import addDirectoryItem, endOfDirectory from resources.lib.constants.url import BASE_URL, SEARCH_PATH from resources.lib.router_factory import get_router_instance from resources.lib.routes.episodelist import episode...
30.092308
111
0.618609
563ba6e4672f710916b63d283194a3ba338b6e13
605
py
Python
setup.py
zachriggle/arm_now
62a6ea32407f97c6129d810af7da6a12162ba73f
[ "MIT" ]
3
2018-08-02T21:12:17.000Z
2019-09-16T12:37:07.000Z
setup.py
zachriggle/arm_now
62a6ea32407f97c6129d810af7da6a12162ba73f
[ "MIT" ]
null
null
null
setup.py
zachriggle/arm_now
62a6ea32407f97c6129d810af7da6a12162ba73f
[ "MIT" ]
2
2020-01-09T18:10:46.000Z
2022-01-18T19:06:52.000Z
from setuptools import setup, Extension setup(name='arm_now', version='1.2', author='@chaign_c', url='https://github.com/nongiach/arm_now', packages=['arm_now'], py_modules=['arm_now'], entry_points = { 'console_scripts': [ 'arm_now = arm_now:...
26.304348
72
0.452893
563cde578c182b51e4e7d365b885a0e62d9ab264
2,095
py
Python
expresspec/read_data.py
alexji/expresspec
eadc7dba20d7ccd78174f7d4f32c7ff13545c316
[ "MIT" ]
null
null
null
expresspec/read_data.py
alexji/expresspec
eadc7dba20d7ccd78174f7d4f32c7ff13545c316
[ "MIT" ]
null
null
null
expresspec/read_data.py
alexji/expresspec
eadc7dba20d7ccd78174f7d4f32c7ff13545c316
[ "MIT" ]
null
null
null
from astropy.table import Table from collections import OrderedDict import numpy as np from .spectrum import Spectrum1D from copy import deepcopy from scipy import signal def rebin_spec(spec, n_rebin): """ Sum n_rebin pixels together """ n_new = len(spec.dispersion) // n_rebin n_orig = n_new * n_re...
32.230769
100
0.607637
563e1dc93625ecb24de9882d6fb7672e51e4500d
9,664
py
Python
Projects/ABM_DA/bussim/A03_calibration.py
RobertClay/DUST-RC
09f7ec9d8d093021d068dff8a7a48c15ea318b86
[ "MIT" ]
15
2018-11-21T14:57:24.000Z
2022-03-04T15:42:09.000Z
Projects/ABM_DA/bussim/A03_calibration.py
RobertClay/DUST-RC
09f7ec9d8d093021d068dff8a7a48c15ea318b86
[ "MIT" ]
125
2019-11-06T13:03:35.000Z
2022-03-07T13:38:33.000Z
Projects/ABM_DA/bussim/A03_calibration.py
RobertClay/DUST-RC
09f7ec9d8d093021d068dff8a7a48c15ea318b86
[ "MIT" ]
6
2018-11-20T15:56:49.000Z
2021-10-08T10:21:06.000Z
# -*- coding: utf-8 -*- """ This code evaluates the outputs from calibrated BusSim @author: geomlk """ import numpy as np import matplotlib.pyplot as plt import pickle import os os.chdir("/Users/minhkieu/Documents/Github/dust/Projects/ABM_DA/bussim/") ''' Step 1: Load calibration results ''' ''' Step 2: Load syntheti...
45.158879
119
0.627276
563f17c503aa91de61cc1f7b7afc9304efcf0e5a
596
py
Python
lib/opencavity/help.py
giomalt/SLM_hologram_generation
74ad38be8fe17c710856b2508389cd8c9f1ee77a
[ "MIT" ]
3
2021-02-24T12:55:01.000Z
2021-03-19T02:19:25.000Z
lib/opencavity/help.py
giomalt/SLM_hologram_generation
74ad38be8fe17c710856b2508389cd8c9f1ee77a
[ "MIT" ]
null
null
null
lib/opencavity/help.py
giomalt/SLM_hologram_generation
74ad38be8fe17c710856b2508389cd8c9f1ee77a
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- ''' Created on 15 feb. 2015 @author: mohamed seghilani ''' import opencavity import webbrowser import platform #if __name__ == '__main__':
22.074074
60
0.654362
56415df55959a03e911d73640e65d94b304b6856
161
py
Python
pybamm/models/submodels/thermal/__init__.py
manjunathnilugal/PyBaMM
65d5cba534b4f163670e753714964aaa75d6a2d2
[ "BSD-3-Clause" ]
330
2019-04-17T11:36:57.000Z
2022-03-28T16:49:55.000Z
pybamm/models/submodels/thermal/__init__.py
masoodtamaddon/PyBaMM
a31e2095600bb92e913598ac4d02b2b6b77b31c1
[ "BSD-3-Clause" ]
1,530
2019-03-26T18:13:03.000Z
2022-03-31T16:12:53.000Z
pybamm/models/submodels/thermal/__init__.py
masoodtamaddon/PyBaMM
a31e2095600bb92e913598ac4d02b2b6b77b31c1
[ "BSD-3-Clause" ]
178
2019-03-27T13:48:04.000Z
2022-03-31T09:30:11.000Z
from .base_thermal import BaseThermal from .isothermal import Isothermal from .lumped import Lumped from .x_full import OneDimensionalX from . import pouch_cell
26.833333
37
0.84472
5641f0fd6f31eed051b1b8fdfd70047f7ef7c686
463
py
Python
lib/blockchain/jmcorgan.py
FuzzyBearBTC/counterpartyd
0733463249b71901daba5d73c7b30a334860bb0a
[ "MIT" ]
1
2020-10-15T06:42:34.000Z
2020-10-15T06:42:34.000Z
lib/blockchain/jmcorgan.py
FuzzyBearBTC/counterpartyd
0733463249b71901daba5d73c7b30a334860bb0a
[ "MIT" ]
null
null
null
lib/blockchain/jmcorgan.py
FuzzyBearBTC/counterpartyd
0733463249b71901daba5d73c7b30a334860bb0a
[ "MIT" ]
null
null
null
''' http://insight.bitpay.com/ ''' import logging import requests import time from lib import config, exceptions, util bitcoin_rpc_session = None
23.15
81
0.742981
56423cd4c21ed76ea69621b3620013d136b5be98
4,876
py
Python
Temp/ProductManager.py
bregydoc/Laigo
f0c843bd648cf591e33574c441aee9fbbb8682ea
[ "MIT" ]
null
null
null
Temp/ProductManager.py
bregydoc/Laigo
f0c843bd648cf591e33574c441aee9fbbb8682ea
[ "MIT" ]
null
null
null
Temp/ProductManager.py
bregydoc/Laigo
f0c843bd648cf591e33574c441aee9fbbb8682ea
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import requests from bs4 import BeautifulSoup if __name__ == "__main__": products = getHotProducts("https://www.sparkfun.com/categories/top?per_page=400") exportToCSV(products)
66.794521
352
0.553527
564286566a89b40797a3f75a9f3fdf67dede75df
569
py
Python
merchant/urls.py
Pesenin-Team/pesenin-2.0
883468e6b6d7e3a24bc2ee60bbc7063117745424
[ "MIT" ]
null
null
null
merchant/urls.py
Pesenin-Team/pesenin-2.0
883468e6b6d7e3a24bc2ee60bbc7063117745424
[ "MIT" ]
null
null
null
merchant/urls.py
Pesenin-Team/pesenin-2.0
883468e6b6d7e3a24bc2ee60bbc7063117745424
[ "MIT" ]
null
null
null
from django.urls import path from . import views app_name = 'merchant' urlpatterns = [ path('', views.merchant, name='merchant'), path('makanan', views.makanan, name='makanan'), path('makanan/search_makanan', views.search_makanan, name='search_makanan'), path('search_merchant', views.search_m...
37.933333
81
0.70123
5642bea2a4d006a16cb5dc638961e8224156c351
1,049
py
Python
src/worker/worker.py
cemsbr/flask-cpu-tasks
2cb0c2d17794d8c7413633a304baf35ce7de2c51
[ "MIT" ]
1
2018-02-04T18:19:07.000Z
2018-02-04T18:19:07.000Z
src/worker/worker.py
cemsbr/flask-cpu-tasks
2cb0c2d17794d8c7413633a304baf35ce7de2c51
[ "MIT" ]
null
null
null
src/worker/worker.py
cemsbr/flask-cpu-tasks
2cb0c2d17794d8c7413633a304baf35ce7de2c51
[ "MIT" ]
null
null
null
"""Worker application. It calls an external slow task and send its output, line by line, as "log" events through SocketIO. The web page will then print the lines. """ # Disable the warning because eventlet must patch the standard library as soon # as possible. from communication import (CELERY, ...
29.138889
78
0.673975
5643917f5c9c7a15f272cc44625b2354347918f3
536
py
Python
app/auth.py
geudrik/hautomation
0baae29e85cd68658a0f8578de2e36e42945053f
[ "MIT" ]
null
null
null
app/auth.py
geudrik/hautomation
0baae29e85cd68658a0f8578de2e36e42945053f
[ "MIT" ]
null
null
null
app/auth.py
geudrik/hautomation
0baae29e85cd68658a0f8578de2e36e42945053f
[ "MIT" ]
null
null
null
#! /usr/bin/env python2.7 # -*- coding: latin-1 -*- from database import User from database import ApiKey from flask_principal import Permission from flask_principal import RoleNeed admin_permission = Permission(RoleNeed('admin')) def map_api_key_to_user(key): """ Take an input of an API key and return a Use...
21.44
58
0.686567
564798546d70fb989e7e5fe9ad82aeed6358914e
1,173
py
Python
list_gh_contributions/query.py
seanbreckenridge/list_gh_contributions
13091ecf3c1e34d650ec5449ca693890af41fc3d
[ "MIT" ]
2
2021-01-17T10:07:41.000Z
2021-04-24T22:44:56.000Z
list_gh_contributions/query.py
seanbreckenridge/list_gh_contributions
13091ecf3c1e34d650ec5449ca693890af41fc3d
[ "MIT" ]
3
2021-01-17T05:34:40.000Z
2021-03-04T08:24:30.000Z
list_gh_contributions/query.py
seanbreckenridge/list_gh_contributions
13091ecf3c1e34d650ec5449ca693890af41fc3d
[ "MIT" ]
null
null
null
""" Queries in this module have a shared 'after' query, which lets Graphql paginate """ from gql import gql # type: ignore[import] query_contributed_to: gql = gql( r"""query ($after: String) { viewer { repositoriesContributedTo(first: 100, after: $after, contributionTypes: [COMMIT, ISSUE, PULL_REQUEST, RE...
16.521127
120
0.495311
564e73deb5725930bc5cf0b682535387843bd361
2,032
py
Python
python/gribfile.py
weathersource/grib_api
24e3bb60800b6488103c0b85293f4fe9b3be77c4
[ "ECL-2.0", "Apache-2.0" ]
5
2017-03-30T08:31:14.000Z
2020-09-17T07:35:45.000Z
python/gribfile.py
weathersource/grib_api
24e3bb60800b6488103c0b85293f4fe9b3be77c4
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
python/gribfile.py
weathersource/grib_api
24e3bb60800b6488103c0b85293f4fe9b3be77c4
[ "ECL-2.0", "Apache-2.0" ]
6
2017-07-30T14:42:12.000Z
2020-09-23T20:37:43.000Z
""" ``GribFile`` class that implements a GRIB file that closes itself and its messages when it is no longer needed. Author: Daniel Lee, DWD, 2014 """ import gribapi from gribmessage import GribMessage
30.787879
79
0.614173
564e9d2f5c1a74be0f81910150ed2deb006e658d
2,525
py
Python
vnprovinces/migrations/0002_add_provinces.py
dduong42/django-vnprovinces
06eb5522d75e882eaf3dc911ba658cd2b354a8e4
[ "MIT" ]
null
null
null
vnprovinces/migrations/0002_add_provinces.py
dduong42/django-vnprovinces
06eb5522d75e882eaf3dc911ba658cd2b354a8e4
[ "MIT" ]
null
null
null
vnprovinces/migrations/0002_add_provinces.py
dduong42/django-vnprovinces
06eb5522d75e882eaf3dc911ba658cd2b354a8e4
[ "MIT" ]
null
null
null
# Generated by Django 2.1.4 on 2019-02-21 03:11 from django.db import migrations provinces = ( ('H Ni', 'Thnh Ph'), ('H Giang', 'Tnh'), ('Cao Bng', 'Tnh'), ('Bc Kn', 'Tnh'), ('Tuyn Quang', 'Tnh'), ('Lo Cai', 'Tnh'), ('in Bin', 'Tnh'), ('Lai Chu', 'Tnh'), ('Sn La', 'Tnh'), ('Yn ...
26.302083
78
0.521188
564f92d435e931088cb6bd29d3c1bab009096fee
239
py
Python
Practice/Python/MapAndLambdaFunction.py
avantikasharma/HackerRank-Solutions
a980859ac352688853fcbcf3c7ec6d95685f99ea
[ "MIT" ]
1
2018-07-08T15:44:15.000Z
2018-07-08T15:44:15.000Z
Practice/Python/MapAndLambdaFunction.py
avantikasharma/HackerRank-Solutions
a980859ac352688853fcbcf3c7ec6d95685f99ea
[ "MIT" ]
null
null
null
Practice/Python/MapAndLambdaFunction.py
avantikasharma/HackerRank-Solutions
a980859ac352688853fcbcf3c7ec6d95685f99ea
[ "MIT" ]
2
2018-08-10T06:49:34.000Z
2020-10-01T04:50:59.000Z
cube = lambda x: pow(x,3)
17.071429
29
0.389121
56515a1fa5265b9401ddb7b285541574d7aa9756
804
py
Python
ML/TensorFlow/Basics/tutorial17-tensorboard/5_tb_graph.py
xuyannus/Machine-Learning-Collection
6d5dcd18d4e40f90e77355d56a2902e4c617ecbe
[ "MIT" ]
3,094
2020-09-20T04:34:31.000Z
2022-03-31T23:59:46.000Z
ML/TensorFlow/Basics/tutorial17-tensorboard/5_tb_graph.py
xkhainguyen/Machine-Learning-Collection
425d196e9477dbdbbd7cc0d19d29297571746ab5
[ "MIT" ]
79
2020-09-24T08:54:17.000Z
2022-03-30T14:45:08.000Z
ML/TensorFlow/Basics/tutorial17-tensorboard/5_tb_graph.py
xkhainguyen/Machine-Learning-Collection
425d196e9477dbdbbd7cc0d19d29297571746ab5
[ "MIT" ]
1,529
2020-09-20T16:21:21.000Z
2022-03-31T21:16:25.000Z
import os os.environ["TF_CPP_MIN_LOG_LEVEL"] = "2" import io import tensorflow as tf import matplotlib.pyplot as plt import numpy as np import tensorflow_datasets as tfds from tensorflow import keras from tensorflow.keras import layers # Make sure we don't get any GPU errors physical_devices = tf.config.list_physic...
22.333333
74
0.746269
5651a5988f1a40d8d84c86f66a6de01ecbb914b9
361
py
Python
fabfile.py
ptigas/antihoax
0e12ade67a9feee54061eac2d43eaccab3924e6a
[ "MIT" ]
3
2015-08-06T00:05:06.000Z
2017-01-16T15:59:41.000Z
fabfile.py
ptigas/antihoax
0e12ade67a9feee54061eac2d43eaccab3924e6a
[ "MIT" ]
null
null
null
fabfile.py
ptigas/antihoax
0e12ade67a9feee54061eac2d43eaccab3924e6a
[ "MIT" ]
null
null
null
from fabric.api import * env.user = 'ptigas' env.hosts = ['hocus.io']
22.5625
79
0.65097
565251327ee0a8f38bb41a346c65b4fe497ff914
949
py
Python
src/logics/entityIndexerLogic.py
mdmuidulalam/little-search-navigator-indexer
025539aa3a1a403f516f45c6a8601d237895ae3e
[ "MIT" ]
1
2020-12-19T06:42:54.000Z
2020-12-19T06:42:54.000Z
src/logics/entityIndexerLogic.py
mdmuidulalam/little-search-navigator-indexer
025539aa3a1a403f516f45c6a8601d237895ae3e
[ "MIT" ]
null
null
null
src/logics/entityIndexerLogic.py
mdmuidulalam/little-search-navigator-indexer
025539aa3a1a403f516f45c6a8601d237895ae3e
[ "MIT" ]
null
null
null
from src.helpers.staticHelper import StaticHelper from src.routes.interfaces.iEntityIndexerLogic import IEntityIndexerLogic from src.logics.interfaces.iIndexingAlgorithm import IIndexingAlgorithm from src.logics.interfaces.iEntityData import IEntityData
43.136364
87
0.758693
5655be4e2b47674fc1874d360bbc03ea8fef9a3b
377
py
Python
hostel/models.py
Web-Team-IITI-Gymkhana/gymkhana_server
67f4eba9dc0a55de04b3006ffeb5f608086b89ce
[ "MIT" ]
null
null
null
hostel/models.py
Web-Team-IITI-Gymkhana/gymkhana_server
67f4eba9dc0a55de04b3006ffeb5f608086b89ce
[ "MIT" ]
4
2022-01-14T12:31:33.000Z
2022-01-28T10:25:44.000Z
hostel/models.py
Web-Team-IITI-Gymkhana/gymkhana_server
67f4eba9dc0a55de04b3006ffeb5f608086b89ce
[ "MIT" ]
null
null
null
from server.connection import Base from sqlalchemy import Column, String from sqlalchemy.dialects.postgresql import UUID
26.928571
53
0.732095
56572951cdbd706ef85de0b8777578cddbef4cf9
2,047
py
Python
odps/df/backends/optimize/utils.py
Emersonxuelinux/aliyun-odps-python-sdk
0b38c777711c95ed1775fa67822febf88fc3d642
[ "Apache-2.0" ]
null
null
null
odps/df/backends/optimize/utils.py
Emersonxuelinux/aliyun-odps-python-sdk
0b38c777711c95ed1775fa67822febf88fc3d642
[ "Apache-2.0" ]
null
null
null
odps/df/backends/optimize/utils.py
Emersonxuelinux/aliyun-odps-python-sdk
0b38c777711c95ed1775fa67822febf88fc3d642
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # Copyright 1999-2017 Alibaba Group Holding Ltd. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENS...
34.694915
83
0.629213
5659bca9797572b75efd680fe7b26dc41264ab05
892
py
Python
setup.py
truveris/arrow
1624fd20d296bff197ea6a08385e1d234220484c
[ "Apache-2.0" ]
null
null
null
setup.py
truveris/arrow
1624fd20d296bff197ea6a08385e1d234220484c
[ "Apache-2.0" ]
null
null
null
setup.py
truveris/arrow
1624fd20d296bff197ea6a08385e1d234220484c
[ "Apache-2.0" ]
null
null
null
try: from setuptools import setup except ImportError: from distutils.core import setup setup( name='arrow', version='0.4.4', description='Better dates and times for Python', url='http://crsmithdev.com/arrow', author='Chris Smith', author_email="crsmithdev@gmail.com", license='Apache...
27.875
70
0.610987
565c37bb80f2d86759c5fa9c22ae78a191b901e0
3,061
py
Python
test/test_stock.py
vikramrajsitpal/yayFinPy
a532da5161973b39f53306fa6b57149ca042ac28
[ "Apache-2.0" ]
null
null
null
test/test_stock.py
vikramrajsitpal/yayFinPy
a532da5161973b39f53306fa6b57149ca042ac28
[ "Apache-2.0" ]
null
null
null
test/test_stock.py
vikramrajsitpal/yayFinPy
a532da5161973b39f53306fa6b57149ca042ac28
[ "Apache-2.0" ]
null
null
null
from typing import List from decimal import Decimal from yayFinPy.stock import Stock import pandas as pd if __name__ == '__main__': success = [] success.append(test_constructor()) success.append(test_constructor_failure()) success.append(test_stock_attributes()) success.append(test_stock_splits()) success.append...
24.685484
74
0.704998
565dfbf75306a316f72db1f51facc9031f0feace
3,184
py
Python
src/the_teleop/TheTeleop.py
NuenoB/TheTeleop
57e3f745d391743fac408fb44bf20ffad945aa19
[ "BSD-3-Clause" ]
null
null
null
src/the_teleop/TheTeleop.py
NuenoB/TheTeleop
57e3f745d391743fac408fb44bf20ffad945aa19
[ "BSD-3-Clause" ]
null
null
null
src/the_teleop/TheTeleop.py
NuenoB/TheTeleop
57e3f745d391743fac408fb44bf20ffad945aa19
[ "BSD-3-Clause" ]
null
null
null
#! /usr/bin/env python import os import rospy import rospkg from readbag import restore from qt_gui.plugin import Plugin from python_qt_binding.QtCore import Qt from python_qt_binding import loadUi from python_qt_binding.QtGui import QFileDialog, QGraphicsView, QIcon, QWidget from PyQt4 import QtGui, QtCore from exam...
31.524752
107
0.737123
565e96a6d98c5992001beec0122786d45a48e5c3
955
py
Python
setup.py
BlaXpirit/flask-simplesqla
26ef7644f64839733475dbf227d4ec720b108306
[ "BSD-3-Clause" ]
null
null
null
setup.py
BlaXpirit/flask-simplesqla
26ef7644f64839733475dbf227d4ec720b108306
[ "BSD-3-Clause" ]
null
null
null
setup.py
BlaXpirit/flask-simplesqla
26ef7644f64839733475dbf227d4ec720b108306
[ "BSD-3-Clause" ]
null
null
null
from distutils.core import setup setup( name='Flask-SimpleSQLA', version='1.0', url='http://github.com/blaxpirit/flask-simplesqla', license='BSD', author="Oleh Prypin", author_email='blaxpirit@gmail.com', description="Extension providing basic support of SQLAlchemy in Flask applications", ...
31.833333
88
0.623037
5660372ec7b8f27123eb6cd1329246a86aba84f8
7,879
py
Python
Day20/Day20.py
EllAchE/aoc2020LastPlace
ad3650b3909b1231c9c931b7d85ce842d30e3d15
[ "MIT" ]
1
2021-12-04T01:06:18.000Z
2021-12-04T01:06:18.000Z
Day20/Day20.py
logan-credera/aoc2020LastPlace
ad3650b3909b1231c9c931b7d85ce842d30e3d15
[ "MIT" ]
null
null
null
Day20/Day20.py
logan-credera/aoc2020LastPlace
ad3650b3909b1231c9c931b7d85ce842d30e3d15
[ "MIT" ]
null
null
null
# --- Day 20: Jurassic Jigsaw --- # The high-speed train leaves the forest and quickly carries you south. You can even see a desert in the distance! # Since you have some spare time, you might as well see if there was anything interesting in the image the Mythical # Information Bureau satellite captured. # # After deco...
24.468944
126
0.486864
56628c54f6542fcfadf155107dcfc82a5c903211
11,248
py
Python
old_commandSkills.py
tomasruizt/dads
90652ca92b813301ed731186f29f05e885bc117d
[ "Apache-2.0" ]
null
null
null
old_commandSkills.py
tomasruizt/dads
90652ca92b813301ed731186f29f05e885bc117d
[ "Apache-2.0" ]
null
null
null
old_commandSkills.py
tomasruizt/dads
90652ca92b813301ed731186f29f05e885bc117d
[ "Apache-2.0" ]
null
null
null
import logging import os import pickle from typing import NamedTuple import gym from gym import Wrapper, GoalEnv from gym.wrappers import FlattenObservation, TimeLimit, TransformReward, FilterObservation from runstats import Statistics import torch from envs.gym_mujoco.custom_wrappers import DropGoalEnvsAbsoluteLocat...
36.75817
107
0.674876
56634cb9015c3fca756d9ed11738ca8195395704
3,727
py
Python
torecsys/inputs/base/image_inp.py
p768lwy3/torecsys
2251366268b4fbe6f8c3ab1628fa72a0db043dcd
[ "MIT" ]
92
2019-08-15T11:03:50.000Z
2022-03-12T01:21:05.000Z
torecsys/inputs/base/image_inp.py
p768lwy3/torecsys
2251366268b4fbe6f8c3ab1628fa72a0db043dcd
[ "MIT" ]
3
2020-03-11T08:57:50.000Z
2021-01-06T01:39:47.000Z
torecsys/inputs/base/image_inp.py
p768lwy3/torecsys
2251366268b4fbe6f8c3ab1628fa72a0db043dcd
[ "MIT" ]
16
2019-10-12T11:28:53.000Z
2022-03-28T14:04:12.000Z
from typing import List, Optional, TypeVar import torch import torch.nn as nn from torecsys.inputs.base import BaseInput
38.030612
106
0.581701
566467ac5da574abf21d4a1577d72293c60ca80a
31,259
py
Python
optimus/infer.py
Pcosmin/Optimus
ef3306d1b752bbfb1959ddb9103786acb8e9b9ba
[ "Apache-2.0" ]
1
2020-09-22T13:04:37.000Z
2020-09-22T13:04:37.000Z
optimus/infer.py
rafaelang/Optimus
809088f41588c968b2e30210f98a494a497b07ff
[ "Apache-2.0" ]
null
null
null
optimus/infer.py
rafaelang/Optimus
809088f41588c968b2e30210f98a494a497b07ff
[ "Apache-2.0" ]
null
null
null
# This file need to be send to the cluster via .addPyFile to handle the pickle problem # This is outside the optimus folder on purpose because it cause problem importing optimus when using de udf. # This can not import any optimus file unless it's imported via addPyFile import datetime import math import os import re f...
27.324301
133
0.55632