hexsha
stringlengths
40
40
size
int64
5
2.06M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
248
max_stars_repo_name
stringlengths
5
125
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
3
248
max_issues_repo_name
stringlengths
5
125
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
3
248
max_forks_repo_name
stringlengths
5
125
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
5
2.06M
avg_line_length
float64
1
1.02M
max_line_length
int64
3
1.03M
alphanum_fraction
float64
0
1
count_classes
int64
0
1.6M
score_classes
float64
0
1
count_generators
int64
0
651k
score_generators
float64
0
1
count_decorators
int64
0
990k
score_decorators
float64
0
1
count_async_functions
int64
0
235k
score_async_functions
float64
0
1
count_documentation
int64
0
1.04M
score_documentation
float64
0
1
7b24aa6646e92566319ce68092ddf4db0af43da1
2,600
py
Python
make.py
loicseguin/astronomie
b489d615adb136991ff3fc82ca06c4f6791ca8c6
[ "BSD-2-Clause" ]
null
null
null
make.py
loicseguin/astronomie
b489d615adb136991ff3fc82ca06c4f6791ca8c6
[ "BSD-2-Clause" ]
7
2020-01-19T21:27:07.000Z
2020-01-19T21:28:09.000Z
make.py
loicseguin/astronomie
b489d615adb136991ff3fc82ca06c4f6791ca8c6
[ "BSD-2-Clause" ]
null
null
null
"""Construit le site Explorer et comprendre l'Univers, incluant les diapositives et le livre. Le logiciel Pandoc est utilisé pour obtenir des présentations dans différents formats. On peut construire tous les fichiers html avec la commande $ python make.py """ import subprocess import os import sys # Dossiers...
30.232558
82
0.576154
0
0
0
0
0
0
0
0
1,004
0.38438
7b25b9ec772098b6a401939f74bc6b08ca37a58b
280
py
Python
geosnap/tests/get_data.py
WawNun/geosnap
9838498b89d42c94fef73ee2983dd385dab17345
[ "BSD-3-Clause" ]
148
2019-04-19T00:16:59.000Z
2022-03-24T06:35:47.000Z
geosnap/tests/get_data.py
WawNun/geosnap
9838498b89d42c94fef73ee2983dd385dab17345
[ "BSD-3-Clause" ]
178
2019-04-15T21:54:36.000Z
2022-03-31T03:08:29.000Z
geosnap/tests/get_data.py
WawNun/geosnap
9838498b89d42c94fef73ee2983dd385dab17345
[ "BSD-3-Clause" ]
25
2019-04-19T21:27:56.000Z
2022-03-28T21:03:31.000Z
import os from pathlib import PurePath try: from geosnap import io except: pass path = os.getcwd() try: io.store_ltdb(sample=PurePath(path, 'ltdb_sample.zip'), fullcount=PurePath(path, 'ltdb_full.zip')) io.store_ncdb(PurePath(path, "ncdb.csv")) except: pass
18.666667
102
0.707143
0
0
0
0
0
0
0
0
42
0.15
7b26132c0d8b78762b805dd6438fa5d2c8d060b1
13,370
py
Python
plotting/utils.py
plai-group/amortized-rejection-sampling
1e85253ae1e6ef1c939e1c488e55f9d95ee48355
[ "MIT" ]
null
null
null
plotting/utils.py
plai-group/amortized-rejection-sampling
1e85253ae1e6ef1c939e1c488e55f9d95ee48355
[ "MIT" ]
null
null
null
plotting/utils.py
plai-group/amortized-rejection-sampling
1e85253ae1e6ef1c939e1c488e55f9d95ee48355
[ "MIT" ]
null
null
null
import numpy as np import torch from tqdm import tqdm import matplotlib as mpl # https://gist.github.com/thriveth/8560036 color_cycle = ['#377eb8', '#ff7f00', '#4daf4a', '#f781bf', '#a65628', '#984ea3', '#999999', '#e41a1c', '#dede00'] labels_dict = {"ic": "IC", "prior": ...
35.558511
128
0.618624
546
0.040838
0
0
0
0
0
0
5,657
0.423111
7b28352f856a9eaa1fa2b24d293fcd81d28eb11c
4,750
py
Python
dfa/visualize.py
garyzhao/FRGAN
8aeb064fc93b45d3d8e074c5253b4f7a287582f4
[ "Apache-2.0" ]
39
2018-07-28T04:37:48.000Z
2022-01-20T18:34:37.000Z
dfa/visualize.py
garyzhao/FRGAN
8aeb064fc93b45d3d8e074c5253b4f7a287582f4
[ "Apache-2.0" ]
2
2018-08-27T08:19:22.000Z
2019-08-16T09:15:34.000Z
dfa/visualize.py
garyzhao/FRGAN
8aeb064fc93b45d3d8e074c5253b4f7a287582f4
[ "Apache-2.0" ]
8
2018-07-31T09:33:49.000Z
2020-12-06T10:16:53.000Z
from __future__ import division from __future__ import print_function import numpy as np import cv2 import matplotlib.pyplot as plt from .face import compute_bbox_size end_list = np.array([17, 22, 27, 42, 48, 31, 36, 68], dtype=np.int32) - 1 def plot_kpt(image, kpt): ''' Draw 68 key points Args: ima...
35.714286
129
0.573895
0
0
0
0
0
0
0
0
638
0.134316
7b2c39567282edd435ce6c7b2d8bdb6da59671bf
439
py
Python
bin/curvature.py
AgeYY/prednet
90668d98b88e29bbaa68a7709e4fcb3664c110e8
[ "MIT" ]
null
null
null
bin/curvature.py
AgeYY/prednet
90668d98b88e29bbaa68a7709e4fcb3664c110e8
[ "MIT" ]
null
null
null
bin/curvature.py
AgeYY/prednet
90668d98b88e29bbaa68a7709e4fcb3664c110e8
[ "MIT" ]
null
null
null
# calculate the curverture import numpy as np import matplotlib.pyplot as plt from predusion.tools import curvature radius = 2 n_point = 10 circle_curve = [[radius * np.sin(t), radius * np.cos(t)] for t in np.linspace(0, 2 * np.pi, n_point, endpoint=False)] circle_curve = np.array(circle_curve) #plt.figure() #plt...
20.904762
117
0.724374
0
0
0
0
0
0
0
0
102
0.232346
7b2c3dcb95bb9538fdb4cb9f25daeb1cf42bc3eb
875
py
Python
cocos/tests/test_numerics/test_statistics/test_mean.py
michaelnowotny/cocos
3c34940d7d9eb8592a97788a5df84b8d472f2928
[ "MIT" ]
101
2019-03-30T05:23:01.000Z
2021-11-27T09:09:40.000Z
cocos/tests/test_numerics/test_statistics/test_mean.py
michaelnowotny/cocos
3c34940d7d9eb8592a97788a5df84b8d472f2928
[ "MIT" ]
3
2019-04-17T06:04:12.000Z
2020-12-14T17:36:01.000Z
cocos/tests/test_numerics/test_statistics/test_mean.py
michaelnowotny/cocos
3c34940d7d9eb8592a97788a5df84b8d472f2928
[ "MIT" ]
5
2020-02-07T14:29:50.000Z
2020-12-09T17:54:07.000Z
import cocos.device import cocos.numerics as cn import numpy as np import pytest test_data = [np.array([[1, 2, 3], [4, 5, 6], [7, 8, 20]], dtype=np.int32), np.array([[0.2, 1.0, 0.5], [0.4, 0.5, 0.6], [0.7, 0.2, 0.25]], dtype=np.float32), np.array([...
26.515152
80
0.537143
0
0
0
0
451
0.515429
0
0
120
0.137143
7b2f67783a54c7281fccbf52bb33f6fc8f65fc62
482
py
Python
tests/individual_samples/long_doc.py
MiWeiss/docstr_coverage
502ab0174ea261383f497af2476317d4cc199665
[ "MIT" ]
50
2019-01-25T16:53:39.000Z
2022-03-17T22:02:06.000Z
tests/individual_samples/long_doc.py
HunterMcGushion/docstr_coverage
502ab0174ea261383f497af2476317d4cc199665
[ "MIT" ]
66
2019-01-25T11:45:43.000Z
2022-03-30T11:55:47.000Z
tests/individual_samples/long_doc.py
MiWeiss/docstr_coverage
502ab0174ea261383f497af2476317d4cc199665
[ "MIT" ]
23
2019-01-28T08:37:42.000Z
2021-06-16T12:35:27.000Z
""" this is a very long docstring this is a very long docstring this is a very long docstring this is a very long docstring this is a very long docstring this is a very long docstring this is a very long docstring this is a very long docstring this is a very long docstring """ class A: """This is the first class...
20.083333
65
0.707469
200
0.414938
0
0
0
0
0
0
386
0.80083
7b2fdc657bc9709a4e827c864106583a0abe59bc
461
py
Python
Lib/site-packages/elasticsearch_django/signals.py
Nibraz15/FullTextSearch
79d03a9b5c0fc94219ad9a70fe57818496844660
[ "bzip2-1.0.6" ]
null
null
null
Lib/site-packages/elasticsearch_django/signals.py
Nibraz15/FullTextSearch
79d03a9b5c0fc94219ad9a70fe57818496844660
[ "bzip2-1.0.6" ]
null
null
null
Lib/site-packages/elasticsearch_django/signals.py
Nibraz15/FullTextSearch
79d03a9b5c0fc94219ad9a70fe57818496844660
[ "bzip2-1.0.6" ]
null
null
null
import django.dispatch # signal fired just before calling model.index_search_document pre_index = django.dispatch.Signal(providing_args=["instance", "index"]) # signal fired just before calling model.update_search_document pre_update = django.dispatch.Signal( providing_args=["instance", "index", "update_fields"] ...
35.461538
73
0.796095
0
0
0
0
0
0
0
0
254
0.550976
7b30e1e10fc484e48de9eae99bc4b49a95428432
528
py
Python
adverse/signals.py
michael-xander/communique-webapp
85b450d7f6d0313c5e5ef53a262a850b7e93c3d6
[ "MIT" ]
null
null
null
adverse/signals.py
michael-xander/communique-webapp
85b450d7f6d0313c5e5ef53a262a850b7e93c3d6
[ "MIT" ]
null
null
null
adverse/signals.py
michael-xander/communique-webapp
85b450d7f6d0313c5e5ef53a262a850b7e93c3d6
[ "MIT" ]
null
null
null
from django.db.models.signals import post_save from django.dispatch import receiver from communique.utils.utils_signals import generate_notifications from user.models import NotificationRegistration from .models import AdverseEvent @receiver(post_save, sender=AdverseEvent) def post_adverse_event_save_callback(sender...
37.714286
103
0.829545
0
0
0
0
293
0.554924
0
0
115
0.217803
7b32ae7712bef36c9a2b8c71ee2035133eed9f7e
1,117
py
Python
hoomd/test-py/test_run_callback.py
PetersResearchGroup/PCND
584768cc683a6df0152ead69b567d05b781aab2b
[ "BSD-3-Clause" ]
2
2020-03-30T14:38:50.000Z
2020-06-02T05:53:41.000Z
hoomd/test-py/test_run_callback.py
PetersResearchGroup/PCND
584768cc683a6df0152ead69b567d05b781aab2b
[ "BSD-3-Clause" ]
null
null
null
hoomd/test-py/test_run_callback.py
PetersResearchGroup/PCND
584768cc683a6df0152ead69b567d05b781aab2b
[ "BSD-3-Clause" ]
1
2020-05-20T07:00:08.000Z
2020-05-20T07:00:08.000Z
# -*- coding: iso-8859-1 -*- # Maintainer: joaander import hoomd hoomd.context.initialize() import unittest class analyze_callback_tests(unittest.TestCase): def setUp(self): sysdef = hoomd.init.create_lattice(unitcell=hoomd.lattice.sq(a=2.0), n=[1,2]); s...
23.270833
76
0.521038
934
0.836168
0
0
0
0
0
0
73
0.065354
7b332b95f4298d84e9d671c6d88abc96e79fcae6
7,145
py
Python
cheshire3/parser.py
cheshire3/cheshire3
306348831ec110229c78a7c5f0f2026a0f394d2c
[ "Python-2.0", "Unlicense" ]
3
2015-08-02T09:03:28.000Z
2017-12-06T09:26:14.000Z
cheshire3/parser.py
cheshire3/cheshire3
306348831ec110229c78a7c5f0f2026a0f394d2c
[ "Python-2.0", "Unlicense" ]
5
2015-08-17T01:16:35.000Z
2015-09-16T21:51:27.000Z
cheshire3/parser.py
cheshire3/cheshire3
306348831ec110229c78a7c5f0f2026a0f394d2c
[ "Python-2.0", "Unlicense" ]
6
2015-05-17T15:32:20.000Z
2020-04-22T08:43:16.000Z
import cStringIO import StringIO from xml.sax import make_parser, ErrorHandler, SAXParseException from xml.sax import InputSource as SaxInput from xml.dom.minidom import parseString as domParseString from xml.parsers.expat import ExpatError from lxml import etree from cheshire3.baseObjects import Parser from cheshir...
31.065217
77
0.588383
6,568
0.919244
0
0
0
0
0
0
1,258
0.176067
9e26ff289e7c1f363b136e3f4b93da4585664e71
6,275
py
Python
scripts/checkpT_curv.py
masamuch/hepqpr-qallse
0b39f8531c6f3c758b94c31f4633f75dcfeb67ad
[ "Apache-2.0" ]
null
null
null
scripts/checkpT_curv.py
masamuch/hepqpr-qallse
0b39f8531c6f3c758b94c31f4633f75dcfeb67ad
[ "Apache-2.0" ]
null
null
null
scripts/checkpT_curv.py
masamuch/hepqpr-qallse
0b39f8531c6f3c758b94c31f4633f75dcfeb67ad
[ "Apache-2.0" ]
null
null
null
from hepqpr.qallse import * from hepqpr.qallse.plotting import * from hepqpr.qallse.cli.func import time_this import time import pickle # import the method from hepqpr.qallse.dsmaker import create_dataset modelName = "D0" #modelName = "Mp" #modelName = "Doublet" maxTry=1 # 5e-3 : 167 MeV # 8e-4 : 1.04 GeV varDen...
35.055866
140
0.577211
0
0
0
0
0
0
0
0
1,335
0.212749
9e27be8d3067835dcbda95c1548885176ae1ebf3
440
py
Python
ifconfigparser/__init__.py
KnightWhoSayNi/ifconfig-parser
4921ac9d6be6244b062d082c164f5a5e69522478
[ "MIT" ]
17
2018-10-06T15:19:27.000Z
2022-02-25T05:05:22.000Z
ifconfigparser/__init__.py
KnightWhoSayNi/ifconfig-parser
4921ac9d6be6244b062d082c164f5a5e69522478
[ "MIT" ]
3
2019-11-22T23:40:58.000Z
2019-12-06T02:26:59.000Z
ifconfigparser/__init__.py
KnightWhoSayNi/ifconfig-parser
4921ac9d6be6244b062d082c164f5a5e69522478
[ "MIT" ]
2
2019-05-10T15:36:46.000Z
2020-11-18T11:56:33.000Z
#!/usr/bin/python # -*- coding: utf-8 -*- # ====================================================== # # File name: __init__.py # Author: threeheadedknight@protonmail.com # Date created: 30.06.2018 17:00 # Python Version: 3.7 # # ====================================================== from .ifconfig_parser im...
25.882353
56
0.522727
0
0
0
0
0
0
0
0
342
0.777273
9e287d153cff7385984c9cc16aca63539ed882d4
3,382
py
Python
api/views/movies.py
iamvukasin/filminds
54c9d7175f3a06f411cc750a694758bd683af1ee
[ "MIT" ]
2
2019-06-15T01:40:04.000Z
2019-12-19T05:11:17.000Z
api/views/movies.py
iamvukasin/filminds
54c9d7175f3a06f411cc750a694758bd683af1ee
[ "MIT" ]
1
2021-03-09T05:22:51.000Z
2021-03-09T05:22:51.000Z
api/views/movies.py
iamvukasin/filminds
54c9d7175f3a06f411cc750a694758bd683af1ee
[ "MIT" ]
2
2019-06-24T19:24:25.000Z
2020-05-29T13:57:35.000Z
from abc import ABC, abstractmethod import tmdbsimple as tmdb from django.contrib.auth.decorators import login_required from django.http import Http404 from django.utils.decorators import method_decorator from rest_framework.response import Response from rest_framework.views import APIView from api.serializers import...
27.274194
119
0.646363
2,945
0.870787
0
0
1,027
0.303666
0
0
883
0.261088
9e29911c2cf893692ea46e7dbded4b692a9e33a0
3,853
py
Python
apps/lk/views.py
DaniilGorokhov/CaloryHelper
6bf5ddce85479508b6498c3e4b2e0f4e5dd01b51
[ "MIT" ]
null
null
null
apps/lk/views.py
DaniilGorokhov/CaloryHelper
6bf5ddce85479508b6498c3e4b2e0f4e5dd01b51
[ "MIT" ]
null
null
null
apps/lk/views.py
DaniilGorokhov/CaloryHelper
6bf5ddce85479508b6498c3e4b2e0f4e5dd01b51
[ "MIT" ]
1
2021-02-15T17:40:23.000Z
2021-02-15T17:40:23.000Z
from django.shortcuts import render from django.http import Http404, HttpResponseRedirect from django.urls import reverse from apps.index.models import User, UserHistory from sova_avia.settings import MEDIA_ROOT from imageai.Prediction import ImagePrediction import json from .models import Article from .forms import ...
35.675926
125
0.659227
0
0
0
0
0
0
0
0
938
0.242565
9e2adc78300cf5e3761e489b41942048bb77f39e
544
py
Python
que-shi-de-shu-zi-lcof.py
tsonglew/leetcode-solution
abce0c36def55a8d3bf86fca531246a29920e771
[ "Unlicense" ]
null
null
null
que-shi-de-shu-zi-lcof.py
tsonglew/leetcode-solution
abce0c36def55a8d3bf86fca531246a29920e771
[ "Unlicense" ]
null
null
null
que-shi-de-shu-zi-lcof.py
tsonglew/leetcode-solution
abce0c36def55a8d3bf86fca531246a29920e771
[ "Unlicense" ]
null
null
null
class Solution: def missingNumber(self, nums) -> int: if nums[0] != 0: return 0 if nums[-1] != len(nums): return len(nums) return self.f(nums) def f(self, nums): print(nums) if len(nums) <= 3: for i in range(1, len(nums)): ...
28.631579
44
0.439338
543
0.998162
0
0
0
0
0
0
0
0
9e2d53249be23d06d560e65260043ec473bab942
1,159
py
Python
setup.py
CZ-NIC/deckard
35ed3c59b27c52fc2e3a187679251353f5efe6c0
[ "BSD-2-Clause" ]
30
2016-08-06T20:56:17.000Z
2021-12-13T07:56:23.000Z
setup.py
CZ-NIC/deckard
35ed3c59b27c52fc2e3a187679251353f5efe6c0
[ "BSD-2-Clause" ]
6
2016-05-31T10:48:51.000Z
2018-07-03T09:05:12.000Z
setup.py
CZ-NIC/deckard
35ed3c59b27c52fc2e3a187679251353f5efe6c0
[ "BSD-2-Clause" ]
10
2016-04-03T13:55:19.000Z
2020-11-28T01:23:49.000Z
#!/usr/bin/env python3 from distutils.core import setup version = '3.0' setup( name='deckard', version=version, description='DNS toolkit', long_description=( "Deckard is a DNS software testing based on library pydnstest." "It supports parsing and running Unbound-like test scenarios," ...
31.324324
71
0.609146
0
0
0
0
0
0
0
0
734
0.633305
9e2f62d9ca279a2304c666233677d5d0d663e572
1,894
py
Python
tests/testing_utils.py
alguerre/TrackEditorWeb
e92cb8554e804af8620298ca75567e6ce653b15e
[ "MIT" ]
1
2021-09-06T14:56:27.000Z
2021-09-06T14:56:27.000Z
tests/testing_utils.py
qjx666/TrackEditorWeb
e92cb8554e804af8620298ca75567e6ce653b15e
[ "MIT" ]
79
2021-07-06T13:37:09.000Z
2021-10-21T11:09:10.000Z
tests/testing_utils.py
qjx666/TrackEditorWeb
e92cb8554e804af8620298ca75567e6ce653b15e
[ "MIT" ]
1
2022-01-30T05:44:25.000Z
2022-01-30T05:44:25.000Z
import os from urllib.parse import urljoin from selenium import webdriver from TrackApp.models import User, Track from libs import track def login(driver: webdriver, live_server_url: str, username: str, password: str): driver.get(urljoin(live_server_url, 'login')) driver.find_el...
30.548387
71
0.661563
0
0
0
0
0
0
0
0
229
0.120908
9e30175d2516252b61b551241d3a7d897279d318
1,563
py
Python
SimulEval/simuleval/agents/agent.py
ashkanalinejad/Supervised-Simultaneous-MT
d09397ed86bbf4133d5d9b906030a8881ee4c13f
[ "MIT" ]
2
2022-01-11T19:27:11.000Z
2022-01-12T11:06:53.000Z
SimulEval/simuleval/agents/agent.py
sfu-natlang/Supervised-Simultaneous-MT
12c3a53887c985ae24199ecef2f7b2335fe214c6
[ "MIT" ]
1
2022-02-12T03:02:52.000Z
2022-02-12T04:27:10.000Z
SimulEval/simuleval/agents/agent.py
sfu-natlang/Supervised-Simultaneous-MT
12c3a53887c985ae24199ecef2f7b2335fe214c6
[ "MIT" ]
1
2022-02-27T14:22:36.000Z
2022-02-27T14:22:36.000Z
# Copyright (c) Facebook, Inc. and its affiliates. # All rights reserved. # # This source code is licensed under the license found in the # LICENSE file in the root directory of this source tree. from simuleval.states import TextStates, SpeechStates class Agent(object): data_type = None def __init__(self, a...
26.948276
76
0.662828
1,309
0.837492
0
0
105
0.067179
0
0
420
0.268714
9e301c912b42abb46c781523b9340a9c6ccd01d4
13,317
py
Python
source/mre-plugin-samples/Plugins/DetectShotsByRekognitionVideo/DetectShotsByRekognitionVideo.py
aws-samples/aws-media-replay-engine-samples
d9b479f3c7da87c8b6d2a265334a6d3aae58d885
[ "MIT-0" ]
4
2022-02-03T17:23:19.000Z
2022-03-16T13:13:09.000Z
source/mre-plugin-samples/Plugins/DetectShotsByRekognitionVideo/DetectShotsByRekognitionVideo.py
aws-samples/aws-media-replay-engine-samples
d9b479f3c7da87c8b6d2a265334a6d3aae58d885
[ "MIT-0" ]
1
2022-02-22T01:25:57.000Z
2022-03-10T21:27:31.000Z
source/mre-plugin-samples/Plugins/DetectShotsByRekognitionVideo/DetectShotsByRekognitionVideo.py
aws-samples/aws-media-replay-engine-samples
d9b479f3c7da87c8b6d2a265334a6d3aae58d885
[ "MIT-0" ]
1
2022-02-16T02:23:43.000Z
2022-02-16T02:23:43.000Z
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. # SPDX-License-Identifier: MIT-0 import boto3 import json import sys import time import ffmpeg from MediaReplayEnginePluginHelper import OutputHelper from MediaReplayEnginePluginHelper import Status from MediaReplayEnginePluginHelper import DataPlane...
39.283186
139
0.535181
10,644
0.799279
0
0
0
0
0
0
4,101
0.307952
9e316afea9883b374b2578dfd94ecad511320c5f
1,567
py
Python
chempy/kinetics/tests/test_integrated.py
matecsaj/chempy
2c93f185e4547739331193c06d77282206621517
[ "BSD-2-Clause" ]
null
null
null
chempy/kinetics/tests/test_integrated.py
matecsaj/chempy
2c93f185e4547739331193c06d77282206621517
[ "BSD-2-Clause" ]
null
null
null
chempy/kinetics/tests/test_integrated.py
matecsaj/chempy
2c93f185e4547739331193c06d77282206621517
[ "BSD-2-Clause" ]
null
null
null
from __future__ import division from chempy.util.testing import requires from ..integrated import pseudo_irrev, pseudo_rev, binary_irrev, binary_rev import pytest try: import sympy except ImportError: sympy = None else: one = sympy.S(1) t, kf, kb, prod, major, minor = sympy.symbols( 't kf kb...
27.017241
81
0.640715
0
0
0
0
1,068
0.681557
0
0
84
0.053606
9e3410f7e06e468d0eb7d1e58add77993b4f9819
1,362
py
Python
emulateHttp2/processTestByBrowser.py
mixianghang/newhttp2
0843301ad79d11bc43f5d70dbcf934aaf072f6a3
[ "MIT" ]
null
null
null
emulateHttp2/processTestByBrowser.py
mixianghang/newhttp2
0843301ad79d11bc43f5d70dbcf934aaf072f6a3
[ "MIT" ]
null
null
null
emulateHttp2/processTestByBrowser.py
mixianghang/newhttp2
0843301ad79d11bc43f5d70dbcf934aaf072f6a3
[ "MIT" ]
null
null
null
#!/usr/bin/python import sys import os import shutil def main(): if len(sys.argv) < 3: print "Usage sourceDir resultDir" sys.exit(1) sourceDir = sys.argv[1] resultDir = sys.argv[2] if not os.path.exists(sourceDir): print "{0} doesn't exist".format(sourceDir) sys.exit(1) if os.path.exists(resul...
32.428571
123
0.660793
0
0
0
0
0
0
0
0
265
0.194567
9e36180ad2d9abb3875f4262a27e459d07a15a75
1,097
py
Python
setup.py
osism/netbox-plugin-osism
8cba95bd6bed167c5a05d464d95246c9d4c98a6a
[ "Apache-2.0" ]
null
null
null
setup.py
osism/netbox-plugin-osism
8cba95bd6bed167c5a05d464d95246c9d4c98a6a
[ "Apache-2.0" ]
null
null
null
setup.py
osism/netbox-plugin-osism
8cba95bd6bed167c5a05d464d95246c9d4c98a6a
[ "Apache-2.0" ]
null
null
null
from setuptools import setup setup( name='netbox_plugin_osism', version='0.0.1', description='NetBox Plugin OSISM', long_description='Netbox Plugin OSISM', url='https://github.com/osism/netbox-plugin-osism', download_url='https://github.com/osism/netbox-plugin-osism', author='OSISM GmbH', ...
31.342857
64
0.631723
0
0
0
0
0
0
0
0
605
0.551504
9e36f2c784f6f44bd775bdedd2272a8be3601516
525
py
Python
src/response.py
vcokltfre/snowflake.vcokltf.re
5b8324a4fbc2e512dbc263d4ed65edb89d72a549
[ "MIT" ]
1
2021-03-23T15:13:04.000Z
2021-03-23T15:13:04.000Z
src/response.py
vcokltfre/snowflake.vcokltf.re
5b8324a4fbc2e512dbc263d4ed65edb89d72a549
[ "MIT" ]
null
null
null
src/response.py
vcokltfre/snowflake.vcokltf.re
5b8324a4fbc2e512dbc263d4ed65edb89d72a549
[ "MIT" ]
null
null
null
from starlette.responses import HTMLResponse class ResponseBuilder: def __init__(self): self.items = [] def addtag(self, name: str, value: str): self.items.append((name, value)) def build(self): og_tags = "" for item in self.items: og_tags += f"\n<meta property...
23.863636
82
0.485714
478
0.910476
0
0
0
0
0
0
193
0.367619
9e377bb8273400c9545a16768897adf2638f5e45
63
py
Python
rx/__init__.py
yutiansut/RxPY
c3bbba77f9ebd7706c949141725e220096deabd4
[ "ECL-2.0", "Apache-2.0" ]
1
2018-11-16T09:07:13.000Z
2018-11-16T09:07:13.000Z
rx/__init__.py
yutiansut/RxPY
c3bbba77f9ebd7706c949141725e220096deabd4
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
rx/__init__.py
yutiansut/RxPY
c3bbba77f9ebd7706c949141725e220096deabd4
[ "ECL-2.0", "Apache-2.0" ]
1
2020-05-08T08:23:08.000Z
2020-05-08T08:23:08.000Z
from .core import Observer, Observable, AnonymousObserver as _
31.5
62
0.825397
0
0
0
0
0
0
0
0
0
0
9e379e1fd1991982e0f968b5ef6aafe42d277ba1
47
py
Python
news_api/settings/Vespa_config.py
rdoume/News_API
9c555fdc5e5b717b98bcfec27364b9612b9c4aa1
[ "MIT" ]
9
2019-07-19T13:19:55.000Z
2021-07-08T16:25:30.000Z
news_api/settings/Vespa_config.py
rdoume/News_API
9c555fdc5e5b717b98bcfec27364b9612b9c4aa1
[ "MIT" ]
null
null
null
news_api/settings/Vespa_config.py
rdoume/News_API
9c555fdc5e5b717b98bcfec27364b9612b9c4aa1
[ "MIT" ]
1
2021-05-12T01:50:04.000Z
2021-05-12T01:50:04.000Z
VESPA_IP = "172.16.100.65" VESPA_PORT = "8080"
15.666667
26
0.680851
0
0
0
0
0
0
0
0
21
0.446809
9e39c8fbaaf037c97de86567d3d6ad2bfa09867d
642
py
Python
test/walk.py
manxueitp/cozmo-test
a91b1a4020544cb622bd67385f317931c095d2e8
[ "MIT" ]
null
null
null
test/walk.py
manxueitp/cozmo-test
a91b1a4020544cb622bd67385f317931c095d2e8
[ "MIT" ]
null
null
null
test/walk.py
manxueitp/cozmo-test
a91b1a4020544cb622bd67385f317931c095d2e8
[ "MIT" ]
null
null
null
import cozmo from cozmo.util import distance_mm, speed_mmps,degrees def cozmo_program(robot: cozmo.robot.Robot): robot.drive_straight(distance_mm(150),speed_mmps(100)).wait_for_completed() robot.turn_in_place(degrees(90)).wait_for_completed() robot.drive_straight(distance_mm(150),speed_mmps(100)).wait_for_...
45.857143
79
0.800623
0
0
0
0
0
0
0
0
0
0
9e3a0239409f0db941b17e1b31a07a8a3ed673cb
694
py
Python
lectures/extensions/hyperbolic_discounting/replication_code/.mywaflib/waflib/Tools/clang.py
loikein/ekw-lectures
a2f5436f10515ab26eab323fca8c37c91bdc5dcd
[ "MIT" ]
4
2019-11-15T15:21:27.000Z
2020-07-08T15:04:30.000Z
lectures/extensions/hyperbolic_discounting/replication_code/.mywaflib/waflib/Tools/clang.py
loikein/ekw-lectures
a2f5436f10515ab26eab323fca8c37c91bdc5dcd
[ "MIT" ]
9
2019-11-18T15:54:36.000Z
2020-07-14T13:56:53.000Z
lectures/extensions/hyperbolic_discounting/replication_code/.mywaflib/waflib/Tools/clang.py
loikein/ekw-lectures
a2f5436f10515ab26eab323fca8c37c91bdc5dcd
[ "MIT" ]
3
2021-01-25T15:41:30.000Z
2021-09-21T08:51:36.000Z
#!/usr/bin/env python # Krzysztof Kosiński 2014 """ Detect the Clang C compiler """ from waflib.Configure import conf from waflib.Tools import ar from waflib.Tools import ccroot from waflib.Tools import gcc @conf def find_clang(conf): """ Finds the program clang and executes it to ensure it really is clang ...
22.387097
72
0.693084
0
0
0
0
233
0.335252
0
0
201
0.289209
9e3b5a48a7befde960b0ddd0c42b6f209d9a2b77
457
py
Python
test_lambda_function.py
gavinbull/loyalty_anagram
a91d23083d8c040916733751932fb47d00592890
[ "MIT" ]
null
null
null
test_lambda_function.py
gavinbull/loyalty_anagram
a91d23083d8c040916733751932fb47d00592890
[ "MIT" ]
null
null
null
test_lambda_function.py
gavinbull/loyalty_anagram
a91d23083d8c040916733751932fb47d00592890
[ "MIT" ]
null
null
null
import unittest from lambda_function import gather_anagrams class TestSum(unittest.TestCase): def test_list_int(self): """ Basic unit test to verify anagram of cinema including upper+lower case """ test_word = "iceman" get_result = gather_anagrams(test_word) ...
28.5625
86
0.654267
347
0.7593
0
0
0
0
0
0
144
0.315098
9e3d9a4ab5c166e9fe2b7e4de49e51e3488a6de5
577
py
Python
euler62.py
dchourasia/euler-solutions
e20cbf016a9ea601fcce928d9690930c9a498837
[ "Apache-2.0" ]
null
null
null
euler62.py
dchourasia/euler-solutions
e20cbf016a9ea601fcce928d9690930c9a498837
[ "Apache-2.0" ]
null
null
null
euler62.py
dchourasia/euler-solutions
e20cbf016a9ea601fcce928d9690930c9a498837
[ "Apache-2.0" ]
null
null
null
''' Find the smallest cube for which exactly five permutations of its digits are cube. ''' import math, itertools print(math.pow(8, 1/3).is_integer()) tried = {} for i in range(1000, 1200): cb = int(math.pow(i, 3)) #print(cb) #print(math.pow(int(cb), 1/3)) roots = 1 tried[i] = [str(cb)] for x in itertools.permuta...
21.37037
82
0.587522
0
0
0
0
0
0
0
0
163
0.282496
9e3eca14631d828c95eda787a3d066e5994ecfdb
3,010
py
Python
examples/reeds_problem.py
bwhewe-13/ants
6923cfc1603e0cd90c2ae90fa0fed6dd86edc0b2
[ "MIT" ]
null
null
null
examples/reeds_problem.py
bwhewe-13/ants
6923cfc1603e0cd90c2ae90fa0fed6dd86edc0b2
[ "MIT" ]
null
null
null
examples/reeds_problem.py
bwhewe-13/ants
6923cfc1603e0cd90c2ae90fa0fed6dd86edc0b2
[ "MIT" ]
null
null
null
from ants.medium import MediumX from ants.materials import Materials from ants.mapper import Mapper from ants.multi_group import source_iteration import numpy as np import matplotlib.pyplot as plt def reeds(cells): width = 16. delta_x = width/cells group = 1 boundaries = [slice(0,int(2/delta_x)),sli...
29.80198
87
0.679734
0
0
0
0
0
0
0
0
302
0.100332
9e40a4a7ae6fa13448f345e341c1c32845116799
29,411
py
Python
exp_runner.py
BoifZ/NeuS
a2900fa5c0b2a9d54b9cb5b364440ee7eecfb525
[ "MIT" ]
null
null
null
exp_runner.py
BoifZ/NeuS
a2900fa5c0b2a9d54b9cb5b364440ee7eecfb525
[ "MIT" ]
null
null
null
exp_runner.py
BoifZ/NeuS
a2900fa5c0b2a9d54b9cb5b364440ee7eecfb525
[ "MIT" ]
null
null
null
import os import time import logging import argparse import numpy as np import cv2 as cv import trimesh import torch import torch.nn.functional as F from torch.utils.tensorboard import SummaryWriter from shutil import copyfile from icecream import ic from tqdm import tqdm from pyhocon import ConfigFactory from models.d...
47.590615
180
0.605352
27,335
0.929414
0
0
0
0
0
0
3,860
0.131243
9e44b7345e9261d66e37f31753ad1afb6577bc5f
2,007
py
Python
code/video-analiz/python/camshift.py
BASARIRR/computer-vision-guide
0a11726fb2be0cad63738ab45fd4edc4515441d2
[ "MIT" ]
230
2019-01-17T01:00:53.000Z
2022-03-31T18:00:09.000Z
code/video-analiz/python/camshift.py
sturlu/goruntu-isleme-kilavuzu
e9377ace3823ca5f2d06ca78a11884256539134d
[ "MIT" ]
8
2019-05-03T07:44:50.000Z
2022-02-10T00:14:38.000Z
code/video-analiz/python/camshift.py
sturlu/goruntu-isleme-kilavuzu
e9377ace3823ca5f2d06ca78a11884256539134d
[ "MIT" ]
71
2019-01-17T12:11:06.000Z
2022-03-03T22:02:46.000Z
#Python v3, OpenCV v3.4.2 import numpy as np import cv2 videoCapture = cv2.VideoCapture("video.mp4") ret,camera_input = videoCapture.read() rows, cols = camera_input.shape[:2] ''' Video dosyası üzerine Mean Shift için bir alan belirlenir. Bu koordinatlar ağırlıklı ortalaması belirlenecek olan dörtgen alanıdır. ''' ...
32.901639
125
0.727454
0
0
0
0
0
0
0
0
964
0.463239
9e459ba91afb3134b739b9c40e6c311ac98e5335
346
py
Python
DTT_files/dtt.py
stecik/Directory_to_text
f93c76f820ff7dc39e213779115861e53ed6a266
[ "MIT" ]
null
null
null
DTT_files/dtt.py
stecik/Directory_to_text
f93c76f820ff7dc39e213779115861e53ed6a266
[ "MIT" ]
null
null
null
DTT_files/dtt.py
stecik/Directory_to_text
f93c76f820ff7dc39e213779115861e53ed6a266
[ "MIT" ]
null
null
null
from dtt_class import DTT from parser import args if __name__ == "__main__": dtt = DTT() # Creates a list of files and subdirectories try: l = dtt.dir_to_list(args.directory, args) # Creates a .txt file with the list dtt.list_to_txt(args.output_file, l) except Exception as e: ...
28.833333
49
0.644509
0
0
0
0
0
0
0
0
102
0.294798
9e45b73d08315aaa5770ad5f620934e0e80ebd70
1,675
py
Python
src/models/head.py
takedarts/DenseResNet
d5f9c143ed3c484436a2a5bac366c3795e5d47ec
[ "MIT" ]
null
null
null
src/models/head.py
takedarts/DenseResNet
d5f9c143ed3c484436a2a5bac366c3795e5d47ec
[ "MIT" ]
null
null
null
src/models/head.py
takedarts/DenseResNet
d5f9c143ed3c484436a2a5bac366c3795e5d47ec
[ "MIT" ]
null
null
null
import torch.nn as nn import collections class BasicHead(nn.Sequential): def __init__(self, in_channels, out_channels, **kwargs): super().__init__() class PreActHead(nn.Sequential): def __init__(self, in_channels, out_channels, normalization, activation, **kwargs): super().__i...
36.413043
93
0.605373
1,608
0.96
0
0
0
0
0
0
67
0.04
9e4644db01b6aad4460e509e0a9d08dada56a727
42
py
Python
errorpro/exceptions.py
benti/Error-Pypagation
108feddc58a705da82fe6fdce658b419b589b533
[ "BSD-3-Clause" ]
null
null
null
errorpro/exceptions.py
benti/Error-Pypagation
108feddc58a705da82fe6fdce658b419b589b533
[ "BSD-3-Clause" ]
null
null
null
errorpro/exceptions.py
benti/Error-Pypagation
108feddc58a705da82fe6fdce658b419b589b533
[ "BSD-3-Clause" ]
null
null
null
class DimensionError(Exception): pass
14
32
0.761905
41
0.97619
0
0
0
0
0
0
0
0
9e47088047a050a5c1880fb84b394c06ebc4af2c
968
py
Python
application.py
nicolas-van/startup_asgard_app
acbb706256214f6758de9db92ff2988cee62c8ff
[ "MIT" ]
null
null
null
application.py
nicolas-van/startup_asgard_app
acbb706256214f6758de9db92ff2988cee62c8ff
[ "MIT" ]
null
null
null
application.py
nicolas-van/startup_asgard_app
acbb706256214f6758de9db92ff2988cee62c8ff
[ "MIT" ]
null
null
null
from __future__ import unicode_literals, print_function, absolute_import import flask import os import os.path import json import sjoh.flask import logging import asgard app = asgard.Asgard(__name__, flask_parameters={"static_folder": None}) # load configuration about files and folders folder = os.path.dirname(__f...
25.473684
73
0.722107
0
0
0
0
168
0.173554
0
0
184
0.190083
9e470dc0299f2bc08dbfaf73e95ab549a126fe53
414
py
Python
build/lib/tests/visualizer_test.py
eltoto1219/vltk
e84c0efe9062eb864604d96345f71483816340aa
[ "Apache-2.0" ]
null
null
null
build/lib/tests/visualizer_test.py
eltoto1219/vltk
e84c0efe9062eb864604d96345f71483816340aa
[ "Apache-2.0" ]
null
null
null
build/lib/tests/visualizer_test.py
eltoto1219/vltk
e84c0efe9062eb864604d96345f71483816340aa
[ "Apache-2.0" ]
null
null
null
import io import os import unittest import numpy as np from PIL import Image from vltk import SingleImageViz PATH = os.path.dirname(os.path.realpath(__file__)) URL = "https://raw.githubusercontent.com/airsplay/py-bottom-up-attention/master/demo/data/images/input.jpg" class TestVisaulizer(unittest.TestCase): ...
18
107
0.731884
138
0.333333
0
0
0
0
0
0
101
0.243961
9e473c9d126543858d93cd7cc38a1863415d85a8
3,419
py
Python
siam_tracker/models/train_wrappers/pairwise_wrapper.py
microsoft/PySiamTracking
a82dabeaa42a7816dbd8e823da7b7e92ebb622ce
[ "MIT" ]
28
2020-03-18T04:41:21.000Z
2022-02-24T16:44:01.000Z
siam_tracker/models/train_wrappers/pairwise_wrapper.py
HengFan2010/PySiamTracking
a82dabeaa42a7816dbd8e823da7b7e92ebb622ce
[ "MIT" ]
1
2020-04-05T15:23:22.000Z
2020-04-07T16:23:12.000Z
siam_tracker/models/train_wrappers/pairwise_wrapper.py
HengFan2010/PySiamTracking
a82dabeaa42a7816dbd8e823da7b7e92ebb622ce
[ "MIT" ]
11
2020-03-19T00:30:06.000Z
2021-11-10T08:22:35.000Z
# Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. import torch from collections import OrderedDict from ..builder import build_tracker, TRAIN_WRAPPERS from ...datasets import TrainPairDataset, build_dataloader from ...runner import Runner from ...utils.parallel import MMDat...
38.852273
99
0.623867
3,017
0.882422
0
0
3,049
0.891781
0
0
662
0.193624
9e477dd3df7f5df09267317cd3bfe78b579ab14e
212
py
Python
coaster/views/__init__.py
AferriDaniel/coaster
3ffbc9d33c981284593445299aaee0c3cc0cdb0b
[ "BSD-2-Clause" ]
48
2015-01-15T08:57:24.000Z
2022-01-26T04:04:34.000Z
coaster/views/__init__.py
AferriDaniel/coaster
3ffbc9d33c981284593445299aaee0c3cc0cdb0b
[ "BSD-2-Clause" ]
169
2015-01-16T13:17:38.000Z
2021-05-31T13:23:23.000Z
coaster/views/__init__.py
AferriDaniel/coaster
3ffbc9d33c981284593445299aaee0c3cc0cdb0b
[ "BSD-2-Clause" ]
17
2015-02-15T07:39:04.000Z
2021-10-05T11:20:22.000Z
""" View helpers ============ Coaster provides classes, functions and decorators for common scenarios in view handlers. """ # flake8: noqa from .classview import * from .decorators import * from .misc import *
16.307692
79
0.707547
0
0
0
0
0
0
0
0
138
0.650943
9e481ccd75d0d45dc38668e3abc95311f9633891
1,429
py
Python
socialdistribution/profiles/migrations/0009_auto_20200308_0539.py
um4r12/CMPUT404-project-socialdistribution
54778371d1f6537370562de4ba4e4efe3288f95d
[ "Apache-2.0" ]
null
null
null
socialdistribution/profiles/migrations/0009_auto_20200308_0539.py
um4r12/CMPUT404-project-socialdistribution
54778371d1f6537370562de4ba4e4efe3288f95d
[ "Apache-2.0" ]
null
null
null
socialdistribution/profiles/migrations/0009_auto_20200308_0539.py
um4r12/CMPUT404-project-socialdistribution
54778371d1f6537370562de4ba4e4efe3288f95d
[ "Apache-2.0" ]
null
null
null
# Generated by Django 2.1.5 on 2020-03-08 05:39 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('profiles', '0008_auto_20200308_0535'), ] operations = [ migrations.CreateModel( name='AuthorFri...
42.029412
167
0.650805
1,303
0.911826
0
0
0
0
0
0
355
0.248425
9e491ac31491040fbc01015d8b5c1a03d71d8961
377
py
Python
src/edeposit/amqp/rest/structures/__init__.py
edeposit/edeposit.rest
ecb1c00f7c156e1ed2000a0b68a3e4da506e7992
[ "MIT" ]
1
2015-12-10T13:30:22.000Z
2015-12-10T13:30:22.000Z
src/edeposit/amqp/rest/structures/__init__.py
edeposit/edeposit.rest
ecb1c00f7c156e1ed2000a0b68a3e4da506e7992
[ "MIT" ]
33
2015-10-06T16:02:13.000Z
2015-12-10T15:00:04.000Z
src/edeposit/amqp/rest/structures/__init__.py
edeposit/edeposit.rest
ecb1c00f7c156e1ed2000a0b68a3e4da506e7992
[ "MIT" ]
null
null
null
#! /usr/bin/env python # -*- coding: utf-8 -*- # # Interpreter version: python 2.7 # # Imports ===================================================================== from incomming import CacheTick from incomming import SaveLogin from incomming import RemoveLogin from incomming import StatusUpdate from outgoing import ...
26.928571
79
0.649867
0
0
0
0
0
0
0
0
159
0.421751
9e4940a9f3cc370e790b4e7a714aac9bb4e6baa7
9,446
py
Python
accelbyte_py_sdk/api/platform/wrappers/_anonymization.py
AccelByte/accelbyte-python-sdk
dcd311fad111c59da828278975340fb92e0f26f7
[ "MIT" ]
null
null
null
accelbyte_py_sdk/api/platform/wrappers/_anonymization.py
AccelByte/accelbyte-python-sdk
dcd311fad111c59da828278975340fb92e0f26f7
[ "MIT" ]
1
2021-10-13T03:46:58.000Z
2021-10-13T03:46:58.000Z
accelbyte_py_sdk/api/platform/wrappers/_anonymization.py
AccelByte/accelbyte-python-sdk
dcd311fad111c59da828278975340fb92e0f26f7
[ "MIT" ]
null
null
null
# Copyright (c) 2021 AccelByte Inc. All Rights Reserved. # This is licensed software from AccelByte Inc, for limitations # and restrictions contact your company contract manager. # # Code generated. DO NOT EDIT! # template file: justice_py_sdk_codegen/__main__.py # pylint: disable=duplicate-code # pylint: disable=li...
37.935743
151
0.72401
0
0
0
0
7,866
0.832733
3,766
0.398687
787
0.083316
9e49cf2dc6f50772b3945f19de0ff48e7f6c2734
358
py
Python
backend/api/serializers.py
vingle1/RestaurantProject
5106a7662f26324ef50eebcfcba673960dff1734
[ "MIT" ]
null
null
null
backend/api/serializers.py
vingle1/RestaurantProject
5106a7662f26324ef50eebcfcba673960dff1734
[ "MIT" ]
1
2017-12-10T18:12:38.000Z
2017-12-10T18:12:38.000Z
backend/api/serializers.py
vingle1/RestaurantProject
5106a7662f26324ef50eebcfcba673960dff1734
[ "MIT" ]
2
2017-10-31T20:48:04.000Z
2017-11-30T04:05:36.000Z
from django.contrib.auth.models import User, Group from rest_framework import serializers from rest_framework_json_api.relations import * #load django and webapp models #from django.contrib.auth.models import * from api.models import * class FmenuSerializer(serializers.ModelSerializer): class Meta: mod...
22.375
51
0.765363
116
0.324022
0
0
0
0
0
0
80
0.223464
9e4d5fb0fa81e143693d4b850e79279a83dcb058
622
py
Python
preprocessed_data/RGHS/Code/S_model.py
SaiKrishna1207/Underwater-Image-Segmentation
78def27e577b10e6722c02807bdcfeb7ba53d760
[ "MIT" ]
null
null
null
preprocessed_data/RGHS/Code/S_model.py
SaiKrishna1207/Underwater-Image-Segmentation
78def27e577b10e6722c02807bdcfeb7ba53d760
[ "MIT" ]
null
null
null
preprocessed_data/RGHS/Code/S_model.py
SaiKrishna1207/Underwater-Image-Segmentation
78def27e577b10e6722c02807bdcfeb7ba53d760
[ "MIT" ]
null
null
null
import numpy as np import pylab as pl x = [] # Make an array of x values y = [] # Make an array of y values for each x value for i in range(-128,127): x.append(i) for j in range(-128,127): temp = j *(2**(1 - abs((j/128)))) y.append(temp) # print('y',y) # pl.xlim(-128, 127)# set axis limits # pl.ylim(...
23.037037
66
0.639871
0
0
0
0
0
0
0
0
292
0.469453
9e4db1ef4c553d26b23cdf167ecc2ec7e965d780
36,578
py
Python
tools/Blender Stuff/Plugins/Gothic_MaT_Blender/1.3/Gothic_MaT_Blender_1_3.py
PhoenixTales/gothic-devk
48193bef8fd37626f8909853bfc5ad4b7126f176
[ "FSFAP" ]
3
2021-04-13T07:12:30.000Z
2021-06-18T17:26:10.000Z
tools/Blender Stuff/Plugins/Gothic_MaT_Blender/1.3/Gothic_MaT_Blender_1_3.py
PhoenixTales/gothic-devk
48193bef8fd37626f8909853bfc5ad4b7126f176
[ "FSFAP" ]
null
null
null
tools/Blender Stuff/Plugins/Gothic_MaT_Blender/1.3/Gothic_MaT_Blender_1_3.py
PhoenixTales/gothic-devk
48193bef8fd37626f8909853bfc5ad4b7126f176
[ "FSFAP" ]
2
2021-03-23T19:45:39.000Z
2021-04-17T17:21:48.000Z
bl_info = { "name": "Gothic Materials and Textures Blender", "description": "Makes life easier for Gothic material export", "author": "Diego", "version": (1, 3, 0), "blender": (2, 78, 0), "location": "3D View > Tools", "warning": "", # used for warning icon and text in addons panel ...
43.963942
194
0.561458
32,762
0.895675
0
0
0
0
0
0
11,955
0.326836
9e4e27c4f397f2c0b09121050df5d040566af2dd
7,881
py
Python
v1/GCRCatalogs/MB2GalaxyCatalog.py
adam-broussard/descqa
d9681bd393553c31882ec7e28e6c1c7b6e482dd3
[ "BSD-3-Clause" ]
4
2017-11-14T03:33:57.000Z
2021-06-05T16:35:40.000Z
v1/GCRCatalogs/MB2GalaxyCatalog.py
adam-broussard/descqa
d9681bd393553c31882ec7e28e6c1c7b6e482dd3
[ "BSD-3-Clause" ]
136
2017-11-06T16:02:58.000Z
2021-11-11T18:20:23.000Z
v1/GCRCatalogs/MB2GalaxyCatalog.py
adam-broussard/descqa
d9681bd393553c31882ec7e28e6c1c7b6e482dd3
[ "BSD-3-Clause" ]
31
2017-11-06T19:55:35.000Z
2020-12-15T13:53:53.000Z
# Massive Black 2 galaxy catalog class import numpy as np from astropy.table import Table import astropy.units as u import astropy.cosmology from .GalaxyCatalogInterface import GalaxyCatalog class MB2GalaxyCatalog(GalaxyCatalog): """ Massive Black 2 galaxy catalog class. """ def __init__(self, **kwar...
52.192053
134
0.53242
7,687
0.975384
0
0
0
0
0
0
2,302
0.292095
9e4e87db0add45d330be3d156367bbd52e0ded32
714
py
Python
skylernet/views.py
skylermishkin/skylernet
d715c69348c050d976ba7931127a576565b67ff1
[ "MIT" ]
null
null
null
skylernet/views.py
skylermishkin/skylernet
d715c69348c050d976ba7931127a576565b67ff1
[ "MIT" ]
null
null
null
skylernet/views.py
skylermishkin/skylernet
d715c69348c050d976ba7931127a576565b67ff1
[ "MIT" ]
null
null
null
from django.shortcuts import get_object_or_404, render from django.contrib.staticfiles.templatetags.staticfiles import static def index(request): return render(request, 'skylernet/landing.html') def connect(request): context = {'online_media': [{"name": 'LinkedIn', 'href': '...
42
96
0.564426
0
0
0
0
0
0
0
0
248
0.347339
9e4e8b052d2746faabafff4026914e35d26807a7
532
py
Python
src/objects/qubit.py
KaroliShp/Quantumformatics
4166448706c06a1a45abd106da8152b4f4c40a25
[ "MIT" ]
2
2019-10-28T20:26:14.000Z
2019-10-29T08:28:45.000Z
src/objects/qubit.py
KaroliShp/Quantumformatics
4166448706c06a1a45abd106da8152b4f4c40a25
[ "MIT" ]
3
2019-10-28T09:19:27.000Z
2019-10-28T13:42:08.000Z
src/objects/qubit.py
KaroliShp/Quantumformatics
4166448706c06a1a45abd106da8152b4f4c40a25
[ "MIT" ]
null
null
null
from src.dirac_notation.bra import Bra from src.dirac_notation.ket import Ket from src.dirac_notation.matrix import Matrix from src.dirac_notation import functions as dirac from src.dirac_notation import constants as const from src.objects.quantum_system import QuantumSystem, SystemType class Qubit(QuantumSystem): ...
29.555556
64
0.755639
241
0.453008
0
0
0
0
0
0
101
0.18985
9e4edf8dd4337b4a83cb6c425f974138a731fbae
9,926
py
Python
cuddlefish/apiparser.py
mozilla/FlightDeck
61d66783252ac1318c990e342877a26c64f59062
[ "BSD-3-Clause" ]
6
2015-04-24T03:10:44.000Z
2020-12-27T19:46:33.000Z
cuddlefish/apiparser.py
fox2mike/FlightDeck
3a2fc78c13dd968041b349c4f9343e6c8b22dd25
[ "BSD-3-Clause" ]
null
null
null
cuddlefish/apiparser.py
fox2mike/FlightDeck
3a2fc78c13dd968041b349c4f9343e6c8b22dd25
[ "BSD-3-Clause" ]
5
2015-09-18T19:58:31.000Z
2020-01-28T05:46:55.000Z
import sys, re, textwrap class ParseError(Exception): # args[1] is the line number that caused the problem def __init__(self, why, lineno): self.why = why self.lineno = lineno def __str__(self): return ("ParseError: the JS API docs were unparseable on line %d: %s" % ...
35.833935
89
0.503728
8,482
0.854523
1,948
0.196252
0
0
0
0
2,569
0.258815
9e4f2abe49eca6572412ecb2672b250ab2b29afd
1,217
py
Python
specs/core.py
farleykr/acrylamid
c6c0f60b594d2920f6387ba82b552093d7c5fe1b
[ "BSD-2-Clause-FreeBSD" ]
61
2015-01-15T23:23:11.000Z
2022-03-24T16:39:31.000Z
specs/core.py
farleykr/acrylamid
c6c0f60b594d2920f6387ba82b552093d7c5fe1b
[ "BSD-2-Clause-FreeBSD" ]
28
2015-01-26T22:32:24.000Z
2022-01-13T01:11:56.000Z
specs/core.py
farleykr/acrylamid
c6c0f60b594d2920f6387ba82b552093d7c5fe1b
[ "BSD-2-Clause-FreeBSD" ]
25
2015-01-22T19:26:29.000Z
2021-06-30T21:53:06.000Z
# -*- coding: utf-8 -*- import attest from acrylamid.core import cache class Cache(attest.TestBase): def __context__(self): with attest.tempdir() as path: self.path = path cache.init(self.path) yield @attest.test def persistence(self): cache.init(self.p...
23.862745
56
0.532457
1,142
0.938373
139
0.114215
950
0.780608
0
0
248
0.20378
9e51608d7b0aa9e6ba5eb1fb96ffd50952b54f6c
1,235
py
Python
python/animate_sub_plots_sharc.py
FinMacDov/PhD_codes
44e781c270fa9822a8137ef271f35c6e945c5828
[ "MIT" ]
null
null
null
python/animate_sub_plots_sharc.py
FinMacDov/PhD_codes
44e781c270fa9822a8137ef271f35c6e945c5828
[ "MIT" ]
null
null
null
python/animate_sub_plots_sharc.py
FinMacDov/PhD_codes
44e781c270fa9822a8137ef271f35c6e945c5828
[ "MIT" ]
null
null
null
from subplot_animation import subplot_animation import sys import matplotlib matplotlib.use('agg') import matplotlib.pyplot as plt import os import numpy as np import glob sys.path.append("/home/smp16fm/forked_amrvac/amrvac/tools/python") from amrvac_pytools.datfiles.reading import amrvac_reader from amrvac_pytools.v...
27.444444
110
0.715789
0
0
0
0
0
0
0
0
408
0.330364
9e554dd387e1b98981fc98073b0b6ac0775be949
812
py
Python
swcf/controllers/index.py
pratiwilestari/simpleWebContactForm
56369daadb8130bb72c19ae8ee10ad590804c84d
[ "MIT" ]
null
null
null
swcf/controllers/index.py
pratiwilestari/simpleWebContactForm
56369daadb8130bb72c19ae8ee10ad590804c84d
[ "MIT" ]
null
null
null
swcf/controllers/index.py
pratiwilestari/simpleWebContactForm
56369daadb8130bb72c19ae8ee10ad590804c84d
[ "MIT" ]
null
null
null
from flask.helpers import flash from flask.wrappers import Request from swcf import app from flask import render_template, redirect, request, url_for from swcf.dao.indexDAO import * @app.route("/", methods=['GET']) def index(): return render_template("layout.html") @app.route("/sendPost", methods=['POST']) def se...
31.230769
61
0.674877
0
0
0
0
627
0.772167
0
0
191
0.235222
9e55fcc920876b41b0c966a7f0b020aafcb8f66f
87
py
Python
examples/testlib2/box/methods_a.py
uibcdf/pyunitwizard
54cdce7369e1f2a3771a1f05a4a6ba1d7610a5e7
[ "MIT" ]
2
2021-07-01T14:33:58.000Z
2022-03-19T19:19:09.000Z
examples/testlib2/box/methods_a.py
uibcdf/pyunitwizard
54cdce7369e1f2a3771a1f05a4a6ba1d7610a5e7
[ "MIT" ]
15
2021-02-11T18:54:16.000Z
2022-03-18T17:38:03.000Z
examples/testlib2/box/methods_a.py
uibcdf/pyunitwizard
54cdce7369e1f2a3771a1f05a4a6ba1d7610a5e7
[ "MIT" ]
2
2021-06-17T18:56:02.000Z
2022-03-08T05:02:17.000Z
from testlib2 import _puw def get_default_form(): return _puw.get_default_form()
14.5
34
0.770115
0
0
0
0
0
0
0
0
0
0
9e5734bc9428d420f659a156adfa25e7ae27b0df
4,668
py
Python
tests/broker/test_show_machine.py
ned21/aquilon
6562ea0f224cda33b72a6f7664f48d65f96bd41a
[ "Apache-2.0" ]
7
2015-07-31T05:57:30.000Z
2021-09-07T15:18:56.000Z
tests/broker/test_show_machine.py
ned21/aquilon
6562ea0f224cda33b72a6f7664f48d65f96bd41a
[ "Apache-2.0" ]
115
2015-03-03T13:11:46.000Z
2021-09-20T12:42:24.000Z
tests/broker/test_show_machine.py
ned21/aquilon
6562ea0f224cda33b72a6f7664f48d65f96bd41a
[ "Apache-2.0" ]
13
2015-03-03T11:17:59.000Z
2021-09-09T09:16:41.000Z
#!/usr/bin/env python # -*- cpy-indent-level: 4; indent-tabs-mode: nil -*- # ex: set expandtab softtabstop=4 shiftwidth=4: # # Copyright (C) 2008,2009,2010,2011,2012,2013,2014,2015,2016 Contributor # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with...
45.320388
79
0.646744
3,585
0.767995
0
0
0
0
0
0
1,533
0.328406
9e5983beaa6b6cc08ac0ba87d128a18495efcf64
117
py
Python
config-template.py
johanjordaan/silver-giggle
5304a96b6aa1c4c5eb1f9069212423810aa89818
[ "MIT" ]
1
2021-12-04T05:11:26.000Z
2021-12-04T05:11:26.000Z
config-template.py
johanjordaan/silver-giggle
5304a96b6aa1c4c5eb1f9069212423810aa89818
[ "MIT" ]
null
null
null
config-template.py
johanjordaan/silver-giggle
5304a96b6aa1c4c5eb1f9069212423810aa89818
[ "MIT" ]
null
null
null
host="mysql-general.cyqv8he15vrg.ap-southeast-2.rds.amazonaws.com" user="admin" password="" database="silver_giggle"
23.4
66
0.794872
0
0
0
0
0
0
0
0
85
0.726496
9e5cfbb9bf026d80e086f27d5037c72987aa2b73
447
py
Python
secret/forms.py
MinisterioPublicoRJ/apilabcontas
c01d5c0f1e6705eb8470ba7ba5078c0c172a9570
[ "MIT" ]
2
2019-06-10T18:34:15.000Z
2020-04-29T14:23:34.000Z
secret/forms.py
MinisterioPublicoRJ/datalakecadg
c01d5c0f1e6705eb8470ba7ba5078c0c172a9570
[ "MIT" ]
5
2020-01-09T15:59:16.000Z
2021-06-10T21:06:13.000Z
secret/forms.py
MinisterioPublicoRJ/datalakecadg
c01d5c0f1e6705eb8470ba7ba5078c0c172a9570
[ "MIT" ]
null
null
null
from django import forms from django.core.exceptions import ValidationError from secret.models import Secret class SecretForm(forms.ModelForm): class Meta: model = Secret fields = ['username', 'email'] def clean_username(self): username = self.cleaned_data['username'] if Secr...
26.294118
61
0.686801
336
0.74833
0
0
0
0
0
0
49
0.109131
9e5d616453b278b53324517816e3de2bbc018cf8
125
py
Python
secreto.py
PeedrinZangw/sadness-musicbot-01
c0dab41baba5ab43d840e440cfdc6ec78ac2d823
[ "MIT" ]
null
null
null
secreto.py
PeedrinZangw/sadness-musicbot-01
c0dab41baba5ab43d840e440cfdc6ec78ac2d823
[ "MIT" ]
null
null
null
secreto.py
PeedrinZangw/sadness-musicbot-01
c0dab41baba5ab43d840e440cfdc6ec78ac2d823
[ "MIT" ]
null
null
null
def seu_token(): return "NDUyMzQxOTA3MDEyNzE0NTI2.DgCa4Q.qhpEIZAUh3sLzZAqbdduRqjUwl8" #Subistitua xxxxxx pelo seu token!!
41.666667
72
0.824
0
0
0
0
0
0
0
0
96
0.768
9e5de8187f51a01a92395201a4a1d4ef624e2064
4,209
py
Python
real_estate_analysis/models/xgb_model/xgboost_model.py
enyquist/Real_Estate_Analysis
47bbcfbc9bece20ae2aa0fce84dfca700ec6842f
[ "MIT" ]
null
null
null
real_estate_analysis/models/xgb_model/xgboost_model.py
enyquist/Real_Estate_Analysis
47bbcfbc9bece20ae2aa0fce84dfca700ec6842f
[ "MIT" ]
null
null
null
real_estate_analysis/models/xgb_model/xgboost_model.py
enyquist/Real_Estate_Analysis
47bbcfbc9bece20ae2aa0fce84dfca700ec6842f
[ "MIT" ]
null
null
null
import xgboost as xgb import datetime import real_estate_analysis.models.functions as func import real_estate_analysis.models.xgb_model.utils as XGB_utils import real_estate_analysis.Model.utils as model_utils def main(): ###########################################################################################...
37.918919
120
0.43502
0
0
0
0
0
0
0
0
2,223
0.528154
9e5e1d23daee791eaea271ade55225f743349e3f
1,067
py
Python
tests/utils.py
1116574/vulcan-api
3cf64e78ba3e68299c94d629c3ffe4f7e8c94aed
[ "MIT" ]
null
null
null
tests/utils.py
1116574/vulcan-api
3cf64e78ba3e68299c94d629c3ffe4f7e8c94aed
[ "MIT" ]
null
null
null
tests/utils.py
1116574/vulcan-api
3cf64e78ba3e68299c94d629c3ffe4f7e8c94aed
[ "MIT" ]
null
null
null
from datetime import date from os import environ PARAMS_LESSON_PLAN = [ ( date(2018, 9, 4), [ {"IdPrzedmiot": 173, "IdPracownik": 99}, {"IdPrzedmiot": 123, "IdPracownik": 101}, {"IdPrzedmiot": 172, "IdPracownik": 92}, {"IdPrzedmiot": 189, "IdPracownik...
24.813953
78
0.492034
0
0
0
0
0
0
0
0
332
0.311153
9e5eaad811b723cd9fbdf58606b08cc92c36666b
886
py
Python
setup.py
utahta/pyvbcode
5708f5563016578576a48cf7374470c4e5c11825
[ "MIT" ]
3
2018-10-14T12:38:49.000Z
2021-06-05T08:13:42.000Z
setup.py
utahta/pyvbcode
5708f5563016578576a48cf7374470c4e5c11825
[ "MIT" ]
1
2017-07-02T15:27:45.000Z
2017-10-28T20:52:54.000Z
setup.py
utahta/pyvbcode
5708f5563016578576a48cf7374470c4e5c11825
[ "MIT" ]
5
2016-12-26T08:06:24.000Z
2020-02-22T17:20:16.000Z
# vim:fileencoding=utf8 from distutils.core import setup import os README = os.path.join(os.path.dirname(__file__),'PKG-INFO') long_description = open(README).read() + "\n" setup(name="vbcode", version='0.2.0', py_modules=['vbcode'], description="Variable byte codes", author="utahta", aut...
36.916667
83
0.595937
0
0
0
0
0
0
0
0
418
0.471783
9e5f5a16f32d2c7ad12cdebabca7ff18c984b6b6
1,221
py
Python
cogs/testing_cog.py
Critteros/DzwoneczekBOT
4f6100cf26f430521247f494620c9a2ceda1f362
[ "Apache-2.0" ]
null
null
null
cogs/testing_cog.py
Critteros/DzwoneczekBOT
4f6100cf26f430521247f494620c9a2ceda1f362
[ "Apache-2.0" ]
null
null
null
cogs/testing_cog.py
Critteros/DzwoneczekBOT
4f6100cf26f430521247f494620c9a2ceda1f362
[ "Apache-2.0" ]
null
null
null
""" Extension desined to test bot functionality, just for testing """ # Library includes from discord.ext import commands # App includes from app.client import BotClient class TestCog(commands.Cog): """ Class cog for the testing_cog cog extension """ def __init__(self, client: BotClient): ...
24.42
74
0.63964
840
0.687961
0
0
628
0.514333
568
0.465192
674
0.552007
9e5f866f7cec9044c5ffc4636fdb2a689ffe67a2
3,221
py
Python
src/pdfDownloader.py
dna33/covid19-pdfocr
66f11fc7eb3d4f0146d04344a112578bc3149a02
[ "MIT" ]
1
2021-08-16T22:21:30.000Z
2021-08-16T22:21:30.000Z
src/pdfDownloader.py
dna33/covid19-pdfocr
66f11fc7eb3d4f0146d04344a112578bc3149a02
[ "MIT" ]
null
null
null
src/pdfDownloader.py
dna33/covid19-pdfocr
66f11fc7eb3d4f0146d04344a112578bc3149a02
[ "MIT" ]
null
null
null
import urllib3 from bs4 import BeautifulSoup import shutil import re import os def obtenerReporteDiario(reporte_url, path): req = urllib3.PoolManager() res = req.request('GET', reporte_url) soup = BeautifulSoup(res.data, features="html.parser") pdfs = [] for link_soup in soup.find_all('a'): ...
39.765432
118
0.616889
0
0
0
0
0
0
0
0
786
0.244024
9e5ff0af4ee8d2c0f56518f7dfc6f17b87b1d4b4
44,126
py
Python
setup.py
amahoro12/anne
9b68c71c491bde4f57c2cbbf78a377239a9026d8
[ "MIT" ]
null
null
null
setup.py
amahoro12/anne
9b68c71c491bde4f57c2cbbf78a377239a9026d8
[ "MIT" ]
null
null
null
setup.py
amahoro12/anne
9b68c71c491bde4f57c2cbbf78a377239a9026d8
[ "MIT" ]
null
null
null
## This script set up classes for 4 bus and 2 bus environment import pandapower as pp import pandapower.networks as nw import pandapower.plotting as plot import enlopy as el import numpy as np import pandas as pd import pickle import copy import math import matplotlib.mlab as mlab import matplotlib.pyplot as plt import...
48.436883
173
0.604496
40,424
0.916104
0
0
0
0
0
0
12,243
0.277455
9e66515414c951c5a5647702f8a347abcfdec43d
10,659
py
Python
unittests/TestGameServerController.py
dgsd-consulting/python_cowbull_server
b3f5e36c98c29701b0faf0adcf5d7b56a91a7402
[ "Apache-2.0" ]
1
2019-01-22T03:48:30.000Z
2019-01-22T03:48:30.000Z
unittests/TestGameServerController.py
dgsd-consulting/python_cowbull_server
b3f5e36c98c29701b0faf0adcf5d7b56a91a7402
[ "Apache-2.0" ]
1
2019-04-14T21:15:17.000Z
2019-08-08T01:25:29.000Z
unittests/TestGameServerController.py
davidjsanders/python_cowbull_server
b3f5e36c98c29701b0faf0adcf5d7b56a91a7402
[ "Apache-2.0" ]
2
2018-09-20T20:28:48.000Z
2018-10-02T20:57:45.000Z
import json from unittest import TestCase from flask import Flask from flask_controllers.GameServerController import GameServerController from flask_helpers.VersionHelpers import VersionHelpers from python_cowbull_server import app from python_cowbull_server.Configurator import Configurator from flask_helpers.ErrorHan...
36.628866
111
0.512149
10,251
0.961722
0
0
0
0
0
0
1,750
0.164181
9e66f7324f463b84e3db235287a63c2e184564ad
10,104
py
Python
python_flights/client.py
sylvaus/python_flights
613f1ad294ecb53a54af1fa3ca78fa83b0badc30
[ "MIT" ]
1
2020-01-12T18:55:45.000Z
2020-01-12T18:55:45.000Z
python_flights/client.py
sylvaus/python_flights
613f1ad294ecb53a54af1fa3ca78fa83b0badc30
[ "MIT" ]
null
null
null
python_flights/client.py
sylvaus/python_flights
613f1ad294ecb53a54af1fa3ca78fa83b0badc30
[ "MIT" ]
null
null
null
import logging import time from datetime import datetime, timedelta from itertools import product from typing import List import requests from python_flights.itinerary import Itinerary from python_flights.pods import Country, Currency, Airport, Place, Agent, Carrier, Direction, Trip, Segment, Price, \ CabinClass,...
42.1
120
0.597387
9,249
0.91538
0
0
854
0.084521
0
0
2,131
0.210907
9e675b79e0383d49ce47e747d971a54a4f4b735e
8,636
py
Python
python/monitor.py
ChrisArnault/fink_data_monitor
3ef3167204711222fb71d6d6f828bce4094ad21a
[ "Apache-2.0" ]
null
null
null
python/monitor.py
ChrisArnault/fink_data_monitor
3ef3167204711222fb71d6d6f828bce4094ad21a
[ "Apache-2.0" ]
8
2019-03-30T13:27:46.000Z
2019-06-05T13:55:26.000Z
python/monitor.py
ChrisArnault/fink_data_monitor
3ef3167204711222fb71d6d6f828bce4094ad21a
[ "Apache-2.0" ]
1
2019-03-22T12:38:32.000Z
2019-03-22T12:38:32.000Z
#!/usr/bin/python # coding: utf-8 # Copyright 2018 AstroLab Software # Author: Chris Arnault # # 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...
28.50165
81
0.559287
0
0
0
0
0
0
0
0
4,274
0.494905
9e687cbd3bdfdf17c399fa781c8f96210ee0138e
8,457
py
Python
python/src/buildXyzMapCommand.py
kylemcdonald/LightLeaks
f72719c4f46e4ec0cf8f37b520f7be859381d43b
[ "MIT" ]
57
2015-01-06T13:07:04.000Z
2022-03-26T04:05:50.000Z
python/src/buildXyzMapCommand.py
kylemcdonald/LightLeaks
f72719c4f46e4ec0cf8f37b520f7be859381d43b
[ "MIT" ]
34
2015-01-01T21:18:50.000Z
2021-09-02T16:28:10.000Z
python/src/buildXyzMapCommand.py
kylemcdonald/LightLeaks
f72719c4f46e4ec0cf8f37b520f7be859381d43b
[ "MIT" ]
11
2015-02-23T18:56:22.000Z
2020-07-19T07:50:11.000Z
import click import json import os import re from tqdm import tqdm from utils.imutil import * import numpy as np import math PROCESSED_SCAN_FOLDER = 'processedScan' def buildXyzMap(data_dir, prefix): projector_size = get_projector_size(data_dir) click.echo("Projector resolution %i x %i (from settings.json)" ...
38.793578
114
0.653541
0
0
0
0
0
0
0
0
2,275
0.269008
9e698f12281208ec9285a26a2656c4de0a23f99f
3,383
py
Python
api/tests/test_bad_queries.py
jpclark6/datalake
d9dceabe889f55ce589494fae5d00a27985e8088
[ "Apache-2.0" ]
2
2016-12-11T18:00:08.000Z
2017-12-26T22:47:15.000Z
api/tests/test_bad_queries.py
jpclark6/datalake
d9dceabe889f55ce589494fae5d00a27985e8088
[ "Apache-2.0" ]
10
2015-09-24T00:32:55.000Z
2017-09-14T02:15:53.000Z
api/tests/test_bad_queries.py
jpclark6/datalake
d9dceabe889f55ce589494fae5d00a27985e8088
[ "Apache-2.0" ]
2
2016-12-21T16:49:47.000Z
2019-02-24T23:58:11.000Z
# Copyright 2015 Planet Labs, 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 wr...
24.875
79
0.617204
0
0
0
0
0
0
0
0
1,241
0.366834
9e69ba962e4d092d4863d5beb5b0972723e70fc5
936
py
Python
books/urls.py
ravenda900/bookshop-django
d66308a75c69854d55f8093aa8d35d4940cb5689
[ "MIT" ]
null
null
null
books/urls.py
ravenda900/bookshop-django
d66308a75c69854d55f8093aa8d35d4940cb5689
[ "MIT" ]
null
null
null
books/urls.py
ravenda900/bookshop-django
d66308a75c69854d55f8093aa8d35d4940cb5689
[ "MIT" ]
null
null
null
from django.urls import path, include from . import views urlpatterns = [ path('', views.home, name="home"), path('signup', views.signup, name="signup"), path('activate/<uidb64>/<token>/', views.activate_account, name='activate'), path('sell-book', views.sell_book, name='sell_book'), path('book/<in...
52
97
0.698718
0
0
0
0
0
0
0
0
370
0.395299
9e6aea59173b99844868e9ef768a9d1a693c85e4
2,772
py
Python
tests/test_models/test_exception.py
Amourspirit/ooo_uno_tmpl
64e0c86fd68f24794acc22d63d8d32ae05dd12b8
[ "Apache-2.0" ]
null
null
null
tests/test_models/test_exception.py
Amourspirit/ooo_uno_tmpl
64e0c86fd68f24794acc22d63d8d32ae05dd12b8
[ "Apache-2.0" ]
null
null
null
tests/test_models/test_exception.py
Amourspirit/ooo_uno_tmpl
64e0c86fd68f24794acc22d63d8d32ae05dd12b8
[ "Apache-2.0" ]
null
null
null
import pytest from pathlib import Path import json if __name__ == "__main__": pytest.main([__file__]) @pytest.fixture(scope="session") def fixture_exception(fixture_json_path: Path) -> Path: return fixture_json_path / 'exception' / 'Exception.json' def test_exception(fixture_exception): from src.mode...
36.473684
122
0.683622
0
0
0
0
150
0.054113
0
0
500
0.180375
9e6d3fb617d1c39df17947d6364fa31a8d56f02f
4,135
py
Python
automlapi/automl_cognito.py
GFuentesBSC/automlapi
575c23bc4a159ee19d97074762ec299c80578d10
[ "Unlicense" ]
1
2021-04-27T06:08:34.000Z
2021-04-27T06:08:34.000Z
automlapi/automl_cognito.py
GFuentesBSC/automlapi
575c23bc4a159ee19d97074762ec299c80578d10
[ "Unlicense" ]
null
null
null
automlapi/automl_cognito.py
GFuentesBSC/automlapi
575c23bc4a159ee19d97074762ec299c80578d10
[ "Unlicense" ]
1
2021-05-17T17:58:45.000Z
2021-05-17T17:58:45.000Z
import boto3 import base64 import hmac import hashlib from .automl import AWS_ACC_KEY_ID, AWS_SEC_ACC_KEY, USER_POOL_ID, CLIENT_ID, CLIENT_SECRET, AWS_REGION_NAME client_cognito = boto3.client('cognito-idp', aws_access_key_id=AWS_ACC_KEY_ID, aws_secret_access_key=AWS_SEC_ACC_KEY, region_name=AWS_REGI...
29.119718
149
0.708343
0
0
0
0
0
0
0
0
1,367
0.330593
9e6d433ebfb2152c9c032a7b2793db23253d6dbb
10,464
py
Python
Scripts/Genetic Algorithm Optimizations/gazebo_walk_ga.py
Bittu96/humanoid
3b5cfaee25207c3bfe3a47339ec1bd0f8836689a
[ "Apache-2.0" ]
1
2020-09-09T15:02:31.000Z
2020-09-09T15:02:31.000Z
Scripts/Genetic Algorithm Optimizations/gazebo_walk_ga.py
Bittu96/humanoid
3b5cfaee25207c3bfe3a47339ec1bd0f8836689a
[ "Apache-2.0" ]
null
null
null
Scripts/Genetic Algorithm Optimizations/gazebo_walk_ga.py
Bittu96/humanoid
3b5cfaee25207c3bfe3a47339ec1bd0f8836689a
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 from LIPM_with_dsupport import * import random import subprocess from mono_define import * from nav_msgs.msg import Odometry from std_srvs.srv import Empty def walk_test(initiate_time, T_dbl, zc, foot_height): rospy.init_node('mono_move') print('function called') l_2.pub = rospy.Pu...
39.338346
112
0.503727
0
0
0
0
0
0
0
0
1,771
0.169247
9e6ee084797d0ef64a6ff35e8d531e000c40a386
781
py
Python
extract_annotations.py
milesroberts-123/extract-annotations
dde5733835607c80d45a48e4d097cd7322db84e6
[ "MIT" ]
null
null
null
extract_annotations.py
milesroberts-123/extract-annotations
dde5733835607c80d45a48e4d097cd7322db84e6
[ "MIT" ]
null
null
null
extract_annotations.py
milesroberts-123/extract-annotations
dde5733835607c80d45a48e4d097cd7322db84e6
[ "MIT" ]
null
null
null
from BCBio import GFF from Bio import SeqIO import csv import sys in_gff_file = sys.argv[1] out_file = sys.argv[2] #Add annotations to sequences print("Parsing .gff file...") in_handle = open(in_gff_file) limit_info = dict(gff_type = ["mRNA"]) protnames = [] protanno = [] for rec in GFF.parse(in_handle, limit_info ...
23.666667
75
0.713188
0
0
0
0
0
0
0
0
187
0.239437
9e6ee92ffbfcbd13c35e3bca05e4f1adb80adce8
1,657
py
Python
alienLanguageSort.py
syeddabeer/0projects
e132628f3693ed40c5ea9055a6c79f8266196bae
[ "Apache-2.0" ]
null
null
null
alienLanguageSort.py
syeddabeer/0projects
e132628f3693ed40c5ea9055a6c79f8266196bae
[ "Apache-2.0" ]
null
null
null
alienLanguageSort.py
syeddabeer/0projects
e132628f3693ed40c5ea9055a6c79f8266196bae
[ "Apache-2.0" ]
null
null
null
""" In an alien language, surprisingly they also use english lowercase letters, but possibly in a different order. The order of the alphabet is some permutation of lowercase letters. Given a sequence of words written in the alien language, and the order of the alphabet, return true if and only if the given words are s...
35.255319
182
0.631261
766
0.462281
0
0
0
0
0
0
831
0.501509
9e6f2b92ac7a2ae064a50bab58b816c3b9c6230f
163
py
Python
urizen/__init__.py
misagai/urizen
ad756749ae7b0bb6db7024c6128998e56236ee6d
[ "Apache-2.0" ]
107
2020-01-08T21:27:59.000Z
2022-03-19T07:59:23.000Z
urizen/__init__.py
misagai/urizen
ad756749ae7b0bb6db7024c6128998e56236ee6d
[ "Apache-2.0" ]
1
2020-05-22T17:54:12.000Z
2021-06-27T01:02:39.000Z
urizen/__init__.py
misagai/urizen
ad756749ae7b0bb6db7024c6128998e56236ee6d
[ "Apache-2.0" ]
7
2020-01-08T21:12:11.000Z
2022-03-19T07:59:27.000Z
import urizen.core from urizen.core import * import urizen.generators from urizen.generators import * import urizen.visualizers from urizen.visualizers import *
18.111111
32
0.822086
0
0
0
0
0
0
0
0
0
0
9e714ffa033577119fdde50aec9e7885109ed239
3,524
py
Python
osna/tmp/stats_Youtube.py
tapilab/elevate-osna-news
bffe6c9a8269ea1afba0d998b79c8db1b842b7bf
[ "MIT" ]
2
2019-08-14T08:17:33.000Z
2019-11-13T18:03:11.000Z
osna/tmp/stats_Youtube.py
tapilab/elevate-osna-news
bffe6c9a8269ea1afba0d998b79c8db1b842b7bf
[ "MIT" ]
null
null
null
osna/tmp/stats_Youtube.py
tapilab/elevate-osna-news
bffe6c9a8269ea1afba0d998b79c8db1b842b7bf
[ "MIT" ]
2
2020-05-26T05:11:15.000Z
2021-10-08T08:01:21.000Z
import pandas as pd from collections import Counter import re def Mystats(directory): df=pd.read_csv(directory) id=df['social_id'].unique() #1 print('Q1:Number of unique users:',len(id)) mes=df['comment_tokens'] #2 print('Q2:Number of unique messages:',len(mes.unique())) #4 word=[]...
34.54902
74
0.607832
0
0
0
0
0
0
0
0
1,165
0.33059
9e71ac9c81a289cfab5784c2ca72d59fdcd7d4d0
3,300
py
Python
tests/test_css_parsing_tests.py
cmulders/styler
cffc6b99cc97e6299b75e84fe74e39216bd0109e
[ "Apache-2.0" ]
null
null
null
tests/test_css_parsing_tests.py
cmulders/styler
cffc6b99cc97e6299b75e84fe74e39216bd0109e
[ "Apache-2.0" ]
null
null
null
tests/test_css_parsing_tests.py
cmulders/styler
cffc6b99cc97e6299b75e84fe74e39216bd0109e
[ "Apache-2.0" ]
null
null
null
import codecs import re from collections import namedtuple import unittest from typing import Collection, Iterable, Sequence, Tuple, Type import io from pathlib import Path from styler import decode import json import logging from itertools import islice logger = logging.getLogger(__name__) CSS_PARSING_TESTS_DIR = ...
30.841121
124
0.638788
2,710
0.821212
0
0
1,552
0.470303
0
0
652
0.197576
9e74579632486a6b6e9af658505be492f28cf2a0
1,886
py
Python
Callum/Day3/Day3.py
JackDanielHarding/advent-of-code-2021
5b860e36b4ac1af205c992763167ffef41a81a1b
[ "CC0-1.0" ]
null
null
null
Callum/Day3/Day3.py
JackDanielHarding/advent-of-code-2021
5b860e36b4ac1af205c992763167ffef41a81a1b
[ "CC0-1.0" ]
null
null
null
Callum/Day3/Day3.py
JackDanielHarding/advent-of-code-2021
5b860e36b4ac1af205c992763167ffef41a81a1b
[ "CC0-1.0" ]
null
null
null
from collections import Counter from functools import reduce with open("./input.txt", "r") as inputFile: readingsStr = inputFile.read().splitlines() columnsRange = range(len(readingsStr[0])) columns = map(lambda columnIndex : map(lambda row : row[columnIndex], readingsStr), columnsRange) multiModes = map(lambda c...
46
133
0.73701
0
0
0
0
0
0
0
0
161
0.085366
9e753ccf2f01c17789c789b78559c01a411800d2
2,637
py
Python
shell/shell.py
utep-cs-systems-courses/1-shell-EdwinTomy
5e15372a49712584bc6a1bf3d8a508eb5328287a
[ "BSD-3-Clause" ]
null
null
null
shell/shell.py
utep-cs-systems-courses/1-shell-EdwinTomy
5e15372a49712584bc6a1bf3d8a508eb5328287a
[ "BSD-3-Clause" ]
null
null
null
shell/shell.py
utep-cs-systems-courses/1-shell-EdwinTomy
5e15372a49712584bc6a1bf3d8a508eb5328287a
[ "BSD-3-Clause" ]
null
null
null
import os, sys, re while True: path = os.getcwd() + " $" # User input os.write(1, path.encode()) args = os.read(0, 1000).decode().split() # Exit if args[0] == "exit": if len(args) > 1: print("Program terminated with exit code", args[1]) sys.exit(int(args[1])) ...
24.877358
63
0.454683
0
0
0
0
0
0
0
0
382
0.144862
9e7720d00dac0986b6a6877d0a71575810560a55
528
py
Python
lexicographic_order.py
YukiShinonome/NLP
2ac59b0adc777882f8183cdca360bc277046d42c
[ "MIT" ]
4
2018-08-07T02:31:27.000Z
2020-07-18T15:43:28.000Z
lexicographic_order.py
yukishinonome/NLP
2ac59b0adc777882f8183cdca360bc277046d42c
[ "MIT" ]
null
null
null
lexicographic_order.py
yukishinonome/NLP
2ac59b0adc777882f8183cdca360bc277046d42c
[ "MIT" ]
null
null
null
def lexicographic_order(w_list): """ 単語のリストを辞書式順序(五十音順)に並び替える。 優先度:半角記号・半角数字 > アルファベット > ひらがな > カタカナ > 漢字 > 全角記号・全角数字 注意:漢字を意図した読みで認識しているとは限らず、人間が使う辞書の並びと異なる場合がある。 """ w_list = sorted(w_list) # もう一つ方法がある # w_list.sort() print(w_list) if __name__ == '__main__': w_list = ["おはよう",...
31.058824
81
0.530303
0
0
0
0
0
0
0
0
615
0.721831
9e78a464d85758a6410cf9ef2916db721432642c
4,860
py
Python
radar_label_convert_kitti_format.py
wzan0001/Astyx-radar-dataset-convert-to-kitti-format
f0e6bf04fc9cd7b49c96f09803598a2c8561bf5a
[ "MIT" ]
12
2019-11-04T08:56:41.000Z
2022-03-29T05:47:14.000Z
radar_label_convert_kitti_format.py
paland3/Astyx-radar-dataset-convert-to-kitti-format
f0e6bf04fc9cd7b49c96f09803598a2c8561bf5a
[ "MIT" ]
3
2019-12-04T18:19:06.000Z
2020-10-08T12:34:21.000Z
radar_label_convert_kitti_format.py
paland3/Astyx-radar-dataset-convert-to-kitti-format
f0e6bf04fc9cd7b49c96f09803598a2c8561bf5a
[ "MIT" ]
3
2019-12-04T18:06:37.000Z
2020-10-01T09:25:10.000Z
##################################################### ##将radar 数据转为kitti格式 ## ##################################################### import json import math import os import numpy as np import utils def rotMat2quatern(R): # transform the rotation matrix into quatern q = np.zeros...
37.384615
122
0.480864
0
0
0
0
0
0
0
0
615
0.12618
9e7a0da2b81a2065d69c0b76472c3f6bc721ee3a
2,739
py
Python
wb/main/jobs/accuracy_analysis/per_tensor/create_per_tensor_scripts_job.py
apaniukov/workbench
2f2653ecfd0143d2d53e33ad84379f13443fdfaa
[ "Apache-2.0" ]
23
2022-03-17T12:24:09.000Z
2022-03-31T09:13:30.000Z
wb/main/jobs/accuracy_analysis/per_tensor/create_per_tensor_scripts_job.py
apaniukov/workbench
2f2653ecfd0143d2d53e33ad84379f13443fdfaa
[ "Apache-2.0" ]
18
2022-03-21T08:17:44.000Z
2022-03-30T12:42:30.000Z
wb/main/jobs/accuracy_analysis/per_tensor/create_per_tensor_scripts_job.py
apaniukov/workbench
2f2653ecfd0143d2d53e33ad84379f13443fdfaa
[ "Apache-2.0" ]
16
2022-03-17T12:24:14.000Z
2022-03-31T12:15:12.000Z
""" OpenVINO DL Workbench Class for creating per tensor scripts job Copyright (c) 2021 Intel 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/L...
44.177419
104
0.775831
1,454
0.530851
0
0
0
0
0
0
645
0.235487
9e7a19b95d053efb0d88b148936622f138516c6b
862
py
Python
src/products/migrations/0010_auto_20201201_0119.py
xistadi/BookStore
878c27e0c53ac0434d3866e4a27ffb0e460e4363
[ "Apache-2.0" ]
null
null
null
src/products/migrations/0010_auto_20201201_0119.py
xistadi/BookStore
878c27e0c53ac0434d3866e4a27ffb0e460e4363
[ "Apache-2.0" ]
null
null
null
src/products/migrations/0010_auto_20201201_0119.py
xistadi/BookStore
878c27e0c53ac0434d3866e4a27ffb0e460e4363
[ "Apache-2.0" ]
null
null
null
# Generated by Django 3.1.2 on 2020-11-30 22:19 import django.core.validators from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('products', '0009_auto_20201201_0038'), ] operations = [ migrations.RemoveField( model_name='book',...
29.724138
189
0.62993
772
0.86257
0
0
0
0
0
0
210
0.234637
9e7f4a260998bd0657b9e3609f0b0e379a30df8c
212
py
Python
Integrators/leap.py
chaosandcomplexity/Classical-Propagation
2180d1aafd5e0b5c378382b9fdbeb21d759b6ce2
[ "MIT" ]
null
null
null
Integrators/leap.py
chaosandcomplexity/Classical-Propagation
2180d1aafd5e0b5c378382b9fdbeb21d759b6ce2
[ "MIT" ]
null
null
null
Integrators/leap.py
chaosandcomplexity/Classical-Propagation
2180d1aafd5e0b5c378382b9fdbeb21d759b6ce2
[ "MIT" ]
null
null
null
def method(q1,p1,dq,dp,t1,dt): a1=[0.5,0.5] b1=[0,1] A=[dq,dp] for i in range(len(a1)): q1+=b1[i]*dt*A[0](q1,p1,t1) p1+=a1[i]*dt*A[1](q1,p1,t1) t1+=dt return q1,p1,t1
19.272727
35
0.462264
0
0
0
0
0
0
0
0
0
0
9e7f57ad27d934ffd652f467c3d73fde22074499
1,217
py
Python
pandora/queue.py
shwetabhsharan/leetcode
6630592b1f962bb4c4bb3c83162a8ff12b2074b3
[ "MIT" ]
null
null
null
pandora/queue.py
shwetabhsharan/leetcode
6630592b1f962bb4c4bb3c83162a8ff12b2074b3
[ "MIT" ]
null
null
null
pandora/queue.py
shwetabhsharan/leetcode
6630592b1f962bb4c4bb3c83162a8ff12b2074b3
[ "MIT" ]
null
null
null
""" enqueue dequeue size traverse Queue Implementation using SLL """ class Node(object): def __init__(self, value): self.value = value self.next = None class Queue(object): def __init__(self): self.head = None def enqueue(self, value): if self.head is None: s...
19.015625
35
0.507806
1,008
0.828266
0
0
0
0
0
0
70
0.057518
9e80b42b52475d6e15054bfeda78fadd12468c69
2,133
py
Python
spotify/v1/track.py
geekonedge/spotify
1f4cf733a1fb11ab96259ed1e229b141e5c696f3
[ "MIT" ]
2
2018-10-10T08:00:47.000Z
2021-10-12T04:15:33.000Z
spotify/v1/track.py
geekonedge/spotify
1f4cf733a1fb11ab96259ed1e229b141e5c696f3
[ "MIT" ]
2
2018-08-31T21:59:47.000Z
2018-08-31T22:27:57.000Z
spotify/v1/track.py
geekonedge/spotify
1f4cf733a1fb11ab96259ed1e229b141e5c696f3
[ "MIT" ]
1
2018-08-31T21:18:58.000Z
2018-08-31T21:18:58.000Z
from spotify import values from spotify.page import Page from spotify.resource import Resource, UpgradableInstance class TrackContext(Resource): def __init__(self, version, id): super(TrackContext, self).__init__(version) self.id = id def fetch(self, market=values.UNSET): params = va...
23.184783
92
0.635724
2,006
0.940459
0
0
1,076
0.504454
0
0
190
0.089076
9e82bb1c42a0dd7d3d0090469ffab04c743997a6
3,526
py
Python
basic/wordcount.py
duyduc27/Google-s-Python-Class
1ea9ab6e4d4f60564f4226b9ff9aaf94b1854a7d
[ "Apache-2.0" ]
null
null
null
basic/wordcount.py
duyduc27/Google-s-Python-Class
1ea9ab6e4d4f60564f4226b9ff9aaf94b1854a7d
[ "Apache-2.0" ]
null
null
null
basic/wordcount.py
duyduc27/Google-s-Python-Class
1ea9ab6e4d4f60564f4226b9ff9aaf94b1854a7d
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python -tt # Copyright 2010 Google Inc. # Licensed under the Apache License, Version 2.0 # http://www.apache.org/licenses/LICENSE-2.0 # Google's Python Class # http://code.google.com/edu/languages/google-python-class/ """Wordcount exercise Google's Python class The main() below is already defined and comp...
28.208
85
0.67612
0
0
0
0
0
0
0
0
2,340
0.663642
9e8502300566fe834355583417c7c53166b5b4bb
871
py
Python
tests/test_multicollinearity_test.py
flor14/lrasm
dd3a05f34319049f51fdfa9407ab4d5906ea82ed
[ "MIT" ]
null
null
null
tests/test_multicollinearity_test.py
flor14/lrasm
dd3a05f34319049f51fdfa9407ab4d5906ea82ed
[ "MIT" ]
21
2022-01-16T23:56:32.000Z
2022-02-05T18:51:49.000Z
tests/test_multicollinearity_test.py
flor14/lrasm
dd3a05f34319049f51fdfa9407ab4d5906ea82ed
[ "MIT" ]
2
2022-01-27T20:30:01.000Z
2022-02-26T01:32:21.000Z
from lrasm.multicollinearity_tst import multicollinearity_test import numpy as np import pandas as pd from statsmodels.stats.outliers_influence import variance_inflation_factor import pytest def test_multicollinearity_test(): """Test multicollinearity test outputs from dataset""" X_proper = pd.DataFrame({"hea...
39.590909
112
0.699196
0
0
0
0
0
0
0
0
95
0.10907
9e86f093b3ddd416fb693a33a299a63023c78c4a
1,014
py
Python
src/entry_point.py
TaikiInoue/KaoruRecognition
9e42944d89abeea3a754b8ce858b0aa66119565f
[ "MIT" ]
null
null
null
src/entry_point.py
TaikiInoue/KaoruRecognition
9e42944d89abeea3a754b8ce858b0aa66119565f
[ "MIT" ]
null
null
null
src/entry_point.py
TaikiInoue/KaoruRecognition
9e42944d89abeea3a754b8ce858b0aa66119565f
[ "MIT" ]
null
null
null
# References # https://docs.aws.amazon.com/sagemaker/latest/dg/adapt-inference-container.html import logging import numpy as np import PIL from numpy import ndarray as NDArray from PIL.Image import Image from six import BytesIO from torch.nn import Module from facenet_pytorch import MTCNN logger = logging.getLogge...
23.045455
85
0.732742
0
0
0
0
0
0
0
0
138
0.136095
9e87ca188b43074a3794e37a50617be88767b932
2,528
py
Python
opentamp/domains/namo_domain/generate_simple_sort.py
Algorithmic-Alignment-Lab/openTAMP
f0642028d551d0436b3a3dbc3bfb2f23a00adc14
[ "MIT" ]
4
2022-02-13T15:52:18.000Z
2022-03-26T17:33:13.000Z
opentamp/domains/namo_domain/generate_simple_sort.py
Algorithmic-Alignment-Lab/OpenTAMP
eecb950bd273da8cbed4394487630e8453f2c242
[ "MIT" ]
1
2022-02-13T22:48:09.000Z
2022-02-13T22:48:09.000Z
opentamp/domains/namo_domain/generate_simple_sort.py
Algorithmic-Alignment-Lab/OpenTAMP
eecb950bd273da8cbed4394487630e8453f2c242
[ "MIT" ]
null
null
null
import itertools import random NUM_CANS = 1 filename = "namo_probs/sort_prob_{0}.prob".format(NUM_CANS) GOAL = "(RobotAt pr2 robot_end_pose)" HEIGHT = 5 WIDTH = 5 def main(): s = "# AUTOGENERATED. DO NOT EDIT.\n# Configuration file for NAMO problem instance. Blank lines and lines beginning with # are filtered ...
37.731343
171
0.561709
0
0
0
0
0
0
0
0
1,475
0.583465
9e87cdddbb6985c539e2f3fd8f43bf67a78297aa
862
py
Python
setup.py
al45tair/pygeon
70e95f6ffc8988fa212e312452d4688e0e544966
[ "MIT" ]
1
2022-02-26T17:14:38.000Z
2022-02-26T17:14:38.000Z
setup.py
al45tair/pygeon
70e95f6ffc8988fa212e312452d4688e0e544966
[ "MIT" ]
null
null
null
setup.py
al45tair/pygeon
70e95f6ffc8988fa212e312452d4688e0e544966
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from setuptools import setup with open('README.rst', 'rb') as f: long_desc = f.read().decode('utf-8') setup(name='pygeon', version='0.1.0', description='IP Geolocation in Python', long_description=long_desc, author='Alastair Houghton', author_email='alastair@a...
28.733333
55
0.558005
0
0
0
0
0
0
0
0
419
0.486079
9e87ed3751d6a84cde898423e624e0e29e5bc397
357
py
Python
api/static_api.py
SachinKalsi/face-detection-api
93d012a1b315d3898dbff2612e7beffabdf7d9f7
[ "MIT" ]
9
2019-02-28T09:32:39.000Z
2021-07-06T23:12:47.000Z
api/static_api.py
SachinKalsi/face-detection-api
93d012a1b315d3898dbff2612e7beffabdf7d9f7
[ "MIT" ]
2
2022-01-13T01:00:20.000Z
2022-03-11T23:37:01.000Z
api/static_api.py
SachinKalsi/face-api
93d012a1b315d3898dbff2612e7beffabdf7d9f7
[ "MIT" ]
4
2020-02-02T17:04:33.000Z
2020-09-14T05:25:59.000Z
from flask import Blueprint, render_template, send_file from flask_app import app static_api = Blueprint('static_api', __name__) # @static_api.route('/', methods=['GET']) # def index(): # return render_template('index.html') @static_api.route('/<image_id>', methods=['GET']) def get_image(image_id): return se...
29.75
55
0.714286
0
0
0
0
125
0.35014
0
0
142
0.397759
9e8817627535df6f0d585998aa24f60ff7d9791c
365
py
Python
skp_edu_docker/code/cluster/preprocess/pre_node_feed_fr2cnn.py
TensorMSA/hoyai_docker
12f0041e6306d8a6421585a4b51666bad30be442
[ "MIT" ]
8
2017-06-16T00:19:12.000Z
2020-08-13T03:15:57.000Z
skp_edu_docker/code/cluster/preprocess/pre_node_feed_fr2cnn.py
TensorMSA/tensormsa_docker
12f0041e6306d8a6421585a4b51666bad30be442
[ "MIT" ]
21
2017-06-09T10:15:14.000Z
2018-03-29T07:51:02.000Z
skp_edu_docker/code/cluster/preprocess/pre_node_feed_fr2cnn.py
TensorMSA/hoyai_docker
12f0041e6306d8a6421585a4b51666bad30be442
[ "MIT" ]
4
2017-10-25T09:59:53.000Z
2020-05-07T09:51:11.000Z
from cluster.preprocess.pre_node_feed import PreNodeFeed class PreNodeFeedFr2Cnn(PreNodeFeed): """ """ def run(self, conf_data): """ override init class """ super(PreNodeFeedFr2Cnn, self).run(conf_data) self._init_node_parm(conf_data['node_id']) def _convert_...
19.210526
56
0.635616
304
0.832877
0
0
0
0
0
0
64
0.175342
9e8906fbd78257ce287c1863743dd186ef2262c2
3,535
py
Python
Multi_Page_WebApp/services/python_worker/receive.py
Anthogr/netcdf_editor_app
e1d5fe9bcb5e9374dceec517c3532743dd7f2539
[ "MIT" ]
8
2020-11-04T15:55:02.000Z
2021-09-02T11:12:50.000Z
Multi_Page_WebApp/services/python_worker/receive.py
Anthogr/netcdf_editor_app
e1d5fe9bcb5e9374dceec517c3532743dd7f2539
[ "MIT" ]
88
2020-10-09T14:32:12.000Z
2021-07-21T14:09:58.000Z
Multi_Page_WebApp/services/python_worker/receive.py
Anthogr/netcdf_editor_app
e1d5fe9bcb5e9374dceec517c3532743dd7f2539
[ "MIT" ]
5
2020-11-10T17:10:24.000Z
2021-10-05T03:11:47.000Z
#!/usr/bin/env python from datetime import datetime import pika import os import sys import steps # noqa: F401 import json from climate_simulation_platform.db import step_parameters, save_step, step_seen from climate_simulation_platform import create_app def func_params(func, body): # If invalidated isn't in ke...
33.037383
100
0.595474
0
0
0
0
0
0
0
0
958
0.271004
9e8bb6044559a80cc3e9ba40b40090e9b9222e9d
7,764
py
Python
run_cqa_inference.py
SeonjeongHwang/coqa_cqa
67169b62e4d213d0e61cd31d844ad9665918049b
[ "Apache-2.0" ]
1
2022-02-22T07:05:40.000Z
2022-02-22T07:05:40.000Z
run_cqa_inference.py
SeonjeongHwang/coqa_cqa
67169b62e4d213d0e61cd31d844ad9665918049b
[ "Apache-2.0" ]
null
null
null
run_cqa_inference.py
SeonjeongHwang/coqa_cqa
67169b62e4d213d0e61cd31d844ad9665918049b
[ "Apache-2.0" ]
null
null
null
import os import sys import random import json import tqdm import pickle import torch import torch.nn as nn import torch.nn.functional as F from torch.utils.data import Dataset, DataLoader import numpy as np from transformers import BertTokenizer, BertModel, AdamW, get_linear_schedule_with_warmup fr...
39.015075
109
0.6212
3,032
0.39052
0
0
0
0
0
0
1,110
0.142968
9e8bde4f4893f69df667f132646ec28b77e6aaf9
1,542
py
Python
anywayapp/base.py
ronreiter/anyway
90326b7defaec062d75653729fd63a1913074064
[ "BSD-3-Clause" ]
8
2016-09-14T11:31:04.000Z
2021-02-23T22:29:55.000Z
anywayapp/base.py
ronreiter/anyway
90326b7defaec062d75653729fd63a1913074064
[ "BSD-3-Clause" ]
2
2015-03-02T15:16:09.000Z
2016-11-16T11:20:15.000Z
anywayapp/base.py
ronreiter/anyway
90326b7defaec062d75653729fd63a1913074064
[ "BSD-3-Clause" ]
4
2015-03-01T09:50:57.000Z
2020-08-28T12:03:37.000Z
import webapp2 from models import * from webapp2_extras import sessions def user_optional(handler): def check_login(self, *args, **kwargs): self.user = self.get_user() return handler(self, *args, **kwargs) return check_login def user_required(handler): def check_login(self, *a...
29.653846
105
0.610246
883
0.572633
0
0
156
0.101167
0
0
210
0.136187
9e8d0d88791289330a7412e20650652419814d5a
9,447
py
Python
datasets/kitti.py
ShengyuH/PredateOverlap
770c3063399f08b3836935212ab4c84d355b4704
[ "MIT" ]
153
2020-11-30T09:47:11.000Z
2021-04-28T00:58:10.000Z
datasets/kitti.py
ShengyuH/PredateOverlap
770c3063399f08b3836935212ab4c84d355b4704
[ "MIT" ]
31
2021-05-10T12:39:19.000Z
2022-03-27T03:07:45.000Z
datasets/kitti.py
ShengyuH/PredateOverlap
770c3063399f08b3836935212ab4c84d355b4704
[ "MIT" ]
22
2020-11-30T13:50:55.000Z
2021-04-28T09:47:40.000Z
# Basic libs import os, time, glob, random, pickle, copy, torch import numpy as np import open3d from scipy.spatial.transform import Rotation # Dataset parent class from torch.utils.data import Dataset from lib.benchmark_utils import to_tsfm, to_o3d_pcd, get_correspondences class KITTIDataset(Dataset): """ W...
40.896104
146
0.592887
9,168
0.970467
0
0
555
0.058749
0
0
1,168
0.123637
9e8d10545762b08a28204f212d3c73b287afb2c3
1,344
py
Python
bin/compare_versions.py
sdss/lvmmodel
1ab52f51a172500f8a10e762c88b9929898e1b20
[ "BSD-3-Clause" ]
2
2017-07-18T19:22:38.000Z
2021-12-17T16:02:01.000Z
bin/compare_versions.py
sdss/lvmmodel
1ab52f51a172500f8a10e762c88b9929898e1b20
[ "BSD-3-Clause" ]
134
2016-02-07T03:48:48.000Z
2022-02-21T17:50:09.000Z
bin/compare_versions.py
sdss/lvmmodel
1ab52f51a172500f8a10e762c88b9929898e1b20
[ "BSD-3-Clause" ]
3
2017-07-12T21:36:19.000Z
2022-01-11T16:15:44.000Z
#!/usr/bin/env python """ Make plots to compare two different versions of desimodel Stephen Bailey, LBL July 2014 """ import os, sys import numpy as np import pylab as P import matplotlib.pyplot as plt import fitsio camcolor = dict(b='b', r='r', z='k') def compare_throughput(dir1, dir2): P.figure() p0 = pl...
23.578947
74
0.554315
0
0
0
0
0
0
0
0
412
0.306548
9e8e19f97e0eb39926f29ca476d7649b8872fc92
1,923
py
Python
tests/graph/parallel_graphs.py
marcelotrevisani/acorns
682749b0963ffc0a3998a7065ef505fc95123f50
[ "MIT" ]
null
null
null
tests/graph/parallel_graphs.py
marcelotrevisani/acorns
682749b0963ffc0a3998a7065ef505fc95123f50
[ "MIT" ]
null
null
null
tests/graph/parallel_graphs.py
marcelotrevisani/acorns
682749b0963ffc0a3998a7065ef505fc95123f50
[ "MIT" ]
null
null
null
import matplotlib.pyplot as plt import numpy as np import os import json import seaborn as sns import re sns.set(style="darkgrid") def atoi(text): return int(text) if text.isdigit() else text def natural_keys(text): ''' alist.sort(key=natural_keys) sorts in human order http://nedbatcheld...
33.736842
122
0.680707
0
0
0
0
0
0
0
0
529
0.275091