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
8ed740f84eb596b331c579907df179ccc0238174
1,414
py
Python
src/ai/backend/client/cli/main.py
youngjun0627/backend.ai-client-py
be7c174ab73e112fdb8be61e6affc20fc72f7d59
[ "MIT" ]
7
2019-01-18T08:08:42.000Z
2022-02-10T00:36:24.000Z
src/ai/backend/client/cli/main.py
youngjun0627/backend.ai-client-py
be7c174ab73e112fdb8be61e6affc20fc72f7d59
[ "MIT" ]
179
2017-09-07T04:54:44.000Z
2022-03-29T11:30:47.000Z
src/ai/backend/client/cli/main.py
youngjun0627/backend.ai-client-py
be7c174ab73e112fdb8be61e6affc20fc72f7d59
[ "MIT" ]
13
2017-09-08T05:37:44.000Z
2021-09-14T23:35:31.000Z
import warnings import click from ai.backend.cli.extensions import ExtendedCommandGroup from ai.backend.client import __version__ from ai.backend.client.output import get_output_handler from ai.backend.client.config import APIConfig, set_config from ai.backend.client.cli.types import CLIContext, OutputMode
30.73913
84
0.712871
8eda6227d1c508e3c3dc40e3141ee055d68cff84
4,849
py
Python
src/main/python/cybercaptain/processing/country.py
FHNW-CyberCaptain/CyberCaptain
07c989190e997353fbf57eb7a386947d6ab8ffd5
[ "MIT" ]
1
2018-10-01T10:59:55.000Z
2018-10-01T10:59:55.000Z
src/main/python/cybercaptain/processing/country.py
FHNW-CyberCaptain/CyberCaptain
07c989190e997353fbf57eb7a386947d6ab8ffd5
[ "MIT" ]
null
null
null
src/main/python/cybercaptain/processing/country.py
FHNW-CyberCaptain/CyberCaptain
07c989190e997353fbf57eb7a386947d6ab8ffd5
[ "MIT" ]
1
2021-11-01T00:09:00.000Z
2021-11-01T00:09:00.000Z
""" The country module contains the processing_country class. """ from os import path import geoip2.database from cybercaptain.utils.exceptions import ValidationError from cybercaptain.processing.base import processing_base from cybercaptain.utils.jsonFileHandler import json_file_reader, json_file_writer
45.745283
193
0.647556
8edd3cd8565c24d7a33ad76b1b5ec1f65dc9407d
473
py
Python
attendees/whereabouts/migrations/0009_attendee_address_m2m.py
xjlin0/attendees
3c337ee68c00f17cbbbe26f2e33131e57850e4ed
[ "MIT" ]
1
2020-03-26T00:42:04.000Z
2020-03-26T00:42:04.000Z
attendees/whereabouts/migrations/0009_attendee_address_m2m.py
xjlin0/attendees
3c337ee68c00f17cbbbe26f2e33131e57850e4ed
[ "MIT" ]
null
null
null
attendees/whereabouts/migrations/0009_attendee_address_m2m.py
xjlin0/attendees
3c337ee68c00f17cbbbe26f2e33131e57850e4ed
[ "MIT" ]
null
null
null
# Generated by Django 3.0.2 on 2020-01-21 06:04 from django.db import migrations, models
23.65
99
0.615222
8ede460bd8fcc02049fe028261dea40e63202e0a
1,411
py
Python
contents/2020_ITinerary/assets/session_1/car.py
EunSeong-Park/ITinerary
7e33613e3382f3e4b4404ad6795bc28823c7641d
[ "MIT" ]
4
2020-03-31T01:18:43.000Z
2020-11-21T16:53:02.000Z
contents/2020_ITinerary/assets/session_1/car.py
EunSeong-Park/ITinerary
7e33613e3382f3e4b4404ad6795bc28823c7641d
[ "MIT" ]
null
null
null
contents/2020_ITinerary/assets/session_1/car.py
EunSeong-Park/ITinerary
7e33613e3382f3e4b4404ad6795bc28823c7641d
[ "MIT" ]
null
null
null
# skeleton benz = Car("Benz", 25, 100) benz.brrr(10000) benz.gas_station() benz.brrr(1000) benz.gas_station()
26.12963
81
0.582566
8edeb880bd3ced5f319652f9f1bebc920f8b9270
1,855
py
Python
main.py
webgjc/web-touch-pad
a9270bfde10ffb9dc490a793a1264751c3eed52e
[ "MIT" ]
10
2021-07-01T08:26:56.000Z
2021-11-05T05:20:29.000Z
main.py
webgjc/web-touch-pad
a9270bfde10ffb9dc490a793a1264751c3eed52e
[ "MIT" ]
null
null
null
main.py
webgjc/web-touch-pad
a9270bfde10ffb9dc490a793a1264751c3eed52e
[ "MIT" ]
2
2021-07-09T09:10:24.000Z
2021-07-29T05:32:34.000Z
import socket import pynput from gevent import pywsgi from flask_sockets import Sockets from flask import Flask, request, render_template from geventwebsocket.handler import WebSocketHandler app = Flask(__name__) sockets = Sockets(app) mouse = pynput.mouse.Controller() def getIp(): s = socket.socket(socket....
27.686567
86
0.607547
8edf5aa5e27f7a23873c95f6b823d38d6d75b822
2,652
py
Python
dmsp/io.py
space-physics/digital-meridian-spectrometer
8b46ad53c99a6340f28067fa5c3ee3c877cfcbf2
[ "Apache-2.0" ]
null
null
null
dmsp/io.py
space-physics/digital-meridian-spectrometer
8b46ad53c99a6340f28067fa5c3ee3c877cfcbf2
[ "Apache-2.0" ]
null
null
null
dmsp/io.py
space-physics/digital-meridian-spectrometer
8b46ad53c99a6340f28067fa5c3ee3c877cfcbf2
[ "Apache-2.0" ]
null
null
null
from pathlib import Path from typing import Tuple from netCDF4 import Dataset import xarray import numpy as np from datetime import datetime, timedelta from dateutil.parser import parse def load( fn: Path, tlim: Tuple[datetime, datetime] = None, elevlim: Tuple[float, float] = None ) -> xarray.Dataset: """ ...
37.352113
90
0.565988
8ee1d299cf6ec687ec90359acd199e326a83c21f
1,402
py
Python
mergify_engine/config.py
bowlofeggs/mergify-engine
463811a15835c1439fe75e3168113aa497892c77
[ "Apache-2.0" ]
null
null
null
mergify_engine/config.py
bowlofeggs/mergify-engine
463811a15835c1439fe75e3168113aa497892c77
[ "Apache-2.0" ]
null
null
null
mergify_engine/config.py
bowlofeggs/mergify-engine
463811a15835c1439fe75e3168113aa497892c77
[ "Apache-2.0" ]
null
null
null
# -*- encoding: utf-8 -*- # # Copyright 2017 Red Hat, Inc. # # 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 applicab...
31.155556
75
0.607703
8ee287666b52dd443104856eb3949c8aa83d480b
2,735
py
Python
bin/log_csv.py
scitran/nimsapi
a4203cf6c6d29aa15d33011250ee69ff929fcb0d
[ "MIT" ]
13
2016-05-31T14:32:58.000Z
2021-09-17T07:18:11.000Z
bin/log_csv.py
scitran/core
a4203cf6c6d29aa15d33011250ee69ff929fcb0d
[ "MIT" ]
911
2016-02-16T18:40:27.000Z
2018-08-07T17:50:29.000Z
bin/log_csv.py
scitran/nimsapi
a4203cf6c6d29aa15d33011250ee69ff929fcb0d
[ "MIT" ]
16
2016-02-17T15:54:34.000Z
2021-04-07T05:30:34.000Z
# This implementation as of July 19 2017 has these resource utilizations of the mongodb container: # - 2 million entries: 1.50 Gb # - 3 million entries: 2.05 Gb # The entire docker application was given 6 Gb to use, when given the default 2 Gb, # the process would frequently crash before 1 million entries were down...
32.951807
98
0.614991
8ee3cd2f187e49e671286db1a81ac32e75328dea
3,740
py
Python
planemo/database/postgres.py
pvanheus/planemo
12c4256325bb1b274dcd40d64b91c1f832cf49b1
[ "CC-BY-3.0" ]
73
2015-01-03T15:09:26.000Z
2022-03-30T23:52:55.000Z
planemo/database/postgres.py
pvanheus/planemo
12c4256325bb1b274dcd40d64b91c1f832cf49b1
[ "CC-BY-3.0" ]
958
2015-01-02T08:27:45.000Z
2022-03-23T14:51:51.000Z
planemo/database/postgres.py
jmchilton/planemo
d352a085fe10cb6b7c1384663b114201da42d97b
[ "CC-BY-3.0" ]
84
2015-01-06T18:27:28.000Z
2021-11-18T01:58:17.000Z
"""Module describes a :class:`DatabaseSource` for local postgres databases.""" import subprocess from galaxy.util import unicodify from planemo.io import communicate from .interface import DatabaseSource __all__ = ( "LocalPostgresDatabaseSource", )
34.953271
85
0.655615
8ee5290b246e0f20240930080e650291b2ae9065
2,029
py
Python
tests/test_mdnsCallbackHandler.py
pkeroulas/nmos-common
b650bad276819d794624f4ff6ea08fbdecd915d7
[ "Apache-2.0" ]
7
2017-12-08T08:05:51.000Z
2020-10-21T07:32:42.000Z
tests/test_mdnsCallbackHandler.py
pkeroulas/nmos-common
b650bad276819d794624f4ff6ea08fbdecd915d7
[ "Apache-2.0" ]
63
2017-12-13T08:46:58.000Z
2020-12-02T08:48:40.000Z
tests/test_mdnsCallbackHandler.py
pkeroulas/nmos-common
b650bad276819d794624f4ff6ea08fbdecd915d7
[ "Apache-2.0" ]
7
2017-11-22T10:49:23.000Z
2022-03-15T22:00:17.000Z
#!/usr/bin/env python # Copyright 2017 British Broadcasting Corporation # # 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...
28.985714
80
0.656481
8ee6449defa3c3d44a2b59e09354dc78f44affea
882
py
Python
src/posts/views.py
wmtamit/IceBook-Django
4625f6ae879c64be9d71d10eca111b837f2fe8bc
[ "MIT" ]
null
null
null
src/posts/views.py
wmtamit/IceBook-Django
4625f6ae879c64be9d71d10eca111b837f2fe8bc
[ "MIT" ]
null
null
null
src/posts/views.py
wmtamit/IceBook-Django
4625f6ae879c64be9d71d10eca111b837f2fe8bc
[ "MIT" ]
null
null
null
from django.shortcuts import render from django.contrib.auth.decorators import login_required from .models import Post from .forms import PostForm
23.837838
57
0.741497
8ee86c19092798935cd7b241e9fbac234703710d
14,019
py
Python
cvpro/Utils.py
Mohak-CODING-HEAVEN/CVPRO
09a2cb4a428738c9e77f17b71469d55eff5e3699
[ "MIT" ]
5
2021-07-24T18:20:11.000Z
2022-03-23T09:58:27.000Z
cvpro/Utils.py
Mohak-CODING-HEAVEN/cvpro
09a2cb4a428738c9e77f17b71469d55eff5e3699
[ "MIT" ]
null
null
null
cvpro/Utils.py
Mohak-CODING-HEAVEN/cvpro
09a2cb4a428738c9e77f17b71469d55eff5e3699
[ "MIT" ]
null
null
null
""" Utilities - CVPRO BY: MOHAK BAJAJ CODING HEAVEN """ import math import time import logging import cv2 import numpy as np import copy def stackImages(_imgList, cols, scale): """ Stack Images together to display in a single window :param _imgList: list of images to stack :param co...
35.491139
105
0.527855
8eeb463cad3d2986fa543d29cd235afba9ffb070
3,664
py
Python
elstruct/reader/gaussian/freq.py
avcopan/elstruct-interface
593929b5cf975e2f455125e446f8ca6a12482e5d
[ "Apache-2.0" ]
null
null
null
elstruct/reader/gaussian/freq.py
avcopan/elstruct-interface
593929b5cf975e2f455125e446f8ca6a12482e5d
[ "Apache-2.0" ]
null
null
null
elstruct/reader/gaussian/freq.py
avcopan/elstruct-interface
593929b5cf975e2f455125e446f8ca6a12482e5d
[ "Apache-2.0" ]
1
2018-11-16T20:44:31.000Z
2018-11-16T20:44:31.000Z
""" Library of functions to retrieve frequency information from a Gaussian 09e output file. Frequencies currently supported: (1) Harmonic Vibrational Frequencies (2) Harmonic Zero-Point Vibrational Energy """ __authors__ = "Kevin Moore, Andreas Copan" __updated__ = "2019-01-15" from ..rere import parse as repar fro...
28.403101
87
0.622544
8eed14fe9df66636359b69e6afcb70db03dc49df
7,460
py
Python
main.py
andrewlavaia/Traffic-Simulator
39c21e94ff3026954f1577a8f9e70c6d605cb286
[ "MIT" ]
null
null
null
main.py
andrewlavaia/Traffic-Simulator
39c21e94ff3026954f1577a8f9e70c6d605cb286
[ "MIT" ]
null
null
null
main.py
andrewlavaia/Traffic-Simulator
39c21e94ff3026954f1577a8f9e70c6d605cb286
[ "MIT" ]
null
null
null
import time import sys from graphics import GraphApp, GraphWin, Text, Point, _root from menu import MainMenu from graphs import Graph, ShortestPaths from maps import RoadMap from cars import Car, CarShape, CarFactory from gps import GPS from info_window import InfoWindow, RoadInfoWindow from collision import GridColli...
33.452915
104
0.640617
8eed562bb3ffb90d5a64ae9eed83f174c8c31c52
11,116
py
Python
util/modules_asym.py
Isaac-Li-cn/certify_robustness
f904dc923afc6354e406c57a1c923d13fc39d315
[ "BSD-3-Clause" ]
null
null
null
util/modules_asym.py
Isaac-Li-cn/certify_robustness
f904dc923afc6354e406c57a1c923d13fc39d315
[ "BSD-3-Clause" ]
null
null
null
util/modules_asym.py
Isaac-Li-cn/certify_robustness
f904dc923afc6354e406c57a1c923d13fc39d315
[ "BSD-3-Clause" ]
null
null
null
""" 1. quadratic algorithm 2. """ ''' >>> This file creates modules that can do forward, backward pass as well as bound propagation ''' import torch import torch.nn as nn import torch.nn.functional as F from torch.nn.parameter import Parameter from abc import ABCMeta, abstractmethod import numpy as np from .linear...
35.066246
154
0.609662
8eed7af0e7e14fb232a58b34bca05351e370155d
1,050
py
Python
lambda-encoding/lambda_codec/__main__.py
aroberge/import-experiments
3ceeab9f2443a259f0a1cbd3cd8e09bff7856178
[ "MIT" ]
null
null
null
lambda-encoding/lambda_codec/__main__.py
aroberge/import-experiments
3ceeab9f2443a259f0a1cbd3cd8e09bff7856178
[ "MIT" ]
null
null
null
lambda-encoding/lambda_codec/__main__.py
aroberge/import-experiments
3ceeab9f2443a259f0a1cbd3cd8e09bff7856178
[ "MIT" ]
null
null
null
""" main.py ---------- """ import argparse import os import runpy import sys from . import console parser = argparse.ArgumentParser( formatter_class=argparse.RawDescriptionHelpFormatter, description="Description", ) parser.add_argument( "source", nargs="?", help="""Name of the script to be run a...
22.826087
81
0.639048
8eeec43ac2ba36819f5ca566f6976a86baf0f967
4,779
py
Python
apetools/connections/localconnection.py
rsnakamura/oldape
b4d1c77e1d611fe2b30768b42bdc7493afb0ea95
[ "Apache-2.0" ]
null
null
null
apetools/connections/localconnection.py
rsnakamura/oldape
b4d1c77e1d611fe2b30768b42bdc7493afb0ea95
[ "Apache-2.0" ]
null
null
null
apetools/connections/localconnection.py
rsnakamura/oldape
b4d1c77e1d611fe2b30768b42bdc7493afb0ea95
[ "Apache-2.0" ]
null
null
null
#python Libraries from StringIO import StringIO from collections import namedtuple import Queue import os # Third-party Libraries try: import pexpect except ImportError as error: #print error pass # apetools Libraries from apetools.baseclass import BaseClass from apetools.commons.errors import Connection...
28.446429
101
0.6018
8eef37709e19ecce787c089fc77ca3d1055e5516
5,167
py
Python
nex2art/core/Nexus.py
IntershopCommunicationsAG/nexus2artifactory
233bad5e9a0992c64892f16202b1e61df12852d9
[ "Apache-2.0" ]
null
null
null
nex2art/core/Nexus.py
IntershopCommunicationsAG/nexus2artifactory
233bad5e9a0992c64892f16202b1e61df12852d9
[ "Apache-2.0" ]
null
null
null
nex2art/core/Nexus.py
IntershopCommunicationsAG/nexus2artifactory
233bad5e9a0992c64892f16202b1e61df12852d9
[ "Apache-2.0" ]
null
null
null
import os import logging import xml.etree.ElementTree as ET from . import Security, Ldap
41.336
79
0.543255
8eefe1977906d53f705ef27c60547b06a9610720
2,523
py
Python
memory_game/memory_game.py
Jimut123/code_skulptor_pygames
1bb2c65f5bc5519f3caed956a6f5a55a7359fcb3
[ "MIT" ]
2
2018-11-17T21:12:16.000Z
2018-12-06T15:04:27.000Z
memory_game/memory_game.py
Jimut123/code_skulptor_pygames
1bb2c65f5bc5519f3caed956a6f5a55a7359fcb3
[ "MIT" ]
null
null
null
memory_game/memory_game.py
Jimut123/code_skulptor_pygames
1bb2c65f5bc5519f3caed956a6f5a55a7359fcb3
[ "MIT" ]
null
null
null
# implementation of card game - Memory import simplegui import random # for repeatition check # helper function to initialize globals # define event handlers # cards are logically 50x100 pixels in size # create frame and add a button and labels frame = simplegui...
30.39759
133
0.575109
8ef3b330ea6a710b3d536345a2cc24ce60527a6a
2,547
py
Python
python/periodic-web-scrapper/scraper/utilities/WebUtilities.py
MarioCodes/ProyectosClaseDAM
df568b4feda8bf3a6cf7cc8e81e7dfa4156dcfd9
[ "Apache-2.0" ]
null
null
null
python/periodic-web-scrapper/scraper/utilities/WebUtilities.py
MarioCodes/ProyectosClaseDAM
df568b4feda8bf3a6cf7cc8e81e7dfa4156dcfd9
[ "Apache-2.0" ]
17
2019-06-14T12:30:46.000Z
2022-02-18T11:38:50.000Z
python/periodic-web-scrapper/scraper/utilities/WebUtilities.py
MarioCodes/ProyectosClaseDAM
df568b4feda8bf3a6cf7cc8e81e7dfa4156dcfd9
[ "Apache-2.0" ]
null
null
null
''' Created on Mar 22, 2018 @author: msanchez ''' import requests from html.parser import HTMLParser import urllib
33.513158
108
0.568512
d6feb2821863a29b4221e191fc8923133c2fe913
2,585
py
Python
shepherd/sheep/base_sheep.py
iterait/shepherd
0847c9885584378dd68a48c40d03f9bb02b2b57c
[ "MIT" ]
5
2018-10-13T19:03:07.000Z
2019-02-25T06:44:27.000Z
shepherd/sheep/base_sheep.py
iterait/shepherd
0847c9885584378dd68a48c40d03f9bb02b2b57c
[ "MIT" ]
62
2018-09-13T08:03:39.000Z
2022-01-03T09:05:54.000Z
shepherd/sheep/base_sheep.py
iterait/shepherd
0847c9885584378dd68a48c40d03f9bb02b2b57c
[ "MIT" ]
null
null
null
import abc import logging from typing import List, Optional from asyncio import Queue import zmq.asyncio from zmq.error import ZMQBaseError from schematics import Model from schematics.types import StringType, IntType, ListType
37.463768
117
0.667311
d9011b28c63281bc996099c09c306b728df0ffa9
1,546
py
Python
test5.py
fr0zn/solquery
c3b1989fa887c9cc09ea091bf9bf36793fdd73a4
[ "MIT" ]
null
null
null
test5.py
fr0zn/solquery
c3b1989fa887c9cc09ea091bf9bf36793fdd73a4
[ "MIT" ]
null
null
null
test5.py
fr0zn/solquery
c3b1989fa887c9cc09ea091bf9bf36793fdd73a4
[ "MIT" ]
null
null
null
def do_format(result): print('''a_value: {a:list} b_value: {b:comma} '''.format_map(result)) a = [{'a':'5'}, {'a':'6'}] final = SafeDict({}) formatter = MetaVarFormatter() for D in a: for key, value in D.items(): # in python 2 use D.iteritems() instead final[key] = final.get(key,MetaVarLis...
24.539683
112
0.600906
d90152eceb846416a3fc96e372d419d89b8f7cbd
4,462
py
Python
theano/sandbox/mkl/tests/gen_conv_graph.py
intel/Theano-dev
6ca6fd4646f9e958058c7bce52cd51923c05c2f4
[ "BSD-3-Clause" ]
64
2016-10-02T20:41:56.000Z
2020-03-11T14:59:40.000Z
theano/sandbox/mkl/tests/gen_conv_graph.py
intel/Theano-dev
6ca6fd4646f9e958058c7bce52cd51923c05c2f4
[ "BSD-3-Clause" ]
4
2017-06-12T05:12:38.000Z
2018-03-15T03:16:30.000Z
theano/sandbox/mkl/tests/gen_conv_graph.py
intel/Theano-dev
6ca6fd4646f9e958058c7bce52cd51923c05c2f4
[ "BSD-3-Clause" ]
30
2016-10-27T21:59:00.000Z
2021-02-20T09:55:14.000Z
import theano import unittest import numpy from nose.plugins.skip import SkipTest from theano import tensor as T from theano.tensor.nnet import conv2d from theano.sandbox import mkl numpy.random.seed(123) if not mkl.mkl_available: raise SkipTest('Optional package MKL disabled') if theano.config.mode == 'FAST_COM...
48.5
119
0.722098
d9022f601f4293f1035df02426253ad8f56ff9ca
12,142
py
Python
tests/test_views.py
lavyaKoli/stormpath-flask
ca79162302e34085bef774751288d2ac95479c0d
[ "Apache-2.0" ]
99
2015-01-04T06:27:10.000Z
2021-07-27T11:06:15.000Z
tests/test_views.py
lavyaKoli/stormpath-flask
ca79162302e34085bef774751288d2ac95479c0d
[ "Apache-2.0" ]
65
2015-01-05T17:34:27.000Z
2019-01-21T09:59:01.000Z
tests/test_views.py
lavyaKoli/stormpath-flask
ca79162302e34085bef774751288d2ac95479c0d
[ "Apache-2.0" ]
37
2015-03-20T16:24:44.000Z
2020-10-01T16:12:30.000Z
"""Run tests against our custom views.""" from flask.ext.stormpath.models import User from .helpers import StormpathTestCase
38.18239
125
0.558887
d902b516a40dcba0794e54939272a83437efbea7
1,097
py
Python
operators.py
Javip142/astr-119
018bcc1518d35d9a5ecc81b39343dce53325fa5b
[ "MIT" ]
null
null
null
operators.py
Javip142/astr-119
018bcc1518d35d9a5ecc81b39343dce53325fa5b
[ "MIT" ]
6
2021-09-29T22:16:39.000Z
2021-12-09T10:44:50.000Z
operators.py
Javip142/astr-119
018bcc1518d35d9a5ecc81b39343dce53325fa5b
[ "MIT" ]
null
null
null
x = 9 y = 3 # Arithmetic Operators print(x+y) #addtion print(x-y) #subtraction print(x*y) #multiplication print(x/y) #division print(x%y) #modulus provides remainder after we do long divison print(x**y) #Exponentiation x = 9.191823 print("Floor divide:", x//y) #Floor divison, how many times does a nu...
29.648649
88
0.583409
d903529b12c98aca3ff5d6845a7f6381cda45ac6
404
py
Python
controlpanel/controlpanel/ros_check/models.py
filesmuggler/acc_web_server
2497cbfdb08db30d4eb1ca842cee7c2f65ff7470
[ "MIT" ]
null
null
null
controlpanel/controlpanel/ros_check/models.py
filesmuggler/acc_web_server
2497cbfdb08db30d4eb1ca842cee7c2f65ff7470
[ "MIT" ]
null
null
null
controlpanel/controlpanel/ros_check/models.py
filesmuggler/acc_web_server
2497cbfdb08db30d4eb1ca842cee7c2f65ff7470
[ "MIT" ]
null
null
null
from django.db import models # Create your models here.
22.444444
50
0.695545
d9040f536e5e7d98863330b02abf8e1540d41786
7,340
py
Python
demo/trace.py
nicolasCruzW21/maskrcnn-Tracing
da648eb09f7034faa7b29a48543d777d05968d82
[ "MIT" ]
3
2020-06-10T04:37:01.000Z
2021-12-20T07:45:48.000Z
demo/trace.py
nicolasCruzW21/maskrcnn-Tracing
da648eb09f7034faa7b29a48543d777d05968d82
[ "MIT" ]
1
2020-06-17T09:05:31.000Z
2021-09-13T09:16:36.000Z
demo/trace.py
nicolasCruzW21/maskrcnn-Tracing
da648eb09f7034faa7b29a48543d777d05968d82
[ "MIT" ]
1
2020-07-06T05:47:12.000Z
2020-07-06T05:47:12.000Z
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. import argparse import cv2 from maskrcnn_benchmark.config import cfg from predictor import COCODemo import torch import time from PIL import Image import numpy from matplotlib import pyplot if __name__ == "__main__": main()
38.229167
178
0.639646
d904aa2e2fa43b92a5d3dd1e133389c9c177bb50
8,736
py
Python
app/dell_racadm_info_update.py
haoaaren/check_dell_racadm
cf5aa09fc60b42426811e90cb3812279d3d167a8
[ "MIT" ]
4
2019-11-20T08:02:00.000Z
2021-01-05T04:36:59.000Z
app/dell_racadm_info_update.py
haoaaren/check_dell_racadm
cf5aa09fc60b42426811e90cb3812279d3d167a8
[ "MIT" ]
null
null
null
app/dell_racadm_info_update.py
haoaaren/check_dell_racadm
cf5aa09fc60b42426811e90cb3812279d3d167a8
[ "MIT" ]
1
2021-01-05T04:37:02.000Z
2021-01-05T04:37:02.000Z
#coding:utf-8 from flask import request,render_template, redirect,session from . import app from dbutil import DB from collections import OrderedDict import json import datetime # from dell_racadm import check_client_ip,check_dell_racadm_ip,dell_racadm_achieve_ip_info,achieve_dell_cacadm_comman,check_dell_racadm_info...
41.799043
138
0.704556
d904b9c8e847f19331cc7dff09301eaaa05f6fd5
5,275
py
Python
src/config.py
tfhkzp/telegram_follow_trader
ea32ba63d230d7244967d57a1cb8ade608e2761a
[ "MIT" ]
1
2020-12-17T16:51:27.000Z
2020-12-17T16:51:27.000Z
src/config.py
tfhkzp/telegram_follow_trader
ea32ba63d230d7244967d57a1cb8ade608e2761a
[ "MIT" ]
null
null
null
src/config.py
tfhkzp/telegram_follow_trader
ea32ba63d230d7244967d57a1cb8ade608e2761a
[ "MIT" ]
null
null
null
import os from configparser import RawConfigParser import constants import utils
39.074074
112
0.630711
d907a43938650d8d6f9175971c2ee412f0e1b223
1,430
py
Python
Problems/primetest.py
NielsonJ/Project-Euler
d54dce5461825c440a094310c3567b88c6f9a150
[ "MIT" ]
null
null
null
Problems/primetest.py
NielsonJ/Project-Euler
d54dce5461825c440a094310c3567b88c6f9a150
[ "MIT" ]
1
2020-03-11T08:06:25.000Z
2020-03-11T08:06:34.000Z
Problems/primetest.py
NielsonJ/Project-Euler
d54dce5461825c440a094310c3567b88c6f9a150
[ "MIT" ]
null
null
null
from libs.primelib import Prime import cProfile import time # Test variable's primeindex = 100000 primecheck = 1000000000000 if __name__ == '__main__': main()
21.666667
43
0.58042
d908ab4f59b016aac181ee4e124679993f2e35d0
1,579
py
Python
05_open_sensor_data/scripts/worker.py
Vourhey/robonomics_tutorials
3dd7ad5db9037f0c681b93ebe1fdfca46ef9761d
[ "BSD-3-Clause" ]
1
2020-02-10T17:27:46.000Z
2020-02-10T17:27:46.000Z
05_open_sensor_data/scripts/worker.py
Vourhey/robonomics_tutorials
3dd7ad5db9037f0c681b93ebe1fdfca46ef9761d
[ "BSD-3-Clause" ]
null
null
null
05_open_sensor_data/scripts/worker.py
Vourhey/robonomics_tutorials
3dd7ad5db9037f0c681b93ebe1fdfca46ef9761d
[ "BSD-3-Clause" ]
1
2020-04-30T06:48:26.000Z
2020-04-30T06:48:26.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # ROS import rospy from std_msgs.msg import String # Robonomics communication from robonomics_msgs.msg import Demand, Result from ipfs_common.msg import Multihash from ipfs_common.ipfs_rosbag import IpfsRosBag if __name__ == "__main__": WorkerNode().spin()
26.762712
111
0.624446
d90aaafe7f9c1c206b79ec748e75d1bc2e4fe249
14,009
py
Python
dubplate/tests/test_dubplate.py
GreenBuildingRegistry/dubplate
5bb11abfd17c557a7be63acfb1ede7834ea17b88
[ "MIT" ]
1
2018-04-20T08:33:40.000Z
2018-04-20T08:33:40.000Z
dubplate/tests/test_dubplate.py
GreenBuildingRegistry/dubplate
5bb11abfd17c557a7be63acfb1ede7834ea17b88
[ "MIT" ]
null
null
null
dubplate/tests/test_dubplate.py
GreenBuildingRegistry/dubplate
5bb11abfd17c557a7be63acfb1ede7834ea17b88
[ "MIT" ]
null
null
null
#!/usr/bin/env python # encoding: utf-8 """ copyright (c) 2016-2017 Earth Advantage. All rights reserved. ..codeauthor::Paul Munday <paul@paulmunday.net> Unit tests for dubplate. """ # Imports from Standard Library import datetime import json import sys import six import unittest # Imports from Third Party Modules fr...
31.551802
78
0.585766
d90b2d6635c836ba8cc887d96866eaefa439a024
1,582
py
Python
gui.py
quintenroets/gui
d53461771f847805be533d96dcceb4f10f9ec9d7
[ "MIT" ]
null
null
null
gui.py
quintenroets/gui
d53461771f847805be533d96dcceb4f10f9ec9d7
[ "MIT" ]
null
null
null
gui.py
quintenroets/gui
d53461771f847805be533d96dcceb4f10f9ec9d7
[ "MIT" ]
null
null
null
import subprocess import cli
29.296296
79
0.606195
d90d9c04b806e6d86ef86148bed6c3ca773c27ce
7,425
py
Python
Models.py
PatrickgHayes/gmm-dnn-for-interpretability
83f88a5df726fbf4eacc68a679232e24c0d7b0f3
[ "MIT" ]
null
null
null
Models.py
PatrickgHayes/gmm-dnn-for-interpretability
83f88a5df726fbf4eacc68a679232e24c0d7b0f3
[ "MIT" ]
null
null
null
Models.py
PatrickgHayes/gmm-dnn-for-interpretability
83f88a5df726fbf4eacc68a679232e24c0d7b0f3
[ "MIT" ]
null
null
null
# DISTRIBUTION STATEMENT A. Approved for public release: distribution unlimited. # # This material is based upon work supported by the Assistant Secretary of Defense for Research and # Engineering under Air Force Contract No. FA8721-05-C-0002 and/or FA8702-15-D-0001. Any opinions, # findings, conclusions or recommendat...
34.534884
100
0.654545
d90dd4f090fbbdcff512c7f61334e4e5095d8c05
354
py
Python
src/Discord/command/admin/shutdown.py
JulesWall/Discord-py-bot-base
6d89d74b5e6e0a603f171c791f96bb33ecbb41e8
[ "MIT" ]
null
null
null
src/Discord/command/admin/shutdown.py
JulesWall/Discord-py-bot-base
6d89d74b5e6e0a603f171c791f96bb33ecbb41e8
[ "MIT" ]
null
null
null
src/Discord/command/admin/shutdown.py
JulesWall/Discord-py-bot-base
6d89d74b5e6e0a603f171c791f96bb33ecbb41e8
[ "MIT" ]
null
null
null
import discord from config import *
29.5
73
0.612994
d90e7322e3f76de768fce6699f8d10d828183ad2
2,018
py
Python
utensor_cgen/api/utils.py
uTensor/utensor_cgen
eccd6859028d0b6a350dced25ea72ff02faaf9ad
[ "Apache-2.0" ]
49
2018-01-06T12:57:56.000Z
2021-09-03T09:48:32.000Z
utensor_cgen/api/utils.py
uTensor/utensor_cgen
eccd6859028d0b6a350dced25ea72ff02faaf9ad
[ "Apache-2.0" ]
101
2018-01-16T19:24:21.000Z
2021-11-10T19:39:33.000Z
utensor_cgen/api/utils.py
uTensor/utensor_cgen
eccd6859028d0b6a350dced25ea72ff02faaf9ad
[ "Apache-2.0" ]
32
2018-02-15T19:39:50.000Z
2020-11-26T22:32:05.000Z
import textwrap import click
33.633333
91
0.648167
d90ed500716a103d48309e19afcddb7e4867f4c9
1,396
py
Python
boards/emu/board.py
evezor/Edge_Boards
7d0e0858c235982e6f62ce97db6a86e1759241a0
[ "MIT" ]
2
2020-12-03T06:26:48.000Z
2022-01-30T22:00:22.000Z
boards/emu/board.py
evezor/Edge_Boards
7d0e0858c235982e6f62ce97db6a86e1759241a0
[ "MIT" ]
4
2020-08-23T21:21:30.000Z
2021-04-02T01:05:48.000Z
boards/emu/board.py
evezor/Edge_Boards
7d0e0858c235982e6f62ce97db6a86e1759241a0
[ "MIT" ]
2
2020-08-20T16:38:17.000Z
2020-08-28T02:07:31.000Z
# board.py # abstract class for zorg and edge import time from ocan import *
23.266667
64
0.553725
d90f3304a9f8b119e26ad00862e02c94d7978328
962
py
Python
bin/rtmg_complete.py
linsalrob/bioinformatics
da250531fdc3b0e5d6be0ac44d7874fa201f92b0
[ "MIT" ]
null
null
null
bin/rtmg_complete.py
linsalrob/bioinformatics
da250531fdc3b0e5d6be0ac44d7874fa201f92b0
[ "MIT" ]
null
null
null
bin/rtmg_complete.py
linsalrob/bioinformatics
da250531fdc3b0e5d6be0ac44d7874fa201f92b0
[ "MIT" ]
1
2020-03-07T07:15:51.000Z
2020-03-07T07:15:51.000Z
import rob import sys # 1404927386.fasta analyzed_sequences.txt annotations.txt # faf=None try: faf=sys.argv[1] except IndexError: sys.stderr.write("Please provide a fasta file\n") sys.exit(0) fa = rob.readFasta(faf) analyzed=[] with open('analyzed_sequences.txt', 'r') as asf: for line in asf...
20.468085
91
0.60395
d9102c896bee462a9b81d732607e83c597abdf5a
1,403
py
Python
examples/lstm/elmo_embeddings/torchtext/predict.py
yngtodd/scene
99355c05b1668586fa09ac70b39c258b39e73c72
[ "MIT" ]
2
2019-04-18T18:06:41.000Z
2021-03-09T02:05:34.000Z
examples/lstm/elmo_embeddings/torchtext/predict.py
yngtodd/scene
99355c05b1668586fa09ac70b39c258b39e73c72
[ "MIT" ]
null
null
null
examples/lstm/elmo_embeddings/torchtext/predict.py
yngtodd/scene
99355c05b1668586fa09ac70b39c258b39e73c72
[ "MIT" ]
null
null
null
import os import tqdm import torch import numpy as np from parser import parse_args from scene.data import DataSet from torchtext.data import Iterator from scene.data.loaders import BatchWrapper from scene.models import BiLSTM if __name__=='__main__': main()
24.189655
66
0.685674
d9130637f37aa67dccc5076d10b6043a6f6dd312
9,926
py
Python
test/test_random_tester.py
shanefeng123/agilkia
0ac4e9dd29f9ab0026037f71d7f28d017e54949b
[ "MIT" ]
3
2020-02-11T14:22:51.000Z
2020-11-26T19:09:03.000Z
test/test_random_tester.py
shanefeng123/agilkia
0ac4e9dd29f9ab0026037f71d7f28d017e54949b
[ "MIT" ]
1
2019-11-22T02:06:47.000Z
2021-05-10T07:22:26.000Z
test/test_random_tester.py
shanefeng123/agilkia
0ac4e9dd29f9ab0026037f71d7f28d017e54949b
[ "MIT" ]
4
2019-12-12T10:44:07.000Z
2022-03-10T14:09:27.000Z
# -*- coding: utf-8 -*- """ Unit tests for the RandomTester class. @author: m.utting@uq.edu.au """ import unittest import random from pathlib import Path import sklearn.utils.estimator_checks from typing import Tuple, List, Set, Dict, Optional, Any import agilkia THIS_DIR = Path(__file__).parent WSDL_EG = "http://...
42.969697
107
0.590872
d914350d04727b2996e71856ecd3f13d1e827077
2,576
py
Python
cratertools/utils/salamuniccar.py
utplanets/cratertools
3cd303f5e598d9945e186924b3e25af1457d3749
[ "MIT" ]
null
null
null
cratertools/utils/salamuniccar.py
utplanets/cratertools
3cd303f5e598d9945e186924b3e25af1457d3749
[ "MIT" ]
null
null
null
cratertools/utils/salamuniccar.py
utplanets/cratertools
3cd303f5e598d9945e186924b3e25af1457d3749
[ "MIT" ]
null
null
null
# extract the Salamunnicar data from the XLS file import pandas as pd import pkg_resources import logging import os def extract_salamuniccar(filename, tables=None, output_prefix=None, output_filename=None): """Extract the lat,long, diameter from the Salamuniccar ca...
36.8
84
0.610637
d916bdfd815b7553815cbe2979b5ff3c361b9fdb
42
py
Python
ARLO/environment/__init__.py
arlo-lib/ARLO
159669884044686e36e07bd1cc0948884ed7cc8d
[ "MIT" ]
null
null
null
ARLO/environment/__init__.py
arlo-lib/ARLO
159669884044686e36e07bd1cc0948884ed7cc8d
[ "MIT" ]
null
null
null
ARLO/environment/__init__.py
arlo-lib/ARLO
159669884044686e36e07bd1cc0948884ed7cc8d
[ "MIT" ]
null
null
null
from ARLO.environment.environment import *
42
42
0.857143
d9175c1d53f0050bb3c406ad6da397071f06e203
3,558
py
Python
orchestration/hca_orchestration/solids/load_hca/poll_ingest_job.py
DataBiosphere/hca-ingest
1f5e8ad7450ff8caff3bb8c8d6b8f7acd8a37f68
[ "BSD-3-Clause" ]
5
2020-05-07T14:18:53.000Z
2021-03-31T21:30:37.000Z
orchestration/hca_orchestration/solids/load_hca/poll_ingest_job.py
DataBiosphere/hca-ingest
1f5e8ad7450ff8caff3bb8c8d6b8f7acd8a37f68
[ "BSD-3-Clause" ]
232
2020-05-28T16:47:22.000Z
2022-03-08T21:08:42.000Z
orchestration/hca_orchestration/solids/load_hca/poll_ingest_job.py
DataBiosphere/hca-ingest
1f5e8ad7450ff8caff3bb8c8d6b8f7acd8a37f68
[ "BSD-3-Clause" ]
1
2020-08-19T16:33:54.000Z
2020-08-19T16:33:54.000Z
from typing import Optional from dagster import solid, Int, Failure, Nothing, configured, String, DagsterLogManager from dagster.core.execution.context.compute import AbstractComputeExecutionContext from dagster_utils.typing import DagsterConfigDict from data_repo_client import JobModel, ApiException, RepositoryApi f...
31.767857
115
0.697021
d918edc1790e02527055eb43540fcf3985679871
10,533
py
Python
print_chat.py
IVIGOR13/print_chat
629bc9419f13d05e13e0224000bf8bf12058e605
[ "MIT" ]
1
2020-04-07T07:44:37.000Z
2020-04-07T07:44:37.000Z
print_chat.py
IVIGOR13/print_chat
629bc9419f13d05e13e0224000bf8bf12058e605
[ "MIT" ]
null
null
null
print_chat.py
IVIGOR13/print_chat
629bc9419f13d05e13e0224000bf8bf12058e605
[ "MIT" ]
null
null
null
# # Author: Igor Ivanov # 2019 # import time import os from termcolor import colored from datetime import datetime import colorama colorama.init() """ Small print tool for implementing chat in the terminal """
28.390836
97
0.475648
d91903929bd8b81abd126d6ed63db39059af5f91
321
py
Python
cumulusci/robotframework/tests/CustomObjectTestPage.py
SalesforceFoundation/CumulusCI
f7811a881939ef86c10ccb9b2d7ec8d7af73fd1c
[ "BSD-3-Clause" ]
109
2015-01-20T14:28:48.000Z
2018-08-31T12:12:39.000Z
cumulusci/robotframework/tests/CustomObjectTestPage.py
SalesforceFoundation/CumulusCI
f7811a881939ef86c10ccb9b2d7ec8d7af73fd1c
[ "BSD-3-Clause" ]
365
2015-01-07T19:54:25.000Z
2018-09-11T15:10:02.000Z
cumulusci/robotframework/tests/CustomObjectTestPage.py
SalesforceFoundation/CumulusCI
f7811a881939ef86c10ccb9b2d7ec8d7af73fd1c
[ "BSD-3-Clause" ]
125
2015-01-17T16:05:39.000Z
2018-09-06T19:05:00.000Z
""" This class is used by test_pageobjects """ from cumulusci.robotframework.pageobjects import ListingPage, pageobject # The point of this class is to test out using an alias
29.181818
72
0.794393
d919543d1b1062c7801bafa6f3961d97bf6f7fb6
850
py
Python
src/settings.py
doksketch/happy-dating
680c63f38fe039b6567f5fce94c3d0fa3b968019
[ "MIT" ]
null
null
null
src/settings.py
doksketch/happy-dating
680c63f38fe039b6567f5fce94c3d0fa3b968019
[ "MIT" ]
null
null
null
src/settings.py
doksketch/happy-dating
680c63f38fe039b6567f5fce94c3d0fa3b968019
[ "MIT" ]
null
null
null
logreg_params = dict(multi_class='ovr', class_weight=None, random_state=43, max_iter=300, n_jobs=-1, penalty='l2', C=0.5) rnn_params = dict( # df="../coleridgeinitiative-show-us-the-...
29.310345
68
0.615294
d91a437d3329267d3f78bc766ee6ddef015b51b1
1,741
py
Python
examples/zio_console_example.py
miiohio/ziopy
c216bfb834f08bce0419a906b9bf174697d06023
[ "MIT" ]
28
2021-03-03T16:29:36.000Z
2022-03-31T05:05:59.000Z
examples/zio_console_example.py
miiohio/ziopy
c216bfb834f08bce0419a906b9bf174697d06023
[ "MIT" ]
1
2019-10-08T20:09:47.000Z
2019-10-08T20:09:47.000Z
examples/zio_console_example.py
harveywi/ziopy
c216bfb834f08bce0419a906b9bf174697d06023
[ "MIT" ]
1
2022-01-28T15:37:43.000Z
2022-01-28T15:37:43.000Z
from typing import NoReturn, Union import ziopy.services.console as console import ziopy.services.system as system from ziopy.environments import ConsoleSystemEnvironment from ziopy.services.console import Console, LiveConsole from ziopy.zio import ZIO, ZIOMonad, monadic, unsafe_run, Environment p = program().provi...
27.203125
93
0.658817
d91ba473ca0e37b17defe052cdc5b0b0991183c2
1,872
py
Python
examples/Classify/MNistLoader.py
parrisma/TicTacToe-DeepLearning
4fefb1ef9d172eb19709f0f2a681307537769f58
[ "MIT" ]
1
2021-08-17T12:09:48.000Z
2021-08-17T12:09:48.000Z
examples/Classify/MNistLoader.py
parrisma/TicTacToe-DeepLearning
4fefb1ef9d172eb19709f0f2a681307537769f58
[ "MIT" ]
null
null
null
examples/Classify/MNistLoader.py
parrisma/TicTacToe-DeepLearning
4fefb1ef9d172eb19709f0f2a681307537769f58
[ "MIT" ]
null
null
null
import os import struct import unittest import numpy as np # # based on https://gist.github.com/akesling/5358964 # Which contains comment. # > Loosely inspired by http://abel.ee.ucla.edu/cvxopt/_downloads/mnist.py # > which is GPL licensed. # # # Unit Tests. # # # Execute the UnitTests. # if __name__ == ...
25.643836
83
0.587073
d91cabe506a537f69662d383acee8ad674a5d479
45,542
py
Python
dlgo/zobrist.py
Woontopia/goBot
5f343a7173f9fc65cc86b65f7addf8c423cf0530
[ "MIT" ]
null
null
null
dlgo/zobrist.py
Woontopia/goBot
5f343a7173f9fc65cc86b65f7addf8c423cf0530
[ "MIT" ]
null
null
null
dlgo/zobrist.py
Woontopia/goBot
5f343a7173f9fc65cc86b65f7addf8c423cf0530
[ "MIT" ]
null
null
null
from .gotypes import Player, Point __all__ = ['HASH_CODE', 'EMPTY_BOARD'] HASH_CODE = { (Point(row=1, col=1), Player.black): 5769035980899136028, (Point(row=1, col=1), Player.white): 4195353792250980257, (Point(row=1, col=2), Player.black): 2939556709560817954, (Point(row=1, col=2), Player.white): 770...
62.386301
63
0.698081
d91e5b227907a31856a0adc939b8a34e7e1a5f00
3,321
py
Python
diagnostics/plots/dipole_vids.py
wheelerMT/spin-1_BEC
e8ea34699b4001847c6b4c7451c11be241ce598f
[ "MIT" ]
null
null
null
diagnostics/plots/dipole_vids.py
wheelerMT/spin-1_BEC
e8ea34699b4001847c6b4c7451c11be241ce598f
[ "MIT" ]
null
null
null
diagnostics/plots/dipole_vids.py
wheelerMT/spin-1_BEC
e8ea34699b4001847c6b4c7451c11be241ce598f
[ "MIT" ]
null
null
null
import h5py import numpy as np import matplotlib.pyplot as plt import matplotlib.animation as animation # Load in data: filename = input('Enter data filename: ') data_file = h5py.File('../../data/{}.hdf5'.format(filename), 'r') psi_plus = data_file['wavefunction/psi_plus'] psi_0 = data_file['wavefunction/psi_0'] psi_...
39.070588
118
0.620897
d9204110ecad2e306b5e55fed3bce1fe83582fab
618
py
Python
sources/boltun/ext/yaml/processor.py
meiblorn/boltun
d141f555b4f0ed604d8d71883c0bc8811e74370e
[ "MIT" ]
1
2019-12-06T04:19:37.000Z
2019-12-06T04:19:37.000Z
sources/boltun/ext/yaml/processor.py
meiblorn/boltun
d141f555b4f0ed604d8d71883c0bc8811e74370e
[ "MIT" ]
null
null
null
sources/boltun/ext/yaml/processor.py
meiblorn/boltun
d141f555b4f0ed604d8d71883c0bc8811e74370e
[ "MIT" ]
null
null
null
import attr import yaml from boltun.engine import Engine
22.888889
58
0.653722
d924124b049efba8b327f8ba79867faeb73cd170
681
py
Python
cvk_2015/apps.py
dchaplinsky/ragoogle
dccb3d29334c3220ea12c46c725c443c8bd725c0
[ "MIT" ]
3
2018-06-10T21:20:56.000Z
2021-04-04T11:21:06.000Z
cvk_2015/apps.py
dchaplinsky/ragoogle
dccb3d29334c3220ea12c46c725c443c8bd725c0
[ "MIT" ]
7
2018-08-14T20:54:49.000Z
2020-06-05T18:17:30.000Z
cvk_2015/apps.py
dchaplinsky/ragoogle
dccb3d29334c3220ea12c46c725c443c8bd725c0
[ "MIT" ]
3
2018-06-27T12:53:13.000Z
2020-09-25T19:41:46.000Z
from abstract.apps import AbstractConfig from .loader import CVK2015Loader from .elastic_models import ElasticCVK2015Model, cvk_2015_idx
27.24
61
0.728341
d924de18914aff5fa9f08bc65617db228d203fc4
2,296
py
Python
gen_sample_by_PIL.py
chldong/cnn_captcha
3c528ac30b6278bc55f04ac0dd565985ef4d5f52
[ "Apache-2.0" ]
null
null
null
gen_sample_by_PIL.py
chldong/cnn_captcha
3c528ac30b6278bc55f04ac0dd565985ef4d5f52
[ "Apache-2.0" ]
null
null
null
gen_sample_by_PIL.py
chldong/cnn_captcha
3c528ac30b6278bc55f04ac0dd565985ef4d5f52
[ "Apache-2.0" ]
null
null
null
# -*- coding: UTF-8 -*- """ PIL libpip install PIL """ from PIL import Image,ImageFont,ImageDraw,ImageFilter import os import random import time import json if __name__ == '__main__': main()
30.210526
104
0.642857
d92522c94e17430f94254dced6800a868fcfd052
30,022
py
Python
transfer/trainers.py
0e4e6d01/non-parallel-text-style-transfer-using-self-attn-discriminator
c24a47cc96033cf960ed272810b9b7226f25e899
[ "Apache-2.0" ]
null
null
null
transfer/trainers.py
0e4e6d01/non-parallel-text-style-transfer-using-self-attn-discriminator
c24a47cc96033cf960ed272810b9b7226f25e899
[ "Apache-2.0" ]
null
null
null
transfer/trainers.py
0e4e6d01/non-parallel-text-style-transfer-using-self-attn-discriminator
c24a47cc96033cf960ed272810b9b7226f25e899
[ "Apache-2.0" ]
null
null
null
import os import time import csv import pickle import numpy as np import torch import torch.nn as nn import torch.nn.functional as F from torch.utils.data.dataloader import DataLoader from torch.nn.utils import clip_grad_norm_ as clip_grad_norm from sklearn.metrics import accuracy_score import matplotlib.pyplot as plt...
42.047619
112
0.558824
d925d3037892fd1d955e34998895dbcfac60e539
561
py
Python
module2-sql-for-analysis/elephant_queries.py
techthumb1/DS-Unit-3-Sprint-2-SQL-and-Databases
a9d961ded99bb11e444151b6f450cb7e5b34ed83
[ "MIT" ]
null
null
null
module2-sql-for-analysis/elephant_queries.py
techthumb1/DS-Unit-3-Sprint-2-SQL-and-Databases
a9d961ded99bb11e444151b6f450cb7e5b34ed83
[ "MIT" ]
null
null
null
module2-sql-for-analysis/elephant_queries.py
techthumb1/DS-Unit-3-Sprint-2-SQL-and-Databases
a9d961ded99bb11e444151b6f450cb7e5b34ed83
[ "MIT" ]
null
null
null
import psycopg2 # import sqlite3 DB_NAME = "ekasuicm" DB_USER = "ekasuicm" DB_PASSWORD = "5xL04dTyJuqjmPNeDPWsHjZsCnMmqpbM" DB_HOST = "ruby.db.elephantsql.com" connection = psycopg2.connect(dbname=DB_NAME, user=DB_USER, password=DB_PASSWORD, host=DB_HOST) print("CONNECTION", ...
23.375
66
0.680927
d925f20fe6fe0eccd5e8c08b7081757ad19c44be
3,414
py
Python
privatefsbot.py
l0k9j8/fstgbot
6b20d28466ecc97e09f0a3919d43a3c4d1a82357
[ "MIT" ]
null
null
null
privatefsbot.py
l0k9j8/fstgbot
6b20d28466ecc97e09f0a3919d43a3c4d1a82357
[ "MIT" ]
null
null
null
privatefsbot.py
l0k9j8/fstgbot
6b20d28466ecc97e09f0a3919d43a3c4d1a82357
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import logging logging.basicConfig(level=logging.DEBUG, format='%(asctime)s - %(name)s - %(levelname)s - %(message)s') logger = logging.getLogger(__name__) from telegram import Updater from commands import history, cat, cd, get, ls, pwd, save from sett...
34.14
102
0.668131
d9265bc8d9e395e0e1f4b2ccd82a397094568300
324
py
Python
flask-portal/app/referral_api.py
TUMTICS-Dev/Talent-Pool
c51376453184e7a83d684ab5f9467535d49cc784
[ "MIT" ]
null
null
null
flask-portal/app/referral_api.py
TUMTICS-Dev/Talent-Pool
c51376453184e7a83d684ab5f9467535d49cc784
[ "MIT" ]
null
null
null
flask-portal/app/referral_api.py
TUMTICS-Dev/Talent-Pool
c51376453184e7a83d684ab5f9467535d49cc784
[ "MIT" ]
null
null
null
from abc import ABC
13.5
26
0.481481
d92747989c01c959e00977a548eb19a60491a46f
502
py
Python
sms_voting/migrations/0012_auto_20211110_0517.py
Fedor-Lyanguzov/Voting
98f8fd958624fa9ba3835836c525fbb4abb6b5e5
[ "MIT" ]
null
null
null
sms_voting/migrations/0012_auto_20211110_0517.py
Fedor-Lyanguzov/Voting
98f8fd958624fa9ba3835836c525fbb4abb6b5e5
[ "MIT" ]
1
2021-12-04T11:43:25.000Z
2021-12-04T11:43:25.000Z
sms_voting/migrations/0012_auto_20211110_0517.py
Fedor-Lyanguzov/Voting
98f8fd958624fa9ba3835836c525fbb4abb6b5e5
[ "MIT" ]
null
null
null
# Generated by Django 3.2.8 on 2021-11-10 05:17 from django.db import migrations, models
21.826087
50
0.575697
d9299b500db19594cc491478d54c215f25629150
670
py
Python
app/platform.py
edwarts/igenweb_supplier
90e03b7acdedf65ae6b338d39b067bd4d1c0eaad
[ "MIT" ]
null
null
null
app/platform.py
edwarts/igenweb_supplier
90e03b7acdedf65ae6b338d39b067bd4d1c0eaad
[ "MIT" ]
null
null
null
app/platform.py
edwarts/igenweb_supplier
90e03b7acdedf65ae6b338d39b067bd4d1c0eaad
[ "MIT" ]
null
null
null
import os from config import config
31.904762
65
0.658209
d92ba4c735d6a176f4e2696a38a3cab4031d7e30
5,551
py
Python
csvfit/fitpt.py
hanKo91/csvfit
0b07929235f0531ea3b21df2d550390f680edfcf
[ "MIT" ]
null
null
null
csvfit/fitpt.py
hanKo91/csvfit
0b07929235f0531ea3b21df2d550390f680edfcf
[ "MIT" ]
null
null
null
csvfit/fitpt.py
hanKo91/csvfit
0b07929235f0531ea3b21df2d550390f680edfcf
[ "MIT" ]
null
null
null
from click.exceptions import FileError from scipy.optimize import curve_fit import matplotlib.pyplot as plt from . import util import numpy as np import click import sys import csv import os def pt1(t, K, T): """ time-domain solution/formula for a first-order/pt1 system Args: t (float): time K (float): ...
27.755
110
0.611421
d92be7a0a2a9418b2f005b72010bbabb90745df1
2,632
py
Python
commands/Premium/premium.py
adl212/Lacan-NTSport-Source-Code
b5b01cbb5cc97b5cbd3a6ebcf90c2e6d82322968
[ "MIT" ]
1
2021-04-25T18:31:48.000Z
2021-04-25T18:31:48.000Z
commands/Premium/premium.py
adl212/Lacan-NTSport-Source-Code
b5b01cbb5cc97b5cbd3a6ebcf90c2e6d82322968
[ "MIT" ]
6
2021-03-26T21:18:57.000Z
2021-05-03T18:04:37.000Z
commands/Premium/premium.py
adl212/Lacan-NTSport-Source-Code
b5b01cbb5cc97b5cbd3a6ebcf90c2e6d82322968
[ "MIT" ]
4
2021-03-06T16:48:36.000Z
2021-05-23T00:54:09.000Z
'''What is premium?''' from discord.ext import commands from packages.utils import Embed, ImproperType
101.230769
1,054
0.720365
d92e5de5ecf3982b6bb7d90e259217262a07f9b5
4,435
py
Python
wireless_emulator/cli.py
Melacon/OpenYuma_WE
f43a25cf99444c29d9fbadfe336182d60e1bc3f4
[ "Apache-2.0" ]
1
2017-02-24T09:30:21.000Z
2017-02-24T09:30:21.000Z
wireless_emulator/cli.py
Melacon/OpenYuma_WE
f43a25cf99444c29d9fbadfe336182d60e1bc3f4
[ "Apache-2.0" ]
null
null
null
wireless_emulator/cli.py
Melacon/OpenYuma_WE
f43a25cf99444c29d9fbadfe336182d60e1bc3f4
[ "Apache-2.0" ]
2
2018-06-21T13:23:08.000Z
2021-04-01T06:35:16.000Z
from cmd import Cmd import sys from select import poll, POLLIN import string from subprocess import call from wireless_emulator import * from wireless_emulator.clean import cleanup
39.247788
112
0.530778
d92fdd9690a161af17e354836da77242710c2f29
1,036
py
Python
booking_app/models.py
alikhalilica/cilinic-temp
5822879cda27bc121adbd2a8da947c881d88fbd3
[ "MIT" ]
null
null
null
booking_app/models.py
alikhalilica/cilinic-temp
5822879cda27bc121adbd2a8da947c881d88fbd3
[ "MIT" ]
null
null
null
booking_app/models.py
alikhalilica/cilinic-temp
5822879cda27bc121adbd2a8da947c881d88fbd3
[ "MIT" ]
null
null
null
from django.db import models # Create your models here. #helth_department = ((0,"daily task"),(1,"work jobs"),(2,"house needs"))
33.419355
93
0.725869
d9300939b02465cc95f8d69b6ff94ca1db4e605a
1,647
py
Python
vid/migrations/0003_auto_20211222_0019.py
timmyoder/covid_tracker
88598043b595f3f63a28e43a732d2f854d4aca9d
[ "MIT" ]
null
null
null
vid/migrations/0003_auto_20211222_0019.py
timmyoder/covid_tracker
88598043b595f3f63a28e43a732d2f854d4aca9d
[ "MIT" ]
null
null
null
vid/migrations/0003_auto_20211222_0019.py
timmyoder/covid_tracker
88598043b595f3f63a28e43a732d2f854d4aca9d
[ "MIT" ]
null
null
null
# Generated by Django 3.0.3 on 2021-12-22 00:19 from django.db import migrations, models
30.5
114
0.518519
d9305b2cad920233b9a78c2c2fa32100230f3dc5
101
py
Python
BOJ/16000~16999/16500~16599/16515.py
shinkeonkim/today-ps
f3e5e38c5215f19579bb0422f303a9c18c626afa
[ "Apache-2.0" ]
2
2020-01-29T06:54:41.000Z
2021-11-07T13:23:27.000Z
BOJ/16000~16999/16500~16599/16515.py
shinkeonkim/Today_PS
bb0cda0ee1b9c57e1cfa38355e29d0f1c6167a44
[ "Apache-2.0" ]
null
null
null
BOJ/16000~16999/16500~16599/16515.py
shinkeonkim/Today_PS
bb0cda0ee1b9c57e1cfa38355e29d0f1c6167a44
[ "Apache-2.0" ]
null
null
null
import math s = 0.0 k = 1 n = int(input()) for i in range(n+1): k*=max(1,i) s += 1/k print(s)
12.625
20
0.514851
d930bd7e55bef5a0a588be2aeede17fbaa44f754
745
py
Python
exastolog/test/test_toy3.py
sysbio-curie/pyExaStoLog
a8474823c1b5ef1642339b022675e0d60e340073
[ "BSD-3-Clause" ]
2
2020-11-17T15:00:01.000Z
2021-07-02T07:14:15.000Z
exastolog/test/test_toy3.py
sysbio-curie/pyExaStoLog
a8474823c1b5ef1642339b022675e0d60e340073
[ "BSD-3-Clause" ]
null
null
null
exastolog/test/test_toy3.py
sysbio-curie/pyExaStoLog
a8474823c1b5ef1642339b022675e0d60e340073
[ "BSD-3-Clause" ]
1
2020-07-07T13:36:44.000Z
2020-07-07T13:36:44.000Z
from unittest import TestCase from ..Model import Model from ..Simulation import Simulation from os.path import dirname, join import numpy as np import math
33.863636
87
0.632215
d93384ace79fad1a67f4aac86155075e4bc1666a
1,179
py
Python
code/at_offer/dynamic_programming/coding_interview47.py
zhangrong1722/interview
187a485de0774561eb843d8ee640236adda97b90
[ "Apache-2.0" ]
2
2020-01-05T07:46:20.000Z
2020-04-17T02:58:13.000Z
code/at_offer/dynamic_programming/coding_interview47.py
zhangrong1722/interview
187a485de0774561eb843d8ee640236adda97b90
[ "Apache-2.0" ]
1
2020-01-05T07:50:26.000Z
2020-04-28T03:50:08.000Z
code/at_offer/dynamic_programming/coding_interview47.py
zhangrong1722/interview
187a485de0774561eb843d8ee640236adda97b90
[ "Apache-2.0" ]
1
2020-04-18T03:58:26.000Z
2020-04-18T03:58:26.000Z
""" mxn 0 dp[i][j]=max(dp[i-1][j],dp[i][j-1])+arr[i][j] """ s = Solution() print(s.GetGiftMaxValue([[1, 10, 3, 8], [12, 2, 9, 6], [5, 7, 4, 11], [3, 7, 16, 5]])) print(s.GetGiftMaxValue(None)) print(s.GetGiftMaxValue([[1, 4, 2]])) print(s.GetGiftMaxValue([[1], [4], [2]]))
33.685714
89
0.47922
d933e1e2f9d405d172ef31e50f4cff727e9bd7de
218
py
Python
doubanRequest.py
speedsnail99/PythonDouban
c4a556311632c547162589220433ec59a962a2d6
[ "MIT" ]
null
null
null
doubanRequest.py
speedsnail99/PythonDouban
c4a556311632c547162589220433ec59a962a2d6
[ "MIT" ]
null
null
null
doubanRequest.py
speedsnail99/PythonDouban
c4a556311632c547162589220433ec59a962a2d6
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # @File : doubanRequest.py # @Author: G # @Date : 2018/8/5 import requests url = 'https://movie.douban.com' doubanText = requests.get(url).text print(doubanText)
12.111111
35
0.642202
d934ab92936dea1622b31e73b9513677a43d6b45
31,876
py
Python
tests/shop/test_shop_views.py
Torniojaws/vortech-backend
f775a97eeae089fa720088d86fe92d40bc5d65bc
[ "MIT" ]
null
null
null
tests/shop/test_shop_views.py
Torniojaws/vortech-backend
f775a97eeae089fa720088d86fe92d40bc5d65bc
[ "MIT" ]
93
2017-09-01T22:24:10.000Z
2021-12-22T14:07:06.000Z
tests/shop/test_shop_views.py
Torniojaws/vortech-backend
f775a97eeae089fa720088d86fe92d40bc5d65bc
[ "MIT" ]
null
null
null
import json import unittest from flask_caching import Cache from app import app, db from apps.shop.models import ( ShopItems, ShopCategories, ShopItemsCategoriesMapping, ShopItemLogos, ShopItemsURLMapping ) from apps.users.models import Users, UsersAccessTokens, UsersAccessLevels, Use...
39.159705
99
0.513019
d935132553f2baab50f6ba2b6d58b4003ca7df5b
3,728
py
Python
pyinsar/data_import/uavsar.py
MITeaps/pyinsar
4d22e3ef90ef842d6b390074a8b5deedc7658a2b
[ "MIT" ]
8
2019-03-15T19:51:27.000Z
2022-02-16T07:27:36.000Z
pyinsar/data_import/uavsar.py
MITeaps/pyinsar
4d22e3ef90ef842d6b390074a8b5deedc7658a2b
[ "MIT" ]
1
2022-02-08T03:48:56.000Z
2022-02-09T01:33:27.000Z
pyinsar/data_import/uavsar.py
MITeaps/pyinsar
4d22e3ef90ef842d6b390074a8b5deedc7658a2b
[ "MIT" ]
2
2021-01-12T05:32:21.000Z
2021-01-13T08:35:26.000Z
# The MIT License (MIT) # Copyright (c) 2017 Massachusetts Institute of Technology # # Author: Cody Rude # This software has been created in projects supported by the US National # Science Foundation and NASA (PI: Pankratius) # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this sof...
36.54902
89
0.635193
d936d9d6566232424e349431594f08f1e023591e
1,964
py
Python
api/utils/responses.py
cakedan/files.gg
6d8fc06376a69809c0ae0a56ea2a842d6caddb98
[ "MIT" ]
8
2018-05-03T16:28:30.000Z
2020-02-02T12:22:36.000Z
api/utils/responses.py
cakedan/files.gg
6d8fc06376a69809c0ae0a56ea2a842d6caddb98
[ "MIT" ]
null
null
null
api/utils/responses.py
cakedan/files.gg
6d8fc06376a69809c0ae0a56ea2a842d6caddb98
[ "MIT" ]
1
2019-03-20T23:39:25.000Z
2019-03-20T23:39:25.000Z
import json from urllib.parse import urlencode from flask import Response from werkzeug.http import HTTP_STATUS_CODES
28.882353
104
0.59165
d937931645a0b4ee10a45ea07357635f954a0273
16,675
py
Python
example/samgraph/multi_gpu/train_gcn.py
SJTU-IPADS/fgnn-artifacts
c96e7ec8204d767152958dc63a764466e90424fd
[ "Apache-2.0" ]
23
2022-01-25T13:28:51.000Z
2022-03-23T07:05:47.000Z
example/samgraph/multi_gpu/train_gcn.py
SJTU-IPADS/gnnlab
5c73564e4a9bd5deeff7eed0b923c115ccba34d7
[ "Apache-2.0" ]
null
null
null
example/samgraph/multi_gpu/train_gcn.py
SJTU-IPADS/gnnlab
5c73564e4a9bd5deeff7eed0b923c115ccba34d7
[ "Apache-2.0" ]
1
2022-02-28T18:48:56.000Z
2022-02-28T18:48:56.000Z
import argparse import time import torch import torch.nn as nn import torch.nn.functional as F import torch.optim as optim import numpy as np from dgl.nn.pytorch import GraphConv import dgl.multiprocessing as mp from torch.nn.parallel import DistributedDataParallel import os import sys import samgraph.torch as sam impo...
36.891593
138
0.64054
d93b4251771b7cf7a6b382690dc7c24a823f2b1d
1,445
py
Python
Python-Arduino/Python-setter.py
TSG405/IOT
dc6f965baf3d0cc0a79e88bc9c3fd8d4ece3fa51
[ "BSD-3-Clause" ]
2
2020-10-29T07:28:26.000Z
2021-04-25T05:33:54.000Z
Python-Arduino/Python-setter.py
TSG405/IOT
dc6f965baf3d0cc0a79e88bc9c3fd8d4ece3fa51
[ "BSD-3-Clause" ]
null
null
null
Python-Arduino/Python-setter.py
TSG405/IOT
dc6f965baf3d0cc0a79e88bc9c3fd8d4ece3fa51
[ "BSD-3-Clause" ]
null
null
null
import serial # Using SERIAL module to connect to comm ports via ARDUINO Arduino_Serial = serial.Serial('/dev/ttyACM0',9600) # Connecting via ttyACM0 port (LINUX) print (Arduino_Serial.readline()) # Status print ("Please enter --------> 1 <------- to TURN...
40.138889
131
0.467128
d93c3126662cf31eb885a0986f780983d532d782
3,453
py
Python
src/AIC2018_iamai/ReID/ReID_CNN/logger.py
gordonjun2/CenterTrack
358f94c36ef03b8ae7d15d8a48fbf70fff937e79
[ "MIT" ]
2
2020-04-13T14:06:23.000Z
2020-06-10T08:41:28.000Z
src/AIC2018_iamai/ReID/ReID_CNN/logger.py
gordonjun2/CenterTrack
358f94c36ef03b8ae7d15d8a48fbf70fff937e79
[ "MIT" ]
null
null
null
src/AIC2018_iamai/ReID/ReID_CNN/logger.py
gordonjun2/CenterTrack
358f94c36ef03b8ae7d15d8a48fbf70fff937e79
[ "MIT" ]
null
null
null
import os import pathlib import numpy as np import matplotlib matplotlib.use('Agg') import matplotlib.pyplot as plt import matplotlib.cm as cm import pandas as pd from collections import OrderedDict
35.96875
94
0.56936
d93cdda3893693209b80cab60a21164807e0bd8b
1,493
py
Python
venv/lib/python2.7/site-packages/pychart/afm/ZapfDingbats.py
Christian-Castro/castro_odoo8
8247fdb20aa39e043b6fa0c4d0af509462ab3e00
[ "Unlicense" ]
1
2019-12-19T01:53:13.000Z
2019-12-19T01:53:13.000Z
venv/lib/python2.7/site-packages/pychart/afm/ZapfDingbats.py
Christian-Castro/castro_odoo8
8247fdb20aa39e043b6fa0c4d0af509462ab3e00
[ "Unlicense" ]
null
null
null
venv/lib/python2.7/site-packages/pychart/afm/ZapfDingbats.py
Christian-Castro/castro_odoo8
8247fdb20aa39e043b6fa0c4d0af509462ab3e00
[ "Unlicense" ]
null
null
null
# AFM font ZapfDingbats (path: /usr/share/fonts/afms/adobe/pzdr.afm). # Derived from Ghostscript distribution. # Go to www.cs.wisc.edu/~ghost to get the Ghostcript source code. import dir dir.afm["ZapfDingbats"] = (500, 500, 500, 500, 500, 500, 500, 500, 500, 500, 500, 500, 500, 500, 500, 500, 500, 500, 500, 500, 500, ...
248.833333
1,304
0.621567
d93ce3e047e67035b0fc470f80c3e9659efed6a2
43,185
py
Python
data/scripts/bsRunaround.py
starpirate2203/BROODY-S-LAST-SCRIPT
7b5a9eab02c782ebf39b0f3edf69536fae8289c6
[ "MIT" ]
2
2021-09-07T16:04:30.000Z
2021-09-16T03:30:16.000Z
data/scripts/bsRunaround.py
starpirate2203/BROODY-S-LAST-SCRIPT
7b5a9eab02c782ebf39b0f3edf69536fae8289c6
[ "MIT" ]
null
null
null
data/scripts/bsRunaround.py
starpirate2203/BROODY-S-LAST-SCRIPT
7b5a9eab02c782ebf39b0f3edf69536fae8289c6
[ "MIT" ]
1
2021-09-21T12:42:28.000Z
2021-09-21T12:42:28.000Z
import bs import random import math def _dropPowerups(self, standardPoints=False, forceFirst=None): """ Generic powerup drop """ # if its been a minute since our last wave finished emerging, stop # giving out land-mine powerups. (prevents players from waiting # around for them on ...
40.894886
80
0.481788
d93e009b16961979c7713b17f8dc66060f79dd3b
710
py
Python
python/run.py
hguerrero/skupper-example-patient-portal
326afb5c85fedf5e215e0e4f53ba558edba12c8e
[ "Apache-2.0" ]
10
2020-01-22T07:17:46.000Z
2021-11-15T11:12:53.000Z
python/run.py
hguerrero/skupper-example-patient-portal
326afb5c85fedf5e215e0e4f53ba558edba12c8e
[ "Apache-2.0" ]
3
2019-09-26T14:03:29.000Z
2020-04-24T15:44:02.000Z
python/run.py
hguerrero/skupper-example-patient-portal
326afb5c85fedf5e215e0e4f53ba558edba12c8e
[ "Apache-2.0" ]
9
2019-10-08T19:46:34.000Z
2022-03-17T12:13:01.000Z
#!/usr/bin/python3 from plano import * ENV["BACKEND_SERVICE_HOST"] = "localhost" ENV["BACKEND_SERVICE_PORT"] = backend_port = str(get_random_port()) ENV["FRONTEND_SERVICE_PORT"] = frontend_port = str(get_random_port()) backend_url = f"http://localhost:{backend_port}/api/hello" frontend_url = f"http://localhost:{fron...
28.4
69
0.695775
d93e597ab6d0aecf326345fbe988189bcd506af5
14,492
py
Python
cfractions/__init__.py
lycantropos/cfractions
22ede26a22786f5480174e2306414ff38f7c7b77
[ "MIT" ]
3
2022-01-18T21:17:17.000Z
2022-01-23T21:49:52.000Z
cfractions/__init__.py
lycantropos/cfractions
22ede26a22786f5480174e2306414ff38f7c7b77
[ "MIT" ]
3
2021-06-28T13:30:58.000Z
2022-01-16T19:05:00.000Z
cfractions/__init__.py
lycantropos/cfractions
22ede26a22786f5480174e2306414ff38f7c7b77
[ "MIT" ]
1
2021-10-22T02:12:06.000Z
2021-10-22T02:12:06.000Z
"""Python C API alternative to `fractions` module.""" __version__ = '1.4.0' try: from _cfractions import Fraction except ImportError: import numbers as _numbers from fractions import Fraction as _Fraction from typing import (Any as _Any, Dict as _Dict, O...
41.405714
79
0.50621
d93f8a137f8c8b7524ee61b15619bc1ddd81fbf9
1,401
py
Python
src/logistic/logistic_sklearn.py
wenfengand/machine_learning_tools
7233e14ccb2cc32198ee5d73ee2c5952b5947443
[ "MIT" ]
null
null
null
src/logistic/logistic_sklearn.py
wenfengand/machine_learning_tools
7233e14ccb2cc32198ee5d73ee2c5952b5947443
[ "MIT" ]
null
null
null
src/logistic/logistic_sklearn.py
wenfengand/machine_learning_tools
7233e14ccb2cc32198ee5d73ee2c5952b5947443
[ "MIT" ]
null
null
null
import numpy as np import pandas as pd from sklearn.feature_extraction.text import TfidfVectorizer from sklearn.preprocessing import LabelBinarizer from sklearn.linear_model.logistic import LogisticRegression from sklearn.model_selection import train_test_split, cross_val_score from sklearn.metrics import classificat...
35.923077
95
0.797288
d941561113d1d4744ab96a504558e7c214535b01
1,289
py
Python
code/curvature_and_offset.py
amoi9/advanced-lane-finding
334ebcee8a232e62aa54ed88190dd2333026112c
[ "MIT" ]
null
null
null
code/curvature_and_offset.py
amoi9/advanced-lane-finding
334ebcee8a232e62aa54ed88190dd2333026112c
[ "MIT" ]
null
null
null
code/curvature_and_offset.py
amoi9/advanced-lane-finding
334ebcee8a232e62aa54ed88190dd2333026112c
[ "MIT" ]
null
null
null
import numpy as np from lane_pixel_finder import find_lane_pixels ''' Calculates the curvature of polynomial functions in meters. ''' # Define conversions in x and y from pixels space to meters ym_per_pix = 30/720 # meters per pixel in y dimension xm_per_pix = 3.7/700 # meters per pixel in x dimension
40.28125
101
0.699767
d941a0519c73ad134015de68bcfb2d050dd83e9d
816
py
Python
notes/23 - exceptions/basic-input-example.py
hSpiels/ICS3-Python-Notes
5cb06623d6714a62ff20550d635c1fd3f7d27ea2
[ "MIT" ]
3
2022-02-10T19:06:28.000Z
2022-03-25T17:55:56.000Z
notes/23 - exceptions/basic-input-example.py
hSpiels/ICS3-Python-Notes
5cb06623d6714a62ff20550d635c1fd3f7d27ea2
[ "MIT" ]
null
null
null
notes/23 - exceptions/basic-input-example.py
hSpiels/ICS3-Python-Notes
5cb06623d6714a62ff20550d635c1fd3f7d27ea2
[ "MIT" ]
17
2020-09-15T16:40:23.000Z
2022-03-22T17:52:32.000Z
#----------------------------------------------------------------------------- # Name: Catching Exceptions (try-except.py) # Purpose: To provide example of a simple input loop using try-catch # # Author: Mr. Brooks # Created: 01-Oct-2020 # Updated: 01-March-2021 #--------------------------------...
32.64
92
0.502451
d942a04ced23f92091eda9000046982c5f7f347a
306
py
Python
routers/repo/tests/in/py/sample_projects/car/rear_suspension_assembly.py
fermiumlabs/gitea
34b1f2546b306f15c65f21d8f9629507d3fdd798
[ "MIT" ]
1
2020-10-08T14:14:52.000Z
2020-10-08T14:14:52.000Z
routers/repo/tests/in/py/sample_projects/car/rear_suspension_assembly.py
fermiumlabs/gitea
34b1f2546b306f15c65f21d8f9629507d3fdd798
[ "MIT" ]
null
null
null
routers/repo/tests/in/py/sample_projects/car/rear_suspension_assembly.py
fermiumlabs/gitea
34b1f2546b306f15c65f21d8f9629507d3fdd798
[ "MIT" ]
null
null
null
# coding: utf-8 r"""Tabby rear suspension assembly""" from car_assemblies import make_rear_suspension_assembly from osvcad.view import view_assembly, view_assembly_graph assembly = make_rear_suspension_assembly() if __name__ == "__main__": view_assembly(assembly) view_assembly_graph(assembly)
23.538462
58
0.803922
d944f0a9c7214dc418886b1718145909d59eb408
2,791
py
Python
python_examples/example_truncated_normal.py
KristerSJakobsson/pygosolnp
5a890d67782ff04f521644daeaef2f7708959e79
[ "BSL-1.0" ]
null
null
null
python_examples/example_truncated_normal.py
KristerSJakobsson/pygosolnp
5a890d67782ff04f521644daeaef2f7708959e79
[ "BSL-1.0" ]
null
null
null
python_examples/example_truncated_normal.py
KristerSJakobsson/pygosolnp
5a890d67782ff04f521644daeaef2f7708959e79
[ "BSL-1.0" ]
null
null
null
############################ # This example shows how to run pygosolnp with Truncated Normal distribution using Numpy and Scipy ############################ from typing import List, Optional # Numpy random has the PCG64 generator which according to some research is better than Mersenne Twister from numpy.random impor...
36.723684
103
0.685776
d945a72b8bcb11f20ef8799e856a5654994ffaeb
3,197
py
Python
opengenomebrowser_tools/rename_custom_annotations.py
opengenomebrowser/opengenomebrowser-tools
b6ef2340b2fd67a61373d1d8a0f3ef71cc892d1e
[ "MIT" ]
null
null
null
opengenomebrowser_tools/rename_custom_annotations.py
opengenomebrowser/opengenomebrowser-tools
b6ef2340b2fd67a61373d1d8a0f3ef71cc892d1e
[ "MIT" ]
null
null
null
opengenomebrowser_tools/rename_custom_annotations.py
opengenomebrowser/opengenomebrowser-tools
b6ef2340b2fd67a61373d1d8a0f3ef71cc892d1e
[ "MIT" ]
null
null
null
from .utils import GenomeFile, split_locus_tag def rename_custom_annotations(file: str, out: str, new_locus_tag_prefix: str, old_locus_tag_prefix: str = None, validate: bool = False): """ Change the locus tags in a custom annotations file :param file: input file :param out: output file :param ne...
38.059524
141
0.657804
d945b415451fdc9d37b82bd626b439e042bbaee1
11,757
py
Python
SAM/Classifiers/classifier_svm.py
lucaspuvis/SAM
159427d0b2a7fdd353b96c13085f926df096f309
[ "CC-BY-4.0" ]
3
2019-05-14T17:22:54.000Z
2020-07-05T15:39:11.000Z
SAM/Classifiers/classifier_svm.py
lucaspuvis/SAM
159427d0b2a7fdd353b96c13085f926df096f309
[ "CC-BY-4.0" ]
null
null
null
SAM/Classifiers/classifier_svm.py
lucaspuvis/SAM
159427d0b2a7fdd353b96c13085f926df096f309
[ "CC-BY-4.0" ]
null
null
null
import argparse, joblib, csv, sys, os import numpy as np import matplotlib.pyplot as plt import matplotlib.patches as mpatches import pandas as pd from mpl_toolkits.mplot3d import Axes3D from yellowbrick.text import TSNEVisualizer from sklearn.cluster import KMeans from sklearn.svm import SVC, LinearSVC from sklearn...
34.377193
155
0.623969
d94612c9ae12b600bebba592477a727af83fa451
951
py
Python
unityparser/composer.py
socialpoint-labs/unity-yaml-parser
91c175140ed32aed301bc34d4311f370da69a8ba
[ "MIT" ]
76
2019-06-17T13:17:59.000Z
2022-03-11T19:39:24.000Z
unityparser/composer.py
socialpoint-labs/unity-yaml-parser
91c175140ed32aed301bc34d4311f370da69a8ba
[ "MIT" ]
17
2019-06-07T09:04:27.000Z
2022-02-16T19:01:38.000Z
unityparser/composer.py
socialpoint-labs/unity-yaml-parser
91c175140ed32aed301bc34d4311f370da69a8ba
[ "MIT" ]
9
2019-10-08T16:07:35.000Z
2021-12-08T15:27:00.000Z
from yaml.composer import Composer as YamlComposer, ComposerError
28.818182
95
0.635121
d948e42d9fe9ba9b6716af9941792faae40da7f8
1,164
py
Python
build.py
2-propanol/BTF_extractor
0ec5358504ab51aff6256b98f51d29e540012ce8
[ "Zlib" ]
1
2022-02-16T14:53:26.000Z
2022-02-16T14:53:26.000Z
build.py
2-propanol/BTF_extractor
0ec5358504ab51aff6256b98f51d29e540012ce8
[ "Zlib" ]
1
2021-02-05T10:04:20.000Z
2021-04-11T13:45:01.000Z
build.py
2-propanol/BTF_extractor
0ec5358504ab51aff6256b98f51d29e540012ce8
[ "Zlib" ]
1
2021-02-04T04:22:19.000Z
2021-02-04T04:22:19.000Z
import platform from setuptools import Extension import numpy from Cython.Build import cythonize compile_args = [] link_args = [] pf = platform.system() if pf == "Windows": # for MSVC compile_args = ["/std:c++14", "/DNOMINMAX", "/O2", "/openmp"] elif pf == "Darwin": # for clang compile_args = ["-std=...
24.25
87
0.617698
d948fa8ba6380df2f7107ace914fc0822327e5fa
3,802
py
Python
apps/users/views.py
fangMint/django_web
cf50df6c1a2358996620ac83ffa99b31472d3c07
[ "AFL-3.0" ]
null
null
null
apps/users/views.py
fangMint/django_web
cf50df6c1a2358996620ac83ffa99b31472d3c07
[ "AFL-3.0" ]
null
null
null
apps/users/views.py
fangMint/django_web
cf50df6c1a2358996620ac83ffa99b31472d3c07
[ "AFL-3.0" ]
1
2021-11-22T10:15:50.000Z
2021-11-22T10:15:50.000Z
import logging from django.views import View from .models import Users, Tokens from libs.response_extra import response_failure, response_success, user_does_not_exists, view_exception from libs.tool_decorator import cvb_params from .decorator import cvb_token_check log = logging.getLogger(__name__) """ : { "use...
33.946429
104
0.572593
d94b812ea86c3f0c6f03bfe005b3691242fb682f
1,871
py
Python
src/compas_plotters/artists/circleartist.py
XingxinHE/compas
d2901dbbacdaf4694e5adae78ba8f093f10532bf
[ "MIT" ]
null
null
null
src/compas_plotters/artists/circleartist.py
XingxinHE/compas
d2901dbbacdaf4694e5adae78ba8f093f10532bf
[ "MIT" ]
null
null
null
src/compas_plotters/artists/circleartist.py
XingxinHE/compas
d2901dbbacdaf4694e5adae78ba8f093f10532bf
[ "MIT" ]
null
null
null
from compas_plotters.artists import Artist from matplotlib.patches import Circle as CirclePatch # from matplotlib.transforms import ScaledTranslation __all__ = ['CircleArtist']
30.672131
135
0.611438
d94bae590f7b253620b6f2a82a919c8745ff9eb2
1,044
py
Python
SortedPriorityQueue.py
sidhu177/pythonprog
a75285e9e4d3cd6f1257b9a79dc39e49c68a695d
[ "MIT" ]
2
2019-05-01T04:32:07.000Z
2019-05-04T02:22:16.000Z
SortedPriorityQueue.py
sidhu177/pythonprog
a75285e9e4d3cd6f1257b9a79dc39e49c68a695d
[ "MIT" ]
null
null
null
SortedPriorityQueue.py
sidhu177/pythonprog
a75285e9e4d3cd6f1257b9a79dc39e49c68a695d
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Tue Sep 18 21:06:14 2018 Taken from Data Structures and Algorithms using Python """
29
59
0.579502
d94bb0c3552420db1ae043fe4832aefa03e3c1f7
14,576
py
Python
f5/utils/test/test_iapp_parser.py
jputrino/f5-common-python
64cd019eb22b0e9a49e0c49ebb05f2a23ffa0e49
[ "Apache-2.0" ]
null
null
null
f5/utils/test/test_iapp_parser.py
jputrino/f5-common-python
64cd019eb22b0e9a49e0c49ebb05f2a23ffa0e49
[ "Apache-2.0" ]
null
null
null
f5/utils/test/test_iapp_parser.py
jputrino/f5-common-python
64cd019eb22b0e9a49e0c49ebb05f2a23ffa0e49
[ "Apache-2.0" ]
null
null
null
# Copyright 2016 F5 Networks Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writi...
26.215827
79
0.64565
d94e7f4e72a48e860eb440b1515c225287560f3f
2,284
py
Python
z2npprocess.py
evandromr/python_scitools
afe8ad113245069af0ef2a05c69046938459ab2d
[ "MIT" ]
2
2015-11-05T14:43:04.000Z
2016-01-06T18:49:31.000Z
z2npprocess.py
evandromr/python_scitools
afe8ad113245069af0ef2a05c69046938459ab2d
[ "MIT" ]
null
null
null
z2npprocess.py
evandromr/python_scitools
afe8ad113245069af0ef2a05c69046938459ab2d
[ "MIT" ]
null
null
null
#!/usr/env python import pprocess # parallel computing module import os # os utilitites import time # keep track of time import astropy.io.fits as fits # FITS manipulating library import matplotlib.pyplot as plt import numpy as np # numeric python for array manipulation import myscitools # my personal tools ...
27.853659
72
0.684764
d950b3d1717860b9f9b62454c2ec7519e0a1185c
625
py
Python
net/http_client.py
zengmeng1094/my_python_practice
529e3ce592508b30d49dc6d4a005081789d0db44
[ "Apache-2.0" ]
null
null
null
net/http_client.py
zengmeng1094/my_python_practice
529e3ce592508b30d49dc6d4a005081789d0db44
[ "Apache-2.0" ]
null
null
null
net/http_client.py
zengmeng1094/my_python_practice
529e3ce592508b30d49dc6d4a005081789d0db44
[ "Apache-2.0" ]
null
null
null
import requests import urllib3 from urllib3 import HTTPConnectionPool if __name__ == '__main__': print(HttpsClient.get('http://127.0.0.1:5000/test'))
24.038462
80
0.6752
d9514413b1dc12beee51ba849953b233bcf53932
6,217
py
Python
tests/test_redis.py
fedej/aio-rom
e84d55b84ca459b930d0cd86fd33f161cb26c7df
[ "MIT" ]
6
2021-03-22T22:12:34.000Z
2022-02-14T01:30:37.000Z
tests/test_redis.py
fedej/aio-rom
e84d55b84ca459b930d0cd86fd33f161cb26c7df
[ "MIT" ]
52
2021-02-22T16:38:27.000Z
2022-03-07T18:06:18.000Z
tests/test_redis.py
fedej/aio-rom
e84d55b84ca459b930d0cd86fd33f161cb26c7df
[ "MIT" ]
null
null
null
import os import sys from dataclasses import field from typing import List, Optional, Set, cast from unittest import skipUnless from aio_rom import Model from aio_rom.attributes import RedisModelSet if sys.version_info >= (3, 8): from unittest.async_case import IsolatedAsyncioTestCase as TestCase ASYNCTEST =...
33.605405
84
0.618144
d95365e9560d7743acef72009c98362dad09f3a4
1,514
py
Python
data/transcoder_evaluation_gfg/python/DYNAMIC_PROGRAMMING_SET_17_PALINDROME_PARTITIONING.py
mxl1n/CodeGen
e5101dd5c5e9c3720c70c80f78b18f13e118335a
[ "MIT" ]
241
2021-07-20T08:35:20.000Z
2022-03-31T02:39:08.000Z
data/transcoder_evaluation_gfg/python/DYNAMIC_PROGRAMMING_SET_17_PALINDROME_PARTITIONING.py
mxl1n/CodeGen
e5101dd5c5e9c3720c70c80f78b18f13e118335a
[ "MIT" ]
49
2021-07-22T23:18:42.000Z
2022-03-24T09:15:26.000Z
data/transcoder_evaluation_gfg/python/DYNAMIC_PROGRAMMING_SET_17_PALINDROME_PARTITIONING.py
mxl1n/CodeGen
e5101dd5c5e9c3720c70c80f78b18f13e118335a
[ "MIT" ]
71
2021-07-21T05:17:52.000Z
2022-03-29T23:49:28.000Z
# Copyright (c) 2019-present, Facebook, Inc. # All rights reserved. # # This source code is licensed under the license found in the # LICENSE file in the root directory of this source tree. # #TOFILL if __name__ == '__main__': param = [ ('ydYdV',), ('4446057',), ('0111',), ('keEj',), ('642861...
29.115385
97
0.402246
d955563969d83170f71c06df9ab6aacad0658d81
787
py
Python
timetappy/staff.py
ak9999/timetappy
7429077b2a8f3e2f0b2b5ac26d9db713fd330a50
[ "MIT" ]
null
null
null
timetappy/staff.py
ak9999/timetappy
7429077b2a8f3e2f0b2b5ac26d9db713fd330a50
[ "MIT" ]
null
null
null
timetappy/staff.py
ak9999/timetappy
7429077b2a8f3e2f0b2b5ac26d9db713fd330a50
[ "MIT" ]
null
null
null
from .utils import return_response, api_get_request
32.791667
94
0.721728
d955bd3b6a1f98f5c7cc4debf622f8e2f6c5f9cd
104
py
Python
goutdotcom/treatment/apps.py
Spiewart/goutdotcom
0916155732a72fcb8c8a2fb0f4dd81efef618af8
[ "MIT" ]
null
null
null
goutdotcom/treatment/apps.py
Spiewart/goutdotcom
0916155732a72fcb8c8a2fb0f4dd81efef618af8
[ "MIT" ]
null
null
null
goutdotcom/treatment/apps.py
Spiewart/goutdotcom
0916155732a72fcb8c8a2fb0f4dd81efef618af8
[ "MIT" ]
null
null
null
from django.apps import AppConfig
17.333333
33
0.778846
d955de847bc6455510ab5fae7ec28c13dd87bbec
1,201
py
Python
Algorithms/0033_Search_in_Rotated_Sorted_Array/Python/Search_in_Rotated_Sorted_Array_Solution_1.py
lht19900714/Leetcode_Solutions
dac7a038329a5c1f8a78e86cc6f49116b963f1fb
[ "MIT" ]
null
null
null
Algorithms/0033_Search_in_Rotated_Sorted_Array/Python/Search_in_Rotated_Sorted_Array_Solution_1.py
lht19900714/Leetcode_Solutions
dac7a038329a5c1f8a78e86cc6f49116b963f1fb
[ "MIT" ]
null
null
null
Algorithms/0033_Search_in_Rotated_Sorted_Array/Python/Search_in_Rotated_Sorted_Array_Solution_1.py
lht19900714/Leetcode_Solutions
dac7a038329a5c1f8a78e86cc6f49116b963f1fb
[ "MIT" ]
null
null
null
# Space: O(1) # Time: O(logn)
27.930233
85
0.507077
d959215b82b03d107b269df9d66aba263c6dfe42
7,807
py
Python
nxs_libs/interface/workload_manager/simple_policy.py
microsoft/nxs
b271c0637576084b36bd0bd397a673fb348913b3
[ "MIT" ]
5
2022-03-23T21:27:42.000Z
2022-03-24T19:57:27.000Z
nxs_libs/interface/workload_manager/simple_policy.py
microsoft/nxs
b271c0637576084b36bd0bd397a673fb348913b3
[ "MIT" ]
null
null
null
nxs_libs/interface/workload_manager/simple_policy.py
microsoft/nxs
b271c0637576084b36bd0bd397a673fb348913b3
[ "MIT" ]
1
2022-03-23T21:27:44.000Z
2022-03-23T21:27:44.000Z
import time import numpy as np from typing import Dict, List, Tuple from nxs_libs.interface.workload_manager import ( NxsBaseWorkloadManagerPolicy, ) from nxs_types.frontend import FrontendModelPipelineWorkloadReport from nxs_types.message import ( NxsMsgPinWorkload, NxsMsgType, NxsMsgReportInputWorkloa...
35.811927
140
0.608685
d95e1a45cff563a0bc7667c6cb86319a45a18004
23,258
py
Python
examples/grid_convergence.py
H0R5E/SNL-Delft3D-CEC-Verify
234c0acead13c74bad2979b300671733c7b184f7
[ "MIT" ]
null
null
null
examples/grid_convergence.py
H0R5E/SNL-Delft3D-CEC-Verify
234c0acead13c74bad2979b300671733c7b184f7
[ "MIT" ]
2
2021-12-10T17:17:21.000Z
2022-02-22T00:25:15.000Z
examples/grid_convergence.py
H0R5E/SNL-Delft3D-CEC-Verify
234c0acead13c74bad2979b300671733c7b184f7
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import os import uuid import platform import warnings from pathlib import Path from collections import defaultdict from dataclasses import replace import numpy as np import pandas as pd import matplotlib import matplotlib.pyplot as plt from convergence import Convergence from snl_d3d_cec_veri...
36.003096
79
0.551896