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
2fb476dd66bd0ab1d1e4099cd971c61bf78c0144
2,325
py
Python
api/models/predict.py
sanjeet1207/Batman
658a1bab55de425b23288ffec69f2d7ac93bb007
[ "MIT" ]
null
null
null
api/models/predict.py
sanjeet1207/Batman
658a1bab55de425b23288ffec69f2d7ac93bb007
[ "MIT" ]
null
null
null
api/models/predict.py
sanjeet1207/Batman
658a1bab55de425b23288ffec69f2d7ac93bb007
[ "MIT" ]
null
null
null
from datetime import datetime from PIL import Image from torchvision import transforms from urllib.request import urlopen import requests import logging import os import sys import torch model = torch.hub.load('pytorch/vision:v0.5.0', 'resnet18', pretrained=True) model.eval() if __name__ == '__main__': predict_im...
33.695652
96
0.630968
2fb498d7415d0de70777173de30217109842ad90
643
py
Python
wipe_slate_clean.py
tjgran01/DotNIRSToolboxTools
aa07f507095dc42d4af4c3d8616e826c401e6a54
[ "MIT" ]
null
null
null
wipe_slate_clean.py
tjgran01/DotNIRSToolboxTools
aa07f507095dc42d4af4c3d8616e826c401e6a54
[ "MIT" ]
null
null
null
wipe_slate_clean.py
tjgran01/DotNIRSToolboxTools
aa07f507095dc42d4af4c3d8616e826c401e6a54
[ "MIT" ]
null
null
null
import os import shutil def main(): """ Removes any and all files generated from eml_localizer_pipeline.py, resetting the repository back to it's native state w/r/t code and data. Will NOT get rid of your zipped data. WiLL get rid of your unzipped data. So, beware if you're working with a lot, ...
26.791667
80
0.637636
2fb6f09cc2a00f81943353736fc4cc723e1daf09
1,471
py
Python
nlp_helper/nlp_helper_sentence_split.py
mstaschik/nlp-helper
9f0722637cdcce6ae0063a152db735bb99818ec1
[ "MIT" ]
null
null
null
nlp_helper/nlp_helper_sentence_split.py
mstaschik/nlp-helper
9f0722637cdcce6ae0063a152db735bb99818ec1
[ "MIT" ]
null
null
null
nlp_helper/nlp_helper_sentence_split.py
mstaschik/nlp-helper
9f0722637cdcce6ae0063a152db735bb99818ec1
[ "MIT" ]
null
null
null
from pathlib import Path import logging logging.basicConfig(level=logging.DEBUG) def split_text_into_columns(nlp_models, df) -> None: """ Takes Text Content of one DataFrame Cell and splits into multiple Columns Args: nlp_models (list): List of Spacy Language Models df (Pandas DataFrame):...
25.807018
87
0.60775
2fb82aeb0795716862ec22bbeb4fb9c9fa7db7dd
5,592
py
Python
ribo_annotate.py
everyday847/RiboAnnotate
a53abc6987e71538527b5b282129ead54497b31a
[ "MIT" ]
null
null
null
ribo_annotate.py
everyday847/RiboAnnotate
a53abc6987e71538527b5b282129ead54497b31a
[ "MIT" ]
null
null
null
ribo_annotate.py
everyday847/RiboAnnotate
a53abc6987e71538527b5b282129ead54497b31a
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 from PIL import Image, ImageFont, ImageDraw base_fields = ["x", "y", "chain", "segid", "seqpos", "name"] def base_info_of(line): """ Line format: x y chain segid seqpos name 205.500 -150.750 C AB 0 L14 """ return dict(zip(...
38.833333
160
0.599428
2fb8fc30976ab33b0e15ec82896875c44dae5fcd
108
py
Python
lang/py/cookbook/v2/source/cb2_1_23_exm_4.py
ch1huizong/learning
632267634a9fd84a5f5116de09ff1e2681a6cc85
[ "MIT" ]
null
null
null
lang/py/cookbook/v2/source/cb2_1_23_exm_4.py
ch1huizong/learning
632267634a9fd84a5f5116de09ff1e2681a6cc85
[ "MIT" ]
null
null
null
lang/py/cookbook/v2/source/cb2_1_23_exm_4.py
ch1huizong/learning
632267634a9fd84a5f5116de09ff1e2681a6cc85
[ "MIT" ]
null
null
null
outfile = codecs.open('out.html', mode='w', encoding='ascii', errors='html_replace')
36
61
0.555556
2fb91561e56ca96f56198adfb8680ae6a7d77cc6
14,969
py
Python
phi/math/backend/_numpy_backend.py
Sh0cktr4p/PhiFlow
cc87c5887bc3abfa1ef3c03252122a06e9fd2c18
[ "MIT" ]
null
null
null
phi/math/backend/_numpy_backend.py
Sh0cktr4p/PhiFlow
cc87c5887bc3abfa1ef3c03252122a06e9fd2c18
[ "MIT" ]
null
null
null
phi/math/backend/_numpy_backend.py
Sh0cktr4p/PhiFlow
cc87c5887bc3abfa1ef3c03252122a06e9fd2c18
[ "MIT" ]
1
2021-09-15T11:14:42.000Z
2021-09-15T11:14:42.000Z
import numbers import os import sys import warnings from typing import List import numpy as np import scipy.signal import scipy.sparse from scipy.sparse.linalg import cg, LinearOperator from . import Backend, ComputeDevice from ._backend_helper import combined_dim from ._dtype import from_numpy_dtype, to_numpy_dtype,...
34.175799
176
0.594161
2fbb0c4e75b2c3ddc001608e2927153cc660a8eb
5,560
py
Python
web_app.py
frank-chris/HospitalDatabaseSystem
4861582d8cdca0ea28c7ef7ed46b2bdcecb3bf0b
[ "MIT" ]
null
null
null
web_app.py
frank-chris/HospitalDatabaseSystem
4861582d8cdca0ea28c7ef7ed46b2bdcecb3bf0b
[ "MIT" ]
null
null
null
web_app.py
frank-chris/HospitalDatabaseSystem
4861582d8cdca0ea28c7ef7ed46b2bdcecb3bf0b
[ "MIT" ]
null
null
null
from flask import Flask, render_template, request, redirect, url_for, session from flask_mysqldb import MySQL from sql_helper import * from html_helper import * app = Flask(__name__) app.debug = True app.secret_key = 'mango' # Enter your database connection details below app.config['MYSQL_HOST'] = 'localhost' app.co...
42.442748
121
0.645863
2fbcf0d92ad2b40b429d3953d100953a69f41fd2
4,379
py
Python
seq2seq_dataset.py
Leon-Francis/blue-badminton
4b267ac355173a2ed717f9fcf16edd008960b502
[ "Apache-2.0" ]
null
null
null
seq2seq_dataset.py
Leon-Francis/blue-badminton
4b267ac355173a2ed717f9fcf16edd008960b502
[ "Apache-2.0" ]
null
null
null
seq2seq_dataset.py
Leon-Francis/blue-badminton
4b267ac355173a2ed717f9fcf16edd008960b502
[ "Apache-2.0" ]
null
null
null
import os import re from victim_module.victim_config import IMDB_Config from torch.utils.data import Dataset from tools import logging from transformers import AutoTokenizer from nltk.stem import WordNetLemmatizer from nltk.corpus import stopwords os.environ["TOKENIZERS_PARALLELISM"] = "false" # Setup stopwords list ...
38.752212
97
0.542818
2fbd1a3f064e91f24a62fbd3f2c26b8c21d38fe6
14,285
py
Python
devilry/devilry_import_v2database/tests/test_modelimporters/test_qualifiesforexam_importer.py
aless80/devilry-django
416c262e75170d5662542f15e2d7fecf5ab84730
[ "BSD-3-Clause" ]
null
null
null
devilry/devilry_import_v2database/tests/test_modelimporters/test_qualifiesforexam_importer.py
aless80/devilry-django
416c262e75170d5662542f15e2d7fecf5ab84730
[ "BSD-3-Clause" ]
null
null
null
devilry/devilry_import_v2database/tests/test_modelimporters/test_qualifiesforexam_importer.py
aless80/devilry-django
416c262e75170d5662542f15e2d7fecf5ab84730
[ "BSD-3-Clause" ]
null
null
null
from django import test from django.conf import settings from django.utils import timezone from django.utils.dateparse import parse_date from model_mommy import mommy from .importer_testcase_mixin import ImporterTestCaseMixin from devilry.devilry_import_v2database.modelimporters.qualifiesforexam_importer import \ ...
48.260135
119
0.706265
2fbeda5ce9c154a9ab00881c49315865e5d2e8ad
197,887
py
Python
boto3_type_annotations_with_docs/boto3_type_annotations/lex_models/client.py
cowboygneox/boto3_type_annotations
450dce1de4e066b939de7eac2ec560ed1a7ddaa2
[ "MIT" ]
119
2018-12-01T18:20:57.000Z
2022-02-02T10:31:29.000Z
boto3_type_annotations_with_docs/boto3_type_annotations/lex_models/client.py
cowboygneox/boto3_type_annotations
450dce1de4e066b939de7eac2ec560ed1a7ddaa2
[ "MIT" ]
15
2018-11-16T00:16:44.000Z
2021-11-13T03:44:18.000Z
boto3_type_annotations_with_docs/boto3_type_annotations/lex_models/client.py
cowboygneox/boto3_type_annotations
450dce1de4e066b939de7eac2ec560ed1a7ddaa2
[ "MIT" ]
11
2019-05-06T05:26:51.000Z
2021-09-28T15:27:59.000Z
from typing import Optional from botocore.client import BaseClient from typing import Dict from botocore.paginate import Paginator from botocore.waiter import Waiter from typing import Union from typing import List
59.74849
1,198
0.557945
2fbf69f0c7833581d5b839c771d79dfeca5e3540
771
py
Python
tests/read_head_test.py
aescwork/sqliteminor
83aa4f76a28141b085bbfc7f725531e0b67aeed5
[ "BSD-2-Clause" ]
1
2020-01-31T11:38:47.000Z
2020-01-31T11:38:47.000Z
tests/read_head_test.py
aescwork/sqliteminor
83aa4f76a28141b085bbfc7f725531e0b67aeed5
[ "BSD-2-Clause" ]
null
null
null
tests/read_head_test.py
aescwork/sqliteminor
83aa4f76a28141b085bbfc7f725531e0b67aeed5
[ "BSD-2-Clause" ]
null
null
null
# -*- coding: utf-8 -*- import unittest import sys sys.path.append("../sqliteminor/") sys.path.append("../temp/") import sqliteminor import setup_db if __name__ == '__main__': unittest.main()
15.734694
124
0.673152
2fbf7f011904cba5b1dd2d9a8b76bf67ae5b7a0e
5,955
py
Python
Gallery/views.py
CiganOliviu/InfiniteShoot
14f7fb21e360e3c58876d82ebbe206054c72958e
[ "MIT" ]
1
2021-04-02T16:45:37.000Z
2021-04-02T16:45:37.000Z
Gallery/views.py
CiganOliviu/InfiniteShoot-1
6322ae34f88caaffc1de29dfa4f6d86d175810a7
[ "Apache-2.0" ]
null
null
null
Gallery/views.py
CiganOliviu/InfiniteShoot-1
6322ae34f88caaffc1de29dfa4f6d86d175810a7
[ "Apache-2.0" ]
null
null
null
from django.contrib.auth.decorators import login_required from django.contrib.auth.mixins import LoginRequiredMixin from django.shortcuts import render from django.urls import reverse from django.views import generic from django.views.generic.edit import FormMixin from .models import * from Gallery.form import ClientC...
37.21875
116
0.751637
2fc03895160f2fd0bb43ba9092bb74994194db31
4,766
py
Python
kat/controller.py
TOT0RoKR/kat
5fafe688593a60700f1067ca51ec9d5f148a396e
[ "MIT" ]
3
2019-10-27T08:26:15.000Z
2019-11-26T12:23:38.000Z
kat/controller.py
tot0rokr/kat
5fafe688593a60700f1067ca51ec9d5f148a396e
[ "MIT" ]
null
null
null
kat/controller.py
tot0rokr/kat
5fafe688593a60700f1067ca51ec9d5f148a396e
[ "MIT" ]
1
2020-01-25T00:14:51.000Z
2020-01-25T00:14:51.000Z
from kat.lib.tag import Tag from kat.lib.file import File from kat.lib.scope import Scope from kat.tracer import ccscanner as ccs from kat.tracer import ccparser as ccp from kat.tracer import ppscanner as pps from kat.tracer import ppparser as ppp from kat.ui.tabpage import * import kat.ui.filetree as ft import kat.ui....
29.974843
78
0.610575
2fc3d10c1bf1b8fbca3ca021751b16b83e1a9d1e
7,709
py
Python
plotMO_deg.py
landyion/plotMO
8de33b925223a170a33fdea7a5645ff64d6638d5
[ "MIT" ]
null
null
null
plotMO_deg.py
landyion/plotMO
8de33b925223a170a33fdea7a5645ff64d6638d5
[ "MIT" ]
null
null
null
plotMO_deg.py
landyion/plotMO
8de33b925223a170a33fdea7a5645ff64d6638d5
[ "MIT" ]
1
2020-05-05T08:16:19.000Z
2020-05-05T08:16:19.000Z
#!/usr/bin/python2.7 # Create the gnuplot script for MO energy diagrams # This script is released under MIT license. # Usage: plotMO.py <datefile> > <tol> # Date file structure: # 1) different molecules diveded by blank line, # 2) for each molecule section, start with molecule name # 3) second line for HOMO number...
27.144366
126
0.592035
2fc44e44de4fa82a33eba71af9e9f0b7407fba0b
2,024
py
Python
apps/hq/tests/auth.py
commtrack/commtrack-old-to-del
cc9c22754ac192a45483cef609bdcf09aa990340
[ "BSD-3-Clause" ]
1
2017-05-19T07:23:00.000Z
2017-05-19T07:23:00.000Z
apps/hq/tests/auth.py
commtrack/commtrack-old-to-del
cc9c22754ac192a45483cef609bdcf09aa990340
[ "BSD-3-Clause" ]
null
null
null
apps/hq/tests/auth.py
commtrack/commtrack-old-to-del
cc9c22754ac192a45483cef609bdcf09aa990340
[ "BSD-3-Clause" ]
null
null
null
import hashlib from django.test import TestCase from django.test.client import Client from hq.models import ExtUser, Domain, Organization, ReporterProfile from hq.tests.util import create_user_and_domain from receiver.models import Submission from reporters.models import Reporter
49.365854
166
0.623518
2fc482b29b5ed517acbe06792cf699b040d68832
7,015
py
Python
corehq/apps/data_interfaces/utils.py
andyasne/commcare-hq
c59a24e57bdd4d2536493f9ecdcc9906f4ae1b88
[ "BSD-3-Clause" ]
471
2015-01-10T02:55:01.000Z
2022-03-29T18:07:18.000Z
corehq/apps/data_interfaces/utils.py
andyasne/commcare-hq
c59a24e57bdd4d2536493f9ecdcc9906f4ae1b88
[ "BSD-3-Clause" ]
14,354
2015-01-01T07:38:23.000Z
2022-03-31T20:55:14.000Z
corehq/apps/data_interfaces/utils.py
andyasne/commcare-hq
c59a24e57bdd4d2536493f9ecdcc9906f4ae1b88
[ "BSD-3-Clause" ]
175
2015-01-06T07:16:47.000Z
2022-03-29T13:27:01.000Z
from typing import List, Optional from django.utils.translation import ugettext as _ from couchdbkit import ResourceNotFound from soil import DownloadBase from corehq.apps.casegroups.models import CommCareCaseGroup from corehq.apps.hqcase.utils import get_case_by_identifier from corehq.form_processor.interfaces.dba...
33.564593
115
0.606557
2fc4fb97dec276ac9c856a99d96ed1184a3ff45c
4,725
py
Python
category_prediction/evalCategoryModel.py
jakelever/corona-ml
8ceb22af50d7277ebf05f2fd21bbbf68c080ed76
[ "MIT" ]
7
2021-02-01T22:39:23.000Z
2021-08-09T16:28:38.000Z
category_prediction/evalCategoryModel.py
jakelever/corona-ml
8ceb22af50d7277ebf05f2fd21bbbf68c080ed76
[ "MIT" ]
1
2021-05-17T13:14:40.000Z
2021-05-20T10:26:09.000Z
category_prediction/evalCategoryModel.py
jakelever/corona-ml
8ceb22af50d7277ebf05f2fd21bbbf68c080ed76
[ "MIT" ]
1
2021-01-04T14:11:18.000Z
2021-01-04T14:11:18.000Z
import argparse import json import sys from sklearn.model_selection import train_test_split from sklearn.preprocessing import MultiLabelBinarizer import sklearn.metrics from coronacode import DocumentClassifier if __name__ == '__main__': main()
35.526316
148
0.729735
2fc5e09486ca793c293ae78afb5fd7c1bcc6bbb2
1,930
py
Python
simple/cubes.py
sawantss/simple-cozmo
54c85d7a42e351616edfc19ea000c94b3eee47f4
[ "Apache-2.0" ]
1
2019-10-19T22:03:33.000Z
2019-10-19T22:03:33.000Z
simple/cubes.py
sawantss/simple-cozmo
54c85d7a42e351616edfc19ea000c94b3eee47f4
[ "Apache-2.0" ]
null
null
null
simple/cubes.py
sawantss/simple-cozmo
54c85d7a42e351616edfc19ea000c94b3eee47f4
[ "Apache-2.0" ]
null
null
null
""" This class makes it easier to deal with cube tapped events in a procedural way using if statements. """ from __future__ import with_statement __all__ = ["LightCubesEventsSerializer"] __author__ = "Shitalkumar Sawant" __copyright__ = "Copyright(c) 2018 All rights reserved" from threading import Lock import cozmo...
31.129032
99
0.672021
2fc616d3f84483fe97876ef204e5c1ea508cf80c
7,771
py
Python
test/test_basic.py
brunoginciene/mergin-db-sync
0126e952df0e290ce503629b9831fbd1623edf7e
[ "MIT" ]
null
null
null
test/test_basic.py
brunoginciene/mergin-db-sync
0126e952df0e290ce503629b9831fbd1623edf7e
[ "MIT" ]
null
null
null
test/test_basic.py
brunoginciene/mergin-db-sync
0126e952df0e290ce503629b9831fbd1623edf7e
[ "MIT" ]
null
null
null
import pytest import os import shutil import sqlite3 import tempfile import psycopg2 from mergin import MerginClient, ClientError import sys sys.path.insert(0, '/home/martin/lutra/mergin-db-sync') from dbsync import dbsync_init, dbsync_pull, dbsync_push, dbsync_status, config GEODIFFINFO_EXE = os.environ.get('TES...
34.847534
111
0.713808
2fc6dec78a4c6244e5db1d19faef976eaab1b58b
20,773
py
Python
code/ARAX/ARAXQuery/Expand/bte_querier.py
MayankMurali/RTX
7d86305fb654c013c5ed2450dfe222f8666bfab2
[ "MIT" ]
null
null
null
code/ARAX/ARAXQuery/Expand/bte_querier.py
MayankMurali/RTX
7d86305fb654c013c5ed2450dfe222f8666bfab2
[ "MIT" ]
null
null
null
code/ARAX/ARAXQuery/Expand/bte_querier.py
MayankMurali/RTX
7d86305fb654c013c5ed2450dfe222f8666bfab2
[ "MIT" ]
null
null
null
#!/bin/env python3 import sys import os import traceback import asyncio from biothings_explorer.user_query_dispatcher import SingleEdgeQueryDispatcher sys.path.append(os.path.dirname(os.path.abspath(__file__))+"/../../UI/OpenAPI/python-flask-server/") from swagger_server.models.node import Node from swagger_server.mo...
60.211594
140
0.620854
2fc91778fcd42d41ff8ba864c167436b5a44ede5
1,679
py
Python
utilities/test_DFT.py
matter-labs-archive/belle_cuda
36c48708920e0ae0a43539f4476312649bbefc97
[ "Apache-2.0" ]
2
2021-03-03T19:09:04.000Z
2021-11-23T22:13:52.000Z
utilities/test_DFT.py
matter-labs-archive/belle_cuda
36c48708920e0ae0a43539f4476312649bbefc97
[ "Apache-2.0" ]
null
null
null
utilities/test_DFT.py
matter-labs-archive/belle_cuda
36c48708920e0ae0a43539f4476312649bbefc97
[ "Apache-2.0" ]
3
2021-08-21T07:50:12.000Z
2022-03-20T17:59:47.000Z
#FFT p = 0x30644e72e131a029b85045b68181585d2833e84879b9709143e1f593f0000001 field = GF(p) R = field(0xe0a77c19a07df2f666ea36f7879462e36fc76959f60cd29ac96341c4ffffffb) root_of_unity = field(0x1860ef942963f9e756452ac01eb203d8a22bf3742445ffd6636e735580d13d9c) / R FILE_LOCATION = "/home/k/TestCuda3/benches.txt" unity_ord...
20.9875
93
0.627755
2fc96bd9749d33c45053ca208a6959e1316c8c1b
320
py
Python
zhaquirks/linkind/__init__.py
Siglis-AG/zha-device-handlers
2e8d6a117fbc1bec50cad463a8a2dcf948588838
[ "Apache-2.0" ]
56
2018-12-07T19:45:36.000Z
2020-03-30T15:01:58.000Z
zhaquirks/linkind/__init__.py
Siglis-AG/zha-device-handlers
2e8d6a117fbc1bec50cad463a8a2dcf948588838
[ "Apache-2.0" ]
207
2018-12-07T20:34:30.000Z
2020-04-03T11:50:39.000Z
zhaquirks/linkind/__init__.py
Siglis-AG/zha-device-handlers
2e8d6a117fbc1bec50cad463a8a2dcf948588838
[ "Apache-2.0" ]
65
2018-12-08T01:11:41.000Z
2020-03-24T18:23:17.000Z
"""Linkind sensors.""" from zigpy.quirks import CustomCluster import zigpy.types as t from zigpy.zcl.clusters.general import Basic
26.666667
62
0.740625
2fc9f7217040262d94ce5133df432d66dd60db6a
48
py
Python
src/ui/menus.py
KathTheDragon/spindizzy-client
7ad7c5b330e707ab40fa572c2c25049959544d11
[ "MIT" ]
null
null
null
src/ui/menus.py
KathTheDragon/spindizzy-client
7ad7c5b330e707ab40fa572c2c25049959544d11
[ "MIT" ]
null
null
null
src/ui/menus.py
KathTheDragon/spindizzy-client
7ad7c5b330e707ab40fa572c2c25049959544d11
[ "MIT" ]
null
null
null
import tkinter as tk
9.6
20
0.6875
2fcabbf4dd03d68a4332042abb2b0e3d729ffc0b
2,088
py
Python
filehandling.py
theambidextrous/py-learn-trail
33283d29862654972edaab5baf318ae7298e6f76
[ "Apache-2.0" ]
null
null
null
filehandling.py
theambidextrous/py-learn-trail
33283d29862654972edaab5baf318ae7298e6f76
[ "Apache-2.0" ]
null
null
null
filehandling.py
theambidextrous/py-learn-trail
33283d29862654972edaab5baf318ae7298e6f76
[ "Apache-2.0" ]
null
null
null
### FILE HADLING ############# ## File OPen """" Use open() to manipulate files. Open() function takes two parameters; filename, and mode. There are four different methods (modes) for opening a file: =================================================================== "r" - Read - Default value. Opens a file for reading...
34.229508
120
0.534962
2fcb5b1b96a29a0e18900da614e07c230a2d10b4
5,046
py
Python
train_utils.py
mengcz13/pytorch_training_toolbox
fae446b53d687248c7cf4667b45530b6a9676f43
[ "MIT" ]
null
null
null
train_utils.py
mengcz13/pytorch_training_toolbox
fae446b53d687248c7cf4667b45530b6a9676f43
[ "MIT" ]
null
null
null
train_utils.py
mengcz13/pytorch_training_toolbox
fae446b53d687248c7cf4667b45530b6a9676f43
[ "MIT" ]
null
null
null
import os import sys import socket import time import argparse import pickle import datetime import multiprocessing import numpy as np import torch import torch.optim as optim import torch.nn.functional as torchF from torch.optim import lr_scheduler from torch.utils.data import DataLoader import torch.multiprocessing...
36.565217
169
0.652794
2fcdd52a443fa79c19be95378dac193232845c7f
2,684
py
Python
helloworld.py
sungwon89/starter
8da98db4275ed149ada7b72a768cf55f36241284
[ "Apache-2.0" ]
null
null
null
helloworld.py
sungwon89/starter
8da98db4275ed149ada7b72a768cf55f36241284
[ "Apache-2.0" ]
null
null
null
helloworld.py
sungwon89/starter
8da98db4275ed149ada7b72a768cf55f36241284
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python ##################################### # Name : Daily Check # Language : Python # Create date : 2017.03.23 # Version : 0.1 ###################################### import csv import platform import commands ###################################### # Variables # 0. System_ENV # 1. SyslogChecke...
27.670103
117
0.596125
2fcee79f2e3618a6a53efa3b80dd76c30155b9ef
140
py
Python
ExPython/CursoemVideo/ex030.py
MatheusEwen/Exercicios_Do_CursoDePython
7c21f95f0d31ec1e6c17e1b957c1442843118c48
[ "MIT" ]
1
2020-10-06T00:27:05.000Z
2020-10-06T00:27:05.000Z
ExPython/CursoemVideo/ex030.py
MatheusEwen/Exercicios_Do_CursoDePython
7c21f95f0d31ec1e6c17e1b957c1442843118c48
[ "MIT" ]
null
null
null
ExPython/CursoemVideo/ex030.py
MatheusEwen/Exercicios_Do_CursoDePython
7c21f95f0d31ec1e6c17e1b957c1442843118c48
[ "MIT" ]
null
null
null
import math n = int(input('Digite um nmero:')) resul = n % 2 if resul == 0: print('O nmero par') else: print('O nmero impar')
20
35
0.614286
2fcf43e4ac6a474d5fc5c5ee29da212ada27726d
933
py
Python
exercicios/Exercicios Diversos/ex026.py
Roberto-Sartore/Python
98f91f13cf78d761893c4a1f3264ed999244d32b
[ "MIT" ]
null
null
null
exercicios/Exercicios Diversos/ex026.py
Roberto-Sartore/Python
98f91f13cf78d761893c4a1f3264ed999244d32b
[ "MIT" ]
null
null
null
exercicios/Exercicios Diversos/ex026.py
Roberto-Sartore/Python
98f91f13cf78d761893c4a1f3264ed999244d32b
[ "MIT" ]
null
null
null
"""Faa um programa que pergunte o preo de trs produtos e informe qual produto voc deve comprar, sabendo que a deciso sempre pelo mais barato""" p1 = float(input('Digite a 1 valor R$ : ').replace(',', '.')) p2 = float(input('Digite a 2 valor R$ : ').replace(',', '.')) p3 = float(input('Digite a 3 valor R$ : ').replac...
34.555556
99
0.620579
2fd0cfd1e79c1ace8d687b73297ea9d7a24a0964
79
py
Python
pdr/__init__.py
jmzhao/CS704-asn3
95020c5198e50d520f34e51dbc77e195c06e6473
[ "MIT" ]
null
null
null
pdr/__init__.py
jmzhao/CS704-asn3
95020c5198e50d520f34e51dbc77e195c06e6473
[ "MIT" ]
1
2016-05-14T04:08:55.000Z
2016-05-14T07:20:30.000Z
pdr/__init__.py
jmzhao/CS704-asn3
95020c5198e50d520f34e51dbc77e195c06e6473
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ @author: jmzhao """ from pdr import * import test
11.285714
23
0.56962
2fd3ac7c1ba41bd5ab199c3429b9b16299c4d677
3,677
py
Python
get_images.py
agnes-yang/firecam
9282d1b5b83be3abf6a137f7a72c090a9eca05f6
[ "Apache-2.0" ]
10
2019-12-19T02:37:33.000Z
2021-12-07T04:47:08.000Z
get_images.py
agnes-yang/firecam
9282d1b5b83be3abf6a137f7a72c090a9eca05f6
[ "Apache-2.0" ]
5
2019-10-27T23:22:52.000Z
2020-02-13T23:08:15.000Z
get_images.py
agnes-yang/firecam
9282d1b5b83be3abf6a137f7a72c090a9eca05f6
[ "Apache-2.0" ]
13
2019-09-24T18:53:24.000Z
2021-07-16T05:57:18.000Z
# Copyright 2018 The Fuego Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in wr...
39.537634
144
0.689421
2fd4b59a4281b93484f61543a3964063cbea187d
2,578
py
Python
run_compile_all_cython.py
SamanFekri/BookRecommendation
07dfa875154af39546cb263d4407339ce26d47e8
[ "MIT" ]
null
null
null
run_compile_all_cython.py
SamanFekri/BookRecommendation
07dfa875154af39546cb263d4407339ce26d47e8
[ "MIT" ]
null
null
null
run_compile_all_cython.py
SamanFekri/BookRecommendation
07dfa875154af39546cb263d4407339ce26d47e8
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on 30/03/2019 @author: Maurizio Ferrari Dacrema """ import sys, glob, traceback, os from CythonCompiler.run_compile_subprocess import run_compile_subprocess if __name__ == '__main__': # cython_file_list = glob.glob('**/*.pyx', recursive=True) subf...
28.644444
137
0.643134
2fd7e97342ba7ba70c0c1d034f2b6f659e0d93a5
3,822
py
Python
python/table_bandits.py
lbiester/gem5
21e2743f0d71c7f729f1ce799ec6e73c13a2eaba
[ "BSD-3-Clause" ]
null
null
null
python/table_bandits.py
lbiester/gem5
21e2743f0d71c7f729f1ce799ec6e73c13a2eaba
[ "BSD-3-Clause" ]
null
null
null
python/table_bandits.py
lbiester/gem5
21e2743f0d71c7f729f1ce799ec6e73c13a2eaba
[ "BSD-3-Clause" ]
null
null
null
import random import numpy as np from scipy.stats import bernoulli # TODO: how best to assign rewards? Should "too soon" of use be penalized? Should max reward be > 1? # what if something is used twice? Shouldn't this increase reward? for now no extra reward is given
52.356164
125
0.674254
2fd84b89ad959d00f7cb28ec23fef9355fc7136b
1,473
py
Python
angr/procedures/posix/getenv.py
BA7JCM/angr
187a713c35759d998d93dfc5280630976d42d717
[ "BSD-2-Clause" ]
null
null
null
angr/procedures/posix/getenv.py
BA7JCM/angr
187a713c35759d998d93dfc5280630976d42d717
[ "BSD-2-Clause" ]
null
null
null
angr/procedures/posix/getenv.py
BA7JCM/angr
187a713c35759d998d93dfc5280630976d42d717
[ "BSD-2-Clause" ]
null
null
null
import angr ###################################### # getenv ######################################
39.810811
120
0.596062
2fd88f709bdb101553b7e313c87147a9ef4f3e60
1,571
py
Python
pyblaze/utils/examples/normalizing_flows.py
Greenroom-Robotics/pyblaze
e45e27fbd400b6ae2365ad2347165c7b5154ac51
[ "MIT" ]
20
2020-03-29T08:43:15.000Z
2021-12-17T21:38:17.000Z
pyblaze/utils/examples/normalizing_flows.py
borchero/bxtorch
8d01568c8ee9fc05f5b3c84ca3ec68ea74eef9eb
[ "MIT" ]
4
2020-10-27T20:43:40.000Z
2021-04-29T12:19:39.000Z
pyblaze/utils/examples/normalizing_flows.py
borchero/bxtorch
8d01568c8ee9fc05f5b3c84ca3ec68ea74eef9eb
[ "MIT" ]
2
2020-08-16T18:10:49.000Z
2021-03-31T23:17:28.000Z
# pylint: disable=missing-docstring import torch import torch.optim as optim from torch.utils.data.dataset import TensorDataset import matplotlib.pyplot as plt import pyblaze.nn as xnn import pyblaze.plot as P
29.092593
100
0.615532
2fd8994fcfe97d0f5782b8f01e1cbbee48079342
4,896
py
Python
pracnbastats/team.py
practicallypredictable/pracnbstats
55cd6e285394686a62f3d1535a5b3468cd5410ea
[ "MIT" ]
null
null
null
pracnbastats/team.py
practicallypredictable/pracnbstats
55cd6e285394686a62f3d1535a5b3468cd5410ea
[ "MIT" ]
null
null
null
pracnbastats/team.py
practicallypredictable/pracnbstats
55cd6e285394686a62f3d1535a5b3468cd5410ea
[ "MIT" ]
null
null
null
import numpy as np from . import params from . import scrape from . import utils from . import league
30.409938
70
0.500817
2fd9979293758751fadd18729d122db6a313068a
2,192
py
Python
anaf/changes/urls.py
tovmeod/anaf
80e4a00532ce6f4ce76c5ffc858ff90c759a9879
[ "BSD-3-Clause" ]
2
2016-03-15T13:17:26.000Z
2017-03-22T15:39:01.000Z
anaf/changes/urls.py
tovmeod/anaf
80e4a00532ce6f4ce76c5ffc858ff90c759a9879
[ "BSD-3-Clause" ]
4
2021-03-19T21:42:58.000Z
2022-03-11T23:13:07.000Z
anaf/changes/urls.py
tovmeod/anaf
80e4a00532ce6f4ce76c5ffc858ff90c759a9879
[ "BSD-3-Clause" ]
4
2016-08-31T16:55:41.000Z
2020-04-22T18:48:54.000Z
""" Change Control module URLs """ from django.conf.urls import url, patterns from anaf.changes import views urlpatterns = patterns('anaf.changes.views', url(r'^(\.(?P<response_format>\w+))?$', views.index, name='changes_index'), url(r'^owned(\.(?P<response_format>\w+))?$...
57.684211
120
0.485858
2fda17987d3e3d4eee33a6885696e3d642ef4b29
336
py
Python
app/editor/migrations/0004_auto_20190809_1728.py
sappachok/django-anaconda
1ffd33ded759f622b6db23a3550a898b62350403
[ "MIT" ]
null
null
null
app/editor/migrations/0004_auto_20190809_1728.py
sappachok/django-anaconda
1ffd33ded759f622b6db23a3550a898b62350403
[ "MIT" ]
7
2019-12-06T05:34:28.000Z
2021-06-10T18:25:17.000Z
app/editor/migrations/0004_auto_20190809_1728.py
sappachok/django-datasci
1ffd33ded759f622b6db23a3550a898b62350403
[ "MIT" ]
null
null
null
# Generated by Django 2.2.4 on 2019-08-09 17:28 from django.db import migrations
18.666667
47
0.60119
2fde19d1fd4d8c645e2a58569add1946141ead92
3,429
py
Python
aishell/prepare_data.py
luweishuang/GSoC-2019-ASR-Pipeline
db43575418d57711e8be2ea83c32b931b90fa814
[ "MIT" ]
1
2019-12-25T03:37:01.000Z
2019-12-25T03:37:01.000Z
aishell/prepare_data.py
luweishuang/GSoC-2019-ASR-Pipeline
db43575418d57711e8be2ea83c32b931b90fa814
[ "MIT" ]
null
null
null
aishell/prepare_data.py
luweishuang/GSoC-2019-ASR-Pipeline
db43575418d57711e8be2ea83c32b931b90fa814
[ "MIT" ]
1
2020-03-20T07:59:37.000Z
2020-03-20T07:59:37.000Z
""" Command : prepare_data.py --src [...] --dst [...] """ import argparse import os import sys from tqdm import tqdm if __name__ == "__main__": parser = argparse.ArgumentParser(description="Aishell Dataset creation.") parser.add_argument("--src", help="source directory") parser.add_argument("--dst", help...
29.560345
89
0.580927
2fdee606c545c725c7021d340c2c47cba95c6f8a
5,317
py
Python
server/config.py
BlankDAO/user-dashboard
b94e82366aeafab9aa08ed523f06e8ea6682f7a5
[ "BSD-2-Clause" ]
3
2019-03-10T06:07:39.000Z
2019-04-08T12:52:58.000Z
server/config.py
BlankDAO/user-dashboard
b94e82366aeafab9aa08ed523f06e8ea6682f7a5
[ "BSD-2-Clause" ]
null
null
null
server/config.py
BlankDAO/user-dashboard
b94e82366aeafab9aa08ed523f06e8ea6682f7a5
[ "BSD-2-Clause" ]
null
null
null
INFURA_URL = 'https://mainnet.infura.io/v3/81a17a01107e4ac9bf8a556da267ae2d' BLANKDAO_PUBLIC_KEY = '117f893e-9184-427a-892c-6993e88981f0' BLANK_TOKEN_ABI = '[{"constant": true, "inputs": [], "name": "mintingFinished", "outputs": [{"name": "", "type": "bool"}], "payable": false, "stateMutability": "view", "typ...
231.173913
4,861
0.595637
2fdfd7c8de26fc11a29c348de139d64a9c7837bf
1,034
py
Python
bin/analytic/catalog/regressor.py
DarkEnergyScienceCollaboration/chroma
64fc123a065334b307654f29b3bea52885b46ec8
[ "BSD-2-Clause", "BSD-3-Clause" ]
3
2015-10-22T14:57:27.000Z
2016-08-25T08:16:02.000Z
bin/analytic/catalog/regressor.py
DarkEnergyScienceCollaboration/chroma
64fc123a065334b307654f29b3bea52885b46ec8
[ "BSD-2-Clause", "BSD-3-Clause" ]
1
2017-08-28T14:42:46.000Z
2017-08-28T16:08:37.000Z
bin/analytic/catalog/regressor.py
DarkEnergyScienceCollaboration/chroma
64fc123a065334b307654f29b3bea52885b46ec8
[ "BSD-2-Clause", "BSD-3-Clause" ]
null
null
null
""" Simple wrapper for sklearn regession classes that scales features to have zero mean and unit variance. Can also easily unscale features of predicted data. """ import numpy as np
36.928571
90
0.689555
2fe14f420e86345764e26b8b68fa3a9d231ede94
7,717
py
Python
ddpg.py
fengredrum/DDPG-v2
78d7bfbedb52b4dec76d2723f4e5d04d340f1275
[ "MIT" ]
3
2018-12-26T09:33:30.000Z
2020-04-22T12:11:30.000Z
ddpg.py
fengredrum/DDPG-v2
78d7bfbedb52b4dec76d2723f4e5d04d340f1275
[ "MIT" ]
null
null
null
ddpg.py
fengredrum/DDPG-v2
78d7bfbedb52b4dec76d2723f4e5d04d340f1275
[ "MIT" ]
1
2018-12-20T08:19:08.000Z
2018-12-20T08:19:08.000Z
import time import numpy as np from replayBuffer import Memory from network import *
51.791946
120
0.621485
2fe4fadf475b13cfb0692513254c3cb049b9b1c5
3,025
py
Python
chainlet_unittests/test_grammar/test_subscription.py
maxfischer2781/chainlet
4e17f9992b4780bd0d9309202e2847df640bffe8
[ "MIT" ]
1
2017-11-22T21:23:34.000Z
2017-11-22T21:23:34.000Z
chainlet_unittests/test_grammar/test_subscription.py
maxfischer2781/chainlet
4e17f9992b4780bd0d9309202e2847df640bffe8
[ "MIT" ]
10
2017-02-16T16:20:09.000Z
2018-03-12T16:57:38.000Z
chainlet_unittests/test_grammar/test_subscription.py
maxfischer2781/chainlet
4e17f9992b4780bd0d9309202e2847df640bffe8
[ "MIT" ]
null
null
null
import itertools import unittest from chainlet.dataflow import MergeLink from chainlet_unittests.utility import Adder
44.485294
120
0.596364
2fe84a2906f5bf097d1442024ee1714c19469089
2,727
py
Python
tests/test_rules.py
f213/richtypo.py
717cf4b640289c410b5ecddbd240d7cc818b8b68
[ "MIT" ]
9
2017-01-12T16:52:35.000Z
2020-11-08T19:08:34.000Z
tests/test_rules.py
f213/richtypo.py
717cf4b640289c410b5ecddbd240d7cc818b8b68
[ "MIT" ]
115
2018-06-12T20:48:09.000Z
2020-07-29T02:14:58.000Z
tests/test_rules.py
f213/richtypo.py
717cf4b640289c410b5ecddbd240d7cc818b8b68
[ "MIT" ]
1
2022-02-10T06:40:58.000Z
2022-02-10T06:40:58.000Z
# -*- coding: utf-8 import re import six from richtypo import Richtypo from richtypo.rules import ABRule, Rule try: from unittest.mock import patch except ImportError: from mock import patch def test_rule_order(): """ Check if rules are applyied in order they are supplied """ r1 = Rule( ...
20.350746
70
0.604327
2fe8b058bff633879ee2bcceb0dc667d24109f50
786
py
Python
accounts/urls.py
UTpay/UTpay
5e43f07f9046781ab2b50ada3c3a022d13da1765
[ "MIT" ]
1
2017-11-04T20:33:04.000Z
2017-11-04T20:33:04.000Z
accounts/urls.py
UTpay/utpay
5e43f07f9046781ab2b50ada3c3a022d13da1765
[ "MIT" ]
7
2020-06-05T17:38:37.000Z
2022-03-11T23:17:27.000Z
accounts/urls.py
UTpay/UTpay
5e43f07f9046781ab2b50ada3c3a022d13da1765
[ "MIT" ]
null
null
null
from django.contrib.auth import views as auth_views from django.urls import path from .views import * app_name = 'accounts' urlpatterns = [ path('signup/', SignUpView.as_view(), name='signup'), path('activation/<key>/', ActivationView.as_view(), name='activation'), path('login/', auth_views.LoginView.as_v...
46.235294
96
0.717557
2fe90b31573edf5975fb492298b9d7925da1286f
2,230
py
Python
Flight/RC Overrides/Forward Movement.py
MissouriMRR/DroneKit
979fc814c333db843252abe642dfb741613bfc94
[ "MIT" ]
1
2020-07-20T02:53:01.000Z
2020-07-20T02:53:01.000Z
Flight/RC Overrides/Forward Movement.py
MissouriMRR/DroneKit
979fc814c333db843252abe642dfb741613bfc94
[ "MIT" ]
null
null
null
Flight/RC Overrides/Forward Movement.py
MissouriMRR/DroneKit
979fc814c333db843252abe642dfb741613bfc94
[ "MIT" ]
null
null
null
import time from dronekit import VehicleMode, connect from pymavlink import mavutil fly=False landing = False lat = 49.2778638 lon = -123.0633418 vehicle = connect('tcp:127.0.0.1:5763', wait_ready=True) print "Read channels individually:" print " Ch1: %s" % vehicle.channels['1'] print " Ch2: %s" % vehicle.channels['2...
30.972222
110
0.698206
2fe9d5bba8728b3052a65f08a998d3c145a7e3af
1,806
py
Python
enaml/qt/qt_web_view.py
pberkes/enaml
cbcbee929e3117dfe56c0b06dc2385acc832b0e8
[ "BSD-3-Clause-Clear" ]
26
2016-04-01T18:49:31.000Z
2020-07-21T22:19:46.000Z
enaml/qt/qt_web_view.py
pberkes/enaml
cbcbee929e3117dfe56c0b06dc2385acc832b0e8
[ "BSD-3-Clause-Clear" ]
29
2016-02-22T17:40:55.000Z
2018-08-21T18:18:36.000Z
enaml/qt/qt_web_view.py
pberkes/enaml
cbcbee929e3117dfe56c0b06dc2385acc832b0e8
[ "BSD-3-Clause-Clear" ]
4
2016-08-29T13:07:19.000Z
2018-11-04T01:31:46.000Z
#------------------------------------------------------------------------------ # Copyright (c) 2013, Nucleic Development Team. # # Distributed under the terms of the Modified BSD License. # # The full license is in the file COPYING.txt, distributed with this software. #-------------------------------------------------...
30.610169
79
0.477298
2feaafe4312b2826f2437121c11a4ae1d7ccd4e8
10,940
py
Python
latest version/web/index.py
Kanae25805/Arcaea-server
0218e797aec835e07488a1dfbd121925d56245b5
[ "MIT" ]
null
null
null
latest version/web/index.py
Kanae25805/Arcaea-server
0218e797aec835e07488a1dfbd121925d56245b5
[ "MIT" ]
null
null
null
latest version/web/index.py
Kanae25805/Arcaea-server
0218e797aec835e07488a1dfbd121925d56245b5
[ "MIT" ]
null
null
null
from flask import ( Blueprint, flash, g, redirect, render_template, request, url_for ) from web.login import login_required from werkzeug.utils import secure_filename import sqlite3 import web.webscore import web.system import time import server.arcscore import os UPLOAD_FOLDER = 'database' ALLOWED_EXTENSIONS = {'...
30.304709
139
0.522121
2feb74471e168c7ba1d30e8dffed81e0e52414c6
3,271
py
Python
feedreader/fallback/atom.py
webos-goodies/feedreader
42f44a98980af3a9bc39fa5c436a48fc31733d0f
[ "BSD-2-Clause" ]
1
2015-11-15T18:45:50.000Z
2015-11-15T18:45:50.000Z
feedreader/fallback/atom.py
webos-goodies/feedreader
42f44a98980af3a9bc39fa5c436a48fc31733d0f
[ "BSD-2-Clause" ]
null
null
null
feedreader/fallback/atom.py
webos-goodies/feedreader
42f44a98980af3a9bc39fa5c436a48fc31733d0f
[ "BSD-2-Clause" ]
null
null
null
""" Malformed Atom fallback """ from feedreader.fallback.base import (PREFERRED_LINK_TYPES, PREFERRED_CONTENT_TYPES, Feed, Item, get_element_text, get_attribute, search_child, get_xpath_node, get_xpath_text, get_xpath_datetime, ...
31.757282
97
0.670131
2feca74f95fd3ef72f4807ca5abf86a33a361fda
14,122
py
Python
taggd/core/demultiplex.py
jfnavarro/taggd
c423a4bb8a2afc1ffaabc6704a8968dc3e829b4f
[ "BSD-3-Clause" ]
3
2015-05-07T12:23:12.000Z
2019-12-07T11:30:43.000Z
taggd/core/demultiplex.py
JoelSjostrand/taggd
d778dcce5205ca61bd82cb518854583f32f63baf
[ "BSD-3-Clause" ]
1
2017-06-29T11:49:28.000Z
2017-06-29T17:59:03.000Z
taggd/core/demultiplex.py
JoelSjostrand/taggd
d778dcce5205ca61bd82cb518854583f32f63baf
[ "BSD-3-Clause" ]
3
2015-05-11T08:00:03.000Z
2020-11-30T07:49:27.000Z
""" Runs taggd, a tool to demultiplex (link molecular barcodes back to) a file of genetic reads, typically obtained by sequencing. For matched reads, the barcode and its related properties are added to the read. Unmatched reads, ambiguously matched reads, and stats are by default produced as output files as well. The...
52.303704
195
0.599278
2fed9c1cc996668efe8fcc3cc02dc64126644948
18,586
py
Python
plots_matlabformat.py
apiasecki/benthic_calibration
739a42096018f51af2c2043413b90aa072fcd81d
[ "MIT" ]
null
null
null
plots_matlabformat.py
apiasecki/benthic_calibration
739a42096018f51af2c2043413b90aa072fcd81d
[ "MIT" ]
null
null
null
plots_matlabformat.py
apiasecki/benthic_calibration
739a42096018f51af2c2043413b90aa072fcd81d
[ "MIT" ]
null
null
null
# THIS TAKES AN ALREADY FORMATED DATA TABLE from matlab AND DOES THE REGRESSIONS # IT ALSO MAKES THE PLOTS # LAST EDITED 11-29-17 import pandas import numpy as np import matplotlib.pyplot as plt from scipy.optimize import curve_fit from pylab import * from pyteomics import mass # can do cool isotope math stuff, not us...
46.698492
112
0.620144
2fef0f20d9583beaad642d2b113a19d757ae987a
36,252
py
Python
ai_pomdp_agent.py
Grottoh/Deep-Active-Inference-for-Partially-Observable-MDPs
11fedf09cefaada3dd60f1af430d59d87cbd706e
[ "MIT" ]
8
2020-09-17T06:48:33.000Z
2022-01-08T16:51:20.000Z
ai_pomdp_agent.py
pl-robotdecision/Deep-Active-Inference-for-Partially-Observable-MDPs
11fedf09cefaada3dd60f1af430d59d87cbd706e
[ "MIT" ]
null
null
null
ai_pomdp_agent.py
pl-robotdecision/Deep-Active-Inference-for-Partially-Observable-MDPs
11fedf09cefaada3dd60f1af430d59d87cbd706e
[ "MIT" ]
1
2021-01-13T12:23:35.000Z
2021-01-13T12:23:35.000Z
__author__ = "Otto van der Himst" __credits__ = "Otto van der Himst, Pablo Lanillos" __version__ = "1.0" __email__ = "o.vanderhimst@student.ru.nl" import torch import torch.nn as nn import torch.nn.functional as F import torch.optim as optim import numpy as np import datetime import sys import gym import ...
50.702098
232
0.594698
2fefb9f1bc9de1b69287eaed8f707942f874fa69
2,465
py
Python
src/BribeNet/bribery/temporal/action/briberyAction.py
RobMurray98/BribeNet
09ddd8f15d9ab5fac44ae516ed92c6ba5e5119bc
[ "MIT" ]
null
null
null
src/BribeNet/bribery/temporal/action/briberyAction.py
RobMurray98/BribeNet
09ddd8f15d9ab5fac44ae516ed92c6ba5e5119bc
[ "MIT" ]
null
null
null
src/BribeNet/bribery/temporal/action/briberyAction.py
RobMurray98/BribeNet
09ddd8f15d9ab5fac44ae516ed92c6ba5e5119bc
[ "MIT" ]
null
null
null
from abc import ABC, abstractmethod from typing import List from BribeNet.helpers.bribeNetException import BribeNetException
34.71831
119
0.669371
2fefd6e5e58e9aad34db52d1d9799e3ab83c554a
4,269
py
Python
jax_md/quantity.py
niklasschmitz/jax-md
5702b9a852d990ff1f7bae87bf06842734df1a90
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
jax_md/quantity.py
niklasschmitz/jax-md
5702b9a852d990ff1f7bae87bf06842734df1a90
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
jax_md/quantity.py
niklasschmitz/jax-md
5702b9a852d990ff1f7bae87bf06842734df1a90
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
29.441379
79
0.69829
2fefd9d669adc52d9fc25135e72257c4fc66d661
9,748
py
Python
nsfiu/support/Python/Micronix.py
TobiasSchof/KPIC
619ea31d9705c0168220d79f5d2f6f70535ca416
[ "Unlicense" ]
null
null
null
nsfiu/support/Python/Micronix.py
TobiasSchof/KPIC
619ea31d9705c0168220d79f5d2f6f70535ca416
[ "Unlicense" ]
null
null
null
nsfiu/support/Python/Micronix.py
TobiasSchof/KPIC
619ea31d9705c0168220d79f5d2f6f70535ca416
[ "Unlicense" ]
null
null
null
from serial import Serial from time import sleep from telnetlib import Telnet from logging import debug # TODO: Can I check which axis are connected in open_x?
31.856209
91
0.572733
2feff27c4691f93b27ecb59a4c2ab20267c11251
7,151
py
Python
storops_test/lib/test_version.py
tunaruraul/storops
7092c516c55b4c2f00c7c22383e1ad46ecfec091
[ "Apache-2.0" ]
60
2016-04-18T23:42:10.000Z
2022-03-23T02:26:03.000Z
storops_test/lib/test_version.py
tunaruraul/storops
7092c516c55b4c2f00c7c22383e1ad46ecfec091
[ "Apache-2.0" ]
317
2016-05-25T06:45:37.000Z
2022-03-25T13:22:38.000Z
storops_test/lib/test_version.py
tunaruraul/storops
7092c516c55b4c2f00c7c22383e1ad46ecfec091
[ "Apache-2.0" ]
34
2016-03-18T02:39:12.000Z
2022-01-07T12:54:14.000Z
import functools from unittest import TestCase import ddt from hamcrest import assert_that, equal_to, raises from storops.exception import SystemAPINotSupported from storops.lib.resource import Resource from storops.lib.version import version, Criteria from storops_test.unity.rest_mock import t_rest, patch_rest from ...
32.652968
77
0.602014
2ff20fd15245634531744ee562835b4c0d1a75be
2,251
py
Python
tests/test_pipeline_wgbs_index.py
Multiscale-Genomics/mg-process-fastq
50c7115c0c1a6af48dc34f275e469d1b9eb02999
[ "Apache-2.0" ]
2
2017-07-31T11:45:46.000Z
2017-08-09T09:32:35.000Z
tests/test_pipeline_wgbs_index.py
Multiscale-Genomics/mg-process-fastq
50c7115c0c1a6af48dc34f275e469d1b9eb02999
[ "Apache-2.0" ]
28
2016-11-17T11:12:32.000Z
2018-11-02T14:09:13.000Z
tests/test_pipeline_wgbs_index.py
Multiscale-Genomics/mg-process-fastq
50c7115c0c1a6af48dc34f275e469d1b9eb02999
[ "Apache-2.0" ]
4
2017-02-12T17:47:21.000Z
2018-05-29T08:16:27.000Z
""" .. See the NOTICE file distributed with this work for additional information regarding copyright ownership. 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....
30.418919
100
0.67259
2ff388db8366ea8591858ff099655cca6fbb8662
7,625
py
Python
finance_manager/functions.py
jehboyes/finance_manager
d310a3a4c2c6b6e5564e2a83e3f355b23266b773
[ "MIT" ]
null
null
null
finance_manager/functions.py
jehboyes/finance_manager
d310a3a4c2c6b6e5564e2a83e3f355b23266b773
[ "MIT" ]
null
null
null
finance_manager/functions.py
jehboyes/finance_manager
d310a3a4c2c6b6e5564e2a83e3f355b23266b773
[ "MIT" ]
null
null
null
""" A collection of generic functions and iterators intended for use in various parts of the App, and will probably be of use to future development. """ from importlib import import_module as imp from os import listdir, path import sys import functools import click def period_to_month(period, acad_year): """ ...
26.943463
107
0.557902
2ff4614b2c2823a60726232798f4f0d9f9766030
5,157
py
Python
tests/test_openml.py
carefree0910/carefree-learn-benchmark
d5507c1719e0b625230e3befc23149a96e057d14
[ "MIT" ]
null
null
null
tests/test_openml.py
carefree0910/carefree-learn-benchmark
d5507c1719e0b625230e3befc23149a96e057d14
[ "MIT" ]
null
null
null
tests/test_openml.py
carefree0910/carefree-learn-benchmark
d5507c1719e0b625230e3befc23149a96e057d14
[ "MIT" ]
null
null
null
import os import cflearn import platform import unittest import numpy as np from typing import Dict from cflearn_benchmark import Benchmark from scipy.sparse import csr_matrix from cftool.ml import patterns_type from cftool.ml import Tracker from cftool.ml import Comparer from cftool.misc import timestamp from cfdata...
38.774436
90
0.587745
2ff575594cb4f67394b6f254007e19ef1d93f244
352
py
Python
aws_ips/utils.py
thepawn1/aws_ips
a708f6a59e94544ffd8e8c9f03885b340a370d13
[ "Apache-2.0" ]
null
null
null
aws_ips/utils.py
thepawn1/aws_ips
a708f6a59e94544ffd8e8c9f03885b340a370d13
[ "Apache-2.0" ]
null
null
null
aws_ips/utils.py
thepawn1/aws_ips
a708f6a59e94544ffd8e8c9f03885b340a370d13
[ "Apache-2.0" ]
1
2020-06-21T06:12:20.000Z
2020-06-21T06:12:20.000Z
""" Various utils """ import json import socket def jprint(anything): """ pprint() alternative """ print(json.dumps(anything, default=str, sort_keys=True, indent=4)) def resolve_host(hostname): """ Resolve hostname """ try: return socket.gethostbyname(hostname) except soc...
15.304348
70
0.625
2ff8aa8452d3785af93c4d934bd42e377d0cab4b
6,117
py
Python
final/predict.py
terrifyzhao/information_extract
d950c25911f5a8d9f7e10eb9ecfd53f897cef8d0
[ "Apache-2.0" ]
null
null
null
final/predict.py
terrifyzhao/information_extract
d950c25911f5a8d9f7e10eb9ecfd53f897cef8d0
[ "Apache-2.0" ]
null
null
null
final/predict.py
terrifyzhao/information_extract
d950c25911f5a8d9f7e10eb9ecfd53f897cef8d0
[ "Apache-2.0" ]
null
null
null
import json from final.model import model import os import numpy as np import tensorflow as tf import jieba from tqdm import tqdm import ahocorasick from gensim.models import Word2Vec os.environ["KMP_DUPLICATE_LIB_OK"] = "TRUE" path = os.getcwd() graph = tf.get_default_graph() train_data = json.load(open(path + '/dat...
32.194737
102
0.541605
2ff8c1d733f52e6e0c92e54a6bb944e263727097
16,976
py
Python
agent/state/model.py
abiro/minerl-agent
c33361c4a5ad0d5fe903f211665ff4da16439b69
[ "MIT" ]
null
null
null
agent/state/model.py
abiro/minerl-agent
c33361c4a5ad0d5fe903f211665ff4da16439b69
[ "MIT" ]
null
null
null
agent/state/model.py
abiro/minerl-agent
c33361c4a5ad0d5fe903f211665ff4da16439b69
[ "MIT" ]
null
null
null
import os from collections import defaultdict import logging from operator import itemgetter from pathlib import Path from typing import List, Optional, Tuple, Dict, Iterable, Iterator import time import numpy as np import torch as T import torch.nn as nn import torch.nn.functional as F import torch.optim as optim fro...
33.615842
79
0.568332
2ffa363e2ef05730e61cd94e52d180a5b70ce996
236
py
Python
gobigger/utils/__init__.py
luanshaotong/GoBigger
00c347a89a660134677d633f39c39123c5ab3deb
[ "Apache-2.0" ]
189
2021-10-08T07:55:10.000Z
2022-03-31T23:49:43.000Z
gobigger/utils/__init__.py
luanshaotong/GoBigger
00c347a89a660134677d633f39c39123c5ab3deb
[ "Apache-2.0" ]
25
2021-11-01T06:59:30.000Z
2022-03-22T11:22:27.000Z
gobigger/utils/__init__.py
luanshaotong/GoBigger
00c347a89a660134677d633f39c39123c5ab3deb
[ "Apache-2.0" ]
28
2021-10-14T12:23:14.000Z
2022-03-31T23:49:45.000Z
from .structures import format_vector, add_size, save_screen_data_to_img, Border, QuadNode from .collision_detection import create_collision_detection from .config_utils import deep_merge_dicts from .tool import * from .colors import *
39.333333
90
0.851695
2ffd633c035e5b8a5c7381b18155f86b65f423e0
295
py
Python
common/common/utils/uuid.py
ravirahman/sancus
6563852b98edeb1068574e2d99e1fc18b815bee3
[ "MIT" ]
2
2022-03-17T04:50:20.000Z
2022-03-17T04:51:31.000Z
common/common/utils/uuid.py
ravirahman/sancus
6563852b98edeb1068574e2d99e1fc18b815bee3
[ "MIT" ]
null
null
null
common/common/utils/uuid.py
ravirahman/sancus
6563852b98edeb1068574e2d99e1fc18b815bee3
[ "MIT" ]
null
null
null
import uuid
19.666667
57
0.698305
2ffe22f93b98651c83789010c629f07c9626d409
475
py
Python
src/maximize_product_of_array.py
marco-zangari/code-katas
1dfda1cfbbe8687b17e97e414358b38d964df675
[ "MIT" ]
null
null
null
src/maximize_product_of_array.py
marco-zangari/code-katas
1dfda1cfbbe8687b17e97e414358b38d964df675
[ "MIT" ]
null
null
null
src/maximize_product_of_array.py
marco-zangari/code-katas
1dfda1cfbbe8687b17e97e414358b38d964df675
[ "MIT" ]
null
null
null
"""Maximize_product_of_arry(array series#2), Codewars Kata, level 7.""" def max_product(li, n): """Return maxima(not maximum) product from a list from the set number. input: list of integers output: integer, product of given integers ex: maxProduct ({4,3,5} , 2) returns return 20 since the s...
26.388889
74
0.631579
2fffeecfd74fb3b321b898239e5f0a7ba37a7a1d
52
py
Python
keras/optimizers/schedules/__init__.py
ikingye/keras
1a3ee8441933fc007be6b2beb47af67998d50737
[ "MIT" ]
5
2020-11-30T22:26:03.000Z
2020-12-01T22:34:25.000Z
keras/optimizers/schedules/__init__.py
ikingye/keras
1a3ee8441933fc007be6b2beb47af67998d50737
[ "MIT" ]
10
2020-12-01T22:55:29.000Z
2020-12-11T18:31:46.000Z
keras/optimizers/schedules/__init__.py
ikingye/keras
1a3ee8441933fc007be6b2beb47af67998d50737
[ "MIT" ]
15
2020-11-30T22:12:22.000Z
2020-12-09T01:32:48.000Z
from tensorflow.keras.optimizers.schedules import *
26
51
0.846154
64013de2423b6eda7583c7954f2421b985fdc3cf
1,874
py
Python
src/ch6-routing/start/pypi_routing/pypi/controllers/packages_controller.py
bkraft4257/data-driven-web-apps-with-pyramid-and-sqlalchemy
4943eb3d13c0df3c1b371efafb04e5ca41d97254
[ "MIT" ]
null
null
null
src/ch6-routing/start/pypi_routing/pypi/controllers/packages_controller.py
bkraft4257/data-driven-web-apps-with-pyramid-and-sqlalchemy
4943eb3d13c0df3c1b371efafb04e5ca41d97254
[ "MIT" ]
null
null
null
src/ch6-routing/start/pypi_routing/pypi/controllers/packages_controller.py
bkraft4257/data-driven-web-apps-with-pyramid-and-sqlalchemy
4943eb3d13c0df3c1b371efafb04e5ca41d97254
[ "MIT" ]
null
null
null
from pyramid.view import view_config from pyramid.request import Request import pyramid.httpexceptions as x # /project/{package_name}/ # /project/{package_name}/releases # /project/{package_name}/releases/{release_version} # /project/{package_name}/releases/{release_version}
28.830769
60
0.680363
64019954b6c9d169557d681eddbbc7a7c34584de
1,043
py
Python
key_gen.py
hamatz/efppap
5e1ea01e8436c30547db5805649cc64d16016e1a
[ "Apache-2.0" ]
1
2020-03-16T04:12:46.000Z
2020-03-16T04:12:46.000Z
key_gen.py
hamatz/efppap
5e1ea01e8436c30547db5805649cc64d16016e1a
[ "Apache-2.0" ]
null
null
null
key_gen.py
hamatz/efppap
5e1ea01e8436c30547db5805649cc64d16016e1a
[ "Apache-2.0" ]
null
null
null
import Crypto import Crypto.Random from Crypto.PublicKey import RSA from Crypto.Signature import PKCS1_v1_5 from Crypto.Hash import SHA256 import binascii import sys if __name__ == '__main__': args = sys.argv if len(args) == 2: my_pass = args[1] else: print('Param Error') print(...
24.833333
69
0.676894
64020b4bfa2cce6cea0b7b429c38432043eb9e81
115
py
Python
npypacke/regression/tests/__init__.py
phetdam/npy_openblas_demo
ff5f9932b19f82162bc0d9d46b341d42805f942b
[ "MIT" ]
1
2021-10-16T00:59:11.000Z
2021-10-16T00:59:11.000Z
npypacke/regression/tests/__init__.py
phetdam/numpy-lapacke-demo
ff5f9932b19f82162bc0d9d46b341d42805f942b
[ "MIT" ]
null
null
null
npypacke/regression/tests/__init__.py
phetdam/numpy-lapacke-demo
ff5f9932b19f82162bc0d9d46b341d42805f942b
[ "MIT" ]
null
null
null
"""Unit test subpackage for numpy-lapacke-demo.regression. .. codeauthor:: Derek Huang <djh458@stern.nyu.edu> """
28.75
59
0.730435
640609535538c486602ef8f06a0b9836a7e3f787
40
py
Python
src/arcresthelper/_abstract/__init__.py
Bmcalpine/ArcREST
c437612abcaada2ef3d393a89009f8b65ea9732b
[ "Apache-2.0" ]
null
null
null
src/arcresthelper/_abstract/__init__.py
Bmcalpine/ArcREST
c437612abcaada2ef3d393a89009f8b65ea9732b
[ "Apache-2.0" ]
null
null
null
src/arcresthelper/_abstract/__init__.py
Bmcalpine/ArcREST
c437612abcaada2ef3d393a89009f8b65ea9732b
[ "Apache-2.0" ]
null
null
null
import abstract __version__ = "2.1.100"
13.333333
23
0.75
6406120a79bb00b6afca248985fb442df2597681
206
py
Python
ch3/multiple.sequences.while.py
ldmcdaniel/learning_python
63717c397cd75e45a8aef909d4b601466cd6036a
[ "MIT" ]
30
2016-10-28T18:14:15.000Z
2021-08-29T15:20:56.000Z
ch3/multiple.sequences.while.py
ldmcdaniel/learning_python
63717c397cd75e45a8aef909d4b601466cd6036a
[ "MIT" ]
null
null
null
ch3/multiple.sequences.while.py
ldmcdaniel/learning_python
63717c397cd75e45a8aef909d4b601466cd6036a
[ "MIT" ]
31
2016-09-10T22:47:12.000Z
2022-03-13T04:50:35.000Z
people = ['Jonas', 'Julio', 'Mike', 'Mez'] ages = [25, 30, 31, 39] position = 0 while position < len(people): person = people[position] age = ages[position] print(person, age) position += 1
22.888889
42
0.601942
640a14d0405eaeebc1bec3e73813a8225fe552d4
13,215
py
Python
generate-grammars/grammar_to_ply.py
mbaak/histogrammar-python
6311f5b0eec9c75f12018f22604535c64675fdf6
[ "Apache-2.0" ]
30
2016-09-25T16:36:06.000Z
2021-07-20T09:09:09.000Z
generate-grammars/grammar_to_ply.py
mbaak/histogrammar-python
6311f5b0eec9c75f12018f22604535c64675fdf6
[ "Apache-2.0" ]
15
2016-07-26T19:41:31.000Z
2021-02-07T16:30:11.000Z
generate-grammars/grammar_to_ply.py
mbaak/histogrammar-python
6311f5b0eec9c75f12018f22604535c64675fdf6
[ "Apache-2.0" ]
8
2016-09-19T20:48:37.000Z
2021-02-07T15:00:24.000Z
#!/usr/bin/env python # Written by Andrew Dalke # Copyright (c) 2008 by Dalke Scientific, AB # Modified by Jim Pivarski, 2016 # # (This is the MIT License with the serial numbers scratched off and my # name written in in crayon. I would prefer "share and enjoy" but # apparently that isn't a legally acceptable.) # #...
29.432071
193
0.583882
640e4ff0b52e56376f75a16db48899141b55b809
169
py
Python
triad/utils/__init__.py
kvnkho/triad
371a5e84945b2203f1108598b8e67136414589a3
[ "Apache-2.0" ]
6
2020-10-04T23:01:33.000Z
2021-11-08T11:46:39.000Z
triad/utils/__init__.py
kvnkho/triad
371a5e84945b2203f1108598b8e67136414589a3
[ "Apache-2.0" ]
16
2020-09-28T21:58:08.000Z
2021-12-29T07:09:03.000Z
triad/utils/__init__.py
kvnkho/triad
371a5e84945b2203f1108598b8e67136414589a3
[ "Apache-2.0" ]
1
2020-10-10T20:36:43.000Z
2020-10-10T20:36:43.000Z
# flake8: noqa from triad.utils.assertion import assert_arg_not_none, assert_or_throw from triad.utils.hash import to_uuid from triad.utils.iter import make_empty_aware
33.8
70
0.852071
640e5f2dbc283de85c337ecaac27efdeff2ecfa4
352
py
Python
file_open.py
farhan1503001/Data-structures-with-python-Coursera
04c04fea15f96b83056d846a8cc59f94d9df66ca
[ "MIT" ]
null
null
null
file_open.py
farhan1503001/Data-structures-with-python-Coursera
04c04fea15f96b83056d846a8cc59f94d9df66ca
[ "MIT" ]
null
null
null
file_open.py
farhan1503001/Data-structures-with-python-Coursera
04c04fea15f96b83056d846a8cc59f94d9df66ca
[ "MIT" ]
null
null
null
#Opening file filename=open('words.txt') for line in filename: print(line.upper().rstrip()) filename.close() second_file=open('mbox.txt') sum=0 count=0 for line in second_file: if line.startswith("X-DSPAM-Confidence:"): sum=sum+float(line[-7:-1]) count=count+1 print("Average sp...
20.705882
47
0.644886
640fe67a8c0974d5bd49edced52848028ecff445
401
py
Python
bau_evaluations.py
cebe01/baupy
e75f877ef3749023fc7ea1c2585f7b2e1c8ec461
[ "Apache-2.0" ]
null
null
null
bau_evaluations.py
cebe01/baupy
e75f877ef3749023fc7ea1c2585f7b2e1c8ec461
[ "Apache-2.0" ]
null
null
null
bau_evaluations.py
cebe01/baupy
e75f877ef3749023fc7ea1c2585f7b2e1c8ec461
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Fri Aug 28 15:27:21 2020 @author: Cb """ import numpy as np import pandas as pd import baupy as bp # #%% path = 'C:/Users/CB.MAGMA/Documents/GitHub/baupy/kennwerte.xlsx'# r'/home/cb/Dokumente/GitHub/baupy/kennwerte_streichholzstrasse.txt' container = bp.kennwerte(...
16.04
133
0.710723
64103b78b35c825d3b872412c51c638e6905c754
425
py
Python
lang/py/pylib/code/string/string_template_missing.py
ch1huizong/learning
632267634a9fd84a5f5116de09ff1e2681a6cc85
[ "MIT" ]
1
2022-01-29T08:32:11.000Z
2022-01-29T08:32:11.000Z
lang/py/pylib/code/string/string_template_missing.py
ch1huizong/learning
632267634a9fd84a5f5116de09ff1e2681a6cc85
[ "MIT" ]
null
null
null
lang/py/pylib/code/string/string_template_missing.py
ch1huizong/learning
632267634a9fd84a5f5116de09ff1e2681a6cc85
[ "MIT" ]
1
2022-01-29T08:32:12.000Z
2022-01-29T08:32:12.000Z
#!/usr/bin/env python # encoding: utf-8 # # Copyright (c) 2008 Doug Hellmann All rights reserved. # """ """ __version__ = "$Id$" #end_pymotw_header import string values = { 'var':'foo' } t = string.Template("$var is here but $missing is not provided") try: print 'substitute() :', t.substitute(values) excep...
17.708333
64
0.661176
6412681b7d33190c888fe2ca81f843fbabb8f1f4
79
py
Python
app/me/apps.py
GiorgosXonikis/Social_Media-RestAPI
4d54c18b296ebf52773093a5bedcfabec9404438
[ "MIT" ]
null
null
null
app/me/apps.py
GiorgosXonikis/Social_Media-RestAPI
4d54c18b296ebf52773093a5bedcfabec9404438
[ "MIT" ]
null
null
null
app/me/apps.py
GiorgosXonikis/Social_Media-RestAPI
4d54c18b296ebf52773093a5bedcfabec9404438
[ "MIT" ]
null
null
null
from django.apps import AppConfig
13.166667
33
0.721519
6412c114e0148cac74c8016e5dd9e4636887e532
2,196
py
Python
authentik/root/asgi.py
BeryJu/passbook
350f0d836580f4411524614f361a76c4f27b8a2d
[ "MIT" ]
15
2020-01-05T09:09:57.000Z
2020-11-28T05:27:39.000Z
authentik/root/asgi.py
BeryJu/passbook
350f0d836580f4411524614f361a76c4f27b8a2d
[ "MIT" ]
302
2020-01-21T08:03:59.000Z
2020-12-04T05:04:57.000Z
authentik/root/asgi.py
BeryJu/passbook
350f0d836580f4411524614f361a76c4f27b8a2d
[ "MIT" ]
3
2020-03-04T08:21:59.000Z
2020-08-01T20:37:18.000Z
""" ASGI config for authentik project. It exposes the ASGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/3.0/howto/deployment/asgi/ """ import django from channels.routing import ProtocolTypeRouter, URLRouter from defusedxml import ...
30.929577
93
0.652095
6412f72910f9d2b8e997d384ba6143ae4869f3af
4,922
py
Python
pysaintcoinach/ex/variant2/__init__.py
icykoneko/saintcoinach-py
66898385e1198203a7ec9da83787427bf6fe5c83
[ "MIT" ]
7
2019-11-20T17:24:49.000Z
2022-03-29T04:17:53.000Z
pysaintcoinach/ex/variant2/__init__.py
icykoneko/saintcoinach-py
66898385e1198203a7ec9da83787427bf6fe5c83
[ "MIT" ]
7
2019-04-08T07:36:46.000Z
2022-01-17T22:51:54.000Z
pysaintcoinach/ex/variant2/__init__.py
icykoneko/saintcoinach-py
66898385e1198203a7ec9da83787427bf6fe5c83
[ "MIT" ]
3
2019-04-08T08:24:22.000Z
2021-06-27T22:19:15.000Z
from struct import unpack_from from typing import Iterable as IterableT, TypeVar, Union, Dict from ..datasheet import DataRowBase, IDataSheet, IDataRow from ..column import Column from ..relational import IRelationalDataRow from ..relational.datasheet import IRelationalDataSheet def __getitem__(self, item: str) ...
32.596026
111
0.645266
641310d10a8d7e15c9a7d898de0f6cdccc1b0fc5
9,874
py
Python
wurst/ecoinvent/electricity_markets.py
pjamesjoyce/wurst
95b37e72eaa18b33bdd83cd4a51d37d9eb4ae7ba
[ "BSD-2-Clause" ]
1
2022-03-29T14:59:13.000Z
2022-03-29T14:59:13.000Z
wurst/ecoinvent/electricity_markets.py
pjamesjoyce/wurst
95b37e72eaa18b33bdd83cd4a51d37d9eb4ae7ba
[ "BSD-2-Clause" ]
null
null
null
wurst/ecoinvent/electricity_markets.py
pjamesjoyce/wurst
95b37e72eaa18b33bdd83cd4a51d37d9eb4ae7ba
[ "BSD-2-Clause" ]
null
null
null
from .. import toolz from ..searching import get_many, equals from ..transformations import rescale_exchange from functools import partial def get_generators_in_mix(db, name="market for electricity, high voltage"): """Get names of inputs to electricity mixes""" inputs = set() for act in db: if act...
51.427083
213
0.708021
6418b3422f4c2568aa263e251a1ee434a2dfc461
634
py
Python
examples/render/render_sphere.py
jkjt/ezdxf
2acc5611b81476ea16b98063b9f55446a9182b81
[ "MIT" ]
515
2017-01-25T05:46:52.000Z
2022-03-29T09:52:27.000Z
examples/render/render_sphere.py
jkjt/ezdxf
2acc5611b81476ea16b98063b9f55446a9182b81
[ "MIT" ]
417
2017-01-25T10:01:17.000Z
2022-03-29T09:22:04.000Z
examples/render/render_sphere.py
jkjt/ezdxf
2acc5611b81476ea16b98063b9f55446a9182b81
[ "MIT" ]
149
2017-02-01T15:52:02.000Z
2022-03-17T10:33:38.000Z
# Copyright (c) 2020-2021, Manfred Moitzi # License: MIT License from pathlib import Path import ezdxf from ezdxf.render.forms import sphere DIR = Path("~/Desktop/Outbox").expanduser() doc = ezdxf.new() doc.layers.new("form", dxfattribs={"color": 5}) doc.layers.new("csg", dxfattribs={"color": 1}) doc.layers.new("no...
25.36
60
0.716088
64193ff79c04af71d979ce5a5fceac0954ce5460
12,595
py
Python
tests/test_api.py
bcyran/philipstv
6037724d5fab0b72265c2de2c0441a64f6e00c00
[ "MIT" ]
null
null
null
tests/test_api.py
bcyran/philipstv
6037724d5fab0b72265c2de2c0441a64f6e00c00
[ "MIT" ]
null
null
null
tests/test_api.py
bcyran/philipstv
6037724d5fab0b72265c2de2c0441a64f6e00c00
[ "MIT" ]
null
null
null
from typing import Any, Type import pytest from philipstv import ( PhilipsTVAPI, PhilipsTVAPIMalformedResponseError, PhilipsTVAPIUnauthorizedError, PhilipsTVError, ) from philipstv.model import ( AllChannels, AmbilightColor, AmbilightLayer, AmbilightMode, AmbilightModeValue, Am...
28.560091
98
0.553394
641a91dbdedae51a3e67ba706dca460ad4205d27
169
py
Python
metrics/admin.py
tp00012x/bobs_banana_stand
0ae167b1bb124408770924dcb3660760da2d715c
[ "MIT" ]
null
null
null
metrics/admin.py
tp00012x/bobs_banana_stand
0ae167b1bb124408770924dcb3660760da2d715c
[ "MIT" ]
6
2021-03-18T22:01:48.000Z
2022-02-10T07:19:13.000Z
metrics/admin.py
tp00012x/bobs_banana_stand
0ae167b1bb124408770924dcb3660760da2d715c
[ "MIT" ]
null
null
null
from django.contrib import admin from metrics.models import InventoryProduct admin.site.register(InventoryProduct)
15.363636
43
0.816568
641bb66e30f87d492340ad814a4e968e438c0fa6
1,277
py
Python
dags/rockflow/dags/logo.py
asdf-zxcv/airflow-dags
033511deaaf07a662b30d35fd86ae866115baa28
[ "Unlicense" ]
null
null
null
dags/rockflow/dags/logo.py
asdf-zxcv/airflow-dags
033511deaaf07a662b30d35fd86ae866115baa28
[ "Unlicense" ]
null
null
null
dags/rockflow/dags/logo.py
asdf-zxcv/airflow-dags
033511deaaf07a662b30d35fd86ae866115baa28
[ "Unlicense" ]
null
null
null
from airflow.models import DAG from rockflow.dags.const import * from rockflow.dags.symbol import MERGE_CSV_KEY from rockflow.operators.logo import * with DAG("public_logo_download", default_args=DEFAULT_DEBUG_ARGS) as public: PublicLogoBatchOperator( from_key=MERGE_CSV_KEY, key=public.dag_id, ...
30.404762
88
0.729052
641bc418f4c4dc36c2dc0b6d80a85e1d6643d581
1,651
py
Python
mvmm/single_view/opt_diagnostics.py
idc9/mvmm
64fce755a7cd53be9b08278484c7a4c77daf38d1
[ "MIT" ]
1
2021-08-17T13:22:54.000Z
2021-08-17T13:22:54.000Z
mvmm/single_view/opt_diagnostics.py
idc9/mvmm
64fce755a7cd53be9b08278484c7a4c77daf38d1
[ "MIT" ]
null
null
null
mvmm/single_view/opt_diagnostics.py
idc9/mvmm
64fce755a7cd53be9b08278484c7a4c77daf38d1
[ "MIT" ]
null
null
null
import matplotlib.pyplot as plt # from copy import deepcopy import numpy as np from mvmm.viz_utils import set_xaxis_int_ticks
27.065574
79
0.616596
641d1843e490f1c82ee27a3b382c287be94e5ece
2,537
py
Python
webdriver/smoke.py
iamdoubz/webwormhole
a38b8f42debdf19808982d0777c130ea8d6f5815
[ "BSD-3-Clause" ]
1,647
2020-04-29T05:14:38.000Z
2022-03-31T01:19:43.000Z
webdriver/smoke.py
iamdoubz/webwormhole
a38b8f42debdf19808982d0777c130ea8d6f5815
[ "BSD-3-Clause" ]
76
2020-04-29T06:15:30.000Z
2022-03-22T21:20:28.000Z
webdriver/smoke.py
saljam/cpace-machine
0dcba5cf52a943a69340fa7243bbe092cbbc207a
[ "BSD-3-Clause" ]
87
2020-04-29T21:15:26.000Z
2022-03-17T03:50:19.000Z
# a hacky smoke test that sends a file from one chrome window to another. # docker build -t ww-selenium . # docker run --rm -it -v $PWD:$PWD -w $PWD ww-selenium python3 ./smoke.py # it isn't much but it's start. # TODO: # - use go package / go test # - run the server # - eventually smoke test *all* client com...
29.16092
84
0.736303
641d5526aa245c11c77b4b77e01bc0c1c4e9e4c4
2,696
py
Python
shinyutils/matwrap.py
toddrme2178/shinyutils
c9459f93f76d0486da65a457ce1c2671c52bdc5b
[ "MIT" ]
null
null
null
shinyutils/matwrap.py
toddrme2178/shinyutils
c9459f93f76d0486da65a457ce1c2671c52bdc5b
[ "MIT" ]
null
null
null
shinyutils/matwrap.py
toddrme2178/shinyutils
c9459f93f76d0486da65a457ce1c2671c52bdc5b
[ "MIT" ]
null
null
null
"""matwrap.py: wrapper around matplotlib.""" import json import warnings from pkg_resources import resource_filename
25.923077
79
0.556751
641d97542f22ba65a623da3a27b56b49064773cb
649
py
Python
CCC/CCC '05 S1 - Snow Calls.py
Joon7891/Competitive-Programming
d860b7ad932cd5a6fb91fdc8c53101da57f4a408
[ "MIT" ]
2
2021-04-13T00:19:56.000Z
2021-04-13T01:19:45.000Z
CCC/CCC '05 S1 - Snow Calls.py
Joon7891/Competitive-Programming
d860b7ad932cd5a6fb91fdc8c53101da57f4a408
[ "MIT" ]
null
null
null
CCC/CCC '05 S1 - Snow Calls.py
Joon7891/Competitive-Programming
d860b7ad932cd5a6fb91fdc8c53101da57f4a408
[ "MIT" ]
1
2020-08-26T12:36:08.000Z
2020-08-26T12:36:08.000Z
keys_map = { 'A':'2', 'B':'2', 'C':'2', 'D':'3', 'E':'3', 'F':'3', 'G':'4', 'H':'4', 'I':'4', 'J':'5', 'K':'5', 'L':'5', 'M':'6', 'N':'6', 'O':'6', 'P':'7', 'Q':'7', 'R':'7', 'S':'7', 'T':'8', 'U':'8', 'V':'8', 'W':'9', 'X':'9', 'Y':'9', 'Z':'9', } n = int(input()) f...
15.452381
58
0.391371
641dd088351667ee7ce3a62e35c4c5f3b6771754
3,078
py
Python
autotest/get_exes.py
MODFLOW-USGS/modflow6
6cc0f91b93e0615b68c9239c32cd5bff7f0696b9
[ "CC0-1.0" ]
102
2017-12-19T09:56:38.000Z
2022-03-30T01:47:28.000Z
autotest/get_exes.py
MODFLOW-USGS/modflow6
6cc0f91b93e0615b68c9239c32cd5bff7f0696b9
[ "CC0-1.0" ]
331
2018-01-10T21:22:48.000Z
2022-03-29T05:57:00.000Z
autotest/get_exes.py
MODFLOW-USGS/modflow6
6cc0f91b93e0615b68c9239c32cd5bff7f0696b9
[ "CC0-1.0" ]
87
2017-12-13T21:40:39.000Z
2022-03-30T05:31:40.000Z
# Get executables import os import shutil import pymake from framework import running_on_CI if running_on_CI(): print("running on CI environment") os.environ["PYMAKE_DOUBLE"] = "1" # paths to executables for previous versions of MODFLOW ebindir = os.path.abspath( os.path.join(os.path.expanduser("~"), "....
25.65
75
0.653996
641f10073e3e2ac1d958d64840101d11760b2f66
236
py
Python
spopt/__init__.py
fiendskrah/spopt
b0f4b682f9246670241c415c4023fcb3e596c372
[ "BSD-3-Clause" ]
null
null
null
spopt/__init__.py
fiendskrah/spopt
b0f4b682f9246670241c415c4023fcb3e596c372
[ "BSD-3-Clause" ]
null
null
null
spopt/__init__.py
fiendskrah/spopt
b0f4b682f9246670241c415c4023fcb3e596c372
[ "BSD-3-Clause" ]
null
null
null
__version__ = "0.1.0" from .region import MaxPHeuristic from .region import RegionKMeansHeuristic from .region import Skater from .region import WardSpatial from .region import Spenc from .region import w_to_g from .region import AZP
21.454545
41
0.809322
641ffda3aaa9896187418b645908b4cbd191a8de
949
py
Python
workflow/Strategy.py
YOCKOW/PythonGitHubActionsWorkflowRepresentation
1e8cb9fd4ade42b01f0c521f659c16b12d7957de
[ "MIT" ]
null
null
null
workflow/Strategy.py
YOCKOW/PythonGitHubActionsWorkflowRepresentation
1e8cb9fd4ade42b01f0c521f659c16b12d7957de
[ "MIT" ]
null
null
null
workflow/Strategy.py
YOCKOW/PythonGitHubActionsWorkflowRepresentation
1e8cb9fd4ade42b01f0c521f659c16b12d7957de
[ "MIT" ]
null
null
null
from .Node import Node from .BooleanNode import BooleanNode from .MappingNode import MappingNode from .Matrix import Matrix from .NumberNode import IntegerNode from typing import Any, Dict, List
27.911765
69
0.646997
642147f2d7a649b4cd903efa6b1d905ea393c7ca
4,216
py
Python
dbcron/validators.py
cloudspectatordevelopment/django-dbcron
53182ca803d1f5d8fd022a1cae79e0c0256bd25f
[ "BSD-3-Clause" ]
null
null
null
dbcron/validators.py
cloudspectatordevelopment/django-dbcron
53182ca803d1f5d8fd022a1cae79e0c0256bd25f
[ "BSD-3-Clause" ]
null
null
null
dbcron/validators.py
cloudspectatordevelopment/django-dbcron
53182ca803d1f5d8fd022a1cae79e0c0256bd25f
[ "BSD-3-Clause" ]
null
null
null
from django.core import validators from django.utils.translation import ugettext_lazy as _ from django.utils.deconstruct import deconstructible MONTH_MAP = { 'JAN': 1, 'FEB': 2, 'MAR': 3, 'APR': 4, 'MAY': 5, 'JUN': 6, 'JUL': 7, 'AUG': 8, 'SEP': 9, 'OCT': 10, 'NOV': 11, '...
27.376623
78
0.548387
6421978a16090177ad88ec238394d851bbfb27bc
1,103
py
Python
micromagneticmodel/tests/test_rkky.py
ubermag/micromagneticmodel
91ad92d26cdbec369a5a41f7b90a17ca5328cd07
[ "BSD-3-Clause" ]
5
2019-10-21T01:12:16.000Z
2021-09-24T03:52:30.000Z
micromagneticmodel/tests/test_rkky.py
ubermag/micromagneticmodel
91ad92d26cdbec369a5a41f7b90a17ca5328cd07
[ "BSD-3-Clause" ]
11
2019-08-12T22:38:17.000Z
2022-03-15T00:08:47.000Z
micromagneticmodel/tests/test_rkky.py
ubermag/micromagneticmodel
91ad92d26cdbec369a5a41f7b90a17ca5328cd07
[ "BSD-3-Clause" ]
4
2020-06-27T15:36:28.000Z
2021-12-06T15:08:04.000Z
import re import pytest import numpy as np import discretisedfield as df import micromagneticmodel as mm from .checks import check_term
32.441176
66
0.533998
6421c29517fd50762f06843cef09f1ed5fb8d24e
1,048
py
Python
tests/test_commands_status.py
ar90n/kkt
e772860b20231e067973478350a4f0edb8bf5db1
[ "Apache-2.0" ]
1
2020-09-03T08:19:46.000Z
2020-09-03T08:19:46.000Z
tests/test_commands_status.py
ar90n/kkt
e772860b20231e067973478350a4f0edb8bf5db1
[ "Apache-2.0" ]
null
null
null
tests/test_commands_status.py
ar90n/kkt
e772860b20231e067973478350a4f0edb8bf5db1
[ "Apache-2.0" ]
null
null
null
import pytest import kkt from kkt.exception import MetaDataNotFound from kkt.commands.status import status, status_impl
28.324324
80
0.607824
6425b466b0e6cf309b673b3dfca0d05f9849d1d2
3,813
py
Python
src/controllers/Database.py
UCHIC/ODMStreamingDataLoader
711886167a068754efff6dfbd604e3e19e545253
[ "BSD-3-Clause" ]
null
null
null
src/controllers/Database.py
UCHIC/ODMStreamingDataLoader
711886167a068754efff6dfbd604e3e19e545253
[ "BSD-3-Clause" ]
null
null
null
src/controllers/Database.py
UCHIC/ODMStreamingDataLoader
711886167a068754efff6dfbd604e3e19e545253
[ "BSD-3-Clause" ]
null
null
null
__author__ = 'Denver' import sys import logging from datetime import datetime # sys.path.append('/home/denver/Documents/ODM2PythonAPI') from odm2api.ODMconnection import dbconnection from odm2api.ODM2.services import * logger = logging.getLogger('SDL_logger')
31.512397
181
0.606609
6425be78a648f6351f256ea328387bb3f4129437
1,460
py
Python
examples/example_ros_anymal.py
TLasguignes/signal_scope
ad2690df9c7a5f1502c5e7807568b7f4050fcc10
[ "BSD-3-Clause" ]
2
2021-04-03T15:49:13.000Z
2021-06-01T08:07:11.000Z
examples/example_ros_anymal.py
TLasguignes/signal_scope
ad2690df9c7a5f1502c5e7807568b7f4050fcc10
[ "BSD-3-Clause" ]
1
2021-03-18T14:41:09.000Z
2021-03-18T21:10:05.000Z
examples/example_ros_anymal.py
TLasguignes/signal_scope
ad2690df9c7a5f1502c5e7807568b7f4050fcc10
[ "BSD-3-Clause" ]
1
2020-12-09T10:20:17.000Z
2020-12-09T10:20:17.000Z
''' A working example for signals from Anymal Plots x,y,z in position and the yaw angle ''' import numpy import sys sys.argv = ['test'] import tf def getYawDegrees(msg): '''yaw degrees''' quaternion = ( msg.pose.pose.orientation.x, msg.pose.pose.orientation.y, msg.pose.pose.orienta...
29.2
88
0.729452
642625ac3b2c3acf82bc4a6e8e24c9530afa8666
1,366
py
Python
src/face_detect.py
train255/Silent-Face-Anti-Spoofing
e2137cde55ba4c7b43c2a7d6340d827a106b7404
[ "Apache-2.0" ]
null
null
null
src/face_detect.py
train255/Silent-Face-Anti-Spoofing
e2137cde55ba4c7b43c2a7d6340d827a106b7404
[ "Apache-2.0" ]
null
null
null
src/face_detect.py
train255/Silent-Face-Anti-Spoofing
e2137cde55ba4c7b43c2a7d6340d827a106b7404
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # @Time : 20-6-9 10:20 # @Author : zhuying # @Company : Minivision # @File : anti_spoof_predict.py # @Software : PyCharm import cv2 import math import numpy as np
40.176471
98
0.607613
6426a7aa1144603b703bbace9e0249804b2e5c54
1,160
py
Python
lab2/myutils/lab2_task1/checker.py
kinpa200296/python_labs
bb26c426cbe9bb27f45b8ee4c974c38db300468f
[ "MIT" ]
null
null
null
lab2/myutils/lab2_task1/checker.py
kinpa200296/python_labs
bb26c426cbe9bb27f45b8ee4c974c38db300468f
[ "MIT" ]
null
null
null
lab2/myutils/lab2_task1/checker.py
kinpa200296/python_labs
bb26c426cbe9bb27f45b8ee4c974c38db300468f
[ "MIT" ]
null
null
null
#!/usr/bin/env python import argparse __author__ = 'kinpa200296' if __name__ == '__main__': execute_from_command_line()
24.166667
86
0.534483
642774b4963705c8dd1baff49ac53f72d342febc
21,645
py
Python
ipvs.py
akamac/gnlpy
61abb4b6fda0b7c5e1e7810b3786b75d77cbaff8
[ "BSD-3-Clause" ]
176
2015-05-20T20:11:27.000Z
2020-08-24T11:39:49.000Z
ipvs.py
akamac/gnlpy
61abb4b6fda0b7c5e1e7810b3786b75d77cbaff8
[ "BSD-3-Clause" ]
22
2015-10-10T06:48:28.000Z
2020-07-24T13:12:05.000Z
ipvs.py
akamac/gnlpy
61abb4b6fda0b7c5e1e7810b3786b75d77cbaff8
[ "BSD-3-Clause" ]
46
2015-05-20T22:22:31.000Z
2020-07-24T17:29:31.000Z
# Copyright (c) 2015-present, Facebook, Inc. # All rights reserved. # # This source code is licensed under the BSD-style license found in the # LICENSE file in the root directory of this source tree. An additional grant # of patent rights can be found in the PATENTS file in the same directory. """IPVS module This mod...
32.30597
79
0.55611
6427832947b865e474dcc63aff27da24ea97cbf2
810
py
Python
pynetdicom3/__init__.py
rdebroiz/pynetdicom3
0baea8310b9d3fd0a67df0c2e90f2607463f73c7
[ "MIT" ]
null
null
null
pynetdicom3/__init__.py
rdebroiz/pynetdicom3
0baea8310b9d3fd0a67df0c2e90f2607463f73c7
[ "MIT" ]
null
null
null
pynetdicom3/__init__.py
rdebroiz/pynetdicom3
0baea8310b9d3fd0a67df0c2e90f2607463f73c7
[ "MIT" ]
null
null
null
""" Set module shortcuts and globals """ version = ['0', '9', '1'] __version__ = '.'.join(version) pynetdicom_version = 'PYNETDICOM3_' + ''.join(version) # UID prefix provided by https://www.medicalconnections.co.uk/Free_UID pynetdicom_uid_prefix = '1.2.826.0.1.3680043.9.3811.' + '.'.join(version) import logging fro...
38.571429
76
0.818519
642d621c0f5b8d6ce8cc22ca5eadd03e790a2df1
1,814
py
Python
src/architectures/gqn.py
ae-foster/cresp
0215842370d3d665133a496d6d971a537400c674
[ "MIT" ]
5
2021-11-15T22:49:47.000Z
2022-02-05T01:39:54.000Z
src/architectures/gqn.py
ae-foster/cresp
0215842370d3d665133a496d6d971a537400c674
[ "MIT" ]
null
null
null
src/architectures/gqn.py
ae-foster/cresp
0215842370d3d665133a496d6d971a537400c674
[ "MIT" ]
null
null
null
import torch from torch import nn from torch.nn import functional as F
36.28
92
0.597574