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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
6bd4306cbba78d516d0027f40cedd02fdc18d8f6 | 1,942 | py | Python | tests/test_transforms.py | luiarthur/advi | e461a08dcbd32836d15a3c276d27417cf619298c | [
"MIT"
] | 1 | 2020-04-04T12:58:18.000Z | 2020-04-04T12:58:18.000Z | tests/test_transforms.py | luiarthur/advi | e461a08dcbd32836d15a3c276d27417cf619298c | [
"MIT"
] | null | null | null | tests/test_transforms.py | luiarthur/advi | e461a08dcbd32836d15a3c276d27417cf619298c | [
"MIT"
] | null | null | null | import unittest
import torch
import advi.transformations as trans
if __name__ == '__main__':
unittest.main()
| 33.482759 | 74 | 0.589083 |
6bd54aeda1cf3aa43806abaf7f0e2dafeca01c0d | 1,638 | py | Python | app/tests/v1/test_product.py | owezzy/StoreManager | 821856c0d502b55bd499cfe9188cd4951c5b0b75 | [
"MIT"
] | null | null | null | app/tests/v1/test_product.py | owezzy/StoreManager | 821856c0d502b55bd499cfe9188cd4951c5b0b75 | [
"MIT"
] | 2 | 2018-10-10T22:32:35.000Z | 2021-06-01T22:50:56.000Z | app/tests/v1/test_product.py | owezzy/StoreManager | 821856c0d502b55bd499cfe9188cd4951c5b0b75 | [
"MIT"
] | 1 | 2018-10-25T12:42:41.000Z | 2018-10-25T12:42:41.000Z | import unittest
import json
from app.app import create_app
POST_PRODUCT_URL = '/api/v1/products'
GET_A_SINGLE_PRODUCT = '/api/v1/product/1'
GET_ALL_PRODUCTS = '/api/v1/products'
if __name__ == '__main__':
unittest.main()
| 30.333333 | 72 | 0.623321 |
6bd88438849c3a76c7d468249205380ab8ab8c38 | 1,346 | py | Python | cryptoshredding/s3/client.py | hupe1980/cryptoshredding | 1ab5ee452c4435f486006aa2cc1a7bee440d91fe | [
"MIT"
] | null | null | null | cryptoshredding/s3/client.py | hupe1980/cryptoshredding | 1ab5ee452c4435f486006aa2cc1a7bee440d91fe | [
"MIT"
] | null | null | null | cryptoshredding/s3/client.py | hupe1980/cryptoshredding | 1ab5ee452c4435f486006aa2cc1a7bee440d91fe | [
"MIT"
] | null | null | null | import boto3
from botocore.client import BaseClient
from ..key_store import KeyStore
from .object import CryptoObject
from .stream_body_wrapper import StreamBodyWrapper
| 31.302326 | 88 | 0.641902 |
6bd9272def1931c3aead22a640fadc1a05f50b8f | 5,627 | py | Python | tests/infra/test_subnet.py | bretttegart/treadmill | 812109e31c503a6eddaee2d3f2e1faf2833b6aaf | [
"Apache-2.0"
] | 2 | 2017-10-31T18:48:20.000Z | 2018-03-04T20:35:20.000Z | tests/infra/test_subnet.py | bretttegart/treadmill | 812109e31c503a6eddaee2d3f2e1faf2833b6aaf | [
"Apache-2.0"
] | null | null | null | tests/infra/test_subnet.py | bretttegart/treadmill | 812109e31c503a6eddaee2d3f2e1faf2833b6aaf | [
"Apache-2.0"
] | null | null | null | """
Unit test for EC2 subnet.
"""
import unittest
import mock
from treadmill.infra.subnet import Subnet
| 30.090909 | 78 | 0.563355 |
6bdac7bc37d6267a61f05383477b3f0ca7a95eab | 5,138 | py | Python | tests/building/test_tokenization.py | fossabot/langumo | 2d8b30979878bb27fb07cc31879c13c5c186582c | [
"Apache-2.0"
] | 7 | 2020-09-05T08:30:25.000Z | 2021-11-01T14:07:58.000Z | tests/building/test_tokenization.py | fossabot/langumo | 2d8b30979878bb27fb07cc31879c13c5c186582c | [
"Apache-2.0"
] | 2 | 2020-09-11T14:19:47.000Z | 2021-03-05T17:22:21.000Z | tests/building/test_tokenization.py | fossabot/langumo | 2d8b30979878bb27fb07cc31879c13c5c186582c | [
"Apache-2.0"
] | 3 | 2020-09-11T14:16:06.000Z | 2021-10-31T14:18:10.000Z | import tempfile
from langumo.building import TrainTokenizer, TokenizeSentences
from langumo.utils import AuxiliaryFileManager
_dummy_corpus_content = (
'Wikipedia is a multilingual online encyclopedia created and maintained '
'as an open collaboration project by a community of volunteer editors '
'using a... | 47.137615 | 79 | 0.665434 |
6bdb7b37ea55baaa1973a1fff39476ce6ea71851 | 12,819 | py | Python | examples/BertNewsClassification/news_classifier.py | mlflow/mlflow-torchserve | 91663b630ef12313da3ad821767faf3fc409345b | [
"Apache-2.0"
] | 40 | 2020-11-13T02:08:10.000Z | 2022-03-27T07:41:57.000Z | examples/BertNewsClassification/news_classifier.py | Ideas2IT/mlflow-torchserve | d6300fb73f16d74ee2c7718c249faf485c4f3b62 | [
"Apache-2.0"
] | 23 | 2020-11-16T11:28:01.000Z | 2021-09-23T11:28:24.000Z | examples/BertNewsClassification/news_classifier.py | Ideas2IT/mlflow-torchserve | d6300fb73f16d74ee2c7718c249faf485c4f3b62 | [
"Apache-2.0"
] | 15 | 2020-11-13T10:25:25.000Z | 2022-02-01T10:13:20.000Z | # pylint: disable=W0221
# pylint: disable=W0613
# pylint: disable=E1102
# pylint: disable=W0223
import shutil
from collections import defaultdict
import numpy as np
import pandas as pd
import torch
import torch.nn.functional as F
from sklearn.model_selection import train_test_split
from torch import nn
from torch.utils... | 32.289673 | 99 | 0.620095 |
6bdbc0070f7b68477be910727f103f97f2f7c5f9 | 23 | py | Python | nerddiary/__init__.py | mishamsk/nerddiary | 2d0981c5034460f353c2994347fb95a5c94a55bd | [
"Apache-2.0"
] | null | null | null | nerddiary/__init__.py | mishamsk/nerddiary | 2d0981c5034460f353c2994347fb95a5c94a55bd | [
"Apache-2.0"
] | 5 | 2022-02-20T06:10:28.000Z | 2022-03-28T03:22:41.000Z | nerddiary/__init__.py | mishamsk/nerddiary | 2d0981c5034460f353c2994347fb95a5c94a55bd | [
"Apache-2.0"
] | null | null | null | __version__ = "0.2.2b"
| 11.5 | 22 | 0.652174 |
6bde8a8095cceac04979671e29124bd410698f7c | 3,716 | py | Python | src/toil/lib/aws/utils.py | rupertnash/toil | fd805d5fa14cca98f2bc64b322a4b546e163d6c9 | [
"Apache-2.0"
] | 6 | 2018-05-27T05:09:11.000Z | 2020-07-01T17:02:40.000Z | src/toil/lib/aws/utils.py | rupertnash/toil | fd805d5fa14cca98f2bc64b322a4b546e163d6c9 | [
"Apache-2.0"
] | 1 | 2020-07-01T18:31:30.000Z | 2020-07-08T14:03:39.000Z | src/toil/lib/aws/utils.py | rupertnash/toil | fd805d5fa14cca98f2bc64b322a4b546e163d6c9 | [
"Apache-2.0"
] | 1 | 2020-04-06T15:04:44.000Z | 2020-04-06T15:04:44.000Z | # Copyright (C) 2015-2021 Regents of the University of California
#
# 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 app... | 45.876543 | 110 | 0.741389 |
6bdeffb0d14dc1d4dca20f695831236be20df06b | 3,389 | py | Python | src/data/processed_data.py | Victoradukwu/titanic | 18a4e8fe7dbe755a946512ca71b1d2a2f5932c64 | [
"MIT"
] | null | null | null | src/data/processed_data.py | Victoradukwu/titanic | 18a4e8fe7dbe755a946512ca71b1d2a2f5932c64 | [
"MIT"
] | null | null | null | src/data/processed_data.py | Victoradukwu/titanic | 18a4e8fe7dbe755a946512ca71b1d2a2f5932c64 | [
"MIT"
] | null | null | null | import os
import numpy as np
import pandas as pd
# modify the function to reduce number of titles and return more meaningful functions
if __name__ == '__main__':
df = read_data()
df = process_data(df)
write_data(df)
| 33.554455 | 130 | 0.59044 |
6be02c0cdca45be2d0933fe3cbd070df05fee26e | 59,336 | py | Python | clustergrammer/upload_pages/clustergrammer_old.py | delosrogers/clustergrammer-web | 14102cfca328214d3bc8285e8331663fe0e5fad4 | [
"MIT"
] | 5 | 2018-04-04T16:25:06.000Z | 2021-04-10T23:47:20.000Z | clustergrammer/upload_pages/clustergrammer_old.py | delosrogers/clustergrammer-web | 14102cfca328214d3bc8285e8331663fe0e5fad4 | [
"MIT"
] | 8 | 2016-07-16T02:55:12.000Z | 2022-02-02T16:42:17.000Z | clustergrammer/upload_pages/clustergrammer_old.py | delosrogers/clustergrammer-web | 14102cfca328214d3bc8285e8331663fe0e5fad4 | [
"MIT"
] | 4 | 2019-05-28T08:52:41.000Z | 2021-01-11T22:14:48.000Z | # define a class for networks
| 31.528162 | 130 | 0.603546 |
6be28791480695f18cfb74b2706fdb1c647fff80 | 523 | py | Python | May 2019/brick_sort.py | Gern-Yataro/Daily-CS | 194e8c2b23964300f39a8ed4f06d355360197766 | [
"MIT"
] | 1 | 2019-04-15T01:09:04.000Z | 2019-04-15T01:09:04.000Z | May 2019/brick_sort.py | Gern-Yataro/Daily-CS | 194e8c2b23964300f39a8ed4f06d355360197766 | [
"MIT"
] | null | null | null | May 2019/brick_sort.py | Gern-Yataro/Daily-CS | 194e8c2b23964300f39a8ed4f06d355360197766 | [
"MIT"
] | null | null | null | numbers = [9, 8, 7, 6, 5, 4, 3, 2, 1]
print(brick_sort(numbers))
| 23.772727 | 67 | 0.581262 |
6be3244eac9c140c3d63372c0ad3149ef60a64c1 | 1,676 | py | Python | sanctuary/topic/api.py | 20CM/Sanctuary | 14694d9bd6376bdc05248741a91df778400e9f66 | [
"BSD-3-Clause"
] | 1 | 2017-05-29T11:53:06.000Z | 2017-05-29T11:53:06.000Z | sanctuary/topic/api.py | 20CM/Sanctuary | 14694d9bd6376bdc05248741a91df778400e9f66 | [
"BSD-3-Clause"
] | null | null | null | sanctuary/topic/api.py | 20CM/Sanctuary | 14694d9bd6376bdc05248741a91df778400e9f66 | [
"BSD-3-Clause"
] | null | null | null | from rest_framework import status
from rest_framework.response import Response
from rest_framework.permissions import BasePermission, SAFE_METHODS, IsAuthenticatedOrReadOnly
from .models import Topic, Reply
from sanctuary.viewsets import NoDestroyModelViewSet
from .serializers import TopicSerializer, ReplySerializer
... | 35.659574 | 94 | 0.755967 |
6be3f12ed534c88956efb0cde9bfba8da5449ad9 | 1,113 | py | Python | server/face_recogniser.py | fvalle1/ai_server | 0bbb2b842a329ca8bbeb6529a2008b61dcc77cc0 | [
"MIT"
] | 1 | 2021-03-10T15:37:21.000Z | 2021-03-10T15:37:21.000Z | server/face_recogniser.py | fvalle1/ai_server | 0bbb2b842a329ca8bbeb6529a2008b61dcc77cc0 | [
"MIT"
] | null | null | null | server/face_recogniser.py | fvalle1/ai_server | 0bbb2b842a329ca8bbeb6529a2008b61dcc77cc0 | [
"MIT"
] | null | null | null | import cv2 as cv
from model import model
| 39.75 | 134 | 0.615454 |
6be456b6f75f64cea006c0e15110ea8fb947a3b6 | 503 | py | Python | code/countries_centroids.py | loris2222/ChocoData | d5b8c49f201228dd55db03dbdbafcbe846e36200 | [
"MIT"
] | null | null | null | code/countries_centroids.py | loris2222/ChocoData | d5b8c49f201228dd55db03dbdbafcbe846e36200 | [
"MIT"
] | null | null | null | code/countries_centroids.py | loris2222/ChocoData | d5b8c49f201228dd55db03dbdbafcbe846e36200 | [
"MIT"
] | null | null | null | from geopy.exc import GeocoderTimedOut
from geopy.geocoders import Nominatim
import numpy as np
import pandas as pd
# function to find the coordinate
# of a given city
loc = find_geocode('italy')
print(loc.latitude)
print(loc.longitude) | 23.952381 | 58 | 0.72167 |
6be4827cb6db3797b4e0960a8f9afb82862b44ab | 2,783 | py | Python | tests/test_cpymadtools/test_generators.py | fsoubelet/PyhDToolk | aef9d5f1fac2d4c4307d50ba5c53f6a5eb635a66 | [
"MIT"
] | 5 | 2020-05-28T09:16:01.000Z | 2021-12-27T18:59:15.000Z | tests/test_cpymadtools/test_generators.py | fsoubelet/PyhDToolk | aef9d5f1fac2d4c4307d50ba5c53f6a5eb635a66 | [
"MIT"
] | 71 | 2020-02-20T20:32:43.000Z | 2022-03-24T17:04:28.000Z | tests/test_cpymadtools/test_generators.py | fsoubelet/PyhDToolk | aef9d5f1fac2d4c4307d50ba5c53f6a5eb635a66 | [
"MIT"
] | 2 | 2021-09-28T16:01:06.000Z | 2022-03-16T19:04:23.000Z | import random
import pytest
from pyhdtoolkit.cpymadtools.generators import LatticeGenerator
| 42.166667 | 100 | 0.680201 |
6be4e81e9d40d83f06f1cfa243fa8007e8370a2f | 1,789 | py | Python | preprocessing/act_bed_construction.py | shtoneyan/sea-lion | 7e1ce9a18a147eea42e6172a2329d696f6e6aef9 | [
"MIT"
] | 1 | 2022-02-10T21:21:32.000Z | 2022-02-10T21:21:32.000Z | preprocessing/act_bed_construction.py | shtoneyan/sea-lion | 7e1ce9a18a147eea42e6172a2329d696f6e6aef9 | [
"MIT"
] | null | null | null | preprocessing/act_bed_construction.py | shtoneyan/sea-lion | 7e1ce9a18a147eea42e6172a2329d696f6e6aef9 | [
"MIT"
] | null | null | null | import pandas as pd
import re
import sys
#read bed file
#constructure acitivity table
#output tfr file
##############################################################
if __name__ == '__main__':
main()
| 28.854839 | 66 | 0.567915 |
6be8cef9f2811735b313ed8611fa3362dad56bc1 | 2,072 | py | Python | aiserver/backup/simpleserver2.py | hirasaki1985/Oreilly_deepLearning | 378b60ccec67dc616669fcd65ad14c7eddae6767 | [
"MIT"
] | null | null | null | aiserver/backup/simpleserver2.py | hirasaki1985/Oreilly_deepLearning | 378b60ccec67dc616669fcd65ad14c7eddae6767 | [
"MIT"
] | null | null | null | aiserver/backup/simpleserver2.py | hirasaki1985/Oreilly_deepLearning | 378b60ccec67dc616669fcd65ad14c7eddae6767 | [
"MIT"
] | null | null | null | import sys, socket
import json
import cgi
try:
from StringIO import StringIO
except ImportError:
from io import StringIO
import numpy as np
from http.server import BaseHTTPRequestHandler, HTTPServer
from modules.controller import Controller
# setting
host = ''
port = 8000
try:
server = HTT... | 25.9 | 89 | 0.586873 |
6bedb7df070733efc849ec3f70b009e7c5d82ea3 | 1,214 | py | Python | get_machine_id.py | Server-Factory/Parallels-Utils | 9b5c724b59832abf0506c5f632b0122573e71cd7 | [
"Apache-2.0"
] | 1 | 2021-01-01T23:24:31.000Z | 2021-01-01T23:24:31.000Z | get_machine_id.py | Server-Factory/Parallels-Utils | 9b5c724b59832abf0506c5f632b0122573e71cd7 | [
"Apache-2.0"
] | null | null | null | get_machine_id.py | Server-Factory/Parallels-Utils | 9b5c724b59832abf0506c5f632b0122573e71cd7 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/python
import subprocess
import sys
if __name__ == "__main__":
main()
| 28.904762 | 99 | 0.490939 |
6bf3184d75c0305e0ed63aa9eb50baca989c89e5 | 1,813 | py | Python | Books/DeepLearningLearningFromTheFounderOfKeras/chapter7/sub7_2_2.py | Tim232/Python-Things | 05f0f373a4cf298e70d9668c88a6e3a9d1cd8146 | [
"MIT"
] | 2 | 2020-12-05T07:42:55.000Z | 2021-01-06T23:23:18.000Z | Books/DeepLearningLearningFromTheFounderOfKeras/chapter7/sub7_2_2.py | Tim232/Python-Things | 05f0f373a4cf298e70d9668c88a6e3a9d1cd8146 | [
"MIT"
] | null | null | null | Books/DeepLearningLearningFromTheFounderOfKeras/chapter7/sub7_2_2.py | Tim232/Python-Things | 05f0f373a4cf298e70d9668c88a6e3a9d1cd8146 | [
"MIT"
] | null | null | null | #-*-coding: utf-8-*-
#todo p.333 ~ p.340
#todo code 7-7 ~ code 7-9
#todo 7.2.2 :
import os
import keras
from keras import layers
from keras.datasets import imdb
from keras.preprocessing import sequence
max_features = 2000 #
max_len = 500 #
(x_train, y_train), (x_test, y_test) = imdb.load_data(num_words=... | 31.258621 | 110 | 0.661335 |
6bf3a11f4eaf5ef256dd41b159fcdf1ed04aaca8 | 12,158 | py | Python | transform/preprocess/student_preprocess.py | WillianFuks/papis19 | 479c5460218c8f02716dbd5c2b0b9121a4328ab0 | [
"Apache-2.0"
] | 4 | 2019-06-24T13:20:22.000Z | 2020-11-12T01:19:02.000Z | transform/preprocess/student_preprocess.py | WillianFuks/papis19 | 479c5460218c8f02716dbd5c2b0b9121a4328ab0 | [
"Apache-2.0"
] | 7 | 2019-12-16T21:55:20.000Z | 2022-02-10T00:16:54.000Z | transform/preprocess/student_preprocess.py | WillianFuks/papis19 | 479c5460218c8f02716dbd5c2b0b9121a4328ab0 | [
"Apache-2.0"
] | 8 | 2019-06-24T12:27:51.000Z | 2021-04-20T18:33:24.000Z | # Copyright 2019 Willian Fuks
#
# 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,... | 31.661458 | 89 | 0.618358 |
6bf3c5d43692793eab438e1d78d5c5d9f2609b80 | 114 | py | Python | material/assignment1/csv_example.py | mpambasange/MachineLearning | 8b813345264513a57934317b01e1311628dc5b01 | [
"MIT"
] | 16 | 2016-09-01T08:50:59.000Z | 2022-02-15T20:56:07.000Z | material/assignment1/csv_example.py | olehermanse/INF3490-PythonAI | 8b813345264513a57934317b01e1311628dc5b01 | [
"MIT"
] | 2 | 2016-10-20T09:36:19.000Z | 2017-08-29T00:28:54.000Z | material/assignment1/csv_example.py | olehermanse/INF3490-PythonAI | 8b813345264513a57934317b01e1311628dc5b01 | [
"MIT"
] | 15 | 2016-10-31T12:30:37.000Z | 2021-03-15T12:12:50.000Z | import csv
with open("european_cities.csv", "r") as f:
data = list(csv.reader(f, delimiter=';'))
print(data)
| 19 | 45 | 0.657895 |
6bf4ad195f97897af7bd9a29940a148f1e9542dc | 271 | py | Python | spacy_lookup/about.py | BasileDjigg/spacy-lookup | 16929120d03fa1215f574286072377f10b7e089b | [
"MIT"
] | null | null | null | spacy_lookup/about.py | BasileDjigg/spacy-lookup | 16929120d03fa1215f574286072377f10b7e089b | [
"MIT"
] | null | null | null | spacy_lookup/about.py | BasileDjigg/spacy-lookup | 16929120d03fa1215f574286072377f10b7e089b | [
"MIT"
] | null | null | null | __title__ = 'spacy-lookup'
__version__ = '0.0.1'
__summary__ = 'spaCy pipeline component for Named Entity Recognition based on dictionaries.'
__url__ = 'https://github.com/mpuig/spacy-lookup'
__author__ = 'Marc Puig'
__email__ = 'marc.puig@gmail.com'
__license__ = 'MIT'
| 33.875 | 92 | 0.756458 |
6bf66439de1fb3ae4352db93cc562648f32d838f | 751 | py | Python | leetcode/p690.py | mythnc/lab | 9f69482a063e3cfce2ce8832c2ef1425658c31b9 | [
"MIT"
] | null | null | null | leetcode/p690.py | mythnc/lab | 9f69482a063e3cfce2ce8832c2ef1425658c31b9 | [
"MIT"
] | null | null | null | leetcode/p690.py | mythnc/lab | 9f69482a063e3cfce2ce8832c2ef1425658c31b9 | [
"MIT"
] | null | null | null | # https://leetcode.com/problems/employee-importance/
"""
# Definition for Employee.
class Employee:
def __init__(self, id: int, importance: int, subordinates: List[int]):
self.id = id
self.importance = importance
self.subordinates = subordinates
"""
| 28.884615 | 74 | 0.559254 |
6bf727625ea059c4f0a7f91f758f96269dcdd254 | 3,916 | py | Python | python/ranking/examples/fess/train_model.py | codelibs/logana | 48b475e9fd5224821bfba7d41e755d8d64806651 | [
"Apache-2.0"
] | 2 | 2020-09-30T12:42:28.000Z | 2020-11-04T01:34:20.000Z | python/ranking/examples/fess/train_model.py | codelibs/logana | 48b475e9fd5224821bfba7d41e755d8d64806651 | [
"Apache-2.0"
] | null | null | null | python/ranking/examples/fess/train_model.py | codelibs/logana | 48b475e9fd5224821bfba7d41e755d8d64806651 | [
"Apache-2.0"
] | null | null | null | import dataclasses
import datetime
import gzip
import json
import logging
import os
from typing import Any, Dict
import numpy as np
import tensorflow as tf
from absl import flags
from loganary.ranking.common import NumpyJsonEncoder, setup_logging, setup_seed
from loganary.ranking.model import (
RankingModel,
R... | 34.350877 | 87 | 0.671348 |
6bffc6fb525922ad40eb7287ee43188f6f55ec06 | 615 | py | Python | shortner/migrations/0005_auto_20200407_1237.py | OakNinja/shortner | 8b051f4d74dc70bccd62e983ce300f8115cc72c8 | [
"BSD-3-Clause"
] | 1 | 2020-04-29T15:02:14.000Z | 2020-04-29T15:02:14.000Z | shortner/migrations/0005_auto_20200407_1237.py | OakNinja/shortner | 8b051f4d74dc70bccd62e983ce300f8115cc72c8 | [
"BSD-3-Clause"
] | null | null | null | shortner/migrations/0005_auto_20200407_1237.py | OakNinja/shortner | 8b051f4d74dc70bccd62e983ce300f8115cc72c8 | [
"BSD-3-Clause"
] | 1 | 2020-04-29T07:05:00.000Z | 2020-04-29T07:05:00.000Z | # Generated by Django 3.0.5 on 2020-04-07 12:37
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
| 27.954545 | 145 | 0.682927 |
d40116f3963560e5bc86c79d514d9d85b3020138 | 22,630 | py | Python | build-fortress.py | DFIRmadness/infosec-fortress | cc20c5c5ecf5194fdd270e7accdf927b71ed2952 | [
"MIT"
] | 33 | 2021-06-22T01:42:06.000Z | 2022-03-27T14:41:44.000Z | build-fortress.py | ED-209-MK7/infosec-fortress | cc20c5c5ecf5194fdd270e7accdf927b71ed2952 | [
"MIT"
] | 1 | 2021-06-24T09:10:03.000Z | 2021-06-28T13:25:59.000Z | build-fortress.py | ED-209-MK7/infosec-fortress | cc20c5c5ecf5194fdd270e7accdf927b71ed2952 | [
"MIT"
] | 5 | 2021-06-23T08:04:22.000Z | 2022-03-27T14:41:45.000Z | #!/bin/python3
'''
Title: build-fortress.py
Purpose: Build the infosec-fortress
Author: James Smith (DFIRmadness)
Contributors: Check the github page.
Notes: Beta
Version: 0.5
Usage: ./build-fortress.py
Functions:
+ apt update
+ dist upgrade
+ install base packages
+ create /opt/infosec-fortress
+ start log
+ install ... | 40.996377 | 210 | 0.644057 |
d4051d0a2b00e9998b74b852734dd381524320f3 | 955 | py | Python | substance/constants.py | philraj/substance | c68c8343e22fd2ac1e83b7567140c2a20f417984 | [
"Apache-2.0"
] | null | null | null | substance/constants.py | philraj/substance | c68c8343e22fd2ac1e83b7567140c2a20f417984 | [
"Apache-2.0"
] | null | null | null | substance/constants.py | philraj/substance | c68c8343e22fd2ac1e83b7567140c2a20f417984 | [
"Apache-2.0"
] | null | null | null |
Tables = Constants(
BOXES="boxes"
)
DefaultEngineBox = 'turbulent/substance-box:1.0'
EngineStates = Constants(
RUNNING="running",
STOPPED="stopped",
SUSPENDED="suspended",
UNKNOWN="unknown",
INEXISTENT="inexistent"
)
Syncher = Constants(
UP=">>",
DOWN="<<",
BOTH="<>"
)
Orchestr... | 20.76087 | 66 | 0.618848 |
d4051f0da6a3085bed81c035499b45d737816f30 | 12,482 | py | Python | scripts/identify_taxonomic_trees.py | AtilioA/wikidata-evaluation-based-on-ontologies | b726cc40a80312e92e7aa42fc24f1eee21bc40be | [
"Unlicense"
] | 2 | 2020-12-06T21:57:36.000Z | 2020-12-11T16:07:00.000Z | scripts/identify_taxonomic_trees.py | AtilioA/wikidata-evaluation-based-on-ontologies | b726cc40a80312e92e7aa42fc24f1eee21bc40be | [
"Unlicense"
] | null | null | null | scripts/identify_taxonomic_trees.py | AtilioA/wikidata-evaluation-based-on-ontologies | b726cc40a80312e92e7aa42fc24f1eee21bc40be | [
"Unlicense"
] | null | null | null | import time
import json
import sys
from pathlib import Path
from pprint import pprint
import wikidata_utils
from graphviz import Digraph
NL = "\n"
if __name__ == "__main__":
try:
fileIn = Path(sys.argv[2])
except:
fileIn = Path("output/ranking/AP1_minus_Q23958852_ranking.txt")
with ... | 37.371257 | 174 | 0.539337 |
d405da66dfc30f0e0e30d4963515d7ec89e1c3ae | 3,620 | py | Python | harakiri/model.py | ManjiKR/Harakiri | dba9fd7c63e54cf319549a15795e7a4782df8fd0 | [
"Apache-2.0"
] | null | null | null | harakiri/model.py | ManjiKR/Harakiri | dba9fd7c63e54cf319549a15795e7a4782df8fd0 | [
"Apache-2.0"
] | null | null | null | harakiri/model.py | ManjiKR/Harakiri | dba9fd7c63e54cf319549a15795e7a4782df8fd0 | [
"Apache-2.0"
] | null | null | null | from typing import Any, Iterator, List
| 22.911392 | 60 | 0.594199 |
d405f66eb96aad36fd4897d6d6488e602b579c70 | 162 | py | Python | eviction_tracker/detainer_warrants/caselink/constants/ids.py | gregziegan/eviction-tracker | 4db4bacb9675f985cf2f4a747855491e9036ad28 | [
"BSD-3-Clause"
] | 5 | 2021-09-15T08:06:59.000Z | 2022-01-26T21:25:50.000Z | eviction_tracker/detainer_warrants/caselink/constants/ids.py | gregziegan/eviction-tracker | 4db4bacb9675f985cf2f4a747855491e9036ad28 | [
"BSD-3-Clause"
] | 18 | 2022-01-14T17:15:53.000Z | 2022-02-14T07:33:53.000Z | eviction_tracker/detainer_warrants/caselink/constants/ids.py | thebritican/eviction-tracker | 1e34d509b0410d61de6abd6be521c53951fa038a | [
"BSD-3-Clause"
] | 1 | 2021-09-15T01:46:57.000Z | 2021-09-15T01:46:57.000Z | # Frames
UPDATE_FRAME = 'update'
POSTBACK_FRAME = 'postback'
# Login
USERNAME_LOGIN_FIELD = 'OPERCODE'
PASSWORD_LOGIN_FIELD = 'PASSWD'
LOGIN_BUTTON = 'LogInSub'
| 18 | 33 | 0.771605 |
d4064fd610eae924f03892b2d599dd0687c7269d | 913 | py | Python | dist/weewx-4.0.0b5/bin/weewx/junk.py | v0rts/docker-weewx | 70b2f252051dfead4fcb74e74662b297831e6342 | [
"Apache-2.0"
] | 10 | 2017-01-05T17:30:48.000Z | 2021-09-18T15:04:20.000Z | dist/weewx-4.0.0b5/bin/weewx/junk.py | v0rts/docker-weewx | 70b2f252051dfead4fcb74e74662b297831e6342 | [
"Apache-2.0"
] | 2 | 2019-07-21T10:48:42.000Z | 2022-02-16T20:36:45.000Z | dist/weewx-4.0.0b5/bin/weewx/junk.py | v0rts/docker-weewx | 70b2f252051dfead4fcb74e74662b297831e6342 | [
"Apache-2.0"
] | 12 | 2017-01-05T18:50:30.000Z | 2021-10-05T07:35:45.000Z | import weewx
| 32.607143 | 99 | 0.591457 |
d407929c4b0bf64d15071879c336b090bd7b4eb9 | 1,580 | py | Python | vision_api_batch.py | swowko51/pfch_humanvsmachine_2019 | ba5a4c0db804e62892a28c72ba2d2180c6e44282 | [
"MIT"
] | null | null | null | vision_api_batch.py | swowko51/pfch_humanvsmachine_2019 | ba5a4c0db804e62892a28c72ba2d2180c6e44282 | [
"MIT"
] | null | null | null | vision_api_batch.py | swowko51/pfch_humanvsmachine_2019 | ba5a4c0db804e62892a28c72ba2d2180c6e44282 | [
"MIT"
] | null | null | null | import io
import os
import pandas as pd
import re
# Imports the Google Cloud client library
from google.cloud import vision
from google.cloud.vision import types
# Set Google API authentication
os.environ['GOOGLE_APPLICATION_CREDENTIALS'] = "INSERT_FULL_KEY_FILE_PATH"
# ---------------------------------------------... | 28.727273 | 85 | 0.73038 |
d407d7b9d817bbd5e0d8ab001619f9db240a997f | 1,556 | py | Python | examples/ElasticsearchDomain.py | hmain/troposphere-fork | 815ee739bcf3d024e1aef5caeca4e4d63e85e98e | [
"BSD-2-Clause"
] | null | null | null | examples/ElasticsearchDomain.py | hmain/troposphere-fork | 815ee739bcf3d024e1aef5caeca4e4d63e85e98e | [
"BSD-2-Clause"
] | null | null | null | examples/ElasticsearchDomain.py | hmain/troposphere-fork | 815ee739bcf3d024e1aef5caeca4e4d63e85e98e | [
"BSD-2-Clause"
] | null | null | null | # Converted from Elasticsearch Domain example located at:
# http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticsearch-domain.html#d0e51519
from troposphere import Template, constants
from troposphere.elasticsearch import Domain, EBSOptions
from troposphere.elasticsearch import Elasticsea... | 36.186047 | 111 | 0.633676 |
d408bd7479135ab6ed59636c6e768556e8569655 | 133 | py | Python | src/fritzscrapercargo.py | jodli/FritzScraper | 7e96b5555a9e17d6920d08593d431df081c53f49 | [
"MIT"
] | 5 | 2017-12-03T07:27:26.000Z | 2020-11-05T09:58:42.000Z | src/fritzscrapercargo.py | jodli/FritzScraper | 7e96b5555a9e17d6920d08593d431df081c53f49 | [
"MIT"
] | null | null | null | src/fritzscrapercargo.py | jodli/FritzScraper | 7e96b5555a9e17d6920d08593d431df081c53f49 | [
"MIT"
] | null | null | null |
import time
| 14.777778 | 32 | 0.699248 |
d408fc1b6721eb44808e49cf65005653acafaac9 | 453 | py | Python | accounts/urls.py | yusufom/ERP | a1844d0ece0ab5fff748d75a3ac7a2a963e56576 | [
"Unlicense"
] | null | null | null | accounts/urls.py | yusufom/ERP | a1844d0ece0ab5fff748d75a3ac7a2a963e56576 | [
"Unlicense"
] | null | null | null | accounts/urls.py | yusufom/ERP | a1844d0ece0ab5fff748d75a3ac7a2a963e56576 | [
"Unlicense"
] | null | null | null | from django.urls import path
from . import views
app_name = 'accounts'
urlpatterns = [
path('', views.account_login, name='Login'),
path('logout/',views.logout_view,name='Logout'),
path('dashboard/profile/',views.user_profile_view, name='Userprofile'),
path('dashboard/profile/change-password/',views.... | 32.357143 | 90 | 0.724062 |
d40984bcd14733bbc43b1c6fcd7a5a580108415f | 4,222 | py | Python | qtpythonic/qtpythonic/lookup.py | uranusjr/qtpythonic | 97669fd1ee52ac833b732e98c0da514996914753 | [
"MIT"
] | null | null | null | qtpythonic/qtpythonic/lookup.py | uranusjr/qtpythonic | 97669fd1ee52ac833b732e98c0da514996914753 | [
"MIT"
] | null | null | null | qtpythonic/qtpythonic/lookup.py | uranusjr/qtpythonic | 97669fd1ee52ac833b732e98c0da514996914753 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import re
# Starts with a lowercase letter, followed by a sequence of lowercase letters
# and underscores.
FUNCTION_PATTERN = re.compile(r'^[a-z][a-z_]*$')
PROPERTY_PATTERN = FUNCTION_PATTERN
# Starts with an uppercase letter, followed by a sequence of uppercase letters
... | 33.776 | 78 | 0.61819 |
d409f34383374dd7cd26218ce4cee29f4ca7b7c0 | 3,917 | py | Python | footprint/models/audio.py | arthurtofani/footprint | 572401d4cba3299ae9915fca2a7d08ea1a3a9bc4 | [
"MIT"
] | null | null | null | footprint/models/audio.py | arthurtofani/footprint | 572401d4cba3299ae9915fca2a7d08ea1a3a9bc4 | [
"MIT"
] | null | null | null | footprint/models/audio.py | arthurtofani/footprint | 572401d4cba3299ae9915fca2a7d08ea1a3a9bc4 | [
"MIT"
] | null | null | null | from collections import defaultdict
import librosa
import os
import numpy as np
import h5py
| 29.900763 | 76 | 0.693643 |
d40a02528d58fe92a0117b78210b7cc191ea3776 | 2,634 | py | Python | src/solr.py | ielm/CSCI6964 | 5ab46ea68d9a1bf6192a2f3cbae0acea0e3696c8 | [
"MIT"
] | null | null | null | src/solr.py | ielm/CSCI6964 | 5ab46ea68d9a1bf6192a2f3cbae0acea0e3696c8 | [
"MIT"
] | null | null | null | src/solr.py | ielm/CSCI6964 | 5ab46ea68d9a1bf6192a2f3cbae0acea0e3696c8 | [
"MIT"
] | null | null | null | import json
import os
import urllib.request, urllib.parse
from collections import OrderedDict
from typing import List, Union, Dict
| 27.154639 | 85 | 0.509112 |
d40bd0e8a76f18b193a91aefda5569f8c67d163b | 3,773 | py | Python | modules/slack.py | KTH/Jan-Ove | 661acf5843b7b6dd459b0dddd64cffe27840e3c8 | [
"MIT"
] | null | null | null | modules/slack.py | KTH/Jan-Ove | 661acf5843b7b6dd459b0dddd64cffe27840e3c8 | [
"MIT"
] | null | null | null | modules/slack.py | KTH/Jan-Ove | 661acf5843b7b6dd459b0dddd64cffe27840e3c8 | [
"MIT"
] | null | null | null | __author__ = 'tinglev@kth.se'
import os
import re
import logging
from slackclient import SlackClient
| 31.974576 | 82 | 0.655712 |
d40c0bad03a56999b23c54f3b491a32e5393de51 | 196 | py | Python | aggregationtools/__init__.py | alexandria-julius/plttools | 0feb298e5f0d52c73b926bd127f32339bda4a62e | [
"MIT"
] | null | null | null | aggregationtools/__init__.py | alexandria-julius/plttools | 0feb298e5f0d52c73b926bd127f32339bda4a62e | [
"MIT"
] | null | null | null | aggregationtools/__init__.py | alexandria-julius/plttools | 0feb298e5f0d52c73b926bd127f32339bda4a62e | [
"MIT"
] | 2 | 2021-11-15T14:20:52.000Z | 2022-01-07T06:27:48.000Z | """ PLT tools module imports to create a better module interface """
from aggregationtools.ep_curve import EPCurve, EPType
from aggregationtools.plt import PLT
from aggregationtools.elt import ELT | 49 | 68 | 0.826531 |
d40cd5794c364cbfbd47cd7ffe66063081da15e8 | 952 | py | Python | gitconfig_parser/parser.py | seanfisk/gitconfig-parser | f747a4263bdd7fc4ffd6b6a0fe34ef7cf7e935a8 | [
"MIT"
] | null | null | null | gitconfig_parser/parser.py | seanfisk/gitconfig-parser | f747a4263bdd7fc4ffd6b6a0fe34ef7cf7e935a8 | [
"MIT"
] | null | null | null | gitconfig_parser/parser.py | seanfisk/gitconfig-parser | f747a4263bdd7fc4ffd6b6a0fe34ef7cf7e935a8 | [
"MIT"
] | 2 | 2019-03-07T04:55:29.000Z | 2019-03-28T00:59:55.000Z | """:mod:`gitconfig_parser.parser` -- Parser implementation
"""
from pyparsing import (
OneOrMore, restOfLine, Group, ZeroOrMore,
CharsNotIn, Suppress, Word, alphanums, Literal, pythonStyleComment)
| 35.259259 | 73 | 0.697479 |
d40d751818208fbb5ac12dea45e5d857cfe9c460 | 1,641 | py | Python | chroma-manager/tests/unit/chroma_api/test_command.py | GarimaVishvakarma/intel-chroma | fdf68ed00b13643c62eb7480754d3216d9295e0b | [
"MIT"
] | null | null | null | chroma-manager/tests/unit/chroma_api/test_command.py | GarimaVishvakarma/intel-chroma | fdf68ed00b13643c62eb7480754d3216d9295e0b | [
"MIT"
] | null | null | null | chroma-manager/tests/unit/chroma_api/test_command.py | GarimaVishvakarma/intel-chroma | fdf68ed00b13643c62eb7480754d3216d9295e0b | [
"MIT"
] | null | null | null |
from chroma_core.models import Command
from chroma_core.models.host import ManagedHost
from chroma_core.services.job_scheduler.job_scheduler_client import JobSchedulerClient
import mock
from tests.unit.chroma_api.chroma_api_test_case import ChromaApiTestCase
| 42.076923 | 154 | 0.604509 |
d40e05ca54d2f05415844295db6aa87aa4fcad8b | 743 | py | Python | tps/problems/forms/export.py | akmohtashami/tps-web | 9dab3ffe97c21f658be30ce2f2711dd93e4ba60f | [
"MIT"
] | 5 | 2019-02-26T06:10:43.000Z | 2021-07-24T17:11:45.000Z | tps/problems/forms/export.py | akmohtashami/tps-web | 9dab3ffe97c21f658be30ce2f2711dd93e4ba60f | [
"MIT"
] | 3 | 2019-08-15T13:56:03.000Z | 2021-06-10T18:43:16.000Z | tps/problems/forms/export.py | jonathanirvings/tps-web | 46519347d4fc8bdced9b5bceb6cdee5ea4e508f2 | [
"MIT"
] | 2 | 2018-12-28T13:12:59.000Z | 2020-12-25T18:42:13.000Z | from django import forms
from problems.models import ExportPackage
| 30.958333 | 67 | 0.664872 |
d4112f52a0cbfaf422eb8c4063d5420c3f79065c | 851 | py | Python | presenterServer.py | eliahvo/presenter-app | 9d5b90e15590316b1c769b94d1d88f62ea594f7e | [
"MIT"
] | null | null | null | presenterServer.py | eliahvo/presenter-app | 9d5b90e15590316b1c769b94d1d88f62ea594f7e | [
"MIT"
] | null | null | null | presenterServer.py | eliahvo/presenter-app | 9d5b90e15590316b1c769b94d1d88f62ea594f7e | [
"MIT"
] | null | null | null | import socket
import sys
from pynput.keyboard import Key, Controller
import time
TCP_IP = sys.argv[1]
TCP_PORT = 5005
BUFFER_SIZE = 20 # Normally 1024, but we want fast response
keyboard = Controller()
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
s.bind((TCP_IP, TCP_PORT))
s.listen(1)
print("Server: ", TC... | 19.790698 | 60 | 0.690952 |
d411989115cbd46c3d67f874ee5a2a13e7088d38 | 1,991 | py | Python | ARC_B/ARC005_B.py | ryosuke0825/atcoder_python | 185cdbe7db44ecca1aaf357858d16d31ce515ddb | [
"MIT"
] | null | null | null | ARC_B/ARC005_B.py | ryosuke0825/atcoder_python | 185cdbe7db44ecca1aaf357858d16d31ce515ddb | [
"MIT"
] | null | null | null | ARC_B/ARC005_B.py | ryosuke0825/atcoder_python | 185cdbe7db44ecca1aaf357858d16d31ce515ddb | [
"MIT"
] | null | null | null | xyw = input().split()
X = int(xyw[0])-1
Y = int(xyw[1])-1
C = []
for _ in range(9):
li = list(input())
C.append(li)
ans = ''
flg = True
if xyw[2] == 'R':
x_add = 1
for i in range(4):
ans += C[Y][X]
if X == 8:
x_add = -1
X += x_add
elif xyw[2] == 'L':
x_add = -1
... | 20.525773 | 31 | 0.353591 |
d411e41531f233c38e217781ca3261dc0049615e | 4,119 | py | Python | backend/app/api/models/auth.py | PY-GZKY/fastapi-crawl-admin | 6535054994d11e3c31b4caeae65e8fa0f495d2b7 | [
"MIT"
] | 13 | 2021-07-25T15:26:04.000Z | 2022-03-02T12:12:02.000Z | backend/app/api/models/auth.py | PY-GZKY/fastapi-crawl-admin | 6535054994d11e3c31b4caeae65e8fa0f495d2b7 | [
"MIT"
] | 1 | 2021-07-26T03:26:09.000Z | 2021-07-26T09:05:38.000Z | backend/app/api/models/auth.py | PY-GZKY/fastapi-crawl-admin | 6535054994d11e3c31b4caeae65e8fa0f495d2b7 | [
"MIT"
] | 3 | 2021-07-26T01:44:24.000Z | 2021-07-31T14:31:49.000Z |
# -*- coding: utf-8 -*-
# @Time : 2020/7/7 14:16
# @Author : CoderCharm
# @File : auth.py
# @Software: PyCharm
# @Desc :
"""
"""
from datetime import datetime
from sqlalchemy import BIGINT, Column, DateTime, Integer, SmallInteger, VARCHAR
from app.api.db.baseClass import Base
from app.api.db.baseClass i... | 37.108108 | 104 | 0.677106 |
d41296a966b725cdd8a0e830cd9e45a19e9ec57d | 729 | py | Python | djangocms_markdown/cms_plugins.py | tuan243/djangocms-markdown | 53dbf2473da013987e0bc53103a2b894f5463c0c | [
"MIT"
] | null | null | null | djangocms_markdown/cms_plugins.py | tuan243/djangocms-markdown | 53dbf2473da013987e0bc53103a2b894f5463c0c | [
"MIT"
] | null | null | null | djangocms_markdown/cms_plugins.py | tuan243/djangocms-markdown | 53dbf2473da013987e0bc53103a2b894f5463c0c | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""Implementation of CMSPluginBase class for ``cmsplugin-markdown``."""
from cms.plugin_base import CMSPluginBase
from cms.plugin_pool import plugin_pool
from django.utils.translation import ugettext_lazy as _
from djangocms_markdown.models import Markdown
plugin_pool.register_plugin(Markdow... | 30.375 | 74 | 0.757202 |
d4137fb795db6c1885430d3738fc61716e37a474 | 3,226 | py | Python | newserver/server.py | packedbread/hack.moscow | d00aeabd5b46d1c95990e181cb08895e9a4e2ff7 | [
"MIT"
] | null | null | null | newserver/server.py | packedbread/hack.moscow | d00aeabd5b46d1c95990e181cb08895e9a4e2ff7 | [
"MIT"
] | 2 | 2021-03-09T22:13:16.000Z | 2021-05-10T18:42:36.000Z | newserver/server.py | packedbread/hack.moscow | d00aeabd5b46d1c95990e181cb08895e9a4e2ff7 | [
"MIT"
] | null | null | null | from concurrent.futures import ProcessPoolExecutor
from storage import ClientStorage
from aiohttp import web, hdrs
import aiofiles
import tempfile
import asyncio
import logging
import shutil
import os
MAX_FILE_SIZE = 20 * 1024 * 1024
PROCESS_POOL_SIZE = 8
STATIC_PATH = '../client/dist'
TEMP_PATH = 'temp'
logger = log... | 27.810345 | 85 | 0.6646 |
d413f6505308e4d39c96e7ca124b0fa0f103d091 | 8,548 | py | Python | t2dm/manager/intelligence/interactions/inpatient1.py | nhsx-mirror/SynPath_Diabetes | 1d9bd1c83f20820a35125c94e8b058bdd1a6ac3c | [
"MIT"
] | null | null | null | t2dm/manager/intelligence/interactions/inpatient1.py | nhsx-mirror/SynPath_Diabetes | 1d9bd1c83f20820a35125c94e8b058bdd1a6ac3c | [
"MIT"
] | null | null | null | t2dm/manager/intelligence/interactions/inpatient1.py | nhsx-mirror/SynPath_Diabetes | 1d9bd1c83f20820a35125c94e8b058bdd1a6ac3c | [
"MIT"
] | 1 | 2021-09-29T10:00:23.000Z | 2021-09-29T10:00:23.000Z | import datetime
# Interactions for inpatient care
# "review_and_consultation",
# "bd_hypoglycaemic_ep",
# "bd_hyperglycaemic_ep",
# "bd_lower_limb_compl",
# "enhanced_independence",
# "retinal_procedure",
# "amputation"
# Inpatient interaction 1: Inpatient review and consultation (might take out if not in spell)
# ... | 31.776952 | 94 | 0.62576 |
d414c13a693261e067977fffbcfd18adb9931eb1 | 881 | py | Python | src/adafruit-circuitpython-bundle-4.x-mpy-20190713/examples/miniesptool_esp32nina.py | mbaaba/solar_panel | 42059d8c61320494ad1298065dbc50cd9b3bd51e | [
"MIT"
] | 1 | 2020-04-13T16:10:53.000Z | 2020-04-13T16:10:53.000Z | infra/libs-400rc2-20190512/examples/miniesptool_esp32nina.py | jadudm/feather-isa | b7419e6698c3f64be4d8122656eb8124631ca859 | [
"MIT"
] | null | null | null | infra/libs-400rc2-20190512/examples/miniesptool_esp32nina.py | jadudm/feather-isa | b7419e6698c3f64be4d8122656eb8124631ca859 | [
"MIT"
] | null | null | null | import time
import board
import busio
from digitalio import DigitalInOut, Direction # pylint: disable=unused-import
import adafruit_miniesptool
print("ESP32 Nina-FW")
uart = busio.UART(board.TX, board.RX, baudrate=115200, timeout=1)
resetpin = DigitalInOut(board.D5)
gpio0pin = DigitalInOut(board.D6)
espt... | 30.37931 | 81 | 0.708286 |
d416c187ae283cbe42a03ab6bc7df55912901374 | 148 | py | Python | python/client/parser/__init__.py | loumir/modelinstanceinvot-code | 246bd04b9eab558813ef09ad69a2a2f3ed7d2d92 | [
"Unlicense"
] | null | null | null | python/client/parser/__init__.py | loumir/modelinstanceinvot-code | 246bd04b9eab558813ef09ad69a2a2f3ed7d2d92 | [
"Unlicense"
] | 2 | 2022-03-09T18:39:21.000Z | 2022-03-11T16:27:45.000Z | python/client/parser/__init__.py | loumir/modelinstanceinvot-code | 246bd04b9eab558813ef09ad69a2a2f3ed7d2d92 | [
"Unlicense"
] | 1 | 2021-07-09T12:30:57.000Z | 2021-07-09T12:30:57.000Z | import sys, os
from utils.logger_setup import LoggerSetup
logger = LoggerSetup.get_logger()
logger.info("client.inst_builder package intialized")
| 21.142857 | 53 | 0.817568 |
d417880052032f76146a52a10cf7662251c5d90b | 122 | py | Python | typeconversion.py | ShivamDevopsCommunity/Python_app | aa496fab65267061d5b4f4f374f63d2b5ae43f67 | [
"Apache-2.0"
] | 1 | 2020-07-23T11:30:22.000Z | 2020-07-23T11:30:22.000Z | typeconversion.py | ShivamDevopsCommunity/Python_app | aa496fab65267061d5b4f4f374f63d2b5ae43f67 | [
"Apache-2.0"
] | null | null | null | typeconversion.py | ShivamDevopsCommunity/Python_app | aa496fab65267061d5b4f4f374f63d2b5ae43f67 | [
"Apache-2.0"
] | null | null | null | birth_year = input('Birth year: ')
print(type(birth_year))
age = 2020 - int(birth_year)
print(type(age))
print(age)
| 10.166667 | 34 | 0.680328 |
d418716dae9acd4334a9f34e0f2074dd64298ebb | 451 | py | Python | sqlalchemy/test_delete.py | WebSofter/lessnor | f5843a29f443126d30955a2fe4e7f3cadb216ad8 | [
"MIT"
] | null | null | null | sqlalchemy/test_delete.py | WebSofter/lessnor | f5843a29f443126d30955a2fe4e7f3cadb216ad8 | [
"MIT"
] | null | null | null | sqlalchemy/test_delete.py | WebSofter/lessnor | f5843a29f443126d30955a2fe4e7f3cadb216ad8 | [
"MIT"
] | null | null | null | #Import our configuration functions
from models import Film
from config import get_session
#Get instances for working with DB
session = get_session()
#***********************Working with db********************
#Update spcify row v1
film = session.query(Film).filter(Film.id == 3).one()
session.delete(film)
session.co... | 25.055556 | 61 | 0.687361 |
d41946ca90fe6073895898eb60b2f62a025bcdcd | 1,045 | py | Python | kakakucom-scrape/recover.py | GINK03/itmedia-scraping | 5afbe06dd0aa12db1694a2b387aa2eeafb20e981 | [
"MIT"
] | 16 | 2018-02-06T14:43:41.000Z | 2021-01-23T05:07:33.000Z | kakakucom-scrape/recover.py | GINK03/itmedia-scraping | 5afbe06dd0aa12db1694a2b387aa2eeafb20e981 | [
"MIT"
] | null | null | null | kakakucom-scrape/recover.py | GINK03/itmedia-scraping | 5afbe06dd0aa12db1694a2b387aa2eeafb20e981 | [
"MIT"
] | 4 | 2018-01-16T13:50:43.000Z | 2019-12-16T19:45:54.000Z | import glob
import json
import pickle
import gzip
import os
import hashlib
import re
import bs4
import concurrent.futures
names = set([name.split('/').pop() for name in glob.glob('hrefs/*')])
size = len(names)
urls = set()
args = [(index, size, name) for index, name in enumerate(names)]
_map(args[0])
with con... | 20.9 | 71 | 0.639234 |
d41ba959656db47ebcf8cbb11038ffe513c678ca | 7,339 | py | Python | scrounger/core/session.py | NORD-Function/IOS-tools | dd393666aa1ba1117d1c472cfdef4d0b18216904 | [
"BSD-3-Clause"
] | 217 | 2018-08-23T12:00:45.000Z | 2022-01-20T12:09:09.000Z | scrounger/core/session.py | Warlockk/scrounger | dd393666aa1ba1117d1c472cfdef4d0b18216904 | [
"BSD-3-Clause"
] | 18 | 2018-08-24T09:28:54.000Z | 2020-05-19T04:49:54.000Z | scrounger/core/session.py | Warlockk/scrounger | dd393666aa1ba1117d1c472cfdef4d0b18216904 | [
"BSD-3-Clause"
] | 48 | 2018-08-23T12:51:45.000Z | 2022-01-20T12:09:02.000Z | """
Module that holds all information of a session of scrounger
"""
# custom module imports
from sys import path as _path
# config imports
from scrounger.utils.config import _SCROUNGER_HOME
def load_sessions(filename):
"""
Loads a list of sessions from a file
:param str filename: the file path to load ... | 28.55642 | 80 | 0.571331 |
d41d1b57c833f3f45020982a1362ffc5bb62328a | 8,703 | py | Python | deepmath/treegen/cnf_model_test.py | LaudateCorpus1/deepmath | b5b721f54de1d5d6a02d78f5da5995237f9995f9 | [
"Apache-2.0"
] | 830 | 2016-11-07T21:46:27.000Z | 2022-03-23T08:01:03.000Z | deepmath/treegen/cnf_model_test.py | LaudateCorpus1/deepmath | b5b721f54de1d5d6a02d78f5da5995237f9995f9 | [
"Apache-2.0"
] | 26 | 2016-11-07T22:06:31.000Z | 2022-02-16T00:18:29.000Z | deepmath/treegen/cnf_model_test.py | LaudateCorpus1/deepmath | b5b721f54de1d5d6a02d78f5da5995237f9995f9 | [
"Apache-2.0"
] | 168 | 2016-11-07T21:48:55.000Z | 2022-03-19T02:47:14.000Z | # Copyright 2017 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or a... | 42.871921 | 80 | 0.649087 |
d41dac3657c44fb744404a9ec259d063e17765ee | 3,905 | py | Python | codes/utils.py | k1101jh/Alpha-Zero | f2a83f430f186ad0633e38baa31c2a042e1305b6 | [
"Apache-2.0"
] | 1 | 2021-11-12T13:36:47.000Z | 2021-11-12T13:36:47.000Z | codes/utils.py | k1101jh/Alpha-Zero | f2a83f430f186ad0633e38baa31c2a042e1305b6 | [
"Apache-2.0"
] | null | null | null | codes/utils.py | k1101jh/Alpha-Zero | f2a83f430f186ad0633e38baa31c2a042e1305b6 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
import os
import sys
import io
import importlib
import math
from typing import Dict, Iterable, List, Optional, Tuple
from games.game_types import Move, Player
from games.game_types import Point
from games.game_types import game_name_dict
from games.game_types import game_state_dict
sys.stdout ... | 29.583333 | 103 | 0.628169 |
d41fccb7523d2734e1207ea00040f62a02a41e0c | 1,545 | py | Python | obdlib/uart.py | s-s-boika/obdlib | 5b0b35276575a522d20858b6993a9bebf0acc968 | [
"MIT"
] | 9 | 2015-07-14T07:15:58.000Z | 2021-06-03T01:42:19.000Z | obdlib/uart.py | s-s-boika/obdlib | 5b0b35276575a522d20858b6993a9bebf0acc968 | [
"MIT"
] | null | null | null | obdlib/uart.py | s-s-boika/obdlib | 5b0b35276575a522d20858b6993a9bebf0acc968 | [
"MIT"
] | 4 | 2015-07-15T09:05:46.000Z | 2022-02-06T04:28:53.000Z | DEFAULT_BAUDRATE = 38400
import sys
if (hasattr(sys, 'implementation') and
sys.implementation.name == 'micropython'):
# if using pyBoard
from pyb import UART as uart_base
else:
from serial import Serial as uart_base
from obdlib.logging import logger
| 27.105263 | 77 | 0.55534 |
d422caf64fbf4d1c710933fbc0a822835d9b9411 | 6,411 | py | Python | inst/pythonScript/extraTEmergep_pall.py | niccw/repeatCraft | 84ac019189a940d884ec61b5aab0b7b87a74ed52 | [
"MIT"
] | null | null | null | inst/pythonScript/extraTEmergep_pall.py | niccw/repeatCraft | 84ac019189a940d884ec61b5aab0b7b87a74ed52 | [
"MIT"
] | null | null | null | inst/pythonScript/extraTEmergep_pall.py | niccw/repeatCraft | 84ac019189a940d884ec61b5aab0b7b87a74ed52 | [
"MIT"
] | 1 | 2022-02-19T13:30:57.000Z | 2022-02-19T13:30:57.000Z | import sys
import subprocess
from collections import defaultdict
nested_dict = lambda: defaultdict(nested_dict)
# arguments
if len(sys.argv) <= 1:
sys.exit("Usage: combineTE.py [reformatted .gff] [gap size, default=150]")
gff = sys.argv[1]
# quick check number of line of the file
sh = subprocess.run(['wc', '-l',g... | 37.273256 | 120 | 0.583684 |
d423ccff923c193b1018a53c447911773c46989d | 1,352 | py | Python | 4-gen_diffs.py | lcmd-epfl/Local_Kernel_Regression | 5be1b01fb347a8b8473ffe62a2f2d1fe2c1c4157 | [
"MIT"
] | null | null | null | 4-gen_diffs.py | lcmd-epfl/Local_Kernel_Regression | 5be1b01fb347a8b8473ffe62a2f2d1fe2c1c4157 | [
"MIT"
] | null | null | null | 4-gen_diffs.py | lcmd-epfl/Local_Kernel_Regression | 5be1b01fb347a8b8473ffe62a2f2d1fe2c1c4157 | [
"MIT"
] | null | null | null | import numpy as np
import time
import sklearn as sk
from sklearn import metrics
import gc
import sys
import pickle
init_t = time.time()
at = sys.argv[1]
ref_envs = np.load('./data/train_envs.npy',
allow_pickle=True).item()[at]
reps_dict = np.load('./data/red_reps_dict.npy', allow_pickle=True)
at... | 22.163934 | 79 | 0.623521 |
d426fe625d6ef6fff91e3cb4328137b87944afc4 | 6,540 | py | Python | crypto.py | aivalja/Crypto-Scrooge | 98fb08f3eb1008de66e02b30a70f6e772c095a48 | [
"MIT"
] | null | null | null | crypto.py | aivalja/Crypto-Scrooge | 98fb08f3eb1008de66e02b30a70f6e772c095a48 | [
"MIT"
] | null | null | null | crypto.py | aivalja/Crypto-Scrooge | 98fb08f3eb1008de66e02b30a70f6e772c095a48 | [
"MIT"
] | null | null | null | from json import loads
import argparse
from urllib.request import urlopen
from pprint import pprint
from datetime import datetime
def get_highest_volume(volume_history):
"""Returns the date with highest trading volume.
Return is format: [highest volume, date with highest volume].
"""
highest... | 38.928571 | 92 | 0.647706 |
d4276c833da8da729c76c47b1baa7513e58dc63c | 4,504 | py | Python | main.py | pechhenka/itmo_parser_table | 8cefcad00290539872759c6a4dc8050e03333a1f | [
"Unlicense"
] | null | null | null | main.py | pechhenka/itmo_parser_table | 8cefcad00290539872759c6a4dc8050e03333a1f | [
"Unlicense"
] | null | null | null | main.py | pechhenka/itmo_parser_table | 8cefcad00290539872759c6a4dc8050e03333a1f | [
"Unlicense"
] | null | null | null | import urllib3
urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning)
url = "https://abit.itmo.ru/bachelor/rating_rank/all/261/"
required_name = ' '
last_condition = ''
if __name__ == '__main__':
main()
| 30.026667 | 118 | 0.538854 |
d4284956c70586476c90480dd8b13432ac59b14e | 3,503 | py | Python | makeplotz.py | Munfred/scutils | 9c6b6ce078c0b2aeb7a9f801933cf767197f4efd | [
"Unlicense"
] | null | null | null | makeplotz.py | Munfred/scutils | 9c6b6ce078c0b2aeb7a9f801933cf767197f4efd | [
"Unlicense"
] | null | null | null | makeplotz.py | Munfred/scutils | 9c6b6ce078c0b2aeb7a9f801933cf767197f4efd | [
"Unlicense"
] | null | null | null | ### EXAMPLE JOB SUBMISISON ###
# sbatch -A SternbergGroup --gres gpu --mem=64000 -t 15:00:00 --ntasks 10 --nodes 1 --job-name "bcbg" --wrap "python bcbg.py"
### FILENAME CHANGE BEFORE RUNNING ###
model_name= 'blah'
adata_file='../blah.h5ad'
######################################
import sys
import warnings; warnings... | 35.383838 | 126 | 0.633172 |
d42854dec66dab2bfdf36e91642dcd8421c577f7 | 1,244 | py | Python | examples/injecting_existing_instance/injecting_existing_instance_example.py | allrod5/injectable | 74e640f0911480fb06fa97c1a468c3863541c0fd | [
"MIT"
] | 71 | 2018-02-05T04:12:27.000Z | 2022-02-15T23:08:16.000Z | examples/injecting_existing_instance/injecting_existing_instance_example.py | Euraxluo/injectable | 74e640f0911480fb06fa97c1a468c3863541c0fd | [
"MIT"
] | 104 | 2018-02-06T23:37:36.000Z | 2021-08-25T04:50:15.000Z | examples/injecting_existing_instance/injecting_existing_instance_example.py | Euraxluo/injectable | 74e640f0911480fb06fa97c1a468c3863541c0fd | [
"MIT"
] | 13 | 2019-02-10T18:52:50.000Z | 2022-01-26T17:12:35.000Z | """
In this example you'll see how to supply an already-initialized instance as injectable.
For whatever reason we have already initialized an instance of ``Application`` and
assigned it to the ``app`` variable so we use the
:meth:`injectable_factory <injectable.injectable_factory>` decorator in a lambda which
in turn... | 27.644444 | 88 | 0.734727 |
d42903bc52bf571f31d31df1a834976bfcbfa6a0 | 2,736 | py | Python | fHDHR/device/tuners/__init__.py | crackers8199/fHDHR_Youtube-IHOPKC | e1878d972ffba96ff813690630e30e2de8b5f504 | [
"WTFPL"
] | null | null | null | fHDHR/device/tuners/__init__.py | crackers8199/fHDHR_Youtube-IHOPKC | e1878d972ffba96ff813690630e30e2de8b5f504 | [
"WTFPL"
] | null | null | null | fHDHR/device/tuners/__init__.py | crackers8199/fHDHR_Youtube-IHOPKC | e1878d972ffba96ff813690630e30e2de8b5f504 | [
"WTFPL"
] | null | null | null |
from fHDHR.exceptions import TunerError
from .tuner import Tuner
| 31.448276 | 97 | 0.612208 |
d429bb0c4adaa592f5410526e05f433a6c840f55 | 1,057 | py | Python | cpdb/social_graph/serializers/trr_detail_serializer.py | invinst/CPDBv2_backend | b4e96d620ff7a437500f525f7e911651e4a18ef9 | [
"Apache-2.0"
] | 25 | 2018-07-20T22:31:40.000Z | 2021-07-15T16:58:41.000Z | cpdb/social_graph/serializers/trr_detail_serializer.py | invinst/CPDBv2_backend | b4e96d620ff7a437500f525f7e911651e4a18ef9 | [
"Apache-2.0"
] | 13 | 2018-06-18T23:08:47.000Z | 2022-02-10T07:38:25.000Z | cpdb/social_graph/serializers/trr_detail_serializer.py | invinst/CPDBv2_backend | b4e96d620ff7a437500f525f7e911651e4a18ef9 | [
"Apache-2.0"
] | 6 | 2018-05-17T21:59:43.000Z | 2020-11-17T00:30:26.000Z | from rest_framework import serializers
from shared.serializer import NoNullSerializer, OfficerPercentileSerializer
| 32.030303 | 75 | 0.737938 |
d42a55595da119edc0308b2e2db15256c5068aa2 | 1,478 | py | Python | PhysicsTools/HeppyCore/python/statistics/value.py | ckamtsikis/cmssw | ea19fe642bb7537cbf58451dcf73aa5fd1b66250 | [
"Apache-2.0"
] | 852 | 2015-01-11T21:03:51.000Z | 2022-03-25T21:14:00.000Z | PhysicsTools/HeppyCore/python/statistics/value.py | ckamtsikis/cmssw | ea19fe642bb7537cbf58451dcf73aa5fd1b66250 | [
"Apache-2.0"
] | 30,371 | 2015-01-02T00:14:40.000Z | 2022-03-31T23:26:05.000Z | PhysicsTools/HeppyCore/python/statistics/value.py | ckamtsikis/cmssw | ea19fe642bb7537cbf58451dcf73aa5fd1b66250 | [
"Apache-2.0"
] | 3,240 | 2015-01-02T05:53:18.000Z | 2022-03-31T17:24:21.000Z | # Copyright (C) 2014 Colin Bernet
# https://github.com/cbernet/heppy/blob/master/LICENSE
import math
import copy
| 27.886792 | 91 | 0.535183 |
d42a555feb139bc108823ade4d37c679cce5b802 | 3,317 | py | Python | mlimages/gather/__init__.py | icoxfog417/imageset | 724ce145e95a2e2c3597db43327f6e69babb83e2 | [
"MIT"
] | 29 | 2016-02-23T13:11:10.000Z | 2020-08-27T04:36:21.000Z | mlimages/gather/__init__.py | icoxfog417/imageset | 724ce145e95a2e2c3597db43327f6e69babb83e2 | [
"MIT"
] | 14 | 2016-03-22T11:37:52.000Z | 2022-03-11T23:13:57.000Z | mlimages/gather/__init__.py | icoxfog417/imageset | 724ce145e95a2e2c3597db43327f6e69babb83e2 | [
"MIT"
] | 13 | 2016-05-08T08:15:12.000Z | 2020-03-18T06:23:02.000Z | import os
import asyncio
import concurrent.futures
import requests
import aiohttp
from mlimages.util.file_api import FileAPI
import mlimages.util.log_api as LogAPI
| 36.855556 | 126 | 0.574013 |
d42f67e9e0f814fed2def88800445e02b82253cc | 401 | py | Python | ARC/arc001-arc050/arc040/a.py | KATO-Hiro/AtCoder | cbbdb18e95110b604728a54aed83a6ed6b993fde | [
"CC0-1.0"
] | 2 | 2020-06-12T09:54:23.000Z | 2021-05-04T01:34:07.000Z | ARC/arc001-arc050/arc040/a.py | KATO-Hiro/AtCoder | cbbdb18e95110b604728a54aed83a6ed6b993fde | [
"CC0-1.0"
] | 961 | 2020-06-23T07:26:22.000Z | 2022-03-31T21:34:52.000Z | ARC/arc001-arc050/arc040/a.py | KATO-Hiro/AtCoder | cbbdb18e95110b604728a54aed83a6ed6b993fde | [
"CC0-1.0"
] | null | null | null | # -*- coding: utf-8 -*-
if __name__ == '__main__':
main()
| 16.708333 | 33 | 0.456359 |
d4305b27996382bcf34ae4f2d283d939605b8ef7 | 6,622 | py | Python | labs/lab3/lab3b.py | MITLLRacecar/racecar-parth-kocheta | 6e244575b83e312880c5540342a380364032d326 | [
"MIT"
] | 1 | 2021-08-01T17:06:39.000Z | 2021-08-01T17:06:39.000Z | labs/lab3/lab3b.py | MITLLRacecar/racecar-parth-kocheta | 6e244575b83e312880c5540342a380364032d326 | [
"MIT"
] | null | null | null | labs/lab3/lab3b.py | MITLLRacecar/racecar-parth-kocheta | 6e244575b83e312880c5540342a380364032d326 | [
"MIT"
] | null | null | null | """
Copyright MIT and Harvey Mudd College
MIT License
Summer 2020
Lab 3B - Depth Camera Cone Parking
"""
########################################################################################
# Imports
########################################################################################
import sys
import cv2 as ... | 31.235849 | 99 | 0.593174 |
d4318826121e4a0a63a9ff18a3888788c700b50d | 19,272 | py | Python | ska-tmc/ska-tmc-sdpsubarrayleafnode-mid/src/ska_tmc_sdpsubarrayleafnode_mid/sdp_subarray_leaf_node.py | ska-telescope/tmc-prototype | 4138274e933d4b05f7fe9fc34a11c417b6d0d336 | [
"BSD-3-Clause"
] | 3 | 2019-01-10T11:49:36.000Z | 2019-07-19T03:32:52.000Z | ska-tmc/ska-tmc-sdpsubarrayleafnode-mid/src/ska_tmc_sdpsubarrayleafnode_mid/sdp_subarray_leaf_node.py | ska-telescope/tmc-prototype | 4138274e933d4b05f7fe9fc34a11c417b6d0d336 | [
"BSD-3-Clause"
] | 19 | 2019-01-07T14:50:26.000Z | 2019-10-02T13:25:23.000Z | ska-tmc/ska-tmc-sdpsubarrayleafnode-mid/src/ska_tmc_sdpsubarrayleafnode_mid/sdp_subarray_leaf_node.py | ska-telescope/tmc-prototype | 4138274e933d4b05f7fe9fc34a11c417b6d0d336 | [
"BSD-3-Clause"
] | 1 | 2018-12-21T13:39:23.000Z | 2018-12-21T13:39:23.000Z | # -*- coding: utf-8 -*-
#
# This file is part of the SdpSubarrayLeafNode project
#
#
#
# Distributed under the terms of the BSD-3-Clause license.
# See LICENSE.txt for more info.
"""
SDP Subarray Leaf node is to monitor the SDP Subarray and issue control actions during an observation.
It also acts as a SDP contact poi... | 31.749588 | 120 | 0.643161 |
d431a229e5bc2ae5e5df2bc300491d02cd7bb9da | 4,255 | py | Python | src/app.py | qq20004604/qq-robot | f109a774666efcd0cf36ed4da0d79f53b32b1577 | [
"Apache-2.0"
] | 8 | 2019-05-20T03:30:27.000Z | 2020-09-24T13:16:53.000Z | src/app.py | qq20004604/qq-robot | f109a774666efcd0cf36ed4da0d79f53b32b1577 | [
"Apache-2.0"
] | null | null | null | src/app.py | qq20004604/qq-robot | f109a774666efcd0cf36ed4da0d79f53b32b1577 | [
"Apache-2.0"
] | 2 | 2020-09-24T13:16:56.000Z | 2020-12-25T09:44:48.000Z | from aiocqhttp import CQHttp
from datetime import datetime
from sendmsg import SendMsg
from loadData import LoadData
import threading
import time
# windowscoolq
# HOST = '127.0.0.1'
# PORT = 7788
# urldockercoolq
# docker -p 3542:9000 -p 15700:5700
# 9000 coolq35423542
# 5700coolqpythoncoolq15700
# 15700coolq
BASEUR... | 31.518519 | 135 | 0.647239 |
d431ad0f4ad590fbccad4eb29cd76488bac8859f | 179 | py | Python | setup.py | Horta/pystart | 684dad092e8b64929e2e559fe95bb39c46f065dc | [
"MIT"
] | 1 | 2019-05-07T06:52:59.000Z | 2019-05-07T06:52:59.000Z | setup.py | Horta/pystart | 684dad092e8b64929e2e559fe95bb39c46f065dc | [
"MIT"
] | 1 | 2018-05-30T09:49:58.000Z | 2018-05-30T14:56:12.000Z | setup.py | horta/pystart | 684dad092e8b64929e2e559fe95bb39c46f065dc | [
"MIT"
] | null | null | null | from setuptools import setup
if __name__ == '__main__':
console_scripts = ["pystart = pystart.cmd:entry_point"]
setup(entry_points=dict(console_scripts=console_scripts))
| 29.833333 | 61 | 0.765363 |
d43225857e03fb7ddf01914d178202068463e0a6 | 231 | py | Python | docs/conf.py | R1tschY/iterage | c9feb37c803fe031c883c315b5e449d0f2a68fa0 | [
"MIT"
] | null | null | null | docs/conf.py | R1tschY/iterage | c9feb37c803fe031c883c315b5e449d0f2a68fa0 | [
"MIT"
] | null | null | null | docs/conf.py | R1tschY/iterage | c9feb37c803fe031c883c315b5e449d0f2a68fa0 | [
"MIT"
] | null | null | null | """Sphinx configuration."""
from datetime import datetime
project = "iterage"
author = "Richard Liebscher"
copyright = f"{datetime.now().year}, {author}"
extensions = [
"sphinx.ext.autodoc",
"sphinx_autodoc_typehints",
]
| 19.25 | 46 | 0.701299 |
d43272fbb73b6c6b6b7fe45a8e85aee3304ff420 | 1,359 | py | Python | src/9/enforcing_type_checking_on_a_function_using_a_decorator/example.py | tuanavu/python-gitbook | 948a05e065b0f40afbfd22f697dff16238163cde | [
"MIT"
] | 14 | 2017-05-20T04:06:46.000Z | 2022-01-23T06:48:45.000Z | src/9/enforcing_type_checking_on_a_function_using_a_decorator/example.py | tuanavu/python-gitbook | 948a05e065b0f40afbfd22f697dff16238163cde | [
"MIT"
] | 1 | 2021-06-10T20:17:55.000Z | 2021-06-10T20:17:55.000Z | src/9/enforcing_type_checking_on_a_function_using_a_decorator/example.py | tuanavu/python-gitbook | 948a05e065b0f40afbfd22f697dff16238163cde | [
"MIT"
] | 15 | 2017-03-29T17:57:33.000Z | 2021-08-24T02:20:08.000Z | from inspect import signature
from functools import wraps
# Examples
if __name__ == '__main__':
print(add(2,3))
try:
add(2, 'hello')
except TypeError as e:
print(e)
spam(1, 2, 3)
spam(1, 'hello', 3)
try:
spam(1, 'hello', 'world')
except TypeError as e:
prin... | 26.134615 | 84 | 0.557027 |
d433b3494ae66595b5f31b0ee2375f4a611bbe3e | 2,230 | py | Python | muk_web_theme/muk_dms_actions/tests/test_file.py | marionumza/vocal_v12 | 480990e919c9410903e06e7813ee92800bd6a569 | [
"Unlicense"
] | null | null | null | muk_web_theme/muk_dms_actions/tests/test_file.py | marionumza/vocal_v12 | 480990e919c9410903e06e7813ee92800bd6a569 | [
"Unlicense"
] | null | null | null | muk_web_theme/muk_dms_actions/tests/test_file.py | marionumza/vocal_v12 | 480990e919c9410903e06e7813ee92800bd6a569 | [
"Unlicense"
] | 1 | 2021-05-05T07:59:08.000Z | 2021-05-05T07:59:08.000Z | ###################################################################################
#
# Copyright (C) 2017 MuK IT GmbH
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
# published by the Free Software Foundation, eithe... | 44.6 | 97 | 0.675336 |
d4343b5d871290ec2f4ca3f7e5cf287d0875613d | 2,500 | py | Python | populate.py | yueguoguo/shopify-flask-example | dc556aeac21bfcd9bbd5fdeece5cd4827e090055 | [
"Apache-2.0"
] | null | null | null | populate.py | yueguoguo/shopify-flask-example | dc556aeac21bfcd9bbd5fdeece5cd4827e090055 | [
"Apache-2.0"
] | null | null | null | populate.py | yueguoguo/shopify-flask-example | dc556aeac21bfcd9bbd5fdeece5cd4827e090055 | [
"Apache-2.0"
] | null | null | null | # Mock method to populate data to a Shopify store
# This is used only for development purpose
import io
import requests
import random
from typing import List
from time import sleep
import shopify
from faker import Faker
ACCESS_TOKEN = "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" # Temporary use only
API_VERSION = "2020... | 23.809524 | 92 | 0.7288 |
d43594d2c1b672c278943517c110acaf9fee2089 | 1,067 | py | Python | examples/VNH5019_example.py | being24/VNH5019 | 1030050d363991e43f63befbb052c423c3470156 | [
"MIT"
] | null | null | null | examples/VNH5019_example.py | being24/VNH5019 | 1030050d363991e43f63befbb052c423c3470156 | [
"MIT"
] | null | null | null | examples/VNH5019_example.py | being24/VNH5019 | 1030050d363991e43f63befbb052c423c3470156 | [
"MIT"
] | null | null | null | # !/usr/bin/env python3
# -*- coding: utf-8 -*-
import time
from logging import DEBUG, ERROR, FATAL, INFO, WARN
import pigpio
from VNH5019_driver import VNH5019 as MOTOR
if __name__ == "__main__":
count = 0.0
one_count = 360 * 4 / (64 * 50)
pi = pigpio.pi()
motor0 = MOTOR(
pi,
dri... | 20.921569 | 63 | 0.626992 |
d43e3a93b1b34f633fe835ba894b15dba7cc0781 | 306 | py | Python | idm_lp/commands/members_manager/__init__.py | lper1/dgm-. | aae14b2758b220f42030745bb941e7012bf77ae2 | [
"MIT"
] | 47 | 2020-09-15T11:13:35.000Z | 2022-03-30T06:37:52.000Z | idm_lp/commands/members_manager/__init__.py | lper1/dgm-. | aae14b2758b220f42030745bb941e7012bf77ae2 | [
"MIT"
] | 2 | 2020-10-27T15:30:33.000Z | 2020-11-14T16:50:01.000Z | idm_lp/commands/members_manager/__init__.py | lper1/dgm-. | aae14b2758b220f42030745bb941e7012bf77ae2 | [
"MIT"
] | 111 | 2020-09-27T20:06:42.000Z | 2022-03-19T20:29:29.000Z | from idm_lp.commands.members_manager import ignored
from idm_lp.commands.members_manager import ignored_global
from idm_lp.commands.members_manager import muted
from idm_lp.commands.members_manager import trusted
users_bp = (
ignored.user,
ignored_global.user,
muted.user,
trusted.user,
)
| 25.5 | 58 | 0.803922 |
d43f4c8e8daff28f9449dbacb0f541d11f998d5f | 326 | py | Python | stockUpdater/update.py | SamrathPalSingh/stockmarketwebsite | ea91647e25066c1a5c7f48015dccd19117428e9b | [
"MIT"
] | null | null | null | stockUpdater/update.py | SamrathPalSingh/stockmarketwebsite | ea91647e25066c1a5c7f48015dccd19117428e9b | [
"MIT"
] | 9 | 2020-05-05T18:43:29.000Z | 2021-09-22T18:58:59.000Z | stockUpdater/update.py | SamrathPalSingh/stockmarketwebsite | ea91647e25066c1a5c7f48015dccd19117428e9b | [
"MIT"
] | null | null | null | from .stock_prediction_logic.analyse import start_analysis
from home.models import stock
| 25.076923 | 58 | 0.687117 |
d43f8d272d0dc80157cca7a95bb20fb7ed44e527 | 187 | py | Python | tk.16.py | ap19013/tkinter_sample | e0f12bb2fa386a3416a5cdc7a9d757094e7cb9c0 | [
"MIT"
] | null | null | null | tk.16.py | ap19013/tkinter_sample | e0f12bb2fa386a3416a5cdc7a9d757094e7cb9c0 | [
"MIT"
] | null | null | null | tk.16.py | ap19013/tkinter_sample | e0f12bb2fa386a3416a5cdc7a9d757094e7cb9c0 | [
"MIT"
] | null | null | null | import tkinter as tk
root=tk.Tk()
root.geometry('150x80')
bt=tk.Button(bitmap='question',command=btn_press)
bt.pack()
root.mainloop()
| 14.384615 | 49 | 0.716578 |
d43fb21fc63432d8db4d6094061fd258a4b6f29b | 790 | py | Python | train.py | jindal2309/conv-ai-model | 2238780bdc01965a97726edaeb834cda7ed73867 | [
"MIT"
] | null | null | null | train.py | jindal2309/conv-ai-model | 2238780bdc01965a97726edaeb834cda7ed73867 | [
"MIT"
] | null | null | null | train.py | jindal2309/conv-ai-model | 2238780bdc01965a97726edaeb834cda7ed73867 | [
"MIT"
] | null | null | null | from torch.utils.data.dataloader import DataLoader
from dataloader import ConvAIDataset
from utils import combine_contexts
from vocab.text import BPEVocab
max_seq_len = 512
train_data = 'data/train_self_revised_no_cands.txt'
bpe_vocab_path = 'vocab/bpe.vocab'
bpe_codes_path = 'vocab/bpe.code'
params = {'batch_size': ... | 30.384615 | 94 | 0.702532 |
d440b9f21f95bdb0021bcda32bda78128d97dda1 | 1,415 | py | Python | leetcode/binary_tree_level _order_traversal_leetcode_102/binary_tree_level _order_traversal.py | Williano/Interview-Prep | 0ad688637215080c7e4d26c640d74c89227e7cfb | [
"MIT"
] | null | null | null | leetcode/binary_tree_level _order_traversal_leetcode_102/binary_tree_level _order_traversal.py | Williano/Interview-Prep | 0ad688637215080c7e4d26c640d74c89227e7cfb | [
"MIT"
] | null | null | null | leetcode/binary_tree_level _order_traversal_leetcode_102/binary_tree_level _order_traversal.py | Williano/Interview-Prep | 0ad688637215080c7e4d26c640d74c89227e7cfb | [
"MIT"
] | null | null | null | """
Leetcode No: 102
Title: Binary Tree Level Order Traversal
Description:
Given the root of a binary tree, return the level order traversal of its
nodes' values. (i.e., from left to right, level by level).
Example 1:
Input: root = [3,9,20,null,null,15,7]
Output: [[3],[9,20],[15,7]]
... | 21.769231 | 76 | 0.579505 |
d4430fca441867f9bd80ffce1daeda8281c206ea | 5,785 | py | Python | Validation/Performance/test/ThreadTest.py | NTrevisani/cmssw | a212a27526f34eb9507cf8b875c93896e6544781 | [
"Apache-2.0"
] | 3 | 2018-08-24T19:10:26.000Z | 2019-02-19T11:45:32.000Z | Validation/Performance/test/ThreadTest.py | NTrevisani/cmssw | a212a27526f34eb9507cf8b875c93896e6544781 | [
"Apache-2.0"
] | 7 | 2016-07-17T02:34:54.000Z | 2019-08-13T07:58:37.000Z | Validation/Performance/test/ThreadTest.py | NTrevisani/cmssw | a212a27526f34eb9507cf8b875c93896e6544781 | [
"Apache-2.0"
] | 5 | 2018-08-21T16:37:52.000Z | 2020-01-09T13:33:17.000Z | #!/usr/bin/env python
#A script to test threading concepts/implementations
from __future__ import print_function
import threading,time,sys
#The following used from past bad experience with multithreading in Python
#Define the "thread" class, of which each thread is a instance
#Define the class Test, of which each tes... | 39.353741 | 185 | 0.621262 |
d443a92b3d66d3399c8c6a3006c5303d8c1121f2 | 2,512 | py | Python | test/test_loader.py | miguelgf/flask-pypendency | 44f1ab9ab65a4cc5951ba3ce9e3cf332ea44a23d | [
"MIT"
] | 4 | 2020-03-30T07:40:26.000Z | 2020-05-24T12:30:07.000Z | test/test_loader.py | miguelgf/flask-pypendency | 44f1ab9ab65a4cc5951ba3ce9e3cf332ea44a23d | [
"MIT"
] | null | null | null | test/test_loader.py | miguelgf/flask-pypendency | 44f1ab9ab65a4cc5951ba3ce9e3cf332ea44a23d | [
"MIT"
] | null | null | null | import os
from unittest import TestCase
from unittest.mock import patch, call
from flask import Flask
from flask_pypendency import Pypendency
| 35.885714 | 98 | 0.693869 |
d44510e870ea216676fc2c3138e5db6f9bb2ae40 | 3,301 | py | Python | gui/plot.py | kklmn/ParSeq | 46178c21c3ee39b84bbf3d80bcd9f93128ace9e2 | [
"MIT"
] | 3 | 2018-11-19T07:14:25.000Z | 2020-07-28T17:20:14.000Z | gui/plot.py | kklmn/ParSeq | 46178c21c3ee39b84bbf3d80bcd9f93128ace9e2 | [
"MIT"
] | null | null | null | gui/plot.py | kklmn/ParSeq | 46178c21c3ee39b84bbf3d80bcd9f93128ace9e2 | [
"MIT"
] | 2 | 2019-03-25T09:36:11.000Z | 2021-12-19T07:52:38.000Z | # -*- coding: utf-8 -*-
__author__ = "Konstantin Klementiev"
__date__ = "16 Feb 2019"
# !!! SEE CODERULES.TXT !!!
import os
from silx.gui import qt
from silx.gui import plot as splot
from ..core import singletons as csi
| 37.511364 | 77 | 0.565586 |
d447131af35c0ceaefed1b6ddf58ca65242fff7a | 1,463 | py | Python | python-practice/leetcode/solveSudoku.py | daohuei/practice-playground | 50522a57ef056108c662cf668f26c97078caf61c | [
"MIT"
] | null | null | null | python-practice/leetcode/solveSudoku.py | daohuei/practice-playground | 50522a57ef056108c662cf668f26c97078caf61c | [
"MIT"
] | null | null | null | python-practice/leetcode/solveSudoku.py | daohuei/practice-playground | 50522a57ef056108c662cf668f26c97078caf61c | [
"MIT"
] | null | null | null |
valid_s = [
["5", "3", ".", ".", "7", ".", ".", ".", "."],
["6", ".", ".", "1", "9", "5", ".", ".", "."],
[".", "9", "8", ".", ".", ".", ".", "6", "."],
["8", ".", ".", ".", "6", ".", ".", ".", "3"],
["4", ".", ".", "8", ".", "3", ".", ".", "1"],
["7", ".", ".", ".", "2", ".", ".", ".", "6"]... | 30.479167 | 62 | 0.330144 |
d44834c9eaa5437119fdcf7514ce64d66090c5cb | 576 | py | Python | src/test_app.py | perylemke/immutable_infra | 9e7ce2fec2ace5d2efdb598883483142b02ceac0 | [
"Apache-2.0"
] | 10 | 2019-05-06T20:48:48.000Z | 2020-10-30T21:30:23.000Z | src/test_app.py | perylemke/immutable_infra | 9e7ce2fec2ace5d2efdb598883483142b02ceac0 | [
"Apache-2.0"
] | null | null | null | src/test_app.py | perylemke/immutable_infra | 9e7ce2fec2ace5d2efdb598883483142b02ceac0 | [
"Apache-2.0"
] | null | null | null | from app import app
import json
import socket
import os.path
# The first and the second test validate json structure | 27.428571 | 56 | 0.661458 |
d44893b62aa4f04058abcb6d418e243ab45c2f58 | 1,874 | py | Python | bin/tag-generator.py | RealCamar/corretto-docker | 2152d770c3a0e1e695617ab16aa779ec0ada7336 | [
"MIT-0"
] | null | null | null | bin/tag-generator.py | RealCamar/corretto-docker | 2152d770c3a0e1e695617ab16aa779ec0ada7336 | [
"MIT-0"
] | null | null | null | bin/tag-generator.py | RealCamar/corretto-docker | 2152d770c3a0e1e695617ab16aa779ec0ada7336 | [
"MIT-0"
] | null | null | null | import json
DEFAULT_ALPINE_VERSION = '3.15'
ALPINE_VERSIONS = ['3.12','3.13','3.14', '3.15']
if __name__ == "__main__":
main() | 44.619048 | 176 | 0.614728 |
d44934c340554c98f34eefb9a2b323aeeec6a374 | 265 | py | Python | wifi-scheduler/deets.py | lileddie/guest-wifi-scheduler | 37b7256458145ab677df4b5fffb270f7cede83b8 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | wifi-scheduler/deets.py | lileddie/guest-wifi-scheduler | 37b7256458145ab677df4b5fffb270f7cede83b8 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | wifi-scheduler/deets.py | lileddie/guest-wifi-scheduler | 37b7256458145ab677df4b5fffb270f7cede83b8 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | ssh_username='Wireless-LAN-controller-USERNAME'
ssh_password='Wireless-LAN-controller-PASSWD'
ssh_ip='10.1.1.1'
gmail_user='some_user@gmail.com'
gmail_password='PASSWD'
emdomain='@your_domain.com'
emailAddrs=['IT-team@your_domain.com','Wifi-Admin@your_domain.com']
| 33.125 | 67 | 0.803774 |
d44a00f74c482c7832f425339e2417ab5c29c7e3 | 35,663 | py | Python | lingvodoc/scripts/docx_import.py | SegFaulti4/lingvodoc | 8b296b43453a46b814d3cd381f94382ebcb9c6a6 | [
"Apache-2.0"
] | null | null | null | lingvodoc/scripts/docx_import.py | SegFaulti4/lingvodoc | 8b296b43453a46b814d3cd381f94382ebcb9c6a6 | [
"Apache-2.0"
] | 1 | 2021-07-26T09:52:46.000Z | 2021-07-26T09:52:46.000Z | lingvodoc/scripts/docx_import.py | Winking-maniac/lingvodoc | f037bf0e91ccdf020469037220a43e63849aa24a | [
"Apache-2.0"
] | null | null | null |
# Standard library imports.
import ast
import getopt
import logging
import pprint
import re
import sys
# External imports.
import docx
import pympi
import pyramid.paster as paster
# Project imports.
from lingvodoc.models import (
DBSession,
Dictionary,
)
# Setting up logging, if we are not being run as ... | 28.462091 | 108 | 0.535653 |
d44a88c704f4a4c32fe66a7e2c86ec7176703a10 | 3,580 | py | Python | excel_loader/excel_loader.py | anontechnology/sheetloader-python | 9225b680d309fbedfdd569a11bed20e3e31f233c | [
"MIT"
] | null | null | null | excel_loader/excel_loader.py | anontechnology/sheetloader-python | 9225b680d309fbedfdd569a11bed20e3e31f233c | [
"MIT"
] | null | null | null | excel_loader/excel_loader.py | anontechnology/sheetloader-python | 9225b680d309fbedfdd569a11bed20e3e31f233c | [
"MIT"
] | null | null | null | from .configuration import Configuration
import vizivault
import openpyxl
| 38.494624 | 159 | 0.663966 |
d44da7d127e1ce8cb7767fe40398dec1469b4993 | 4,509 | py | Python | mindhome_alpha/erpnext/demo/user/stock.py | Mindhome/field_service | 3aea428815147903eb9af1d0c1b4b9fc7faed057 | [
"MIT"
] | 1 | 2021-04-29T14:55:29.000Z | 2021-04-29T14:55:29.000Z | mindhome_alpha/erpnext/demo/user/stock.py | Mindhome/field_service | 3aea428815147903eb9af1d0c1b4b9fc7faed057 | [
"MIT"
] | null | null | null | mindhome_alpha/erpnext/demo/user/stock.py | Mindhome/field_service | 3aea428815147903eb9af1d0c1b4b9fc7faed057 | [
"MIT"
] | 1 | 2021-04-29T14:39:01.000Z | 2021-04-29T14:39:01.000Z | # Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors
# License: GNU General Public License v3. See license.txt
from __future__ import print_function, unicode_literals
import frappe, random, erpnext
from frappe.desk import query_report
from erpnext.stock.stock_ledger import NegativeStockError
from erpn... | 34.684615 | 113 | 0.745842 |
d44e500b8a0f1c401858f71c9cd6e9f814642807 | 2,376 | py | Python | scripts/dot2txt.py | cartoonist/PairG | db7d28a5b9d01368dbfd2d9ae97a1d5179605be0 | [
"Apache-2.0"
] | 2 | 2020-07-08T09:10:19.000Z | 2020-09-01T17:54:41.000Z | scripts/dot2txt.py | cartoonist/PairG | db7d28a5b9d01368dbfd2d9ae97a1d5179605be0 | [
"Apache-2.0"
] | 1 | 2020-10-14T09:09:05.000Z | 2021-03-28T04:38:17.000Z | scripts/dot2txt.py | cartoonist/PairG | db7d28a5b9d01368dbfd2d9ae97a1d5179605be0 | [
"Apache-2.0"
] | 1 | 2020-08-28T09:02:56.000Z | 2020-08-28T09:02:56.000Z | #
# @file dot2txt.py
# @author Chirag Jain <cjain7@gatech.edu>
# @brief convert dot formatted compressed DBG from splitMEM to our .txt format
# note: splitMEM.cc was modified to print vertex DNA labels as well
# (set OPT_DisplaySeq=1 and OPT_SeqToDisplay= <int>::max() )
# ... | 28.285714 | 89 | 0.627525 |
d45013e19ee94ead3bc3ab1cecb032b98f2fafda | 720 | py | Python | posts/templatetags/paginator.py | ujlbu4/vas3k.club | 1ec907cf7e5ae3a74059cde8729ca0b3e2d55a3e | [
"MIT"
] | 496 | 2020-04-24T04:20:32.000Z | 2022-03-31T21:55:57.000Z | posts/templatetags/paginator.py | ujlbu4/vas3k.club | 1ec907cf7e5ae3a74059cde8729ca0b3e2d55a3e | [
"MIT"
] | 642 | 2020-04-24T11:54:13.000Z | 2022-03-26T15:41:06.000Z | posts/templatetags/paginator.py | ujlbu4/vas3k.club | 1ec907cf7e5ae3a74059cde8729ca0b3e2d55a3e | [
"MIT"
] | 243 | 2020-04-24T11:49:11.000Z | 2022-03-24T18:38:48.000Z | from django import template
register = template.Library()
| 24 | 81 | 0.643056 |
d4504bcd464e9711733f6e23b9e032a1b7ce8a80 | 18,784 | py | Python | svb/prior.py | physimals/svb | 9c04309ef1fc1d5f81103a50a01e3bf4c8f4ea44 | [
"Apache-2.0"
] | 3 | 2022-01-08T12:50:25.000Z | 2022-03-22T00:55:17.000Z | svb/prior.py | physimals/svb | 9c04309ef1fc1d5f81103a50a01e3bf4c8f4ea44 | [
"Apache-2.0"
] | 1 | 2020-10-16T15:27:46.000Z | 2020-10-16T15:59:48.000Z | svb/prior.py | physimals/svb | 9c04309ef1fc1d5f81103a50a01e3bf4c8f4ea44 | [
"Apache-2.0"
] | null | null | null | """
Definition of prior distribution
"""
import numpy as np
try:
import tensorflow.compat.v1 as tf
except ImportError:
import tensorflow as tf
from .utils import LogBase
from .dist import Normal
PRIOR_TYPE_NONSPATIAL = "N"
PRIOR_TYPE_SPATIAL_MRF = "M"
def get_prior(param, data_model, **kwargs):
"""
... | 44.511848 | 156 | 0.638948 |
d450c2b05cb1f4cb1899bd454fdcaba9cb8d8618 | 1,767 | py | Python | pymediasoup/sctp_parameters.py | skymaze/pymediasoup | 362fa202448ef31ee512a6d1e7fc4e8c93c53566 | [
"MIT"
] | 9 | 2021-01-04T03:29:28.000Z | 2021-06-30T12:25:33.000Z | pymediasoup/sctp_parameters.py | skymaze/pymediasoup | 362fa202448ef31ee512a6d1e7fc4e8c93c53566 | [
"MIT"
] | 4 | 2021-02-23T06:24:01.000Z | 2021-07-23T01:15:00.000Z | pymediasoup/sctp_parameters.py | skymaze/pymediasoup | 362fa202448ef31ee512a6d1e7fc4e8c93c53566 | [
"MIT"
] | 3 | 2021-02-13T07:48:33.000Z | 2021-08-30T05:24:43.000Z | import sys
if sys.version_info >= (3, 8):
from typing import Optional, Literal
else:
from typing import Optional
from typing_extensions import Literal
from pydantic import BaseModel
# SCTP stream parameters describe the reliability of a certain SCTP stream.
# If ordered is True then maxPacketLifeTime and... | 33.980769 | 80 | 0.736276 |
d451e78026744df79562580a63a5aa68b269af10 | 1,123 | py | Python | setup.py | open-contracting/extensions-data-collector | 041f7b44de60b3d241e4891da1bb1c1cb8ce9ec4 | [
"BSD-3-Clause"
] | null | null | null | setup.py | open-contracting/extensions-data-collector | 041f7b44de60b3d241e4891da1bb1c1cb8ce9ec4 | [
"BSD-3-Clause"
] | 23 | 2018-06-29T15:34:41.000Z | 2018-11-03T13:29:49.000Z | setup.py | open-contracting/extensions-data-collector | 041f7b44de60b3d241e4891da1bb1c1cb8ce9ec4 | [
"BSD-3-Clause"
] | null | null | null | from setuptools import setup, find_packages
with open('README.rst') as f:
long_description = f.read()
setup(
name='ocdsextensionsdatacollector',
version='0.0.1',
author='Open Contracting Partnership, Open Data Services',
author_email='data@open-contracting.org',
url='https://github.com/open-co... | 27.390244 | 90 | 0.601959 |
d4531e43111597e9d512203074171f5484832a7b | 423 | py | Python | server_side_python/DetectionAndTracking.py | Tpierga/2I_ProjetDetectionIA | 39ba28a1d98bf7f0e908ee6cab933b219cc98977 | [
"MIT"
] | null | null | null | server_side_python/DetectionAndTracking.py | Tpierga/2I_ProjetDetectionIA | 39ba28a1d98bf7f0e908ee6cab933b219cc98977 | [
"MIT"
] | null | null | null | server_side_python/DetectionAndTracking.py | Tpierga/2I_ProjetDetectionIA | 39ba28a1d98bf7f0e908ee6cab933b219cc98977 | [
"MIT"
] | null | null | null | import numpy as np
import matplotlib.pyplot as plt
import cv2
| 18.391304 | 71 | 0.678487 |
d453fbe6cb754cbcc0bc6074f266abb4c1ebf8ac | 1,333 | py | Python | packages/infra_libs/infra_libs/_command_line_linux.py | xswz8015/infra | f956b78ce4c39cc76acdda47601b86794ae0c1ba | [
"BSD-3-Clause"
] | null | null | null | packages/infra_libs/infra_libs/_command_line_linux.py | xswz8015/infra | f956b78ce4c39cc76acdda47601b86794ae0c1ba | [
"BSD-3-Clause"
] | 7 | 2022-02-15T01:11:37.000Z | 2022-03-02T12:46:13.000Z | packages/infra_libs/infra_libs/_command_line_linux.py | NDevTK/chromium-infra | d38e088e158d81f7f2065a38aa1ea1894f735ec4 | [
"BSD-3-Clause"
] | null | null | null | # Copyright 2016 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.
import ctypes
import ctypes.util
import sys
_CACHED_CMDLINE_LENGTH = None
def set_command_line(cmdline):
"""Replaces the commandline of this process as... | 34.179487 | 78 | 0.740435 |