hexsha
stringlengths
40
40
size
int64
5
2.06M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
248
max_stars_repo_name
stringlengths
5
125
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
248
max_issues_repo_name
stringlengths
5
125
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
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
248
max_forks_repo_name
stringlengths
5
125
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
5
2.06M
avg_line_length
float64
1
1.02M
max_line_length
int64
3
1.03M
alphanum_fraction
float64
0
1
count_classes
int64
0
1.6M
score_classes
float64
0
1
count_generators
int64
0
651k
score_generators
float64
0
1
count_decorators
int64
0
990k
score_decorators
float64
0
1
count_async_functions
int64
0
235k
score_async_functions
float64
0
1
count_documentation
int64
0
1.04M
score_documentation
float64
0
1
85eee91df955bbbecc3244390928eb3edef3f3cf
5,730
py
Python
trueWorld.py
str1k/dwatravel
47be1377a60431ffcb3ad09846be7647d44e5760
[ "MIT" ]
null
null
null
trueWorld.py
str1k/dwatravel
47be1377a60431ffcb3ad09846be7647d44e5760
[ "MIT" ]
null
null
null
trueWorld.py
str1k/dwatravel
47be1377a60431ffcb3ad09846be7647d44e5760
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import requests from bs4 import BeautifulSoup import re import time import MySQLdb s = requests.Session() login_url = "http://www.trueworldagency.com/member/login_ok.asp" login_data = {'upw': '07092519', 'uid': '07092519'} s.post(login_url, login_data) counter = 0 trip_bookingID = [] trip_perio...
35.590062
218
0.621466
0
0
0
0
0
0
0
0
1,932
0.337173
85ef49b97d17705c81cdeeb0ece8add9c7768f1d
6,718
py
Python
extract_data_1.1.py
stanlee321/bolivia_power
4c86be2be8b81fead5ba9f1d50f32233cd54c1fc
[ "MIT" ]
null
null
null
extract_data_1.1.py
stanlee321/bolivia_power
4c86be2be8b81fead5ba9f1d50f32233cd54c1fc
[ "MIT" ]
null
null
null
extract_data_1.1.py
stanlee321/bolivia_power
4c86be2be8b81fead5ba9f1d50f32233cd54c1fc
[ "MIT" ]
null
null
null
# Code for extract the information from the web # with the <id> information into the bolivia_power_1.csv file # input: bolivia_power_1.id.csv # output 6x.npy array file: # <nodes_ids.lat,lon> <node.tags> # <way.ids> <way.ref> <way.tags> # ... # v. 1.1 #import pandas as pd import numpy as np...
28.108787
124
0.539744
0
0
238
0.035427
0
0
0
0
4,035
0.600625
85f0ac57ac9d5511f94d39253027463025311137
194
py
Python
tests/api/utils/test_config.py
Devansh3712/py-cmc
e3f9687914d92cd95bd5a7c04e6103345ba43a3d
[ "MIT" ]
2
2022-02-14T07:13:12.000Z
2022-02-14T07:20:34.000Z
tests/api/utils/test_config.py
Devansh3712/py-cmc
e3f9687914d92cd95bd5a7c04e6103345ba43a3d
[ "MIT" ]
6
2022-02-21T10:50:43.000Z
2022-03-03T15:44:09.000Z
tests/api/utils/test_config.py
Devansh3712/py-cmc
e3f9687914d92cd95bd5a7c04e6103345ba43a3d
[ "MIT" ]
2
2022-02-20T01:43:35.000Z
2022-03-13T09:34:51.000Z
from api.utils.config import settings def test_config_validation() -> None: assert type(settings.host) == str assert type(settings.port) == int assert type(settings.expire) == int
24.25
39
0.71134
0
0
0
0
0
0
0
0
0
0
85f402a990563be3704e3ce90f8e5fbc80ebcb6e
526
py
Python
Practice/Problem Solving/MaximizingXOR.py
avantikasharma/HackerRank-Solutions
a980859ac352688853fcbcf3c7ec6d95685f99ea
[ "MIT" ]
1
2018-07-08T15:44:15.000Z
2018-07-08T15:44:15.000Z
Practice/Problem Solving/MaximizingXOR.py
avantikasharma/HackerRank-Solutions
a980859ac352688853fcbcf3c7ec6d95685f99ea
[ "MIT" ]
null
null
null
Practice/Problem Solving/MaximizingXOR.py
avantikasharma/HackerRank-Solutions
a980859ac352688853fcbcf3c7ec6d95685f99ea
[ "MIT" ]
2
2018-08-10T06:49:34.000Z
2020-10-01T04:50:59.000Z
#!/bin/python3 import math import os import random import re import sys # Complete the maximizingXor function below. def maximizingXor(l, r): result = [] for num1 in range(l,r+1): for num2 in range(l,r+1): xor = num1^num2 result.append(xor) return max(result) i...
17.533333
47
0.58365
0
0
0
0
0
0
0
0
88
0.1673
85f4fbb2d3d898f2e76022a95446b29026af0760
2,216
py
Python
Sketches/MH/Layout/Visualisation/Graph/GridRenderer.py
sparkslabs/kamaelia_orig
24b5f855a63421a1f7c6c7a35a7f4629ed955316
[ "Apache-2.0" ]
12
2015-10-20T10:22:01.000Z
2021-07-19T10:09:44.000Z
Sketches/MH/Layout/Visualisation/Graph/GridRenderer.py
sparkslabs/kamaelia_orig
24b5f855a63421a1f7c6c7a35a7f4629ed955316
[ "Apache-2.0" ]
2
2015-10-20T10:22:55.000Z
2017-02-13T11:05:25.000Z
Sketches/MH/Layout/Visualisation/Graph/GridRenderer.py
sparkslabs/kamaelia_orig
24b5f855a63421a1f7c6c7a35a7f4629ed955316
[ "Apache-2.0" ]
6
2015-03-09T12:51:59.000Z
2020-03-01T13:06:21.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- # Copyright 2010 British Broadcasting Corporation and Kamaelia Contributors(1) # # (1) Kamaelia Contributors are listed in the AUTHORS file and at # http://www.kamaelia.org/AUTHORS - please extend this file, # not this notice. # # Licensed under the Apache License,...
38.206897
83
0.584386
1,178
0.531588
680
0.306859
0
0
0
0
1,153
0.520307
85f5bac9de2e5415cb10c2fbf5dabb5fee1eb3a8
436
py
Python
config.py
anggerwicaksono/vehicle-brand-recognition-yolov4-python
b58a76481bd499ff77deb037f5791119a9572d0c
[ "MIT" ]
null
null
null
config.py
anggerwicaksono/vehicle-brand-recognition-yolov4-python
b58a76481bd499ff77deb037f5791119a9572d0c
[ "MIT" ]
null
null
null
config.py
anggerwicaksono/vehicle-brand-recognition-yolov4-python
b58a76481bd499ff77deb037f5791119a9572d0c
[ "MIT" ]
null
null
null
# Copyright © 2020 by Spectrico # Licensed under the MIT License model_file = "model-weights-spectrico-car-colors-recognition-mobilenet_v3-224x224-180420.pb" # path to the car color classifier label_file = "labelsC.txt" # path to the text file, containing list with the supported makes and models input_layer = "inpu...
48.444444
128
0.784404
0
0
0
0
0
0
0
0
334
0.764302
85f686d400d73419843a0643d08f81afb4fe05ef
4,417
py
Python
interface_report_interactive.py
hpreston/network_info_scripts
b25076eb6f55a7f7335f6cae1a4c3c00ce9aa191
[ "MIT" ]
20
2019-05-11T03:08:52.000Z
2022-01-13T13:44:22.000Z
interface_report_interactive.py
hpreston/network_info_scripts
b25076eb6f55a7f7335f6cae1a4c3c00ce9aa191
[ "MIT" ]
4
2020-02-26T23:25:59.000Z
2021-12-13T19:59:01.000Z
interface_report_interactive.py
hpreston/network_info_scripts
b25076eb6f55a7f7335f6cae1a4c3c00ce9aa191
[ "MIT" ]
8
2019-05-20T02:27:40.000Z
2021-07-07T18:49:45.000Z
#! /usr/bin/env python """Exploring Genie's ability to gather details and write to CSV This script is meant to be run line by line interactively in a Python interpretor (such as iPython) to learn how the Genie and csv libraries work. This script assumes you have a virl simulation running and a testbed file created. ...
33.462121
88
0.713607
0
0
0
0
0
0
0
0
3,263
0.738737
85f74ccca3d8f227ec09283215d9c1ace1b61121
1,159
py
Python
app/priu.py
robhaswell/powerstrip-restrict-image-user
d6a5dbb19330f1ee5b384095c1010636af12120d
[ "Apache-2.0" ]
null
null
null
app/priu.py
robhaswell/powerstrip-restrict-image-user
d6a5dbb19330f1ee5b384095c1010636af12120d
[ "Apache-2.0" ]
null
null
null
app/priu.py
robhaswell/powerstrip-restrict-image-user
d6a5dbb19330f1ee5b384095c1010636af12120d
[ "Apache-2.0" ]
null
null
null
import os, sys import json as _json from flask import Flask, Response, request app = Flask(__name__) app.debug = True import lib @app.route("/", methods=["HEAD", "GET", "POST", "DELETE", "PUT"]) def adapter(): json = request.get_data() decoded = _json.loads(json) docker_json = _json.loads(decoded['Clien...
26.340909
88
0.637619
0
0
0
0
630
0.543572
0
0
415
0.358067
85f7c87317fb94af50f148e6f619929fe75f47af
1,316
py
Python
app/gather/api/serializers.py
eHealthAfrica/gather
88d96009c5f9832b564d13fa66d63841a7fbcd90
[ "Apache-2.0" ]
2
2019-09-25T18:37:30.000Z
2019-09-25T18:37:39.000Z
app/gather/api/serializers.py
eHealthAfrica/gather
88d96009c5f9832b564d13fa66d63841a7fbcd90
[ "Apache-2.0" ]
41
2015-07-29T14:10:05.000Z
2021-09-13T07:07:41.000Z
app/gather/api/serializers.py
eHealthAfrica/gather
88d96009c5f9832b564d13fa66d63841a7fbcd90
[ "Apache-2.0" ]
2
2019-11-12T23:09:35.000Z
2020-03-11T16:39:35.000Z
# Copyright (C) 2019 by eHealth Africa : http://www.eHealthAfrica.org # # See the NOTICE file distributed with this work for additional information # regarding copyright ownership. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with # the License. Y...
28
75
0.729483
407
0.309271
0
0
0
0
0
0
738
0.56079
85f9b76b3b5d2af9bcf373c178d927992a22b317
280
py
Python
CCC/CCC '19 J3 - Cold Compress.py
Joon7891/Competitive-Programming
d860b7ad932cd5a6fb91fdc8c53101da57f4a408
[ "MIT" ]
2
2021-04-13T00:19:56.000Z
2021-04-13T01:19:45.000Z
CCC/CCC '19 J3 - Cold Compress.py
Joon7891/Competitive-Programming
d860b7ad932cd5a6fb91fdc8c53101da57f4a408
[ "MIT" ]
null
null
null
CCC/CCC '19 J3 - Cold Compress.py
Joon7891/Competitive-Programming
d860b7ad932cd5a6fb91fdc8c53101da57f4a408
[ "MIT" ]
1
2020-08-26T12:36:08.000Z
2020-08-26T12:36:08.000Z
n = int(input()) for _ in range(n): line = input() prev = '' counter = 0 for char in line: if char != prev: if prev != '': print(counter, prev, end = ' ') prev = char counter = 1 else: counter += 1 print(counter, prev)
15.555556
39
0.478571
0
0
0
0
0
0
0
0
7
0.025
85fd9ccfe64a572bc3232cd253f5cd2894061049
1,514
py
Python
src/utils/jupyter_setup.py
paxtonedgar/MisInfo
81b32fa3e7d0d204feb83e10169093f45727a2ea
[ "MIT" ]
null
null
null
src/utils/jupyter_setup.py
paxtonedgar/MisInfo
81b32fa3e7d0d204feb83e10169093f45727a2ea
[ "MIT" ]
null
null
null
src/utils/jupyter_setup.py
paxtonedgar/MisInfo
81b32fa3e7d0d204feb83e10169093f45727a2ea
[ "MIT" ]
null
null
null
# built-in import os import logging # installed import pandas as pd import seaborn as sns from matplotlib import pylab # custom import src.settings from src.utils.log_utils import setup_logging, LogLevel from src.utils.config_loader import ConfigLoader, Config def setup_jupyter( root_dir: str, config_path: s...
26.103448
75
0.664465
0
0
0
0
0
0
0
0
597
0.39432
85fdbccdde41392a6f2e6723a8450dd58d4c3c85
3,169
py
Python
EclipseOJ/contests/models.py
cs251-eclipse/eclipseOJ
ad93bf65014e87051278026f87b6b92afdaed349
[ "MIT" ]
null
null
null
EclipseOJ/contests/models.py
cs251-eclipse/eclipseOJ
ad93bf65014e87051278026f87b6b92afdaed349
[ "MIT" ]
null
null
null
EclipseOJ/contests/models.py
cs251-eclipse/eclipseOJ
ad93bf65014e87051278026f87b6b92afdaed349
[ "MIT" ]
1
2020-06-06T21:05:09.000Z
2020-06-06T21:05:09.000Z
from django.db import models from django.contrib.auth.models import User from core.models import Profile from array import * from datetime import datetime from django.utils import timezone class Contest(models.Model): """ Contests models are used to store save contests as object. Contests contain problems, use...
39.123457
270
0.688545
2,975
0.938782
0
0
0
0
0
0
1,553
0.49006
85fe97d41b6486d5e18a9ac451b9332abc6e4cd3
2,659
py
Python
oldnumba/special.py
meawoppl/numba
bb8df0aee99133c6d52465ae9f9df2a7996339f3
[ "BSD-2-Clause" ]
1
2015-01-29T06:52:36.000Z
2015-01-29T06:52:36.000Z
oldnumba/special.py
meawoppl/numba
bb8df0aee99133c6d52465ae9f9df2a7996339f3
[ "BSD-2-Clause" ]
null
null
null
oldnumba/special.py
meawoppl/numba
bb8df0aee99133c6d52465ae9f9df2a7996339f3
[ "BSD-2-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """ Special compiler-recognized numba functions and attributes. """ from __future__ import print_function, division, absolute_import __all__ = ['NULL', 'typeof', 'python', 'nopython', 'addressof', 'prange'] import ctypes from numba import error #--------------------------------------------...
27.989474
78
0.532907
283
0.106431
0
0
0
0
0
0
1,284
0.482888
85ff76b7f34f9abc8f910e03a1576bfe726a0de5
7,602
py
Python
mistletoe/renderers/base.py
executablebooks/mistletoe-ebp
229812436726fd9b1af85c6e66ff8c81b415758d
[ "MIT" ]
2
2020-05-19T02:06:47.000Z
2020-06-27T10:01:59.000Z
mistletoe/renderers/base.py
executablebooks/mistletoe-ebp
229812436726fd9b1af85c6e66ff8c81b415758d
[ "MIT" ]
5
2020-03-10T22:43:16.000Z
2020-03-21T22:09:09.000Z
mistletoe/renderers/base.py
ExecutableBookProject/mistletoe-ebp
229812436726fd9b1af85c6e66ff8c81b415758d
[ "MIT" ]
null
null
null
""" Base class for renderers. """ from itertools import chain import re import sys from typing import Optional from mistletoe import block_tokens, block_tokens_ext, span_tokens, span_tokens_ext from mistletoe.parse_context import ParseContext, set_parse_context class BaseRenderer: """ Base class for rendere...
34.089686
83
0.64654
7,335
0.964878
0
0
491
0.064588
0
0
3,560
0.468298
85ff94648db8e42f7e087780f32ca9e870cb3118
2,123
py
Python
deep-scratch/steps/step50.py
jayChung0302/myml
6575706aec707186037607e49342f77cde34ff52
[ "MIT" ]
null
null
null
deep-scratch/steps/step50.py
jayChung0302/myml
6575706aec707186037607e49342f77cde34ff52
[ "MIT" ]
null
null
null
deep-scratch/steps/step50.py
jayChung0302/myml
6575706aec707186037607e49342f77cde34ff52
[ "MIT" ]
null
null
null
if '__file__' in globals(): import os, sys sys.path.append(os.path.join(os.path.dirname(__file__), '..')) import math import numpy as np import matplotlib.pyplot as plt import dezero from dezero import optimizers import dezero.functions as F import dezero.datasets as datasets from dezero.models import MLP from ...
25.890244
93
0.621291
306
0.144136
0
0
0
0
0
0
192
0.090438
c80394afc399b78e52b09f0399ffa60c6bd99be4
2,807
py
Python
src/old/mpas-source/testing_and_setup/compass/landice/MISMIP3D/plot_speed_profiles.py
meteorologytoday/E3SM-sicn
61acadf73929399586c8972f263f0d65696cba38
[ "MIT" ]
null
null
null
src/old/mpas-source/testing_and_setup/compass/landice/MISMIP3D/plot_speed_profiles.py
meteorologytoday/E3SM-sicn
61acadf73929399586c8972f263f0d65696cba38
[ "MIT" ]
null
null
null
src/old/mpas-source/testing_and_setup/compass/landice/MISMIP3D/plot_speed_profiles.py
meteorologytoday/E3SM-sicn
61acadf73929399586c8972f263f0d65696cba38
[ "MIT" ]
null
null
null
#!/usr/bin/env python ''' Plots velocity profiles for a diagnostic solve for a range of resolutions, with and without GLP. ''' import numpy as np import netCDF4 #import datetime # import math # from pylab import * from optparse import OptionParser import matplotlib.pyplot as plt from matplotlib import cm # from matplot...
29.239583
143
0.662629
0
0
0
0
0
0
0
0
1,267
0.451372
c804b2aba892b4eb59eed92a1fc2059a9fcab787
2,713
py
Python
halfpipe/model/__init__.py
fossabot/Halfpipe-1
9e9fae20467d2c73b67fcb2cc73ed7144d79db3a
[ "FTL" ]
null
null
null
halfpipe/model/__init__.py
fossabot/Halfpipe-1
9e9fae20467d2c73b67fcb2cc73ed7144d79db3a
[ "FTL" ]
null
null
null
halfpipe/model/__init__.py
fossabot/Halfpipe-1
9e9fae20467d2c73b67fcb2cc73ed7144d79db3a
[ "FTL" ]
null
null
null
# -*- coding: utf-8 -*- # emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*- # vi: set ft=python sts=4 ts=4 sw=4 et: """ """ from .exclude import ExcludeSchema, rating_indices from .spec import SpecSchema, loadspec, savespec from .tags import BoldTagsSchema, FuncTagsSchema, entities, entity_long...
23.798246
97
0.708072
0
0
0
0
0
0
0
0
1,066
0.392923
c804be87c5478ddfa9fadf38397429243edc770e
4,363
py
Python
play.py
cp1r8/metadungeon
e68a35c815d60bccb883436fde782868bff7f81f
[ "CC0-1.0" ]
null
null
null
play.py
cp1r8/metadungeon
e68a35c815d60bccb883436fde782868bff7f81f
[ "CC0-1.0" ]
null
null
null
play.py
cp1r8/metadungeon
e68a35c815d60bccb883436fde782868bff7f81f
[ "CC0-1.0" ]
null
null
null
#!/usr/bin/env python3 from game import World from game.creatures import Humanoid, Unit from game.creatures.adventurers import Adventurer, Party from game.objects.containers import Container from game.places.underground import Dungeon from game.dice import d4 from pathlib import Path import pickle import sys import u...
28.89404
98
0.544579
0
0
0
0
0
0
0
0
669
0.1533
c80564b90308d62159da1bcee2b8ccb5be3d2c50
87
py
Python
HelloPython/Hello.py
itsdamslife/python-ml-udacity
d16b7619a05e1b42fcbd0846f64726bf9741701a
[ "MIT" ]
null
null
null
HelloPython/Hello.py
itsdamslife/python-ml-udacity
d16b7619a05e1b42fcbd0846f64726bf9741701a
[ "MIT" ]
null
null
null
HelloPython/Hello.py
itsdamslife/python-ml-udacity
d16b7619a05e1b42fcbd0846f64726bf9741701a
[ "MIT" ]
null
null
null
class HelloPy: def hello(self): print("Hello Python!") HelloPy().hello()
12.428571
30
0.597701
66
0.758621
0
0
0
0
0
0
15
0.172414
c80624c4bad650eb5277c12ff9ddd20884d61424
590
py
Python
freeze.py
eudemonia-research/hec
e65df8e4584746dcb2785327cfcffac10a66c689
[ "MIT" ]
2
2015-11-05T16:24:31.000Z
2022-02-05T19:01:58.000Z
freeze.py
eudemonia-research/hec
e65df8e4584746dcb2785327cfcffac10a66c689
[ "MIT" ]
null
null
null
freeze.py
eudemonia-research/hec
e65df8e4584746dcb2785327cfcffac10a66c689
[ "MIT" ]
null
null
null
from cx_Freeze import setup, Executable import requests.certs # Dependencies are automatically detected, but it might need # fine tuning. buildOptions = dict(packages = [], excludes = [], include_msvcr=True, include_files=[(requests.certs.where(),'cacert.pem')]) import sys base = 'Win32GUI' if sys....
29.5
74
0.676271
0
0
0
0
0
0
0
0
148
0.250847
c8063918c58e85541c9a3697d5b6790d29d944d4
103
py
Python
chapter2/chapter2_type_hints_01.py
GoodMonsters/Building-Data-Science-Applications-with-FastAPI
d2218d225c5b93723ecf46c19619ed5d3f2473e6
[ "MIT" ]
107
2021-03-26T20:18:51.000Z
2022-03-26T03:38:08.000Z
chapter2/chapter2_type_hints_01.py
GoodMonsters/Building-Data-Science-Applications-with-FastAPI
d2218d225c5b93723ecf46c19619ed5d3f2473e6
[ "MIT" ]
4
2021-06-09T08:48:21.000Z
2021-12-27T09:04:43.000Z
chapter2/chapter2_type_hints_01.py
GoodMonsters/Building-Data-Science-Applications-with-FastAPI
d2218d225c5b93723ecf46c19619ed5d3f2473e6
[ "MIT" ]
58
2021-03-12T20:51:19.000Z
2022-03-27T15:49:49.000Z
def greeting(name: str) -> str: return f"Hello, {name}" print(greeting("John")) # "Hello, John"
17.166667
40
0.61165
0
0
0
0
0
0
0
0
37
0.359223
c806d8b85faac4749d3297eee869e84a9a44277c
2,742
py
Python
Elasticsearch/elasticsearchconnector.py
krajai/testt
3aaf5fd7fe85e712c8c1615852b50f9ccb6737e5
[ "BSD-3-Clause" ]
1,114
2020-09-28T07:32:23.000Z
2022-03-31T22:35:50.000Z
Elasticsearch/elasticsearchconnector.py
krajai/testt
3aaf5fd7fe85e712c8c1615852b50f9ccb6737e5
[ "BSD-3-Clause" ]
298
2020-10-29T09:39:17.000Z
2022-03-31T15:24:44.000Z
Elasticsearch/elasticsearchconnector.py
krajai/testt
3aaf5fd7fe85e712c8c1615852b50f9ccb6737e5
[ "BSD-3-Clause" ]
153
2020-09-29T06:07:39.000Z
2022-03-31T17:41:16.000Z
# Import elasticsearch module from elasticsearch import Elasticsearch,ImproperlyConfigured,TransportError import json class ElasticsearchConnector: def __init__(self,credobject=None): """ Description: Accepts elasticsearch connection parameters and connects to elasticsearch cloud """ #Parameter chec...
35.153846
119
0.73523
2,623
0.956601
0
0
0
0
0
0
997
0.363603
c8086e05aec0c6df0ba73279af11a14fb3f20635
15,813
py
Python
Lab3.py
jamieaclifford/Crystal
d9ea44187a7673f523ad350834d38730c2d31126
[ "MIT" ]
null
null
null
Lab3.py
jamieaclifford/Crystal
d9ea44187a7673f523ad350834d38730c2d31126
[ "MIT" ]
null
null
null
Lab3.py
jamieaclifford/Crystal
d9ea44187a7673f523ad350834d38730c2d31126
[ "MIT" ]
null
null
null
from numpy import * from scipy.signal import correlate2d from numpy.random import randint,choice,uniform from matplotlib.pyplot import * import matplotlib.pyplot as plt from os import system class KineticMonteCarlo(object) : def __init__( self, Model ) : # reference state ...
34.526201
207
0.568393
14,901
0.942326
0
0
0
0
0
0
3,223
0.20382
c8093b0fe4419003974199d64ec5c9a63aa70c9e
4,434
py
Python
pyvino_utils/models/recognition/gaze_estimation.py
venky4121994/openvinoface
a620138b94f865fb19e6165abde2237c85ca8764
[ "MIT" ]
4
2020-08-31T17:19:57.000Z
2020-10-03T13:59:10.000Z
pyvino_utils/models/recognition/gaze_estimation.py
B0N0AI/pyvino_utils
0d42741eb446b038eae2917b621d9c1ffbc42452
[ "MIT" ]
2
2020-09-13T08:04:36.000Z
2020-09-13T08:04:58.000Z
pyvino_utils/models/recognition/gaze_estimation.py
mmphego/pyvino_utils
0d42741eb446b038eae2917b621d9c1ffbc42452
[ "MIT" ]
null
null
null
import time import cv2 import numpy as np from ..openvino_base.base_model import Base class GazeEstimation(Base): """Class for the Gaze Estimation Recognition Model.""" def __init__( self, model_name, source_width=None, source_height=None, device="CPU", thres...
32.844444
86
0.554804
4,343
0.979477
0
0
1,439
0.324538
0
0
769
0.173433
c8095fa9e80674ff147ce29f4d9409ee896f3519
1,982
py
Python
src/testing/task_plot_share_of_educ_participants_with_rapid_test.py
covid-19-impact-lab/sid-germany
aef4bbfb326adaf9190c6d8880e15b3d6f150d28
[ "MIT" ]
4
2021-04-24T14:43:47.000Z
2021-07-03T14:05:21.000Z
src/testing/task_plot_share_of_educ_participants_with_rapid_test.py
covid-19-impact-lab/sid-germany
aef4bbfb326adaf9190c6d8880e15b3d6f150d28
[ "MIT" ]
4
2021-04-27T10:34:45.000Z
2021-08-31T16:40:28.000Z
src/testing/task_plot_share_of_educ_participants_with_rapid_test.py
covid-19-impact-lab/sid-germany
aef4bbfb326adaf9190c6d8880e15b3d6f150d28
[ "MIT" ]
null
null
null
import warnings import matplotlib.pyplot as plt import pandas as pd import pytask import seaborn as sns from src.config import BLD from src.config import PLOT_END_DATE from src.config import PLOT_SIZE from src.config import PLOT_START_DATE from src.config import SRC from src.plotting.plotting import style_plot from s...
30.492308
85
0.712916
0
0
0
0
1,599
0.806761
0
0
420
0.211907
c80966397626d332b933ed9036f4e46b5c441750
734
py
Python
app/models/brand.py
ertyurk/bugme
5a3ef3e089e0089055074c1c896c3fdc76600e93
[ "MIT" ]
null
null
null
app/models/brand.py
ertyurk/bugme
5a3ef3e089e0089055074c1c896c3fdc76600e93
[ "MIT" ]
null
null
null
app/models/brand.py
ertyurk/bugme
5a3ef3e089e0089055074c1c896c3fdc76600e93
[ "MIT" ]
null
null
null
from typing import Optional from pydantic import BaseModel, Field class BrandModel(BaseModel): brand: str = Field(...) auth_key: Optional[str] user_id: str = Field(...) class Config: allow_population_by_field_name = True schema_extra = { "example": { "brand...
22.9375
54
0.553134
662
0.901907
0
0
0
0
0
0
140
0.190736
c80b2595bdb7003b8c3cf6b926f272d5aafaf2b7
2,917
py
Python
src/autoschedulers/nelli2021/cmdscale.py
InteonCo/Halide
cb38ed9942e878bf40674d75da1cdd2527b81d0a
[ "Apache-2.0" ]
1
2021-12-30T09:27:33.000Z
2021-12-30T09:27:33.000Z
src/autoschedulers/nelli2021/cmdscale.py
InteonCo/Halide
cb38ed9942e878bf40674d75da1cdd2527b81d0a
[ "Apache-2.0" ]
3
2021-03-16T22:01:02.000Z
2021-09-23T19:17:10.000Z
src/autoschedulers/nelli2021/cmdscale.py
InteonCo/Halide
cb38ed9942e878bf40674d75da1cdd2527b81d0a
[ "Apache-2.0" ]
null
null
null
# thanks to Francis Song for this function # source: http://www.nervouscomputer.com/hfs/cmdscale-in-python/ from __future__ import division import numpy as np def cmdscale(D): """ Classical multidimensional scaling (MDS) ...
56.096154
95
0.255399
0
0
0
0
0
0
0
0
2,458
0.842647
c80c247892056d339d30163cadca271c880389d5
443
py
Python
flaskapp/app.py
Chetan-Gahane/Detection-Of-Phishing-Websites
327c6bbd4fe77d465e290466f26a387760103ad7
[ "MIT" ]
null
null
null
flaskapp/app.py
Chetan-Gahane/Detection-Of-Phishing-Websites
327c6bbd4fe77d465e290466f26a387760103ad7
[ "MIT" ]
null
null
null
flaskapp/app.py
Chetan-Gahane/Detection-Of-Phishing-Websites
327c6bbd4fe77d465e290466f26a387760103ad7
[ "MIT" ]
null
null
null
from flask import Flask from flask import Flask, flash, redirect, render_template, request, session, abort import os import newtrain app = Flask(__name__) @app.route('/') def home(x): return x @app.route('/login', methods=['POST']) def do_admin_login(): url_new=request.form['username'] x=newtrai...
20.136364
82
0.683973
0
0
0
0
186
0.419865
0
0
37
0.083521
c80efb1904e757cf4b1d0964fcfc32592997f16d
178
py
Python
lib/__init__.py
irap-omp/deconv3d
0ab5322f99e28a19ce5540d9a27dcbe340542d0a
[ "MIT" ]
3
2016-09-19T08:52:37.000Z
2018-12-07T09:33:20.000Z
lib/__init__.py
irap-omp/deconv3d
0ab5322f99e28a19ce5540d9a27dcbe340542d0a
[ "MIT" ]
1
2015-04-09T12:30:14.000Z
2015-04-09T14:05:30.000Z
lib/__init__.py
irap-omp/deconv3d
0ab5322f99e28a19ce5540d9a27dcbe340542d0a
[ "MIT" ]
3
2017-12-13T14:26:24.000Z
2019-07-26T18:15:37.000Z
from os.path import abspath, dirname with open(dirname(abspath(__file__))+'/../VERSION', 'r') as version_file: __version__ = version_file.read().replace('\n', '').strip()
25.428571
73
0.685393
0
0
0
0
0
0
0
0
22
0.123596
c80fb814451534b7b615ad0d3cac56241fef8195
9,150
py
Python
selection/algorithms/tests/test_sqrt_lasso.py
wfithian/selective-inference
19ea427118b04716b23b394f37aafcf126d29a53
[ "BSD-3-Clause" ]
null
null
null
selection/algorithms/tests/test_sqrt_lasso.py
wfithian/selective-inference
19ea427118b04716b23b394f37aafcf126d29a53
[ "BSD-3-Clause" ]
null
null
null
selection/algorithms/tests/test_sqrt_lasso.py
wfithian/selective-inference
19ea427118b04716b23b394f37aafcf126d29a53
[ "BSD-3-Clause" ]
1
2019-07-13T04:14:12.000Z
2019-07-13T04:14:12.000Z
from __future__ import division import numpy as np import numpy.testing.decorators as dec import nose.tools as nt import statsmodels as sm import matplotlib.pyplot as plt from selection.algorithms.sqrt_lasso import (sqrt_lasso, choose_lambda, estimate_sigma, data_carving, split_model)...
33.888889
114
0.500656
0
0
0
0
1,103
0.120546
0
0
378
0.041311
c8100632cb345df1cb4918dfaf696ed8e91b2f92
8,607
py
Python
training/anticausal_classifier_train.py
SANCHES-Pedro/Diff-SCM
a7e7e6ed3a2cd1c21e3bf7a3ed8ed8b29a22cb69
[ "Apache-2.0" ]
6
2022-02-22T05:07:05.000Z
2022-03-29T09:48:03.000Z
training/anticausal_classifier_train.py
SANCHES-Pedro/Diff-SCM
a7e7e6ed3a2cd1c21e3bf7a3ed8ed8b29a22cb69
[ "Apache-2.0" ]
null
null
null
training/anticausal_classifier_train.py
SANCHES-Pedro/Diff-SCM
a7e7e6ed3a2cd1c21e3bf7a3ed8ed8b29a22cb69
[ "Apache-2.0" ]
2
2022-02-20T08:45:54.000Z
2022-03-09T09:51:13.000Z
""" Train a noised image classifier on ImageNet. """ import os import blobfile as bf import torch as th import torch.distributed as dist import torch.nn.functional as F from torch.nn.parallel.distributed import DistributedDataParallel as DDP from torch.optim import AdamW import torch from pathlib import Path import s...
38.084071
121
0.668526
0
0
275
0.031951
0
0
0
0
1,700
0.197514
c81323b7eda0896694f1dbe20031469d75f77fed
3,015
py
Python
pythonclient/karmen/karmen.py
jrcichra/karmen
4d25d635509ebffa295b085ae7fa3932e3a36344
[ "MIT" ]
3
2020-03-02T13:09:07.000Z
2021-12-27T16:27:23.000Z
pythonclient/karmen/karmen.py
jrcichra/karmen
4d25d635509ebffa295b085ae7fa3932e3a36344
[ "MIT" ]
5
2020-03-02T04:53:54.000Z
2021-12-17T23:57:12.000Z
pythonclient/karmen/karmen.py
jrcichra/karmen
4d25d635509ebffa295b085ae7fa3932e3a36344
[ "MIT" ]
null
null
null
#!/usr/bin/python3 -u import threading import time import queue import socket import grpc import karmen.karmen_pb2 as pb import karmen.karmen_pb2_grpc as pb_grpc class Karmen: def __init__(self, name=socket.gethostname(), hostname="localhost", port=8080): super().__init__() self.name = name ...
30.15
83
0.60995
2,445
0.810945
0
0
0
0
0
0
503
0.166833
c81398777499e20a3165a99b2f64b68aeafcfd64
54
py
Python
emma.py
patrickdijusto/python.hub
776a6a843dbd8895c414dcb8e7730c8cb2f3894d
[ "MIT" ]
null
null
null
emma.py
patrickdijusto/python.hub
776a6a843dbd8895c414dcb8e7730c8cb2f3894d
[ "MIT" ]
null
null
null
emma.py
patrickdijusto/python.hub
776a6a843dbd8895c414dcb8e7730c8cb2f3894d
[ "MIT" ]
null
null
null
def fun(name, age=20): print(name, age) fun('Emma')
10.8
22
0.62963
0
0
0
0
0
0
0
0
6
0.111111
c813a1eed5677e2bde6506474cc6f8326d3c6475
6,680
py
Python
proxy-server/proxy_server.py
MS17-010/python-misc
15fbf3215359c97b75d4809756644626e6b577ed
[ "MIT" ]
null
null
null
proxy-server/proxy_server.py
MS17-010/python-misc
15fbf3215359c97b75d4809756644626e6b577ed
[ "MIT" ]
null
null
null
proxy-server/proxy_server.py
MS17-010/python-misc
15fbf3215359c97b75d4809756644626e6b577ed
[ "MIT" ]
null
null
null
import socket import threading import signal import sys import fnmatch import utils from time import gmtime, strftime, localtime import logging config = { "HOST_NAME" : "192.168.0.136", "BIND_PORT" : 12345, "MAX_REQUEST_LEN" : 1024, "CONNECTION_TIMEOUT" : 5, ...
37.954545
137
0.550898
1,365
0.204341
0
0
0
0
0
0
2,332
0.349102
c8146b0afe8645af236462b961f5cb0186da93f4
9,336
py
Python
basestation/xbox.py
ksurct-officers/Mercury2018-19
ee90803c1b14727663c65ebc396cdb92c2b79667
[ "Apache-2.0" ]
null
null
null
basestation/xbox.py
ksurct-officers/Mercury2018-19
ee90803c1b14727663c65ebc396cdb92c2b79667
[ "Apache-2.0" ]
null
null
null
basestation/xbox.py
ksurct-officers/Mercury2018-19
ee90803c1b14727663c65ebc396cdb92c2b79667
[ "Apache-2.0" ]
null
null
null
''' xbox.py Responsible for getting information directly from controller Courtesy Aaron Schif, former member Don't touch this file, it's perfect. ''' from math import isclose from collections import namedtuple import sdl2 from sdl2 import ext ButtonEvent = namedtuple('ButtonEvent', ['time', 'state']) Ax...
28.638037
88
0.60347
6,443
0.690124
0
0
100
0.010711
0
0
1,295
0.13871
c817b460ee65b13241ef6e94463df88bf762261b
765
py
Python
legacy/legacy/recommenders/visual_gmf.py
csmithchicago/openrec
5a9cf03abe0db0636107985f9f19d6351e4afe68
[ "MIT" ]
null
null
null
legacy/legacy/recommenders/visual_gmf.py
csmithchicago/openrec
5a9cf03abe0db0636107985f9f19d6351e4afe68
[ "MIT" ]
6
2020-01-28T22:51:16.000Z
2022-02-10T00:11:19.000Z
legacy/legacy/recommenders/visual_gmf.py
csmithchicago/openrec
5a9cf03abe0db0636107985f9f19d6351e4afe68
[ "MIT" ]
null
null
null
from openrec.legacy.recommenders import VisualPMF from openrec.legacy.modules.interactions import PointwiseGeCE class VisualGMF(VisualPMF): def _build_default_interactions(self, train=True): self._add_module( "interaction", PointwiseGeCE( user=self._get_module("use...
34.772727
86
0.589542
650
0.849673
0
0
0
0
0
0
67
0.087582
c818c2c94bfac62e873d6b6ae455389a5b8e8196
732
py
Python
tests/test_tag.py
danielwe/explore-courses-api
e08d219b154e7fdb16690e4cd02aa239366f6747
[ "MIT" ]
7
2019-06-17T07:45:54.000Z
2022-01-31T01:09:22.000Z
tests/test_tag.py
illiteratecoder/Explore-Courses-API
b2dc41092882e4b2b7945609e4e85b8ac1702bc7
[ "MIT" ]
null
null
null
tests/test_tag.py
illiteratecoder/Explore-Courses-API
b2dc41092882e4b2b7945609e4e85b8ac1702bc7
[ "MIT" ]
1
2021-11-14T22:23:59.000Z
2021-11-14T22:23:59.000Z
from xml.etree import ElementTree as ET from explorecourses import * class TestTag(object): @classmethod def setup_class(cls): text_tag = ( '<tag>' '<organization>EARTHSYS</organization>' '<name>energy_foundation</name>' '</tag>' ) cls....
20.914286
56
0.592896
660
0.901639
0
0
254
0.346995
0
0
144
0.196721
c818d2ec8f5ff64e655e15444fca7720cb2c47a4
385
py
Python
server/server.py
BShadid/TFKAKsubmission
b324ea477f5658c4b0b46fd05cde60c4c8a43b93
[ "MIT" ]
null
null
null
server/server.py
BShadid/TFKAKsubmission
b324ea477f5658c4b0b46fd05cde60c4c8a43b93
[ "MIT" ]
null
null
null
server/server.py
BShadid/TFKAKsubmission
b324ea477f5658c4b0b46fd05cde60c4c8a43b93
[ "MIT" ]
null
null
null
from flask import Flask import easyWik app = Flask(__name__) @app.route('/') def usage(): return "you shouldn't be here." @app.route('/<title>') def simplify(title): # do some magic return easyWik.run_main(title) # return title if __name__ == "__main__": context = ('yourserver.crt','yourserver.k...
20.263158
59
0.664935
0
0
0
0
181
0.47013
0
0
123
0.319481
c81a08103667814c6eb2d1d517a2b39db440ed7f
458
py
Python
SScriptCompiler/examples/thresholdcounter/states/init_s.py
alklasil/SScript
de4481bf96e79b9ee157e266ea9fe8b1bfb3701e
[ "MIT" ]
null
null
null
SScriptCompiler/examples/thresholdcounter/states/init_s.py
alklasil/SScript
de4481bf96e79b9ee157e266ea9fe8b1bfb3701e
[ "MIT" ]
8
2018-03-10T19:20:43.000Z
2018-04-30T18:11:17.000Z
SScriptCompiler/examples/thresholdcounter/states/init_s.py
alklasil/SScript
de4481bf96e79b9ee157e266ea9fe8b1bfb3701e
[ "MIT" ]
null
null
null
def init_s(data): return ("init", [ [ # set configuration time "$getTime", "configuration_millis", # set state initially below lower threshold "$=(const)=", "state", "@<t", "$printInt_ln", data['sensorIdentifier'], # set requestString...
26.941176
55
0.5
0
0
0
0
0
0
0
0
251
0.548035
c8205acb89329008fc256d7baa124e1eca07ffcd
1,521
py
Python
slybot/slybot/linkextractor/xml.py
coolkunal64/ht
b7c52d5604dd75ea4086a6ff92eaa2db85bb145c
[ "BSD-3-Clause" ]
1
2017-11-03T13:00:21.000Z
2017-11-03T13:00:21.000Z
slybot/slybot/linkextractor/xml.py
coolkunal64/ht
b7c52d5604dd75ea4086a6ff92eaa2db85bb145c
[ "BSD-3-Clause" ]
2
2021-03-31T20:04:55.000Z
2021-12-13T20:47:09.000Z
slybot/slybot/linkextractor/xml.py
coolkunal64/ht
b7c52d5604dd75ea4086a6ff92eaa2db85bb145c
[ "BSD-3-Clause" ]
2
2017-11-03T13:00:23.000Z
2020-08-28T19:59:40.000Z
""" Link extraction for auto scraping """ from scrapy.link import Link from scrapy.selector import Selector from slybot.linkextractor.base import BaseLinkExtractor class XmlLinkExtractor(BaseLinkExtractor): """Link extractor for XML sources""" def __init__(self, xpath, **kwargs): self.remove_namespace...
37.097561
123
0.680473
1,348
0.886259
379
0.249178
0
0
0
0
335
0.22025
c821e277e58638d63f9549aad5f4d477bf38817b
643
py
Python
advancing_hero/settings.py
hentt30/ces22-project
06f13ebdf06bbab182b83c882846701ab69e8631
[ "MIT" ]
1
2021-04-12T01:27:34.000Z
2021-04-12T01:27:34.000Z
advancing_hero/settings.py
hentt30/ces22-project
06f13ebdf06bbab182b83c882846701ab69e8631
[ "MIT" ]
null
null
null
advancing_hero/settings.py
hentt30/ces22-project
06f13ebdf06bbab182b83c882846701ab69e8631
[ "MIT" ]
2
2021-04-01T00:13:51.000Z
2021-04-11T07:15:54.000Z
TITLE = 'Knight of Valhalla' SCREEN_ROWS = 9 SCREEN_COLUMNS = 16 SIZE = screen_width, screen_height = 64 * 16, 64 * 9 FPS = 60 tile_size = 64 ## Speeds WORLD_SPEED = 1 DEFAULT_PLAYER_SPEED = 5 ASPHALT_SPEED = 1 * DEFAULT_PLAYER_SPEED GRASS_SPEED = 1 * DEFAULT_PLAYER_SPEED DIRT_SPEED = 0.6 * DEFAULT_PLAYER_SPEED WATER_...
18.911765
52
0.695179
0
0
0
0
0
0
0
0
133
0.206843
c821ed2774a2669777a45f15bf9913ade184edde
1,319
py
Python
questions/construct-the-rectangle/Solution.py
marcus-aurelianus/leetcode-solutions
8b43e72fe1f51c84abc3e89b181ca51f09dc7ca6
[ "MIT" ]
141
2017-12-12T21:45:53.000Z
2022-03-25T07:03:39.000Z
questions/construct-the-rectangle/Solution.py
marcus-aurelianus/leetcode-solutions
8b43e72fe1f51c84abc3e89b181ca51f09dc7ca6
[ "MIT" ]
32
2015-10-05T14:09:52.000Z
2021-05-30T10:28:41.000Z
questions/construct-the-rectangle/Solution.py
marcus-aurelianus/leetcode-solutions
8b43e72fe1f51c84abc3e89b181ca51f09dc7ca6
[ "MIT" ]
56
2015-09-30T05:23:28.000Z
2022-03-08T07:57:11.000Z
""" A web developer needs to know how to design a web page's size. So, given a specific rectangular web page’s area, your job by now is to design a rectangular web page, whose length L and width W satisfy the following requirements: The area of the rectangular web page you designed must equal to the given target area...
27.479167
228
0.644428
295
0.22281
0
0
0
0
0
0
1,091
0.824018
c823fba7bcffc4b21c83b60516082a369618b755
891
py
Python
flask_pdv/ext/resources/transacao.py
evaristofm/api_transacao
3a8d1d1459f5f58c8df7473fe6f7ea1a438738d2
[ "MIT" ]
null
null
null
flask_pdv/ext/resources/transacao.py
evaristofm/api_transacao
3a8d1d1459f5f58c8df7473fe6f7ea1a438738d2
[ "MIT" ]
null
null
null
flask_pdv/ext/resources/transacao.py
evaristofm/api_transacao
3a8d1d1459f5f58c8df7473fe6f7ea1a438738d2
[ "MIT" ]
null
null
null
from flask_restful import Resource, marshal from flask_pdv.ext.api import requests from flask_pdv.ext.db.models import TransacaoModel from flask_pdv.ext.db.schemas import transacao_field from flask_pdv.ext.db import db class Transacao(Resource): def get(self): transacao = TransacaoModel.query.all() ...
26.205882
85
0.65881
668
0.749719
0
0
0
0
0
0
96
0.107744
c825a6df3c14933bdcbd115b36ca8c69f6c6f233
2,434
py
Python
limiter/rate_limiter.py
sousa-andre/requests-limiter
ad3a5982a40e88111eca63b258e1226e15a8befa
[ "MIT" ]
4
2020-11-14T18:13:27.000Z
2021-01-03T19:13:39.000Z
limiter/rate_limiter.py
sousa-andre/requests-limiter
ad3a5982a40e88111eca63b258e1226e15a8befa
[ "MIT" ]
null
null
null
limiter/rate_limiter.py
sousa-andre/requests-limiter
ad3a5982a40e88111eca63b258e1226e15a8befa
[ "MIT" ]
2
2021-01-03T19:13:46.000Z
2021-01-31T12:24:23.000Z
from functools import wraps from time import sleep from typing import List from .rate_limit import RateLimit from .exceptions import RateLimitHit class OnHitAction: raise_exception = 0 wait = 1 class RateLimiter: def __init__(self, storage=RateLimit, *, action=OnHitAction.raise_exception): self...
32.453333
101
0.582991
2,281
0.937141
0
0
1,164
0.478225
0
0
55
0.022597
c82642bd0188daaa561a06de4c6541a12f22393f
2,081
py
Python
pymod/amsexceptions.py
kevangel79/argo-ams-library
6824b1f6f577e688575d8f2f67f747126a856fcb
[ "Apache-2.0" ]
null
null
null
pymod/amsexceptions.py
kevangel79/argo-ams-library
6824b1f6f577e688575d8f2f67f747126a856fcb
[ "Apache-2.0" ]
1
2021-06-25T15:35:46.000Z
2021-06-25T15:35:46.000Z
pymod/amsexceptions.py
kevangel79/argo-ams-library
6824b1f6f577e688575d8f2f67f747126a856fcb
[ "Apache-2.0" ]
null
null
null
import json class AmsException(Exception): """Base exception class for all Argo Messaging service related errors""" def __init__(self, *args, **kwargs): super(AmsException, self).__init__(*args, **kwargs) class AmsServiceException(AmsException): """Exception for Argo Messaging Service API errors...
33.031746
90
0.683325
2,052
0.986064
0
0
0
0
0
0
777
0.373378
c8284b2ce3b5bfcda541a3e925afc518ce46735a
18,871
py
Python
tests/fixtures/__init__.py
Lunga001/pmg-cms-2
10cea3979711716817b0ba2a41987df73f2c7642
[ "Apache-2.0" ]
2
2019-06-11T20:46:43.000Z
2020-08-27T22:50:32.000Z
tests/fixtures/__init__.py
Lunga001/pmg-cms-2
10cea3979711716817b0ba2a41987df73f2c7642
[ "Apache-2.0" ]
70
2017-05-26T14:04:06.000Z
2021-06-30T10:21:58.000Z
tests/fixtures/__init__.py
OpenUpSA/pmg-cms-2
ec5f259dae81674ac7a8cdb80f124a8b0f167780
[ "Apache-2.0" ]
4
2017-08-29T10:09:30.000Z
2021-05-25T11:29:03.000Z
import pytz import datetime from fixture import DataSet, NamedDataStyle, SQLAlchemyFixture from pmg.models import ( db, House, Committee, CommitteeMeeting, Bill, BillType, Province, Party, CommitteeMeetingAttendance, Member, CallForComment, TabledCommitteeReport, Com...
33.578292
470
0.647237
18,105
0.959409
0
0
0
0
0
0
5,486
0.290711
c828bd04e92dcf2b104e584217bad8d4f09ebabf
455
py
Python
Google Search/GoogleSearch.py
cclauss/Browser-Automation
7baca74d40ac850f9570d7e40a47021dc0e8e387
[ "Apache-2.0" ]
35
2016-07-16T07:05:24.000Z
2021-07-07T15:18:55.000Z
Google Search/GoogleSearch.py
cclauss/Browser-Automation
7baca74d40ac850f9570d7e40a47021dc0e8e387
[ "Apache-2.0" ]
null
null
null
Google Search/GoogleSearch.py
cclauss/Browser-Automation
7baca74d40ac850f9570d7e40a47021dc0e8e387
[ "Apache-2.0" ]
7
2016-07-27T10:25:10.000Z
2019-12-06T08:45:03.000Z
from selenium import webdriver from selenium.webdriver.common.keys import Keys from selenium.webdriver.common.desired_capabilities import DesiredCapabilities driver = webdriver.Chrome("D:\chromedriver\chromedriver") driver.get("http://www.google.com") if not "Google" in driver.title: raise Exception("Unable to loa...
28.4375
78
0.789011
0
0
0
0
0
0
0
0
103
0.226374
c82a3f71eb898781a7532e4f8e200f17688bdd99
2,265
py
Python
PuppeteerLibrary/puppeteer/async_keywords/puppeteer_formelement.py
qahive/robotframework-puppeteer
6377156c2e5b3a4d3841c33a2d3ff9ab0b38854a
[ "Apache-2.0" ]
37
2019-10-28T01:35:43.000Z
2022-03-31T04:11:49.000Z
PuppeteerLibrary/puppeteer/async_keywords/puppeteer_formelement.py
qahive/robotframework-puppeteer
6377156c2e5b3a4d3841c33a2d3ff9ab0b38854a
[ "Apache-2.0" ]
61
2020-07-16T00:18:22.000Z
2022-03-24T07:12:05.000Z
PuppeteerLibrary/puppeteer/async_keywords/puppeteer_formelement.py
qahive/robotframework-puppeteer
6377156c2e5b3a4d3841c33a2d3ff9ab0b38854a
[ "Apache-2.0" ]
10
2020-03-03T05:28:05.000Z
2022-02-14T10:03:44.000Z
from PuppeteerLibrary.utils.coverter import str2bool, str2str import os import glob import shutil import time from PuppeteerLibrary.ikeywords.iformelement_async import iFormElementAsync class PuppeteerFormElement(iFormElementAsync): def __init__(self, library_ctx): super().__init__(library_ctx) asyn...
38.389831
114
0.666225
2,076
0.916556
0
0
0
0
1,906
0.841501
142
0.062693
c82ab1a64645a1b9f4d0449b2c09332ab3971afe
7,187
py
Python
cnns/nnlib/pytorch_architecture/resnet1d.py
anonymous-user-commits/perturb-net
66fc7c4a1234fa34b92bcc85751f0a6e23d80a23
[ "MIT" ]
1
2018-03-25T13:19:46.000Z
2018-03-25T13:19:46.000Z
cnns/nnlib/pytorch_architecture/resnet1d.py
anonymous-user-commits/perturb-net
66fc7c4a1234fa34b92bcc85751f0a6e23d80a23
[ "MIT" ]
null
null
null
cnns/nnlib/pytorch_architecture/resnet1d.py
anonymous-user-commits/perturb-net
66fc7c4a1234fa34b92bcc85751f0a6e23d80a23
[ "MIT" ]
null
null
null
import shutil, os, csv, itertools, glob import math import numpy as np import torch import torch.nn as nn import torch.nn.functional as F from torch.autograd import Variable from torch.utils.data import Dataset, DataLoader import torch.optim as optim from sklearn.metrics import confusion_matrix import pandas as pd i...
28.863454
76
0.594128
4,491
0.624878
0
0
0
0
0
0
1,063
0.147906
c82b86e4546012be74409a7f90dcbec90ae16446
12,279
py
Python
satori/serviceinstall.py
mgeisler/satori
dea382bae1cd043189589c0f7d4c20b4b6725ab5
[ "Apache-2.0" ]
1
2015-01-18T19:56:28.000Z
2015-01-18T19:56:28.000Z
satori/serviceinstall.py
samstav/satori
239fa1e3c7aac78599145c670576f0ac76a41a89
[ "Apache-2.0" ]
null
null
null
satori/serviceinstall.py
samstav/satori
239fa1e3c7aac78599145c670576f0ac76a41a89
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2003-2012 CORE Security Technologies # # This software is provided under under a slightly modified version # of the Apache Software License. See the accompanying LICENSE file # for more information. # # $Id: serviceinstall.py 1141 2014-02-12 16:39:51Z [email protected] $ # # Service Install Helper librar...
40.391447
79
0.540353
11,200
0.912126
0
0
0
0
0
0
3,772
0.307191
c82bebdc20706924551678f498e8c6d34044e848
11,879
py
Python
pirates/battle/DistributedBattleAvatarAI.py
Willy5s/Pirates-Online-Rewritten
7434cf98d9b7c837d57c181e5dabd02ddf98acb7
[ "BSD-3-Clause" ]
81
2018-04-08T18:14:24.000Z
2022-01-11T07:22:15.000Z
pirates/battle/DistributedBattleAvatarAI.py
Willy5s/Pirates-Online-Rewritten
7434cf98d9b7c837d57c181e5dabd02ddf98acb7
[ "BSD-3-Clause" ]
4
2018-09-13T20:41:22.000Z
2022-01-08T06:57:00.000Z
pirates/battle/DistributedBattleAvatarAI.py
Willy5s/Pirates-Online-Rewritten
7434cf98d9b7c837d57c181e5dabd02ddf98acb7
[ "BSD-3-Clause" ]
26
2018-05-26T12:49:27.000Z
2021-09-11T09:11:59.000Z
from direct.directnotify import DirectNotifyGlobal from pirates.reputation. DistributedReputationAvatarAI import DistributedReputationAvatarAI from Teamable import Teamable from direct.distributed.ClockDelta import globalClockDelta from pirates.piratesbase import EmoteGlobals class DistributedBattleAvatarAI(Distribut...
27.819672
98
0.6562
11,599
0.976429
0
0
0
0
0
0
530
0.044617
c82c884ecd2fbb3f7bbb619a3ed6f25fe4c5e6e9
484
py
Python
django_migrate_project/executor.py
dsanders11/django-migrate-project
68b637d08dfb6aecdf75d836ab4736e1ba624dcc
[ "MIT" ]
2
2018-12-27T05:15:48.000Z
2018-12-28T00:37:03.000Z
django_migrate_project/executor.py
dsanders11/django-migrate-project
68b637d08dfb6aecdf75d836ab4736e1ba624dcc
[ "MIT" ]
null
null
null
django_migrate_project/executor.py
dsanders11/django-migrate-project
68b637d08dfb6aecdf75d836ab4736e1ba624dcc
[ "MIT" ]
null
null
null
from __future__ import unicode_literals from django.db.migrations.executor import MigrationExecutor from django_migrate_project.loader import ProjectMigrationLoader class ProjectMigrationExecutor(MigrationExecutor): def __init__(self, connection, progress_callback=None): super(ProjectMigrationExecutor, ...
32.266667
64
0.789256
314
0.64876
0
0
0
0
0
0
33
0.068182
c82da452c1cd0b32e3a74054db0ed0b447787df9
31,942
py
Python
agora_deploy/OVF.py
ThinkBriK/fwap
b01e3b856ad29f6cfac7d5e368deb18faed7d113
[ "Apache-2.0" ]
null
null
null
agora_deploy/OVF.py
ThinkBriK/fwap
b01e3b856ad29f6cfac7d5e368deb18faed7d113
[ "Apache-2.0" ]
null
null
null
agora_deploy/OVF.py
ThinkBriK/fwap
b01e3b856ad29f6cfac7d5e368deb18faed7d113
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python """ Script pour déployer une VM TAT1 dont on a récupéré les informations Ecrit par Benoit BARTHELEMY [email protected] """ import atexit import datetime import re import ssl from argparse import ArgumentParser from getpass import getpass from os import path from sys import exit ...
40.794381
142
0.589475
19,430
0.606259
0
0
0
0
0
0
9,242
0.288371
c82e3f7cd86031ad65e19765bc6e16f53e31ebc5
1,393
py
Python
src/grokcore/formlib/tests/base/form/customautoform.py
zopefoundation/grokcore.formlib
afcb6fce344ef60e3fec2aa839c13a61228d8d23
[ "ZPL-2.1" ]
null
null
null
src/grokcore/formlib/tests/base/form/customautoform.py
zopefoundation/grokcore.formlib
afcb6fce344ef60e3fec2aa839c13a61228d8d23
[ "ZPL-2.1" ]
null
null
null
src/grokcore/formlib/tests/base/form/customautoform.py
zopefoundation/grokcore.formlib
afcb6fce344ef60e3fec2aa839c13a61228d8d23
[ "ZPL-2.1" ]
2
2015-04-03T04:51:14.000Z
2018-01-12T06:51:36.000Z
""" A form view can have a custom form_fields but reusing those fields that were deduced automatically, using grok.AutoFields: >>> grok.testing.grok(__name__) We only expect a single field to be present in the form, as we omitted 'size': >>> from zope import component >>> from zope.publisher.browser import Tes...
24.017241
78
0.701364
557
0.399856
0
0
60
0.043073
0
0
760
0.545585
c82fbb8e27137ecf71edbf4cda57e644ec71cfa9
1,398
py
Python
other_models/AAN/adaptive-aggregation-networks/dataloaders/cifar100_dirmap.py
kreimanlab/AugMem
cb0e8d39eb0c469da46c7c550c19229927a2bec5
[ "MIT" ]
6
2021-04-07T15:17:24.000Z
2021-07-07T04:37:29.000Z
other_models/Remind/image_classification_experiments/dataloaders/cifar100_dirmap.py
kreimanlab/AugMem
cb0e8d39eb0c469da46c7c550c19229927a2bec5
[ "MIT" ]
null
null
null
other_models/Remind/image_classification_experiments/dataloaders/cifar100_dirmap.py
kreimanlab/AugMem
cb0e8d39eb0c469da46c7c550c19229927a2bec5
[ "MIT" ]
null
null
null
import os import sys import pandas as pd # USAGE: python cifar100_dirmap.py <path to cifar100 dataset directory> # Organized cifar100 directory can be created using cifar2png: https://github.com/knjcode/cifar2png if len(sys.argv) > 1: DATA_DIR = sys.argv[1] else: DATA_DIR = "./../data/cifar100" # Get class n...
34.95
112
0.666667
0
0
0
0
0
0
0
0
395
0.282546
c82fd0f2d54b784533c3c8e4ad5838457eb0383a
5,616
py
Python
tests/integration_tests/data_steward/cdr_cleaner/cleaning_rules/remove_participant_data_past_deactivation_date_test.py
lrwb-aou/curation
e80447e56d269dc2c9c8bc79e78218d4b0dc504c
[ "MIT" ]
16
2017-06-30T20:05:05.000Z
2022-03-08T21:03:19.000Z
tests/integration_tests/data_steward/cdr_cleaner/cleaning_rules/remove_participant_data_past_deactivation_date_test.py
lrwb-aou/curation
e80447e56d269dc2c9c8bc79e78218d4b0dc504c
[ "MIT" ]
342
2017-06-23T21:37:40.000Z
2022-03-30T16:44:16.000Z
tests/integration_tests/data_steward/cdr_cleaner/cleaning_rules/remove_participant_data_past_deactivation_date_test.py
lrwb-aou/curation
e80447e56d269dc2c9c8bc79e78218d4b0dc504c
[ "MIT" ]
33
2017-07-01T00:12:20.000Z
2022-01-26T18:06:53.000Z
""" Ensures there is no data past the deactivation date for deactivated participants. Original Issue: DC-686 The intent is to sandbox and drop records dated after the date of deactivation for participants who have deactivated from the Program This test will mock calling the PS API and provide a returned value. Every...
37.44
104
0.639067
4,746
0.845085
0
0
3,395
0.604523
0
0
2,790
0.496795
c8304da49c7cd5f405be7c2e58f33877d39f8895
2,499
py
Python
accounts/views.py
bornamir/ThreeAttemptLogin
a1ac34e106df913dedef80f595b9690bbc77f674
[ "MIT" ]
1
2019-09-03T08:40:19.000Z
2019-09-03T08:40:19.000Z
accounts/views.py
bornamir/ThreeAttemptLogin
a1ac34e106df913dedef80f595b9690bbc77f674
[ "MIT" ]
5
2021-03-19T01:11:56.000Z
2022-02-10T09:59:36.000Z
accounts/views.py
bornamir/ThreeAttemptLogin
a1ac34e106df913dedef80f595b9690bbc77f674
[ "MIT" ]
null
null
null
from django.shortcuts import render,redirect from django.contrib import messages, auth from django.contrib.auth.models import User from django.http.request import HttpRequest # Create your views here. def home(req): return redirect('login') def login(req): if req.method == 'POST': username = req.POST[...
33.32
87
0.602641
0
0
0
0
0
0
0
0
613
0.245298
c832c2b3e3054dd7f4eba7ae39631b1e43d56773
1,089
py
Python
Modules/flashlight().py
SZ2G-RoboticsClub/SmartCrutch-DemoBoard
0d32acc9c934b384612a721ecde0259c8d90a82d
[ "MIT" ]
1
2021-07-14T01:31:17.000Z
2021-07-14T01:31:17.000Z
Modules/flashlight().py
SZ2G-RoboticsClub/SmartCrutch-DemoBoard
0d32acc9c934b384612a721ecde0259c8d90a82d
[ "MIT" ]
null
null
null
Modules/flashlight().py
SZ2G-RoboticsClub/SmartCrutch-DemoBoard
0d32acc9c934b384612a721ecde0259c8d90a82d
[ "MIT" ]
null
null
null
from mpython import * import neopixel import time my_rgb = neopixel.NeoPixel(Pin(Pin.P13), n=24, bpp=3, timing=1) def flashlight(): for i in range(2): my_rgb.fill( (255, 0, 0) ) my_rgb.write() time.sleep_ms(50) my_rgb.fill( (0, 0, 0...
25.325581
67
0.490358
0
0
0
0
0
0
0
0
0
0
c8332e05cc190a6c1e47fdd51cb882fbebe47837
1,449
py
Python
src/geos/_stops_with_wrong_bearing.py
alex-baciu-dft/Open_NaPTAN
abbb3e162f2638099f5050f51d81099f5a0a72a9
[ "MIT" ]
24
2020-07-02T12:08:39.000Z
2021-05-12T12:07:32.000Z
src/geos/_stops_with_wrong_bearing.py
alex-baciu-dft/Open_NaPTAN
abbb3e162f2638099f5050f51d81099f5a0a72a9
[ "MIT" ]
11
2020-11-04T12:14:15.000Z
2022-03-12T00:38:36.000Z
src/geos/_stops_with_wrong_bearing.py
alex-baciu-dft/Open_NaPTAN
abbb3e162f2638099f5050f51d81099f5a0a72a9
[ "MIT" ]
7
2020-07-03T09:32:11.000Z
2021-07-23T18:53:09.000Z
from checks import NaptanCheck # %% class StopsBearing(NaptanCheck): """[summary] top has a bearing that is different to the calculated bearing of the road link it is connected to. The test compensates for stops being snapped to the wrong side of the road. Therefore if the calculated bear...
38.131579
86
0.664596
1,409
0.972395
0
0
559
0.385783
0
0
1,217
0.83989
c834981294e35ab677847178ee1ed2e7e3411bb0
2,476
py
Python
charlie2/tools/trial.py
sammosummo/Charlie2
e856b9bfc83c11e57a63d487fa14a63764e3f6ae
[ "MIT" ]
5
2019-10-10T08:22:29.000Z
2021-04-09T02:34:13.000Z
charlie2/tools/trial.py
sammosummo/Charlie2
e856b9bfc83c11e57a63d487fa14a63764e3f6ae
[ "MIT" ]
20
2018-06-20T21:15:48.000Z
2018-09-06T17:13:46.000Z
charlie2/tools/trial.py
sammosummo/Charlie2
e856b9bfc83c11e57a63d487fa14a63764e3f6ae
[ "MIT" ]
3
2019-11-24T04:10:40.000Z
2020-04-04T07:50:57.000Z
"""Defines the trial class. """ from datetime import datetime from logging import getLogger logger = getLogger(__name__) class Trial(dict): def __init__(self, *args, **kwds) -> None: """Create a trial object. Trials objects are fancy dictionaries whose items are also attributes. They are ...
35.884058
87
0.600969
2,350
0.949111
0
0
0
0
0
0
1,320
0.533118
c835c38f6e541b5231eac621e19ad8646fab5eb5
1,839
py
Python
categorize_reviews.py
curtislb/ReviewTranslation
b2d14d349b6016d275fa22532eae6b67af243a55
[ "Apache-2.0" ]
null
null
null
categorize_reviews.py
curtislb/ReviewTranslation
b2d14d349b6016d275fa22532eae6b67af243a55
[ "Apache-2.0" ]
null
null
null
categorize_reviews.py
curtislb/ReviewTranslation
b2d14d349b6016d275fa22532eae6b67af243a55
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python import ast import sys import nltk import numpy as np from review_data import read_reviews ############################################################################### def main(): low = 3.0 high = 4.0 target_language = u"english" topics = [] with open(sys.argv[1]) as in...
26.271429
79
0.504622
0
0
0
0
0
0
0
0
199
0.108211
c83954e71051c128691f4f8f79229509cdfd37e3
1,068
py
Python
codes/kmc/2Dim/general2d/lambdaFluc2dCreator.py
joshuahellier/PhDStuff
6fbe9e507c40e9017cde9312b0cfcc6ceefa284e
[ "MIT" ]
null
null
null
codes/kmc/2Dim/general2d/lambdaFluc2dCreator.py
joshuahellier/PhDStuff
6fbe9e507c40e9017cde9312b0cfcc6ceefa284e
[ "MIT" ]
null
null
null
codes/kmc/2Dim/general2d/lambdaFluc2dCreator.py
joshuahellier/PhDStuff
6fbe9e507c40e9017cde9312b0cfcc6ceefa284e
[ "MIT" ]
null
null
null
import subprocess import sys import os # This code is meant to manage running multiple instances of my KMCLib codes at the same time, # in the name of time efficiency numLambda = 512 numStepsEquilib = 1600000 numStepsAnal = 16000 numStepsSnapshot = 1000 numStepsReq = 16000 sysWidth = 32 sysLength = 32 analInterval = 1...
33.375
323
0.708801
0
0
0
0
0
0
0
0
232
0.217228
c83adde56479731d1abd45b0e5be159767406e09
1,063
py
Python
Two_Sum_1.py
JazzikPeng/Algorithm-in-Python
915135b1cdd02a6bb8d7068a54b2f497b2ec31d4
[ "MIT" ]
3
2018-02-05T06:15:57.000Z
2019-04-07T23:33:07.000Z
Two_Sum_1.py
JazzikPeng/Algorithm-in-Python
915135b1cdd02a6bb8d7068a54b2f497b2ec31d4
[ "MIT" ]
null
null
null
Two_Sum_1.py
JazzikPeng/Algorithm-in-Python
915135b1cdd02a6bb8d7068a54b2f497b2ec31d4
[ "MIT" ]
null
null
null
class Solution: def twoSum(self, nums, target): """ :type nums: List[int] :type target: int :rtype: List[int] """ # fill initial set/dict s = {target-nums[0]} d = {nums[0]: 0} for i in range(1, len(nums)): if nums[i] in s: ...
30.371429
80
0.464722
1,060
0.997178
0
0
0
0
0
0
301
0.283161
c83ceb2eaee488074f590ced585bdeba5d992e16
589
py
Python
main/views.py
climsoft/climsoftweb
3be127b3c8ce0e1f89940139ea19e17d20abe386
[ "BSD-3-Clause" ]
1
2021-08-17T07:43:18.000Z
2021-08-17T07:43:18.000Z
main/views.py
climsoft/climsoftweb
3be127b3c8ce0e1f89940139ea19e17d20abe386
[ "BSD-3-Clause" ]
45
2019-11-16T16:59:04.000Z
2021-04-08T21:23:48.000Z
main/views.py
climsoft/climsoftweb
3be127b3c8ce0e1f89940139ea19e17d20abe386
[ "BSD-3-Clause" ]
null
null
null
from django.contrib.auth.decorators import login_required from django.shortcuts import render @login_required def mainmenu(request): return render(request, 'main/mainmenu.html', {}) @login_required def user_admin(request): return render(request, 'main/user_admin.html', {}) @login_required def user_profile(...
21.814815
59
0.752122
0
0
0
0
481
0.816638
0
0
113
0.191851
c83df5c3590f08b7881a0afefb6d8d7e7060a2fb
2,124
py
Python
anygraph/recipes/autobuilding_a_graph.py
gemerden/anygraph
c20cab82ad4a7f4117690a445e136c2b0e84f0f3
[ "MIT" ]
10
2020-06-11T14:11:58.000Z
2021-12-31T11:59:26.000Z
anygraph/recipes/autobuilding_a_graph.py
gemerden/anygraph
c20cab82ad4a7f4117690a445e136c2b0e84f0f3
[ "MIT" ]
null
null
null
anygraph/recipes/autobuilding_a_graph.py
gemerden/anygraph
c20cab82ad4a7f4117690a445e136c2b0e84f0f3
[ "MIT" ]
null
null
null
""" Here we will show how to build a graph from a class inheritance structure. Since we will n change the class of classes (type), we will use a wrapper to do this. """ from anygraph import Many """ First we define the wrapper class; because we create instances of ClassWrapper on the flight; to detect if the class w...
32.181818
160
0.69162
564
0.265537
182
0.085687
0
0
0
0
1,057
0.497646
c83f4c51440116a7f88bf4d5e46dda85c09f8606
2,069
py
Python
shortest_path_revisit_and_NP/week1/apsp_johnsons.py
liaoaoyuan97/standford_algorithms_specialization
2914fdd397ce895d986ac855e78afd7a51ceff68
[ "MIT" ]
null
null
null
shortest_path_revisit_and_NP/week1/apsp_johnsons.py
liaoaoyuan97/standford_algorithms_specialization
2914fdd397ce895d986ac855e78afd7a51ceff68
[ "MIT" ]
null
null
null
shortest_path_revisit_and_NP/week1/apsp_johnsons.py
liaoaoyuan97/standford_algorithms_specialization
2914fdd397ce895d986ac855e78afd7a51ceff68
[ "MIT" ]
1
2021-01-18T19:35:48.000Z
2021-01-18T19:35:48.000Z
import time import numpy as np from os import path def read_graph(filename): i = 0 with open(path.join('.', filename), 'r') as f: for row in f.readlines(): if i == 0: _list = row.strip("\n").split(' ') n_vertex, n_edge = int(_list[0]), int(_list[1]) ...
32.84127
109
0.564524
0
0
0
0
0
0
0
0
65
0.031416
c84122fcd1573afd525866c481ac3a9686f3174d
2,448
py
Python
Cardio-Monitor-main/visualization.py
jrderek/computer-vision-exercises
e9735394220f8120453de70b58596ef9e87df926
[ "MIT" ]
null
null
null
Cardio-Monitor-main/visualization.py
jrderek/computer-vision-exercises
e9735394220f8120453de70b58596ef9e87df926
[ "MIT" ]
null
null
null
Cardio-Monitor-main/visualization.py
jrderek/computer-vision-exercises
e9735394220f8120453de70b58596ef9e87df926
[ "MIT" ]
null
null
null
from matplotlib.backends.backend_agg import FigureCanvasAgg as FigureCanvas from matplotlib.figure import Figure import io import random import numpy as np def visualizationpreprocess(age,sex,cp,trestbps,restecg,chol,fbs,thalach,exang,oldpeak,slope,ca,thal,result): if sex=="male": sex=1 else: sex=0 ...
31.792208
139
0.635212
0
0
0
0
0
0
0
0
1,138
0.464869
c8413d24c21af2dd79f48f95f23cc0565affc86b
6,006
py
Python
at_tmp/model/util/TMP_DB_OPT__.py
zuoleilei3253/zuoleilei
e188b15a0aa4a9fde00dba15e8300e4b87973e2d
[ "Apache-2.0" ]
null
null
null
at_tmp/model/util/TMP_DB_OPT__.py
zuoleilei3253/zuoleilei
e188b15a0aa4a9fde00dba15e8300e4b87973e2d
[ "Apache-2.0" ]
null
null
null
at_tmp/model/util/TMP_DB_OPT__.py
zuoleilei3253/zuoleilei
e188b15a0aa4a9fde00dba15e8300e4b87973e2d
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # @Time : 2018/7/15 16:36 # @Author : bxf # @File : P_DB_OPT.py # @Software: PyCharm import pymysql import json from datetime import date, datetime from model.util import md_Config from model.util.PUB_LOG import * ''' 提供数据的增删改查功能: ''' clas...
28.330189
129
0.494006
4,611
0.668455
0
0
0
0
0
0
2,770
0.401566
c8418b9ec302c999618cb90b60b9001c7764202e
448
py
Python
examples/pybullet/examples/logMinitaur.py
felipeek/bullet3
6a59241074720e9df119f2f86bc01765917feb1e
[ "Zlib" ]
9,136
2015-01-02T00:41:45.000Z
2022-03-31T15:30:02.000Z
examples/pybullet/examples/logMinitaur.py
felipeek/bullet3
6a59241074720e9df119f2f86bc01765917feb1e
[ "Zlib" ]
2,424
2015-01-05T08:55:58.000Z
2022-03-30T19:34:55.000Z
examples/pybullet/examples/logMinitaur.py
felipeek/bullet3
6a59241074720e9df119f2f86bc01765917feb1e
[ "Zlib" ]
2,921
2015-01-02T10:19:30.000Z
2022-03-31T02:48:42.000Z
import pybullet as p import pybullet_data cid = p.connect(p.SHARED_MEMORY) if (cid < 0): p.connect(p.GUI) p.setAdditionalSearchPath(pybullet_data.getDataPath()) p.loadURDF("plane.urdf") quadruped = p.loadURDF("quadruped/quadruped.urdf") logId = p.startStateLogging(p.STATE_LOGGING_MINITAUR, "LOG00048.TXT", [quadru...
21.333333
82
0.776786
0
0
0
0
0
0
0
0
52
0.116071
c8422d03ff6c162a7a235c164df43ce7fd4202c5
1,025
py
Python
setup.py
drougge/wellpapp-pyclient
43d66a1e2a122ac87e477905c5e2460e11be3c26
[ "MIT" ]
null
null
null
setup.py
drougge/wellpapp-pyclient
43d66a1e2a122ac87e477905c5e2460e11be3c26
[ "MIT" ]
null
null
null
setup.py
drougge/wellpapp-pyclient
43d66a1e2a122ac87e477905c5e2460e11be3c26
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 from setuptools import setup fuse_reqs = [ 'fuse-python >= 0.3.1; python_version < "3"', 'fuse-python >= 1.0.0; python_version > "3"', ] readme = open('README.md', 'r').read() readme = readme.replace( '(FUSE.md)', '(https://github.com/drougge/wellpapp-pyclient/blob/master/FUSE.md)' ) setu...
21.808511
85
0.659512
0
0
0
0
0
0
0
0
600
0.585366
c8425c27ac3a898cc687ebecf30963739e854bd4
506
py
Python
project/app/models.py
cs-fullstack-fall-2018/django-auth1-bachmanryan
cb83e4bc75e1c8bfde7c43d478505ecec45d5cd8
[ "Apache-2.0" ]
null
null
null
project/app/models.py
cs-fullstack-fall-2018/django-auth1-bachmanryan
cb83e4bc75e1c8bfde7c43d478505ecec45d5cd8
[ "Apache-2.0" ]
null
null
null
project/app/models.py
cs-fullstack-fall-2018/django-auth1-bachmanryan
cb83e4bc75e1c8bfde7c43d478505ecec45d5cd8
[ "Apache-2.0" ]
null
null
null
from django.db import models from django.contrib.auth.models import User from datetime import datetime # Create your models here. # create a new attribute in your model class FormModel(models.Model): username = models.ForeignKey(User, on_delete=models.SET_NULL, null=True, blank=True) blog_title = models.CharF...
31.625
88
0.764822
334
0.660079
0
0
0
0
0
0
64
0.126482
c8427460e2bcf42333ee94274c805a7a6ae2d6ab
715
py
Python
students/K33421/Zmievskiy_Danil/Lr1/Task04/server.py
DanilZmievskiy/ITMO_ICT_WebDevelopment_2020-2021
8bb6e90e6592c04f4b959184310e0890aaa24e16
[ "MIT" ]
null
null
null
students/K33421/Zmievskiy_Danil/Lr1/Task04/server.py
DanilZmievskiy/ITMO_ICT_WebDevelopment_2020-2021
8bb6e90e6592c04f4b959184310e0890aaa24e16
[ "MIT" ]
null
null
null
students/K33421/Zmievskiy_Danil/Lr1/Task04/server.py
DanilZmievskiy/ITMO_ICT_WebDevelopment_2020-2021
8bb6e90e6592c04f4b959184310e0890aaa24e16
[ "MIT" ]
null
null
null
import socket import threading conn = socket.socket(socket.AF_INET,socket.SOCK_STREAM) conn.bind (('', 7070)) conn.listen() clients = [] print ('Start Server') def new_client(): while True: clientsocket, address = conn.accept() if clientsocket not in clients: clients.append(clientsocket) threading.Thread...
21.029412
74
0.711888
0
0
0
0
0
0
0
0
16
0.022378
c843403db7b167cca6757d1608c2ce426ef07684
1,563
py
Python
cutelog/pop_in_dialog.py
CS-GSI/cutelog
faca7a7bfd16559973178d3c87cb3b0c6667d4d3
[ "MIT" ]
125
2018-07-27T15:23:35.000Z
2022-03-09T18:18:08.000Z
cutelog/pop_in_dialog.py
CS-GSI/cutelog
faca7a7bfd16559973178d3c87cb3b0c6667d4d3
[ "MIT" ]
12
2019-02-02T01:02:59.000Z
2022-03-14T08:31:41.000Z
cutelog/pop_in_dialog.py
CS-GSI/cutelog
faca7a7bfd16559973178d3c87cb3b0c6667d4d3
[ "MIT" ]
26
2018-08-24T23:49:58.000Z
2022-01-27T12:29:38.000Z
from qtpy.QtCore import Signal from qtpy.QtWidgets import QDialog, QDialogButtonBox, QListWidget, QVBoxLayout class PopInDialog(QDialog): pop_in_tabs = Signal(list) def __init__(self, parent, loggers): super().__init__(parent) self.loggers = loggers self.setupUi() def setupUi(se...
31.26
94
0.643634
1,450
0.927703
0
0
0
0
0
0
0
0
c84378df20614229cbb5ed8f3fb0fb2de32e4ad3
6,730
py
Python
MineSweeper/minesweeper.py
Ratnesh4193/Amazing-Python-Scripts
0652a6066a3eeaf31830d7235da209699c45f779
[ "MIT" ]
1
2021-04-17T08:33:25.000Z
2021-04-17T08:33:25.000Z
MineSweeper/minesweeper.py
Ratnesh4193/Amazing-Python-Scripts
0652a6066a3eeaf31830d7235da209699c45f779
[ "MIT" ]
null
null
null
MineSweeper/minesweeper.py
Ratnesh4193/Amazing-Python-Scripts
0652a6066a3eeaf31830d7235da209699c45f779
[ "MIT" ]
1
2021-07-22T07:06:09.000Z
2021-07-22T07:06:09.000Z
# Importing required libraries from tkinter import * from tkinter import messagebox as mb from tkinter import ttk import random # function to create screen for the game def board(): global value,w # initialising screen root=Tk() root.geometry("320x335") root.title("MineSweeper") root.resizable(...
52.170543
136
0.649034
0
0
0
0
0
0
0
0
1,679
0.24948
c84446517bb1f74fa114d36c91ba50e5edd245d3
125,439
py
Python
scripts/ui/images_rc.py
ROOSTER-fleet-management/multi_robot_sim
c5f50b271e7c21d95a843ede1d9227720974764a
[ "Apache-2.0" ]
1
2021-02-25T19:11:03.000Z
2021-02-25T19:11:03.000Z
scripts/ui/images_rc.py
ROOSTER-fleet-management/multi_robot_sim
c5f50b271e7c21d95a843ede1d9227720974764a
[ "Apache-2.0" ]
null
null
null
scripts/ui/images_rc.py
ROOSTER-fleet-management/multi_robot_sim
c5f50b271e7c21d95a843ede1d9227720974764a
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Resource object code # # Created by: The Resource Compiler for PyQt4 (Qt v4.8.7) # # WARNING! All changes made in this file will be lost! from PyQt4 import QtCore qt_resource_data = "\ \x00\x00\x05\x96\ \x89\ \x50\x4e\x47\x0d\x0a\x1a\x0a\x00\x00\x00\x0d\x49\x48\x44\x52\x00\ \x00\x00\x18\x00...
62.939789
129
0.726505
0
0
0
0
0
0
0
0
125,082
0.997154
c8448b25950b97138001e69363d737fca8d5fa17
225
py
Python
freedscovery_s3_connector/__init__.py
FreeDiscovery/FreeDiscovery-S3-connector
c10a6e1c26f95c199e94908f4e8534f735b94e37
[ "BSD-3-Clause" ]
null
null
null
freedscovery_s3_connector/__init__.py
FreeDiscovery/FreeDiscovery-S3-connector
c10a6e1c26f95c199e94908f4e8534f735b94e37
[ "BSD-3-Clause" ]
null
null
null
freedscovery_s3_connector/__init__.py
FreeDiscovery/FreeDiscovery-S3-connector
c10a6e1c26f95c199e94908f4e8534f735b94e37
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- from .constants import * from . import io from . import ai from . import filters from ._version import __version__ __version_date__ = "Sun Feb 14 14:28:51 2016 +0100" __version_hash__ = "1d5f7f3"
16.071429
51
0.711111
0
0
0
0
0
0
0
0
64
0.284444
c844d609644b8e0f8c68c6cb8c2457c055991723
2,309
py
Python
pysnmp-with-texts/ONEFS-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
8
2019-05-09T17:04:00.000Z
2021-06-09T06:50:51.000Z
pysnmp-with-texts/ONEFS-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
4
2019-05-31T16:42:59.000Z
2020-01-31T21:57:17.000Z
pysnmp-with-texts/ONEFS-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
10
2019-04-30T05:51:36.000Z
2022-02-16T03:33:41.000Z
# # PySNMP MIB module ONEFS-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/ONEFS-MIB # Produced by pysmi-0.3.4 at Wed May 1 14:34:48 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (default, Mar 27 2019, 09:23...
92.36
533
0.792551
235
0.101776
0
0
0
0
0
0
1,090
0.472066
c845141e40b8a0dd5938ae534f453a3c938206c8
926
py
Python
ChatAPI/migrations/0002_auto_20210520_1134.py
swasthikshetty10/Chat-Bot-using-Deep-Learning
76856399e3984d8563eb72bb7412767b1b5f724a
[ "MIT" ]
7
2021-01-05T15:27:55.000Z
2021-10-05T06:37:50.000Z
ChatAPI/migrations/0002_auto_20210520_1134.py
swasthikshetty10/Chat-Bot-using-Deep-Learning
76856399e3984d8563eb72bb7412767b1b5f724a
[ "MIT" ]
null
null
null
ChatAPI/migrations/0002_auto_20210520_1134.py
swasthikshetty10/Chat-Bot-using-Deep-Learning
76856399e3984d8563eb72bb7412767b1b5f724a
[ "MIT" ]
2
2021-01-08T12:50:33.000Z
2021-01-09T23:34:04.000Z
# Generated by Django 3.1.3 on 2021-05-20 06:04 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ('ChatAPI', '00...
31.931034
136
0.595032
759
0.819654
0
0
0
0
0
0
123
0.132829
c84571d0d767e8fe81786eba5dfb74f8e16357fc
1,240
py
Python
tests/test_session.py
Streetwise/streetwise-app
13c1649077766e0e20d6903adcd057ae3c07cc9c
[ "MIT" ]
1
2020-05-28T06:50:01.000Z
2020-05-28T06:50:01.000Z
tests/test_session.py
Streetwise/streetwise-app
13c1649077766e0e20d6903adcd057ae3c07cc9c
[ "MIT" ]
72
2020-05-01T11:11:17.000Z
2022-02-14T09:01:50.000Z
tests/test_session.py
Streetwise/streetwise-app
13c1649077766e0e20d6903adcd057ae3c07cc9c
[ "MIT" ]
3
2020-05-06T20:35:32.000Z
2020-05-07T15:00:51.000Z
""" Python unit tests """ import pytest, json from streetwise.models import Campaign from . import app, app_context, db @pytest.fixture(scope="module") def client(): app.config['TESTING'] = True return app.test_client() def test_campaign_all(client): with app_context: campaign1 = Campaign() ...
28.837209
75
0.629839
0
0
0
0
107
0.08629
0
0
187
0.150806
c845aa5c017b1dfeb4dad13bc07e41c3088b51c3
303
py
Python
vanir/plugins/migrations/0003_delete_newcoinconfig.py
guanana/vanir
b0bb9c874795a5803e6437ff0105ea036f1ae7b6
[ "Apache-2.0" ]
1
2022-01-19T07:11:05.000Z
2022-01-19T07:11:05.000Z
vanir/plugins/migrations/0003_delete_newcoinconfig.py
guanana/vanir
b0bb9c874795a5803e6437ff0105ea036f1ae7b6
[ "Apache-2.0" ]
10
2021-11-07T14:17:07.000Z
2022-03-30T18:24:48.000Z
vanir/plugins/migrations/0003_delete_newcoinconfig.py
guanana/vanir
b0bb9c874795a5803e6437ff0105ea036f1ae7b6
[ "Apache-2.0" ]
null
null
null
# Generated by Django 3.1.13 on 2021-10-02 23:23 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('plugins', '0002_auto_20211002_2236'), ] operations = [ migrations.DeleteModel( name='NewCoinConfig', ), ]
17.823529
48
0.613861
217
0.716172
0
0
0
0
0
0
97
0.320132
c8475200f6eac06a5a76c9c297ba11ee2a7ea2ed
831
py
Python
PythonDAdata/3358OS_12_Code/code12/core.py
shijiale0609/Python_Data_Analysis
c18b5ed006c171bbb6fcb6be5f51b2686edc8f7e
[ "MIT" ]
1
2020-02-22T18:55:54.000Z
2020-02-22T18:55:54.000Z
PythonDAdata/3358OS_12_Code/code12/core.py
shijiale0609/Python_Data_Analysis
c18b5ed006c171bbb6fcb6be5f51b2686edc8f7e
[ "MIT" ]
null
null
null
PythonDAdata/3358OS_12_Code/code12/core.py
shijiale0609/Python_Data_Analysis
c18b5ed006c171bbb6fcb6be5f51b2686edc8f7e
[ "MIT" ]
1
2020-02-22T18:55:57.000Z
2020-02-22T18:55:57.000Z
from nltk.corpus import movie_reviews import random import cython_module as cm import cytoolz def label_docs(): docs = [(list(movie_reviews.words(fid)), cat) for cat in movie_reviews.categories() for fid in movie_reviews.fileids(cat)] random.seed(42) random.shuffle(docs) return...
23.742857
50
0.68231
0
0
0
0
0
0
0
0
32
0.038508
c84abb9eac74cceda1f9caab92fdc8319c29f197
4,900
py
Python
crawler/spiders/weighted_index_spider.py
ChuangYuMing/futures_spread_analysis
71540671eed7ea3abba0a9a5af45f49dcf662ce3
[ "MIT" ]
2
2019-09-19T05:11:00.000Z
2020-07-23T07:26:03.000Z
crawler/spiders/weighted_index_spider.py
ChuangYuMing/futures_spread_analysis
71540671eed7ea3abba0a9a5af45f49dcf662ce3
[ "MIT" ]
11
2020-07-14T10:42:59.000Z
2022-03-02T14:54:10.000Z
crawler/spiders/weighted_index_spider.py
ChuangYuMing/futures_spread_analysis
71540671eed7ea3abba0a9a5af45f49dcf662ce3
[ "MIT" ]
null
null
null
# encoding: utf-8 # pylint: disable=E1101 # 加權指數 # https://www.twse.com.tw/zh/page/trading/indices/MI_5MINS_HIST.html import scrapy from scrapy import signals, Spider from urllib.parse import urlencode import time from random import randint import datetime import logging from copy import copy from dateutil.relativedel...
35.507246
93
0.610408
4,201
0.852476
1,166
0.236607
259
0.052557
0
0
659
0.133726
c84cd7c853b8faebaefc88697ddd7f956ce53148
374
py
Python
KahootPY/src/modules/questionStart.py
boiimakillu/KahootPY
c8d7a03a766bf061015a178cd7df2382906f91ae
[ "MIT" ]
null
null
null
KahootPY/src/modules/questionStart.py
boiimakillu/KahootPY
c8d7a03a766bf061015a178cd7df2382906f91ae
[ "MIT" ]
null
null
null
KahootPY/src/modules/questionStart.py
boiimakillu/KahootPY
c8d7a03a766bf061015a178cd7df2382906f91ae
[ "MIT" ]
1
2021-11-25T12:19:27.000Z
2021-11-25T12:19:27.000Z
from json import loads from time import time def main(self): def handler(message): if message["channel"] == "/service/player" and message.get("data") and message["data"].get("id") == 2: self.questionStartTime = int(time() * 1000) self._emit("QuestionStart",loads(message["data"]["con...
37.4
110
0.641711
0
0
0
0
0
0
0
0
87
0.23262
c84d4f1ef2e89c1c188fc5c0934712deace909e7
2,973
py
Python
MNIST/util.py
zswdian/BinarizedSNPS
d1a1a1f7eea74ee8f9c2233ae94f7fa079dc11d5
[ "Apache-2.0" ]
null
null
null
MNIST/util.py
zswdian/BinarizedSNPS
d1a1a1f7eea74ee8f9c2233ae94f7fa079dc11d5
[ "Apache-2.0" ]
null
null
null
MNIST/util.py
zswdian/BinarizedSNPS
d1a1a1f7eea74ee8f9c2233ae94f7fa079dc11d5
[ "Apache-2.0" ]
null
null
null
import torch.nn as nn import numpy class BinOp(): def __init__(self, model): count_conv2d = 0 for m in model.modules(): if isinstance(m, nn.Conv2d): count_conv2d += 1 start_range = 1 end_range = count_conv2d - 2 self.bin_range = numpy.linspace...
37.1625
89
0.582913
2,935
0.987218
0
0
0
0
0
0
5
0.001682
c84ea79f1edbb49a2816dca5b35662a00efd9c2f
1,198
py
Python
modules/tensorflow/keras/datasets/gaussian_mixture.py
avogel88/compare-VAE-GAE
aa3419c41a58ca6c1a9c1031c0aed7e07c3d4f90
[ "MIT" ]
null
null
null
modules/tensorflow/keras/datasets/gaussian_mixture.py
avogel88/compare-VAE-GAE
aa3419c41a58ca6c1a9c1031c0aed7e07c3d4f90
[ "MIT" ]
null
null
null
modules/tensorflow/keras/datasets/gaussian_mixture.py
avogel88/compare-VAE-GAE
aa3419c41a58ca6c1a9c1031c0aed7e07c3d4f90
[ "MIT" ]
null
null
null
import numpy as np import os from os.path import dirname, join from modules.numpy import covmix, varroll from modules.pandas import DesignMatrix from modules.scipy.stats import gaussian_mixture def gaussian_mixture_generate(file, train=60000, test=60000, validate=10000): dim_x, dim_z = 784, 10 # distribution...
29.95
77
0.674457
0
0
0
0
0
0
0
0
120
0.099585
c85276ff92552a878b6545824f777a6c37822c3a
7,860
py
Python
Desktop Assistant.py
PRASUNR0Y/Desktop-Assistant
6f07cd3bc50bfca3d3f243d9e01d1bb0ef2e9029
[ "MIT" ]
15
2020-07-21T09:54:16.000Z
2022-02-08T15:34:25.000Z
Desktop Assistant.py
RisingStar522/Desktop-Assistant
6f07cd3bc50bfca3d3f243d9e01d1bb0ef2e9029
[ "MIT" ]
1
2020-11-26T15:47:23.000Z
2020-11-26T15:47:23.000Z
Desktop Assistant.py
RisingStar522/Desktop-Assistant
6f07cd3bc50bfca3d3f243d9e01d1bb0ef2e9029
[ "MIT" ]
16
2020-08-04T10:47:45.000Z
2022-01-14T19:29:35.000Z
import pyttsx3 #pip install pyttsx3 import speech_recognition as sr #pip install speechRecognition import datetime import wikipedia #pip install wikipedia import webbrowser import os import smtplib import random engine = pyttsx3.init('sapi5') voices = engine.getProperty('voices') # print(voices[0].id) engine.setProper...
34.933333
146
0.575318
0
0
0
0
0
0
0
0
2,730
0.347328
c8530a2187ea583ad5783e02a5317fc84ce553e4
1,620
py
Python
old_version/forms/auth_form.py
DenisZhmakin/VK-Music-Downloader
217d54f462b2da74776eec47bf1c355c54b017ab
[ "Unlicense" ]
null
null
null
old_version/forms/auth_form.py
DenisZhmakin/VK-Music-Downloader
217d54f462b2da74776eec47bf1c355c54b017ab
[ "Unlicense" ]
1
2021-12-20T03:42:21.000Z
2021-12-20T09:57:57.000Z
old_version/forms/auth_form.py
DenisZhmakin/VK-Music-Downloader
217d54f462b2da74776eec47bf1c355c54b017ab
[ "Unlicense" ]
null
null
null
import json from pathlib import Path from PyQt5 import uic from PyQt5.QtCore import pyqtSignal from PyQt5.QtWidgets import QWidget from vk_api.vk_api import VkApi from utils import print_message, validate_QLineEdit class AuthForm(QWidget): authorized_successfull = pyqtSignal() def __init__(self): ...
27.931034
84
0.591358
1,526
0.873998
0
0
0
0
0
0
345
0.197595
c8551c2705d7c8211e2870c34856750e96ab7d03
11,467
py
Python
exif_processing.py
Strubbl/upload-scripts
da2f73a322490c0ca572dcc21bc8ba7f68f76734
[ "MIT" ]
null
null
null
exif_processing.py
Strubbl/upload-scripts
da2f73a322490c0ca572dcc21bc8ba7f68f76734
[ "MIT" ]
1
2020-08-05T18:37:15.000Z
2020-08-07T14:12:56.000Z
exif_processing.py
Strubbl/upload-scripts
da2f73a322490c0ca572dcc21bc8ba7f68f76734
[ "MIT" ]
1
2020-08-05T16:23:51.000Z
2020-08-05T16:23:51.000Z
"""Module responsible to parse Exif information from a image""" import math import datetime from enum import Enum from typing import Optional # third party import exifread import piexif MPH_TO_KMH_FACTOR = 1.60934 """miles per hour to kilometers per hour conversion factor""" KNOTS_TO_KMH_FACTOR = 1.852 """knots to kil...
38.871186
99
0.669574
1,880
0.163949
0
0
351
0.03061
0
0
3,165
0.276009
c8559b8c4871bf63b43c48e1fd50163d6997b0b7
1,505
py
Python
NPTEL - 2017 PDSA/Nptel_EX_5.py
Siddharth2016/PYTHON3_prog
9dfa258d87f5b00779d39d9de9a49c1c6cea06be
[ "MIT" ]
2
2019-02-26T14:06:53.000Z
2019-02-27T17:13:01.000Z
NPTEL - 2017 PDSA/Nptel_EX_5.py
Siddharth2016/PYTHON3_prog
9dfa258d87f5b00779d39d9de9a49c1c6cea06be
[ "MIT" ]
null
null
null
NPTEL - 2017 PDSA/Nptel_EX_5.py
Siddharth2016/PYTHON3_prog
9dfa258d87f5b00779d39d9de9a49c1c6cea06be
[ "MIT" ]
2
2017-12-26T07:59:57.000Z
2018-06-24T03:35:05.000Z
# NPTEL EXERCISE 5 courses = {} students = [] grades = {} f = 0 while(True): S = input() if S=="EndOfInput": break if S=='Courses': f = 1 continue elif S=='Students': f = 2 continue elif S=='Grades': f = 3 continue i...
22.462687
60
0.348173
0
0
0
0
0
0
0
0
161
0.106977
c8561da14e0cfa8d9fef29a387534b2cad910276
5,122
py
Python
pytests/ent_backup_restore/provider/provider.py
sumedhpb/testrunner
9ff887231c75571624abc31a3fb5248110e01203
[ "Apache-2.0" ]
14
2015-02-06T02:47:57.000Z
2020-03-14T15:06:05.000Z
pytests/ent_backup_restore/provider/provider.py
sumedhpb/testrunner
9ff887231c75571624abc31a3fb5248110e01203
[ "Apache-2.0" ]
3
2019-02-27T19:29:11.000Z
2021-06-02T02:14:27.000Z
pytests/ent_backup_restore/provider/provider.py
sumedhpb/testrunner
9ff887231c75571624abc31a3fb5248110e01203
[ "Apache-2.0" ]
108
2015-03-26T08:58:49.000Z
2022-03-21T05:21:39.000Z
#!/usr/bin/python3 import abc import re import logger class Provider(metaclass=abc.ABCMeta): def __init__(self, access_key_id, bucket, cacert, endpoint, no_ssl_verify, region, secret_access_key, staging_directory): """Instantiate a new 'Provider' object. Should only be created by implementing super classe...
43.042017
194
0.664779
5,065
0.988872
0
0
2,078
0.405701
0
0
2,193
0.428153
c856f5773044e5156600553546b88ed62d7ca1dd
235
py
Python
trip_distributer/admin.py
princegoyani/TRIP-DISTRIBUTER
22793ae603508c9388d03f044759dc925462595a
[ "BSD-3-Clause" ]
null
null
null
trip_distributer/admin.py
princegoyani/TRIP-DISTRIBUTER
22793ae603508c9388d03f044759dc925462595a
[ "BSD-3-Clause" ]
null
null
null
trip_distributer/admin.py
princegoyani/TRIP-DISTRIBUTER
22793ae603508c9388d03f044759dc925462595a
[ "BSD-3-Clause" ]
null
null
null
from django.contrib import admin from .models import User , Trip, Notification , Spending # Register your models here. admin.site.register(User) admin.site.register(Trip) admin.site.register(Notification) admin.site.register(Spending)
29.375
56
0.808511
0
0
0
0
0
0
0
0
28
0.119149
c857514f1506cd0bc10959833eb8dedcb9973928
70,500
py
Python
cifar_net_search/syclop_cifar_gru_no_upsample.py
sashkarivkind/imagewalker
999e1ae78cfe1512e1be894d9e7891a7d0c41233
[ "Apache-2.0" ]
2
2021-04-28T13:33:45.000Z
2021-11-09T14:31:09.000Z
cifar_net_search/syclop_cifar_gru_no_upsample.py
sashkarivkind/imagewalker
999e1ae78cfe1512e1be894d9e7891a7d0c41233
[ "Apache-2.0" ]
null
null
null
cifar_net_search/syclop_cifar_gru_no_upsample.py
sashkarivkind/imagewalker
999e1ae78cfe1512e1be894d9e7891a7d0c41233
[ "Apache-2.0" ]
1
2021-03-07T13:25:59.000Z
2021-03-07T13:25:59.000Z
''' The follwing code runs a test lstm network on the CIFAR dataset I will explicitly write the networks here for ease of understanding with cnn_sropout = 0.4 and rnn dropout = 0.2and lr = 1e-3 and res = 8 ################# cnn_gru_True Validation Accuracy = [0.3408, 0.411, 0.44, 0.4448, 0.466, 0.4684, 0.4802, 0.4...
228.896104
5,606
0.721078
0
0
0
0
0
0
0
0
64,984
0.921759
c8582ae70ade8be54e5b658dac7c05d734904cb0
549
py
Python
config/config.py
ByeongGil-Jung/Pytorch-Experiments-Boilerplate
5026fda297460552a076addbf7d29ad826ee0ac8
[ "Apache-2.0" ]
null
null
null
config/config.py
ByeongGil-Jung/Pytorch-Experiments-Boilerplate
5026fda297460552a076addbf7d29ad826ee0ac8
[ "Apache-2.0" ]
null
null
null
config/config.py
ByeongGil-Jung/Pytorch-Experiments-Boilerplate
5026fda297460552a076addbf7d29ad826ee0ac8
[ "Apache-2.0" ]
null
null
null
import os from domain.base import Domain, Yaml from properties import APPLICATION_PROPERTIES class Config(Domain): def __init__(self, file_name, *args, **kwargs): super(Config, self).__init__(*args, **kwargs) self.file_name = file_name @property def file_path(self): return os.pa...
22.875
89
0.693989
452
0.823315
0
0
271
0.493625
0
0
0
0
c8587f2977c7befab3e26288435a9698c942b8e4
2,719
py
Python
ultron8/api/api_v1/endpoints/loggers.py
bossjones/ultron8
45db73d32542a844570d44bc83defa935e15803f
[ "Apache-2.0", "MIT" ]
null
null
null
ultron8/api/api_v1/endpoints/loggers.py
bossjones/ultron8
45db73d32542a844570d44bc83defa935e15803f
[ "Apache-2.0", "MIT" ]
43
2019-06-01T23:08:32.000Z
2022-02-07T22:24:53.000Z
ultron8/api/api_v1/endpoints/loggers.py
bossjones/ultron8
45db73d32542a844570d44bc83defa935e15803f
[ "Apache-2.0", "MIT" ]
null
null
null
from __future__ import annotations # SOURCE: https://blog.bartab.fr/fastapi-logging-on-the-fly/ import logging from fastapi import APIRouter, HTTPException from ultron8.api.models.loggers import LoggerModel, LoggerPatch LOG_LEVELS = { "critical": logging.CRITICAL, "error": logging.ERROR, "warning": logg...
31.252874
86
0.670099
0
0
0
0
844
0.310408
0
0
608
0.223612
c85898f206e8cc65031cd08af9075a430861ba23
422
py
Python
exception6.py
PRASAD-DANGARE/PYTHON
36214f7dc3762d327e5a29e40752edeb098249c8
[ "MIT" ]
1
2021-06-07T07:55:28.000Z
2021-06-07T07:55:28.000Z
exception6.py
PRASAD-DANGARE/PYTHON
36214f7dc3762d327e5a29e40752edeb098249c8
[ "MIT" ]
null
null
null
exception6.py
PRASAD-DANGARE/PYTHON
36214f7dc3762d327e5a29e40752edeb098249c8
[ "MIT" ]
null
null
null
# Python Program To Understand The Usage Of try With finally Blocks ''' Function Name : Usage Of try With finally Blocks Function Date : 23 Sep 2020 Function Author : Prasad Dangare Input : String Output : String ''' try: x = int(input('Enter A Number : ')) y = 1...
22.210526
68
0.592417
0
0
0
0
0
0
0
0
329
0.779621
c859d195756534de10c20a9266677539c86f42d2
72
py
Python
small-problems/fibonacci-sequence/fib1.py
Prateek2506/classic-cs-problems
fa0e3c86fb7cd478888bb90006f7379cc6c7a38b
[ "MIT" ]
null
null
null
small-problems/fibonacci-sequence/fib1.py
Prateek2506/classic-cs-problems
fa0e3c86fb7cd478888bb90006f7379cc6c7a38b
[ "MIT" ]
null
null
null
small-problems/fibonacci-sequence/fib1.py
Prateek2506/classic-cs-problems
fa0e3c86fb7cd478888bb90006f7379cc6c7a38b
[ "MIT" ]
null
null
null
def fib1(n: int) -> int: return fib1(n-1) + fib1(n-2) print(fib1(5))
24
32
0.583333
0
0
0
0
0
0
0
0
0
0
c85a1c9c9f35a67fa594c9e1e36235e098af53be
4,036
py
Python
V1/GliderScienceSet_Plots.py
NOAA-PMEL/EcoFOCI_OculusGlider
5655c0e173432768706416932c94a089a3e7993f
[ "Unlicense" ]
2
2018-04-12T19:49:05.000Z
2020-10-01T11:46:48.000Z
V1/GliderScienceSet_Plots.py
NOAA-PMEL/EcoFOCI_OculusGlider
5655c0e173432768706416932c94a089a3e7993f
[ "Unlicense" ]
null
null
null
V1/GliderScienceSet_Plots.py
NOAA-PMEL/EcoFOCI_OculusGlider
5655c0e173432768706416932c94a089a3e7993f
[ "Unlicense" ]
null
null
null
#!/usr/bin/env python """ Background: -------- GliderScienceSet_Plots.py Purpose: -------- History: -------- """ import argparse import os from io_utils import ConfigParserLocal import numpy as np import xarray as xa # Visual Stack import matplotlib as mpl import matplotlib.pyplot as plt def plot_ts(...
27.834483
119
0.640981
0
0
0
0
0
0
0
0
1,256
0.311199
c85aba6739f248fb55a041a97d59cbb716b417c3
17,416
py
Python
manager/users/models.py
jlbrewe/hub
c737669e6493ad17536eaa240bed3394b20c6b7d
[ "Apache-2.0" ]
30
2016-03-26T12:08:04.000Z
2021-12-24T14:48:32.000Z
manager/users/models.py
jlbrewe/hub
c737669e6493ad17536eaa240bed3394b20c6b7d
[ "Apache-2.0" ]
1,250
2016-03-23T04:56:50.000Z
2022-03-28T02:27:58.000Z
manager/users/models.py
jlbrewe/hub
c737669e6493ad17536eaa240bed3394b20c6b7d
[ "Apache-2.0" ]
11
2016-07-14T17:04:20.000Z
2021-07-01T16:19:09.000Z
""" Define models used in this app. This module only serves to provide some consistency across the `users`, `accounts` , `projects` etc apps so that you can `from users.models import Users`, just like you can for `from projects.models import Projects` and instead of having to remember to do the following. """ from ty...
30.824779
93
0.634933
9,970
0.572462
0
0
1,185
0.068041
0
0
7,291
0.418638
c85bff69906cd84ddfe9e581be8b49ceea14621c
6,075
py
Python
scripts/automation/trex_control_plane/interactive/trex/emu/emu_plugins/emu_plugin_dhcpsrv.py
GabrielGanne/trex-core
688a0fe0adb890964691473723d70ffa98e00dd3
[ "Apache-2.0" ]
956
2015-06-24T15:04:55.000Z
2022-03-30T06:25:04.000Z
scripts/automation/trex_control_plane/interactive/trex/emu/emu_plugins/emu_plugin_dhcpsrv.py
hjat2005/trex-core
400f03c86c844a0096dff3f6b13e58a808aaefff
[ "Apache-2.0" ]
782
2015-09-20T15:19:00.000Z
2022-03-31T23:52:05.000Z
scripts/automation/trex_control_plane/interactive/trex/emu/emu_plugins/emu_plugin_dhcpsrv.py
hjat2005/trex-core
400f03c86c844a0096dff3f6b13e58a808aaefff
[ "Apache-2.0" ]
429
2015-06-27T19:34:21.000Z
2022-03-23T11:02:51.000Z
from trex.emu.api import * from trex.emu.emu_plugins.emu_plugin_base import * import trex.utils.parsing_opts as parsing_opts class DHCPSRVPlugin(EMUPluginBase): """ Defines DHCP Server plugin based on `DHCP <https://en.wikipedia.org/wiki/Dynamic_Host_Configuration_Protocol>`_ Implemented based on `RFC 2...
39.967105
200
0.539095
5,947
0.97893
0
0
1,299
0.213827
0
0
4,510
0.742387
c86191051fc7c1834649eb4ef9230e67b31da3c1
2,683
py
Python
lenet-chinese_mnist/generate.py
leonwanghui/mindspore-jina-apps
e2912d9a93689c69005345758e3b7a2f8ba6133e
[ "Apache-2.0" ]
null
null
null
lenet-chinese_mnist/generate.py
leonwanghui/mindspore-jina-apps
e2912d9a93689c69005345758e3b7a2f8ba6133e
[ "Apache-2.0" ]
null
null
null
lenet-chinese_mnist/generate.py
leonwanghui/mindspore-jina-apps
e2912d9a93689c69005345758e3b7a2f8ba6133e
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 Huawei Technologies Co., Ltd # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to...
43.274194
118
0.6776
0
0
0
0
0
0
0
0
1,067
0.397689