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
091cc72f8820abb4968972f3dd6375ff59862250
27,920
py
Python
src/loanpy/loanfinder.py
martino-vic/Framework-for-computer-aided-borrowing-detection
efce90390db14009fd27d96f32b1252a74aac1ef
[ "AFL-3.0" ]
4
2020-05-18T15:10:44.000Z
2020-10-10T05:06:26.000Z
src/loanpy/loanfinder.py
martino-vic/Soundchange
09a276e16daed2828b144227a21e53746cbb72e4
[ "AFL-3.0" ]
null
null
null
src/loanpy/loanfinder.py
martino-vic/Soundchange
09a276e16daed2828b144227a21e53746cbb72e4
[ "AFL-3.0" ]
null
null
null
""" Find (old) loanwords between two languages """ from ast import literal_eval from functools import partial from logging import getLogger from pandas import DataFrame, Series, concat, read_csv from tqdm import tqdm from panphon.distance import Distance from loanpy.helpers import gensim_multiword from loanpy.adrc ...
42.691131
79
0.641261
091cd8c5724529a22ff674589812a3252e946388
1,172
py
Python
scripts/tmp.py
always-newbie161/pyprobml
eb70c84f9618d68235ef9ba7da147c009b2e4a80
[ "MIT" ]
2
2021-06-22T05:43:25.000Z
2021-06-22T08:40:16.000Z
scripts/tmp.py
always-newbie161/pyprobml
eb70c84f9618d68235ef9ba7da147c009b2e4a80
[ "MIT" ]
1
2021-04-19T12:25:26.000Z
2021-04-19T12:25:26.000Z
scripts/tmp.py
always-newbie161/pyprobml
eb70c84f9618d68235ef9ba7da147c009b2e4a80
[ "MIT" ]
1
2021-06-21T01:18:07.000Z
2021-06-21T01:18:07.000Z
import scipy from scipy.io import loadmat import random import numpy as np from sklearn.metrics import zero_one_loss from sklearn.naive_bayes import BernoulliNB,MultinomialNB,GaussianNB import matplotlib.pyplot as plt from sklearn.feature_selection import mutual_info_classif import os data = loadmat('../data/Xwindo...
25.478261
72
0.726962
091da9e65fdc6e81e6f673354f6d6d367b942a8d
5,961
py
Python
src/google/events/firebase/remoteconfig/v1/RemoteConfigEventData.py
eclipselu/google-cloudevents-python
aa7ae3a593f94bd5810f68ca9b7c36eb1e32192d
[ "Apache-2.0" ]
10
2020-09-19T10:43:34.000Z
2022-02-05T14:28:12.000Z
src/google/events/firebase/remoteconfig/v1/RemoteConfigEventData.py
eclipselu/google-cloudevents-python
aa7ae3a593f94bd5810f68ca9b7c36eb1e32192d
[ "Apache-2.0" ]
39
2020-07-15T22:58:46.000Z
2022-02-03T23:19:26.000Z
src/google/events/firebase/remoteconfig/v1/RemoteConfigEventData.py
eclipselu/google-cloudevents-python
aa7ae3a593f94bd5810f68ca9b7c36eb1e32192d
[ "Apache-2.0" ]
6
2020-06-30T12:58:02.000Z
2021-01-23T02:53:44.000Z
# Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
38.458065
264
0.694347
091f35696f2a895a9356bd5b3024410d89838b05
5,051
py
Python
iotgarden/bluey_beacon.py
mkvenkit/pp2e
b74aafd0f1a61fbb919b2b5e22dcccba6a13a35d
[ "MIT" ]
89
2017-02-24T14:35:00.000Z
2022-03-23T11:56:52.000Z
iotgarden/bluey_beacon.py
mkvenkit/pp2e
b74aafd0f1a61fbb919b2b5e22dcccba6a13a35d
[ "MIT" ]
8
2017-05-10T04:47:07.000Z
2020-12-23T10:45:49.000Z
iotgarden/bluey_beacon.py
mkvenkit/pp2e
b74aafd0f1a61fbb919b2b5e22dcccba6a13a35d
[ "MIT" ]
59
2017-04-22T11:36:53.000Z
2022-03-24T19:39:15.000Z
""" bluey_beacon.py This program connects to the bluey 1.1 Nordic nRF52 dev board made by Electronut Labs. The firmware on Bluey has to be running the "bluey beacon" example. This code is expected to be run on a Raspverry Pi 3. It assumes that you have bluez installed - it uses hcidump and hcitool. The code rea...
30.245509
110
0.530588
0925149b145bd29447f47950402ae72fc46058f2
18,374
py
Python
Converter_V09102021_gkernel_stop.py
SolaleT/KTMnet
ded379cceac560eccfc9a05e8e0c55292544f8b9
[ "MIT" ]
null
null
null
Converter_V09102021_gkernel_stop.py
SolaleT/KTMnet
ded379cceac560eccfc9a05e8e0c55292544f8b9
[ "MIT" ]
null
null
null
Converter_V09102021_gkernel_stop.py
SolaleT/KTMnet
ded379cceac560eccfc9a05e8e0c55292544f8b9
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Wed May 8 12:43:42 2019 @author: solale In this version I will try to shrink the network and reduce the tensorization """ # Multilayer Perceptron import pandas import numpy # fix random seed for reproducibility seed = 7 numpy.random.seed(seed) # from tensorflow import set_rando...
39.770563
140
0.637967
09252c654e5dd6c2c427adfbd63c5afde450b576
1,641
py
Python
sentiment_analysis.py
Submanifold/us-inauguration-speeches
d86221c47cc8b34363cc4ca9faaa4236436fc9c0
[ "MIT" ]
null
null
null
sentiment_analysis.py
Submanifold/us-inauguration-speeches
d86221c47cc8b34363cc4ca9faaa4236436fc9c0
[ "MIT" ]
null
null
null
sentiment_analysis.py
Submanifold/us-inauguration-speeches
d86221c47cc8b34363cc4ca9faaa4236436fc9c0
[ "MIT" ]
1
2019-08-12T11:40:28.000Z
2019-08-12T11:40:28.000Z
#!/usr/bin/env python3 # # Calculates sentiment polarity scores over the progression of a speech # and writes them to STDOUT. The output can be parsed by gnuplot. # # Original author: Bastian Rieck from textblob import TextBlob import os import sys """ Calculates sentiments over the progression of a given speech. Th...
22.791667
72
0.652651
092739ee8d9e52a0a47febefb10eeb7490145d9b
8,174
py
Python
EGEF_operation.py
zahraghh/Operation-Planning
dfa1fbbcce8d07544e96131f4e1f42c1846ce95b
[ "MIT" ]
null
null
null
EGEF_operation.py
zahraghh/Operation-Planning
dfa1fbbcce8d07544e96131f4e1f42c1846ce95b
[ "MIT" ]
null
null
null
EGEF_operation.py
zahraghh/Operation-Planning
dfa1fbbcce8d07544e96131f4e1f42c1846ce95b
[ "MIT" ]
null
null
null
import numpy as np import matplotlib.pyplot as plt import warnings import pandas as pd import scipy.stats as st import statsmodels as sm import seaborn as sns import math import collections from collections import Counter import statistics import matplotlib # By state level - Fuels emission factors - 1999 t...
57.160839
279
0.725104
09292afd918a49c812addd31394b503bc8e8b012
16,757
py
Python
Core_Functions.py
CadellVDH/gardinette
e8200a0f8369e4a6d5a5a73c11d04282e98a927f
[ "MIT" ]
3
2020-10-31T23:19:37.000Z
2021-04-06T06:57:50.000Z
Core_Functions.py
CadellVDH/gardinette
e8200a0f8369e4a6d5a5a73c11d04282e98a927f
[ "MIT" ]
null
null
null
Core_Functions.py
CadellVDH/gardinette
e8200a0f8369e4a6d5a5a73c11d04282e98a927f
[ "MIT" ]
2
2020-11-01T01:10:16.000Z
2020-11-07T23:01:31.000Z
import os #tools for working with the CLI import logging #needed for logging import pigpio #needed for GPIO control import time #needed for function timing import threading #needed for OLED data continuous updating import csv #needed for temporary data logging import config as global_vars #import global variable initia...
50.933131
173
0.617652
092b8a66d28f45edb39d1f480fa99961ca8a29ee
257
py
Python
en/en.py
iremlaya/brainhack17
95e0374785dd7aa7856cac149e04c2949d3ee852
[ "MIT" ]
2
2017-06-04T10:01:49.000Z
2017-10-23T23:40:09.000Z
en/en.py
iremlaya/brainhack17
95e0374785dd7aa7856cac149e04c2949d3ee852
[ "MIT" ]
3
2017-10-23T22:54:43.000Z
2018-10-02T15:57:22.000Z
en/en.py
iremlaya/brainhack17
95e0374785dd7aa7856cac149e04c2949d3ee852
[ "MIT" ]
2
2018-10-02T16:00:23.000Z
2018-10-02T18:05:27.000Z
nums = list(map(int,input().split(" "))) list = [] for j in range(0,5): sum = 0 for i in range(0,4): sum += nums[i] list.append(sum) temp = nums[0] del nums[0] nums.append(temp) print("{} {}".format(min(list), max(list)))
17.133333
43
0.525292
092d7b160711ea95b44c682ad660b8ddb0e66742
352
py
Python
src/test_instrumenter/if_expr.py
joeldentici/python_stepper
ab32c62d0d0333ad901d7329fb198c7a23988007
[ "MIT" ]
1
2020-11-29T20:00:39.000Z
2020-11-29T20:00:39.000Z
src/test_instrumenter/if_expr.py
joeldentici/python_stepper
ab32c62d0d0333ad901d7329fb198c7a23988007
[ "MIT" ]
null
null
null
src/test_instrumenter/if_expr.py
joeldentici/python_stepper
ab32c62d0d0333ad901d7329fb198c7a23988007
[ "MIT" ]
null
null
null
import instrumenter import unittest if __name__ == '__main__': unittest.main()
17.6
57
0.676136
092e872c851914a08cabf8af551b3897a9d46816
1,394
py
Python
Server/Python/src/dbs/dao/Oracle/Run/SummaryList.py
vkuznet/DBS
14df8bbe8ee8f874fe423399b18afef911fe78c7
[ "Apache-2.0" ]
8
2015-08-14T04:01:32.000Z
2021-06-03T00:56:42.000Z
Server/Python/src/dbs/dao/Oracle/Run/SummaryList.py
yuyiguo/DBS
14df8bbe8ee8f874fe423399b18afef911fe78c7
[ "Apache-2.0" ]
162
2015-01-07T21:34:47.000Z
2021-10-13T09:42:41.000Z
Server/Python/src/dbs/dao/Oracle/Run/SummaryList.py
yuyiguo/DBS
14df8bbe8ee8f874fe423399b18afef911fe78c7
[ "Apache-2.0" ]
16
2015-01-22T15:27:29.000Z
2021-04-28T09:23:28.000Z
""" This module provides Run.SummaryList data access object """ from WMCore.Database.DBFormatter import DBFormatter from dbs.utils.dbsExceptionHandler import dbsExceptionHandler
39.828571
97
0.65208
092ff28cf017dfa08a6c336b9f9f79e5dc743c1f
25
py
Python
rewx/__init__.py
akrk1986/re-wx
2f50d1c0afe77313548847b279327d7041623721
[ "MIT" ]
103
2021-01-18T22:06:46.000Z
2022-03-24T15:57:25.000Z
rewx/__init__.py
ronny-rentner/re-wx
185c509ef7a590d7abb758be687fb59048019adb
[ "MIT" ]
6
2021-01-26T11:45:40.000Z
2022-01-15T08:18:12.000Z
rewx/__init__.py
ronny-rentner/re-wx
185c509ef7a590d7abb758be687fb59048019adb
[ "MIT" ]
4
2021-01-26T10:13:20.000Z
2022-01-10T09:02:27.000Z
from rewx.core import *
8.333333
23
0.72
093304601d844ced3162c5c77ac72110623bc543
117
py
Python
ci/kubetest/test_placeholder.py
PostHog/charts-clickhouse
06e3ee904460eaa74eb88d2c33392406d7456ebf
[ "MIT" ]
19
2021-06-17T22:21:12.000Z
2022-03-26T21:53:35.000Z
ci/kubetest/test_placeholder.py
PostHog/charts-clickhouse
06e3ee904460eaa74eb88d2c33392406d7456ebf
[ "MIT" ]
220
2021-06-18T07:18:55.000Z
2022-03-31T23:00:41.000Z
ci/kubetest/test_placeholder.py
PostHog/charts-clickhouse
06e3ee904460eaa74eb88d2c33392406d7456ebf
[ "MIT" ]
21
2021-07-27T16:02:18.000Z
2022-03-30T22:56:00.000Z
import pytest
10.636364
32
0.692308
093315dcd39f337b13a244cffb3617bb0e05e77d
2,852
py
Python
thingsdb/client/abc/events.py
Koos85/python-thingsdb
034649b0cbd38c27bdbdd4fed7bc13ed76d69cb5
[ "MIT" ]
null
null
null
thingsdb/client/abc/events.py
Koos85/python-thingsdb
034649b0cbd38c27bdbdd4fed7bc13ed76d69cb5
[ "MIT" ]
null
null
null
thingsdb/client/abc/events.py
Koos85/python-thingsdb
034649b0cbd38c27bdbdd4fed7bc13ed76d69cb5
[ "MIT" ]
null
null
null
from ..protocol import Proto import abc from typing import Any
25.017544
78
0.491585
0933f309561e041149760fb500eeef98ca5f1483
4,650
py
Python
PyGame/racey.py
esserafael/PythonStuff
97900e48f989b64ccde02f5d676f7f823ec0eed7
[ "MIT" ]
1
2020-08-03T00:19:05.000Z
2020-08-03T00:19:05.000Z
PyGame/racey.py
esserafael/PythonStuff
97900e48f989b64ccde02f5d676f7f823ec0eed7
[ "MIT" ]
1
2021-08-23T20:43:21.000Z
2021-08-23T20:43:21.000Z
PyGame/racey.py
esserafael/python-learning-stuff
97900e48f989b64ccde02f5d676f7f823ec0eed7
[ "MIT" ]
null
null
null
import pygame import time import random pygame.init() # display display_width = 1024 display_height = 768 gameDisplay = pygame.display.set_mode((display_width,display_height)) pygame.display.set_caption('Relmpago Marquinhos') # colors black = (0,0,0) white = (255,255,255) red = (255,0,0) # car car...
30.392157
143
0.550108
0934154c75f6f3525bf51eb76b65fd596ded22e6
9,521
py
Python
src/tuco/base.py
eatfirst/python-tuco
47e58a3ebaf3f7e8ac3e2ba18dfaf9ce993f82db
[ "MIT" ]
8
2018-01-05T15:25:45.000Z
2018-02-19T02:41:43.000Z
src/tuco/base.py
eatfirst/python-tuco
47e58a3ebaf3f7e8ac3e2ba18dfaf9ce993f82db
[ "MIT" ]
7
2018-01-04T15:51:32.000Z
2021-04-28T21:54:57.000Z
src/tuco/base.py
eatfirst/python-tuco
47e58a3ebaf3f7e8ac3e2ba18dfaf9ce993f82db
[ "MIT" ]
null
null
null
"""Base classes to be used in FSM.""" import copy from datetime import datetime from typing import Dict, Iterator, List, Tuple, Type # noqa import pytz from tuco.exceptions import ( TucoAlreadyLockedError, TucoEventNotFoundError, TucoInvalidStateChangeError, TucoInvalidStateHolderError, ) from tuco.l...
34.496377
114
0.635648
0934dae8263a1eb5eb984ac917bcab294f2ec303
7,962
py
Python
mmseg/models/backbones/colorize_mask.py
yong-qiang/BANet
eb0964664dff0b2d581b8de68306def8d586c55d
[ "MIT" ]
4
2021-09-25T15:29:45.000Z
2022-03-01T09:38:13.000Z
mmseg/models/backbones/colorize_mask.py
yong-qiang/BANet
eb0964664dff0b2d581b8de68306def8d586c55d
[ "MIT" ]
null
null
null
mmseg/models/backbones/colorize_mask.py
yong-qiang/BANet
eb0964664dff0b2d581b8de68306def8d586c55d
[ "MIT" ]
null
null
null
from PIL import Image import torch import numpy as np cityscapes_palette = [128, 64, 128, 244, 35, 232, 70, 70, 70, 102, 102, 156, 190, 153, 153, 153, 153, 153, 250, 170, 30, 220, 220, 0, 107, 142, 35, 152, 251, 152, 70, 130, 180, 220, 20, 60, 255, 0, 0, 0, 0, 142, 0, 0, 70,...
45.497143
975
0.503893
093766ed7bbbb3c00312fb45947b1f3698212662
2,342
py
Python
rest_framework_apidoc/apidoc.py
jespino/django-rest-framework-apidoc
94e47811f96058bcfe33e37e433eda065096c053
[ "BSD-3-Clause" ]
3
2015-04-23T02:06:26.000Z
2017-12-06T12:52:04.000Z
rest_framework_apidoc/apidoc.py
jespino/django-rest-framework-apidoc
94e47811f96058bcfe33e37e433eda065096c053
[ "BSD-3-Clause" ]
null
null
null
rest_framework_apidoc/apidoc.py
jespino/django-rest-framework-apidoc
94e47811f96058bcfe33e37e433eda065096c053
[ "BSD-3-Clause" ]
null
null
null
from django.conf import settings from rest_framework.settings import import_from_string from .mixins import FileContentMixin, DocStringContentMixin, MarkupProcessMixin, NoProcessMixin, SafeProcessMixin APIDOC_DEFAULT_DOCUMENTER_CLASSES = getattr( settings, 'APIDOC_DEFAULT_DOCUMENTER_CLASSES', ['rest_fra...
28.560976
113
0.760034
09382774afac9a4d300d0854f84c2849faef3aed
541
py
Python
malcolm/modules/ADAndor/parts/andordriverpart.py
MattTaylorDLS/pymalcolm
995a8e4729bd745f8f617969111cc5a34ce1ac14
[ "Apache-2.0" ]
null
null
null
malcolm/modules/ADAndor/parts/andordriverpart.py
MattTaylorDLS/pymalcolm
995a8e4729bd745f8f617969111cc5a34ce1ac14
[ "Apache-2.0" ]
null
null
null
malcolm/modules/ADAndor/parts/andordriverpart.py
MattTaylorDLS/pymalcolm
995a8e4729bd745f8f617969111cc5a34ce1ac14
[ "Apache-2.0" ]
null
null
null
from malcolm.modules.ADCore.parts import ExposureDetectorDriverPart
41.615385
79
0.728281
09390bc16efe546bdac818e37e914aa39899f96d
1,336
py
Python
qcos_addons/access_log/log.py
kevin0120/airflow
fa263cbf0ac002bdb26239ce36d5dc2a1b6251fd
[ "Apache-2.0" ]
null
null
null
qcos_addons/access_log/log.py
kevin0120/airflow
fa263cbf0ac002bdb26239ce36d5dc2a1b6251fd
[ "Apache-2.0" ]
null
null
null
qcos_addons/access_log/log.py
kevin0120/airflow
fa263cbf0ac002bdb26239ce36d5dc2a1b6251fd
[ "Apache-2.0" ]
null
null
null
import json from typing import Callable, TypeVar, cast from .constants import CUSTOM_LOG_FORMAT, CUSTOM_EVENT_NAME_MAP, CUSTOM_PAGE_NAME_MAP from datetime import datetime import logging from airflow.settings import TIMEZONE from airflow.utils.session import create_session import functools T = TypeVar("T", bound=Calla...
31.809524
115
0.657186
093956eeb27c748398dcb88a46fcaaac217e34f7
2,674
py
Python
setup.py
addisonElliott/pyqt5AutoCompile
5945a85f6230a97f3467c79441d87f5f9cdb478d
[ "MIT" ]
8
2018-10-31T04:53:18.000Z
2020-11-18T18:47:48.000Z
setup.py
addisonElliott/pyqt5AutoCompile
5945a85f6230a97f3467c79441d87f5f9cdb478d
[ "MIT" ]
24
2020-03-27T11:38:39.000Z
2020-10-23T07:12:41.000Z
setup.py
addisonElliott/pyqt5AutoCompile
5945a85f6230a97f3467c79441d87f5f9cdb478d
[ "MIT" ]
3
2019-05-08T16:41:26.000Z
2021-08-23T12:37:55.000Z
import os import re from setuptools import setup currentPath = os.path.abspath(os.path.dirname(__file__)) # Get the long description from the README file with open(os.path.join(currentPath, 'README.md'), 'r') as f: longDescription = f.read() longDescription = '\n' + longDescription REQUIREMENTS = { 'core...
30.735632
116
0.597233
093964aaffee860bb39cdc436116d852d48d0571
799
py
Python
setup.py
sz144/TPy
689e38bdc2549015bc45cfacfe42e20a51c76e5a
[ "MIT" ]
4
2018-08-20T13:38:13.000Z
2020-08-31T08:57:12.000Z
setup.py
sz144/pydale
689e38bdc2549015bc45cfacfe42e20a51c76e5a
[ "MIT" ]
null
null
null
setup.py
sz144/pydale
689e38bdc2549015bc45cfacfe42e20a51c76e5a
[ "MIT" ]
2
2021-09-28T08:24:30.000Z
2022-01-29T08:29:46.000Z
from setuptools import setup setup( name='pydale', version='0.1.0a1', description='A Transfer Learning Python package', url='https://github.com/sz144/TPy', author='Shuo Zhou', author_email='szhou20@sheffield.ac.uk', license='MIT License', packages=['pydale'], install_requires=['nump...
30.730769
54
0.579474
093974a11fcf0bc9652927c15386f72ab4614908
8,738
py
Python
Progetto_dataset_adult/Utils/Analisi_variabili.py
pasqualefiore/Adult_dataset_analysis
c13b229e1f69df765fc2da5f0b64084816ad39c3
[ "Apache-2.0" ]
null
null
null
Progetto_dataset_adult/Utils/Analisi_variabili.py
pasqualefiore/Adult_dataset_analysis
c13b229e1f69df765fc2da5f0b64084816ad39c3
[ "Apache-2.0" ]
null
null
null
Progetto_dataset_adult/Utils/Analisi_variabili.py
pasqualefiore/Adult_dataset_analysis
c13b229e1f69df765fc2da5f0b64084816ad39c3
[ "Apache-2.0" ]
null
null
null
import matplotlib.pyplot as plt import seaborn as sns from scipy.stats import kendalltau,chi2_contingency, pearsonr import pandas as pd def plot_var_num(dataset,variabile): """ Plot delle variabili numeriche -------------- Parametri: dataset: dataset di riferimento variabile: variabile da plott...
42.009615
111
0.653353
093ee142adce433cf7aaa24dd679b5d6c4fc05b5
638
py
Python
shares/urls.py
ab1cd2eefre3/stock-trading-website
f19b3ff11c5348ed9758816dab0ea0b44ec027a9
[ "MIT" ]
null
null
null
shares/urls.py
ab1cd2eefre3/stock-trading-website
f19b3ff11c5348ed9758816dab0ea0b44ec027a9
[ "MIT" ]
null
null
null
shares/urls.py
ab1cd2eefre3/stock-trading-website
f19b3ff11c5348ed9758816dab0ea0b44ec027a9
[ "MIT" ]
null
null
null
from django.urls import path from . import views urlpatterns = [ path("login", views.login_view, name="login"), path("logout", views.logout_view, name="logout"), path("register", views.register, name="register"), path("", views.index, name="index"), path("open", views.openPage, name="openPage"), ...
33.578947
67
0.647335
09427cf92374db5f7f6567478a568e972eec2cff
1,198
py
Python
memex_images/image_space/migrations/0001_initial.py
quasiben/image_space
811180d5b39cef20e2e3322c650de9602d6afb29
[ "BSD-3-Clause" ]
null
null
null
memex_images/image_space/migrations/0001_initial.py
quasiben/image_space
811180d5b39cef20e2e3322c650de9602d6afb29
[ "BSD-3-Clause" ]
null
null
null
memex_images/image_space/migrations/0001_initial.py
quasiben/image_space
811180d5b39cef20e2e3322c650de9602d6afb29
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations
37.4375
114
0.601002
094372a474d52adb03ce58de44449d7f0c3ddd56
295
py
Python
Intermediate/collections_namedtuple.py
BjornChrisnach/Python_6hour_course
0949387c2e423ed0ba7914db7c58af2f913bda1c
[ "MIT" ]
null
null
null
Intermediate/collections_namedtuple.py
BjornChrisnach/Python_6hour_course
0949387c2e423ed0ba7914db7c58af2f913bda1c
[ "MIT" ]
null
null
null
Intermediate/collections_namedtuple.py
BjornChrisnach/Python_6hour_course
0949387c2e423ed0ba7914db7c58af2f913bda1c
[ "MIT" ]
null
null
null
# Collections namedTuple nr7 import collections from collections import namedtuple Point = namedtuple("Point", {"x": 0, "y": 0, "z": 0}) newP = Point(3, 4, 5) print(newP.x, newP.y, newP.z) print(newP._fields) newP = newP._replace(x=6) print(newP) p2 = Point._make(["a", "b", "c"]) print(p2)
18.4375
53
0.661017
09440d91afca8dc4e9e6734e9c8588fc67d05760
2,879
py
Python
bootstrap_ranks.py
baprice/Genewise-Cohort-Integration
d1a7434f2a461f572fd85ed8bdeebcda268ef29c
[ "MIT" ]
null
null
null
bootstrap_ranks.py
baprice/Genewise-Cohort-Integration
d1a7434f2a461f572fd85ed8bdeebcda268ef29c
[ "MIT" ]
null
null
null
bootstrap_ranks.py
baprice/Genewise-Cohort-Integration
d1a7434f2a461f572fd85ed8bdeebcda268ef29c
[ "MIT" ]
null
null
null
import os from pathlib import Path import argparse import numpy as np import pandas as pd import matplotlib.pyplot as plt import seaborn as sns from jive.AJIVE import AJIVE from jive.PCA import PCA import warnings import time, datetime from random import shuffle warnings.filterwarnings(action='once') parser = argpars...
34.686747
140
0.740188
0944b27a3e77a2bfb7e1cf5754e2405188a4cf6d
643
py
Python
algorithm/module/limit/tools/any.py
alpavlenko/EvoGuess
19bc54e75cd959e445becda16fa6f488f0fb2367
[ "MIT" ]
1
2021-12-12T15:09:56.000Z
2021-12-12T15:09:56.000Z
algorithm/module/limit/tools/any.py
alpavlenko/EvoGuess
19bc54e75cd959e445becda16fa6f488f0fb2367
[ "MIT" ]
1
2021-10-10T09:16:57.000Z
2021-10-10T09:16:57.000Z
algorithm/module/limit/tools/any.py
alpavlenko/evoguess
e8510c32c8325c9fe66fc15899d378b7bf731557
[ "MIT" ]
null
null
null
from ..limit import * __all__ = [ 'Any' ]
20.741935
73
0.527216
094570371ac6509b0c55dba57d84871c450cb274
396
py
Python
Python/PythonExercicios/ex035.py
isabellathome/College-Activities
12fc73f8416f5a9572d0a8c59eb7403d9c88ed0f
[ "MIT" ]
null
null
null
Python/PythonExercicios/ex035.py
isabellathome/College-Activities
12fc73f8416f5a9572d0a8c59eb7403d9c88ed0f
[ "MIT" ]
null
null
null
Python/PythonExercicios/ex035.py
isabellathome/College-Activities
12fc73f8416f5a9572d0a8c59eb7403d9c88ed0f
[ "MIT" ]
null
null
null
print('-=-' * 15) print('Analisador de Tringulos') print('-=-' * 15) sega = float(input('Primeiro Segmento: ')) segb = float(input('Segundo Segmento: ')) segc = float(input('Terceiro Segmento: ')) if sega < segb + segc and segb < sega + segc and segc < sega + segb: print('Os segmentos acima PODEM FORMAR um tringulo...
36
68
0.676768
0947468639821686ebec6a09d533e71a8f80b28d
445
py
Python
tests/urls.py
hbuyse/dj-vcn-accounts
27100428b3a4bccaa0b03752366c98e81f333230
[ "MIT" ]
null
null
null
tests/urls.py
hbuyse/dj-vcn-accounts
27100428b3a4bccaa0b03752366c98e81f333230
[ "MIT" ]
null
null
null
tests/urls.py
hbuyse/dj-vcn-accounts
27100428b3a4bccaa0b03752366c98e81f333230
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals, absolute_import from django.urls import include, path from django.contrib.auth import views as auth_views urlpatterns = [ path('login', auth_views.LoginView.as_view(), name='vcn-account-login'), path('logout', auth_views.LogoutView.as_view(), {...
34.230769
99
0.721348
094aa257693558a2208948c81f0f7751ce318d41
736
py
Python
annoying_dogbone/code.py
Tobi-Swali/pypy-Gamejam
a6e9455802ae0ea460fd7e2b497d58f94ee35228
[ "MIT" ]
1
2019-10-12T13:45:09.000Z
2019-10-12T13:45:09.000Z
annoying_dogbone/code.py
Tobi-Swali/pypy-Gamejam
a6e9455802ae0ea460fd7e2b497d58f94ee35228
[ "MIT" ]
2
2019-10-13T17:50:42.000Z
2019-10-13T17:53:18.000Z
annoying_dogbone/code.py
Tobi-Swali/pypy-Gamejam
a6e9455802ae0ea460fd7e2b497d58f94ee35228
[ "MIT" ]
3
2019-10-12T13:33:23.000Z
2019-10-12T17:15:45.000Z
# /bin/hacken GameJam 2019, f0wL """This example lights up the third NeoPixel while button A is being pressed, and lights up the eighth NeoPixel while button B is being pressed.""" from adafruit_circuitplayground.express import cpx import random import time import math cpx.pixels.brightness = 0.1 while True: ...
26.285714
95
0.618207
094be0cf0f33e0827cc74563503d2f32fbf9ae51
1,787
py
Python
solver.py
tamnguyen820/SudokuSolver
a4adf311fca7bdbf7d2e5f7a676197e39218e53a
[ "MIT" ]
null
null
null
solver.py
tamnguyen820/SudokuSolver
a4adf311fca7bdbf7d2e5f7a676197e39218e53a
[ "MIT" ]
null
null
null
solver.py
tamnguyen820/SudokuSolver
a4adf311fca7bdbf7d2e5f7a676197e39218e53a
[ "MIT" ]
null
null
null
''' For testing with the text version ''' b = [ [1, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0,...
26.279412
70
0.409625
094cff1135e104cc38ed7c1dc2ae3fc5641b7f5b
5,321
py
Python
open_publishing/__init__.py
open-publishing/open-publishing-api
0d1646bb2460c6f35cba610a355941d2e07bfefd
[ "BSD-3-Clause" ]
null
null
null
open_publishing/__init__.py
open-publishing/open-publishing-api
0d1646bb2460c6f35cba610a355941d2e07bfefd
[ "BSD-3-Clause" ]
null
null
null
open_publishing/__init__.py
open-publishing/open-publishing-api
0d1646bb2460c6f35cba610a355941d2e07bfefd
[ "BSD-3-Clause" ]
null
null
null
from .context import Context as _Context from .user import User from .document import Document from .order import Order from .order_fulfillment import OrderFulfillment from .prices import public as prices from .catalog import public as catalog from .taxes import public as tax from .core.enums import DocumentStatus as ...
32.054217
74
0.738207
094d11be09267ae59e086160b2251d8815fde678
22,234
py
Python
lib/id3c/cli/command/manifest.py
UWIT-IAM/uw-redcap-client
38a1eb426fa80697446df7a466a41e0305382606
[ "MIT" ]
21
2019-04-19T22:45:22.000Z
2022-01-28T01:32:09.000Z
lib/id3c/cli/command/manifest.py
UWIT-IAM/uw-redcap-client
38a1eb426fa80697446df7a466a41e0305382606
[ "MIT" ]
219
2019-04-19T21:42:24.000Z
2022-03-29T21:41:04.000Z
lib/id3c/cli/command/manifest.py
UWIT-IAM/uw-redcap-client
38a1eb426fa80697446df7a466a41e0305382606
[ "MIT" ]
9
2020-03-11T20:07:26.000Z
2022-03-05T00:36:11.000Z
""" Parse, diff, and upload sample manifests. Manifests are listings of known samples with associated barcodes and other, minimal metadata. They are usually produced by the lab processing collection tubes and contain the link between encounter survey data and molecular biology results. The workflow for processing ne...
36.509031
225
0.655707
094d33103d978e85aa343035479d553c0e19592e
419
py
Python
csone/migrations/0008_auto_20200412_1828.py
Ayaz9/Django-Ticketing_System
e3ae749dec3668cb756bd59bcb967e486221bb53
[ "MIT" ]
null
null
null
csone/migrations/0008_auto_20200412_1828.py
Ayaz9/Django-Ticketing_System
e3ae749dec3668cb756bd59bcb967e486221bb53
[ "MIT" ]
null
null
null
csone/migrations/0008_auto_20200412_1828.py
Ayaz9/Django-Ticketing_System
e3ae749dec3668cb756bd59bcb967e486221bb53
[ "MIT" ]
null
null
null
# Generated by Django 3.0.4 on 2020-04-12 14:28 from django.db import migrations, models
22.052632
69
0.575179
094d973f1a0b76ddedf08b03767accf5c0cfd497
7,467
py
Python
mlcomponents/encoderdecoder.py
microsoft/aaai21-copy-that
7dfb2ebabbbf1165a33c2430ef2f2571e487b4fd
[ "MIT" ]
7
2021-06-21T17:13:23.000Z
2022-02-25T06:28:24.000Z
mlcomponents/encoderdecoder.py
microsoft/aaai21-copy-that
7dfb2ebabbbf1165a33c2430ef2f2571e487b4fd
[ "MIT" ]
null
null
null
mlcomponents/encoderdecoder.py
microsoft/aaai21-copy-that
7dfb2ebabbbf1165a33c2430ef2f2571e487b4fd
[ "MIT" ]
2
2021-09-13T12:32:16.000Z
2022-02-19T13:28:35.000Z
import logging from typing import Optional, Dict, Any, List, Tuple, NamedTuple import torch from data.edits import Edit from dpu_utils.ptutils import BaseComponent from mlcomponents.seqdecoding import SeqDecoder from mlcomponents.seqencoder import SequenceEncoder TensorizedData = NamedTuple('EncoderD...
57.438462
171
0.613633
094ecb7e5b2ee93093ff48eabf2ef2a4ed487787
8,195
py
Python
mplStyle/MplTickStyle.py
khanfarhan10/mplStyle
f657f54c6c101811b8bf0c44f4b16d4f4926685d
[ "BSD-3-Clause" ]
39
2015-03-08T23:05:01.000Z
2022-02-07T16:03:35.000Z
mplStyle/MplTickStyle.py
khanfarhan10/mplStyle
f657f54c6c101811b8bf0c44f4b16d4f4926685d
[ "BSD-3-Clause" ]
null
null
null
mplStyle/MplTickStyle.py
khanfarhan10/mplStyle
f657f54c6c101811b8bf0c44f4b16d4f4926685d
[ "BSD-3-Clause" ]
23
2015-03-08T19:56:59.000Z
2021-07-15T15:16:26.000Z
#=========================================================================== # # Copyright (c) 2014, California Institute of Technology. # U.S. Government Sponsorship under NASA Contract NAS7-03001 is # acknowledged. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modific...
37.591743
80
0.634899
094ef253be0b76a79fd33964caa1191f38c73c76
19,035
py
Python
tests/test_newsonkrumm2009.py
ryan-lang/LeuvenMapMatching
c0821fbc0b19ad13985cf6ae665216cef83c57ac
[ "Apache-2.0" ]
null
null
null
tests/test_newsonkrumm2009.py
ryan-lang/LeuvenMapMatching
c0821fbc0b19ad13985cf6ae665216cef83c57ac
[ "Apache-2.0" ]
null
null
null
tests/test_newsonkrumm2009.py
ryan-lang/LeuvenMapMatching
c0821fbc0b19ad13985cf6ae665216cef83c57ac
[ "Apache-2.0" ]
1
2021-11-25T01:53:17.000Z
2021-11-25T01:53:17.000Z
#!/usr/bin/env python3 # encoding: utf-8 """ tests.test_path_newsonkrumm2009 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Based on the data available at: https://www.microsoft.com/en-us/research/publication/hidden-markov-map-matching-noise-sparseness/ Notes: * There is a 'bug' in the map available from the website. Multiple se...
44.578454
119
0.626425
09519d2350c1ab8d636ad2b299e65de2bd927e8f
785
py
Python
simplemooc/core/migrations/0066_auto_20190606_2257.py
DiegoBrian/Eureka
27cf952b27af7fc8cfcc797dffc43a92c9a16d15
[ "MIT" ]
null
null
null
simplemooc/core/migrations/0066_auto_20190606_2257.py
DiegoBrian/Eureka
27cf952b27af7fc8cfcc797dffc43a92c9a16d15
[ "MIT" ]
null
null
null
simplemooc/core/migrations/0066_auto_20190606_2257.py
DiegoBrian/Eureka
27cf952b27af7fc8cfcc797dffc43a92c9a16d15
[ "MIT" ]
null
null
null
# Generated by Django 2.0.1 on 2019-06-07 01:57 from django.db import migrations, models import django.db.models.deletion
31.4
161
0.647134
0952e905288174cbfdd1f35d6dcc51f31902d2fc
104
py
Python
janus/qm_wrapper/__init__.py
zhenglz/janus
f3f1ed3f2b6e377c51e958cae2d919069d221eda
[ "BSD-3-Clause" ]
16
2019-04-18T15:45:02.000Z
2021-12-17T17:51:18.000Z
janus/qm_wrapper/__init__.py
zhenglz/janus
f3f1ed3f2b6e377c51e958cae2d919069d221eda
[ "BSD-3-Clause" ]
2
2019-06-20T16:56:08.000Z
2020-08-28T16:09:16.000Z
janus/qm_wrapper/__init__.py
zhenglz/janus
f3f1ed3f2b6e377c51e958cae2d919069d221eda
[ "BSD-3-Clause" ]
8
2018-11-16T17:00:58.000Z
2022-01-11T05:36:50.000Z
from janus.qm_wrapper.qm_wrapper import QMWrapper from janus.qm_wrapper.psi4_wrapper import Psi4Wrapper
34.666667
53
0.884615
0953201cd4a8eed2a34cc8ac8eb5c23d6fdfa5f0
729
py
Python
batch_client.py
NicolasKiely/percms
dbfae2406a9ea79c273197d96c5b0e70010ad114
[ "MIT" ]
null
null
null
batch_client.py
NicolasKiely/percms
dbfae2406a9ea79c273197d96c5b0e70010ad114
[ "MIT" ]
9
2016-09-15T05:12:36.000Z
2016-10-27T21:38:40.000Z
batch_client.py
NicolasKiely/percms
dbfae2406a9ea79c273197d96c5b0e70010ad114
[ "MIT" ]
null
null
null
import urllib import urllib2 import sys import batch_interface import json if len(sys.argv) == 1: print 'Usage: python %s <command> [parameter=value] ...' % sys.argv[0] print 'Try python %s batch/help to see list of functions' % sys.argv[0] print '\tor pythor %s batch/reload to reload functions' % sys.arg...
27
75
0.688615
095359d3e1736ca0199f424b5cea96012cb5fc24
3,286
py
Python
micolog/cache2.py
tclh123/micolog
9b6fcddb9f147fe20a0cbfe0e89eda07f69d0f68
[ "MIT" ]
null
null
null
micolog/cache2.py
tclh123/micolog
9b6fcddb9f147fe20a0cbfe0e89eda07f69d0f68
[ "MIT" ]
null
null
null
micolog/cache2.py
tclh123/micolog
9b6fcddb9f147fe20a0cbfe0e89eda07f69d0f68
[ "MIT" ]
null
null
null
#------------------------------------------------------------------------------- # Name: cache.py # Purpose: # # Author: xuming # # Created: 23-01-2011 # Copyright: (c) xuming 2011 # Licence: GPL #------------------------------------------------------------------------------- #!/usr/bin/env python...
30.71028
121
0.529215
0953eab6b8dde84574f531e58e6ab4f8446f3952
908
py
Python
api/main.py
KleinerKobold/team_board
da89ed78625d8d99752024f5701813d25717faa7
[ "Apache-2.0" ]
null
null
null
api/main.py
KleinerKobold/team_board
da89ed78625d8d99752024f5701813d25717faa7
[ "Apache-2.0" ]
null
null
null
api/main.py
KleinerKobold/team_board
da89ed78625d8d99752024f5701813d25717faa7
[ "Apache-2.0" ]
null
null
null
from typing import Optional from fastapi import FastAPI import redis import json from models.team_member import Team_Member app = FastAPI() r = redis.StrictRedis(host='localhost', port=6379, db=0, password="sOmE_sEcUrE_pAsS", socket_timeout=None, connection_pool=None, charset='utf-8', errors='strict', unix_so...
29.290323
186
0.69163
095502239b92541af036182c1af9eb6e40d0190e
133
py
Python
EPI - Python/Chapter 5- Arrays/page_47/code.py
therealmaxkim/Playground
29c3513464bee07efaac1e41686bf391b52d475d
[ "MIT" ]
null
null
null
EPI - Python/Chapter 5- Arrays/page_47/code.py
therealmaxkim/Playground
29c3513464bee07efaac1e41686bf391b52d475d
[ "MIT" ]
null
null
null
EPI - Python/Chapter 5- Arrays/page_47/code.py
therealmaxkim/Playground
29c3513464bee07efaac1e41686bf391b52d475d
[ "MIT" ]
null
null
null
''' the number numbers are not always the same length 23 * 4 4 * 3 + 20 * 4 '''
11.083333
49
0.556391
09561ca6902a9a4c28924212271eea54357e460c
915
py
Python
src/keyboard.py
Hsinfu/NanChangPark
4226c2d91b9e0bf39582c928da65c73a77ea6d66
[ "MIT" ]
null
null
null
src/keyboard.py
Hsinfu/NanChangPark
4226c2d91b9e0bf39582c928da65c73a77ea6d66
[ "MIT" ]
null
null
null
src/keyboard.py
Hsinfu/NanChangPark
4226c2d91b9e0bf39582c928da65c73a77ea6d66
[ "MIT" ]
null
null
null
import pygame as pg
21.785714
36
0.469945
095a069a14c07f558794d8c7a79e4d6f35007a78
53,243
py
Python
serializejson/tools.py
SmartAudioTools/serializejson
226a299968df424df3e73712f59692e8e18d948a
[ "BlueOak-1.0.0", "Apache-2.0" ]
null
null
null
serializejson/tools.py
SmartAudioTools/serializejson
226a299968df424df3e73712f59692e8e18d948a
[ "BlueOak-1.0.0", "Apache-2.0" ]
null
null
null
serializejson/tools.py
SmartAudioTools/serializejson
226a299968df424df3e73712f59692e8e18d948a
[ "BlueOak-1.0.0", "Apache-2.0" ]
null
null
null
from . import serialize_parameters from SmartFramework.string.encodings import ascii_printables from SmartFramework.tools.dictionaries import sorted_dict, sorted_filtered # ,filtered from SmartFramework.tools.objects import ( isInstance, class_has_method, ismethod_methoddescriptor_or_function, ) # ,hasMet...
41.890637
307
0.574254
095b1d80f095695d78ca8e32322128326b38659a
5,112
py
Python
LeetCode-All-Solution/Python3/LC-0189-Rotate-Array.py
YuweiYin/Algorithm_YuweiYin
28648fac59c5a4e3c907978cbd1b3e662ba18fd5
[ "MIT" ]
null
null
null
LeetCode-All-Solution/Python3/LC-0189-Rotate-Array.py
YuweiYin/Algorithm_YuweiYin
28648fac59c5a4e3c907978cbd1b3e662ba18fd5
[ "MIT" ]
null
null
null
LeetCode-All-Solution/Python3/LC-0189-Rotate-Array.py
YuweiYin/Algorithm_YuweiYin
28648fac59c5a4e3c907978cbd1b3e662ba18fd5
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding:utf-8 -*- """================================================================= @Project : Algorithm_YuweiYin/LeetCode-All-Solution/Python3 @File : LC-0189-Rotate-Array.py @Author : [YuweiYin](https://github.com/YuweiYin) @Date : 2022-01-02 ======================================...
34.77551
121
0.569836
095c5cd039268240cc1f5e992dfc55ceb574b9a1
921
py
Python
d1/repeatedcharacter.py
jwbat/python-datastructures
82ff91f1ee8c76a382bd5d43cdefe4ffcde00528
[ "MIT" ]
null
null
null
d1/repeatedcharacter.py
jwbat/python-datastructures
82ff91f1ee8c76a382bd5d43cdefe4ffcde00528
[ "MIT" ]
null
null
null
d1/repeatedcharacter.py
jwbat/python-datastructures
82ff91f1ee8c76a382bd5d43cdefe4ffcde00528
[ "MIT" ]
null
null
null
''' One fcn returns the first nonrepeated character from string, s. The other returns the first repeated character from the string. ''' #s = 'Where have I heard that?' #s = 'Wherefore art thou Romeo?' s = 'Grilled cheeses are great with mustard.' s = s.lower() d = char_count_dict(s) print('\n string: ', s) print('\...
20.931818
66
0.599349
095ca8346512b61fba41d3997f22f02f7c9433ae
2,652
py
Python
alipay/aop/api/domain/KoubeiCateringPosDishcateTransferModel.py
snowxmas/alipay-sdk-python-all
96870ced60facd96c5bce18d19371720cbda3317
[ "Apache-2.0" ]
213
2018-08-27T16:49:32.000Z
2021-12-29T04:34:12.000Z
alipay/aop/api/domain/KoubeiCateringPosDishcateTransferModel.py
snowxmas/alipay-sdk-python-all
96870ced60facd96c5bce18d19371720cbda3317
[ "Apache-2.0" ]
29
2018-09-29T06:43:00.000Z
2021-09-02T03:27:32.000Z
alipay/aop/api/domain/KoubeiCateringPosDishcateTransferModel.py
snowxmas/alipay-sdk-python-all
96870ced60facd96c5bce18d19371720cbda3317
[ "Apache-2.0" ]
59
2018-08-27T16:59:26.000Z
2022-03-25T10:08:15.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.constant.ParamConstants import *
28.212766
67
0.553922
095cddc3c05dd03a088f06ee8064ef92e069c45e
181
py
Python
face_recognition_final_year/face_recognizer_app/admin.py
chiragsaraswat/automated_authentication_system_using_face_recognition
9f63f582d79db44c9e10fec6f72d4f835af8ab3a
[ "MIT" ]
null
null
null
face_recognition_final_year/face_recognizer_app/admin.py
chiragsaraswat/automated_authentication_system_using_face_recognition
9f63f582d79db44c9e10fec6f72d4f835af8ab3a
[ "MIT" ]
null
null
null
face_recognition_final_year/face_recognizer_app/admin.py
chiragsaraswat/automated_authentication_system_using_face_recognition
9f63f582d79db44c9e10fec6f72d4f835af8ab3a
[ "MIT" ]
null
null
null
from django.contrib import admin # Register your models here. from user_manager_app.models import Attendance, Support admin.site.register(Attendance) admin.site.register(Support)
22.625
55
0.828729
0961afc6929e36d21b0d3df4440d37f44a042e71
3,557
py
Python
main.py
darshanvjani/Wrapper_EVAI_Pytorch
cd3f11ad8b36f5d512288b8e5f7e15174bd2bbd1
[ "MIT" ]
null
null
null
main.py
darshanvjani/Wrapper_EVAI_Pytorch
cd3f11ad8b36f5d512288b8e5f7e15174bd2bbd1
[ "MIT" ]
null
null
null
main.py
darshanvjani/Wrapper_EVAI_Pytorch
cd3f11ad8b36f5d512288b8e5f7e15174bd2bbd1
[ "MIT" ]
null
null
null
import torch import torchvision import torchvision.transforms as transforms import albumentations import numpy as np # from __future__ import print_function import torch.nn as nn import torch.nn.functional as F import torch.optim as optim from torchvision import datasets , transforms import torchvision fr...
39.966292
153
0.699185
096225f2fe88cf681e03f2ad2b31e29903932c92
1,733
py
Python
cloudpassage/cve_details.py
patricksanders/cloudpassage-halo-python-sdk
7fccaaacf20cc469e03d5727c6528a105ae7e790
[ "BSD-3-Clause" ]
8
2016-10-24T12:37:32.000Z
2019-06-01T10:00:18.000Z
cloudpassage/cve_details.py
patricksanders/cloudpassage-halo-python-sdk
7fccaaacf20cc469e03d5727c6528a105ae7e790
[ "BSD-3-Clause" ]
109
2016-08-09T04:51:48.000Z
2020-02-11T02:33:35.000Z
cloudpassage/cve_details.py
patricksanders/cloudpassage-halo-python-sdk
7fccaaacf20cc469e03d5727c6528a105ae7e790
[ "BSD-3-Clause" ]
14
2016-01-23T00:10:30.000Z
2021-07-07T21:13:56.000Z
"""CveDetail Class""" from .halo_endpoint import HaloEndpoint from .http_helper import HttpHelper
28.409836
77
0.641662
116d9139d5f83f9fbcc89073ff6134259db521b6
5,245
py
Python
generators_and_CLIs/baldir_markdown_mvp_incomplete/test_baldir_markdown_lib.py
marc-bouvier/sandbox
84993257edcfd39e88a3e28378d8dbed965576dc
[ "Unlicense" ]
null
null
null
generators_and_CLIs/baldir_markdown_mvp_incomplete/test_baldir_markdown_lib.py
marc-bouvier/sandbox
84993257edcfd39e88a3e28378d8dbed965576dc
[ "Unlicense" ]
8
2020-06-13T11:38:30.000Z
2020-06-15T06:22:44.000Z
test_baldir_markdown_lib.py
marc-bouvier/baldir_markdown
edd386493856fc4109f4ab3fd99bd69fb9017bf9
[ "Unlicense" ]
null
null
null
import pytest import tempfile import shutil from baldir_markdown_lib import read_source_file, parse_source_listing_start, import_code_snippet, format_markdown_snippet, split_against_source_listing_tags, pre_process_markdown_file_in_place, pre_process_markdown_text, pre_process_markdown_file_to_string, verify ...
34.966667
322
0.717255
11735286aed7be5c4d27974b285468a44294e89a
3,014
py
Python
shadow/bot.py
TraylorBoy/Shadow
bf8f2f32f443a7e4c4381eaaa3136bf20f4829bb
[ "MIT" ]
null
null
null
shadow/bot.py
TraylorBoy/Shadow
bf8f2f32f443a7e4c4381eaaa3136bf20f4829bb
[ "MIT" ]
null
null
null
shadow/bot.py
TraylorBoy/Shadow
bf8f2f32f443a7e4c4381eaaa3136bf20f4829bb
[ "MIT" ]
null
null
null
"""Automated task runner""" from typing import Any, Callable, Dict, Optional from loguru import logger from shadow.clone import ShadowClone from shadow.helpers.state import ShadowState
25.327731
83
0.601526
11736bcc1f4851da6758b8dc02337693096d5be6
1,597
py
Python
waio/factory/models/contact.py
dotX12/waio
6bc41df2d650f31fdb11a1a2b67c6149afa0e11a
[ "MIT" ]
24
2021-11-08T13:37:05.000Z
2022-03-24T12:49:54.000Z
waio/factory/models/contact.py
dotX12/waio
6bc41df2d650f31fdb11a1a2b67c6149afa0e11a
[ "MIT" ]
1
2022-01-19T03:11:58.000Z
2022-01-19T03:13:30.000Z
waio/factory/models/contact.py
dotX12/waio
6bc41df2d650f31fdb11a1a2b67c6149afa0e11a
[ "MIT" ]
5
2021-11-11T04:11:12.000Z
2022-02-15T10:41:58.000Z
from dataclasses import dataclass from typing import List, Optional, Union
20.474359
59
0.724483
117383a0b92d5b2084b9f6d9093f315d7ed4bad1
1,501
py
Python
util/visualizer.py
google/tim-gan
0139ad452b3c74e3c12791ebb719ea5979eb0d1f
[ "Apache-2.0" ]
7
2020-11-17T21:38:46.000Z
2022-02-15T02:33:10.000Z
util/visualizer.py
google/tim-gan
0139ad452b3c74e3c12791ebb719ea5979eb0d1f
[ "Apache-2.0" ]
null
null
null
util/visualizer.py
google/tim-gan
0139ad452b3c74e3c12791ebb719ea5979eb0d1f
[ "Apache-2.0" ]
2
2021-01-23T12:13:29.000Z
2021-03-27T21:20:49.000Z
# Copyright 2020 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 agree...
30.632653
80
0.688874
11760b46f1fe55bc25871f161153fb36dff70ac5
922
py
Python
transcv/swin.py
Ys-Prakash/transcv
fe72f8dac2bbdb5cffaaf36352cb039c1ca5b8a9
[ "Apache-2.0" ]
6
2021-09-19T07:47:04.000Z
2021-11-15T17:08:28.000Z
transcv/swin.py
Ys-Prakash/transcv
fe72f8dac2bbdb5cffaaf36352cb039c1ca5b8a9
[ "Apache-2.0" ]
null
null
null
transcv/swin.py
Ys-Prakash/transcv
fe72f8dac2bbdb5cffaaf36352cb039c1ca5b8a9
[ "Apache-2.0" ]
null
null
null
# AUTOGENERATED! DO NOT EDIT! File to edit: 01_swin.ipynb (unless otherwise specified). __all__ = ['SwinT'] # Cell #hide import timm from nbdev.showdoc import * from fastai.vision.all import * # Cell
32.928571
111
0.686551
117624463673d5965908bc5b693e638ca894611b
407
py
Python
authorize/apis/base_api.py
aryeh/py-authorize
e0a2e8d9828efa2146b22cb855fa28d723913e41
[ "MIT" ]
30
2015-03-13T01:31:52.000Z
2021-06-11T08:49:43.000Z
authorize/apis/base_api.py
aryeh/py-authorize
e0a2e8d9828efa2146b22cb855fa28d723913e41
[ "MIT" ]
41
2015-01-30T20:01:05.000Z
2022-03-31T23:11:56.000Z
authorize/apis/base_api.py
aryeh/py-authorize
e0a2e8d9828efa2146b22cb855fa28d723913e41
[ "MIT" ]
34
2015-01-11T20:22:03.000Z
2022-03-28T20:34:22.000Z
import colander from authorize.exceptions import AuthorizeInvalidError
22.611111
54
0.65602
11766920d1f9e38bf6634e7585ed79d49348e3c1
1,237
py
Python
stable_baselines/trpo_mpi/run_mujoco.py
emadboctorx/stable-baselines
9bce185538e8bf69836371286e23919fd85eec64
[ "MIT" ]
null
null
null
stable_baselines/trpo_mpi/run_mujoco.py
emadboctorx/stable-baselines
9bce185538e8bf69836371286e23919fd85eec64
[ "MIT" ]
null
null
null
stable_baselines/trpo_mpi/run_mujoco.py
emadboctorx/stable-baselines
9bce185538e8bf69836371286e23919fd85eec64
[ "MIT" ]
null
null
null
import stable_baselines.common.tf_util as tf_util from mpi4py import MPI from stable_baselines import logger from stable_baselines.common.cmd_util import make_mujoco_env, mujoco_arg_parser from stable_baselines.common.policies import MlpPolicy from stable_baselines.trpo_mpi import TRPO if __name__ == '__main__': ...
28.767442
79
0.631366
11767e77d6369d63f87f78e8e4f1ac800b3e2e86
929
py
Python
Day-16/part1.py
archanpatkar/advent2020
86065eb744c885ce0e29ea8228b8e8ebbd38c939
[ "MIT" ]
null
null
null
Day-16/part1.py
archanpatkar/advent2020
86065eb744c885ce0e29ea8228b8e8ebbd38c939
[ "MIT" ]
null
null
null
Day-16/part1.py
archanpatkar/advent2020
86065eb744c885ce0e29ea8228b8e8ebbd38c939
[ "MIT" ]
null
null
null
import sys sys.path.append("..") from common import * data = aoci(parse); p(data[0]); count = 0 error_rate = 0 for tic in data[2]: for val in tic: flag = False for field in data[0]: c = data[0][field] if bi(val,c[0][0],c[0][1]) or bi(val,c[1][0],c[1][1]): fl...
28.151515
87
0.52099
11791aa64e3598994f4ffc54bf2c561214125d3a
1,931
py
Python
NewQshop/AppStore/Buyer/views.py
bestwishfang/FlaskFrameWork
e5f2af0b82be6d5b32febadc244a72aadceaa58b
[ "MIT" ]
null
null
null
NewQshop/AppStore/Buyer/views.py
bestwishfang/FlaskFrameWork
e5f2af0b82be6d5b32febadc244a72aadceaa58b
[ "MIT" ]
3
2020-04-30T15:16:56.000Z
2022-02-13T08:02:39.000Z
NewQshop/AppStore/Buyer/views.py
bestwishfang/FlaskFrameWork
e5f2af0b82be6d5b32febadc244a72aadceaa58b
[ "MIT" ]
null
null
null
import time import json import datetime from flask import request from flask import render_template from flask_restful import Resource from . import buyer, apibuyer from AppStore.models import Class_Info
25.407895
72
0.578975
11791d8dd54ab856a076d61973de8d77641f2d2d
115
py
Python
app/route.py
Indexyz/pods-info-example
e36657d2e4448a9d42450fd5e41671bba11ee9b4
[ "Unlicense" ]
null
null
null
app/route.py
Indexyz/pods-info-example
e36657d2e4448a9d42450fd5e41671bba11ee9b4
[ "Unlicense" ]
null
null
null
app/route.py
Indexyz/pods-info-example
e36657d2e4448a9d42450fd5e41671bba11ee9b4
[ "Unlicense" ]
null
null
null
from flask_restful import Api import info
19.166667
42
0.713043
117a656b53ebd25b52d2ba050419669977c82183
219
py
Python
apps/integrations/github/resources/followers.py
wizzzet/github_backend
9e4b5d3273e850e4ac0f425d22911987be7a7eff
[ "MIT" ]
null
null
null
apps/integrations/github/resources/followers.py
wizzzet/github_backend
9e4b5d3273e850e4ac0f425d22911987be7a7eff
[ "MIT" ]
null
null
null
apps/integrations/github/resources/followers.py
wizzzet/github_backend
9e4b5d3273e850e4ac0f425d22911987be7a7eff
[ "MIT" ]
null
null
null
from integrations.github.resources.base import GitHubListResource
27.375
65
0.799087
117ccff29d39a8a303a7911cf64c178e84256843
681
py
Python
tests/test_provider_unicell_kind.py
mjuenema/python-terrascript
6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d
[ "BSD-2-Clause" ]
507
2017-07-26T02:58:38.000Z
2022-01-21T12:35:13.000Z
tests/test_provider_unicell_kind.py
mjuenema/python-terrascript
6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d
[ "BSD-2-Clause" ]
135
2017-07-20T12:01:59.000Z
2021-10-04T22:25:40.000Z
tests/test_provider_unicell_kind.py
mjuenema/python-terrascript
6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d
[ "BSD-2-Clause" ]
81
2018-02-20T17:55:28.000Z
2022-01-31T07:08:40.000Z
# tests/test_provider_unicell_kind.py # Automatically generated by tools/makecode.py (24-Sep-2021 15:20:21 UTC) # TODO: Shortcut imports without namespace for official and supported providers. # TODO: This has to be moved into a required_providers block. # def test_version_source(): # # import terrascript.pro...
27.24
80
0.737151
1180dde3665390d3a54ac55203c8a6a39a04cbc1
1,993
py
Python
addpapers.py
tarrow/librarybase-pwb
6c86aba7cbcb6200bfade0170aea8be3593cafec
[ "MIT" ]
1
2017-05-23T14:14:16.000Z
2017-05-23T14:14:16.000Z
addpapers.py
tarrow/librarybase-pwb
6c86aba7cbcb6200bfade0170aea8be3593cafec
[ "MIT" ]
7
2015-12-09T10:14:37.000Z
2016-01-19T12:55:33.000Z
addpapers.py
tarrow/librarybase-pwb
6c86aba7cbcb6200bfade0170aea8be3593cafec
[ "MIT" ]
null
null
null
import queryCiteFile import librarybase import pywikibot from epmclib.getPMCID import getPMCID from epmclib.exceptions import IDNotResolvedException import queue import threading import time q=queue.Queue() rununthreaded()
29.746269
93
0.606121
118141ccfae972e74c17e2b33370161c604fe8c4
2,491
py
Python
day18/script2.py
Moremar/advent_of_code_2019
572200ad8c24efd38fb3fac428d086bcd7090ca9
[ "Apache-2.0" ]
null
null
null
day18/script2.py
Moremar/advent_of_code_2019
572200ad8c24efd38fb3fac428d086bcd7090ca9
[ "Apache-2.0" ]
null
null
null
day18/script2.py
Moremar/advent_of_code_2019
572200ad8c24efd38fb3fac428d086bcd7090ca9
[ "Apache-2.0" ]
null
null
null
from day18.script1 import parse_matrix, read_char_matrix, alpha_lower, solve_world # We could use the same logic as part 1 with a state made of a distance and 4 (x, y) pairs (one for each bot) # This works with examples, but there are too many combinations for the real input so it runs for very long # # To get it qui...
34.123288
116
0.607788
1183ffbe924869fb7a592b3839706503e0ba51ef
1,029
py
Python
test/test_clamp.py
XiaoxuanZhangCM/igakit
71bc4237a561272f6189d067688c182aa705c5eb
[ "BSD-2-Clause" ]
2
2022-03-21T09:38:55.000Z
2022-03-24T23:33:55.000Z
test/test_clamp.py
XiaoxuanZhangCM/igakit
71bc4237a561272f6189d067688c182aa705c5eb
[ "BSD-2-Clause" ]
1
2022-03-24T22:50:35.000Z
2022-03-27T06:33:16.000Z
test/test_clamp.py
XiaoxuanZhangCM/igakit
71bc4237a561272f6189d067688c182aa705c5eb
[ "BSD-2-Clause" ]
null
null
null
import numpy as np from igakit.cad import circle, Pi if __name__ == '__main__': test_clamp()
27.810811
67
0.477162
1186952effff0749fbfa4fc2d6b7b1c8935379fb
4,261
py
Python
autoload/vim_ext/vim_opt.py
nielsmadan/venom
87dee312fe8dbaa64fe29fba7a2ccd5f41a55b4a
[ "0BSD" ]
1
2022-01-26T04:57:28.000Z
2022-01-26T04:57:28.000Z
autoload/vim_ext/vim_opt.py
nielsmadan/venom
87dee312fe8dbaa64fe29fba7a2ccd5f41a55b4a
[ "0BSD" ]
null
null
null
autoload/vim_ext/vim_opt.py
nielsmadan/venom
87dee312fe8dbaa64fe29fba7a2ccd5f41a55b4a
[ "0BSD" ]
1
2021-08-19T08:11:58.000Z
2021-08-19T08:11:58.000Z
import vim _BOOL_OPTS = set(('allowrevins', 'altkeymap', 'antialias', 'autochdir', 'arabic', 'arabicshape', 'autoindent', 'autoread', 'autowrite', 'backup', 'ballooneval', 'binary', 'bioskey', 'bomb', 'buflisted', 'buftype', 'cindent', 'compatible', 'confirm', 'con...
59.180556
106
0.553157
118876cb679cde240360c27b46916d06a9308fee
997
py
Python
docker/postgresql-backup/tasks.py
angelopolotto/awesome-docker-sh
2b1bba817974504835b5b6a9863fad59a8581a19
[ "MIT" ]
null
null
null
docker/postgresql-backup/tasks.py
angelopolotto/awesome-docker-sh
2b1bba817974504835b5b6a9863fad59a8581a19
[ "MIT" ]
null
null
null
docker/postgresql-backup/tasks.py
angelopolotto/awesome-docker-sh
2b1bba817974504835b5b6a9863fad59a8581a19
[ "MIT" ]
null
null
null
#!/bin/python # coding=utf-8 import schedule import time from subprocess import call # Referncias: # https://pypi.org/project/schedule/ # https://stackoverflow.com/questions/373335/how-do-i-get-a-cron-like-scheduler-in-python # https://www.geeksforgeeks.org/python-schedule-library/ if __name__ == "__main__": p...
28.485714
89
0.605817
1188f7d771d6606445861a8c6c54d6fe5f5f1785
40,198
py
Python
statestream/utils/shared_memory.py
boschresearch/statestream
3ea93b2e0434cfaf5d546f37b2068dc0a0b8c281
[ "Apache-2.0", "MIT" ]
9
2019-02-21T14:25:26.000Z
2021-07-21T08:14:32.000Z
statestream/utils/shared_memory.py
VolkerFischer/statestream
3ea93b2e0434cfaf5d546f37b2068dc0a0b8c281
[ "Apache-2.0", "MIT" ]
null
null
null
statestream/utils/shared_memory.py
VolkerFischer/statestream
3ea93b2e0434cfaf5d546f37b2068dc0a0b8c281
[ "Apache-2.0", "MIT" ]
1
2019-03-04T03:17:00.000Z
2019-03-04T03:17:00.000Z
# -*- coding: utf-8 -*- # Copyright (c) 2017 - for information on the respective copyright owner # see the NOTICE file and/or the repository https://github.com/boschresearch/statestream # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License....
48.962241
113
0.449898
118905449900c13944077442978a29530c910266
382
py
Python
setup.py
ldacosta/geometry2D
9be0df6544777d29740991234bc92a7004ef775e
[ "MIT" ]
null
null
null
setup.py
ldacosta/geometry2D
9be0df6544777d29740991234bc92a7004ef775e
[ "MIT" ]
null
null
null
setup.py
ldacosta/geometry2D
9be0df6544777d29740991234bc92a7004ef775e
[ "MIT" ]
null
null
null
from distutils.core import setup setup( name='Geometry2D', version='0.7.1', author='Luis Da Costa', author_email='dacosta.le@gmail.com', packages=['geometry'], scripts=[], url='https://github.com/ldacosta/geometry2D/', license='LICENSE.txt', long_description=open('README.txt').read(...
22.470588
50
0.617801
1189f4feaa6f37baba240eba239b4e25d3d105ed
1,341
py
Python
rainbowplot/tests.py
ioreshnikov/rainbowplot
42022e0dd427b0ec245d2d703f6ad591a87861d9
[ "MIT" ]
null
null
null
rainbowplot/tests.py
ioreshnikov/rainbowplot
42022e0dd427b0ec245d2d703f6ad591a87861d9
[ "MIT" ]
null
null
null
rainbowplot/tests.py
ioreshnikov/rainbowplot
42022e0dd427b0ec245d2d703f6ad591a87861d9
[ "MIT" ]
null
null
null
from unittest import TestCase import numpy as np import matplotlib.pyplot as plt from .plot import rainbowplot
23.12069
80
0.529456
118a041ae6d96652625804e1d8039c4ff86c7d07
3,957
py
Python
core/views.py
MichelAtieno/Rogue-Nation
c4d78b42b5e6312043de2308a591951d0ba297b8
[ "Unlicense" ]
null
null
null
core/views.py
MichelAtieno/Rogue-Nation
c4d78b42b5e6312043de2308a591951d0ba297b8
[ "Unlicense" ]
11
2020-06-05T22:42:25.000Z
2022-03-11T23:58:46.000Z
core/views.py
MichelAtieno/Rogue-Nation
c4d78b42b5e6312043de2308a591951d0ba297b8
[ "Unlicense" ]
null
null
null
from django.db.models import Count, Q from django.core.paginator import Paginator, EmptyPage, PageNotAnInteger from django.shortcuts import render, get_object_or_404 from .models import NewsItem, SignUp, Artist, Athlete,Category # Create your views here.
28.06383
96
0.668183
118a9196e211cb95ce33a333ef7a6481cddafdd3
2,133
py
Python
process-invoices/update_invoice_statuses.py
MITLibraries/alma-scripts
c312692a71a83dc0b5e60761bc3e7b37d7d42099
[ "Apache-2.0" ]
null
null
null
process-invoices/update_invoice_statuses.py
MITLibraries/alma-scripts
c312692a71a83dc0b5e60761bc3e7b37d7d42099
[ "Apache-2.0" ]
16
2021-07-23T20:46:29.000Z
2022-03-10T19:34:10.000Z
process-invoices/update_invoice_statuses.py
MITLibraries/alma-scripts
c312692a71a83dc0b5e60761bc3e7b37d7d42099
[ "Apache-2.0" ]
null
null
null
import datetime import glob import sys import requests from defusedxml import ElementTree as ET sys.path.append("..") from llama.alma import Alma_API_Client import llama.config as config TODAY = datetime.date.today() count_total_invoices = 0 count_invoices_updated = 0 count_invoice_errors = 0 # Update empty invoice...
35.55
86
0.735115
118a963b9511f86ed9bf75aa58347aecde3de782
4,117
py
Python
src/converter/convert_mobilenetv2.py
xiongzhiyao/pytorch-segmentation
a13b1aa1b316d06f050deef29d5be8b6e99460e7
[ "MIT" ]
359
2018-11-22T04:13:19.000Z
2022-03-08T09:05:47.000Z
src/converter/convert_mobilenetv2.py
xiongzhiyao/pytorch-segmentation
a13b1aa1b316d06f050deef29d5be8b6e99460e7
[ "MIT" ]
21
2018-12-07T22:37:09.000Z
2021-01-22T02:18:28.000Z
src/converter/convert_mobilenetv2.py
xiongzhiyao/pytorch-segmentation
a13b1aa1b316d06f050deef29d5be8b6e99460e7
[ "MIT" ]
73
2018-11-22T06:16:54.000Z
2021-03-30T18:26:47.000Z
import argparse from pathlib import Path import tensorflow as tf import torch from models.net import SPPNet if __name__ == '__main__': parser = argparse.ArgumentParser() parser.add_argument('ckpt_path') parser.add_argument('num_classes', type=int) parser.add_argument('output_path') args = parser...
45.744444
116
0.747389
118aedb6c6d513ed6f6c93f84ecac295ca601bc5
347
py
Python
create_securty_group.py
whojarr/drupal_aws
e9a7e42a554158b6e068d0fa54ab87151a3ae807
[ "ADSL" ]
null
null
null
create_securty_group.py
whojarr/drupal_aws
e9a7e42a554158b6e068d0fa54ab87151a3ae807
[ "ADSL" ]
null
null
null
create_securty_group.py
whojarr/drupal_aws
e9a7e42a554158b6e068d0fa54ab87151a3ae807
[ "ADSL" ]
null
null
null
#!/usr/bin/env python import ec2 security_group = ec2.DrupalSecurityGroup() print("Created new Drupal Security Group Object:{}".format(security_group)) if security_group.exists(): print("Security Group Exists") exit(1) security_group_id = security_group.create() print("Created new EC2 Security Group ID:{}"....
24.785714
75
0.760807
118bb9cc42104087368b917dcb655edae791e512
2,624
py
Python
extract-subimages-videos.py
rzaluska/fcnn-conferences
509946a4d342451f29e7b8706b6ff46b0af20f36
[ "MIT" ]
1
2018-04-07T05:55:48.000Z
2018-04-07T05:55:48.000Z
extract-subimages-videos.py
rzaluska/fcnn-conferences
509946a4d342451f29e7b8706b6ff46b0af20f36
[ "MIT" ]
null
null
null
extract-subimages-videos.py
rzaluska/fcnn-conferences
509946a4d342451f29e7b8706b6ff46b0af20f36
[ "MIT" ]
null
null
null
# script for extracting patches from video frames suitable for neural network # training from keras.preprocessing.image import ImageDataGenerator, load_img, img_to_array, array_to_img from PIL import Image import sys import os import glob from PIL import Image from os.path import basename, splitext import numpy as n...
39.164179
172
0.626905
118c04c3ee9fe35ac75935787959d36e0b22d4b3
269
py
Python
sample.py
tiholic/Rubiks
20618a4271973cb8244ba602beea4d79b0ba52f8
[ "Apache-2.0" ]
null
null
null
sample.py
tiholic/Rubiks
20618a4271973cb8244ba602beea4d79b0ba52f8
[ "Apache-2.0" ]
null
null
null
sample.py
tiholic/Rubiks
20618a4271973cb8244ba602beea4d79b0ba52f8
[ "Apache-2.0" ]
null
null
null
side = [ [ "Y", "O", "W" ], [ "R", "G", "O" ], [ "O", "O", "B" ] ] new_side = [ [ 'X' for i in range(3) ] for i in range(3) ] for row_idx, row in enumerate(side): for unit_idx, unit in enumerate(row): new_side[2-unit_idx][row_idx] = unit print(new_side)
24.454545
58
0.535316
118d551ca0c80c0e51a840c724d05bb79e776a14
2,113
py
Python
src/extract_cdi/__init__.py
igorgbr/extract_cdi
66d8aa56d0099c04ef491908ab246389b79fdc7e
[ "MIT" ]
null
null
null
src/extract_cdi/__init__.py
igorgbr/extract_cdi
66d8aa56d0099c04ef491908ab246389b79fdc7e
[ "MIT" ]
null
null
null
src/extract_cdi/__init__.py
igorgbr/extract_cdi
66d8aa56d0099c04ef491908ab246389b79fdc7e
[ "MIT" ]
null
null
null
import os import time import json from random import random from datetime import datetime import pandas as pd import seaborn as sns import requests
32.507692
78
0.549456
118ff67c852ea38f217b5c566e77f4efa9b7fe30
9,368
py
Python
FirmsLocations/Retrieve/density_assignation.py
tgquintela/Firms_locations
476680cbc3eb1308811633d24810049e215101a0
[ "MIT" ]
null
null
null
FirmsLocations/Retrieve/density_assignation.py
tgquintela/Firms_locations
476680cbc3eb1308811633d24810049e215101a0
[ "MIT" ]
null
null
null
FirmsLocations/Retrieve/density_assignation.py
tgquintela/Firms_locations
476680cbc3eb1308811633d24810049e215101a0
[ "MIT" ]
null
null
null
""" Assign geographically density value to a points. """ from scipy.spatial import KDTree from scipy.spatial.distance import cdist from scipy.stats import norm from scipy.optimize import minimize import numpy as np def general_density_assignation(locs, parameters, values=None, locs2=None): "Density assignation ...
34.315018
79
0.570773
1190f1b038385208afbc477445817bdebba87dc5
561
py
Python
nexus/pylon/sources/specific/biorxiv.py
leoll2/hyperboria
30a0ae466b290208f690560160ef1f5c16e4a744
[ "Unlicense" ]
null
null
null
nexus/pylon/sources/specific/biorxiv.py
leoll2/hyperboria
30a0ae466b290208f690560160ef1f5c16e4a744
[ "Unlicense" ]
null
null
null
nexus/pylon/sources/specific/biorxiv.py
leoll2/hyperboria
30a0ae466b290208f690560160ef1f5c16e4a744
[ "Unlicense" ]
null
null
null
from typing import AsyncIterable from nexus.pylon.sources.base import ( DoiSource, PreparedRequest, )
28.05
84
0.616756
1193d717cb8b9aa0587bf651757ef62435cc6b62
3,645
py
Python
addLatLon.py
amnh-sciviz/amnh-time-machine
c75c75c6bd3ee91d81cb4b0181a292de27eab9c8
[ "MIT" ]
null
null
null
addLatLon.py
amnh-sciviz/amnh-time-machine
c75c75c6bd3ee91d81cb4b0181a292de27eab9c8
[ "MIT" ]
null
null
null
addLatLon.py
amnh-sciviz/amnh-time-machine
c75c75c6bd3ee91d81cb4b0181a292de27eab9c8
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import argparse from difflib import SequenceMatcher import os from pprint import pprint import sys import lib.eac_utils as eac import lib.io_utils as io # input parser = argparse.ArgumentParser() parser.add_argument('-in', dest="INPUT_FILE", default="data/eac_dates.csv", help="File with EAC d...
35.735294
199
0.652126
119493a292813a2fe3956c473600e488537134ab
502
py
Python
Turtle/MovingPen.py
Williano/Tutorials
c5fb841ba94783ac3b239dbd2be9d04dd6e8d962
[ "MIT" ]
null
null
null
Turtle/MovingPen.py
Williano/Tutorials
c5fb841ba94783ac3b239dbd2be9d04dd6e8d962
[ "MIT" ]
null
null
null
Turtle/MovingPen.py
Williano/Tutorials
c5fb841ba94783ac3b239dbd2be9d04dd6e8d962
[ "MIT" ]
null
null
null
# Script: MovingPen.py # Description: This program uses python's turtle graphics module to draw shapes,lines, # circles and text. # Programmer: William Kpabitey Kwabla. # Date: 27.05.17 # Importing the turtle module. import turtle # It moves the pen to (0, 50) from (0, 0). turtle.goto(0, 50) # It move...
20.08
86
0.695219
11958f77466ed28b0ddf34aab10041bc97b2f55d
912
py
Python
Solutions/problem07.py
WalrusCow/euler
b5bfa67c87c7043f521cde32e7212c0fffdbacd9
[ "MIT" ]
null
null
null
Solutions/problem07.py
WalrusCow/euler
b5bfa67c87c7043f521cde32e7212c0fffdbacd9
[ "MIT" ]
null
null
null
Solutions/problem07.py
WalrusCow/euler
b5bfa67c87c7043f521cde32e7212c0fffdbacd9
[ "MIT" ]
null
null
null
# Project Euler Problem 7 # Created on: 2012-06-13 # Created by: William McDonald import math import time # Short list of prime numbers under 20 primeList = [2, 3, 5, 7, 9, 11, 13, 17, 19] # Returns True if n is prime, otherwise False # Returns the nth prime number start = time.time() ans = getPrime...
24
46
0.551535
119622f084f9dfff43411b649a9c89be1e105982
1,820
py
Python
cogs/ban.py
QuentiumYT/QuentiumBot
1673d24d93f13f464b1175424529c4d58abb5c00
[ "MIT" ]
9
2019-11-14T10:12:00.000Z
2021-12-17T13:05:40.000Z
cogs/ban.py
QuentiumYT/QuentiumBot
1673d24d93f13f464b1175424529c4d58abb5c00
[ "MIT" ]
null
null
null
cogs/ban.py
QuentiumYT/QuentiumBot
1673d24d93f13f464b1175424529c4d58abb5c00
[ "MIT" ]
4
2020-08-20T21:24:52.000Z
2021-12-17T13:05:17.000Z
import discord from discord.ext import commands from QuentiumBot import HandleData, get_translations # Basic command configs cmd_name = "ban" tran = get_translations() aliases = [] if not tran[cmd_name]["fr"]["aliases"] else tran[cmd_name]["fr"]["aliases"].split("/")
36.4
100
0.637912
119816fffb1e07970d7a5eddf0acda8930b0e4b4
3,057
py
Python
tpp_tensorflow/models/semisparse.py
gfrogat/tpp_tensorflow
711dd8cc0a8155ce6b6e5663afb2331b55748d30
[ "MIT" ]
null
null
null
tpp_tensorflow/models/semisparse.py
gfrogat/tpp_tensorflow
711dd8cc0a8155ce6b6e5663afb2331b55748d30
[ "MIT" ]
null
null
null
tpp_tensorflow/models/semisparse.py
gfrogat/tpp_tensorflow
711dd8cc0a8155ce6b6e5663afb2331b55748d30
[ "MIT" ]
null
null
null
from tensorflow.keras import Model, layers, regularizers
31.515464
88
0.59928
119876ff369ecd32448c59ea7ad56ae2b54cfef2
4,628
py
Python
AT/neo4j_functions.py
seakers/daphne-brain
1d703d468cd503a21395f986dd72e67b6e556451
[ "MIT" ]
null
null
null
AT/neo4j_functions.py
seakers/daphne-brain
1d703d468cd503a21395f986dd72e67b6e556451
[ "MIT" ]
null
null
null
AT/neo4j_functions.py
seakers/daphne-brain
1d703d468cd503a21395f986dd72e67b6e556451
[ "MIT" ]
null
null
null
# Testing for neo4j query functions from neo4j import GraphDatabase, basic_auth # setup neo4j database connection driver = GraphDatabase.driver("bolt://13.58.54.49:7687", auth=basic_auth("neo4j", "goSEAKers!")) session = driver.session() # Function that can take the intersection of multiple symptom queries # Fabricat...
46.747475
177
0.642178
119a0cbab86f26fb6ab15f22092ddf49f71f6f94
5,486
py
Python
build.py
refaim/wots
dad9918c603293982a598fb5d6c73ade1a6080e1
[ "MIT" ]
2
2018-07-14T19:45:38.000Z
2019-04-21T07:17:20.000Z
build.py
refaim/wots
dad9918c603293982a598fb5d6c73ade1a6080e1
[ "MIT" ]
155
2018-07-07T00:33:31.000Z
2021-08-16T17:55:05.000Z
build.py
refaim/wots
dad9918c603293982a598fb5d6c73ade1a6080e1
[ "MIT" ]
null
null
null
import datetime import math import os import sys import PyQt5 import dotenv from PyInstaller.archive.pyz_crypto import PyiBlockCipher from PyInstaller.building.api import PYZ, EXE, COLLECT from PyInstaller.building.build_main import Analysis from app import version from app.core.utils import OsUtils, PathUtils APP_N...
42.527132
158
0.693584
119a349c2ca5822591f4b6677156eec1b27631d0
1,939
py
Python
server/constants.py
chrononyan/ok
1c83e419dd8d5ef64c1e03a7f8a218e65a9fb7cf
[ "Apache-2.0" ]
148
2018-07-03T02:08:30.000Z
2022-03-26T04:03:35.000Z
server/constants.py
chrononyan/ok
1c83e419dd8d5ef64c1e03a7f8a218e65a9fb7cf
[ "Apache-2.0" ]
856
2015-01-10T04:27:20.000Z
2018-06-27T14:43:23.000Z
server/constants.py
chrononyan/ok
1c83e419dd8d5ef64c1e03a7f8a218e65a9fb7cf
[ "Apache-2.0" ]
69
2015-01-26T08:06:55.000Z
2018-06-25T12:46:03.000Z
"""App constants""" import os STUDENT_ROLE = 'student' GRADER_ROLE = 'grader' STAFF_ROLE = 'staff' INSTRUCTOR_ROLE = 'instructor' LAB_ASSISTANT_ROLE = 'lab assistant' ROLE_DISPLAY_NAMES = { STUDENT_ROLE: 'Student', GRADER_ROLE: 'Reader', STAFF_ROLE: 'Teaching Assistant', INSTRUCTOR_ROLE: 'Instructor', ...
28.101449
89
0.684373
119ba308325a28e7115e3336760ea5459e34bcae
31,721
py
Python
SRTG-Scheduler/SRTG-ResultAnalysis/scripts/aperiodic-jobs-resultAnalyzer.py
kiritigowda/RTG-scheduler
4aa3d66e011e6a0d16e19719f940c5cc0a6559ba
[ "MIT" ]
2
2021-10-15T12:00:51.000Z
2021-11-23T04:50:58.000Z
SRTG-Scheduler/SRTG-ResultAnalysis/scripts/aperiodic-jobs-resultAnalyzer.py
kiritigowda/RTG-scheduler
4aa3d66e011e6a0d16e19719f940c5cc0a6559ba
[ "MIT" ]
45
2018-01-24T15:38:11.000Z
2020-10-31T19:50:19.000Z
SRTG-Scheduler/SRTG-ResultAnalysis/scripts/aperiodic-jobs-resultAnalyzer.py
kiritigowda/RTG-scheduler
4aa3d66e011e6a0d16e19719f940c5cc0a6559ba
[ "MIT" ]
2
2018-05-23T17:13:44.000Z
2020-09-18T15:06:17.000Z
# Copyright (c) 2017 - 2020 Kiriti Nagesh Gowda, Inc. All rights reserved. # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to ...
49.027821
225
0.694871
119d8e43e77baac65ef5c6b64d016a19f85843ba
6,741
py
Python
malaya/_utils/_softmax_class.py
leowmjw/Malaya
33f39835eca08c238d2dd68aeca3b09c5d0a45ab
[ "MIT" ]
null
null
null
malaya/_utils/_softmax_class.py
leowmjw/Malaya
33f39835eca08c238d2dd68aeca3b09c5d0a45ab
[ "MIT" ]
null
null
null
malaya/_utils/_softmax_class.py
leowmjw/Malaya
33f39835eca08c238d2dd68aeca3b09c5d0a45ab
[ "MIT" ]
null
null
null
import sys import warnings if not sys.warnoptions: warnings.simplefilter('ignore') import json import os import pickle from ._utils import check_file, load_graph, check_available, generate_session from ..stem import _classification_textcleaning_stemmer from .._models._sklearn_model import ( BINARY_XGB, BI...
30.640909
122
0.58745
119ea88acc92144d46ec6203fbc4f95f170a347e
1,580
py
Python
src/otest/test_setup.py
rohe/otest
8983db8abfa63eda4e8a35bbe193ac80793c14bb
[ "Apache-2.0" ]
2
2016-08-26T07:42:19.000Z
2017-09-06T02:13:02.000Z
src/otest/test_setup.py
rohe/otest
8983db8abfa63eda4e8a35bbe193ac80793c14bb
[ "Apache-2.0" ]
3
2017-06-15T06:07:18.000Z
2018-06-28T07:43:21.000Z
src/otest/test_setup.py
rohe/otest
8983db8abfa63eda4e8a35bbe193ac80793c14bb
[ "Apache-2.0" ]
5
2016-07-22T21:38:40.000Z
2019-04-05T19:20:23.000Z
from oidctest.op import func from oidctest.op import oper from oidctest.op.client import Client from oidctest.session import SessionHandler from otest.aus.handling_ph import WebIh from otest.conf_setup import OP_ORDER from otest.conversation import Conversation from otest.events import Events from otest.flow import Fl...
34.347826
76
0.681646
119efd61f102f9d7b866310597894dc025bd5e5a
466
py
Python
AlgoritimoRandomize.py
falluk/algoritimoDeBuscas
6dbca79ef60f2820f5e81110bc4104bdc46496b1
[ "MIT" ]
1
2021-07-05T13:24:04.000Z
2021-07-05T13:24:04.000Z
AlgoritimoRandomize.py
falluk/algoritimoDeBuscas
6dbca79ef60f2820f5e81110bc4104bdc46496b1
[ "MIT" ]
null
null
null
AlgoritimoRandomize.py
falluk/algoritimoDeBuscas
6dbca79ef60f2820f5e81110bc4104bdc46496b1
[ "MIT" ]
null
null
null
#Criado para randomizar uma lsita de 20mil Colaboradores retornando apenas 1000 colaboradores vrios cargos distintos. import pandas as pd import random base = pd.read_excel("usuarios - energisa.xlsx", encoding="ISO-8859-1",error_bad_lines=False) sort1 = base.sample(15000) sort2 = sort1.sample(10000) sort3 = sort2....
22.190476
118
0.776824
11a158752080d596792054d55693dc41df752af9
7,625
py
Python
app.py
Build-Week-2106FT-AirBnB-3/front-end
0df6f9814387a36002a1aaa8feff1f17fcb30b78
[ "CC0-1.0" ]
null
null
null
app.py
Build-Week-2106FT-AirBnB-3/front-end
0df6f9814387a36002a1aaa8feff1f17fcb30b78
[ "CC0-1.0" ]
1
2021-06-24T00:17:40.000Z
2021-06-24T00:18:42.000Z
app.py
Build-Week-2106FT-AirBnB-3/pricing
0df6f9814387a36002a1aaa8feff1f17fcb30b78
[ "CC0-1.0" ]
null
null
null
# -*- coding: utf-8 -*- # https://towardsdatascience.com/build-a-machine-learning-simulation-tool-with-dash-b3f6fd512ad6 # We start with the import of standard ML librairies import pandas as pd import numpy as np from sklearn.datasets import make_regression from sklearn.ensemble import RandomForestRegressor # We ad...
39.921466
114
0.6
11a170a7d9d4be2747fc2f885fdbdea415898a39
356
py
Python
others/python/exceptions/except.py
bt3gl/Resources-Numerical_Methods_for_Physics
8668215f107230fafd9bdeb0061d353328cf03e8
[ "Apache-2.0" ]
17
2019-10-28T03:13:07.000Z
2020-11-21T17:38:06.000Z
others/python/exceptions/except.py
bt3gl/Resources-Numerical_Methods_for_Physics
8668215f107230fafd9bdeb0061d353328cf03e8
[ "Apache-2.0" ]
null
null
null
others/python/exceptions/except.py
bt3gl/Resources-Numerical_Methods_for_Physics
8668215f107230fafd9bdeb0061d353328cf03e8
[ "Apache-2.0" ]
5
2020-05-09T07:55:32.000Z
2020-12-12T11:05:42.000Z
# try openning a file for reading try: f = open("file.txt", "r") except IOError: print "I/O Error" # undefined variable x = 1.0 try: x + y except NameError: print "undefined variable" # example from tutorial try: this_fails() except ZeroDivisionError as detail: print 'Handling run-time error:', de...
14.833333
44
0.671348
11a1d2a8f067924755b1bb004f5652117e69edcd
1,787
py
Python
balloon_learning_environment/env/gym.py
johannah/balloon-learning-environment
cdb2e582f2b03c41f037bf76142d31611f5e0316
[ "Apache-2.0" ]
64
2021-11-09T08:49:02.000Z
2022-03-30T17:33:54.000Z
balloon_learning_environment/env/gym.py
johannah/balloon-learning-environment
cdb2e582f2b03c41f037bf76142d31611f5e0316
[ "Apache-2.0" ]
null
null
null
balloon_learning_environment/env/gym.py
johannah/balloon-learning-environment
cdb2e582f2b03c41f037bf76142d31611f5e0316
[ "Apache-2.0" ]
5
2021-11-14T18:56:42.000Z
2022-03-18T16:22:31.000Z
# coding=utf-8 # Copyright 2022 The Balloon Learning Environment Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless require...
43.585366
77
0.758254
11a1e1b730dc4e433d8e1358594ee3d9a8526d1b
15,181
py
Python
models/multimodal_transformer.py
XiaoJake/MTTR
c383c5b151e3c97aeb45cd2fb4bf08719016498b
[ "Apache-2.0" ]
516
2021-11-30T03:22:41.000Z
2022-03-31T19:48:59.000Z
models/multimodal_transformer.py
codwest/MTTR
c383c5b151e3c97aeb45cd2fb4bf08719016498b
[ "Apache-2.0" ]
15
2021-12-07T02:43:24.000Z
2022-03-27T15:59:32.000Z
models/multimodal_transformer.py
codwest/MTTR
c383c5b151e3c97aeb45cd2fb4bf08719016498b
[ "Apache-2.0" ]
57
2021-11-30T08:49:51.000Z
2022-03-25T19:41:08.000Z
""" MTTR Multimodal Transformer class. Modified from DETR https://github.com/facebookresearch/detr """ import copy import os from typing import Optional import torch import torch.nn.functional as F from torch import nn, Tensor from einops import rearrange, repeat from transformers import RobertaModel, RobertaTokenizerF...
44.259475
122
0.625585
11a22b195401a97025bc1265b213cb97ff210032
403
py
Python
docker_sdk_api/shared/helpers/get_model_zip.py
BMW-InnovationLab/BMW-Semantic-Segmentation-Training-GUI
902f35a7e367e635898f687b16a830db892fbaa5
[ "Apache-2.0" ]
20
2021-07-13T13:08:57.000Z
2022-03-29T09:38:00.000Z
docker_sdk_api/shared/helpers/get_model_zip.py
BMW-InnovationLab/BMW-Semantic-Segmentation-Training-GUI
902f35a7e367e635898f687b16a830db892fbaa5
[ "Apache-2.0" ]
null
null
null
docker_sdk_api/shared/helpers/get_model_zip.py
BMW-InnovationLab/BMW-Semantic-Segmentation-Training-GUI
902f35a7e367e635898f687b16a830db892fbaa5
[ "Apache-2.0" ]
2
2021-07-12T08:42:53.000Z
2022-03-04T18:41:25.000Z
import os from typing import Dict
28.785714
63
0.622829
11a302e0300bce122a82770aa16b84ca6e8d73b5
6,065
py
Python
groups/views.py
3crabs/class-book
f5de12be816aa9be889d8413007be8eb4abdf45f
[ "WTFPL" ]
1
2020-11-19T14:49:41.000Z
2020-11-19T14:49:41.000Z
groups/views.py
3crabs/class-book
f5de12be816aa9be889d8413007be8eb4abdf45f
[ "WTFPL" ]
null
null
null
groups/views.py
3crabs/class-book
f5de12be816aa9be889d8413007be8eb4abdf45f
[ "WTFPL" ]
null
null
null
from django.core.mail import EmailMessage from django.http import HttpResponse, HttpResponseRedirect from django.shortcuts import render from accounting.models import Attendance, Result from accounting.templatetags import my_tags from class_book import settings from groups.models import Group, Student from subjects.mo...
32.433155
115
0.616983
11a618f11b6fac52f4355fdfd119636e79cd945a
1,415
py
Python
pset_pandas_ext/101problems/solutions/p65.py
mottaquikarim/pydev-psets
9749e0d216ee0a5c586d0d3013ef481cc21dee27
[ "MIT" ]
5
2019-04-08T20:05:37.000Z
2019-12-04T20:48:45.000Z
pset_pandas_ext/101problems/solutions/p65.py
mottaquikarim/pydev-psets
9749e0d216ee0a5c586d0d3013ef481cc21dee27
[ "MIT" ]
8
2019-04-15T15:16:05.000Z
2022-02-12T10:33:32.000Z
pset_pandas_ext/101problems/solutions/p65.py
mottaquikarim/pydev-psets
9749e0d216ee0a5c586d0d3013ef481cc21dee27
[ "MIT" ]
2
2019-04-10T00:14:42.000Z
2020-02-26T20:35:21.000Z
""" 66. How to replace both the diagonals of dataframe with 0? """ """ Difficulty Level: L2 """ """ Replace both values in both diagonals of df with 0. """ """ Input """ """ df = pd.DataFrame(np.random.randint(1,100, 100).reshape(10, -1)) df # 0 1 2 3 4 5 6 7 8 9 # 0 11 46 26 44 11 62 18 7...
27.745098
64
0.477032