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
dce79509cbf2a7826a942f2c2ddbb3230955066c
6,525
py
Python
nodedge/graphics_cut_line.py
Nodedge/nodedge
5658269a1841f33b3c42d6f79b8b50411e105787
[ "MIT" ]
7
2020-03-25T19:54:56.000Z
2021-06-09T04:43:58.000Z
nodedge/graphics_cut_line.py
Nodedge/nodedge
5658269a1841f33b3c42d6f79b8b50411e105787
[ "MIT" ]
9
2020-01-17T10:47:54.000Z
2021-05-30T12:40:28.000Z
nodedge/graphics_cut_line.py
nodedge/nodedge
5658269a1841f33b3c42d6f79b8b50411e105787
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """Graphics cut line module containing :class:`~nodedge.graphics_cut_line.GraphicsCutLine` class. """ import logging from enum import IntEnum from typing import List, Optional from PySide2.QtCore import QEvent, QPointF, QRectF, Qt from PySide2.QtGui import QMouseEvent, QPainter, QPainterPath, Q...
34.52381
89
0.585747
dce93d2afbe14b6bf4539942ed92f66674f8d14d
192
py
Python
countLines.py
binnev/what-can-be-computed
58d01ef09096bda2d0a1876575b992d47fcd0470
[ "CC-BY-4.0" ]
null
null
null
countLines.py
binnev/what-can-be-computed
58d01ef09096bda2d0a1876575b992d47fcd0470
[ "CC-BY-4.0" ]
null
null
null
countLines.py
binnev/what-can-be-computed
58d01ef09096bda2d0a1876575b992d47fcd0470
[ "CC-BY-4.0" ]
null
null
null
import utils from utils import rf
19.2
45
0.682292
dce9f067442dd132cec403175dc8d3c5614a3f40
1,359
py
Python
app/modules/profiles/model.py
DsCodeStudio98m0f/DTia-Nugrahab
218ef140727849206fe76f42f43a5a231cfda9d9
[ "Apache-2.0" ]
16
2020-03-26T13:21:15.000Z
2021-07-25T18:49:05.000Z
app/modules/profiles/model.py
DsCodeStudio98m0f/DTia-Nugrahab
218ef140727849206fe76f42f43a5a231cfda9d9
[ "Apache-2.0" ]
13
2020-03-24T18:19:48.000Z
2022-03-12T00:18:59.000Z
app/modules/profiles/model.py
DsCodeStudio98m0f/DTia-Nugrahab
218ef140727849206fe76f42f43a5a231cfda9d9
[ "Apache-2.0" ]
14
2020-03-31T01:02:38.000Z
2021-09-17T01:10:36.000Z
from app import db from app.common.mixin import *
33.975
73
0.674761
dcea809f24c7a2aad0a5248fa551dcc279ce1cac
367
py
Python
data processing/data/merge_data.py
RayL0707/Finance_KG
c4614bfb12a7ce20e05b42ab81ab6038ab5143f4
[ "MIT" ]
null
null
null
data processing/data/merge_data.py
RayL0707/Finance_KG
c4614bfb12a7ce20e05b42ab81ab6038ab5143f4
[ "MIT" ]
null
null
null
data processing/data/merge_data.py
RayL0707/Finance_KG
c4614bfb12a7ce20e05b42ab81ab6038ab5143f4
[ "MIT" ]
null
null
null
merge()
20.388889
54
0.615804
dcea88cb35a02f7e9b11a8fbb9f570211bddc11f
922
py
Python
grid_point.py
drexelai/protein-nets
06d705ac6be36ef5383b715b0a4b910538efee1d
[ "MIT" ]
3
2021-03-31T01:32:31.000Z
2022-03-24T07:51:59.000Z
grid_point.py
drexelai/protein-nets
06d705ac6be36ef5383b715b0a4b910538efee1d
[ "MIT" ]
3
2021-04-14T23:24:05.000Z
2021-04-15T03:06:02.000Z
grid_point.py
drexelai/protein-nets
06d705ac6be36ef5383b715b0a4b910538efee1d
[ "MIT" ]
null
null
null
# Distance is measured in Angstroms # Class represents a single grid point in a 3D window
32.928571
198
0.749458
dceb66b083eaedc5043fa09fbfd61c6eb3cc9dd0
426
py
Python
swgpu/urls.py
JCristobal/SWGPU
50039ae7ef6163e1bb3cccb0b6e4e4f5a62b620b
[ "Apache-2.0" ]
null
null
null
swgpu/urls.py
JCristobal/SWGPU
50039ae7ef6163e1bb3cccb0b6e4e4f5a62b620b
[ "Apache-2.0" ]
null
null
null
swgpu/urls.py
JCristobal/SWGPU
50039ae7ef6163e1bb3cccb0b6e4e4f5a62b620b
[ "Apache-2.0" ]
null
null
null
from django.conf.urls import url from . import views urlpatterns = [ url(r'^$', views.index, name='index'), url(r'^index$', views.index, name='index'), url(r'^peticion_ackley/$', views.peticion_ackley, name='peticion_ackley'), # para hacer peticion mediante el algoritmo Ackley url(r'^peticion_rastrigin/$', views...
38.727273
139
0.741784
dcecd6b18e1e75df9c0e0d80b2d7ec546970b7a2
2,898
py
Python
py_algo/sorting/competition/monk_monitor.py
Sk0uF/Algorithms
236cc5b056ce2637d5d947c5fc1e3367cde886bf
[ "MIT" ]
1
2021-07-05T15:39:04.000Z
2021-07-05T15:39:04.000Z
py_algo/sorting/competition/monk_monitor.py
Sk0uF/Algorithms
236cc5b056ce2637d5d947c5fc1e3367cde886bf
[ "MIT" ]
null
null
null
py_algo/sorting/competition/monk_monitor.py
Sk0uF/Algorithms
236cc5b056ce2637d5d947c5fc1e3367cde886bf
[ "MIT" ]
1
2021-09-02T21:31:34.000Z
2021-09-02T21:31:34.000Z
""" Codemonk link: https://www.hackerearth.com/problem/algorithm/monk-being-monitor-709e0fd3/ Monk being the monitor of the class needs to have all the information about the class students. He is very busy with many tasks related to the same, so he asked his friend Mishki for her help in one task. She will be give...
39.69863
121
0.677364
dced4a3b2f06f94d7a92f57915a6444ff5071ff9
1,983
py
Python
homedisplay/info_birthdays/models.py
ojarva/home-info-display
873d022308732baff94d0dc2381cf9dc7dce23b7
[ "BSD-3-Clause" ]
1
2016-11-28T04:35:06.000Z
2016-11-28T04:35:06.000Z
homedisplay/info_birthdays/models.py
ojarva/home-info-display
873d022308732baff94d0dc2381cf9dc7dce23b7
[ "BSD-3-Clause" ]
160
2015-01-01T20:59:29.000Z
2016-04-25T13:36:52.000Z
homedisplay/info_birthdays/models.py
ojarva/home-info-display
873d022308732baff94d0dc2381cf9dc7dce23b7
[ "BSD-3-Clause" ]
1
2015-02-25T21:24:01.000Z
2015-02-25T21:24:01.000Z
# -*- coding: utf-8 -*- from django.core import serializers from django.db import models from django.db.models.signals import post_save, post_delete from django.dispatch import receiver from homedisplay.utils import publish_ws import datetime import json
33.05
107
0.690368
dcedcc270063f96de05822968d44edd696574450
10,531
py
Python
src/python/peak_functions.py
alexjgriffith/alpha-score
a262a79523c796078506f88db5ee6c6a60c0b8d0
[ "BSD-3-Clause" ]
null
null
null
src/python/peak_functions.py
alexjgriffith/alpha-score
a262a79523c796078506f88db5ee6c6a60c0b8d0
[ "BSD-3-Clause" ]
null
null
null
src/python/peak_functions.py
alexjgriffith/alpha-score
a262a79523c796078506f88db5ee6c6a60c0b8d0
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python2.7 # # This file is part of peakAnalysis, http://github.com/alexjgriffith/peaks/, # and is Copyright (C) University of Ottawa, 2014. It is Licensed under # the three-clause BSD License; see doc/LICENSE.txt. # Contact: griffitaj@gmail.com # # Created : AU1862014 # File : peak_functions # Autho...
28.462162
82
0.567183
dcedd2fe6ce8860d2ebfc3feb64b8b8afde89134
1,183
py
Python
TransformerNet/Transformer.py
TeaKatz/Models_Corpus
6d9e91eb97829e73d88ecfc4754492f6324ef383
[ "MIT" ]
null
null
null
TransformerNet/Transformer.py
TeaKatz/Models_Corpus
6d9e91eb97829e73d88ecfc4754492f6324ef383
[ "MIT" ]
null
null
null
TransformerNet/Transformer.py
TeaKatz/Models_Corpus
6d9e91eb97829e73d88ecfc4754492f6324ef383
[ "MIT" ]
null
null
null
import tensorflow as tf from TransformerNet.layers import Encoder, Decoder
62.263158
135
0.741336
dceef88b32d68ed31878b2933c9b649dc7cdaf18
126
py
Python
building_test.py
yuanyan3060/ArknightsAutoHelper
99b7e2d8e8d97d4c718e974208aad0e2930ed7e0
[ "MIT" ]
1
2021-10-06T12:46:42.000Z
2021-10-06T12:46:42.000Z
building_test.py
yuanyan3060/ArknightsAutoHelper
99b7e2d8e8d97d4c718e974208aad0e2930ed7e0
[ "MIT" ]
null
null
null
building_test.py
yuanyan3060/ArknightsAutoHelper
99b7e2d8e8d97d4c718e974208aad0e2930ed7e0
[ "MIT" ]
null
null
null
from Arknights.shell_next import _create_helper helper, context = _create_helper(use_status_line=False) helper.get_building()
31.5
55
0.857143
dcefb0e811551fbe363d4633f912329224e0d5b0
65
py
Python
skopje/__init__.py
hotdogPi/Skopje
3a6a72589539349afcbc8921f8de1f16d866f5e0
[ "MIT" ]
1
2021-07-10T18:46:01.000Z
2021-07-10T18:46:01.000Z
skopje/__init__.py
hotdogPi/Skopje
3a6a72589539349afcbc8921f8de1f16d866f5e0
[ "MIT" ]
null
null
null
skopje/__init__.py
hotdogPi/Skopje
3a6a72589539349afcbc8921f8de1f16d866f5e0
[ "MIT" ]
1
2022-01-13T18:24:56.000Z
2022-01-13T18:24:56.000Z
# What to do upon calling "import skopje" from .skop import skop
21.666667
41
0.753846
dcefdb99fe2524931fcc166cd7b76a8ef691d120
216
py
Python
djconnectwise/management/commands/delete_callback.py
kti-cameron/django-connectwise
e3438d6f303163cd482ce31a98aca5abf15ec932
[ "MIT" ]
null
null
null
djconnectwise/management/commands/delete_callback.py
kti-cameron/django-connectwise
e3438d6f303163cd482ce31a98aca5abf15ec932
[ "MIT" ]
null
null
null
djconnectwise/management/commands/delete_callback.py
kti-cameron/django-connectwise
e3438d6f303163cd482ce31a98aca5abf15ec932
[ "MIT" ]
null
null
null
from django.utils.translation import ugettext_lazy as _ from . import _callback
27
77
0.75463
dcf1077dc281e4de424e7b5cbf25db2a3e03b45d
470
py
Python
leetcode/python/hard/p023_mergeKLists.py
kefirzhang/algorithms
549e68731d4c05002e35f0499d4f7744f5c63979
[ "Apache-2.0" ]
null
null
null
leetcode/python/hard/p023_mergeKLists.py
kefirzhang/algorithms
549e68731d4c05002e35f0499d4f7744f5c63979
[ "Apache-2.0" ]
null
null
null
leetcode/python/hard/p023_mergeKLists.py
kefirzhang/algorithms
549e68731d4c05002e35f0499d4f7744f5c63979
[ "Apache-2.0" ]
null
null
null
# Definition for singly-linked list.
22.380952
38
0.514894
dcf12e78cd43b62ae889013cd4f3dacacb7cb0bc
410
py
Python
ants/utils/jsonextends.py
wcong/scale-crawl
52918d18c94a9a69c3b2495286e3384ba57ad6f8
[ "BSD-3-Clause" ]
18
2015-01-16T02:25:03.000Z
2018-11-18T03:47:07.000Z
ants/utils/jsonextends.py
wcong/ants
52918d18c94a9a69c3b2495286e3384ba57ad6f8
[ "BSD-3-Clause" ]
15
2015-01-12T02:28:23.000Z
2015-02-03T03:41:07.000Z
ants/utils/jsonextends.py
wcong/scale-crawl
52918d18c94a9a69c3b2495286e3384ba57ad6f8
[ "BSD-3-Clause" ]
5
2015-01-22T12:38:38.000Z
2019-06-07T14:35:07.000Z
__author__ = 'wcong' import json import datetime
24.117647
50
0.543902
dcf154140d779be50df39ec625bcaf518e1e2022
2,234
py
Python
tests/V2/test_product_view.py
kmwangemi/Store-Manager-Challenge-3
baf37c9316acadfd630009424757ed15091aaf92
[ "MIT" ]
null
null
null
tests/V2/test_product_view.py
kmwangemi/Store-Manager-Challenge-3
baf37c9316acadfd630009424757ed15091aaf92
[ "MIT" ]
null
null
null
tests/V2/test_product_view.py
kmwangemi/Store-Manager-Challenge-3
baf37c9316acadfd630009424757ed15091aaf92
[ "MIT" ]
null
null
null
import unittest import json from run import app from app.api.V2.views.product_view import Product
39.892857
142
0.570278
dcf1dfdabf48f9691feb1a7313770d2b7803e043
12,008
py
Python
examples/ServiceSchema.py
meGregV/blpapi-python
30b11686255665956538826cf035a76bba9d301c
[ "Unlicense" ]
1
2019-08-17T07:05:41.000Z
2019-08-17T07:05:41.000Z
examples/ServiceSchema.py
doomoolmori/blpapi-python
55cb3e20d7ab3e22cf4718660d2789b3608142fd
[ "Unlicense" ]
null
null
null
examples/ServiceSchema.py
doomoolmori/blpapi-python
55cb3e20d7ab3e22cf4718660d2789b3608142fd
[ "Unlicense" ]
null
null
null
# ServiceSchema.py from __future__ import print_function from __future__ import absolute_import import blpapi import time from optparse import OptionParser TOKEN_SUCCESS = blpapi.Name("TokenGenerationSuccess") TOKEN_FAILURE = blpapi.Name("TokenGenerationFailure") AUTHORIZATION_SUCCESS = blpapi.Name("AuthorizationSucc...
34.210826
76
0.615756
dcf48f93526d5328700677ce0de7b0962b47458b
15,931
py
Python
e0/e3_tests.py
daedalus/knob
51b0b42ab64e6608bd9a87940ac282a1d35a3506
[ "MIT" ]
151
2019-08-17T01:01:22.000Z
2022-02-26T20:01:14.000Z
e0/e3_tests.py
daedalus/knob
51b0b42ab64e6608bd9a87940ac282a1d35a3506
[ "MIT" ]
7
2019-09-05T14:49:32.000Z
2021-05-18T06:55:28.000Z
e0/e3_tests.py
daedalus/knob
51b0b42ab64e6608bd9a87940ac282a1d35a3506
[ "MIT" ]
38
2019-08-17T03:55:32.000Z
2021-12-08T18:06:05.000Z
#!/usr/bin/python2 """ e3_tests.py Test code for e3.py: pag 1639 e3 is used to generate Kc. The test cases assumes that COF = ACO and ACO aro provided. Ar and Ar_prime uses SAFER+ We use https://github.com/aer0s/python-mcrypt that is ONLY compatible with python2. """ from sys import exit from e3 import * log.setL...
42.596257
84
0.724813
dcf5d0348f75187b044a2672de3945039ccc0b71
16,033
py
Python
adaptiveStreamProducer.py
kurthorvath/adaptivestreamer
7c85a67017ccba41b81968caf34f3ea49f0330a5
[ "MIT" ]
null
null
null
adaptiveStreamProducer.py
kurthorvath/adaptivestreamer
7c85a67017ccba41b81968caf34f3ea49f0330a5
[ "MIT" ]
null
null
null
adaptiveStreamProducer.py
kurthorvath/adaptivestreamer
7c85a67017ccba41b81968caf34f3ea49f0330a5
[ "MIT" ]
null
null
null
import cv2,imutils, socket import time import threading import time import uuid import logging, os from functools import partial from numpy import double import requests import json import sys import configparser ####### CONFIG PARAMS #CONFIGSERVERIP = '127.0.0.1' #CONFIGSERVERPORT = 9997 #logging.basicConfig(filena...
34.553879
217
0.493357
dcfa0625fe18bf5b31b3c41c119941952321fac4
71
py
Python
general/recording-and-playing-audio/audio_player_playsound.py
gizzmo25/pythoncode-tutorials
39a413fc1da232ad6de7e5f1e8955564dc65448e
[ "MIT" ]
null
null
null
general/recording-and-playing-audio/audio_player_playsound.py
gizzmo25/pythoncode-tutorials
39a413fc1da232ad6de7e5f1e8955564dc65448e
[ "MIT" ]
null
null
null
general/recording-and-playing-audio/audio_player_playsound.py
gizzmo25/pythoncode-tutorials
39a413fc1da232ad6de7e5f1e8955564dc65448e
[ "MIT" ]
null
null
null
from playsound import playsound import sys playsound(sys.argv[1])
14.2
32
0.760563
dcfb3f72e395046eb90ede6f87900476cf79be0a
43
py
Python
conftest.py
sergei-bondarenko/exchange-simulator
a5bba00c38016823a5d18471da01fd4e04319b8e
[ "Unlicense" ]
1
2021-03-16T06:04:12.000Z
2021-03-16T06:04:12.000Z
conftest.py
sergei-bondarenko/exchange-simulator
a5bba00c38016823a5d18471da01fd4e04319b8e
[ "Unlicense" ]
null
null
null
conftest.py
sergei-bondarenko/exchange-simulator
a5bba00c38016823a5d18471da01fd4e04319b8e
[ "Unlicense" ]
null
null
null
pytest_plugins = [ 'xchg.tests.data', ]
10.75
21
0.627907
dcfd579f248c6ae550fd05ab1865da2443b5ad26
2,303
py
Python
BioClients/chebi/Client.py
jeremyjyang/BioClients
b78ab2b948c79616fed080112e31d383346bec58
[ "CC0-1.0" ]
10
2020-05-26T07:29:14.000Z
2021-12-06T21:33:40.000Z
BioClients/chebi/Client.py
jeremyjyang/BioClients
b78ab2b948c79616fed080112e31d383346bec58
[ "CC0-1.0" ]
1
2021-10-05T12:25:30.000Z
2021-10-05T17:05:56.000Z
BioClients/chebi/Client.py
jeremyjyang/BioClients
b78ab2b948c79616fed080112e31d383346bec58
[ "CC0-1.0" ]
2
2021-03-16T03:20:24.000Z
2021-08-08T20:17:10.000Z
#!/usr/bin/env python3 """ Utility for ChEBI SOAP API. * https://www.ebi.ac.uk/chebi/webServices.do """ ### import sys,os,re,json,argparse,time,logging import pandas as pd # from .. import chebi # ############################################################################## if __name__=='__main__': epilog="Example ...
32.43662
116
0.659574
dcfdd812b058711aa5ae957f61479006e6bfa153
9,793
py
Python
Coach.py
NetasDev/NetworkTraining
1683309f4638d69f2c4be60dfd12ba821be6d961
[ "MIT" ]
null
null
null
Coach.py
NetasDev/NetworkTraining
1683309f4638d69f2c4be60dfd12ba821be6d961
[ "MIT" ]
null
null
null
Coach.py
NetasDev/NetworkTraining
1683309f4638d69f2c4be60dfd12ba821be6d961
[ "MIT" ]
null
null
null
import logging import os import sys from collections import deque from pickle import Pickler, Unpickler from random import shuffle from time import perf_counter from othello.OthelloPlayers import * import wandb import numpy as np from tqdm import tqdm from Arena import Arena from MCTS import MCTS log = logging.getLo...
44.716895
133
0.632799
dcfec011a1b81ce9c217c8eefeb848ef377b3c27
1,351
py
Python
tests/gold_tests/headers/via-observer.py
zhangzhongkui/http-over-http
18e27573e3338ee797648c44d7e01114e1d3321c
[ "Apache-2.0" ]
null
null
null
tests/gold_tests/headers/via-observer.py
zhangzhongkui/http-over-http
18e27573e3338ee797648c44d7e01114e1d3321c
[ "Apache-2.0" ]
null
null
null
tests/gold_tests/headers/via-observer.py
zhangzhongkui/http-over-http
18e27573e3338ee797648c44d7e01114e1d3321c
[ "Apache-2.0" ]
1
2020-06-17T11:31:22.000Z
2020-06-17T11:31:22.000Z
''' Extract the protocol information from the VIA headers and store it in a log file for later verification. ''' # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright o...
33.775
104
0.661732
dcff7d1a940e3714715c9d14f1f889fc1690f9b3
978
py
Python
cpa/profiling/accuracy.py
oba14/CellProfiler-Analyst
7e194e72e8ce8440ce7c16196cb91c50052c2df1
[ "MIT" ]
1
2020-01-16T14:24:08.000Z
2020-01-16T14:24:08.000Z
cpa/profiling/accuracy.py
oba14/CellProfiler-Analyst
7e194e72e8ce8440ce7c16196cb91c50052c2df1
[ "MIT" ]
null
null
null
cpa/profiling/accuracy.py
oba14/CellProfiler-Analyst
7e194e72e8ce8440ce7c16196cb91c50052c2df1
[ "MIT" ]
null
null
null
""" Compute the overall accuracy of a confusion matrix """ from __future__ import print_function import sys from optparse import OptionParser import numpy as np import cpa.util from cpa.profiling.confusion import confusion_matrix, load_confusion parser = OptionParser("usage: %prog [options] CONFUSION") parser.add_opt...
29.636364
96
0.743354
0d03e7daf00c1563b1b6fe2d0009cfcb5c0c684e
4,813
py
Python
vigir_flexbe_states/src/vigir_flexbe_states/goto_single_arm_joint_config_state.py
team-vigir/vigir_behaviors
6696e7b7aadb24bb5495475065cc7b10d80b7db4
[ "BSD-3-Clause" ]
5
2015-08-25T18:47:52.000Z
2019-12-04T21:40:28.000Z
vigir_flexbe_states/src/vigir_flexbe_states/goto_single_arm_joint_config_state.py
team-vigir/vigir_behaviors
6696e7b7aadb24bb5495475065cc7b10d80b7db4
[ "BSD-3-Clause" ]
2
2017-08-16T16:09:47.000Z
2020-08-18T17:25:22.000Z
vigir_flexbe_states/src/vigir_flexbe_states/goto_single_arm_joint_config_state.py
team-vigir/vigir_behaviors
6696e7b7aadb24bb5495475065cc7b10d80b7db4
[ "BSD-3-Clause" ]
5
2015-11-06T21:57:37.000Z
2022-03-30T10:15:57.000Z
#!/usr/bin/env python import rospy from flexbe_core import EventState, Logger from flexbe_core.proxy import ProxyActionClient from control_msgs.msg import * from trajectory_msgs.msg import * """ Created on 05/18/2015 @author: Spyros Maniatopoulos """
31.457516
117
0.677748
0d0559140c74316b4c9189d66f026718d182678f
4,008
py
Python
homeassistant/components/litterrobot/hub.py
kristianheljas/homeassistant-core
eb7220ff262fe81d53c929884107bcedc8af7850
[ "Apache-2.0" ]
null
null
null
homeassistant/components/litterrobot/hub.py
kristianheljas/homeassistant-core
eb7220ff262fe81d53c929884107bcedc8af7850
[ "Apache-2.0" ]
51
2020-10-14T01:19:07.000Z
2022-03-31T06:02:48.000Z
homeassistant/components/litterrobot/hub.py
kristianheljas/homeassistant-core
eb7220ff262fe81d53c929884107bcedc8af7850
[ "Apache-2.0" ]
1
2021-08-16T02:53:15.000Z
2021-08-16T02:53:15.000Z
"""A wrapper 'hub' for the Litter-Robot API and base entity for common attributes.""" from datetime import time, timedelta import logging from types import MethodType from typing import Any, Optional from pylitterbot import Account, Robot from pylitterbot.exceptions import LitterRobotException, LitterRobotLoginExcepti...
32.585366
94
0.645709
0d092644246b35d8dfc64fca71163cf2d39cf763
41,824
py
Python
python3/Ecc.py
sebastien-riou/EccToys
3ab5c88ef45282795c6aeb0bab0756287cb542cf
[ "Apache-2.0" ]
null
null
null
python3/Ecc.py
sebastien-riou/EccToys
3ab5c88ef45282795c6aeb0bab0756287cb542cf
[ "Apache-2.0" ]
null
null
null
python3/Ecc.py
sebastien-riou/EccToys
3ab5c88ef45282795c6aeb0bab0756287cb542cf
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 from hashlib import sha256 import hmac import binascii from collections import namedtuple Point = namedtuple("Point", "x y") #E : y 2 + a 1 xy + a 3 y = x 3 + a 2 x 2 + a 4 x + a 6 Curve = namedtuple("Curve", "a1 a3 a2 a4 a6") def mul1(self, a, b): o = self.plain_mul(a,b) ...
37.849774
199
0.638581
0d0960ad1b06bca915068cdce59adb7d2b15f5f3
4,848
py
Python
dotfiles/spectrwm/purp/.config/sublime-text-3/Packages/LaTeXTools/biblatex_crossref_completions.py
jturne19/jordans_things
9d7abc850d009898ec69daf199a78f33795af4a1
[ "MIT" ]
null
null
null
dotfiles/spectrwm/purp/.config/sublime-text-3/Packages/LaTeXTools/biblatex_crossref_completions.py
jturne19/jordans_things
9d7abc850d009898ec69daf199a78f33795af4a1
[ "MIT" ]
null
null
null
dotfiles/spectrwm/purp/.config/sublime-text-3/Packages/LaTeXTools/biblatex_crossref_completions.py
jturne19/jordans_things
9d7abc850d009898ec69daf199a78f33795af4a1
[ "MIT" ]
null
null
null
from __future__ import print_function import sublime import sublime_plugin import re import sys try: from latextools_utils import is_bib_buffer, is_biblatex_buffer except ImportError: from .latextools_utils import is_bib_buffer, is_biblatex_buffer if sys.version_info > (3, 0): strbase = str else: st...
29.204819
92
0.626238
0d0969bbcbec21f2ea03d898592c045dca79690c
4,652
py
Python
stock/migrations/0005_auto_20200909_1547.py
zhou-en/turf_portal
2424ac15248c9f1c0fa4f65ca18fe0ea71d7ff4e
[ "MIT" ]
null
null
null
stock/migrations/0005_auto_20200909_1547.py
zhou-en/turf_portal
2424ac15248c9f1c0fa4f65ca18fe0ea71d7ff4e
[ "MIT" ]
47
2020-10-14T21:54:35.000Z
2022-02-25T05:21:39.000Z
stock/migrations/0005_auto_20200909_1547.py
zhou-en/turf_portal
2424ac15248c9f1c0fa4f65ca18fe0ea71d7ff4e
[ "MIT" ]
null
null
null
# Generated by Django 3.1.1 on 2020-09-09 15:47 from django.db import migrations, models import django.db.models.deletion import django_extensions.db.fields
41.168142
158
0.576526
0d096ee6b4123c7c0c3a2ec91a6b9b448d9095f1
131
py
Python
code/webhookhandler/urls/hooks.py
superfluidity/RDCL3D
3c5717941bd4046aa1be178e9004db1dc1c469a0
[ "Apache-2.0" ]
8
2017-03-13T16:34:28.000Z
2021-11-16T11:35:56.000Z
code/webhookhandler/urls/hooks.py
superfluidity/RDCL3D
3c5717941bd4046aa1be178e9004db1dc1c469a0
[ "Apache-2.0" ]
null
null
null
code/webhookhandler/urls/hooks.py
superfluidity/RDCL3D
3c5717941bd4046aa1be178e9004db1dc1c469a0
[ "Apache-2.0" ]
3
2017-03-28T09:26:40.000Z
2020-12-08T14:16:12.000Z
from django.conf.urls import url from webhookhandler import views urlpatterns = [ url(r'^$', views.webhook, name='webhook'), ]
21.833333
46
0.717557
0d09a1ab76fbcba8277780907ddb0e6fb6d99938
1,585
py
Python
tests/test_utils_transition_rec_levels.py
mila-iqia/COVI-AgentSim
7e4dea42ad9c5dd251aa8d7546c647ad4f173d28
[ "Apache-2.0" ]
13
2020-10-25T20:15:25.000Z
2022-03-14T06:34:32.000Z
tests/test_utils_transition_rec_levels.py
mila-iqia/COVI-AgentSim
7e4dea42ad9c5dd251aa8d7546c647ad4f173d28
[ "Apache-2.0" ]
6
2020-10-30T02:09:48.000Z
2022-03-09T12:48:22.000Z
tests/test_utils_transition_rec_levels.py
mila-iqia/COVI-AgentSim
7e4dea42ad9c5dd251aa8d7546c647ad4f173d28
[ "Apache-2.0" ]
6
2020-10-29T15:36:40.000Z
2021-12-05T18:06:45.000Z
import pytest import numpy as np from covid19sim.distribution_normalization.dist_utils import lp_solve_wasserstein, lp_solution_to_transport_plan,\ get_rec_level_transition_matrix
32.346939
114
0.596845
0d09bc63d9c7eb8423e9b0e5da7103e3ef8feb8b
1,018
py
Python
problems/TLane_solutions/problem_005.py
tshralper/tabula-rasa_project-euler
3eb924ae4a38d877098f6b8f8e1118f8ae3514e2
[ "MIT" ]
null
null
null
problems/TLane_solutions/problem_005.py
tshralper/tabula-rasa_project-euler
3eb924ae4a38d877098f6b8f8e1118f8ae3514e2
[ "MIT" ]
null
null
null
problems/TLane_solutions/problem_005.py
tshralper/tabula-rasa_project-euler
3eb924ae4a38d877098f6b8f8e1118f8ae3514e2
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Tues Aug 21 11:42:00 2018 2520 is the smallest number that can be divided by each of the numbers from 1 to 10 without any remainder. Problem: What is the smallest positive number that is evenly divisible by all of the numbers from 1 to 20? Answer: 232792560 Program c...
24.829268
116
0.639489
0d09dad0cfe724b037426ed9ab2ab54f7c0bf42a
887
py
Python
src/masonite/js_routes/generator.py
girardinsamuel/masonite-js-routes
8918b874ff1ca64069745ca5fbb9d4b464ceaf74
[ "MIT" ]
4
2020-11-01T22:51:01.000Z
2021-09-23T23:12:53.000Z
src/masonite/js_routes/generator.py
girardinsamuel/masonite-js-routes
8918b874ff1ca64069745ca5fbb9d4b464ceaf74
[ "MIT" ]
17
2021-02-07T17:32:15.000Z
2022-03-21T22:08:31.000Z
src/masonite/js_routes/generator.py
girardinsamuel/masonite-js-routes
8918b874ff1ca64069745ca5fbb9d4b464ceaf74
[ "MIT" ]
null
null
null
from jinja2 import Markup from .routes import Routes
32.851852
81
0.624577
0d0cd0cb05f33dc84ee05240b7d4e69a6891ad7c
3,710
py
Python
utils/coco_eval.py
jundeli/Scaled-YOLOv4-tensorflow2
dd2ce523258f9a5b851bd6f391a6c07a4999662e
[ "Apache-2.0" ]
30
2021-01-29T13:57:47.000Z
2022-02-09T13:17:57.000Z
utils/coco_eval.py
jundeli/Scaled-YOLOv4-tensorflow2
dd2ce523258f9a5b851bd6f391a6c07a4999662e
[ "Apache-2.0" ]
13
2021-04-16T06:30:27.000Z
2022-03-16T18:42:23.000Z
utils/coco_eval.py
jundeli/Scaled-YOLOv4-tensorflow2
dd2ce523258f9a5b851bd6f391a6c07a4999662e
[ "Apache-2.0" ]
16
2021-04-28T06:51:58.000Z
2022-03-23T23:47:52.000Z
import numpy as np from utils import coco_tools #
42.643678
185
0.643666
0d0e8db9852fae9b33e4425c27943f5b3b25e471
847
py
Python
JsonDB/Models.py
Ajay1290/JsonDB
21213bc2cc826cec8f483eafeab00f9401492a0a
[ "MIT" ]
1
2021-01-03T17:58:54.000Z
2021-01-03T17:58:54.000Z
JsonDB/Models.py
Ajay1290/JsonDB
21213bc2cc826cec8f483eafeab00f9401492a0a
[ "MIT" ]
null
null
null
JsonDB/Models.py
Ajay1290/JsonDB
21213bc2cc826cec8f483eafeab00f9401492a0a
[ "MIT" ]
null
null
null
import inspect
22.891892
78
0.524203
0d10f65fce5aa6e29e98a4acac3f1d7aaad83f0b
337
py
Python
python_programs/calculator_without_if_else.py
abhayanigam/Learn_Python_Programming
801e3fff2b1fe35e4c93f4ced649516c519eb8f9
[ "MIT" ]
1
2021-08-28T15:10:26.000Z
2021-08-28T15:10:26.000Z
python_programs/calculator_without_if_else.py
abhayanigam/Learn_Python_Programming
801e3fff2b1fe35e4c93f4ced649516c519eb8f9
[ "MIT" ]
null
null
null
python_programs/calculator_without_if_else.py
abhayanigam/Learn_Python_Programming
801e3fff2b1fe35e4c93f4ced649516c519eb8f9
[ "MIT" ]
null
null
null
import operator action = { "+" : operator.add, "-" : operator.sub, "/" : operator.truediv, "*" : operator.mul, "**" : pow } num1 = int(input("Enter the num1 value : ")) num2 = int(input("Enter the num2 value : ")) operation = raw_input("Enter the operation : ") print("The ans is", (action[operat...
21.0625
51
0.593472
0d11b0c592e35dc9d299b946d4178c688fd0a1a7
19,324
py
Python
fgivenx/drivers.py
Stefan-Heimersheim/fgivenx
ef8b02f47eea24af4de1a17088c092ef9d523fec
[ "MIT" ]
11
2017-10-13T11:04:53.000Z
2021-03-26T15:54:12.000Z
fgivenx/drivers.py
Stefan-Heimersheim/fgivenx
ef8b02f47eea24af4de1a17088c092ef9d523fec
[ "MIT" ]
16
2018-08-01T09:25:08.000Z
2022-03-04T12:29:52.000Z
fgivenx/drivers.py
Stefan-Heimersheim/fgivenx
ef8b02f47eea24af4de1a17088c092ef9d523fec
[ "MIT" ]
12
2018-02-04T20:34:01.000Z
2021-12-10T10:58:20.000Z
r"""This module provides utilities for computing the grid for contours of a function reconstruction plot. Required ingredients: * sampled posterior probability distribution :math:`P(\theta)` * independent variable :math:`x` * dependent variable :math:`y` * functional form :math:`y = f(x;\th...
35.327239
79
0.620679
0d1213b55876a1f2a9e42dbe712806a7f20ed144
4,711
py
Python
onboarding-common/src/test/resources/model_pb2.py
fabiojna02/on-boarding
92a03ba99da144177404b3cdb3f409dc63d87077
[ "Apache-2.0" ]
3
2018-05-02T05:15:47.000Z
2021-04-16T16:09:48.000Z
onboarding-common/src/test/resources/model_pb2.py
fabiojna02/on-boarding
92a03ba99da144177404b3cdb3f409dc63d87077
[ "Apache-2.0" ]
1
2021-06-15T10:45:35.000Z
2021-06-15T10:45:35.000Z
onboarding-common/src/test/resources/model_pb2.py
fabiojna02/on-boarding
92a03ba99da144177404b3cdb3f409dc63d87077
[ "Apache-2.0" ]
4
2018-05-30T23:33:32.000Z
2021-01-13T13:32:04.000Z
# Generated by the protocol buffer compiler. DO NOT EDIT! # source: model_pb2.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _ref...
32.715278
427
0.727234
0d127119d73c7030ec7f9cc2898f2e3a301807d8
598
py
Python
prtsc.py
xulu199705/RT_Check
9f1ade3bca18cf720839c182bd0e772ce0dc6212
[ "MIT" ]
null
null
null
prtsc.py
xulu199705/RT_Check
9f1ade3bca18cf720839c182bd0e772ce0dc6212
[ "MIT" ]
null
null
null
prtsc.py
xulu199705/RT_Check
9f1ade3bca18cf720839c182bd0e772ce0dc6212
[ "MIT" ]
null
null
null
from PyQt5.QtWidgets import QApplication from PyQt5.QtGui import * import win32gui import sys import json import get_hwnd import get_time f = open('setting.json', encoding='utf-8') setting_data = json.loads(f.read()) # title # hwndtitle
23
82
0.732441
0d14dedaefe2f00be87040a1e016a739fed81d62
3,400
py
Python
vmware_nsxlib/tests/unit/v3/test_trust_management.py
salv-orlando/vmware-nsxlib
283eff2881b99c57b3908d03fb1c91da7dbdf46e
[ "Apache-2.0" ]
null
null
null
vmware_nsxlib/tests/unit/v3/test_trust_management.py
salv-orlando/vmware-nsxlib
283eff2881b99c57b3908d03fb1c91da7dbdf46e
[ "Apache-2.0" ]
null
null
null
vmware_nsxlib/tests/unit/v3/test_trust_management.py
salv-orlando/vmware-nsxlib
283eff2881b99c57b3908d03fb1c91da7dbdf46e
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 VMware, Inc. # All Rights Reserved # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by a...
38.636364
78
0.630294
0d166b2da9d8e5e3174f2b578f39c39f0835046d
745
py
Python
app/pods/pods.py
veryWrong/kube
f3716e962c7db0594d230a701fb862059f0c9578
[ "Apache-2.0" ]
null
null
null
app/pods/pods.py
veryWrong/kube
f3716e962c7db0594d230a701fb862059f0c9578
[ "Apache-2.0" ]
null
null
null
app/pods/pods.py
veryWrong/kube
f3716e962c7db0594d230a701fb862059f0c9578
[ "Apache-2.0" ]
null
null
null
from flask import jsonify from flask_login import login_required from .podClass import Pod from . import pod
24.032258
65
0.585235
0d17348f8f1d18cb7ea86e8791e3c59ce2012a91
240
py
Python
kohtaaminen/__main__.py
sthagen/kohtaaminen
ce0784ccd8be109164d63f2b5dcea128bd6f4534
[ "MIT" ]
1
2021-11-13T10:57:55.000Z
2021-11-13T10:57:55.000Z
kohtaaminen/__main__.py
sthagen/kohtaaminen
ce0784ccd8be109164d63f2b5dcea128bd6f4534
[ "MIT" ]
4
2021-11-14T15:12:06.000Z
2021-11-30T13:54:47.000Z
kohtaaminen/__main__.py
sthagen/kohtaaminen
ce0784ccd8be109164d63f2b5dcea128bd6f4534
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # pylint: disable=expression-not-assigned,line-too-long,missing-module-docstring import sys from kohtaaminen.cli import app if __name__ == '__main__': sys.exit(app(prog_name='kohtaaminen')) # pragma: no cover
26.666667
80
0.725
0d17ef8038b1cc6628d9eda55dcc9584a7f4d287
1,058
py
Python
text-preprocessing/language-model-sentence-extraction.py
azagsam/cross-lingual-summarization
402871dcf7a385cda90914574de24aad7133acf9
[ "Unlicense" ]
null
null
null
text-preprocessing/language-model-sentence-extraction.py
azagsam/cross-lingual-summarization
402871dcf7a385cda90914574de24aad7133acf9
[ "Unlicense" ]
null
null
null
text-preprocessing/language-model-sentence-extraction.py
azagsam/cross-lingual-summarization
402871dcf7a385cda90914574de24aad7133acf9
[ "Unlicense" ]
null
null
null
import xml.etree.ElementTree as ET import os ns = "{http://www.tei-c.org/ns/1.0}" n = 0 for file in os.listdir('tei'): # traverse files if file.startswith('GF'): path = os.path.join('tei', file) # open file for doc in os.listdir(path): n += 1 print(n) # should ...
34.129032
73
0.482987
0d1c477919b18db1aa360b14fced79bbd1b06be3
3,173
py
Python
social_scrapper/spiders/mecenova_spider.py
Ptival/social_scrapper
62631f4c3c34f84990937fe8d917f512c958b41e
[ "BSD-2-Clause-FreeBSD" ]
1
2016-11-08T17:00:33.000Z
2016-11-08T17:00:33.000Z
social_scrapper/spiders/mecenova_spider.py
Ptival/social_scrapper
62631f4c3c34f84990937fe8d917f512c958b41e
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
social_scrapper/spiders/mecenova_spider.py
Ptival/social_scrapper
62631f4c3c34f84990937fe8d917f512c958b41e
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
# coding=utf-8 from scrapy import log from scrapy.spider import BaseSpider from scrapy.contrib.linkextractors.sgml import SgmlLinkExtractor from scrapy.http import Request from scrapy.selector import HtmlXPathSelector from social_scrapper.items import OpportunityItem import re import string
39.6625
79
0.600378
0d1d401c75cecb335ed3a64c63f335987af9024a
2,351
py
Python
python/examples/session_trees/session_trees.py
pushtechnology/diffusion-examples
06248aea8c632e935e3c648dc1732c7cb9ac9042
[ "Apache-2.0" ]
11
2016-01-24T00:33:27.000Z
2021-08-23T06:21:06.000Z
python/examples/session_trees/session_trees.py
pushtechnology/diffusion-examples
06248aea8c632e935e3c648dc1732c7cb9ac9042
[ "Apache-2.0" ]
5
2015-07-21T21:05:56.000Z
2020-09-02T13:03:01.000Z
python/examples/session_trees/session_trees.py
pushtechnology/diffusion-examples
06248aea8c632e935e3c648dc1732c7cb9ac9042
[ "Apache-2.0" ]
18
2016-03-20T19:29:10.000Z
2022-03-10T16:58:46.000Z
import asyncio import diffusion.datatypes from diffusion.features.control.session_trees.branch_mapping_table import ( BranchMappingTable, ) server_url = "ws://localhost:8080" principal = "control" credentials = diffusion.Credentials("password") path = "foo/bar" topic_type = diffusion.datatypes.STRING value = "bla...
33.112676
92
0.623139
0d2008f8ed89f74206d38081357c68a4d36a753c
1,757
py
Python
src/chat.py
DanCh11/virtual-assistant
b6601f20bd851864f4a76dd4c73c8c5266a0014f
[ "MIT" ]
null
null
null
src/chat.py
DanCh11/virtual-assistant
b6601f20bd851864f4a76dd4c73c8c5266a0014f
[ "MIT" ]
null
null
null
src/chat.py
DanCh11/virtual-assistant
b6601f20bd851864f4a76dd4c73c8c5266a0014f
[ "MIT" ]
null
null
null
import random import json from numpy.lib.utils import source import torch import speech_recognition as sr r = sr.Recognizer() from .model import NeuralNetwork from .nltk_utils import bag_of_words, tokenize device = torch.device('cuda' if torch.cuda.is_available() else 'cpu') with open('./src/data/data.json', 'r') ...
24.068493
82
0.599886
0d211cab8a1e4dc92883081ebdefc1ba4f0b85a9
407
py
Python
aoj/alds/alds1_11_c.py
knuu/competitive-programming
16bc68fdaedd6f96ae24310d697585ca8836ab6e
[ "MIT" ]
1
2018-11-12T15:18:55.000Z
2018-11-12T15:18:55.000Z
aoj/alds/alds1_11_c.py
knuu/competitive-programming
16bc68fdaedd6f96ae24310d697585ca8836ab6e
[ "MIT" ]
null
null
null
aoj/alds/alds1_11_c.py
knuu/competitive-programming
16bc68fdaedd6f96ae24310d697585ca8836ab6e
[ "MIT" ]
null
null
null
from collections import deque V = int(input()) edge = [[] for _ in range(V)] for _ in range(V): u, _, *v = map(lambda x: int(x)-1, input().split()) edge[u] = v dist = [-1] * V dist[0] = 0 que = deque([0]) while len(que): v = que.popleft() for c in edge[v]: if dist[c] == -1: dist[c] ...
21.421053
55
0.511057
0d21d1ee1ed65ea490436b216844a040ad4eba70
1,350
py
Python
lib/config.py
NHGmaniac/voctorec
96c088b6775214b9eeff312201a29f82ba0e4bb0
[ "MIT" ]
1
2019-04-14T12:05:49.000Z
2019-04-14T12:05:49.000Z
lib/config.py
zo-edv/voctorec
96c088b6775214b9eeff312201a29f82ba0e4bb0
[ "MIT" ]
null
null
null
lib/config.py
zo-edv/voctorec
96c088b6775214b9eeff312201a29f82ba0e4bb0
[ "MIT" ]
null
null
null
import os.path import logging from configparser import ConfigParser from lib.args import Args import lib.connection as Connection __all__ = ['Config'] ConfigParser.getlist = getlist ConfigParser.fetchServerConfig = fetchServerConfig files = [ os.path.join(os.path.dirname(os.path.realpath(__file__)), ...
28.723404
77
0.687407
0d22359b28f08f1148894802b045634a551dddd6
98
py
Python
python_3.8/random_examples/passing_reference_example.py
elLui/python_tools_and_practice_v3.8
13b3134dd4126547b5eea200a55c43127d9bd80e
[ "MIT" ]
1
2020-12-15T00:13:35.000Z
2020-12-15T00:13:35.000Z
python_3.8/random_examples/passing_reference_example.py
elLui/python_tools_and_practice_v3.8
13b3134dd4126547b5eea200a55c43127d9bd80e
[ "MIT" ]
null
null
null
python_3.8/random_examples/passing_reference_example.py
elLui/python_tools_and_practice_v3.8
13b3134dd4126547b5eea200a55c43127d9bd80e
[ "MIT" ]
null
null
null
spam = [1,2,3] eggs(spam) print(spam)
14
33
0.693878
0d2236c09fb61de0facb0db8ff5d2c14d3843c5c
608
py
Python
Virtualenv/Env/src/GoTravel/Home/models.py
Anoop01234/Go-Travel
aa91f1a4ce7e7ed78de8eadc55e6a25d1a73bdd8
[ "MIT" ]
null
null
null
Virtualenv/Env/src/GoTravel/Home/models.py
Anoop01234/Go-Travel
aa91f1a4ce7e7ed78de8eadc55e6a25d1a73bdd8
[ "MIT" ]
null
null
null
Virtualenv/Env/src/GoTravel/Home/models.py
Anoop01234/Go-Travel
aa91f1a4ce7e7ed78de8eadc55e6a25d1a73bdd8
[ "MIT" ]
1
2021-12-21T17:27:34.000Z
2021-12-21T17:27:34.000Z
from django.db import models
23.384615
48
0.685855
0d226d1f6cfd99b44cb7009663d19a87f591f745
740
py
Python
setup.py
vishalbelsare/conjugate_prior
9b1c623643d74f2fca1b08ccc5aa9f82a5152afa
[ "MIT" ]
44
2017-09-27T13:02:23.000Z
2022-03-27T11:54:58.000Z
setup.py
vishalbelsare/conjugate_prior
9b1c623643d74f2fca1b08ccc5aa9f82a5152afa
[ "MIT" ]
5
2018-01-11T22:09:39.000Z
2022-03-02T18:41:41.000Z
setup.py
vishalbelsare/conjugate_prior
9b1c623643d74f2fca1b08ccc5aa9f82a5152afa
[ "MIT" ]
8
2017-11-16T22:16:10.000Z
2022-03-02T16:59:22.000Z
from distutils.core import setup setup( name="conjugate_prior", packages=["conjugate_prior"], install_requires=[ 'setuptools', 'scipy', 'numpy', 'matplotlib', ], long_description="https://github.com/urigoren/conjugate_prior/blob/master/README.md", long_descriptio...
32.173913
115
0.660811
0d25115d04e08b90aa66b7cfb606030c77fa82e9
1,674
py
Python
common_python/tests/util/test_dataframe.py
ScienceStacks/common_python
2732f928e13592f2089269731c8e2b04f856a77d
[ "MIT" ]
1
2019-05-01T00:22:32.000Z
2019-05-01T00:22:32.000Z
common_python/tests/util/test_dataframe.py
ScienceStacks/PythonCommon
2732f928e13592f2089269731c8e2b04f856a77d
[ "MIT" ]
1
2019-05-31T21:59:30.000Z
2019-05-31T21:59:30.000Z
common_python/tests/util/test_dataframe.py
ScienceStacks/PythonCommon
2732f928e13592f2089269731c8e2b04f856a77d
[ "MIT" ]
null
null
null
import pandas as pd import numpy as np import unittest import common_python.util.dataframe as dataframe IGNORE_TEST = False IS_PLOT = False COL_A = 'a' COL_B = 'b' COL_C = 'c' DF = pd.DataFrame({COL_A: range(3)}) DF[COL_B] = 10*DF[COL_A] SIZE = 3 DFS = [DF for _ in range(SIZE)] DF1 = pd.DataFrame({COL_A: range(SIZE),...
24.985075
75
0.646953
0d25e78273bf0fb2530639adedc0b08ba41c54b5
7,412
py
Python
formation/migrations/0001_initial.py
ahemery/formation_usagers
eb50682db798922ec393050624c4cbd3bb23675a
[ "Apache-2.0" ]
null
null
null
formation/migrations/0001_initial.py
ahemery/formation_usagers
eb50682db798922ec393050624c4cbd3bb23675a
[ "Apache-2.0" ]
null
null
null
formation/migrations/0001_initial.py
ahemery/formation_usagers
eb50682db798922ec393050624c4cbd3bb23675a
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.10 on 2016-09-22 09:06 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion
38.806283
125
0.527253
0d2646ddaa7ba21f35f69ed1044171f259cfecec
1,327
py
Python
Walker_1.1.py
ey3lock3r/The-Nature-of-Code
cca3a0359a46570b1cf0b02315be8cee1728a01a
[ "MIT" ]
null
null
null
Walker_1.1.py
ey3lock3r/The-Nature-of-Code
cca3a0359a46570b1cf0b02315be8cee1728a01a
[ "MIT" ]
null
null
null
Walker_1.1.py
ey3lock3r/The-Nature-of-Code
cca3a0359a46570b1cf0b02315be8cee1728a01a
[ "MIT" ]
null
null
null
import matplotlib.pyplot as plt import matplotlib.animation as animation import numpy as np import noise map = lambda n, start1, stop1, start2, stop2: ((n-start1)/(stop1-start1))*(stop2-start2)+start2 agent = Walker() agent.display()
31.595238
123
0.600603
0d2792d0fd44769568c671a62acca11f98fc94a4
305
py
Python
iotapp/Classes/httprequest.py
fcarbah/IOT
6b323c75844d0a6744df12059466d6c54bd0b242
[ "MIT" ]
null
null
null
iotapp/Classes/httprequest.py
fcarbah/IOT
6b323c75844d0a6744df12059466d6c54bd0b242
[ "MIT" ]
null
null
null
iotapp/Classes/httprequest.py
fcarbah/IOT
6b323c75844d0a6744df12059466d6c54bd0b242
[ "MIT" ]
null
null
null
import urllib3
17.941176
52
0.629508
0d29d6a3791f034f1468053cbd3889c90964d234
6,421
py
Python
lib/bot.py
Simplicitus/YouTube-Comment-Bot
66e89f5f19d4dc815efb97e705d2fa8ed1795659
[ "MIT" ]
3
2019-12-06T21:19:01.000Z
2021-05-09T02:10:50.000Z
lib/bot.py
Simplicitus/YouTube-Comment-Bot
66e89f5f19d4dc815efb97e705d2fa8ed1795659
[ "MIT" ]
1
2020-06-24T03:59:46.000Z
2020-06-24T13:18:05.000Z
lib/bot.py
Simplicitus/YouTube-Comment-Bot
66e89f5f19d4dc815efb97e705d2fa8ed1795659
[ "MIT" ]
3
2021-03-01T06:40:48.000Z
2021-11-16T14:52:04.000Z
import time import random import selenium from selenium import webdriver from selenium.webdriver.common.by import By from selenium.webdriver.support.ui import WebDriverWait from selenium.webdriver.support import expected_conditions as EC from selenium.common.exceptions import NoSuchElementException ...
32.429293
252
0.633858
0d2a58865f6970d3204e6af6aaac5002cdd6877f
962
py
Python
make/photon/prepare/commands/gencerts.py
n-marton/harbor
2859cd8b6981d329d2ef6720b90bbb074d370708
[ "Apache-2.0" ]
1
2019-06-06T02:39:40.000Z
2019-06-06T02:39:40.000Z
make/photon/prepare/commands/gencerts.py
koulq/harbor
fdb82ae4fa1d5e8987caa076feb7a61f5baae902
[ "Apache-2.0" ]
null
null
null
make/photon/prepare/commands/gencerts.py
koulq/harbor
fdb82ae4fa1d5e8987caa076feb7a61f5baae902
[ "Apache-2.0" ]
null
null
null
import os import sys import click import pathlib from subprocess import check_call, PIPE, STDOUT from utils.cert import openssl_installed from utils.misc import get_realpath gen_tls_script = pathlib.Path(__file__).parent.parent.joinpath('scripts/gencert.sh').absolute()
32.066667
95
0.697505
0d2abaf7d4625450ee48b619ae33cd5c8bf035ab
369
py
Python
program3solution/kargsexample.py
dpocheng/Python-Data-Structure-of-Python
66b99fa41f831e8c3089e4e2fd664a7ef3268e5e
[ "Apache-2.0" ]
null
null
null
program3solution/kargsexample.py
dpocheng/Python-Data-Structure-of-Python
66b99fa41f831e8c3089e4e2fd664a7ef3268e5e
[ "Apache-2.0" ]
null
null
null
program3solution/kargsexample.py
dpocheng/Python-Data-Structure-of-Python
66b99fa41f831e8c3089e4e2fd664a7ef3268e5e
[ "Apache-2.0" ]
null
null
null
# kargs example print('Demonstrating how kargs works in functions') #Call successfully (watch what is printed) f(a=1,b=True,c=['a','b','c'],d=print)
26.357143
76
0.612466
0d2b31d40272b35f2023f3820d8bcc5908033214
1,795
py
Python
UnityEngine/MatchTargetWeightMask/__init__.py
Grim-es/udon-pie-auto-completion
c2cd86554ed615cdbbb01e19fa40665eafdfaedc
[ "MIT" ]
null
null
null
UnityEngine/MatchTargetWeightMask/__init__.py
Grim-es/udon-pie-auto-completion
c2cd86554ed615cdbbb01e19fa40665eafdfaedc
[ "MIT" ]
null
null
null
UnityEngine/MatchTargetWeightMask/__init__.py
Grim-es/udon-pie-auto-completion
c2cd86554ed615cdbbb01e19fa40665eafdfaedc
[ "MIT" ]
null
null
null
from UdonPie import System from UdonPie import UnityEngine from UdonPie.Undefined import *
19.725275
49
0.528691
0d2b6f960487325e486555e1a8e76de0fbf8d2ff
11,572
py
Python
discord/threads.py
lewistham9x/discord.py
9abe8eacef8ea318f464184bac47f1c37860b73b
[ "MIT" ]
null
null
null
discord/threads.py
lewistham9x/discord.py
9abe8eacef8ea318f464184bac47f1c37860b73b
[ "MIT" ]
null
null
null
discord/threads.py
lewistham9x/discord.py
9abe8eacef8ea318f464184bac47f1c37860b73b
[ "MIT" ]
null
null
null
""" The MIT License (MIT) Copyright (c) 2015-present Rapptz Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merg...
30.293194
108
0.616488
0d2c0268ef322fad9aa747f4d00280b173987f3e
3,222
py
Python
hardware/testbenches/common/drivers/axi4stream/init.py
Intuity/nexus
0d1414fa2ea518dae9f031930c40692ebac5d154
[ "Apache-2.0" ]
6
2021-06-28T05:52:15.000Z
2022-03-27T20:45:28.000Z
hardware/testbenches/common/drivers/axi4stream/init.py
Intuity/nexus
0d1414fa2ea518dae9f031930c40692ebac5d154
[ "Apache-2.0" ]
null
null
null
hardware/testbenches/common/drivers/axi4stream/init.py
Intuity/nexus
0d1414fa2ea518dae9f031930c40692ebac5d154
[ "Apache-2.0" ]
null
null
null
# Copyright 2021, Peter Birch, mailto:peter@lightlogic.co.uk # # 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 l...
37.905882
79
0.625078
0d2c686104229d82bd390d145a5a40d32cee5a5b
1,111
py
Python
src/samplemanager/util.py
cowanml/samplemanager
c802559d84b8470255edbe593996db58d86ec914
[ "BSD-3-Clause" ]
null
null
null
src/samplemanager/util.py
cowanml/samplemanager
c802559d84b8470255edbe593996db58d86ec914
[ "BSD-3-Clause" ]
2
2015-02-25T20:58:52.000Z
2015-02-25T20:59:31.000Z
src/samplemanager/util.py
cowanml/samplemanager
c802559d84b8470255edbe593996db58d86ec914
[ "BSD-3-Clause" ]
null
null
null
import uuid def new_uid(): """ Generate a new uid. """ return uuid.uuid4() def get_owner(): """ dummy stub for now, will eventually reliably/securely(?) determine the owner somehow. """ return "skinner" def run_on_empty(func, arg_list, arg_dict, key, **kwargs): """ Che...
22.22
81
0.59946
0d2c7b5a5ceccd8409da7d4f14ad50c7fda7c2c7
67
py
Python
rising_threads/lib/__init__.py
RGood/rising_threads
c9c0986da04bfded5f1d21c74b18a71f76d8ffaa
[ "MIT" ]
2
2018-10-04T21:17:23.000Z
2019-08-05T23:32:36.000Z
rising_threads/lib/__init__.py
RGood/rising_threads
c9c0986da04bfded5f1d21c74b18a71f76d8ffaa
[ "MIT" ]
null
null
null
rising_threads/lib/__init__.py
RGood/rising_threads
c9c0986da04bfded5f1d21c74b18a71f76d8ffaa
[ "MIT" ]
null
null
null
from .new_reader import NewReader from .predictor import Predictor
33.5
34
0.850746
0d2c7e6cf904b313acc9aca26daeafb4a2b97695
107
py
Python
teagles_advent_2021/day_13/pt2.py
teagles/teagles-advent-2021
d49d842663d6382bd0d4d93198ccd66ab68e681b
[ "MIT" ]
null
null
null
teagles_advent_2021/day_13/pt2.py
teagles/teagles-advent-2021
d49d842663d6382bd0d4d93198ccd66ab68e681b
[ "MIT" ]
null
null
null
teagles_advent_2021/day_13/pt2.py
teagles/teagles-advent-2021
d49d842663d6382bd0d4d93198ccd66ab68e681b
[ "MIT" ]
null
null
null
import sys from .lib import parse_input if __name__ == '__main__': main()
8.916667
28
0.626168
0d2ca382df7cba262c4e6017e9421c3abf0eb32c
8,871
py
Python
src/bsc/mace.py
bryant1410/arxiv2018-bayesian-ensembles
d97cf64270d34b2301903678e6fbfe170c4c2105
[ "Apache-2.0" ]
null
null
null
src/bsc/mace.py
bryant1410/arxiv2018-bayesian-ensembles
d97cf64270d34b2301903678e6fbfe170c4c2105
[ "Apache-2.0" ]
null
null
null
src/bsc/mace.py
bryant1410/arxiv2018-bayesian-ensembles
d97cf64270d34b2301903678e6fbfe170c4c2105
[ "Apache-2.0" ]
null
null
null
import numpy as np from scipy.special import logsumexp from scipy.special.basic import psi
36.356557
125
0.535791
0d2dd29aaf64d74ebb6ddf68f9ba97a38795078e
2,069
py
Python
worker intelligence/segment_path.py
hotpoor/XdHacks_201910_1920_automove
47ecfd3470d1586b07dc1c44422eb5253f3a6659
[ "MIT" ]
null
null
null
worker intelligence/segment_path.py
hotpoor/XdHacks_201910_1920_automove
47ecfd3470d1586b07dc1c44422eb5253f3a6659
[ "MIT" ]
null
null
null
worker intelligence/segment_path.py
hotpoor/XdHacks_201910_1920_automove
47ecfd3470d1586b07dc1c44422eb5253f3a6659
[ "MIT" ]
2
2019-11-13T06:11:25.000Z
2020-03-13T06:19:00.000Z
import numpy as np import argparse import imutils import time import cv2 from mss import mss COLORS = open("RoadSeg/seg-colors.txt").read().strip().split("\n") COLORS = [np.array(c.split(",")).astype("int") for c in COLORS] COLORS = np.array(COLORS, dtype="uint8") net = cv2.dnn.readNet("RoadSeg/seg-model.net") # sc...
24.341176
137
0.632189
0d30310fe782f189939b1f87e316277289556088
6,229
py
Python
custom_components/sleepiq_custom/switch.py
brianlich/sleepiq-custom
2610f945c9037d7f63213190e3f6aebcf91f172f
[ "MIT" ]
null
null
null
custom_components/sleepiq_custom/switch.py
brianlich/sleepiq-custom
2610f945c9037d7f63213190e3f6aebcf91f172f
[ "MIT" ]
null
null
null
custom_components/sleepiq_custom/switch.py
brianlich/sleepiq-custom
2610f945c9037d7f63213190e3f6aebcf91f172f
[ "MIT" ]
null
null
null
import logging from homeassistant import config_entries from homeassistant.const import ATTR_ATTRIBUTION from homeassistant.components.switch import SwitchEntity, DEVICE_CLASS_SWITCH from . import SleepIQDataUpdateCoordinator, SleepIQDevice from .const import ATTRIBUTION_TEXT, DOMAIN _LOGGER = logging.getLogger(__nam...
36.215116
93
0.655964
0d304089ceaf983f4579b7204f7deafcca5ebf04
9,711
py
Python
cdk/cdk/cdk_stack.py
yyolk/issue.cash
ba931032df833cf81065b6bdc33a7baf425c5a0d
[ "0BSD" ]
null
null
null
cdk/cdk/cdk_stack.py
yyolk/issue.cash
ba931032df833cf81065b6bdc33a7baf425c5a0d
[ "0BSD" ]
null
null
null
cdk/cdk/cdk_stack.py
yyolk/issue.cash
ba931032df833cf81065b6bdc33a7baf425c5a0d
[ "0BSD" ]
null
null
null
from aws_cdk import core as cdk # For consistency with other languages, `cdk` is the preferred import name for # the CDK's core module. The following line also imports it as `core` for use # with examples from the CDK Developer's Guide, which are in the process of # being updated to use `cdk`. You may delete this im...
36.923954
82
0.500463
0d30ba0c9547dae71e9f9210ae262d6b86afc144
480
py
Python
intake/migrations/0031_add_view_app_stats_permission.py
cforlando/intake
a5233d5c0f862f28ee265b9b4831405aabeec7e2
[ "MIT" ]
51
2016-07-20T02:26:57.000Z
2021-07-07T14:45:06.000Z
intake/migrations/0031_add_view_app_stats_permission.py
enterstudio/intake
793a8935914fdc8356321ec46e54d9ae1eeeee04
[ "MIT" ]
1,091
2016-04-29T18:07:45.000Z
2021-04-19T18:39:39.000Z
intake/migrations/0031_add_view_app_stats_permission.py
enterstudio/intake
793a8935914fdc8356321ec46e54d9ae1eeeee04
[ "MIT" ]
24
2016-06-14T18:10:43.000Z
2021-11-14T20:26:39.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.10.1 on 2016-12-04 00:00 from __future__ import unicode_literals from django.db import migrations
24
112
0.639583
0d31952ea492f717453060dc4a8247a16873ad5a
2,356
py
Python
v2/liveread.py
jelson/aqi
96e3d9646130a8128aba9c190dcb85d7a7efba50
[ "MIT" ]
7
2021-08-25T08:00:22.000Z
2022-01-10T19:04:08.000Z
v2/liveread.py
jelson/aqi
96e3d9646130a8128aba9c190dcb85d7a7efba50
[ "MIT" ]
null
null
null
v2/liveread.py
jelson/aqi
96e3d9646130a8128aba9c190dcb85d7a7efba50
[ "MIT" ]
1
2021-11-03T04:20:05.000Z
2021-11-03T04:20:05.000Z
#!/usr/bin/env python3 # read PMS3001 data from the serial port. timestamp each line when it # arrives. batch into 30-record chunks and insert all records into the # database. also write json-formatted records to stdout. import aqi import argparse import datetime import json import psycopg2 import psycopg2.extras imp...
22.873786
85
0.58489
0d32f4ff6ee71312c513d4994af8ed77bd5fe5e9
165
py
Python
examples/simple.py
TassieBruce/mplot-pybind
fbed1a131d9fead0dae363b9988daa57ca018330
[ "MIT" ]
null
null
null
examples/simple.py
TassieBruce/mplot-pybind
fbed1a131d9fead0dae363b9988daa57ca018330
[ "MIT" ]
null
null
null
examples/simple.py
TassieBruce/mplot-pybind
fbed1a131d9fead0dae363b9988daa57ca018330
[ "MIT" ]
null
null
null
#!/usr/bin/python3 import matplotlib.pyplot as plt x = [0, 1, 2, 3] y = [0, 1, 4, 9] fig, ax = plt.subplots() fig.suptitle("simple") ax.plot(x, y, "r") plt.show()
15
31
0.6
0d3467136f870f9065110eb11da1c3f9d8589a35
2,804
py
Python
app/spiders/nowcoder_spider.py
Kyooooma/view-oj-backend
3b2fc9ed0b8b52029b45cd30f90e8dd925a09d35
[ "Apache-2.0" ]
6
2019-08-05T13:01:19.000Z
2021-07-16T09:59:45.000Z
app/spiders/nowcoder_spider.py
Kyooooma/view-oj-backend
3b2fc9ed0b8b52029b45cd30f90e8dd925a09d35
[ "Apache-2.0" ]
null
null
null
app/spiders/nowcoder_spider.py
Kyooooma/view-oj-backend
3b2fc9ed0b8b52029b45cd30f90e8dd925a09d35
[ "Apache-2.0" ]
6
2019-12-05T13:04:38.000Z
2020-07-05T15:05:40.000Z
import re from bs4 import BeautifulSoup from app.config.setting import DEFAULT_PROBLEM_RATING from app.libs.spider_http import SpiderHttp from app.spiders.base_spider import BaseSpider
37.386667
98
0.548146
0d34eb346bb9dfbe63517e654bace4e32c34725e
347
py
Python
vaccinate/core/migrations/0113_populate_last_imported_at.py
MoralCode/vial
cdaaab053a9cf1cef40104a2cdf480b7932d58f7
[ "MIT" ]
7
2021-06-28T17:33:47.000Z
2022-02-12T21:54:59.000Z
vaccinate/core/migrations/0113_populate_last_imported_at.py
MoralCode/vial
cdaaab053a9cf1cef40104a2cdf480b7932d58f7
[ "MIT" ]
104
2021-06-17T21:25:30.000Z
2022-03-28T14:21:57.000Z
vaccinate/core/migrations/0113_populate_last_imported_at.py
MoralCode/vial
cdaaab053a9cf1cef40104a2cdf480b7932d58f7
[ "MIT" ]
1
2021-06-25T17:52:23.000Z
2021-06-25T17:52:23.000Z
from django.db import migrations
21.6875
75
0.642651
0d352171e20c80fe211b08987f0ec929af6bf855
556
py
Python
datasets/bspline.py
jiafeng5513/relaynet_pytorch
aa533f7bb08ec640baf5c5bdd3d806a6ec76e4f7
[ "MIT" ]
null
null
null
datasets/bspline.py
jiafeng5513/relaynet_pytorch
aa533f7bb08ec640baf5c5bdd3d806a6ec76e4f7
[ "MIT" ]
null
null
null
datasets/bspline.py
jiafeng5513/relaynet_pytorch
aa533f7bb08ec640baf5c5bdd3d806a6ec76e4f7
[ "MIT" ]
null
null
null
import numpy as np import pylab as pl from scipy import interpolate import matplotlib.pyplot as plt x = np.linspace(0, 2*np.pi+np.pi/4, 10) y = np.sin(x) x_new = np.linspace(0, 2*np.pi+np.pi/4, 100) #f_linear = interpolate.interp1d(x, y) tck = interpolate.splrep(x, y) # (xi,yi) y_bspline = interpolate.splev(x_new, ...
25.272727
72
0.697842
0d3675ca0a5f53791722399a192cdf57f9d7f538
2,539
py
Python
extra/fibfrog.py
lsbardel/mathfun
98e7c210409c2b5777e91059c3651cef4f3045dd
[ "BSD-3-Clause" ]
null
null
null
extra/fibfrog.py
lsbardel/mathfun
98e7c210409c2b5777e91059c3651cef4f3045dd
[ "BSD-3-Clause" ]
null
null
null
extra/fibfrog.py
lsbardel/mathfun
98e7c210409c2b5777e91059c3651cef4f3045dd
[ "BSD-3-Clause" ]
null
null
null
""" A small frog wants to get to the other side of a river. The frog is initially located at one bank of the river (position 1) and wants to get to the other bank (position N). The frog can jump over any distance F(K), where F(K) is the K-th Fibonacci number. Luckily, there are many leaves on the river, and the frog ca...
30.22619
396
0.64041
0d37601c36fc07b6996503d8e3a5bf10dc917cf4
499
py
Python
src/olympia/hero/migrations/0012_auto_20200709_0316.py
shashwatsingh/addons-server
8fce98901104349055a828b5a47865f5e8f4120b
[ "BSD-3-Clause" ]
843
2016-02-09T13:00:37.000Z
2022-03-20T19:17:06.000Z
src/olympia/hero/migrations/0012_auto_20200709_0316.py
shashwatsingh/addons-server
8fce98901104349055a828b5a47865f5e8f4120b
[ "BSD-3-Clause" ]
10,187
2016-02-05T23:51:05.000Z
2022-03-31T15:24:44.000Z
src/olympia/hero/migrations/0012_auto_20200709_0316.py
shashwatsingh/addons-server
8fce98901104349055a828b5a47865f5e8f4120b
[ "BSD-3-Clause" ]
551
2016-02-08T20:32:16.000Z
2022-03-15T16:49:24.000Z
# Generated by Django 2.2.14 on 2020-07-09 03:16 from django.db import migrations, models import olympia.hero.models
24.95
122
0.661323
0d378d1920e988479dd11424edf919287eb9238f
5,512
py
Python
bindings/pydrake/__init__.py
RobotLocomotion/drake-python3.7
ae397a4c6985262d23e9675b9bf3927c08d027f5
[ "BSD-3-Clause" ]
2
2021-02-25T02:01:02.000Z
2021-03-17T04:52:04.000Z
bindings/pydrake/__init__.py
RobotLocomotion/drake-python3.7
ae397a4c6985262d23e9675b9bf3927c08d027f5
[ "BSD-3-Clause" ]
null
null
null
bindings/pydrake/__init__.py
RobotLocomotion/drake-python3.7
ae397a4c6985262d23e9675b9bf3927c08d027f5
[ "BSD-3-Clause" ]
1
2021-06-13T12:05:39.000Z
2021-06-13T12:05:39.000Z
""" Python bindings for `Drake: Model-Based Design and Verification for Robotics <https://drake.mit.edu/>`_. This Python API documentation is a work in progress. Most of it is generated automatically from the C++ API documentation, and thus may have some C++-specific artifacts. For general overview and API documentati...
39.654676
79
0.719884
0d38c4e32571e359cdb435e64dddbc4b00e04991
3,794
py
Python
meiduo_mall/apps/meiduo_admin/views/statistical.py
Wang-TaoTao/meiduo_project
f95f097c2a85f500d0fd264a58e2f0d92771fff6
[ "MIT" ]
null
null
null
meiduo_mall/apps/meiduo_admin/views/statistical.py
Wang-TaoTao/meiduo_project
f95f097c2a85f500d0fd264a58e2f0d92771fff6
[ "MIT" ]
null
null
null
meiduo_mall/apps/meiduo_admin/views/statistical.py
Wang-TaoTao/meiduo_project
f95f097c2a85f500d0fd264a58e2f0d92771fff6
[ "MIT" ]
null
null
null
from datetime import date, timedelta from rest_framework.permissions import IsAdminUser from rest_framework.response import Response from rest_framework.views import APIView from apps.goods.models import GoodsVisitCount from apps.meiduo_admin.serializers.statistical import GoodsVisitCountSerialzer from apps.orders.m...
22.317647
106
0.557986
0d38e3ab88ea80e866640d3de02dfdd15dddc370
5,732
py
Python
gdd-car-sales/explore.py
kgdunn/car-sales
3d17f5c6a2ddc4d740c4298f7f3ec832565f8882
[ "BSD-3-Clause" ]
null
null
null
gdd-car-sales/explore.py
kgdunn/car-sales
3d17f5c6a2ddc4d740c4298f7f3ec832565f8882
[ "BSD-3-Clause" ]
null
null
null
gdd-car-sales/explore.py
kgdunn/car-sales
3d17f5c6a2ddc4d740c4298f7f3ec832565f8882
[ "BSD-3-Clause" ]
null
null
null
""" https://towardsdatascience.com/custom-transformers-and-ml-data-pipelines-with-python-20ea2a7adb65 Download the dataset from Kaggle, https://www.kaggle.com/harlfoxem/housesalesprediction?select=kc_house_data.csv and place it in the 'data' directory of this repo. """ from sklearn.base import BaseEstimator, Trans...
30.328042
99
0.681089
0d3af27a21b0e6ce8a4fec8e0d62653c2921601c
125
py
Python
py_models_parser/__init__.py
xnuinside/py-models-parser
c89f12f0c33e28dc86f74172246e4e4d9a7037a8
[ "MIT" ]
9
2021-05-06T06:19:27.000Z
2021-09-27T16:07:04.000Z
py_models_parser/__init__.py
xnuinside/py-models-parser
c89f12f0c33e28dc86f74172246e4e4d9a7037a8
[ "MIT" ]
1
2021-07-05T12:52:53.000Z
2021-07-06T11:53:54.000Z
py_models_parser/__init__.py
xnuinside/py-models-parser
c89f12f0c33e28dc86f74172246e4e4d9a7037a8
[ "MIT" ]
1
2021-05-06T14:17:14.000Z
2021-05-06T14:17:14.000Z
from py_models_parser.core import dump_result, parse, parse_from_file __all__ = ["parse", "parse_from_file", "dump_result"]
31.25
69
0.792
0d3b796689fd089c3ff8084e44253e175cdfeb5a
5,965
py
Python
ir_axioms/modules/similarity.py
heinrichreimer/ir_axioms
f7349c4adde96cfa19c7247824a70a4662c07582
[ "MIT" ]
5
2022-03-11T15:28:04.000Z
2022-03-11T15:28:58.000Z
ir_axioms/modules/similarity.py
heinrichreimer/ir_axioms
f7349c4adde96cfa19c7247824a70a4662c07582
[ "MIT" ]
null
null
null
ir_axioms/modules/similarity.py
heinrichreimer/ir_axioms
f7349c4adde96cfa19c7247824a70a4662c07582
[ "MIT" ]
null
null
null
from abc import ABC, abstractmethod from functools import lru_cache, cached_property from itertools import product, combinations from statistics import mean from typing import ( final, Final, Iterable, Dict, Collection, Optional, Tuple, Sequence ) from nltk.corpus import wordnet from pymagnitude import Magnitude ...
29.529703
79
0.599162
0d3ee9cc24210f010fd549b409d1c00016953241
590
py
Python
day03/vec_reg_linear_grad.py
elbourki1/Machine-Learning-bootcamp-42
cf6a987ede555d8d208aed5b915cafe8078dd848
[ "Apache-2.0" ]
null
null
null
day03/vec_reg_linear_grad.py
elbourki1/Machine-Learning-bootcamp-42
cf6a987ede555d8d208aed5b915cafe8078dd848
[ "Apache-2.0" ]
null
null
null
day03/vec_reg_linear_grad.py
elbourki1/Machine-Learning-bootcamp-42
cf6a987ede555d8d208aed5b915cafe8078dd848
[ "Apache-2.0" ]
null
null
null
import numpy as np if __name__ == "__main__": X = np.array([ [ -6, -7, -9], [ 13, -2, 14], [ -7, 14, -1], [ -8, -4, 6], [ -5, -9, 6], [ 1, -5, 11], [ 9, -11, 8]]) Y = np.array([2, 14, -13, 5, 12, 4, -19]) Z = np.array([3,10.5,-6]) print(vec_reg...
23.6
55
0.454237
0d4039809a0d69d1289df06615122acf02856f92
12,032
py
Python
client/src/dolbyio_rest_apis/communications/monitor/models.py
dolbyio-samples/dolbyio-rest-apis-client-python
37354dc10f967c4656776f9e2651a2284a11f530
[ "MIT" ]
1
2021-12-23T17:55:06.000Z
2021-12-23T17:55:06.000Z
client/src/dolbyio_rest_apis/communications/monitor/models.py
dolbyio-samples/dolbyio-rest-apis-client-python
37354dc10f967c4656776f9e2651a2284a11f530
[ "MIT" ]
null
null
null
client/src/dolbyio_rest_apis/communications/monitor/models.py
dolbyio-samples/dolbyio-rest-apis-client-python
37354dc10f967c4656776f9e2651a2284a11f530
[ "MIT" ]
null
null
null
""" dolbyio_rest_apis.communications.monitor.models ~~~~~~~~~~~~~~~ This module contains the models used by the Dolby.io APIs. """ from dolbyio_rest_apis.core.helpers import get_value_or_default, in_and_not_none from typing import List
38.688103
96
0.673953
0d412b3852785d25c5a8a4284b141fa51cb72aac
51,094
py
Python
coverlovin2/test/test_coverlovin2.py
salexan2001/coverlovin2
1fdaf572d1729326e8ccdd428840ab51b08c0aac
[ "Apache-2.0" ]
null
null
null
coverlovin2/test/test_coverlovin2.py
salexan2001/coverlovin2
1fdaf572d1729326e8ccdd428840ab51b08c0aac
[ "Apache-2.0" ]
null
null
null
coverlovin2/test/test_coverlovin2.py
salexan2001/coverlovin2
1fdaf572d1729326e8ccdd428840ab51b08c0aac
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3.7 # -*- coding: utf-8 -*- """ Test the coverlovin2 project using pytest. Technique and recommendations taken from https://docs.pytest.org/en/latest/ Parts of this file follow breaks formatting conventions. Allowed since this is test code and since long lines of repetitive test cases deserve ex...
37.569118
151
0.55621
0d41c887cb9f6706361db0802341cfc70a71a865
267
py
Python
Code/square.py
CompBiochBiophLab/IntroBioinfo
ddbfb45f6cbcede2e10b589e3d6dab840cccb484
[ "MIT" ]
null
null
null
Code/square.py
CompBiochBiophLab/IntroBioinfo
ddbfb45f6cbcede2e10b589e3d6dab840cccb484
[ "MIT" ]
null
null
null
Code/square.py
CompBiochBiophLab/IntroBioinfo
ddbfb45f6cbcede2e10b589e3d6dab840cccb484
[ "MIT" ]
null
null
null
#! /usr/bin/python """square.py -- Make some noise about a square. """ my_square = Square(5, 2) print my_square.area()
17.8
47
0.685393
0d44c925facd78aa51cb6104a890b5594d2404be
368
py
Python
tests/__init__.py
tunystom-rossum/rossum
a49c5e02bdfbae95fe54e7ee556439355e4c339d
[ "MIT" ]
5
2021-07-27T02:20:37.000Z
2022-03-30T07:53:30.000Z
tests/__init__.py
tunystom-rossum/rossum
a49c5e02bdfbae95fe54e7ee556439355e4c339d
[ "MIT" ]
31
2020-09-29T15:06:46.000Z
2022-02-17T09:51:16.000Z
tests/__init__.py
tunystom-rossum/rossum
a49c5e02bdfbae95fe54e7ee556439355e4c339d
[ "MIT" ]
6
2021-02-25T08:17:44.000Z
2022-02-16T17:09:35.000Z
from collections import UserDict
21.647059
51
0.57337
0d44fefde3f6349cad5b1889e79b5643cbf2434d
7,740
py
Python
zmqpy/tests/pyzmq_tests/test_poller.py
felipecruz/zmqpy
91b55bf631c3b96e6f71fc3b26a3e435ae6289df
[ "BSD-2-Clause-FreeBSD" ]
2
2015-02-13T05:17:45.000Z
2017-12-19T17:16:35.000Z
zmqpy/tests/pyzmq_tests/test_poller.py
felipecruz/zmqpy
91b55bf631c3b96e6f71fc3b26a3e435ae6289df
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
zmqpy/tests/pyzmq_tests/test_poller.py
felipecruz/zmqpy
91b55bf631c3b96e6f71fc3b26a3e435ae6289df
[ "BSD-2-Clause-FreeBSD" ]
2
2017-06-15T09:02:21.000Z
2017-12-19T17:16:07.000Z
# # Copyright (c) 2010 Brian E. Granger # # This file is part of pyzmq. # # pyzmq is free software; you can redistribute it and/or modify it under # the terms of the Lesser GNU General Public License as published by # the Free Software Foundation; either version 3 of the License, or # (at your option)...
32.658228
79
0.603488
0d4561c1593e781ac498d60ae3cfa527c1997b58
1,654
py
Python
chiscore/_data/_files.py
limix/skat
64884196a15a1ae3b576a37c86bdb8f32335d4f4
[ "MIT" ]
3
2019-10-03T15:58:20.000Z
2021-11-02T16:46:36.000Z
chiscore/_data/_files.py
limix/skat
64884196a15a1ae3b576a37c86bdb8f32335d4f4
[ "MIT" ]
1
2019-01-25T14:49:37.000Z
2019-05-13T16:45:32.000Z
chiscore/_data/_files.py
limix/skat
64884196a15a1ae3b576a37c86bdb8f32335d4f4
[ "MIT" ]
null
null
null
import shutil import tempfile import warnings from os.path import dirname, join, realpath _filenames = [ "davies_pvalue.npz", "optimal_davies_pvalue.npz", "danilo_nan.npz", "bound.npz", "inf.npz", ]
27.114754
80
0.541717
0d46999df264f1cd3022334f4843567100fc4d39
1,738
py
Python
src/Domain/Entities/Game.py
Urbistondo/EventbriteShogi
0160d31080a0c69e843b64feab47d93d1f22a425
[ "MIT" ]
null
null
null
src/Domain/Entities/Game.py
Urbistondo/EventbriteShogi
0160d31080a0c69e843b64feab47d93d1f22a425
[ "MIT" ]
null
null
null
src/Domain/Entities/Game.py
Urbistondo/EventbriteShogi
0160d31080a0c69e843b64feab47d93d1f22a425
[ "MIT" ]
null
null
null
import datetime from Domain.Entities.Piece import Color
25.940299
96
0.649597
0d46cd9844d76b97b0c12ebdd843bc1779a4f31f
2,630
py
Python
Scripts/Concept Whitening Classifier/Scripts/Make_Concept_Dataset.py
alen-smajic/OCR-for-customs-declarations-and-transport-documents
5a885ceacee614dcd2f5a8490857dc7d945dcf0d
[ "MIT" ]
null
null
null
Scripts/Concept Whitening Classifier/Scripts/Make_Concept_Dataset.py
alen-smajic/OCR-for-customs-declarations-and-transport-documents
5a885ceacee614dcd2f5a8490857dc7d945dcf0d
[ "MIT" ]
null
null
null
Scripts/Concept Whitening Classifier/Scripts/Make_Concept_Dataset.py
alen-smajic/OCR-for-customs-declarations-and-transport-documents
5a885ceacee614dcd2f5a8490857dc7d945dcf0d
[ "MIT" ]
null
null
null
import numpy as np import cv2 import random import os path = "./Concept_Dataset_script_generated/" #create circles print("create circles") make_geometric_objects(path, 200, "circle") print("create triangles") make_geometric_objects(path, 200, "triangle") print("create reds") make_color_images(path, 200...
26.565657
100
0.58365
0d472fbb58989d43f332a99c7e755fd8ece3e7b1
149
py
Python
monthly.py
akapila011/NSE-Stock-Price-Crawler
ca368c5ae9846d088bcd46eb2487dea5b06f4923
[ "MIT" ]
null
null
null
monthly.py
akapila011/NSE-Stock-Price-Crawler
ca368c5ae9846d088bcd46eb2487dea5b06f4923
[ "MIT" ]
2
2021-03-31T19:19:56.000Z
2021-12-13T20:01:54.000Z
monthly.py
cpegasusb/nsewhizz
8c0768f57280c36269c209891a22c614177f3507
[ "MIT" ]
1
2019-12-09T11:43:47.000Z
2019-12-09T11:43:47.000Z
from src import * inputPath = 'data/daily/' outputPath = 'data/monthly/' formatter = FormatData() formatter.getMonthlyData(inputPath, outputPath)
16.555556
47
0.758389
0d47b3c871b167725d4d584aad7ea2eef5991580
469
py
Python
src/models/rf_class.py
justinessert/feature-selection
86abef593746e27416f4901d2803bd9eb8b4051e
[ "MIT" ]
null
null
null
src/models/rf_class.py
justinessert/feature-selection
86abef593746e27416f4901d2803bd9eb8b4051e
[ "MIT" ]
null
null
null
src/models/rf_class.py
justinessert/feature-selection
86abef593746e27416f4901d2803bd9eb8b4051e
[ "MIT" ]
1
2019-05-15T00:20:08.000Z
2019-05-15T00:20:08.000Z
from sklearn.ensemble import RandomForestClassifier import pandas as pd from models.model import Model
26.055556
83
0.716418
0d49718c4750f5419b254d35be2e7597bfe67a84
3,742
py
Python
old/p4diff.py
jtilander/p4scripts
0af2ed414deb7ed5c5d3e1890075fbd45fb42ba3
[ "MIT" ]
1
2016-06-28T11:08:54.000Z
2016-06-28T11:08:54.000Z
old/p4diff.py
jtilander/p4scripts
0af2ed414deb7ed5c5d3e1890075fbd45fb42ba3
[ "MIT" ]
null
null
null
old/p4diff.py
jtilander/p4scripts
0af2ed414deb7ed5c5d3e1890075fbd45fb42ba3
[ "MIT" ]
null
null
null
#!/usr/bin/python # (c) 2006 Jim Tilander import sys import os import string import re import base64 import zlib P4EXE = 'p4' NEWFILEPATTERN = re.compile( r'==== ([^#]+)#([\d]+) - (.+) ====(.*)$' ) MARKER = '================' USAGE = """Usage: p4diff <outputfile> [options] Produces input to p4patch O...
27.514706
143
0.546232
0d49b3c282c0d5aaafc4cee1e7dc907315c8b1b1
4,329
py
Python
app/tests/test_eventactions.py
twatchy/cito_engine
a62dce3c76567dd36b7efcaa70e03728b335f44e
[ "Apache-2.0" ]
null
null
null
app/tests/test_eventactions.py
twatchy/cito_engine
a62dce3c76567dd36b7efcaa70e03728b335f44e
[ "Apache-2.0" ]
null
null
null
app/tests/test_eventactions.py
twatchy/cito_engine
a62dce3c76567dd36b7efcaa70e03728b335f44e
[ "Apache-2.0" ]
null
null
null
"""Copyright 2014 Cyrus Dasadia Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distr...
42.441176
131
0.682144
0d49e9c5572e12815fd80216fbeda6ddc1dd1c90
756
py
Python
test/msvs/config_attrs/gyptest-config_attrs.py
Jet-Streaming/gyp
6488d24fc7bdd8bc563998d77d9a0950781bbaf5
[ "BSD-3-Clause" ]
null
null
null
test/msvs/config_attrs/gyptest-config_attrs.py
Jet-Streaming/gyp
6488d24fc7bdd8bc563998d77d9a0950781bbaf5
[ "BSD-3-Clause" ]
null
null
null
test/msvs/config_attrs/gyptest-config_attrs.py
Jet-Streaming/gyp
6488d24fc7bdd8bc563998d77d9a0950781bbaf5
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # Copyright (c) 2012 Google Inc. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """ Verifies that msvs_configuration_attributes and msbuild_configuration_attributes are applied by using them to set the OutputDir...
23.625
76
0.723545
0d4a9888ae820cac189843adcdb32cd2236a6d23
87
py
Python
rtxp/ripple/traits.py
johansten/rtxp-py
47380dca6f9f4b53b90aa297df3f773c44ad4423
[ "BSD-3-Clause" ]
1
2015-06-18T07:02:02.000Z
2015-06-18T07:02:02.000Z
rtxp/ripple/traits.py
johansten/rtxp-py
47380dca6f9f4b53b90aa297df3f773c44ad4423
[ "BSD-3-Clause" ]
null
null
null
rtxp/ripple/traits.py
johansten/rtxp-py
47380dca6f9f4b53b90aa297df3f773c44ad4423
[ "BSD-3-Clause" ]
null
null
null
NATIVE = 'XRP' ALPHABET = 'rpshnaf39wBUDNEGHJKLM4PQRST7VWXYZ2bcdeCg65jkm8oFqi1tuvAxyz'
29
71
0.862069
0d4c948f5a6b82f9e20993ba76cb0021d715d245
8,016
py
Python
code.py
dnkorte/skating_stopwatch
6cde91471782298a60d2a43f52470730bb94a3ae
[ "MIT" ]
null
null
null
code.py
dnkorte/skating_stopwatch
6cde91471782298a60d2a43f52470730bb94a3ae
[ "MIT" ]
null
null
null
code.py
dnkorte/skating_stopwatch
6cde91471782298a60d2a43f52470730bb94a3ae
[ "MIT" ]
null
null
null
""" # PyPortal referee stopwatch for figure skating competitions # Author(s): Don Korte # Module: code.py is mainline initialization and master loop # # github: https://github.com/dnkorte/skating_stopwatch.git # # MIT License # # Copyright (c) 2019 Don Korte # # Permission is hereby granted, free of charge, to any ...
45.288136
120
0.721806
0d4ca2293273a6038abc8c6538534335292f79f2
2,746
py
Python
examples/h2co_mm_example_despotic.py
glangsto/pyspeckit
346b24fb828d1d33c7891cdde7609723e51af34c
[ "MIT" ]
79
2015-03-03T15:06:20.000Z
2022-03-27T21:29:47.000Z
examples/h2co_mm_example_despotic.py
glangsto/pyspeckit
346b24fb828d1d33c7891cdde7609723e51af34c
[ "MIT" ]
240
2015-01-04T02:59:12.000Z
2021-11-13T15:11:14.000Z
examples/h2co_mm_example_despotic.py
glangsto/pyspeckit
346b24fb828d1d33c7891cdde7609723e51af34c
[ "MIT" ]
68
2015-03-02T12:23:12.000Z
2022-02-28T10:26:36.000Z
import pyspeckit as psk from pyspeckit.spectrum import models from astropy.table import Table from spectral_cube import SpectralCube import numpy as np import matplotlib.pyplot as plt import despotic import pyspeckit.spectrum.readers.read_class import os import shutil if not os.path.exists('ph2cogrid.fits'): if n...
47.344828
95
0.531682
0d4cf207716d10d789ee993c688b562c50706913
730
py
Python
flask_app/app.py
DmytroKomisar/DevOpsTestTask
41391a3566da7bc619251bac73578e2c33ba6b10
[ "Apache-2.0", "MIT" ]
null
null
null
flask_app/app.py
DmytroKomisar/DevOpsTestTask
41391a3566da7bc619251bac73578e2c33ba6b10
[ "Apache-2.0", "MIT" ]
null
null
null
flask_app/app.py
DmytroKomisar/DevOpsTestTask
41391a3566da7bc619251bac73578e2c33ba6b10
[ "Apache-2.0", "MIT" ]
null
null
null
from flask import Flask, request, abort, jsonify app = Flask(__name__) if __name__ == '__main__': app.run(debug=True,host='0.0.0.0')
26.071429
108
0.646575