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
9579e725a92b212adbfbee1f939f56455d5e30da
22
py
Python
nextfeed/settings/__init__.py
Nurdok/nextfeed
197818310bbf7134badc2ef5ed11ab5ede7fdb35
[ "MIT" ]
1
2015-08-09T10:42:04.000Z
2015-08-09T10:42:04.000Z
nextfeed/settings/__init__.py
Nurdok/nextfeed
197818310bbf7134badc2ef5ed11ab5ede7fdb35
[ "MIT" ]
null
null
null
nextfeed/settings/__init__.py
Nurdok/nextfeed
197818310bbf7134badc2ef5ed11ab5ede7fdb35
[ "MIT" ]
null
null
null
__author__ = 'Rachum'
11
21
0.727273
957ac7e6d29caaecedbbbd4e6c92497096862e51
10,072
py
Python
croisee/croisee/models.py
fiee/croisee
922a163b627855468aac84e0c56ea51082424732
[ "BSD-3-Clause" ]
6
2017-09-06T02:03:36.000Z
2021-07-11T15:06:29.000Z
croisee/croisee/models.py
fiee/croisee
922a163b627855468aac84e0c56ea51082424732
[ "BSD-3-Clause" ]
null
null
null
croisee/croisee/models.py
fiee/croisee
922a163b627855468aac84e0c56ea51082424732
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- from __future__ import unicode_literals from __future__ import absolute_import import unicodedata import re, os import logging from django.utils.translation import ugettext_lazy as _ from django.db import models from django.template.loader import render_to_string from djang...
43.601732
196
0.642276
957b9b53b7b5837fb4e6e2e80f7b80d9f1347ef1
5,372
py
Python
tests/views/userprofile/forms_test.py
BMeu/Aerarium
119946cead727ef68b5ecea339990d982c006391
[ "MIT" ]
null
null
null
tests/views/userprofile/forms_test.py
BMeu/Aerarium
119946cead727ef68b5ecea339990d982c006391
[ "MIT" ]
139
2018-12-26T07:54:31.000Z
2021-06-01T23:14:45.000Z
tests/views/userprofile/forms_test.py
BMeu/Aerarium
119946cead727ef68b5ecea339990d982c006391
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from unittest import TestCase from flask_login import login_user from flask_wtf import FlaskForm from wtforms import StringField from wtforms import ValidationError from app import create_app from app import db from app.configuration import TestConfiguration from app.localization import get_l...
27.690722
92
0.625838
957d235d1750094b4270c5454f14c28d2e8173f1
769
py
Python
Post/migrations/0002_auto_20201110_0901.py
singh-sushil/minorproject
02fe8c1dce41109447d5f394bb37e10cb34d9316
[ "MIT" ]
2
2020-12-27T11:28:02.000Z
2021-01-04T07:52:38.000Z
Post/migrations/0002_auto_20201110_0901.py
singh-sushil/minorproject
02fe8c1dce41109447d5f394bb37e10cb34d9316
[ "MIT" ]
1
2020-12-26T13:36:12.000Z
2020-12-26T13:36:12.000Z
Post/migrations/0002_auto_20201110_0901.py
singh-sushil/minorproject
02fe8c1dce41109447d5f394bb37e10cb34d9316
[ "MIT" ]
null
null
null
# Generated by Django 3.1.1 on 2020-11-10 03:16 import django.core.validators from django.db import migrations, models
30.76
224
0.594278
957e510be8f3a2b81dab14d254545719454d7bb3
2,714
py
Python
About.py
pm-str/CountDown-More
90eed19b3d5e417d474f1d79e07c6740f5a9a53d
[ "MIT" ]
null
null
null
About.py
pm-str/CountDown-More
90eed19b3d5e417d474f1d79e07c6740f5a9a53d
[ "MIT" ]
null
null
null
About.py
pm-str/CountDown-More
90eed19b3d5e417d474f1d79e07c6740f5a9a53d
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'About.ui' # # Created by: PyQt5 UI code generator 5.11.3 # # WARNING! All changes made in this file will be lost! from PyQt5 import QtCore, QtGui, QtWidgets
49.345455
140
0.70339
957eae3da3f74babe3abba60f328832ad8f0ef04
948
py
Python
userprofile/migrations/0001_initial.py
jmickela/stalkexchange
2182fcdfb716dbe3c227c83ac52c567331cc9e73
[ "Apache-2.0" ]
null
null
null
userprofile/migrations/0001_initial.py
jmickela/stalkexchange
2182fcdfb716dbe3c227c83ac52c567331cc9e73
[ "Apache-2.0" ]
10
2020-06-05T17:05:48.000Z
2022-03-11T23:13:08.000Z
userprofile/migrations/0001_initial.py
jmickela/stalkexchange
2182fcdfb716dbe3c227c83ac52c567331cc9e73
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import migrations, models from django.conf import settings
36.461538
157
0.635021
957f17448a40b5f7a9697897e18e53b84546771d
1,244
py
Python
DML.py
WellingtonFSouza1/SGI
89746bc1d9745931fd9b451e575b92c8197fcc65
[ "Apache-2.0" ]
null
null
null
DML.py
WellingtonFSouza1/SGI
89746bc1d9745931fd9b451e575b92c8197fcc65
[ "Apache-2.0" ]
null
null
null
DML.py
WellingtonFSouza1/SGI
89746bc1d9745931fd9b451e575b92c8197fcc65
[ "Apache-2.0" ]
null
null
null
import pymysql conexao = pymysql.connect( host='localhost', user='root', password='admin1234', db='ex_01') cursor = conexao.cursor(pymysql.cursors.DictCursor)
18.848485
90
0.568328
9581ac185297ca50496beb710a3edddd006be6af
6,792
py
Python
misc_scripts/downsample.py
rajesh-ibm-power/MITObim
5d617054975a0e30e0f6c6fb88d21862eaae238f
[ "MIT" ]
81
2015-01-21T21:48:20.000Z
2022-03-22T12:43:50.000Z
misc_scripts/downsample.py
rajesh-ibm-power/MITObim
5d617054975a0e30e0f6c6fb88d21862eaae238f
[ "MIT" ]
47
2015-02-16T22:53:00.000Z
2021-12-16T20:38:17.000Z
misc_scripts/downsample.py
rajesh-ibm-power/MITObim
5d617054975a0e30e0f6c6fb88d21862eaae238f
[ "MIT" ]
37
2015-01-29T07:34:32.000Z
2022-03-17T07:20:00.000Z
#!/usr/bin/python """downsample Author: Christoph Hahn (christoph.hahn@uni-graz.at) February 2017 Extract a random subsample of ~ x % reads from fastq data. The choice is based on a random number generator. For each fastq read, a random number between 1-100 will be generated. If the random number is smaller than t...
36.12766
383
0.6197
9581c71bce4ce0b38517044c9d5a2c496d783a78
585
py
Python
find_nb.py
DemetriusStorm/100daysofcode
ce87a596b565c5740ae3c48adac91cba779b3833
[ "MIT" ]
null
null
null
find_nb.py
DemetriusStorm/100daysofcode
ce87a596b565c5740ae3c48adac91cba779b3833
[ "MIT" ]
null
null
null
find_nb.py
DemetriusStorm/100daysofcode
ce87a596b565c5740ae3c48adac91cba779b3833
[ "MIT" ]
null
null
null
""" Your task is to construct a building which will be a pile of n cubes. The cube at the bottom will have a volume of n^3, the cube above will have volume of (n-1)^3 and so on until the top which will have a volume of 1^3. You are given the total volume m of the building. Being given m can you find the number n of cub...
45
119
0.711111
9582a4c6372ffccedd8c93f53707273fd3fe596d
4,597
py
Python
src/__main__.py
BennyWestsyde/FakeNewsDetection
8b171f2c93d0849e13c9ea6d94b784caf037a3bb
[ "BSD-3-Clause" ]
null
null
null
src/__main__.py
BennyWestsyde/FakeNewsDetection
8b171f2c93d0849e13c9ea6d94b784caf037a3bb
[ "BSD-3-Clause" ]
16
2021-04-29T14:22:46.000Z
2021-05-21T04:02:02.000Z
src/__main__.py
BennyWestsyde/FakeNewsDetection
8b171f2c93d0849e13c9ea6d94b784caf037a3bb
[ "BSD-3-Clause" ]
2
2021-04-09T16:39:45.000Z
2021-05-02T19:39:32.000Z
"""Class to handle iterating through tweets in real time.""" import json import os import pandas as pd # Said this was unused. # from bluebird import BlueBird from bluebird.scraper import BlueBird from sentiment import PoliticalClassification from train import TrainingML col_names32 = "created_at,id,id_str,full_tex...
32.146853
450
0.591255
9583bb525f9a10680502ac52b441c849a250aefe
2,107
py
Python
cdk-cross-stack-references/app.py
MauriceBrg/aws-blog.de-projects
ce0e86ccdd845c68c41d9190239926756e09c998
[ "MIT" ]
36
2019-10-01T12:19:49.000Z
2021-09-11T00:55:43.000Z
cdk-cross-stack-references/app.py
MauriceBrg/aws-blog.de-projects
ce0e86ccdd845c68c41d9190239926756e09c998
[ "MIT" ]
2
2021-06-02T00:19:43.000Z
2021-06-02T00:51:48.000Z
cdk-cross-stack-references/app.py
MauriceBrg/aws-blog.de-projects
ce0e86ccdd845c68c41d9190239926756e09c998
[ "MIT" ]
29
2019-07-23T04:05:15.000Z
2021-08-12T14:36:57.000Z
#!/usr/bin/env python3 import aws_cdk.aws_iam as iam import aws_cdk.aws_s3 as s3 from aws_cdk import core app = core.App() export = ExportingStack(app, "export") ImportingStack( app, "import", role_a=export.exported_role_a, role_b=export.exported_role_b ) app.synth()
25.385542
106
0.570954
9583cbd4d2fe5cf7c96a5c027ce0ed71ff87cf28
6,344
py
Python
test_trustpaylib.py
beezz/trustpaylib
a56d12d6ff97ad02034d85940ec09abbfe9eba76
[ "BSD-3-Clause" ]
null
null
null
test_trustpaylib.py
beezz/trustpaylib
a56d12d6ff97ad02034d85940ec09abbfe9eba76
[ "BSD-3-Clause" ]
null
null
null
test_trustpaylib.py
beezz/trustpaylib
a56d12d6ff97ad02034d85940ec09abbfe9eba76
[ "BSD-3-Clause" ]
1
2016-05-27T07:12:47.000Z
2016-05-27T07:12:47.000Z
# -*- coding: utf-8 -*- # vim:fenc=utf-8 import pytest import trustpaylib try: unicode py3 = False except NameError: py3 = True unicode = lambda s: s
29.784038
75
0.576135
9584860203f1962d57d77ed27e2fa1c1d418bbe7
606
py
Python
Day 01/AdventOfCode01.py
KelvinFurtado/Advent-of-Code-2020
7aab4d542507222ef6aaef699d16cc1e2936e1d5
[ "MIT" ]
null
null
null
Day 01/AdventOfCode01.py
KelvinFurtado/Advent-of-Code-2020
7aab4d542507222ef6aaef699d16cc1e2936e1d5
[ "MIT" ]
null
null
null
Day 01/AdventOfCode01.py
KelvinFurtado/Advent-of-Code-2020
7aab4d542507222ef6aaef699d16cc1e2936e1d5
[ "MIT" ]
null
null
null
inputfile = open('inputDay01.txt', 'r') values = [int(i) for i in inputfile.readlines()] #PART1 #PART2 print("Part1:",aoc01(values,2020)) print("Part2:",aoc02(values,2020)) inputfile.close()
25.25
48
0.531353
9584cb7682c9b757f9f395cf4af9a536e43da394
1,686
py
Python
src/backend/api/views/auth_views.py
zackramjan/motuz
892252eb50acbd8135bf9df9872df5e4cfe6277b
[ "MIT" ]
84
2019-05-10T14:56:48.000Z
2022-03-19T17:07:24.000Z
src/backend/api/views/auth_views.py
zackramjan/motuz
892252eb50acbd8135bf9df9872df5e4cfe6277b
[ "MIT" ]
226
2019-05-28T21:59:22.000Z
2022-03-09T10:58:24.000Z
src/backend/api/views/auth_views.py
zackramjan/motuz
892252eb50acbd8135bf9df9872df5e4cfe6277b
[ "MIT" ]
16
2019-09-27T01:35:49.000Z
2022-03-08T16:18:50.000Z
import logging from flask import request from flask_restplus import Resource, Namespace, fields from ..managers import auth_manager from ..managers.auth_manager import token_required from ..exceptions import HTTP_EXCEPTION api = Namespace('auth', description='Authentication related operations') dto = api.model('au...
29.068966
81
0.641163
95850f5ad82092788d3a213273d93bc24cd594e7
4,079
py
Python
src/api/algorithm/abstract.py
moevm/nosql1h19-text-graph
410f156ad4f232f8aa060d43692ab020610ddfd4
[ "MIT" ]
null
null
null
src/api/algorithm/abstract.py
moevm/nosql1h19-text-graph
410f156ad4f232f8aa060d43692ab020610ddfd4
[ "MIT" ]
null
null
null
src/api/algorithm/abstract.py
moevm/nosql1h19-text-graph
410f156ad4f232f8aa060d43692ab020610ddfd4
[ "MIT" ]
null
null
null
from abc import ABC, abstractmethod, abstractproperty from typing import Dict __all__ = ["AbstractAlgorithm"] def analyze_comparison(self, res1: Dict, res2: Dict, comp_res: Dict, acc): """ . . :param res1: AbstractAlgorithm.preprocess :type re...
31.620155
79
0.61314
95851ced698edaf85c4890ce3e5ba9ddb348e00d
304
py
Python
buidl/libsec_build.py
jamesob/buidl-python
84ef0284c2bff8bb09cb804c6a02f99e78e59dbe
[ "MIT" ]
45
2020-10-23T13:03:41.000Z
2022-03-27T17:32:43.000Z
buidl/libsec_build.py
jamesob/buidl-python
84ef0284c2bff8bb09cb804c6a02f99e78e59dbe
[ "MIT" ]
87
2020-10-23T19:59:36.000Z
2022-03-03T18:05:58.000Z
buidl/libsec_build.py
jamesob/buidl-python
84ef0284c2bff8bb09cb804c6a02f99e78e59dbe
[ "MIT" ]
8
2020-11-26T14:29:32.000Z
2022-03-01T23:00:44.000Z
#!/usr/bin/python3 from cffi import FFI source = open("libsec.h", "r").read() header = """ #include <secp256k1.h> #include <secp256k1_extrakeys.h> #include <secp256k1_schnorrsig.h> """ ffi = FFI() ffi.cdef(source) ffi.set_source("_libsec", header, libraries=["secp256k1"]) ffi.compile(verbose=True)
16.888889
58
0.703947
9587650c0783fa597913cbb4c287026be8eb0512
938
py
Python
src/crud-redmine/client/kafka_client.py
LeoNog96/IntegradorRedmine
bb5477caa9088665b3d18e26530609ba831517d9
[ "MIT" ]
null
null
null
src/crud-redmine/client/kafka_client.py
LeoNog96/IntegradorRedmine
bb5477caa9088665b3d18e26530609ba831517d9
[ "MIT" ]
null
null
null
src/crud-redmine/client/kafka_client.py
LeoNog96/IntegradorRedmine
bb5477caa9088665b3d18e26530609ba831517d9
[ "MIT" ]
null
null
null
from kafka import KafkaConsumer, KafkaProducer import json
24.684211
88
0.60661
958794f84d8fee2575a58b5c2e83f3a77dc04ee4
2,038
py
Python
remove_empty_csv's.py
asadrazaa1/emails-extraction
bb2b7b9f4caa9f62a81e6d9588c1c652d074dfde
[ "Unlicense" ]
null
null
null
remove_empty_csv's.py
asadrazaa1/emails-extraction
bb2b7b9f4caa9f62a81e6d9588c1c652d074dfde
[ "Unlicense" ]
null
null
null
remove_empty_csv's.py
asadrazaa1/emails-extraction
bb2b7b9f4caa9f62a81e6d9588c1c652d074dfde
[ "Unlicense" ]
null
null
null
import psycopg2 import sys from nltk.tokenize import sent_tokenize import re import csv import os # pmid {16300001 - 16400000} try: # starting_pmid = 16300001 # intermediate_pmid = 16400000 starting_pmid = 100001 intermediate_pmid = 200000 ending_pmid = 32078260 while 1: if interme...
33.966667
112
0.552993
9587f1170fd14bbc3fde52488cf4748e36a462f2
439
py
Python
src/core.py
unior-nlp-research-group/Ghigliottina
d78cf54cb7412301dd35ef3f3d6419a0350fe3af
[ "Apache-2.0" ]
2
2021-01-21T11:20:57.000Z
2021-01-21T17:51:07.000Z
src/core.py
unior-nlp-research-group/Ghigliottina
d78cf54cb7412301dd35ef3f3d6419a0350fe3af
[ "Apache-2.0" ]
null
null
null
src/core.py
unior-nlp-research-group/Ghigliottina
d78cf54cb7412301dd35ef3f3d6419a0350fe3af
[ "Apache-2.0" ]
null
null
null
#! /usr/bin/env python3 # -*- coding: utf-8 -*- import utility ################### ## main ################### if __name__=='__main__': import argparse parser = argparse.ArgumentParser() parser.add_argument("-m", "--model", help="the path to the model file") args = parser.parse_args() p...
23.105263
79
0.603645
958823c46f3203892c3a9a7227ee987c3b6cf53a
3,412
py
Python
volcengine_ml_platform/datasets/image_dataset.py
volc-mlplatform/ml-platform-sdk-python
2d85e23c10a1f3c008da0f1a8ea59c277c750233
[ "MIT" ]
11
2021-09-08T09:20:54.000Z
2022-02-18T06:45:47.000Z
volcengine_ml_platform/datasets/image_dataset.py
volc-mlplatform/ml-platform-sdk-python
2d85e23c10a1f3c008da0f1a8ea59c277c750233
[ "MIT" ]
1
2021-09-24T03:21:07.000Z
2021-09-24T06:32:26.000Z
volcengine_ml_platform/datasets/image_dataset.py
volc-mlplatform/ml-platform-sdk-python
2d85e23c10a1f3c008da0f1a8ea59c277c750233
[ "MIT" ]
4
2021-09-23T07:54:06.000Z
2021-11-27T09:40:55.000Z
import json from collections.abc import Callable from typing import Optional import numpy as np from PIL import Image from volcengine_ml_platform.datasets.dataset import _Dataset from volcengine_ml_platform.io.tos_dataset import TorchTOSDataset
32.188679
84
0.586166
95887e566eb9b0860bede603c8c4d3bf2e059af1
5,634
py
Python
main.py
TrueMLGPro/MultiDownloader
8ef6cdccbe253fe79cf3cec9ed83fd40c3f834bc
[ "Apache-2.0" ]
3
2021-02-05T09:33:39.000Z
2021-07-25T18:39:43.000Z
main.py
TrueMLGPro/MultiDownloader
8ef6cdccbe253fe79cf3cec9ed83fd40c3f834bc
[ "Apache-2.0" ]
null
null
null
main.py
TrueMLGPro/MultiDownloader
8ef6cdccbe253fe79cf3cec9ed83fd40c3f834bc
[ "Apache-2.0" ]
1
2022-02-28T21:41:12.000Z
2022-02-28T21:41:12.000Z
# Copyright 2020 TrueMLGPro # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agreed to in writing, soft...
39.398601
149
0.671814
958a38d4edf87c352270fdf92a3b1727c3d068e0
1,129
py
Python
forge/kubernetes.py
Acidburn0zzz/forge
c53d99f49abe61a2657a1a41232211bb48ee182d
[ "Apache-2.0" ]
1
2017-11-15T15:04:44.000Z
2017-11-15T15:04:44.000Z
forge/kubernetes.py
Acidburn0zzz/forge
c53d99f49abe61a2657a1a41232211bb48ee182d
[ "Apache-2.0" ]
2
2021-03-20T05:32:38.000Z
2021-03-26T00:39:11.000Z
forge/kubernetes.py
Acidburn0zzz/forge
c53d99f49abe61a2657a1a41232211bb48ee182d
[ "Apache-2.0" ]
null
null
null
import os, glob from tasks import task, TaskError, get, sh, SHResult
29.710526
75
0.558902
958ba96c16c5793bb5abfd2bf23b7c56685312b0
615
py
Python
src/models.py
mchuck/tiny-ssg
52998288daea9fe592b8e6ce769eca782db591cd
[ "MIT" ]
null
null
null
src/models.py
mchuck/tiny-ssg
52998288daea9fe592b8e6ce769eca782db591cd
[ "MIT" ]
null
null
null
src/models.py
mchuck/tiny-ssg
52998288daea9fe592b8e6ce769eca782db591cd
[ "MIT" ]
null
null
null
from dataclasses import dataclass from typing import List, Dict, Any
16.184211
45
0.689431
958c59599470ad36c300e0c6dec5381bb27923b6
1,952
py
Python
demucs/ema.py
sparshpriyadarshi/demucs
7c7f65401db654d750df2b6f4d5b82a0101500b1
[ "MIT" ]
1
2022-02-14T05:52:53.000Z
2022-02-14T05:52:53.000Z
demucs/ema.py
sparshpriyadarshi/demucs
7c7f65401db654d750df2b6f4d5b82a0101500b1
[ "MIT" ]
null
null
null
demucs/ema.py
sparshpriyadarshi/demucs
7c7f65401db654d750df2b6f4d5b82a0101500b1
[ "MIT" ]
null
null
null
# Copyright (c) Facebook, Inc. and its affiliates. # All rights reserved. # # This source code is licensed under the license found in the # LICENSE file in the root directory of this source tree. # Inspired from https://github.com/rwightman/pytorch-image-models from contextlib import contextmanager import torch from...
29.134328
73
0.585553
958d20eb83026863f5c7fe7f0d9e55731a14596b
250
py
Python
tests/test_all.py
dpineo/gadann
ff5dce9a8fc6192ba1efd854672f593872116beb
[ "MIT" ]
null
null
null
tests/test_all.py
dpineo/gadann
ff5dce9a8fc6192ba1efd854672f593872116beb
[ "MIT" ]
null
null
null
tests/test_all.py
dpineo/gadann
ff5dce9a8fc6192ba1efd854672f593872116beb
[ "MIT" ]
null
null
null
import os import fnmatch import deep_learning tests = [file for file in os.listdir(os.getcwd()) if fnmatch.fnmatch(file, 'test_*.py')] tests.remove('test_all.py') for test in tests: print '---------- '+test+' ----------' execfile(test)
22.727273
89
0.632
958e7f740b7a101b6adbafb3854a0ff8c7e6558c
12,328
py
Python
gws.py
intelligence-csd-auth-gr/greek-words-evolution
ab1ee717f7567ffa8171e64f835932af7502955d
[ "MIT" ]
9
2020-07-12T13:45:24.000Z
2021-12-05T16:08:58.000Z
word_embeddings/we.py
emiltj/NLP_exam_2021
9342e8dc9ad684927bbfa5eb6c125dd53c14cccb
[ "MIT" ]
2
2021-03-30T14:35:26.000Z
2022-03-12T00:40:17.000Z
word_embeddings/we.py
emiltj/NLP_exam_2021
9342e8dc9ad684927bbfa5eb6c125dd53c14cccb
[ "MIT" ]
2
2021-04-23T13:07:55.000Z
2021-12-16T14:06:51.000Z
import warnings import argparse import os import logging import lib.metadata as metadata import lib.model as model import lib.text as text import lib.website as website warnings.filterwarnings('ignore') logging.basicConfig(level=logging.INFO) logger = logging.getLogger(__name__) ####################################...
56.036364
120
0.455224
958e9155b3239d72fa5b7b6e836c3597e9e664a8
3,887
py
Python
OP3/op3/messages.py
gvx/op3
888ab5975a3f911fc9ed9afea983928de3110033
[ "MIT" ]
null
null
null
OP3/op3/messages.py
gvx/op3
888ab5975a3f911fc9ed9afea983928de3110033
[ "MIT" ]
null
null
null
OP3/op3/messages.py
gvx/op3
888ab5975a3f911fc9ed9afea983928de3110033
[ "MIT" ]
null
null
null
from abc import ABC, abstractmethod from collections.abc import MutableSequence from datetime import datetime from typing import NamedTuple, Any, Optional, Iterator from .encoders import ENCODERS, string_encode, default_encoder, datetime_encode, blob_encode
30.849206
92
0.637252
958ef26cd63d83883ded41820724c2716c93e70b
2,716
py
Python
ssepaperless/Organizer/views.py
michaelkressaty/ssepaperless
d536f9106fd499e664d3c03fb6331b4feb1cc4ca
[ "BSD-3-Clause" ]
null
null
null
ssepaperless/Organizer/views.py
michaelkressaty/ssepaperless
d536f9106fd499e664d3c03fb6331b4feb1cc4ca
[ "BSD-3-Clause" ]
null
null
null
ssepaperless/Organizer/views.py
michaelkressaty/ssepaperless
d536f9106fd499e664d3c03fb6331b4feb1cc4ca
[ "BSD-3-Clause" ]
null
null
null
from django.shortcuts import get_object_or_404, render from django.http import HttpResponse from django.template import RequestContext, loader from Organizer.models import Department from Organizer.models import Advisor from Organizer.models import Student from Organizer.models import Course from Organizer.models impor...
48.5
111
0.796024
95908c4c021ce144e1c7f298836a5c4a2cc424d8
462
py
Python
project/3/cal.py
Aries-Dawn/Cpp-Program-Design
9d4fc9a902fff2f76e41314f5d6c52871d30a511
[ "MIT" ]
null
null
null
project/3/cal.py
Aries-Dawn/Cpp-Program-Design
9d4fc9a902fff2f76e41314f5d6c52871d30a511
[ "MIT" ]
null
null
null
project/3/cal.py
Aries-Dawn/Cpp-Program-Design
9d4fc9a902fff2f76e41314f5d6c52871d30a511
[ "MIT" ]
null
null
null
import numpy as np matrixA = np.loadtxt('./mat-A-32.txt') matrixB = np.loadtxt('./mat-B-32.txt') checking = np.loadtxt('./out32.txt') result = np.dot(matrixA, matrixB) diff = result - checking print(checking) print(result) print(diff) np.absolute(diff) print(np.max(diff)) [rows, cols] = diff.shape with open ('./out20...
23.1
42
0.623377
959230e7e9d9994cf553883c73d07ce0fe30741d
16,749
py
Python
2020/src/day24.py
Sujatha-Nagarajan/AdventOfCode
afce23c74fd0a72caa29c1604a582b21806e794e
[ "CC0-1.0" ]
1
2020-12-05T06:14:37.000Z
2020-12-05T06:14:37.000Z
2020/src/day24.py
Sujatha-Nagarajan/AdventOfCode
afce23c74fd0a72caa29c1604a582b21806e794e
[ "CC0-1.0" ]
null
null
null
2020/src/day24.py
Sujatha-Nagarajan/AdventOfCode
afce23c74fd0a72caa29c1604a582b21806e794e
[ "CC0-1.0" ]
null
null
null
import re from collections import defaultdict from util import * input1="""sesenwnenenewseeswwswswwnenewsewsw neeenesenwnwwswnenewnwwsewnenwseswesw seswneswswsenwwnwse nwnwneseeswswnenewneswwnewseswneseene swweswneswnenwsewnwneneseenw eesenwseswswnenwswnwnwsewwnwsene sewnenenenesenwsewnenwwwse wenwwweseeeweswwwnwwe ws...
31.661626
81
0.920294
9594993f4525fce4f5b648804a7994f70f4ed262
4,773
py
Python
ci/check-documentation.py
FredrikBlomgren/aff3ct
fa616bd923b2dcf03a4cf119cceca51cf810d483
[ "MIT" ]
315
2016-06-21T13:32:14.000Z
2022-03-28T09:33:59.000Z
ci/check-documentation.py
a-panella/aff3ct
61509eb756ae3725b8a67c2d26a5af5ba95186fb
[ "MIT" ]
153
2017-01-17T03:51:06.000Z
2022-03-24T15:39:26.000Z
ci/check-documentation.py
a-panella/aff3ct
61509eb756ae3725b8a67c2d26a5af5ba95186fb
[ "MIT" ]
119
2017-01-04T14:31:58.000Z
2022-03-21T08:34:16.000Z
#!/usr/bin/env python3 import argparse import sys import re import subprocess import os import glob import copy import aff3ct_help_parser as ahp # read all the lines from the given file and set them in a list of string lines with striped \n \r if __name__ == "__main__": parser = argparse.ArgumentParser() parser.a...
27.431034
128
0.707521
9595a509a88acc24d2199e14d5a84b03b3fb5415
677
py
Python
todoster/list_projects.py
SophieAu/todoster
6f69f7b254683d63f60f934eafa8971e78df7eb2
[ "MIT" ]
5
2020-08-05T21:02:35.000Z
2021-11-11T14:31:35.000Z
todoster/list_projects.py
SophieAu/todoster
6f69f7b254683d63f60f934eafa8971e78df7eb2
[ "MIT" ]
1
2020-09-24T04:41:20.000Z
2020-09-28T04:37:50.000Z
todoster/list_projects.py
SophieAu/todoster
6f69f7b254683d63f60f934eafa8971e78df7eb2
[ "MIT" ]
1
2021-08-09T19:23:24.000Z
2021-08-09T19:23:24.000Z
from todoster.file_operations import load_projects from todoster.output_formatter import format_string
33.85
85
0.669129
95988a5a0c747ad5cc792f45a029f70fc328bc8e
621
py
Python
src/game_test.py
TomNo/tictactoe-mcts
5d5db97f54fe5a3bf7c9afaaa4d74984fdb30ec4
[ "MIT" ]
null
null
null
src/game_test.py
TomNo/tictactoe-mcts
5d5db97f54fe5a3bf7c9afaaa4d74984fdb30ec4
[ "MIT" ]
null
null
null
src/game_test.py
TomNo/tictactoe-mcts
5d5db97f54fe5a3bf7c9afaaa4d74984fdb30ec4
[ "MIT" ]
null
null
null
#!/usr/bin/env python __author__ = 'Tomas Novacik' import unittest2 from game import Game from board import Board, PlayerType, Move # eof
18.264706
75
0.613527
95993548b5a77661a71dcd96b3ee1f6f35d686ce
1,911
py
Python
skills_taxonomy_v2/pipeline/skills_extraction/get_sentence_embeddings_utils.py
india-kerle/skills-taxonomy-v2
a71366dfea3c35580dbafddba9470f83795805ae
[ "MIT" ]
3
2021-11-21T17:21:12.000Z
2021-12-10T21:19:57.000Z
skills_taxonomy_v2/pipeline/skills_extraction/get_sentence_embeddings_utils.py
india-kerle/skills-taxonomy-v2
a71366dfea3c35580dbafddba9470f83795805ae
[ "MIT" ]
16
2021-10-06T11:20:35.000Z
2022-02-02T11:44:28.000Z
skills_taxonomy_v2/pipeline/skills_extraction/get_sentence_embeddings_utils.py
india-kerle/skills-taxonomy-v2
a71366dfea3c35580dbafddba9470f83795805ae
[ "MIT" ]
1
2021-10-04T12:27:20.000Z
2021-10-04T12:27:20.000Z
""" Functions to mask sentences of undesirable words (stopwords, punctuation etc). Used in get_sentence_embeddings.py to process sentences before finding embeddings. """ import re from skills_taxonomy_v2.pipeline.skills_extraction.cleaning_sentences import ( separate_camel_case, ) def is_token_word(token, token_...
29.4
85
0.553114
959a854d76fcee93383a4561465ab39d08da02e1
1,000
py
Python
migrations/versions/033809bcaf32_destinations.py
RagtagOpen/carpools
56b8f6491a2d347b637b345fbad7bc744130ec7f
[ "Apache-2.0" ]
11
2017-08-23T17:41:43.000Z
2018-10-24T03:00:38.000Z
migrations/versions/033809bcaf32_destinations.py
RagtagOpen/carpools
56b8f6491a2d347b637b345fbad7bc744130ec7f
[ "Apache-2.0" ]
480
2017-07-14T00:29:11.000Z
2020-01-06T19:04:51.000Z
migrations/versions/033809bcaf32_destinations.py
RagtagOpen/carpools
56b8f6491a2d347b637b345fbad7bc744130ec7f
[ "Apache-2.0" ]
22
2017-07-07T00:07:32.000Z
2020-02-27T19:43:14.000Z
"""destinations Revision ID: 033809bcaf32 Revises: 4a77b8fb792a Create Date: 2017-08-24 05:56:45.166590 """ from alembic import op import sqlalchemy as sa import geoalchemy2 # revision identifiers, used by Alembic. revision = '033809bcaf32' down_revision = '4a77b8fb792a' branch_labels = None depends_on = None
27.027027
89
0.698
959ac1baff7cea9daabf593760b72f74cd08cb19
778
py
Python
porcupine/plugins/gotoline.py
rscales02/porcupine
91b3c90d19d2291c0a60ddb9dffac931147cde3c
[ "MIT" ]
null
null
null
porcupine/plugins/gotoline.py
rscales02/porcupine
91b3c90d19d2291c0a60ddb9dffac931147cde3c
[ "MIT" ]
null
null
null
porcupine/plugins/gotoline.py
rscales02/porcupine
91b3c90d19d2291c0a60ddb9dffac931147cde3c
[ "MIT" ]
null
null
null
from tkinter import simpledialog from porcupine import actions, get_tab_manager, tabs
31.12
79
0.638817
959aea6673bc315fd2a49870629b49b87e1b393a
4,634
py
Python
preprocessing.py
JackAndCole/Detection-of-sleep-apnea-from-single-lead-ECG-signal-using-a-time-window-artificial-neural-network
692bb7d969b7eb4a0ad9b221660901a863bc76e2
[ "Apache-2.0" ]
7
2020-01-22T03:23:39.000Z
2021-12-26T05:02:10.000Z
preprocessing.py
JackAndCole/Detection-of-sleep-apnea-from-single-lead-ECG-signal-using-a-time-window-artificial-neural-network
692bb7d969b7eb4a0ad9b221660901a863bc76e2
[ "Apache-2.0" ]
null
null
null
preprocessing.py
JackAndCole/Detection-of-sleep-apnea-from-single-lead-ECG-signal-using-a-time-window-artificial-neural-network
692bb7d969b7eb4a0ad9b221660901a863bc76e2
[ "Apache-2.0" ]
1
2020-05-29T06:32:24.000Z
2020-05-29T06:32:24.000Z
import os import pickle import sys import warnings from collections import OrderedDict import biosppy.signals.tools as st import numpy as np import wfdb from biosppy.signals.ecg import correct_rpeaks, hamilton_segmenter from hrv.classical import frequency_domain, time_domain from scipy.signal import medfilt...
44.990291
120
0.579197
959b3935838082e9b39f90f0dbe7ce84722264d7
3,904
py
Python
tiddlywebplugins/tiddlyspace/openid.py
FND/tiddlyspace
7b26e5b4e0b0a817b3ea0a357613c59705d016d4
[ "BSD-3-Clause" ]
2
2015-12-15T00:40:36.000Z
2019-04-22T16:54:41.000Z
tiddlywebplugins/tiddlyspace/openid.py
jdlrobson/tiddlyspace
70f500687fcd26e3fa4ef144297a05203ccf0f35
[ "BSD-3-Clause" ]
null
null
null
tiddlywebplugins/tiddlyspace/openid.py
jdlrobson/tiddlyspace
70f500687fcd26e3fa4ef144297a05203ccf0f35
[ "BSD-3-Clause" ]
null
null
null
""" Subclass of tiddlywebplugins.openid2 to support tiddlyweb_secondary_user cookie. """ import urlparse from tiddlyweb.web.util import server_host_url, make_cookie from tiddlywebplugins.openid2 import Challenger as OpenID FRAGMENT_PREFIX = 'auth:OpenID:'
36.148148
72
0.615523
959b55108828b137a9e2c7ce659d11e247c56fff
226
py
Python
tests/__init__.py
tltx/iommi
a0ca5e261040cc0452d7452e9320a88af5222b30
[ "BSD-3-Clause" ]
192
2020-01-30T14:29:56.000Z
2022-03-28T19:55:30.000Z
tests/__init__.py
tltx/iommi
a0ca5e261040cc0452d7452e9320a88af5222b30
[ "BSD-3-Clause" ]
105
2020-03-29T21:59:01.000Z
2022-03-24T12:29:09.000Z
tests/__init__.py
tltx/iommi
a0ca5e261040cc0452d7452e9320a88af5222b30
[ "BSD-3-Clause" ]
28
2020-02-02T20:51:09.000Z
2022-03-08T16:23:42.000Z
from datetime import datetime import freezegun # Initialize freezegun to avoid freezegun being reinitialized which is expensive initialize_freezegun = freezegun.freeze_time(datetime(2021, 1, 1)) initialize_freezegun.start()
28.25
80
0.836283
959bcca51833c2423f463ff10fb943bd7f71b93f
9,047
py
Python
pyacoustics/morph/intensity_morph.py
UNIST-Interactions/pyAcoustics
f22d19d258b4e359fec365b30f11af261dee1b5c
[ "MIT" ]
72
2015-12-10T20:00:04.000Z
2022-03-31T05:42:17.000Z
pyacoustics/morph/intensity_morph.py
alivalehi/pyAcoustics
ab446681d7a2267063afb6a386334dcaefd0d93b
[ "MIT" ]
5
2017-08-08T05:13:15.000Z
2020-11-26T00:58:04.000Z
pyacoustics/morph/intensity_morph.py
alivalehi/pyAcoustics
ab446681d7a2267063afb6a386334dcaefd0d93b
[ "MIT" ]
16
2016-05-09T07:36:15.000Z
2021-08-30T14:23:25.000Z
''' Created on Apr 2, 2015 @author: tmahrt ''' import os from os.path import join import math import copy from pyacoustics.morph.morph_utils import common from pyacoustics.morph.morph_utils import plot_morphed_data from pyacoustics.utilities import utils from pyacoustics.utilities import sequences from pyacoustics....
36.776423
79
0.606831
959ca1652d25eeda188d0626465d82a0647c2777
1,886
py
Python
algorithms/library/metricscontroller.py
heitor57/poi-rss
12990af118f19595be01bf80e26a7ee93f9d05d8
[ "MIT" ]
1
2021-09-01T23:55:27.000Z
2021-09-01T23:55:27.000Z
algorithms/library/metricscontroller.py
heitor57/poi-rss
12990af118f19595be01bf80e26a7ee93f9d05d8
[ "MIT" ]
1
2021-09-09T06:21:48.000Z
2021-09-14T02:08:33.000Z
algorithms/library/metricscontroller.py
heitor57/poi-rss
12990af118f19595be01bf80e26a7ee93f9d05d8
[ "MIT" ]
null
null
null
import numpy as np
37.72
158
0.559915
959cbddc7a775bd66392c574ba57d0e444a033d9
736
py
Python
backend-service/users-service/app/app/models/user.py
abhishek70/python-petclinic-microservices
e15a41a668958f35f1b962487cd2360c5c150f0b
[ "MIT" ]
2
2021-05-19T07:21:59.000Z
2021-09-15T17:30:08.000Z
backend-service/users-service/app/app/models/user.py
abhishek70/python-petclinic-microservices
e15a41a668958f35f1b962487cd2360c5c150f0b
[ "MIT" ]
null
null
null
backend-service/users-service/app/app/models/user.py
abhishek70/python-petclinic-microservices
e15a41a668958f35f1b962487cd2360c5c150f0b
[ "MIT" ]
null
null
null
from typing import TYPE_CHECKING from sqlalchemy import Boolean, Column, Integer, String from sqlalchemy.orm import relationship from app.db.base_class import Base if TYPE_CHECKING: from .pet import Pet # noqa: F401
38.736842
90
0.744565
959f88de24a529a6005e19e9f3a68842519cdb55
930
py
Python
slackbot/admin.py
surface-security/django-slackbot
8d22fb922cf5365284d7a4836bb095eeeb8c7e90
[ "MIT" ]
1
2022-01-24T10:29:09.000Z
2022-01-24T10:29:09.000Z
slackbot/admin.py
surface-security/django-slack-processor
8d22fb922cf5365284d7a4836bb095eeeb8c7e90
[ "MIT" ]
4
2022-02-21T15:59:08.000Z
2022-03-26T00:33:13.000Z
slackbot/admin.py
surface-security/django-slack-processor
8d22fb922cf5365284d7a4836bb095eeeb8c7e90
[ "MIT" ]
null
null
null
from django.contrib import admin from django.utils.html import format_html from . import get_user_model
34.444444
119
0.634409
95a0896392ae42746732acf467a7a7dc9ad52617
1,476
py
Python
touroute/tourouteapp/migrations/0001_initial.py
oscarlamasrios/toroute
5b00c0f606f438229e7857f25a23c4d51ff34293
[ "Apache-2.0" ]
null
null
null
touroute/tourouteapp/migrations/0001_initial.py
oscarlamasrios/toroute
5b00c0f606f438229e7857f25a23c4d51ff34293
[ "Apache-2.0" ]
null
null
null
touroute/tourouteapp/migrations/0001_initial.py
oscarlamasrios/toroute
5b00c0f606f438229e7857f25a23c4d51ff34293
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.11.15 on 2019-04-24 14:53 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion
34.325581
117
0.571816
95a1633d9ce1bb6f212d67d9111c6397f243ba02
19,691
py
Python
catalog/application.py
gevannmullins/catalog-category-items
850c77e17d5123511c954e3705f522228c6574ea
[ "MIT" ]
null
null
null
catalog/application.py
gevannmullins/catalog-category-items
850c77e17d5123511c954e3705f522228c6574ea
[ "MIT" ]
null
null
null
catalog/application.py
gevannmullins/catalog-category-items
850c77e17d5123511c954e3705f522228c6574ea
[ "MIT" ]
null
null
null
#!/usr/bin/env python from flask import Flask, render_template, request, redirect, jsonify, url_for, flash from sqlalchemy import create_engine, asc from sqlalchemy.orm import sessionmaker from database_setup import Base, Category, Item, User from flask import session as login_session import random import string impor...
35.867031
174
0.632218
95a2f6f31ddcda8bf982507b3035c6d82bfe1d80
723
py
Python
selfdrive/visiond/tensorflow_autodetect.py
jeroenbbb/openpilot
4a2ff784f85ac87a4aa9ba8a345c2403102f960a
[ "MIT" ]
4
2019-05-29T19:44:56.000Z
2021-09-10T18:36:57.000Z
selfdrive/visiond/tensorflow_autodetect.py
jeroenbbb/openpilot
4a2ff784f85ac87a4aa9ba8a345c2403102f960a
[ "MIT" ]
null
null
null
selfdrive/visiond/tensorflow_autodetect.py
jeroenbbb/openpilot
4a2ff784f85ac87a4aa9ba8a345c2403102f960a
[ "MIT" ]
5
2019-08-09T07:49:28.000Z
2020-10-11T03:19:04.000Z
import os from setuptools import setup version = os.getenv('VERSION', '1.10.1') setup( name='tensorflow-autodetect', version=version, url='https://github.com/commaai/tensorflow-autodetect', author='comma.ai', author_email='', license='MIT', long_description='Auto-detect tensorflow or tenso...
30.125
111
0.656985
95a308d03af24087015385e9c1aa146e859dc63c
1,639
py
Python
intask_api/projects/permissions.py
KirovVerst/intask
4bdec6f49fa2873cca1354d7d3967973f5bcadc3
[ "MIT" ]
null
null
null
intask_api/projects/permissions.py
KirovVerst/intask
4bdec6f49fa2873cca1354d7d3967973f5bcadc3
[ "MIT" ]
7
2016-08-17T23:08:31.000Z
2022-03-02T02:23:08.000Z
intask_api/projects/permissions.py
KirovVerst/intask
4bdec6f49fa2873cca1354d7d3967973f5bcadc3
[ "MIT" ]
null
null
null
from rest_framework import permissions from django.shortcuts import get_object_or_404 from django.contrib.auth.models import User from intask_api.projects.models import Project
34.87234
74
0.748627
95a3853b501cce7a1c286e558ccff9a6692b3e3f
171
py
Python
Ekeopara_Praise/Phase 2/LIST/Day43 Tasks/Task3.py
CodedLadiesInnovateTech/-python-challenge-solutions
430cd3eb84a2905a286819eef384ee484d8eb9e7
[ "MIT" ]
6
2020-05-23T19:53:25.000Z
2021-05-08T20:21:30.000Z
Ekeopara_Praise/Phase 2/LIST/Day43 Tasks/Task3.py
CodedLadiesInnovateTech/-python-challenge-solutions
430cd3eb84a2905a286819eef384ee484d8eb9e7
[ "MIT" ]
8
2020-05-14T18:53:12.000Z
2020-07-03T00:06:20.000Z
Ekeopara_Praise/Phase 2/LIST/Day43 Tasks/Task3.py
CodedLadiesInnovateTech/-python-challenge-solutions
430cd3eb84a2905a286819eef384ee484d8eb9e7
[ "MIT" ]
39
2020-05-10T20:55:02.000Z
2020-09-12T17:40:59.000Z
'''3. Write a Python program to split a list into different variables. ''' universalList = [(1, 2, 3), ('w', 'e', 's')] lst1, lst2 = universalList print(lst1) print(lst2)
28.5
74
0.654971
95a3fd394b5e1d1a390370d7caef0aefa5912c98
576
py
Python
Codefights/arcade/python-arcade/level-9/62.Check-Participants/Python/test.py
RevansChen/online-judge
ad1b07fee7bd3c49418becccda904e17505f3018
[ "MIT" ]
7
2017-09-20T16:40:39.000Z
2021-08-31T18:15:08.000Z
Codefights/arcade/python-arcade/level-9/62.Check-Participants/Python/test.py
RevansChen/online-judge
ad1b07fee7bd3c49418becccda904e17505f3018
[ "MIT" ]
null
null
null
Codefights/arcade/python-arcade/level-9/62.Check-Participants/Python/test.py
RevansChen/online-judge
ad1b07fee7bd3c49418becccda904e17505f3018
[ "MIT" ]
null
null
null
# Python3 from solution1 import checkParticipants as f qa = [ ([0, 1, 1, 5, 4, 8], [2]), ([0, 1, 2, 3, 4, 5], []), ([6], []), ([3, 3, 3, 3, 3, 3, 3, 3], [4, 5, 6, 7]), ([0, 0, 1, 5, 5, 4, 5, 4, 10, 8], [1, 2, 5, 6, 7, 9]) ] for *q, a in qa: for i, e in enumerate(q): ...
19.2
47
0.378472
95a45f4832007319ba41671ba4a21dd2a62ab0fc
202
py
Python
models/__init__.py
mikuh/bert-tf2-keras
e361a0e7dc9fa0d64c48ac41320d302599dba025
[ "MIT" ]
4
2020-06-21T15:48:40.000Z
2022-01-24T05:10:59.000Z
models/__init__.py
mikuh/bert-tf2-keras
e361a0e7dc9fa0d64c48ac41320d302599dba025
[ "MIT" ]
null
null
null
models/__init__.py
mikuh/bert-tf2-keras
e361a0e7dc9fa0d64c48ac41320d302599dba025
[ "MIT" ]
3
2020-07-20T07:11:27.000Z
2022-01-24T05:11:21.000Z
from models.base_model import BaseModel from models.classifier import BertClassifier from models.sequence_labeling import BertSequenceLabeling from models.sequence_embedding import BertSequenceEmbedding
50.5
59
0.905941
95a49255a761f17a3cc35cbf97bc73b1442eaf32
7,563
py
Python
plex_import_watched_history.py
chazlarson/plex-watched-tools
ef3e34e733ec9555353d695ced582395bdc73480
[ "MIT" ]
null
null
null
plex_import_watched_history.py
chazlarson/plex-watched-tools
ef3e34e733ec9555353d695ced582395bdc73480
[ "MIT" ]
null
null
null
plex_import_watched_history.py
chazlarson/plex-watched-tools
ef3e34e733ec9555353d695ced582395bdc73480
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # python3 -m pip install --force -U --user PlexAPI import json import time import logging import plexapi import plexapi.video import plexapi.myplex import plexapi.server import plexapi.library import plexapi.exceptions PLEX_URL = "" PLEX_TOKEN = "" WATCHED_HISTORY =...
36.713592
114
0.672352
95a5e5403994144db82f320da6b9ae78fdfacc78
3,556
py
Python
django_thermostat/pypelib/Rule.py
jpardobl/django-thermostat
184e398134f289eb0337ec2af33c650f9ee26a13
[ "BSD-3-Clause" ]
null
null
null
django_thermostat/pypelib/Rule.py
jpardobl/django-thermostat
184e398134f289eb0337ec2af33c650f9ee26a13
[ "BSD-3-Clause" ]
null
null
null
django_thermostat/pypelib/Rule.py
jpardobl/django-thermostat
184e398134f289eb0337ec2af33c650f9ee26a13
[ "BSD-3-Clause" ]
null
null
null
import os import sys import time import exceptions import uuid import logging ''' @author: msune,lbergesio,omoya,CarolinaFernandez @organization: i2CAT, OFELIA FP7 PolicyEngine Rule class Encapsulates logic of a simple Rule ''' from django_thermostat.pypelib.Condition import Condition from django_thermo...
27.353846
105
0.719629
95aa9b2ab7c302c981b157247e84659b7c3d8105
709
py
Python
test/test_integration.py
gaborfodor/wave-bird-recognition
6feafdbae82746e3e7b0f6588a9158aa8336309a
[ "MIT" ]
17
2021-06-02T12:26:30.000Z
2022-03-27T18:35:02.000Z
test/test_integration.py
gaborfodor/wave-bird-recognition
6feafdbae82746e3e7b0f6588a9158aa8336309a
[ "MIT" ]
null
null
null
test/test_integration.py
gaborfodor/wave-bird-recognition
6feafdbae82746e3e7b0f6588a9158aa8336309a
[ "MIT" ]
3
2021-06-02T12:26:51.000Z
2021-06-06T05:56:45.000Z
from birds.display_utils import geo_plot from birds.pann import load_pretrained_model, read_audio_fast, get_model_predictions_for_clip, BIRDS
27.269231
100
0.71086
95abecff3908d6331f655cf91a24b321277dc4f4
12,306
py
Python
For_Cluster/letshpc_folder_backtracking_2/main_script_without_perf.py
yatin2410/HPC_N_QUEENS
df629ac4ebc678815953370c8ae97c6d276819ff
[ "MIT" ]
2
2019-05-10T09:09:07.000Z
2022-02-07T05:46:57.000Z
For_Cluster/letshpc_folder_bitmasking/main_script_without_perf.py
yatin2410/HPC_N_QUEENS
df629ac4ebc678815953370c8ae97c6d276819ff
[ "MIT" ]
null
null
null
For_Cluster/letshpc_folder_bitmasking/main_script_without_perf.py
yatin2410/HPC_N_QUEENS
df629ac4ebc678815953370c8ae97c6d276819ff
[ "MIT" ]
null
null
null
#!/bin/python import subprocess import os import sys import maps import time import logging logging.basicConfig(filename = "LetsHPC_Team_CodeRunner.log", level = logging.INFO) logger = logging.getLogger(__name__) ####################################################################################################...
34.664789
138
0.491549
95ae2e3a04b5bb9553c2d275221aaaba3d17f40e
1,236
py
Python
0205.Isomorphic Strings/solution.py
zhlinh/leetcode
6dfa0a4df9ec07b2c746a13c8257780880ea04af
[ "Apache-2.0" ]
null
null
null
0205.Isomorphic Strings/solution.py
zhlinh/leetcode
6dfa0a4df9ec07b2c746a13c8257780880ea04af
[ "Apache-2.0" ]
null
null
null
0205.Isomorphic Strings/solution.py
zhlinh/leetcode
6dfa0a4df9ec07b2c746a13c8257780880ea04af
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- ''' ***************************************** Author: zhlinh Email: zhlinhng@gmail.com Version: 0.0.1 Created Time: 2016-03-24 Last_modify: 2016-03-24 ****************************************** ''' ''' Given two strings s and t, determine if th...
24.235294
75
0.536408
95b11eb96aa3d734016e0fceb804be347a3066c5
1,860
py
Python
testModules/migration.py
mannamman/newsCrawl
8779c1ee06ef51d2affbd9b8a80e688c6ed056e7
[ "MIT" ]
null
null
null
testModules/migration.py
mannamman/newsCrawl
8779c1ee06ef51d2affbd9b8a80e688c6ed056e7
[ "MIT" ]
14
2021-12-20T03:44:08.000Z
2022-02-24T06:04:06.000Z
testModules/migration.py
mannamman/newsCrawl
8779c1ee06ef51d2affbd9b8a80e688c6ed056e7
[ "MIT" ]
null
null
null
import pymongo ## local ## from dotenv import load_dotenv import os import pytz import datetime import itertools from uuid import uuid4 from collections import defaultdict # ObjectId from bson.objectid import ObjectId """ RDBMS Mongo DB Database Database Table Collection Row Document Index Index...
28.181818
111
0.638172
95b233e62bad224b765ef9f8b1c2e67cce2b24ad
1,659
py
Python
YOLOv2.py
scain40/OpenCVCVImageComparisson
368d901233111606fb2f0ecbce4447dd9c149fd0
[ "MIT" ]
null
null
null
YOLOv2.py
scain40/OpenCVCVImageComparisson
368d901233111606fb2f0ecbce4447dd9c149fd0
[ "MIT" ]
null
null
null
YOLOv2.py
scain40/OpenCVCVImageComparisson
368d901233111606fb2f0ecbce4447dd9c149fd0
[ "MIT" ]
null
null
null
import numpy as np import cv2 as cv import os import sys
36.866667
112
0.722122
95b3747c398cbe76bc2e8c76655c81e2a5cd82bc
115
py
Python
closuredag/apps.py
farmlab/django-closuredag
19bacabea5e922613a18d21048866dceb44d0afe
[ "MIT" ]
null
null
null
closuredag/apps.py
farmlab/django-closuredag
19bacabea5e922613a18d21048866dceb44d0afe
[ "MIT" ]
93
2017-11-16T13:58:45.000Z
2022-03-27T22:01:19.000Z
closuredag/apps.py
farmlab/django-closuredag
19bacabea5e922613a18d21048866dceb44d0afe
[ "MIT" ]
null
null
null
# -*- coding: utf-8 from django.apps import AppConfig
16.428571
34
0.721739
95b3dfb14ba48f34faa00abbd1780bd7ac43862d
499
py
Python
experiments/reversed_string_stack.py
shruti-bt/data-structure-python
0729f486f516ce05acdd92b28b108f43b67f656f
[ "MIT" ]
1
2022-01-10T17:17:35.000Z
2022-01-10T17:17:35.000Z
experiments/reversed_string_stack.py
shruti-bt/data-structure-python
0729f486f516ce05acdd92b28b108f43b67f656f
[ "MIT" ]
null
null
null
experiments/reversed_string_stack.py
shruti-bt/data-structure-python
0729f486f516ce05acdd92b28b108f43b67f656f
[ "MIT" ]
null
null
null
if __name__ == '__main__': str_ = input() stack = Stack() for i in str_: stack.push(i) for j in range(len(stack)): print(stack.pop(), end='') print()
19.192308
35
0.519038
95b40e4094e935db9b4e39bc3de9c67b55114bbe
484
py
Python
app/run.py
dudikbender/geocoder
af8c0839d3d73c7825a0488763d053b5e6bc8257
[ "Unlicense" ]
null
null
null
app/run.py
dudikbender/geocoder
af8c0839d3d73c7825a0488763d053b5e6bc8257
[ "Unlicense" ]
null
null
null
app/run.py
dudikbender/geocoder
af8c0839d3d73c7825a0488763d053b5e6bc8257
[ "Unlicense" ]
null
null
null
from utils.db import connection, print_version import pandas as pd table = 'data/tables/postcode_coordinates.csv' add_table(table, 'Postcode_coordinates', connection) cur = connection.cursor() cur.execute('''SELECT * FROM Postcode_coordinates''') data = cur.fetchmany(5) print(data)
25.473684
76
0.727273
95b525d705b0f34eba83af30d5fc61bd4affc2f0
48
pyw
Python
seemee.pyw
gaming32/SeeMee
a99655efdd9e1aea218474bcdbd1370954a366d2
[ "MIT" ]
null
null
null
seemee.pyw
gaming32/SeeMee
a99655efdd9e1aea218474bcdbd1370954a366d2
[ "MIT" ]
null
null
null
seemee.pyw
gaming32/SeeMee
a99655efdd9e1aea218474bcdbd1370954a366d2
[ "MIT" ]
null
null
null
import runpy runpy._run_module_as_main('SeeMee')
24
35
0.854167
95b591115eff8da9eaed281f3f62bddae8faefca
755
py
Python
model/param_const.py
tototo617/Biomodel-Raia2011
a06d531e3d9f18ddee1d85a19d8c57363be3da8e
[ "MIT" ]
null
null
null
model/param_const.py
tototo617/Biomodel-Raia2011
a06d531e3d9f18ddee1d85a19d8c57363be3da8e
[ "MIT" ]
null
null
null
model/param_const.py
tototo617/Biomodel-Raia2011
a06d531e3d9f18ddee1d85a19d8c57363be3da8e
[ "MIT" ]
null
null
null
from .name2idx import parameters as C
31.458333
46
0.682119
95b6aab732ea16915f09231a8049e60f6f242ea6
593
py
Python
flaskr/commands.py
aicioara-old/flask_tutorial2
acb5c6fa2743f2f060ad6a3a26cc7eef56b6490b
[ "MIT" ]
null
null
null
flaskr/commands.py
aicioara-old/flask_tutorial2
acb5c6fa2743f2f060ad6a3a26cc7eef56b6490b
[ "MIT" ]
null
null
null
flaskr/commands.py
aicioara-old/flask_tutorial2
acb5c6fa2743f2f060ad6a3a26cc7eef56b6490b
[ "MIT" ]
null
null
null
import os import datetime import click from flask.cli import with_appcontext from werkzeug.security import generate_password_hash
20.448276
82
0.735245
95b6e78900559f4f960f26e452c446bb79f637e4
191
py
Python
intel_bot_sentenca_rj_civel/test.py
slarda/Web-Scrapping-Bots-For-Crawling-Docs
aa8ce3c72bfbe2111d16655ffc3a6759a825946e
[ "Apache-2.0" ]
1
2020-12-17T11:21:01.000Z
2020-12-17T11:21:01.000Z
intel_bot_sentenca_rj_civel/test.py
soft-super/Web-Scrapping-Bots-For-Crawling-Docs
aa8ce3c72bfbe2111d16655ffc3a6759a825946e
[ "Apache-2.0" ]
5
2021-03-19T01:48:07.000Z
2021-06-09T18:26:31.000Z
intel_bot_sentenca_rj_civel/test.py
tiny-1996/Web-Scrapping-Bots-For-Crawling-Docs
aa8ce3c72bfbe2111d16655ffc3a6759a825946e
[ "Apache-2.0" ]
null
null
null
with open('./logs/test.log', 'r') as f1: data = f1.readlines() formatted = [x.replace('.pdf', '') for x in data] with open('./logs/test2.log', 'r') as f1: f1.writelines(formatted)
21.222222
49
0.602094
95b771302ac3436f68366f36390ccc4ddba021fd
2,206
py
Python
validator_rewards/validator_rewards.py
harmony-one/monitor-ops
0a379655ff26bff5821cd7cb6f619a15a308441b
[ "MIT" ]
1
2020-04-11T16:46:56.000Z
2020-04-11T16:46:56.000Z
validator_rewards/validator_rewards.py
harmony-one/monitor-ops
0a379655ff26bff5821cd7cb6f619a15a308441b
[ "MIT" ]
3
2020-04-13T10:42:59.000Z
2020-07-10T06:26:23.000Z
validator_rewards/validator_rewards.py
harmony-one/monitor-ops
0a379655ff26bff5821cd7cb6f619a15a308441b
[ "MIT" ]
2
2020-04-22T10:36:25.000Z
2020-05-20T15:58:02.000Z
import argparse import json from pyhmy import ( get_all_validator_addresses, get_validator_information ) if __name__ == '__main__': parser = argparse.ArgumentParser() parser.add_argument("--start", required=True, type=int, help="First block") parser.add_argument("--end", required=True, type=int, h...
31.514286
96
0.609248
95b980c29bfb10b077998e38727075e9d4e823a6
2,271
py
Python
day4/day4.py
UncleTed/adventOfCode2020
382560f7aee89f6b04b2ee60882d3801425ea46c
[ "MIT" ]
null
null
null
day4/day4.py
UncleTed/adventOfCode2020
382560f7aee89f6b04b2ee60882d3801425ea46c
[ "MIT" ]
null
null
null
day4/day4.py
UncleTed/adventOfCode2020
382560f7aee89f6b04b2ee60882d3801425ea46c
[ "MIT" ]
null
null
null
import re valid = ['hcl', 'iyr', 'pid', 'ecl', 'hgt','eyr', 'byr' ] #part1() part2()
27.695122
66
0.483928
95bb338ca37179ca6d20e80795bb6cc5417559db
535
py
Python
app/shared/models.py
prapeller/blackemployer_api
ae9232773e6e164b22ffccf0b39dd9a4c2a036cf
[ "MIT" ]
null
null
null
app/shared/models.py
prapeller/blackemployer_api
ae9232773e6e164b22ffccf0b39dd9a4c2a036cf
[ "MIT" ]
null
null
null
app/shared/models.py
prapeller/blackemployer_api
ae9232773e6e164b22ffccf0b39dd9a4c2a036cf
[ "MIT" ]
null
null
null
from django.db import models from django.contrib.auth import get_user_model from django.contrib.postgres.fields import ArrayField from utils.model_utils import default_1d_array_of_strings
35.666667
96
0.773832
95bbb3583a2750d5735e9244fe93a6a446fb803f
8,314
py
Python
dataset/data_load.py
clovaai/symmetrical-synthesis
207953b1ae3d2e0a96fb676db3669bdc88cc18e8
[ "MIT" ]
76
2020-02-08T03:15:54.000Z
2022-03-04T16:14:52.000Z
dataset/data_load.py
clovaai/symmetrical-synthesis
207953b1ae3d2e0a96fb676db3669bdc88cc18e8
[ "MIT" ]
5
2020-02-07T14:00:58.000Z
2021-05-31T01:37:55.000Z
dataset/data_load.py
clovaai/symmetrical-synthesis
207953b1ae3d2e0a96fb676db3669bdc88cc18e8
[ "MIT" ]
13
2020-02-10T02:56:51.000Z
2021-05-28T06:56:30.000Z
''' symmetrical-synthesis Copyright (c) 2020-present NAVER Corp. MIT license ''' import os import time import glob import cv2 import random import numpy as np import tensorflow as tf import random try: import data_util except ImportError: from dataset import data_util tf.app.flags.DEFINE_boolean('random_resize...
35.228814
170
0.615227
95bc1cbdca2faf1169e04427ea20b03a36f4f201
1,678
py
Python
python_parikshith21/Day39.py
01coders/50-Days-Of-Code
98928cf0e186ee295bc90a4da0aa9554e2918659
[ "MIT" ]
null
null
null
python_parikshith21/Day39.py
01coders/50-Days-Of-Code
98928cf0e186ee295bc90a4da0aa9554e2918659
[ "MIT" ]
null
null
null
python_parikshith21/Day39.py
01coders/50-Days-Of-Code
98928cf0e186ee295bc90a4da0aa9554e2918659
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Sat Jun 17 20:55:53 2019 @author: Parikshith.H """ import sqlite3 conn=sqlite3.connect('music.sqlite') cur=conn.cursor() cur.execute('DROP TABLE IF EXISTS Tracks') cur.execute('CREATE TABLE Tracks(title TEXT,plays INTEGER)') cur.execute('''INSERT INTO Tracks(title,plays) VALUES...
28.440678
80
0.544696
95bd0c7bd55d7d49e38f428fd858ef62fbc90459
269
py
Python
tests/ansible/lib/modules/custom_python_external_pkg.py
webcoast-dk/mitogen
a5fe4a9fac5561511b676fe61ed127b732be5b12
[ "BSD-3-Clause" ]
1,526
2017-09-15T18:49:40.000Z
2021-01-17T16:04:12.000Z
tests/ansible/lib/modules/custom_python_external_pkg.py
webcoast-dk/mitogen
a5fe4a9fac5561511b676fe61ed127b732be5b12
[ "BSD-3-Clause" ]
682
2017-09-11T17:43:12.000Z
2021-01-17T05:26:26.000Z
tests/ansible/lib/modules/custom_python_external_pkg.py
webcoast-dk/mitogen
a5fe4a9fac5561511b676fe61ed127b732be5b12
[ "BSD-3-Clause" ]
111
2017-09-15T23:21:37.000Z
2021-01-01T14:45:35.000Z
#!/usr/bin/python from ansible.module_utils.basic import AnsibleModule from ansible.module_utils.externalpkg import extmod if __name__ == '__main__': main()
22.416667
52
0.750929
95bd18d246cfb63e62a2a8d0384166889102ed92
1,869
py
Python
mlangpy/metalanguages/EBNF.py
rium9/mlangpy
75821306b15d72278220d2a1a403daa36f60cc4a
[ "MIT" ]
1
2020-04-20T20:23:31.000Z
2020-04-20T20:23:31.000Z
mlangpy/metalanguages/EBNF.py
rium9/mlangpy
75821306b15d72278220d2a1a403daa36f60cc4a
[ "MIT" ]
null
null
null
mlangpy/metalanguages/EBNF.py
rium9/mlangpy
75821306b15d72278220d2a1a403daa36f60cc4a
[ "MIT" ]
null
null
null
from ..grammar import * from .Metalanguage import Metalanguage
29.203125
83
0.652755
95bd8914d357d073cde74eb4ec195a84ebfe2b04
560
py
Python
app/tests/test_db/test_jobs_crud.py
JvitorS23/jobboard_fastAPI
5abcc69f19417ad99352c0434db96407e2d7da76
[ "MIT" ]
1
2021-10-01T16:40:33.000Z
2021-10-01T16:40:33.000Z
app/tests/test_db/test_jobs_crud.py
JvitorS23/jobboard_fastAPI
5abcc69f19417ad99352c0434db96407e2d7da76
[ "MIT" ]
null
null
null
app/tests/test_db/test_jobs_crud.py
JvitorS23/jobboard_fastAPI
5abcc69f19417ad99352c0434db96407e2d7da76
[ "MIT" ]
null
null
null
from sqlalchemy.orm import Session from db.crud.jobs import create_new_job, retrieve_job from schemas.jobs import JobCreate from tests.utils.users import create_random_owner from tests.utils.jobs import create_sample_job def test_retrieve_job_by_id(db_session: Session): """Test retrieving job from db""" owner...
37.333333
67
0.792857
95c0ec3bbf5dfcbc14218087f1c41fdd10c1b36f
5,135
py
Python
spacy/tests/website/test_home.py
moyogo/spacy
ddf5c5bb61864320189ebc70dac3bc10e4ecde82
[ "MIT" ]
null
null
null
spacy/tests/website/test_home.py
moyogo/spacy
ddf5c5bb61864320189ebc70dac3bc10e4ecde82
[ "MIT" ]
null
null
null
spacy/tests/website/test_home.py
moyogo/spacy
ddf5c5bb61864320189ebc70dac3bc10e4ecde82
[ "MIT" ]
null
null
null
from __future__ import unicode_literals import pytest import spacy import os try: xrange except NameError: xrange = range def test_get_and_set_string_views_and_flags(nlp, token): assert token.shape_ == 'Xxxxx' for lexeme in nlp.vocab: if lexeme.is_alpha: lexeme.shape_ = 'W' ...
28.370166
78
0.631353
95c1052429e03206d9d42e4ca673e5f48a3f3906
35,774
py
Python
bridge_sim/internal/make/ps_question.py
jerbaroo/bridge-sim
c4ec1c18a07a78462ccf3b970a99a1bd7efcc2af
[ "MIT" ]
2
2020-05-12T11:41:49.000Z
2020-08-10T15:00:58.000Z
bridge_sim/internal/make/ps_question.py
barischrooneyj/bridge-sim
c4ec1c18a07a78462ccf3b970a99a1bd7efcc2af
[ "MIT" ]
48
2020-05-11T23:58:22.000Z
2020-09-18T20:28:52.000Z
bridge_sim/internal/make/ps_question.py
jerbaroo/bridge-sim
c4ec1c18a07a78462ccf3b970a99a1bd7efcc2af
[ "MIT" ]
1
2020-05-27T12:43:37.000Z
2020-05-27T12:43:37.000Z
import os from copy import deepcopy import matplotlib.pyplot as plt import numpy as np from bridge_sim import model, sim, temperature, traffic, plot, util from bridge_sim.model import Config, Point, Bridge from bridge_sim.plot.util import equal_lims from bridge_sim.sim.responses import without from bridge_sim.util im...
38.138593
148
0.587494
95c1db49e8979342f440e2ee5e1a48186d51308c
936
py
Python
parsers/download_data.py
bioinf-mcb/polish-microbiome-project
0fc15b1a5afe4edf63b6be6b945ac4053e3a24f9
[ "BSD-3-Clause" ]
null
null
null
parsers/download_data.py
bioinf-mcb/polish-microbiome-project
0fc15b1a5afe4edf63b6be6b945ac4053e3a24f9
[ "BSD-3-Clause" ]
null
null
null
parsers/download_data.py
bioinf-mcb/polish-microbiome-project
0fc15b1a5afe4edf63b6be6b945ac4053e3a24f9
[ "BSD-3-Clause" ]
null
null
null
#%% import json import requests from io import StringIO import pandas as pd # %% with open("../db_pass", "r") as f: token = json.load(f)['token'] # %% data = { 'token': token, 'content': 'record', 'format': 'csv', 'type': 'flat', 'csvDelimiter': '', 'rawOrLabel': 'raw', 'rawOrLabelHead...
23.4
113
0.63141
95c256321ed64a1e2f22ab370936dbb097ea26b8
2,622
py
Python
preprocess/sequence_stats.py
ashish-roopan/fsgan
1582e112d0f59cd32920ac5953baec783e088cad
[ "CC0-1.0" ]
599
2020-04-14T19:28:58.000Z
2022-03-26T11:29:37.000Z
preprocess/sequence_stats.py
ashish-roopan/fsgan
1582e112d0f59cd32920ac5953baec783e088cad
[ "CC0-1.0" ]
157
2020-04-14T21:13:43.000Z
2022-02-07T06:30:16.000Z
preprocess/sequence_stats.py
ashish-roopan/fsgan
1582e112d0f59cd32920ac5953baec783e088cad
[ "CC0-1.0" ]
150
2020-04-14T20:40:41.000Z
2022-03-30T10:50:21.000Z
""" Sequence statistics: Count, length, bounding boxes size. """ import os from glob import glob import pickle from tqdm import tqdm if __name__ == "__main__": # Parse program arguments import argparse parser = argparse.ArgumentParser('detections2sequences') parser.add_argument('input', metavar='DIR...
35.432432
114
0.622426
95c285b58cd596c463e5846360384f8f0b80a4d5
352
py
Python
app/migrations/0004_auto_20200704_0405.py
duorah/GRanDpa-Family-Tree
613df3fb61a8dd5eba7416ad6f8fda80e350bbe1
[ "MIT" ]
1
2020-07-13T21:03:17.000Z
2020-07-13T21:03:17.000Z
app/migrations/0004_auto_20200704_0405.py
duorah/grandpa-family-tree
613df3fb61a8dd5eba7416ad6f8fda80e350bbe1
[ "MIT" ]
null
null
null
app/migrations/0004_auto_20200704_0405.py
duorah/grandpa-family-tree
613df3fb61a8dd5eba7416ad6f8fda80e350bbe1
[ "MIT" ]
null
null
null
# Generated by Django 3.0.7 on 2020-07-04 04:05 from django.db import migrations
19.555556
54
0.602273
95c5e262b4da5f7adb2dec6d61c74e3194680b9a
7,735
py
Python
tests/test_dossier.py
openkamer/tk-api-python
907b98ccc7602ad7e3e74f1e06f9544fbe66aba3
[ "MIT" ]
9
2017-11-16T12:39:11.000Z
2021-10-16T19:30:52.000Z
tests/test_dossier.py
openkamer/tk-api-python
907b98ccc7602ad7e3e74f1e06f9544fbe66aba3
[ "MIT" ]
1
2017-11-16T14:20:20.000Z
2017-11-20T18:49:14.000Z
tests/test_dossier.py
openkamer/tk-api-python
907b98ccc7602ad7e3e74f1e06f9544fbe66aba3
[ "MIT" ]
3
2018-09-10T18:57:39.000Z
2020-06-09T14:13:10.000Z
import datetime from tkapi.util import queries from tkapi.zaak import Zaak, ZaakSoort from tkapi.dossier import Dossier, DossierWetsvoorstel from tkapi.document import Document from .core import TKApiTestCase
39.065657
118
0.648869
95c7b536f4cc90da867d02e9f53e889cad554b21
27,649
py
Python
Manuscript files/modflow_reference/auxfile_hexaplot.py
MaxRamgraber/Simple-AEM-Toolbox
27751103f5e504dd675ba6225f2aee9f85d7c85d
[ "MIT" ]
3
2021-06-16T12:27:22.000Z
2022-01-04T11:21:35.000Z
Manuscript files/modflow_reference/auxfile_hexaplot.py
MaxRamgraber/Simple-AEM-Toolbox
27751103f5e504dd675ba6225f2aee9f85d7c85d
[ "MIT" ]
null
null
null
Manuscript files/modflow_reference/auxfile_hexaplot.py
MaxRamgraber/Simple-AEM-Toolbox
27751103f5e504dd675ba6225f2aee9f85d7c85d
[ "MIT" ]
3
2021-06-17T11:20:20.000Z
2022-01-12T09:56:56.000Z
""" This library contains several functions designed to help with the illustration of hexagonal grids Functions: plot_hexagaons : plots a specified data vector over a 2-D hexagon grid. create_alpha_mask : creates an alpha shape (a concave hull), which is required for plotting contou...
42.66821
240
0.537054
95c8f1ad4e81caf4b83710c865b7efb620f7466e
58,889
py
Python
tests/python/self_concepts_test.py
JulianAL-01/self-concepts
d4a5ebfdadc472535777349602c775a67aaa3823
[ "MIT" ]
14
2020-07-21T21:09:25.000Z
2022-01-30T11:00:35.000Z
tests/python/self_concepts_test.py
JulianAL-01/self-concepts
d4a5ebfdadc472535777349602c775a67aaa3823
[ "MIT" ]
2
2020-07-28T14:46:11.000Z
2020-07-28T14:52:23.000Z
tests/python/self_concepts_test.py
JulianAL-01/self-concepts
d4a5ebfdadc472535777349602c775a67aaa3823
[ "MIT" ]
5
2020-07-28T13:50:20.000Z
2021-07-12T22:56:11.000Z
''' self_concepts_test This module serves as the unit test for self_concepts ''' import argparse, sys sys.path.append('../../source/python') from self_concepts import Concept from self_concepts import Property from self_concepts import Relationship from self_concepts import Ontology from self_concepts import Blackb...
40.252221
120
0.69558
95c9bf8a576fcba5f592caf1b205652fbf6c6df7
1,042
py
Python
100-200q/123.py
rampup01/Leetcode
8450a95a966ef83b24ffe6450f06ce8de92b3efb
[ "MIT" ]
990
2018-06-05T11:49:22.000Z
2022-03-31T08:59:17.000Z
100-200q/123.py
rampup01/Leetcode
8450a95a966ef83b24ffe6450f06ce8de92b3efb
[ "MIT" ]
1
2021-11-01T01:29:38.000Z
2021-11-01T01:29:38.000Z
100-200q/123.py
rampup01/Leetcode
8450a95a966ef83b24ffe6450f06ce8de92b3efb
[ "MIT" ]
482
2018-06-12T22:16:53.000Z
2022-03-29T00:23:29.000Z
''' Say you have an array for which the ith element is the price of a given stock on day i. Design an algorithm to find the maximum profit. You may complete at most two transactions. Note: You may not engage in multiple transactions at the same time (i.e., you must sell the stock before you buy again). Example 1...
30.647059
121
0.579655
95ca4ff47bbf69d356929cfddbfe83070e5ea793
2,077
py
Python
lambdas/verify_admin.py
charvi-a/320-S20-Track1
ac97504fc1fdedb1c311773b015570eeea8a8663
[ "BSD-3-Clause" ]
9
2019-12-30T16:32:22.000Z
2020-03-03T20:14:47.000Z
lambdas/verify_admin.py
charvi-a/320-S20-Track1
ac97504fc1fdedb1c311773b015570eeea8a8663
[ "BSD-3-Clause" ]
283
2020-02-03T15:16:03.000Z
2020-05-05T03:18:59.000Z
lambdas/verify_admin.py
charvi-a/320-S20-Track1
ac97504fc1fdedb1c311773b015570eeea8a8663
[ "BSD-3-Clause" ]
3
2020-04-16T15:23:29.000Z
2020-05-12T00:38:41.000Z
import json from package.query_db import query from package.dictionary_to_list import dictionary_to_list from package.lambda_exception import LambdaException from boto3 import client as boto3_client
42.387755
148
0.639384
95cadfb3b8d6c3a18abd5334655fd77acc7c9759
4,821
py
Python
run.py
Galaxy-SynBioCAD/rp2paths
f87ea0f64556be44af1ae717cd4246159253d029
[ "MIT" ]
null
null
null
run.py
Galaxy-SynBioCAD/rp2paths
f87ea0f64556be44af1ae717cd4246159253d029
[ "MIT" ]
null
null
null
run.py
Galaxy-SynBioCAD/rp2paths
f87ea0f64556be44af1ae717cd4246159253d029
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 """ Created on September 21 2019 @author: Melchior du Lac @description: Wrap rp2paths into a docker """ import argparse import tempfile import os import logging import shutil import docker import glob def main(rp_pathways, rp2paths_pathways, rp2paths_compounds, timeout=30, max_steps=0, max_pa...
43.827273
158
0.611077
95cae2c1de14d040a592e9ed57f23f978ae86e71
150
py
Python
test_cases/conftest.py
majdukovic/pybooker
b9a373d556be0481c93a528f731407ca7a47b11f
[ "MIT" ]
null
null
null
test_cases/conftest.py
majdukovic/pybooker
b9a373d556be0481c93a528f731407ca7a47b11f
[ "MIT" ]
null
null
null
test_cases/conftest.py
majdukovic/pybooker
b9a373d556be0481c93a528f731407ca7a47b11f
[ "MIT" ]
null
null
null
import pytest from framework.services.booker_client import BookerClient booker_client = BookerClient()
15
57
0.786667
95cb8a34cde724ada03c12bdaeb21669317ed997
402
py
Python
verilator/scripts/concat_up5k.py
micro-FPGA/engine-V
00a8f924e10fc69874d9c179f788bf037fe9c407
[ "Apache-2.0" ]
44
2018-11-19T16:49:10.000Z
2021-12-05T10:16:24.000Z
verilator/scripts/concat_up5k.py
micro-FPGA/engine-V
00a8f924e10fc69874d9c179f788bf037fe9c407
[ "Apache-2.0" ]
null
null
null
verilator/scripts/concat_up5k.py
micro-FPGA/engine-V
00a8f924e10fc69874d9c179f788bf037fe9c407
[ "Apache-2.0" ]
5
2018-12-05T23:43:21.000Z
2020-09-03T04:36:34.000Z
spiFile = open('spiflash.bin','wb') # 128KB is reserved for bitstream bitFile = open('../bitstream/mf8a18_rv32i.bin','rb') bitData = bitFile.read(0x20000) riscvFile = open('riscv.bin','rb') riscvData = riscvFile.read(32768) spiFile.write(bitData) spiFile.seek(0x20000) spiFile.write(riscvData) nullData = bytearray...
17.478261
52
0.748756
95cda288d497faae566e114db4bdc1e1b83b2b52
753
py
Python
pyvista_gui/options.py
akaszynski/pyvista-gui
4ed7e3a52026dfeab4e82a300b92a92f43060dda
[ "MIT" ]
6
2019-11-20T20:08:42.000Z
2022-02-24T12:24:20.000Z
pyvista_gui/options.py
akaszynski/pyvista-gui
4ed7e3a52026dfeab4e82a300b92a92f43060dda
[ "MIT" ]
6
2020-01-27T16:15:11.000Z
2021-04-12T11:42:11.000Z
pyvista_gui/options.py
akaszynski/pyvista-gui
4ed7e3a52026dfeab4e82a300b92a92f43060dda
[ "MIT" ]
null
null
null
"""Options for saving user prefences, etc. """ import json import os import pyvista # The options rcParams = RcParams( dark_mode=False, ) # Load user prefences from last session if none exist, save defaults try: rcParams.load() except: rcParams.save()
19.815789
68
0.629482
95cdaf4dfa1b6e4f1d482661c80dff3aa859d8b1
11,978
py
Python
validatearcgisenterprisedeployment.py
pheede/ArcGIS-Server-Stuff
9b491d2f4edebec3f613182981f4e50dcc7641a3
[ "Apache-2.0" ]
6
2017-05-31T10:44:09.000Z
2020-12-18T18:12:15.000Z
validatearcgisenterprisedeployment.py
pheede/ArcGIS-Server-Stuff
9b491d2f4edebec3f613182981f4e50dcc7641a3
[ "Apache-2.0" ]
1
2021-09-30T21:20:59.000Z
2021-09-30T23:55:48.000Z
validatearcgisenterprisedeployment.py
pheede/ArcGIS-Server-Stuff
9b491d2f4edebec3f613182981f4e50dcc7641a3
[ "Apache-2.0" ]
2
2017-12-28T19:30:23.000Z
2019-10-04T20:34:27.000Z
"""This script validates an ArcGIS Enterprise deployment to ensure it is configured properly with all the required components such as Portal for ArcGIS, ArcGIS Server, ArcGIS Data Store and the associated configuration. Designed for ArcGIS Enterprise 10.5 and higher.""" # Author: Philip Heede <pheede@esri.com> # Last...
46.972549
153
0.655034
95ce4cab43e2034234aed87a60cc3f00447f9524
4,445
py
Python
2020/aoc/__init__.py
amochtar/adventofcode
292e7f00a1e19d2149d00246b0a77fedfcd3bd08
[ "MIT" ]
1
2019-12-27T22:36:30.000Z
2019-12-27T22:36:30.000Z
2020/aoc/__init__.py
amochtar/adventofcode
292e7f00a1e19d2149d00246b0a77fedfcd3bd08
[ "MIT" ]
null
null
null
2020/aoc/__init__.py
amochtar/adventofcode
292e7f00a1e19d2149d00246b0a77fedfcd3bd08
[ "MIT" ]
null
null
null
import itertools import re import math from typing import List, Tuple def ints(text: str) -> Tuple[int, ...]: "Return a tuple of all ints in a string" return tuple(map(int, re.findall(r'-?\b\d+\b', text))) def powerset(iterable): "powerset([1,2,3]) --> () (1,) (2,) (3,) (1,2) (1,3) (2,3) (1,2,3)" s ...
26.939394
109
0.526659
95ce971f5a305cd3a19578c204fef92020757f3c
4,431
py
Python
pi_source_code.py
cjkuhlmann/CCHack2019
fb6eb505ac350c2dda0c36e1f33254fbeef049bf
[ "MIT" ]
null
null
null
pi_source_code.py
cjkuhlmann/CCHack2019
fb6eb505ac350c2dda0c36e1f33254fbeef049bf
[ "MIT" ]
null
null
null
pi_source_code.py
cjkuhlmann/CCHack2019
fb6eb505ac350c2dda0c36e1f33254fbeef049bf
[ "MIT" ]
null
null
null
import math import time from max30105 import MAX30105, HeartRate import smbus from bme280 import BME280 import socket #from matplotlib import pyplot as plt dev = Device() dev.setup_sensors() dev.setup_network() for i in range(2): dev.update() while True: try: dev.update() dev.uplo...
28.403846
83
0.558565
95cead6bce011703374b48a18d5379f241d0c282
1,417
py
Python
butter/mas/clients/client_factory.py
bennymeg/Butter.MAS.PythonAPI
9641293436d989ae9c5324c2b8129f232822b248
[ "Apache-2.0" ]
2
2019-08-22T08:57:42.000Z
2019-11-28T14:01:49.000Z
butter/mas/clients/client_factory.py
bennymeg/Butter.MAS.PythonAPI
9641293436d989ae9c5324c2b8129f232822b248
[ "Apache-2.0" ]
null
null
null
butter/mas/clients/client_factory.py
bennymeg/Butter.MAS.PythonAPI
9641293436d989ae9c5324c2b8129f232822b248
[ "Apache-2.0" ]
null
null
null
from .client_http import HttpClient from .client_tcp import TcpClient from .client_udp import UdpClient from .client import Client
30.148936
81
0.56669
95ceaebae16674be2fef2960c47326152d1eb461
1,569
py
Python
scrapytest/spiders/ScrapyDemo5.py
liang1024/Scrapy
bfa7ea5b2174bf91c49f4da9dadc5471acc43092
[ "Apache-2.0" ]
null
null
null
scrapytest/spiders/ScrapyDemo5.py
liang1024/Scrapy
bfa7ea5b2174bf91c49f4da9dadc5471acc43092
[ "Apache-2.0" ]
null
null
null
scrapytest/spiders/ScrapyDemo5.py
liang1024/Scrapy
bfa7ea5b2174bf91c49f4da9dadc5471acc43092
[ "Apache-2.0" ]
null
null
null
import scrapy ''' <ul class="pager"> <li class="next"> <a href="/page/2/">Next <span aria-hidden="true">&rarr;</span></a> </li> </ul> shell >>> response.css('li.next a').extract_first() '<a href="/page/2/">Next <span aria-hidden="true"></span></a>' hrefScrapyCSS >>> response.css('li.next a::attr(...
24.138462
116
0.66348
95cf45edd5e367889b2e72c5aaae8636bfca5ddc
909
py
Python
tests/test_objectives.py
theislab/AutoGeneS
22bde0d5eba013e90edb85341e0bd9c28b82e7fd
[ "MIT" ]
46
2020-02-25T14:09:21.000Z
2022-01-20T16:42:40.000Z
tests/test_objectives.py
theislab/AutoGeneS
22bde0d5eba013e90edb85341e0bd9c28b82e7fd
[ "MIT" ]
16
2020-03-18T15:08:42.000Z
2022-01-29T20:00:10.000Z
tests/test_objectives.py
theislab/AutoGeneS
22bde0d5eba013e90edb85341e0bd9c28b82e7fd
[ "MIT" ]
6
2020-02-13T14:23:46.000Z
2021-12-28T16:50:50.000Z
import pytest import numpy as np import pandas as pd from scipy.special import binom import os import sys sys.path.insert(0, "..") from autogenes import objectives as ga_objectives
23.307692
84
0.630363
95cf9c3a1a9e3db6fb75803b4f3891c4c503d528
15,563
py
Python
digits/model/forms.py
Linda-liugongzi/DIGITS-digits-py3
6df5eb6972574a628b9544934518ec8dfa9c7439
[ "BSD-3-Clause" ]
null
null
null
digits/model/forms.py
Linda-liugongzi/DIGITS-digits-py3
6df5eb6972574a628b9544934518ec8dfa9c7439
[ "BSD-3-Clause" ]
null
null
null
digits/model/forms.py
Linda-liugongzi/DIGITS-digits-py3
6df5eb6972574a628b9544934518ec8dfa9c7439
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright (c) 2014-2017, NVIDIA CORPORATION. All rights reserved. import os import flask from flask_wtf import FlaskForm import wtforms from wtforms import validators from digits.config import config_value from digits.device_query import get_device, get_nvml_info from digits import utils f...
36.791962
122
0.556512
95d02019dda244ece2c09a15f8673c55536ad4de
1,155
py
Python
004 Sons/afinacao.py
yamadathamine/300ideiasparaprogramarPython
331a063bbf8bcd117ae5a34324b8176a6014fc98
[ "MIT" ]
null
null
null
004 Sons/afinacao.py
yamadathamine/300ideiasparaprogramarPython
331a063bbf8bcd117ae5a34324b8176a6014fc98
[ "MIT" ]
4
2020-06-09T19:10:04.000Z
2020-06-17T18:23:47.000Z
004 Sons/afinacao.py
yamadathamine/300ideiasparaprogramarPython
331a063bbf8bcd117ae5a34324b8176a6014fc98
[ "MIT" ]
null
null
null
# encoding: utf-8 # usando python 3 # Afinao - Alberto toca violo e programador. # Precisando afinar o violo e sem diapaso por perto, # resolveu fazer um programa para ajud-lo. # O que ele queria era a nota L soando sem parar at que ele conseguisse afinar a # respectiva corda do violo; as demais cordas ele poderi...
35
88
0.735931
95d0529ff78fe4e15217221008da8dabb874d847
138
py
Python
python/flask-app/data.py
zkan/100DaysOfCode
3c713ead94a9928e2d0f8d794e49ec202dc64ba3
[ "MIT" ]
2
2019-05-01T00:32:30.000Z
2019-11-20T05:23:05.000Z
python/flask-app/data.py
zkan/100DaysOfCode
3c713ead94a9928e2d0f8d794e49ec202dc64ba3
[ "MIT" ]
15
2020-09-05T18:35:04.000Z
2022-03-11T23:44:47.000Z
python/flask-app/data.py
zkan/100DaysOfCode
3c713ead94a9928e2d0f8d794e49ec202dc64ba3
[ "MIT" ]
null
null
null
fav_beer = {'Julian': 'White Rabbit Dark Ale', 'Bob': 'Some sort of light beer I assume', 'Mike': 'Oregano Beer'}
34.5
54
0.550725
95d185b829b29c3736cdbb9908672dc12ffef154
548
py
Python
appengine/chrome_infra_packages/apps.py
mithro/chromium-infra
d27ac0b230bedae4bc968515b02927cf9e17c2b7
[ "BSD-3-Clause" ]
1
2018-01-02T05:47:07.000Z
2018-01-02T05:47:07.000Z
appengine/chrome_infra_packages/apps.py
mithro/chromium-infra
d27ac0b230bedae4bc968515b02927cf9e17c2b7
[ "BSD-3-Clause" ]
null
null
null
appengine/chrome_infra_packages/apps.py
mithro/chromium-infra
d27ac0b230bedae4bc968515b02927cf9e17c2b7
[ "BSD-3-Clause" ]
null
null
null
# Copyright 2014 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """Actual WSGI app instantiations used from app.yaml. Extracted to a separate module to avoid calling 'initialize' in unit tests during module loading time....
28.842105
74
0.810219
95d4bf219897990197feea13feb7cf1258d214c8
6,298
py
Python
yadlt/core/layers.py
Perfect-SoftwareEngineer/Deep-Learning-Tensorflow
b191cd2c8ff9d8cb6e2c6dedcac4483fa7548366
[ "MIT" ]
null
null
null
yadlt/core/layers.py
Perfect-SoftwareEngineer/Deep-Learning-Tensorflow
b191cd2c8ff9d8cb6e2c6dedcac4483fa7548366
[ "MIT" ]
null
null
null
yadlt/core/layers.py
Perfect-SoftwareEngineer/Deep-Learning-Tensorflow
b191cd2c8ff9d8cb6e2c6dedcac4483fa7548366
[ "MIT" ]
null
null
null
"""Layer classes.""" from __future__ import absolute_import import abc import six import tensorflow as tf
28.497738
77
0.563671
95d7f54672f221417081565b033268249f18412b
835
py
Python
tests/test_modules/test_builtin/test_grouppart.py
MattTaylorDLS/pymalcolm
995a8e4729bd745f8f617969111cc5a34ce1ac14
[ "Apache-2.0" ]
null
null
null
tests/test_modules/test_builtin/test_grouppart.py
MattTaylorDLS/pymalcolm
995a8e4729bd745f8f617969111cc5a34ce1ac14
[ "Apache-2.0" ]
null
null
null
tests/test_modules/test_builtin/test_grouppart.py
MattTaylorDLS/pymalcolm
995a8e4729bd745f8f617969111cc5a34ce1ac14
[ "Apache-2.0" ]
null
null
null
import unittest from malcolm.core import call_with_params from malcolm.modules.builtin.parts import GroupPart
32.115385
70
0.653892
95d8eae1e421c5a5d85e31ca5953813a5295d371
512
py
Python
ok2_backend/common/utils.py
Mipsters/ok2-backend
50ddbb44262749d731f4e923add205541254223d
[ "MIT" ]
1
2020-02-10T17:53:58.000Z
2020-02-10T17:53:58.000Z
ok2_backend/common/utils.py
Mipsters/ok2-backend
50ddbb44262749d731f4e923add205541254223d
[ "MIT" ]
6
2020-01-06T19:37:12.000Z
2021-09-22T18:03:31.000Z
ok2_backend/common/utils.py
Mipsters/ok2-backend
50ddbb44262749d731f4e923add205541254223d
[ "MIT" ]
5
2019-11-18T17:39:29.000Z
2020-07-31T16:00:21.000Z
import os from jose import jwt from datetime import datetime, timedelta JWT_SECRET = 'secret' JWT_ALGORITHM = 'HS256' JWT_EXP_DELTA_SECONDS = 31556952 # year
23.272727
85
0.722656
95da8c78112cb6f44e754d89ffd5c8e26c67e104
1,238
py
Python
backend/ai4all_api/models.py
kevromster/ai4all
39da1a95c4e06780f5712bb6e6ecb1f570e5d639
[ "Apache-2.0" ]
null
null
null
backend/ai4all_api/models.py
kevromster/ai4all
39da1a95c4e06780f5712bb6e6ecb1f570e5d639
[ "Apache-2.0" ]
null
null
null
backend/ai4all_api/models.py
kevromster/ai4all
39da1a95c4e06780f5712bb6e6ecb1f570e5d639
[ "Apache-2.0" ]
null
null
null
import os from django.db import models from ai4all_api.detection_items import DETECTION_ITEMS from ai4all_api.notification_types import NOTIFICATION_TYPES
35.371429
86
0.757674