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
bcc4fcfb44a442a2523238a8484bf80417464006
5,084
py
Python
tests/integration_tests/security/test_seccomp.py
gregbdunn/firecracker
e7bc0a1f9b70deaa7bfd9eb641e0c7982fe63e68
[ "Apache-2.0" ]
2
2018-12-20T05:40:43.000Z
2018-12-20T05:59:58.000Z
tests/integration_tests/security/test_seccomp.py
gregbdunn/firecracker
e7bc0a1f9b70deaa7bfd9eb641e0c7982fe63e68
[ "Apache-2.0" ]
null
null
null
tests/integration_tests/security/test_seccomp.py
gregbdunn/firecracker
e7bc0a1f9b70deaa7bfd9eb641e0c7982fe63e68
[ "Apache-2.0" ]
1
2018-11-27T08:50:51.000Z
2018-11-27T08:50:51.000Z
# Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved. # SPDX-License-Identifier: Apache-2.0 """Tests that the seccomp filters don't let blacklisted syscalls through.""" import os from subprocess import run import pytest import host_tools.cargo_build as host # pylint:disable=import-error def...
29.387283
79
0.696302
bcc54625026e4e77ba54fe67d05a342fde131c90
185
py
Python
cluster/density/test.py
michealowen/MachingLearning
9dcc908f2d3e468390e5abb7f051b449b0ecb455
[ "Apache-2.0" ]
2
2019-09-11T07:02:25.000Z
2020-12-17T10:40:02.000Z
cluster/density/test.py
michealowen/MachingLearning
9dcc908f2d3e468390e5abb7f051b449b0ecb455
[ "Apache-2.0" ]
null
null
null
cluster/density/test.py
michealowen/MachingLearning
9dcc908f2d3e468390e5abb7f051b449b0ecb455
[ "Apache-2.0" ]
null
null
null
aa = a(1) aa.go()
12.333333
26
0.475676
bcc5a1b4f97e4fd31b1d8727fc7f8a5dcff9e43e
566,013
py
Python
REM/Tool/IDA 7.3/python/ida_hexrays.py
dodieboy/Np_class
af9ec993eda3c1e2bf70257c8384696bb64a5e9d
[ "MIT" ]
null
null
null
REM/Tool/IDA 7.3/python/ida_hexrays.py
dodieboy/Np_class
af9ec993eda3c1e2bf70257c8384696bb64a5e9d
[ "MIT" ]
null
null
null
REM/Tool/IDA 7.3/python/ida_hexrays.py
dodieboy/Np_class
af9ec993eda3c1e2bf70257c8384696bb64a5e9d
[ "MIT" ]
2
2021-03-30T00:46:58.000Z
2021-12-12T23:41:12.000Z
# This file was automatically generated by SWIG (http://www.swig.org). # Version 2.0.12 # # Do not make changes to this file unless you know what you are doing--modify # the SWIG interface file instead. """ IDA Plugin SDK API wrapper: hexrays """ from sys import version_info if version_info >= (2,6,0): _ida_h...
29.641948
603
0.637696
bcc6795e9da5c859c6308d7dfd37a7f5806dbb41
3,714
py
Python
webapp/gen_graphs.py
bfitzy2142/NET4901-SP
908c13332a5356bd6a59879b8d78af76432b807c
[ "MIT" ]
3
2019-08-04T03:09:02.000Z
2020-06-08T15:48:36.000Z
webapp/gen_graphs.py
bfitzy2142/NET4901-SP
908c13332a5356bd6a59879b8d78af76432b807c
[ "MIT" ]
3
2019-09-06T08:30:21.000Z
2020-06-30T03:24:56.000Z
webapp/gen_graphs.py
bfitzy2142/NET4901-SP-SDLENS
908c13332a5356bd6a59879b8d78af76432b807c
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 """ @author: Sam Cook MySql Parser for graphical presentation """ import mysql.connector import datetime from mysql.connector import Error from datetime import datetime, timedelta import json
34.71028
72
0.53608
bcca1a19ecd367ba4725d3ef774b347cae61be62
830
py
Python
scqubits/tests/test_fluxqubit.py
dmtvanzanten/scqubits
d4d8a0f71ac91077594a6173348279aa490ed048
[ "BSD-3-Clause" ]
null
null
null
scqubits/tests/test_fluxqubit.py
dmtvanzanten/scqubits
d4d8a0f71ac91077594a6173348279aa490ed048
[ "BSD-3-Clause" ]
null
null
null
scqubits/tests/test_fluxqubit.py
dmtvanzanten/scqubits
d4d8a0f71ac91077594a6173348279aa490ed048
[ "BSD-3-Clause" ]
null
null
null
# test_fluxqubit.py # meant to be run with 'pytest' # # This file is part of scqubits. # # Copyright (c) 2019 and later, Jens Koch and Peter Groszkowski # All rights reserved. # # This source code is licensed under the BSD-style license found in the # LICENSE file in the root directory of this source tree. ...
28.62069
76
0.622892
bcca9310b776373045a4dd0e28575a2063a3d591
1,379
py
Python
PhysicsTools/PatAlgos/python/producersLayer1/pfParticleProducer_cfi.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
852
2015-01-11T21:03:51.000Z
2022-03-25T21:14:00.000Z
PhysicsTools/PatAlgos/python/producersLayer1/pfParticleProducer_cfi.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
30,371
2015-01-02T00:14:40.000Z
2022-03-31T23:26:05.000Z
PhysicsTools/PatAlgos/python/producersLayer1/pfParticleProducer_cfi.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
3,240
2015-01-02T05:53:18.000Z
2022-03-31T17:24:21.000Z
import FWCore.ParameterSet.Config as cms patPFParticles = cms.EDProducer("PATPFParticleProducer", # General configurables pfCandidateSource = cms.InputTag("noJet"), # MC matching configurables addGenMatch = cms.bool(False), genParticleMatch = cms.InputTag(""), ## particles source to be used for ...
29.340426
106
0.585207
bccb37cf2799cc964344db7c5cf679594dae2889
2,252
py
Python
tests/test_api.py
ines/spacy-js
5b7a86cb0d1099285e01252f7e1d44a36ad9a07f
[ "MIT" ]
141
2018-10-27T17:18:54.000Z
2022-03-31T11:08:02.000Z
tests/test_api.py
Fabulabs/spacy-js
c7a34298203d26b25f9eb1f6b9eb875faa33d144
[ "MIT" ]
16
2018-10-27T21:44:36.000Z
2022-01-22T03:01:54.000Z
tests/test_api.py
Fabulabs/spacy-js
c7a34298203d26b25f9eb1f6b9eb875faa33d144
[ "MIT" ]
22
2019-01-12T16:38:20.000Z
2022-03-14T19:11:38.000Z
# coding: utf8 from __future__ import unicode_literals import pytest import spacy import json from api.server import parse, doc2json, load_model def test_server_parse(model, text, doc): load_model(model) json_doc = parse(model, text) direct_json_doc = doc2json(doc, model) assert json.dumps(json_...
27.463415
68
0.654085
bcccafa97336dc1ded4587f29664425a01e6d815
28,365
py
Python
python/GafferArnold/ArnoldTextureBake.py
medubelko/gaffer
12c5994c21dcfb8b13b5b86efbcecdcb29202b33
[ "BSD-3-Clause" ]
1
2019-12-02T02:31:25.000Z
2019-12-02T02:31:25.000Z
python/GafferArnold/ArnoldTextureBake.py
medubelko/gaffer
12c5994c21dcfb8b13b5b86efbcecdcb29202b33
[ "BSD-3-Clause" ]
null
null
null
python/GafferArnold/ArnoldTextureBake.py
medubelko/gaffer
12c5994c21dcfb8b13b5b86efbcecdcb29202b33
[ "BSD-3-Clause" ]
null
null
null
########################################################################## # # Copyright (c) 2018, Image Engine Design Inc. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: # # * Redistrib...
47.196339
175
0.692649
bccd1fa8fe336f245d1474aeb673c6c021c08a1b
20,598
py
Python
aea/protocols/generator/common.py
valory-xyz/agents-aea
8f38efa96041b0156ed1ae328178e395dbabf2fc
[ "Apache-2.0" ]
null
null
null
aea/protocols/generator/common.py
valory-xyz/agents-aea
8f38efa96041b0156ed1ae328178e395dbabf2fc
[ "Apache-2.0" ]
null
null
null
aea/protocols/generator/common.py
valory-xyz/agents-aea
8f38efa96041b0156ed1ae328178e395dbabf2fc
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # ------------------------------------------------------------------------------ # # Copyright 2022 Valory AG # Copyright 2018-2021 Fetch.AI Limited # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # ...
35.636678
151
0.646373
bccd22c451ca48a6b2b63fe4d46e6f3d5177271f
12,177
py
Python
tests/unit/python/foglamp/services/core/api/test_backup_restore.py
vaibhav-ScaleDB/FogLAMP
445e7a588f5ec5fcae0360b49fdc4e4de0ea2ec8
[ "Apache-2.0" ]
null
null
null
tests/unit/python/foglamp/services/core/api/test_backup_restore.py
vaibhav-ScaleDB/FogLAMP
445e7a588f5ec5fcae0360b49fdc4e4de0ea2ec8
[ "Apache-2.0" ]
null
null
null
tests/unit/python/foglamp/services/core/api/test_backup_restore.py
vaibhav-ScaleDB/FogLAMP
445e7a588f5ec5fcae0360b49fdc4e4de0ea2ec8
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # FOGLAMP_BEGIN # See: http://foglamp.readthedocs.io/ # FOGLAMP_END import os import asyncio import json from unittest.mock import MagicMock, patch from collections import Counter from aiohttp import web import pytest from foglamp.services.core import routes from foglamp.services.core import ...
46.834615
123
0.635214
bccd4ecf3e75810f078465ed5395ba34d886f56a
3,690
py
Python
pyemits/core/preprocessing/dimensional_reduction.py
thompson0012/PyEmits
9cb6fbf27ca7e8952ed5aca26118055e04492c23
[ "Apache-2.0" ]
6
2021-10-21T14:13:25.000Z
2021-12-26T12:22:51.000Z
pyemits/core/preprocessing/dimensional_reduction.py
thompson0012/PyEmits
9cb6fbf27ca7e8952ed5aca26118055e04492c23
[ "Apache-2.0" ]
null
null
null
pyemits/core/preprocessing/dimensional_reduction.py
thompson0012/PyEmits
9cb6fbf27ca7e8952ed5aca26118055e04492c23
[ "Apache-2.0" ]
null
null
null
""" Why need dimensional reduction The following is the use of dimensionality reduction in the data set: As data dimensions continue to decrease, the space required for data storage will also decrease. Low-dimensional data helps reduce calculation/training time. Some algorithms tend to perform poorly on high-dimens...
30.495868
217
0.714363
bccea585927cd051fb0a3ed4b33c0aada5c1d9b8
456
py
Python
sample_project/exam/exam.py
pcse/gitlab_tools
2896b636b0f8955bdb5f2236e257cc5d3efd54d7
[ "BSD-3-Clause" ]
null
null
null
sample_project/exam/exam.py
pcse/gitlab_tools
2896b636b0f8955bdb5f2236e257cc5d3efd54d7
[ "BSD-3-Clause" ]
null
null
null
sample_project/exam/exam.py
pcse/gitlab_tools
2896b636b0f8955bdb5f2236e257cc5d3efd54d7
[ "BSD-3-Clause" ]
1
2022-03-17T16:51:08.000Z
2022-03-17T16:51:08.000Z
""" These methods can be called inside WebCAT to determine which tests are loaded for a given section/exam pair. This allows a common WebCAT submission site to support different project tests """
25.333333
78
0.723684
bccf9e77bf6eaccd18d5b5a8053e3859146a0272
2,727
py
Python
scrapy/clarinetear/spiders/pagina12.py
ramiror/clarinete
4ebf37cf9f705e04e2aad15015be12c48fe25fd3
[ "BSD-2-Clause" ]
null
null
null
scrapy/clarinetear/spiders/pagina12.py
ramiror/clarinete
4ebf37cf9f705e04e2aad15015be12c48fe25fd3
[ "BSD-2-Clause" ]
null
null
null
scrapy/clarinetear/spiders/pagina12.py
ramiror/clarinete
4ebf37cf9f705e04e2aad15015be12c48fe25fd3
[ "BSD-2-Clause" ]
null
null
null
from datetime import datetime import scrapy import lxml from lxml.html.clean import Cleaner import re SOURCE = 'Pgina 12' LANGUAGE = 'es' cleaner = Cleaner(allow_tags=['p', 'br', 'b', 'a', 'strong', 'i', 'em'])
32.855422
104
0.521819
bccfcca536c98cf3954ec419341b10079911dafc
6,978
py
Python
svd.py
christyc14/fyp
c63e719e383a84eb49ffa0c8bd901bfd4aef5864
[ "MIT" ]
null
null
null
svd.py
christyc14/fyp
c63e719e383a84eb49ffa0c8bd901bfd4aef5864
[ "MIT" ]
null
null
null
svd.py
christyc14/fyp
c63e719e383a84eb49ffa0c8bd901bfd4aef5864
[ "MIT" ]
null
null
null
from calendar import c from typing import Dict, List, Union from zlib import DEF_BUF_SIZE import json_lines import numpy as np import re from sklearn.preprocessing import MultiLabelBinarizer from sklearn.manifold import TSNE from sklearn.preprocessing import StandardScaler import pandas as pd import json from scipy.spa...
38.131148
111
0.655775
bccff1b3d6077ecdb8e86f1fedd69c5761247393
22,448
py
Python
esp32/tools/flasher.py
rodgergr/pycom-micropython-sigfox
50a31befc40a39b1e4c3513f20da968792227b0e
[ "MIT" ]
null
null
null
esp32/tools/flasher.py
rodgergr/pycom-micropython-sigfox
50a31befc40a39b1e4c3513f20da968792227b0e
[ "MIT" ]
null
null
null
esp32/tools/flasher.py
rodgergr/pycom-micropython-sigfox
50a31befc40a39b1e4c3513f20da968792227b0e
[ "MIT" ]
1
2019-09-22T01:28:52.000Z
2019-09-22T01:28:52.000Z
#!/usr/bin/env python # # Copyright (c) 2018, Pycom Limited. # # This software is licensed under the GNU GPL version 3 or any # later version, with permitted additional terms. For more information # see the Pycom Licence v1.0 document supplied with this file, or # available at https://www.pycom.io/opensource/licensing ...
42.116323
286
0.513587
bccff8756b8fd9c49c849a5ee7e86c1a5271fe95
2,315
py
Python
hknweb/events/tests/models/utils.py
jyxzhang/hknweb
a01ffd8587859bf63c46213be6a0c8b87164a5c2
[ "MIT" ]
null
null
null
hknweb/events/tests/models/utils.py
jyxzhang/hknweb
a01ffd8587859bf63c46213be6a0c8b87164a5c2
[ "MIT" ]
null
null
null
hknweb/events/tests/models/utils.py
jyxzhang/hknweb
a01ffd8587859bf63c46213be6a0c8b87164a5c2
[ "MIT" ]
null
null
null
import datetime from django.utils import timezone from django.contrib.auth.models import User from hknweb.events.models import Event, EventType, Rsvp
28.9375
88
0.581425
bcd088f1e5c34ccfa8be8350d7cb0a6ebc06a38b
4,979
py
Python
HealthNet/prescriptions/views.py
jimga150/HealthNet
84e55302b02221ae6e93640904af837fdfe09a83
[ "MIT" ]
null
null
null
HealthNet/prescriptions/views.py
jimga150/HealthNet
84e55302b02221ae6e93640904af837fdfe09a83
[ "MIT" ]
null
null
null
HealthNet/prescriptions/views.py
jimga150/HealthNet
84e55302b02221ae6e93640904af837fdfe09a83
[ "MIT" ]
null
null
null
from django.shortcuts import redirect from .forms import PrescriptionForm from core.views import is_doctor, is_nurse, is_admin, is_patient from core.models import * from .models import Prescription from django.contrib.auth.decorators import login_required, user_passes_test from django.utils import timezone from dja...
33.193333
119
0.69753
bcd22bd32e41749d160e83a36693fbb03e02a7c0
2,232
py
Python
algorithms/329. Longest Increasing Path in a Matrix.py
woozway/py3-leetcode
e51a9ce7a6bb3e35c0fcb8c8f4f6cd5763708dbf
[ "MIT" ]
1
2020-12-02T13:54:30.000Z
2020-12-02T13:54:30.000Z
algorithms/329. Longest Increasing Path in a Matrix.py
woozway/py3-leetcode
e51a9ce7a6bb3e35c0fcb8c8f4f6cd5763708dbf
[ "MIT" ]
null
null
null
algorithms/329. Longest Increasing Path in a Matrix.py
woozway/py3-leetcode
e51a9ce7a6bb3e35c0fcb8c8f4f6cd5763708dbf
[ "MIT" ]
null
null
null
""" 1. Clarification 2. Possible solutions - dfs + memoization - Topological sort 3. Coding 4. Tests """ # T=O(m*n), S=O(m*n) from functools import lru_cache # T=O(m*n), S=O(m*n)
30.162162
111
0.471774
bcd344e1483580a8d86580469eef57c0ac31bfc7
1,511
py
Python
cocos2d/tools/coding-style/tailing-spaces.py
NIKEA-SOFT/TestGame
04f13e5f1324bca9f1e47f02037ea1eddd3bcc8f
[ "MIT" ]
898
2020-01-09T12:03:08.000Z
2022-03-31T07:59:46.000Z
cocos2d/tools/coding-style/tailing-spaces.py
NIKEA-SOFT/TestGame
04f13e5f1324bca9f1e47f02037ea1eddd3bcc8f
[ "MIT" ]
172
2020-02-21T08:56:42.000Z
2021-05-12T03:18:40.000Z
cocos2d/tools/coding-style/tailing-spaces.py
NIKEA-SOFT/TestGame
04f13e5f1324bca9f1e47f02037ea1eddd3bcc8f
[ "MIT" ]
186
2020-01-13T09:34:30.000Z
2022-03-22T04:48:48.000Z
#!/usr/bin/env python #coding=utf-8 ''' Remove tailing whitespaces and ensures one and only one empty ending line. ''' import os, re main()
24.370968
85
0.608868
bcd3b0b0dedcabbec5fd0840549ab45783c9eb2d
4,096
py
Python
three.py/TestPostprocessing-8Bit.py
Michael-Pascale/three.py
9912f5f850245fb9456a25b6737e12290ae54a2d
[ "MIT" ]
null
null
null
three.py/TestPostprocessing-8Bit.py
Michael-Pascale/three.py
9912f5f850245fb9456a25b6737e12290ae54a2d
[ "MIT" ]
null
null
null
three.py/TestPostprocessing-8Bit.py
Michael-Pascale/three.py
9912f5f850245fb9456a25b6737e12290ae54a2d
[ "MIT" ]
null
null
null
from core import * from cameras import * from geometry import * from material import * from lights import * # instantiate and run the program TestPostprocessing2().run()
32
99
0.577148
bcd3c580510f803674768f898ad9016345f92071
3,027
py
Python
scripts/test_cache_size_vs_code_balance.py
tareqmalas/girih
0c126788937d189147be47115703b752235e585c
[ "BSD-3-Clause" ]
7
2015-07-14T08:29:14.000Z
2021-07-30T14:53:13.000Z
scripts/test_cache_size_vs_code_balance.py
tareqmalas/girih
0c126788937d189147be47115703b752235e585c
[ "BSD-3-Clause" ]
null
null
null
scripts/test_cache_size_vs_code_balance.py
tareqmalas/girih
0c126788937d189147be47115703b752235e585c
[ "BSD-3-Clause" ]
3
2016-08-30T01:25:40.000Z
2017-06-22T05:50:05.000Z
#!/usr/bin/env python if __name__ == "__main__": main()
31.863158
218
0.573835
bcd4aa69ca55232166dab3fedc825cb402a37789
654
py
Python
generate/lib/run-firefox/firefox_runner.py
flamencist/browser-extensions
cc2424ce69c718f9f6b1fb0e6cd19759ba384591
[ "BSD-3-Clause" ]
102
2015-01-09T22:12:00.000Z
2021-04-21T01:18:51.000Z
generate/lib/run-firefox/firefox_runner.py
flamencist/browser-extensions
cc2424ce69c718f9f6b1fb0e6cd19759ba384591
[ "BSD-3-Clause" ]
17
2015-01-24T22:30:47.000Z
2020-11-19T01:13:32.000Z
generate/lib/run-firefox/firefox_runner.py
flamencist/browser-extensions
cc2424ce69c718f9f6b1fb0e6cd19759ba384591
[ "BSD-3-Clause" ]
33
2015-01-15T16:11:15.000Z
2021-06-11T12:15:29.000Z
import os import shutil import codecs import json from cuddlefish.runner import run_app from cuddlefish.rdf import RDFManifest
28.434783
92
0.785933
bcd52639c509cc2628a1148eef258524825f4528
8,408
py
Python
pyripple/protocol/orderbook.py
gip/pyripple
d0c696bed7c6ad4c2309733484f9915074f9acdd
[ "Apache-2.0" ]
null
null
null
pyripple/protocol/orderbook.py
gip/pyripple
d0c696bed7c6ad4c2309733484f9915074f9acdd
[ "Apache-2.0" ]
null
null
null
pyripple/protocol/orderbook.py
gip/pyripple
d0c696bed7c6ad4c2309733484f9915074f9acdd
[ "Apache-2.0" ]
null
null
null
# PyRipple # # Copyright 2015 Gilles Pirio # # 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...
37.20354
154
0.593958
bcd61a8f67cde91f10cbb1a9264485fd9ef2e8b8
3,205
py
Python
myvenv/lib/python3.6/site-packages/nltk/test/unit/test_senna.py
catb0y/twitter_feeling
9092a26f2554bbf6b14b33d797abaffa48cda99c
[ "MIT" ]
69
2020-03-31T06:40:17.000Z
2022-02-25T11:48:18.000Z
myvenv/lib/python3.6/site-packages/nltk/test/unit/test_senna.py
catb0y/twitter_feeling
9092a26f2554bbf6b14b33d797abaffa48cda99c
[ "MIT" ]
11
2019-12-26T17:21:03.000Z
2022-03-21T22:17:07.000Z
myvenv/lib/python3.6/site-packages/nltk/test/unit/test_senna.py
catb0y/twitter_feeling
9092a26f2554bbf6b14b33d797abaffa48cda99c
[ "MIT" ]
28
2020-04-15T15:24:17.000Z
2021-12-26T04:05:02.000Z
# -*- coding: utf-8 -*- """ Unit tests for Senna """ from __future__ import unicode_literals from os import environ, path, sep import logging import unittest from nltk.classify import Senna from nltk.tag import SennaTagger, SennaChunkTagger, SennaNERTagger # Set Senna executable path for tests if it is not specifie...
42.733333
108
0.597504
bcd716fdc72869755eef1e517937f6675edfef9d
8,191
py
Python
eoxserver/services/opensearch/v11/description.py
kalxas/eoxserver
8073447d926f3833923bde7b7061e8a1658dee06
[ "OML" ]
25
2015-08-10T19:34:34.000Z
2021-02-05T08:28:01.000Z
eoxserver/services/opensearch/v11/description.py
kalxas/eoxserver
8073447d926f3833923bde7b7061e8a1658dee06
[ "OML" ]
153
2015-01-20T08:35:49.000Z
2022-03-16T11:00:56.000Z
eoxserver/services/opensearch/v11/description.py
kalxas/eoxserver
8073447d926f3833923bde7b7061e8a1658dee06
[ "OML" ]
10
2015-01-23T15:48:30.000Z
2021-01-21T15:41:18.000Z
#------------------------------------------------------------------------------- # # Project: EOxServer <http://eoxserver.org> # Authors: Fabian Schindler <fabian.schindler@eox.at> # #------------------------------------------------------------------------------- # Copyright (C) 2015 EOX IT Services GmbH # # Permission...
37.746544
81
0.580393
bcd88cb9aee8377371dcb96cf615ef4e2ec10580
4,113
py
Python
exercises/level_0/stringing.py
eliranM98/python_course
d9431dd6c0f27fca8ca052cc2a821ed0b883136c
[ "MIT" ]
6
2019-03-29T06:14:53.000Z
2021-10-15T23:42:36.000Z
exercises/level_0/stringing.py
eliranM98/python_course
d9431dd6c0f27fca8ca052cc2a821ed0b883136c
[ "MIT" ]
4
2019-09-06T10:03:40.000Z
2022-03-11T23:30:55.000Z
exercises/level_0/stringing.py
eliranM98/python_course
d9431dd6c0f27fca8ca052cc2a821ed0b883136c
[ "MIT" ]
12
2019-06-20T19:34:52.000Z
2021-10-15T23:42:39.000Z
text = ''' Victor Hugo's ({}) tale of injustice, heroism and love follows the fortunes of Jean Valjean, an escaped convict determined to put his criminal past behind him. But his attempts to become a respected member of the community are constantly put under threat: by his own conscience, when, owing to a case of mista...
41.545455
590
0.735959
bcda0fb17ff31d81f09ba63207547e8568fa2ae6
2,085
py
Python
lab1/text_recognizer/models/mlp.py
Agyey/fsdl-text-recognizer-2021-labs
4bd85042ab9f6decd78849bb655c197cc13ffc11
[ "MIT" ]
null
null
null
lab1/text_recognizer/models/mlp.py
Agyey/fsdl-text-recognizer-2021-labs
4bd85042ab9f6decd78849bb655c197cc13ffc11
[ "MIT" ]
null
null
null
lab1/text_recognizer/models/mlp.py
Agyey/fsdl-text-recognizer-2021-labs
4bd85042ab9f6decd78849bb655c197cc13ffc11
[ "MIT" ]
null
null
null
from typing import Any, Dict import argparse import numpy as np import torch import torch.nn as nn import torch.nn.functional as F FC1_DIM = 1024 FC2_DIM = 128
29.366197
95
0.533813
bcda1861cc6349c05142c05367f155b32d44ad1c
979
py
Python
frontend/widgets/button.py
AzoeDesarrollos/PyMavisDatabase
bfcd0557f63a4d8a73f0f8e891c47b47a1de1b45
[ "MIT" ]
null
null
null
frontend/widgets/button.py
AzoeDesarrollos/PyMavisDatabase
bfcd0557f63a4d8a73f0f8e891c47b47a1de1b45
[ "MIT" ]
2
2019-10-05T14:20:11.000Z
2019-10-05T14:22:31.000Z
frontend/widgets/button.py
AzoeDesarrollos/PyMavisDatabase
bfcd0557f63a4d8a73f0f8e891c47b47a1de1b45
[ "MIT" ]
null
null
null
from pygame import Surface, font from .basewidget import BaseWidget from frontend import Renderer, WidgetHandler
27.971429
74
0.592441
bcda32ab85ecef62e60d41fc5f944271b774ca47
709
py
Python
tensorflow_rnn/mnist_lstm.py
naoki009/samples
dac3bbddbd06374c39768cbe17fefd0110fe316f
[ "BSD-2-Clause" ]
null
null
null
tensorflow_rnn/mnist_lstm.py
naoki009/samples
dac3bbddbd06374c39768cbe17fefd0110fe316f
[ "BSD-2-Clause" ]
null
null
null
tensorflow_rnn/mnist_lstm.py
naoki009/samples
dac3bbddbd06374c39768cbe17fefd0110fe316f
[ "BSD-2-Clause" ]
1
2020-08-14T11:44:42.000Z
2020-08-14T11:44:42.000Z
import numpy as np import tensorflow as tf """ Do an MNIST classification line by line by LSTM """ (x_train, y_train), \ (x_test, y_test) = tf.keras.datasets.mnist.load_data() x_train, x_test = x_train/255.0, x_test/255.0 model = tf.keras.Sequential() model.add(tf.keras.layers.LSTM(128, input_shape=(None, 28))) ...
27.269231
67
0.70945
bcdd9f6e351b12352ead172914df612d99371de2
984
py
Python
scrap/CloudCoverUndersampling.py
cseale/kaggle-amazon-rainforests
cf42941bb3c70ba19257764b66fe33550be88e0b
[ "Apache-2.0" ]
null
null
null
scrap/CloudCoverUndersampling.py
cseale/kaggle-amazon-rainforests
cf42941bb3c70ba19257764b66fe33550be88e0b
[ "Apache-2.0" ]
null
null
null
scrap/CloudCoverUndersampling.py
cseale/kaggle-amazon-rainforests
cf42941bb3c70ba19257764b66fe33550be88e0b
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 # In[1]: import numpy as np import pandas as pd import os from random import shuffle from tqdm import tqdm DATA_DIR = '../input/amazon/' TRAIN_TIF_DIR = DATA_DIR + 'train-tif/' TRAIN_CSV = DATA_DIR + 'train.csv' TEST_TIF_DIR = DATA_DIR + 'test-tif/' IMG_SIZE = 100 LR = 1e-3 MODEL_NAME = 'amazon=-{...
20.93617
83
0.690041
bcddbefe85e0c400583bdfd288157408fcf8f518
11,271
py
Python
rpython/translator/platform/posix.py
wdv4758h/mu-client-pypy
d2fcc01f0b4fe3ffa232762124e3e6d38ed3a0cf
[ "Apache-2.0", "OpenSSL" ]
null
null
null
rpython/translator/platform/posix.py
wdv4758h/mu-client-pypy
d2fcc01f0b4fe3ffa232762124e3e6d38ed3a0cf
[ "Apache-2.0", "OpenSSL" ]
null
null
null
rpython/translator/platform/posix.py
wdv4758h/mu-client-pypy
d2fcc01f0b4fe3ffa232762124e3e6d38ed3a0cf
[ "Apache-2.0", "OpenSSL" ]
null
null
null
"""Base support for POSIX-like platforms.""" import py, os, sys from rpython.translator.platform import Platform, log, _run_subprocess import rpython rpydir = str(py.path.local(rpython.__file__).join('..'))
36.009585
130
0.53021
bcde4233b8d9a36e066c7f656e904c7a4e46422b
3,247
py
Python
chintai-scrape/A001_parse_htmls.py
GINK03/itmedia-scraping
5afbe06dd0aa12db1694a2b387aa2eeafb20e981
[ "MIT" ]
16
2018-02-06T14:43:41.000Z
2021-01-23T05:07:33.000Z
chintai-scrape/A001_parse_htmls.py
GINK03/itmedia-scraping
5afbe06dd0aa12db1694a2b387aa2eeafb20e981
[ "MIT" ]
null
null
null
chintai-scrape/A001_parse_htmls.py
GINK03/itmedia-scraping
5afbe06dd0aa12db1694a2b387aa2eeafb20e981
[ "MIT" ]
4
2018-01-16T13:50:43.000Z
2019-12-16T19:45:54.000Z
import glob import bs4 import gzip import pickle import re import os from concurrent.futures import ProcessPoolExecutor as PPE import json from pathlib import Path from hashlib import sha256 import shutil Path('json').mkdir(exist_ok=True) #urls = [sha256(bytes(v, 'utf8')).hexdigest() for v in json.load(fp=open('./has...
36.077778
158
0.55559
bcde81a6deec0252f40277dde895c56c9a4836eb
5,047
py
Python
google-datacatalog-apache-atlas-connector/src/google/datacatalog_connectors/apache_atlas/scrape/metadata_scraper.py
ricardolsmendes/datacatalog-connectors-hive
9e71588133c0b0227e789c8d6bb26cfa031d2cfb
[ "Apache-2.0" ]
19
2020-04-27T21:55:47.000Z
2022-03-22T19:45:14.000Z
google-datacatalog-apache-atlas-connector/src/google/datacatalog_connectors/apache_atlas/scrape/metadata_scraper.py
ricardolsmendes/datacatalog-connectors-hive
9e71588133c0b0227e789c8d6bb26cfa031d2cfb
[ "Apache-2.0" ]
12
2020-05-28T14:48:29.000Z
2022-01-15T17:52:09.000Z
google-datacatalog-apache-atlas-connector/src/google/datacatalog_connectors/apache_atlas/scrape/metadata_scraper.py
mesmacosta/datacatalog-connectors-hive
ab7e49fbef8599dd9053c2260b261ce01f510a47
[ "Apache-2.0" ]
15
2020-05-03T17:25:51.000Z
2022-01-11T22:10:35.000Z
#!/usr/bin/python # # Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ag...
37.385185
79
0.656628
bcded4531d60ca947d6fb59affac50e25540dcfc
7,490
py
Python
aviary/roost/data.py
sxie22/aviary
74b87eee86067f69af6e5b86bd12fca2202c4de5
[ "MIT" ]
null
null
null
aviary/roost/data.py
sxie22/aviary
74b87eee86067f69af6e5b86bd12fca2202c4de5
[ "MIT" ]
null
null
null
aviary/roost/data.py
sxie22/aviary
74b87eee86067f69af6e5b86bd12fca2202c4de5
[ "MIT" ]
null
null
null
import functools import json from os.path import abspath, dirname, exists, join from typing import Dict, Sequence import numpy as np import pandas as pd import torch from pymatgen.core import Composition from torch.utils.data import Dataset def collate_batch(dataset_list): """ Collate a list of data and ret...
33.738739
100
0.607076
bcdf1f594847bcd658c78df9bc4bf018e0d729b0
201
py
Python
tests/test_util.py
danqing/dqpy
f296341adb0dbbfb361eaf8b815b0ffd189ebf58
[ "MIT" ]
null
null
null
tests/test_util.py
danqing/dqpy
f296341adb0dbbfb361eaf8b815b0ffd189ebf58
[ "MIT" ]
25
2018-05-22T15:59:37.000Z
2020-02-14T08:08:24.000Z
tests/test_util.py
danqing/dqpy
f296341adb0dbbfb361eaf8b815b0ffd189ebf58
[ "MIT" ]
null
null
null
import unittest from dq import util
18.272727
50
0.656716
bce0bfd9222f594d713d4743ed32c26bb4279c4c
1,483
py
Python
check_perm.py
codecakes/random_games
1e670021ec97a196726e937e658878dc63ba9d34
[ "MIT" ]
null
null
null
check_perm.py
codecakes/random_games
1e670021ec97a196726e937e658878dc63ba9d34
[ "MIT" ]
null
null
null
check_perm.py
codecakes/random_games
1e670021ec97a196726e937e658878dc63ba9d34
[ "MIT" ]
null
null
null
""" PermCheck Check whether array A is a permutation. https://codility.com/demo/results/demoANZ7M2-GFU/ Task description A non-empty zero-indexed array A consisting of N integers is given. A permutation is a sequence containing each element from 1 to N once, and only once. For example, array A such that: A[0] = 4...
27.981132
123
0.662171
bce184e301b2a2454689f53c630fba1c6046cd36
18,709
py
Python
src/oci/log_analytics/models/log_analytics_association.py
Manny27nyc/oci-python-sdk
de60b04e07a99826254f7255e992f41772902df7
[ "Apache-2.0", "BSD-3-Clause" ]
249
2017-09-11T22:06:05.000Z
2022-03-04T17:09:29.000Z
src/oci/log_analytics/models/log_analytics_association.py
Manny27nyc/oci-python-sdk
de60b04e07a99826254f7255e992f41772902df7
[ "Apache-2.0", "BSD-3-Clause" ]
228
2017-09-11T23:07:26.000Z
2022-03-23T10:58:50.000Z
src/oci/log_analytics/models/log_analytics_association.py
Manny27nyc/oci-python-sdk
de60b04e07a99826254f7255e992f41772902df7
[ "Apache-2.0", "BSD-3-Clause" ]
224
2017-09-27T07:32:43.000Z
2022-03-25T16:55:42.000Z
# coding: utf-8 # Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved. # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may c...
31.443697
245
0.65685
bce1c979a2eb7695c7ea999525e47a17d52983b8
68,069
py
Python
symblic_game/NEW_GAME.py
zishanqin/Symbolic-transfer
b553f188ad3f6c6492fcff556ac6f597e56cf43e
[ "MIT" ]
3
2021-07-28T11:28:25.000Z
2021-07-28T11:56:58.000Z
symblic_game/NEW_GAME.py
zishanqin/Symbolic-transfer
b553f188ad3f6c6492fcff556ac6f597e56cf43e
[ "MIT" ]
null
null
null
symblic_game/NEW_GAME.py
zishanqin/Symbolic-transfer
b553f188ad3f6c6492fcff556ac6f597e56cf43e
[ "MIT" ]
1
2021-07-28T11:40:45.000Z
2021-07-28T11:40:45.000Z
'Author: Aimore Resende Riquetti Dutra' '''email: aimorerrd@hotmail.com''' # -------------------------------------------------------------------------------------------------- # # This code can run 4 different models of Reinforcement Learning: # Q-Learning (QL), DQN, SRL (DSRL), SRL+CS(DSRL_object_near) and some ot...
41.734519
231
0.491707
bce207bdb62870e146b1e56a1b168c691c0515ac
4,273
py
Python
utils/scene_bounding_box.py
davidemarelli/sfm_flow
7a96d8309cc01b8499347ba0cae882923d82bbcc
[ "MIT" ]
8
2020-10-27T12:52:17.000Z
2022-03-30T04:15:37.000Z
utils/scene_bounding_box.py
ElsevierSoftwareX/SOFTX_2020_51
b240a113c91405fac60444a6e56e87e3cf17a27b
[ "MIT" ]
1
2020-11-09T01:56:04.000Z
2020-11-24T15:58:26.000Z
utils/scene_bounding_box.py
davidemarelli/sfm_flow
7a96d8309cc01b8499347ba0cae882923d82bbcc
[ "MIT" ]
2
2021-12-02T10:04:39.000Z
2022-03-28T07:54:07.000Z
import logging from typing import Tuple import bpy from mathutils import Vector from .object import get_objs logger = logging.getLogger(__name__) ################################################################################################ # Methods # # ========================================...
39.934579
113
0.388018
bce25f2b08abacab5318cf6e45474c91216d772e
38,887
py
Python
tensor2tensor/trax/rlax/ppo.py
funtion/tensor2tensor
339295a276c4bfc93894c474979d0620d14b9710
[ "Apache-2.0" ]
1
2020-09-22T02:07:16.000Z
2020-09-22T02:07:16.000Z
tensor2tensor/trax/rlax/ppo.py
joeyism/tensor2tensor
2f0edae221a9ec2a415dbf7fcc3ff25b8777d830
[ "Apache-2.0" ]
null
null
null
tensor2tensor/trax/rlax/ppo.py
joeyism/tensor2tensor
2f0edae221a9ec2a415dbf7fcc3ff25b8777d830
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # Copyright 2019 The Tensor2Tensor Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable...
35.255666
81
0.649806
bce5b76758741bd43e051c43114fa45c1ec64384
9,421
py
Python
models/cal.py
SudoRmFr/The-Nature-Conservancy-Fisheries-Monitoring
059f0063c1493c19b4f45fa27d13adaeb6b2b2d7
[ "MIT" ]
null
null
null
models/cal.py
SudoRmFr/The-Nature-Conservancy-Fisheries-Monitoring
059f0063c1493c19b4f45fa27d13adaeb6b2b2d7
[ "MIT" ]
null
null
null
models/cal.py
SudoRmFr/The-Nature-Conservancy-Fisheries-Monitoring
059f0063c1493c19b4f45fa27d13adaeb6b2b2d7
[ "MIT" ]
null
null
null
""" WS-DAN models Hu et al., "See Better Before Looking Closer: Weakly Supervised Data Augmentation Network for Fine-Grained Visual Classification", arXiv:1901.09891 """ import logging import numpy as np import torch import torch.nn as nn import torch.nn.functional as F import models.resnet as resnet from models.incep...
39.751055
135
0.604713
bce6db15719682d4f24dcfd6984365aab4377658
1,526
py
Python
tests/walls/analytic/plates.py
noabauma/Mirheo
bf7979bfbbf402d33c26ac5dc879f880e78e7017
[ "MIT" ]
null
null
null
tests/walls/analytic/plates.py
noabauma/Mirheo
bf7979bfbbf402d33c26ac5dc879f880e78e7017
[ "MIT" ]
null
null
null
tests/walls/analytic/plates.py
noabauma/Mirheo
bf7979bfbbf402d33c26ac5dc879f880e78e7017
[ "MIT" ]
1
2021-07-14T13:24:05.000Z
2021-07-14T13:24:05.000Z
#!/usr/bin/env python import mirheo as mir dt = 0.001 ranks = (1, 1, 1) domain = (8, 16, 8) force = (1.0, 0, 0) density = 4 u = mir.Mirheo(ranks, domain, dt, debug_level=3, log_filename='log', no_splash=True) pv = mir.ParticleVectors.ParticleVector('pv', mass = 1) ic = mir.InitialConditions.Uniform(number_densit...
27.745455
138
0.692005
bce8b5c80fccdda525f4313d1b8dac7df83862d2
3,765
py
Python
scraper-code/myanimelist/base.py
XueAlfred/MALAnalysis
630d578b30f7540769774e1e4ee072d9775bf4bf
[ "MIT" ]
15
2015-01-24T10:52:42.000Z
2021-08-09T10:23:58.000Z
scraper-code/myanimelist/base.py
XueAlfred/MALAnalysis
630d578b30f7540769774e1e4ee072d9775bf4bf
[ "MIT" ]
10
2015-01-24T10:51:18.000Z
2018-09-05T00:17:03.000Z
scraper-code/myanimelist/base.py
XueAlfred/MALAnalysis
630d578b30f7540769774e1e4ee072d9775bf4bf
[ "MIT" ]
18
2015-01-24T11:29:38.000Z
2021-12-04T02:41:09.000Z
#!/usr/bin/python # -*- coding: utf-8 -*- import abc import bs4 import functools import utilities def loadable(func_name): """Decorator for getters that require a load() upon first access. :type func_name: function :param func_name: class method that requires that load() be called if the class's _attribute val...
27.683824
127
0.662151
bce99600c76ca2d8cb9cc68164960e5e44460216
624
py
Python
p2/core/http.py
BeryJu/p2
80b5c6a821f90cef73d6e8cd3c6cdb05ffa86b27
[ "MIT" ]
null
null
null
p2/core/http.py
BeryJu/p2
80b5c6a821f90cef73d6e8cd3c6cdb05ffa86b27
[ "MIT" ]
null
null
null
p2/core/http.py
BeryJu/p2
80b5c6a821f90cef73d6e8cd3c6cdb05ffa86b27
[ "MIT" ]
null
null
null
"""p2 core http responses""" from wsgiref.util import FileWrapper from django.http import StreamingHttpResponse from p2.core.constants import ATTR_BLOB_MIME, ATTR_BLOB_SIZE_BYTES from p2.core.models import Blob
36.705882
96
0.758013
bcea70bd02cca28f65bc7151eb0b0e69448cc1e4
7,566
py
Python
lattedb/project/formfac/migrations/0009_auto_20200528_0907.py
callat-qcd/lattedb
75c06748f3d59332a84ec1b5794c215c5974a46f
[ "BSD-3-Clause" ]
1
2019-12-11T02:33:23.000Z
2019-12-11T02:33:23.000Z
lattedb/project/formfac/migrations/0009_auto_20200528_0907.py
callat-qcd/lattedb
75c06748f3d59332a84ec1b5794c215c5974a46f
[ "BSD-3-Clause" ]
10
2020-01-29T17:06:01.000Z
2021-05-31T14:41:19.000Z
lattedb/project/formfac/migrations/0009_auto_20200528_0907.py
callat-qcd/lattedb
75c06748f3d59332a84ec1b5794c215c5974a46f
[ "BSD-3-Clause" ]
null
null
null
# Generated by Django 3.0.6 on 2020-05-28 09:07 from django.conf import settings from django.db import migrations, models import django.db.models.deletion
64.666667
239
0.690193
bceaba57987d2038b2b3f984d0fa700547f6902c
12,224
py
Python
SIO_Code/SIO_coherence.py
mmstoll/Ocean569_Code
228cb719f3e82f187f704f343d3b3590a38236d7
[ "MIT" ]
null
null
null
SIO_Code/SIO_coherence.py
mmstoll/Ocean569_Code
228cb719f3e82f187f704f343d3b3590a38236d7
[ "MIT" ]
null
null
null
SIO_Code/SIO_coherence.py
mmstoll/Ocean569_Code
228cb719f3e82f187f704f343d3b3590a38236d7
[ "MIT" ]
null
null
null
""" Data: Temperature and Salinity time series from SIO Scripps Pier Salinity: measured in PSU at the surface (~0.5m) and at depth (~5m) Temp: measured in degrees C at the surface (~0.5m) and at depth (~5m) - Timestamp included beginning in 1990 """ # imports import sys,os import pandas as pd import numpy as...
47.015385
156
0.724967
bceb90c866742318115d3897625ab3cd17dad9ae
1,782
py
Python
abfs/group_data_split.py
rcdilorenzo/abfs
a897d00a4589a9412a9b9e737f8db91df008fc26
[ "MIT" ]
7
2019-03-13T17:22:50.000Z
2022-01-09T09:03:16.000Z
abfs/group_data_split.py
rcdilorenzo/abfs
a897d00a4589a9412a9b9e737f8db91df008fc26
[ "MIT" ]
1
2019-08-01T23:42:09.000Z
2019-08-02T16:14:31.000Z
abfs/group_data_split.py
rcdilorenzo/abfs
a897d00a4589a9412a9b9e737f8db91df008fc26
[ "MIT" ]
2
2020-09-12T06:33:16.000Z
2021-01-01T01:05:48.000Z
from collections import namedtuple as Struct from sklearn.model_selection import GroupShuffleSplit, ShuffleSplit DataSplitConfig = Struct('DataSplitConfig', ['validation_size', 'test_size', 'random_seed']) DEFAULT_SPLIT_CONFIG = DataSplitConfig(0.2, 0.2, 1337)
30.724138
92
0.640292
bcef12fc47d4a9fcc176c51b16eef241913a4acb
2,989
py
Python
mmcls/models/utils/se_layer.py
YuxinZou/mmclassification
2037260ea6c98a3b115e97727e1151a1c2c32f7a
[ "Apache-2.0" ]
1,190
2020-07-10T01:16:01.000Z
2022-03-31T09:48:38.000Z
mmcls/models/utils/se_layer.py
YuxinZou/mmclassification
2037260ea6c98a3b115e97727e1151a1c2c32f7a
[ "Apache-2.0" ]
702
2020-07-13T13:31:33.000Z
2022-03-31T06:48:04.000Z
mmcls/models/utils/se_layer.py
YuxinZou/mmclassification
2037260ea6c98a3b115e97727e1151a1c2c32f7a
[ "Apache-2.0" ]
502
2020-07-10T02:40:55.000Z
2022-03-31T02:07:09.000Z
# Copyright (c) OpenMMLab. All rights reserved. import mmcv import torch.nn as nn from mmcv.cnn import ConvModule from mmcv.runner import BaseModule from .make_divisible import make_divisible
39.853333
77
0.603546
bcef9b7b7442550783a878ff705f2b12e8b4982b
605
py
Python
instagram/admin.py
James19stack/instagram-copy_cat
996a8678cec84a05e97d803356194cd112ee53e6
[ "MIT" ]
null
null
null
instagram/admin.py
James19stack/instagram-copy_cat
996a8678cec84a05e97d803356194cd112ee53e6
[ "MIT" ]
7
2021-04-08T21:26:44.000Z
2022-03-12T00:40:52.000Z
instagram/admin.py
James19stack/instagram-copy_cat
996a8678cec84a05e97d803356194cd112ee53e6
[ "MIT" ]
null
null
null
from django.contrib import admin from .models import Images,Comments,Profile # Register your models here. admin.site.site_header='InstaPost Admin' admin.site.site_title='InstaPost Admin Dashboard' admin.site.register(Images,ImageInline) admin.site.register(Profile)
24.2
49
0.676033
bcefbd3c4fdc15d991e7f75b480521ed8994a120
2,234
py
Python
mandelbruh/util.py
pereradrian/mandelbruh
fb68c5f2af84d51097e73f3a248e3a1b95fbbf47
[ "MIT" ]
null
null
null
mandelbruh/util.py
pereradrian/mandelbruh
fb68c5f2af84d51097e73f3a248e3a1b95fbbf47
[ "MIT" ]
null
null
null
mandelbruh/util.py
pereradrian/mandelbruh
fb68c5f2af84d51097e73f3a248e3a1b95fbbf47
[ "MIT" ]
null
null
null
import numpy as np _mandelbruh_GLOBAL_VARS = {}
21.68932
88
0.625783
bcf0d2ce383dabf5df66eb0e8657dcde75189cda
8,894
py
Python
core/recognizer.py
awen1988/yry
b65ccd7062d60f605fc978a87e060d0015cf1d4c
[ "Apache-2.0" ]
129
2017-11-14T07:20:33.000Z
2021-06-18T07:07:18.000Z
core/recognizer.py
awen1988/yry
b65ccd7062d60f605fc978a87e060d0015cf1d4c
[ "Apache-2.0" ]
10
2018-04-18T08:01:09.000Z
2018-08-17T02:57:33.000Z
core/recognizer.py
awen1988/yry
b65ccd7062d60f605fc978a87e060d0015cf1d4c
[ "Apache-2.0" ]
35
2017-11-14T07:17:00.000Z
2021-01-21T08:10:07.000Z
""" recognize face landmark """ import json import os import requests import numpy as np FACE_POINTS = list(range(0, 83)) JAW_POINTS = list(range(0, 19)) LEFT_EYE_POINTS = list(range(19, 29)) LEFT_BROW_POINTS = list(range(29, 37)) MOUTH_POINTS = list(range(37, 55)) NOSE_POINTS = list(range(55, 65)) RIGHT_EYE_POINTS =...
47.308511
103
0.619744
bcf263d3ef948ac8eb8afa3a601107434d608075
1,646
py
Python
magvar.py
rafidmorshedi/mag-dec-api
5daff929be8cad902f8db331090c0ed77f7bdef9
[ "MIT" ]
null
null
null
magvar.py
rafidmorshedi/mag-dec-api
5daff929be8cad902f8db331090c0ed77f7bdef9
[ "MIT" ]
null
null
null
magvar.py
rafidmorshedi/mag-dec-api
5daff929be8cad902f8db331090c0ed77f7bdef9
[ "MIT" ]
null
null
null
import requests import time from bs4 import BeautifulSoup import re def get_mag_var(lat, lon, year, month, day, elev=0): """Returns the magnetic variation at a particulat point on earth. Keyword Arguments lat -- latitude (e.g. -180.6 deg) lon -- longitude (e.g. -34.6 deg) elev -- elevation in km (...
29.392857
76
0.59113
bcf313d0b0b9c2b0b509d979b3d7f59db6845dd5
81,110
py
Python
google-cloud-sdk/lib/googlecloudsdk/third_party/apis/datacatalog/v1beta1/datacatalog_v1beta1_messages.py
bopopescu/Social-Lite
ee05d6a7431c36ff582c8d6b58bb20a8c5f550bf
[ "Apache-2.0" ]
null
null
null
google-cloud-sdk/lib/googlecloudsdk/third_party/apis/datacatalog/v1beta1/datacatalog_v1beta1_messages.py
bopopescu/Social-Lite
ee05d6a7431c36ff582c8d6b58bb20a8c5f550bf
[ "Apache-2.0" ]
4
2020-07-21T12:51:46.000Z
2022-01-22T10:29:25.000Z
google-cloud-sdk/lib/googlecloudsdk/third_party/apis/datacatalog/v1beta1/datacatalog_v1beta1_messages.py
bopopescu/Social-Lite
ee05d6a7431c36ff582c8d6b58bb20a8c5f550bf
[ "Apache-2.0" ]
1
2020-07-25T18:17:57.000Z
2020-07-25T18:17:57.000Z
"""Generated message classes for datacatalog version v1beta1. A fully managed and highly scalable data discovery and metadata management service. """ # NOTE: This file is autogenerated and should not be edited by hand. from apitools.base.protorpclite import messages as _messages from apitools.base.py import encoding ...
42.644585
150
0.753051
bcf316f9ca83440854d986b21a72745912b71d9f
656
py
Python
materials/migrations/0072_auto_20190422_1708.py
mgovoni-devel/MatD3
5b68d147f886bce427f92bb560159e62cec2d4e7
[ "BSD-2-Clause-FreeBSD" ]
7
2019-09-14T07:24:09.000Z
2021-06-15T16:15:05.000Z
materials/migrations/0072_auto_20190422_1708.py
mgovoni-devel/MatD3
5b68d147f886bce427f92bb560159e62cec2d4e7
[ "BSD-2-Clause-FreeBSD" ]
14
2019-12-05T01:49:19.000Z
2021-06-23T18:34:51.000Z
materials/migrations/0072_auto_20190422_1708.py
mgovoni-devel/MatD3
5b68d147f886bce427f92bb560159e62cec2d4e7
[ "BSD-2-Clause-FreeBSD" ]
2
2019-11-06T21:16:57.000Z
2019-11-30T10:51:44.000Z
# Generated by Django 2.1.7 on 2019-04-22 21:08 from django.db import migrations
22.62069
49
0.565549
bcf492dcec78d6b358e2430eb0bbca995c069560
5,054
py
Python
Deep-Learning/Crowd-Count/src/data_preprocess.py
sadbb/CVCode
c7c8b527af786d8f113122231e6296987b242b59
[ "Apache-2.0" ]
1
2018-11-18T05:43:05.000Z
2018-11-18T05:43:05.000Z
Deep-Learning/Crowd-Count/src/data_preprocess.py
sadbb/CVCode
c7c8b527af786d8f113122231e6296987b242b59
[ "Apache-2.0" ]
null
null
null
Deep-Learning/Crowd-Count/src/data_preprocess.py
sadbb/CVCode
c7c8b527af786d8f113122231e6296987b242b59
[ "Apache-2.0" ]
null
null
null
# -*- coding:utf-8 -*- # ------------------------ # written by Songjian Chen # 2018-10 # ------------------------ import os import skimage.io from skimage.color import rgb2gray import skimage.transform from scipy.io import loadmat import numpy as np import cv2 import math import warnings import random import torch imp...
38.287879
109
0.623467
bcf55731b896385e43f5d67d9f858074f1791555
38
py
Python
for1.py
satyamraj123/set-of-python-programs
c9a20b37cddc555704799e5ff277488b7eff58a9
[ "Apache-2.0" ]
null
null
null
for1.py
satyamraj123/set-of-python-programs
c9a20b37cddc555704799e5ff277488b7eff58a9
[ "Apache-2.0" ]
null
null
null
for1.py
satyamraj123/set-of-python-programs
c9a20b37cddc555704799e5ff277488b7eff58a9
[ "Apache-2.0" ]
null
null
null
fruit='banana' x=len(fruit) print(x)
12.666667
15
0.684211
bcf5a205651a80f9d34336bef6e346a1933e40ae
689
py
Python
Django_Intershala/recruiter/migrations/0004_auto_20210305_1551.py
samir321-pixel/Django_Intershala
77aaa24a34873dab4c3302727d5f43986a99809e
[ "MIT" ]
7
2021-03-08T17:09:39.000Z
2021-12-30T09:44:44.000Z
Django_Intershala/recruiter/migrations/0004_auto_20210305_1551.py
samir321-pixel/Django_Intershala
77aaa24a34873dab4c3302727d5f43986a99809e
[ "MIT" ]
null
null
null
Django_Intershala/recruiter/migrations/0004_auto_20210305_1551.py
samir321-pixel/Django_Intershala
77aaa24a34873dab4c3302727d5f43986a99809e
[ "MIT" ]
2
2021-03-03T11:35:05.000Z
2021-03-22T17:00:16.000Z
# Generated by Django 3.1.7 on 2021-03-05 10:21 from django.db import migrations, models
24.607143
62
0.576197
bcf633a886ab43d9c3c7c35185345d3f776c81e3
4,899
py
Python
src/promnesia/sources/telegram.py
halhenke/promnesia
03f46b7e0740790ef091e6f48d0ac2e6bf05bcb7
[ "MIT" ]
1,327
2019-11-02T20:10:38.000Z
2022-03-29T16:58:36.000Z
src/promnesia/sources/telegram.py
halhenke/promnesia
03f46b7e0740790ef091e6f48d0ac2e6bf05bcb7
[ "MIT" ]
157
2019-09-06T11:16:40.000Z
2022-03-27T20:01:52.000Z
src/promnesia/sources/telegram.py
halhenke/promnesia
03f46b7e0740790ef091e6f48d0ac2e6bf05bcb7
[ "MIT" ]
60
2020-06-08T22:12:24.000Z
2022-03-22T16:57:22.000Z
''' Uses [[https://github.com/fabianonline/telegram_backup#readme][telegram_backup]] database for messages data ''' from pathlib import Path from textwrap import dedent from typing import Optional, Union, TypeVar from urllib.parse import unquote # TODO mm, make it easier to rememember to use... from ..common import P...
37.684615
154
0.560931
bcf6d0a350e5ace0a39c3f35ff8dbbc6f050f1f4
6,407
py
Python
shellmacros/istr.py
duaneellissd/shellmacros
33b5cd1a8794e35a9540f78dca066b8dfc289c97
[ "BSD-2-Clause" ]
null
null
null
shellmacros/istr.py
duaneellissd/shellmacros
33b5cd1a8794e35a9540f78dca066b8dfc289c97
[ "BSD-2-Clause" ]
null
null
null
shellmacros/istr.py
duaneellissd/shellmacros
33b5cd1a8794e35a9540f78dca066b8dfc289c97
[ "BSD-2-Clause" ]
null
null
null
''' Created on Dec 27, 2019 @author: duane ''' DOLLAR = ord('$') LBRACE = ord('{') RBRACE = ord('}') LPAREN = ord('(') RPAREN = ord(')') def test_istr(): check(-1, -1, "") check(-1, -1, "a") check(-1, -1, "ab") check(-1, -1, "abc") check(-1, -1, "abcd") check(-1, -1, "abcde") check(-...
27.856522
81
0.517715
bcf76125149120b7d959b455bacb0c98cf4095f0
7,712
py
Python
cli.py
checktheroads/deenis
2581e2fcbb08a9c85590bd54e109f24cc87b664f
[ "WTFPL" ]
4
2019-07-18T18:16:31.000Z
2020-02-28T08:39:58.000Z
cli.py
checktheroads/deenis
2581e2fcbb08a9c85590bd54e109f24cc87b664f
[ "WTFPL" ]
null
null
null
cli.py
checktheroads/deenis
2581e2fcbb08a9c85590bd54e109f24cc87b664f
[ "WTFPL" ]
null
null
null
#!/usr/bin/env python3 """ CLI for Accessing Deenis """ # Standard Imports import sys from pathlib import Path # Module Imports import click # Path Fixes working_dir = Path(__file__).resolve().parent sys.path.append(str(working_dir)) # Project Imports from deenis import Deenis if __name__ == "__main__": add_...
36.72381
86
0.490794
bcf7f47be4d0d789e4869009ef9f2f68c5ab3b33
5,383
py
Python
main_cl.py
spiolynn/pybo
186495de315eb8ec47a996de959574f9864da7c4
[ "MIT" ]
null
null
null
main_cl.py
spiolynn/pybo
186495de315eb8ec47a996de959574f9864da7c4
[ "MIT" ]
null
null
null
main_cl.py
spiolynn/pybo
186495de315eb8ec47a996de959574f9864da7c4
[ "MIT" ]
null
null
null
# coding: utf-8 from bigone import BigOneDog from common import gen_logger import logging import time import json def strategy_eth_big_bnc_eth(dog): """ BIG/ETH -> BIG/BNC -> ETH/BNC ETH/BNC -> BIG/BNC -> BIG/ETH :param dog: implemention of BigOneDog :return: """ big_eth_data = dog.get_...
35.886667
112
0.546907
bcf86b7e6462408e17d610983a6cb23985d20fe4
1,191
py
Python
run_experiments.py
gahaalt/cifar-vs-tensorflow2
547d131382438ef76e315dde06a6870737f1fbad
[ "MIT" ]
6
2019-11-15T08:42:29.000Z
2021-03-04T11:58:39.000Z
run_experiments.py
gahaalt/cifar-vs-tensorflow2
547d131382438ef76e315dde06a6870737f1fbad
[ "MIT" ]
null
null
null
run_experiments.py
gahaalt/cifar-vs-tensorflow2
547d131382438ef76e315dde06a6870737f1fbad
[ "MIT" ]
3
2020-11-25T03:44:41.000Z
2021-03-08T04:45:56.000Z
import os import yaml import logging import importlib os.environ['TF_CPP_MIN_LOG_LEVEL'] = '2' logging.getLogger('tensorflow').disabled = True from cifar_training_tools import cifar_training, cifar_error_test print('\n' + '#' * 19) print("TESTING FOR ERRORS!") print('#' * 19) stream = open('experiments...
27.697674
79
0.628044
bcf8d925c5a3910be4a945e6cce5d1278db5fcb4
179
py
Python
json2yaml.py
cristicalin/tools
b8fe4efb1143a575d102d3a8e368052a4ecdceae
[ "MIT" ]
null
null
null
json2yaml.py
cristicalin/tools
b8fe4efb1143a575d102d3a8e368052a4ecdceae
[ "MIT" ]
1
2016-01-31T12:54:06.000Z
2016-02-29T13:45:46.000Z
json2yaml.py
cristicalin/tools
b8fe4efb1143a575d102d3a8e368052a4ecdceae
[ "MIT" ]
null
null
null
#!/usr/bin/python import sys import yaml import json if __name__ == '__main__': content = json.load(sys.stdin) print yaml.dump(content, indent=2, default_flow_style=False)
16.272727
62
0.73743
bcf9bd066aefdc4f6abca126693e2677662eb927
1,542
py
Python
histdata/mt5db/script_DownloadAndStoreToMongodb.py
UpSea/midProjects
ed6086e74f68b1b89f725abe0b270e67cf8993a8
[ "MIT" ]
1
2018-07-02T13:54:49.000Z
2018-07-02T13:54:49.000Z
histdata/mt5db/script_DownloadAndStoreToMongodb.py
UpSea/midProjects
ed6086e74f68b1b89f725abe0b270e67cf8993a8
[ "MIT" ]
null
null
null
histdata/mt5db/script_DownloadAndStoreToMongodb.py
UpSea/midProjects
ed6086e74f68b1b89f725abe0b270e67cf8993a8
[ "MIT" ]
3
2016-05-28T15:13:02.000Z
2021-04-10T06:04:25.000Z
# -*- coding: utf-8 -*- import os,sys from PyQt4 import QtGui,QtCore dataRoot = os.path.abspath(os.path.join(os.path.dirname(__file__),os.pardir,os.pardir,'histdata')) sys.path.append(dataRoot) import dataCenter as dataCenter from data.mongodb.DataSourceMongodb import Mongodb import datetime as dt ...
37.609756
133
0.527237
bcf9e42ce187d88ea3d733bded3e343188bcd463
10,196
py
Python
daproli/transformer.py
ermshaua/daproli
c1f7aeec431d9c60ae06eeac23455c1a03bc82cf
[ "BSD-3-Clause" ]
null
null
null
daproli/transformer.py
ermshaua/daproli
c1f7aeec431d9c60ae06eeac23455c1a03bc82cf
[ "BSD-3-Clause" ]
null
null
null
daproli/transformer.py
ermshaua/daproli
c1f7aeec431d9c60ae06eeac23455c1a03bc82cf
[ "BSD-3-Clause" ]
null
null
null
from joblib import Parallel, delayed from tqdm import tqdm from .processing import map, filter, split, expand, combine, join from .manipulation import windowed, flatten
36.028269
127
0.640643
bcfa0b019701139c1bd20ee0f0d8361e7deda90e
90
py
Python
Ad-Hoc/2454.py
LorranSutter/URI-Online-Judge
aef885b9a7caa83484cf172e29eea8ec92fc3627
[ "MIT" ]
null
null
null
Ad-Hoc/2454.py
LorranSutter/URI-Online-Judge
aef885b9a7caa83484cf172e29eea8ec92fc3627
[ "MIT" ]
null
null
null
Ad-Hoc/2454.py
LorranSutter/URI-Online-Judge
aef885b9a7caa83484cf172e29eea8ec92fc3627
[ "MIT" ]
null
null
null
P, R = input().split() if P == '0': print('C') elif R == '0': print('B') else: print('A')
18
25
0.488889
bcfa7e8108972dea4c27619df4c1be7b06458b6e
3,813
py
Python
main.py
brunotoshio/castella
ad418bd1beb4953687a4ad7be586b12631c25992
[ "MIT" ]
2
2020-02-18T09:41:43.000Z
2020-02-20T11:03:03.000Z
main.py
brunotoshio/castella
ad418bd1beb4953687a4ad7be586b12631c25992
[ "MIT" ]
null
null
null
main.py
brunotoshio/castella
ad418bd1beb4953687a4ad7be586b12631c25992
[ "MIT" ]
null
null
null
import pymongo import yaml import sched import time import json from castella import TweetCrawler if __name__ == "__main__": searcher = Castella() searcher.execute_search()
37.019417
150
0.540782
bcfabdd28c428dd3bd0fa4eb4f234286130b7db0
1,275
py
Python
ngraph/test/frontend/paddlepaddle/test_models/gen_scripts/generate_slice.py
monroid/openvino
8272b3857ef5be0aaa8abbf7bd0d5d5615dc40b6
[ "Apache-2.0" ]
2,406
2020-04-22T15:47:54.000Z
2022-03-31T10:27:37.000Z
ngraph/test/frontend/paddlepaddle/test_models/gen_scripts/generate_slice.py
thomas-yanxin/openvino
031e998a15ec738c64cc2379d7f30fb73087c272
[ "Apache-2.0" ]
4,948
2020-04-22T15:12:39.000Z
2022-03-31T18:45:42.000Z
ngraph/test/frontend/paddlepaddle/test_models/gen_scripts/generate_slice.py
thomas-yanxin/openvino
031e998a15ec738c64cc2379d7f30fb73087c272
[ "Apache-2.0" ]
991
2020-04-23T18:21:09.000Z
2022-03-31T18:40:57.000Z
# # slice paddle model generator # import numpy as np from save_model import saveModel import paddle as pdpd import sys data_type = 'float32' if __name__ == "__main__": main()
32.692308
116
0.622745
bcfb7330e40f9b79f2ab184f143d401951828548
2,513
py
Python
tacker/sol_refactored/common/vnf_instance_utils.py
h1r0mu/tacker
8c69dda51fcfe215c4878a86b82018d2b96e5561
[ "Apache-2.0" ]
116
2015-10-18T02:57:08.000Z
2022-03-15T04:09:18.000Z
tacker/sol_refactored/common/vnf_instance_utils.py
h1r0mu/tacker
8c69dda51fcfe215c4878a86b82018d2b96e5561
[ "Apache-2.0" ]
6
2016-11-07T22:15:54.000Z
2021-05-09T06:13:08.000Z
tacker/sol_refactored/common/vnf_instance_utils.py
h1r0mu/tacker
8c69dda51fcfe215c4878a86b82018d2b96e5561
[ "Apache-2.0" ]
166
2015-10-20T15:31:52.000Z
2021-11-12T08:39:49.000Z
# Copyright (C) 2021 Nippon Telegraph and Telephone Corporation # 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/LICE...
32.217949
78
0.68842
bcfca1189da0e63d3e685ea19031e90196e49d8d
719
py
Python
testfixtures/compat.py
cjw296/testfixtures
1bf1e6fe1e111210d6d7fbcd00feb564095ffd02
[ "MIT" ]
null
null
null
testfixtures/compat.py
cjw296/testfixtures
1bf1e6fe1e111210d6d7fbcd00feb564095ffd02
[ "MIT" ]
null
null
null
testfixtures/compat.py
cjw296/testfixtures
1bf1e6fe1e111210d6d7fbcd00feb564095ffd02
[ "MIT" ]
null
null
null
# compatibility module for different python versions import sys if sys.version_info[:2] > (3, 0): PY2 = False PY3 = True Bytes = bytes Unicode = str basestring = str class_type_name = 'class' ClassType = type exception_module = 'builtins' new_class = type self_name = '__self_...
18.435897
52
0.635605
bcfd55447233f3a98240a98d95e5f9301c8b38ec
3,898
py
Python
old_py2/tests/models_tests/notifications/test_match_score.py
ofekashery/the-blue-alliance
df0e47d054161fe742ac6198a6684247d0713279
[ "MIT" ]
266
2015-01-04T00:10:48.000Z
2022-03-28T18:42:05.000Z
tests/models_tests/notifications/test_match_score.py
gregmarra/the-blue-alliance
5bedaf5c80b4623984760d3da3289640639112f9
[ "MIT" ]
2,673
2015-01-01T20:14:33.000Z
2022-03-31T18:17:16.000Z
tests/models_tests/notifications/test_match_score.py
gregmarra/the-blue-alliance
5bedaf5c80b4623984760d3da3289640639112f9
[ "MIT" ]
230
2015-01-04T00:10:48.000Z
2022-03-26T18:12:04.000Z
import re import unittest2 from google.appengine.ext import ndb from google.appengine.ext import testbed from consts.notification_type import NotificationType from helpers.event.event_test_creator import EventTestCreator from models.team import Team from models.notifications.match_score import MatchScoreNotification...
41.913978
94
0.69882
bcfdc746f65446c3a274947a1481597ff88c7469
5,406
py
Python
util/submission/templates.py
jeanlucf22/mgmol
4e79bc32c14c8a47ae18ad0659ea740719c8b77f
[ "BSD-3-Clause-LBNL", "FSFAP" ]
25
2018-12-29T03:33:01.000Z
2021-05-08T12:52:27.000Z
util/submission/templates.py
jeanlucf22/mgmol
4e79bc32c14c8a47ae18ad0659ea740719c8b77f
[ "BSD-3-Clause-LBNL", "FSFAP" ]
121
2018-12-19T02:38:21.000Z
2021-12-20T16:29:24.000Z
util/submission/templates.py
jeanlucf22/mgmol
4e79bc32c14c8a47ae18ad0659ea740719c8b77f
[ "BSD-3-Clause-LBNL", "FSFAP" ]
15
2019-02-17T05:28:43.000Z
2022-02-28T05:24:11.000Z
md_template_d144 = """verbosity=0 xcFunctional=PBE FDtype=4th [Mesh] nx=160 ny=80 nz=80 [Domain] ox=0. oy=0. oz=0. lx=42.4813 ly=21.2406 lz=21.2406 [Potentials] pseudopotential=pseudo.D_tm_pbe [Poisson] solver=@ max_steps_initial=@50 max_steps=@50 reset=@ bcx=periodic bcy=periodic bcz=periodic [Run] type=MD [MD] type=@...
17.216561
119
0.663707
bcfde8681fdc58448a7018049cb36bbab73499b0
21,700
py
Python
Compliant_control/Force Tracking/archive/VIC_Huang1992_(main 09.03).py
martihmy/Compliant_control
485f627fa83d59f414f41bd57c5d37528ef5f1ec
[ "Apache-2.0" ]
null
null
null
Compliant_control/Force Tracking/archive/VIC_Huang1992_(main 09.03).py
martihmy/Compliant_control
485f627fa83d59f414f41bd57c5d37528ef5f1ec
[ "Apache-2.0" ]
null
null
null
Compliant_control/Force Tracking/archive/VIC_Huang1992_(main 09.03).py
martihmy/Compliant_control
485f627fa83d59f414f41bd57c5d37528ef5f1ec
[ "Apache-2.0" ]
null
null
null
#! /usr/bin/env python import copy from copy import deepcopy import rospy import threading import quaternion import numpy as np from geometry_msgs.msg import Point from visualization_msgs.msg import * from franka_interface import ArmInterface from panda_robot import PandaArm import matplotlib.pyplot as plt from scipy.s...
36.842105
267
0.638157
bcfe9ac7b39f229df7d1b4504478244ea3835c1b
483
py
Python
tests/migrations/0010_modeltest_datetime_field1.py
intellineers/django-bridger
ed097984a99df7da40a4d01bd00c56e3c6083056
[ "BSD-3-Clause" ]
2
2020-03-17T00:53:23.000Z
2020-07-16T07:00:33.000Z
tests/migrations/0010_modeltest_datetime_field1.py
intellineers/django-bridger
ed097984a99df7da40a4d01bd00c56e3c6083056
[ "BSD-3-Clause" ]
76
2019-12-05T01:15:57.000Z
2021-09-07T16:47:27.000Z
tests/migrations/0010_modeltest_datetime_field1.py
intellineers/django-bridger
ed097984a99df7da40a4d01bd00c56e3c6083056
[ "BSD-3-Clause" ]
1
2020-02-05T15:09:47.000Z
2020-02-05T15:09:47.000Z
# Generated by Django 2.2.9 on 2020-01-28 14:50 import django.utils.timezone from django.db import migrations, models
23
74
0.63354
4c016da0c81742ef879e9615198cd22dc666a5c6
6,998
py
Python
pycmap/common.py
mdashkezari/pycmap
5b526404d005ec220ab0911cd2f3c05263f9eda3
[ "MIT" ]
4
2019-09-23T17:12:42.000Z
2022-02-01T02:38:40.000Z
pycmap/common.py
mdashkezari/pycmap
5b526404d005ec220ab0911cd2f3c05263f9eda3
[ "MIT" ]
2
2019-09-20T12:56:21.000Z
2019-09-24T23:08:26.000Z
pycmap/common.py
mdashkezari/pycmap
5b526404d005ec220ab0911cd2f3c05263f9eda3
[ "MIT" ]
1
2019-12-18T20:47:20.000Z
2019-12-18T20:47:20.000Z
""" Author: Mohammad Dehghani Ashkezari <mdehghan@uw.edu> Date: 2019-06-28 Function: Host a collection of shared multi-purpose helper functions. """ import os import sys from tqdm import tqdm from colorama import Fore, Back, Style, init import numpy as np import pandas as pd import webbrowser import I...
33.32381
131
0.572021
4c02744bf60501dd6a24f21c67c4971193de0e1a
26,204
py
Python
appengine/monorail/api/v3/api_proto/projects_pb2.py
fknittel/git-retry-build
4d57dd6e8b7567daeb24b55f66bc5becd3d459f3
[ "BSD-3-Clause" ]
null
null
null
appengine/monorail/api/v3/api_proto/projects_pb2.py
fknittel/git-retry-build
4d57dd6e8b7567daeb24b55f66bc5becd3d459f3
[ "BSD-3-Clause" ]
4
2022-03-17T18:58:21.000Z
2022-03-17T18:58:22.000Z
appengine/monorail/api/v3/api_proto/projects_pb2.py
fknittel/git-retry-build
4d57dd6e8b7567daeb24b55f66bc5becd3d459f3
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: api/v3/api_proto/projects.proto """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection f...
43.240924
2,750
0.781942
4c03d0743c0121e9d0de50ceaa47b8661683af6f
2,207
py
Python
tests/test_device.py
michaelwoods/home-assistant-cli
340643af943f36283621f39ac39a690b1fccc045
[ "Apache-2.0" ]
null
null
null
tests/test_device.py
michaelwoods/home-assistant-cli
340643af943f36283621f39ac39a690b1fccc045
[ "Apache-2.0" ]
null
null
null
tests/test_device.py
michaelwoods/home-assistant-cli
340643af943f36283621f39ac39a690b1fccc045
[ "Apache-2.0" ]
null
null
null
"""Testing Device operations.""" import json import unittest.mock as mock from click.testing import CliRunner import homeassistant_cli.cli as cli def test_device_list(default_devices) -> None: """Test Device List.""" with mock.patch( 'homeassistant_cli.remote.get_devices', return_value=default_devic...
29.824324
76
0.557771
4c03f5083b7da646254c6bd784cf88ab749969d1
4,350
py
Python
widgets/tree_item.py
tarsa129/j3d-animation-editor
3f0691bd7dcece6e2055a0b5af0510608f28f2ca
[ "MIT" ]
6
2020-08-10T13:09:03.000Z
2021-11-20T02:37:46.000Z
widgets/tree_item.py
tarsa129/j3d-animation-editor
3f0691bd7dcece6e2055a0b5af0510608f28f2ca
[ "MIT" ]
3
2021-02-16T06:20:23.000Z
2022-02-24T21:43:41.000Z
widgets/tree_item.py
tarsa129/j3d-animation-editor
3f0691bd7dcece6e2055a0b5af0510608f28f2ca
[ "MIT" ]
2
2021-02-16T05:02:04.000Z
2021-12-17T16:11:10.000Z
from PyQt5.QtWidgets import QAction, QTreeWidget, QTreeWidgetItem, QFileDialog from PyQt5.QtGui import QIcon from PyQt5.QtCore import Qt import animations.general_animation as j3d from widgets.yaz0 import compress, compress_slow, compress_fast from io import BytesIO
37.5
116
0.55931
4c040273405e24f9a3249bb42b05984c6988f41a
3,445
py
Python
Wheels.py
edhosken/WheelsSong
cb988c8510a1095eeec3a2399b0fc0ba24bfa648
[ "MIT" ]
null
null
null
Wheels.py
edhosken/WheelsSong
cb988c8510a1095eeec3a2399b0fc0ba24bfa648
[ "MIT" ]
null
null
null
Wheels.py
edhosken/WheelsSong
cb988c8510a1095eeec3a2399b0fc0ba24bfa648
[ "MIT" ]
null
null
null
#Create the pre-defined song values and empty variables...Correct names not used so each starting letter would be unique numbers = (1 ,2 ,3 ,4 ,5 ,6 ,7 ,8 ,9 ,10 ,11 ,12 ,13 ,14 ,15 ,16 ,17 ,18 ) letters = ['a ','b ','c ','d ','e ','f ','g ','h ','i ','j ','k ','l ','m ','n ','o ','p ','q ','r '] roman = ['I ', 'II ...
37.445652
204
0.54688
4c0417fc2a324560f940489498afd9c4d64ac7c7
15,792
py
Python
tests/test_config.py
dfroger/conda
c0f99ff46b217d081501e66f4dcd7bcdb5d9c6aa
[ "BSD-3-Clause" ]
null
null
null
tests/test_config.py
dfroger/conda
c0f99ff46b217d081501e66f4dcd7bcdb5d9c6aa
[ "BSD-3-Clause" ]
null
null
null
tests/test_config.py
dfroger/conda
c0f99ff46b217d081501e66f4dcd7bcdb5d9c6aa
[ "BSD-3-Clause" ]
null
null
null
# (c) 2012-2014 Continuum Analytics, Inc. / http://continuum.io # All Rights Reserved # # conda is distributed under the terms of the BSD 3-clause license. # Consult LICENSE.txt or http://opensource.org/licenses/BSD-3-Clause. import os from os.path import dirname, join, exists import unittest import pytest import con...
30.31094
111
0.597138
4c045d0953c279b203d260f5d6f3f9a0b7bdf019
3,579
py
Python
malaya/transformers/babble.py
ahmed3991/malaya
d90be6d5b2a1393a3f8b8b1ffa8ae676cdaa083c
[ "MIT" ]
1
2021-03-19T22:42:34.000Z
2021-03-19T22:42:34.000Z
malaya/transformers/babble.py
ahmed3991/malaya
d90be6d5b2a1393a3f8b8b1ffa8ae676cdaa083c
[ "MIT" ]
null
null
null
malaya/transformers/babble.py
ahmed3991/malaya
d90be6d5b2a1393a3f8b8b1ffa8ae676cdaa083c
[ "MIT" ]
null
null
null
# Bert has a Mouth, and It Must Speak: BERT as a Markov Random Field Language Model, # by Alex Wang, Kyunghyun Cho, NeuralGen 2019 # https://colab.research.google.com/drive/1MxKZGtQ9SSBjTK5ArsZ5LKhkztzg52RV # https://arxiv.org/abs/1902.04094 import tensorflow as tf import tensorflow_probability as tfp import numpy as ...
28.632
84
0.626991
4c045e92df54148ce6ef4110afe95ac625400e40
652
py
Python
coding patterns/two pointers/sortedarr_square.py
mkoryor/Python
837ec4c03130dc4cb919fb5f1eeb4d31206790e4
[ "Unlicense" ]
null
null
null
coding patterns/two pointers/sortedarr_square.py
mkoryor/Python
837ec4c03130dc4cb919fb5f1eeb4d31206790e4
[ "Unlicense" ]
null
null
null
coding patterns/two pointers/sortedarr_square.py
mkoryor/Python
837ec4c03130dc4cb919fb5f1eeb4d31206790e4
[ "Unlicense" ]
null
null
null
""" [E] Given a sorted array, create a new array containing squares of all the number of the input array in the sorted order. Input: [-2, -1, 0, 2, 3] Output: [0, 1, 4, 4, 9] """ # Time: O(N) Space: O(n)
19.757576
75
0.619632
4c060ddce60243c22acf2298bfd181a17b757f40
1,917
py
Python
modules/evaluate/evaluate_step.py
Azure/aml-object-classification-pipeline
f94e4327ebfb5534b52c5c70e82832a86c64a2d1
[ "MIT" ]
5
2020-05-20T12:41:31.000Z
2022-03-18T17:35:26.000Z
modules/evaluate/evaluate_step.py
Azure/aml-object-classification-pipeline
f94e4327ebfb5534b52c5c70e82832a86c64a2d1
[ "MIT" ]
null
null
null
modules/evaluate/evaluate_step.py
Azure/aml-object-classification-pipeline
f94e4327ebfb5534b52c5c70e82832a86c64a2d1
[ "MIT" ]
5
2020-06-03T12:19:20.000Z
2021-12-30T02:58:06.000Z
import os from azureml.pipeline.steps import PythonScriptStep from azureml.core.runconfig import RunConfiguration from azureml.core.conda_dependencies import CondaDependencies from azureml.pipeline.core import PipelineData from azureml.pipeline.core import PipelineParameter from azureml.pipeline.steps import EstimatorS...
34.232143
87
0.708399
4c0955be4956893e543176a5a678b0a7caa5514d
4,806
py
Python
configs/mobilenet_cfbi.py
yoxu515/CFBI
0bab1e3c9fc3e3ba0629f716d60221e8f8d9d586
[ "BSD-3-Clause" ]
312
2020-03-15T03:51:52.000Z
2022-03-23T07:33:39.000Z
configs/mobilenet_cfbi.py
geekJZY/CFBI
90a0cd6a3e7961f47f266c7620e8dc281dc43ac8
[ "BSD-3-Clause" ]
55
2020-06-27T06:39:27.000Z
2022-03-24T19:02:15.000Z
configs/mobilenet_cfbi.py
geekJZY/CFBI
90a0cd6a3e7961f47f266c7620e8dc281dc43ac8
[ "BSD-3-Clause" ]
41
2020-07-28T00:52:04.000Z
2022-03-25T08:49:47.000Z
import torch import argparse import os import sys import cv2 import time cfg = Configuration()
36.687023
123
0.645651
4c09b0745eee677f40540659a3c584b6e7535d0a
968
py
Python
js/matrixjs/matrix_compile.py
kennytilton/ConnectJS
a16121052839b6f447718dccb008761d92094885
[ "MIT" ]
7
2017-07-31T20:28:33.000Z
2020-11-23T13:18:20.000Z
js/matrixjs/matrix_compile.py
kennytilton/ConnectJS
a16121052839b6f447718dccb008761d92094885
[ "MIT" ]
null
null
null
js/matrixjs/matrix_compile.py
kennytilton/ConnectJS
a16121052839b6f447718dccb008761d92094885
[ "MIT" ]
1
2020-02-26T06:09:33.000Z
2020-02-26T06:09:33.000Z
#!/usr/bin/python2.4 import httplib, urllib, sys # Define the parameters for the POST request and encode them in # a URL-safe format. params = urllib.urlencode([ #('js_code', sys.argv[1]), ('code_url', 'https://raw.githubusercontent.com/kennytilton/MatrixJS/master/js/matrixjs/js/Matrix/Cells.js'), ('code...
38.72
113
0.72314
4c09c2107e354abe29a0559333bd163e132e44d0
4,551
py
Python
tensorflow/python/util/tf_should_use_test.py
npow/tensorflow
99ae68bba52bb6338af06f37bb104128d7af6fb4
[ "Apache-2.0" ]
null
null
null
tensorflow/python/util/tf_should_use_test.py
npow/tensorflow
99ae68bba52bb6338af06f37bb104128d7af6fb4
[ "Apache-2.0" ]
null
null
null
tensorflow/python/util/tf_should_use_test.py
npow/tensorflow
99ae68bba52bb6338af06f37bb104128d7af6fb4
[ "Apache-2.0" ]
null
null
null
# Copyright 2017 The TensorFlow Authors. 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 applica...
33.463235
80
0.702703
4c0a433f8f2a1c5fe05d98092959a53a97b1beea
8,767
bzl
Python
tools/jdk/local_java_repository.bzl
loongarch64/bazel
44c30aceec076a0c25f506508704df0b9aeb6578
[ "Apache-2.0" ]
16,989
2015-09-01T19:57:15.000Z
2022-03-31T23:54:00.000Z
tools/jdk/local_java_repository.bzl
loongarch64/bazel
44c30aceec076a0c25f506508704df0b9aeb6578
[ "Apache-2.0" ]
12,562
2015-09-01T09:06:01.000Z
2022-03-31T22:26:20.000Z
tools/jdk/local_java_repository.bzl
loongarch64/bazel
44c30aceec076a0c25f506508704df0b9aeb6578
[ "Apache-2.0" ]
3,707
2015-09-02T19:20:01.000Z
2022-03-31T17:06:14.000Z
# Copyright 2020 The Bazel Authors. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable la...
37.626609
130
0.666705
4c0ab106ed9ecd5a4593bfc5cb160cb433ae9bfc
2,563
py
Python
corehq/apps/fixtures/resources/v0_1.py
SEL-Columbia/commcare-hq
992ee34a679c37f063f86200e6df5a197d5e3ff6
[ "BSD-3-Clause" ]
1
2015-02-10T23:26:39.000Z
2015-02-10T23:26:39.000Z
corehq/apps/fixtures/resources/v0_1.py
SEL-Columbia/commcare-hq
992ee34a679c37f063f86200e6df5a197d5e3ff6
[ "BSD-3-Clause" ]
null
null
null
corehq/apps/fixtures/resources/v0_1.py
SEL-Columbia/commcare-hq
992ee34a679c37f063f86200e6df5a197d5e3ff6
[ "BSD-3-Clause" ]
null
null
null
from couchdbkit import ResourceNotFound from tastypie import fields as tp_f from corehq.apps.api.resources import JsonResource from corehq.apps.api.resources.v0_1 import ( CustomResourceMeta, RequirePermissionAuthentication, ) from corehq.apps.api.util import get_object_or_not_exist from corehq.apps.fixtures.mo...
39.430769
79
0.673039
4c0ab34e213a6cac6f714e8bdb911bff09620f44
24,467
py
Python
tests/test_domain.py
broadinstitute/cert_manager_api
3a9c3445ff32ecd29ab47e7a049c47155b72614a
[ "BSD-3-Clause" ]
null
null
null
tests/test_domain.py
broadinstitute/cert_manager_api
3a9c3445ff32ecd29ab47e7a049c47155b72614a
[ "BSD-3-Clause" ]
null
null
null
tests/test_domain.py
broadinstitute/cert_manager_api
3a9c3445ff32ecd29ab47e7a049c47155b72614a
[ "BSD-3-Clause" ]
1
2022-03-17T16:33:46.000Z
2022-03-17T16:33:46.000Z
# -*- coding: utf-8 -*- """Define the cert_manager.domain.Domain unit tests.""" # Don't warn about things that happen as that is part of unit testing # pylint: disable=protected-access # pylint: disable=no-member import json from requests.exceptions import HTTPError from testtools import TestCase import responses f...
32.666222
107
0.647484
4c0acd1ef9075a9d08118479182c8461e04d6e01
3,844
py
Python
texts.py
ProtKsen/pgame
c4455c6c07eaf275f9fcfa661cd6933ee7b1ff92
[ "MIT" ]
2
2021-04-14T09:49:27.000Z
2022-03-08T17:26:49.000Z
texts.py
ProtKsen/pgame
c4455c6c07eaf275f9fcfa661cd6933ee7b1ff92
[ "MIT" ]
null
null
null
texts.py
ProtKsen/pgame
c4455c6c07eaf275f9fcfa661cd6933ee7b1ff92
[ "MIT" ]
2
2021-01-11T12:09:26.000Z
2021-04-14T09:49:45.000Z
"""Text parts.""" SEPARATOR = '----------------------------------' CONT_GAME = 'enter ' GREETING = ' '' ''!\n' \ ' , ' \ ' !' NAME_QUESTION = ' ?' CHOOSE_LEVEL = ' , ' \ ' . \n' \ '1 - \n' \ '2 - \n' \ '3 - ' IN...
48.05
90
0.533299
4c0b4ff66b7c9992658d93e432fdd2bd5452694f
3,587
py
Python
api/migrations/0001_initial.py
alerin345/Instagram-React
25dfbcbff2a2d050e4f2804a74cd7c901cd2cb66
[ "MIT" ]
null
null
null
api/migrations/0001_initial.py
alerin345/Instagram-React
25dfbcbff2a2d050e4f2804a74cd7c901cd2cb66
[ "MIT" ]
null
null
null
api/migrations/0001_initial.py
alerin345/Instagram-React
25dfbcbff2a2d050e4f2804a74cd7c901cd2cb66
[ "MIT" ]
null
null
null
# Generated by Django 3.1.3 on 2021-01-07 00:42 from django.conf import settings from django.db import migrations, models import django.db.models.deletion import django.utils.timezone
48.472973
170
0.611096
4c0c9d4712283b7b6b90ddca4309f49cea6694d9
737
py
Python
fastapi_router_controller/lib/controller_loader.py
KiraPC/fastapi-router-controller
e105701ebce2e03a0e00ac182c10941daf1b7e22
[ "MIT" ]
21
2021-03-30T19:39:46.000Z
2022-03-30T22:27:39.000Z
fastapi_router_controller/lib/controller_loader.py
KiraPC/fastapi-router-controller
e105701ebce2e03a0e00ac182c10941daf1b7e22
[ "MIT" ]
12
2021-03-30T20:52:15.000Z
2022-02-23T09:20:42.000Z
fastapi_router_controller/lib/controller_loader.py
KiraPC/fastapi-router-controller
e105701ebce2e03a0e00ac182c10941daf1b7e22
[ "MIT" ]
6
2021-04-03T19:17:55.000Z
2021-12-20T10:20:57.000Z
import os import importlib
29.48
79
0.561737
4c0d5b44bfd54d1398052b98c3fc9dbc04be5c4f
601
py
Python
app/mod_ecomm/controllers.py
VikrantReddy/Instagram2Shop
8d9c3f39d277fafb56d10a87a1b62a6df8a74237
[ "MIT" ]
null
null
null
app/mod_ecomm/controllers.py
VikrantReddy/Instagram2Shop
8d9c3f39d277fafb56d10a87a1b62a6df8a74237
[ "MIT" ]
null
null
null
app/mod_ecomm/controllers.py
VikrantReddy/Instagram2Shop
8d9c3f39d277fafb56d10a87a1b62a6df8a74237
[ "MIT" ]
null
null
null
from flask import Blueprint, Flask, send_from_directory from werkzeug.security import check_password_hash, generate_password_hash from app import db from app.mod_auth.forms import LoginForm from app.mod_auth.models import User mod_ecomm = Blueprint('products', __name__, url_prefix='/products', ...
33.388889
74
0.71381
4c0dc6446f67b743dcdbd74576706d0d6a1843b4
118
py
Python
dagr_selenium/crawl_watchlist.py
phillmac/dagr_selenium
b7417a878fe4c171625a40e746113ae2c0222335
[ "MIT" ]
null
null
null
dagr_selenium/crawl_watchlist.py
phillmac/dagr_selenium
b7417a878fe4c171625a40e746113ae2c0222335
[ "MIT" ]
1
2021-12-14T06:05:26.000Z
2021-12-14T06:05:26.000Z
dagr_selenium/crawl_watchlist.py
phillmac/dagr_selenium
b7417a878fe4c171625a40e746113ae2c0222335
[ "MIT" ]
null
null
null
from .functions import monitor_watchlist_action, manager with manager.get_dagr(): monitor_watchlist_action()
23.6
57
0.788136
4c0e902c9bd14492f727e042bd245ed10c04c202
2,739
py
Python
zenslackchat/eventsview.py
uktrade/zenslackchat
8071757e1ea20a433783c6a7c47f25b046692682
[ "MIT" ]
2
2020-12-30T07:46:12.000Z
2022-02-01T16:37:34.000Z
zenslackchat/eventsview.py
uktrade/zenslackchat
8071757e1ea20a433783c6a7c47f25b046692682
[ "MIT" ]
7
2021-04-14T16:17:29.000Z
2022-01-25T11:48:18.000Z
zenslackchat/eventsview.py
uktrade/zenslackchat
8071757e1ea20a433783c6a7c47f25b046692682
[ "MIT" ]
1
2021-06-06T09:46:47.000Z
2021-06-06T09:46:47.000Z
import pprint import logging from django.conf import settings from rest_framework import status from rest_framework.views import APIView from rest_framework.response import Response from zenslackchat.message import handler from zenslackchat.models import SlackApp from zenslackchat.models import ZendeskApp
38.041667
79
0.649507
4c0ea6f1c1da094761872bcebae0cfc6089b3d54
16,882
py
Python
sdv/docker/sdvstate/internal/validator/airship/compute_check.py
opnfv/cirv-sdv
31fb310d3fd1c9c1f12cfe0c654870e24f5efab6
[ "Apache-2.0" ]
2
2021-09-16T06:31:45.000Z
2022-03-09T19:59:55.000Z
sdv/docker/sdvstate/internal/validator/airship/compute_check.py
opnfv/cirv-sdv
31fb310d3fd1c9c1f12cfe0c654870e24f5efab6
[ "Apache-2.0" ]
null
null
null
sdv/docker/sdvstate/internal/validator/airship/compute_check.py
opnfv/cirv-sdv
31fb310d3fd1c9c1f12cfe0c654870e24f5efab6
[ "Apache-2.0" ]
2
2021-05-11T14:41:01.000Z
2021-05-14T05:59:38.000Z
# Copyright 2020 University Of Delhi. # # 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...
25.197015
91
0.65093
4c0f174360fe29201e22d16e102aa2c61bad20f2
262
py
Python
production/pygsl-0.9.5/testing/__init__.py
juhnowski/FishingRod
457e7afb5cab424296dff95e1acf10ebf70d32a9
[ "MIT" ]
1
2019-07-29T02:53:51.000Z
2019-07-29T02:53:51.000Z
production/pygsl-0.9.5/testing/__init__.py
juhnowski/FishingRod
457e7afb5cab424296dff95e1acf10ebf70d32a9
[ "MIT" ]
1
2021-09-11T14:30:32.000Z
2021-09-11T14:30:32.000Z
Dockerfiles/gedlab-khmer-filter-abund/pymodules/python2.7/lib/python/pygsl/testing/__init__.py
poojavade/Genomics_Docker
829b5094bba18bbe03ae97daf925fee40a8476e8
[ "Apache-2.0" ]
2
2016-12-19T02:27:46.000Z
2019-07-29T02:53:54.000Z
""" Here you find either new implemented modules or alternate implementations of already modules. This directory is intended to have a second implementation beside the main implementation to have a discussion which implementation to favor on the long run. """
37.428571
78
0.80916
4c10bad25f060a9091150e60b188f22ceaae17b0
14,801
py
Python
PythonServer/UnitTestCasesForWebSocket.py
Cyberlightning/2D-3DCapture
e5fdcec4f25358fc1964068180e4e774f45daa8a
[ "Apache-2.0" ]
2
2015-11-04T10:21:48.000Z
2016-03-07T15:14:35.000Z
2D-3D-Capture/PythonServer/UnitTestCasesForWebSocket.py
Cyberlightning/Cyber-WeX
11dc560b7a30eb31c1dfa18196f6a0760648f9a7
[ "Apache-2.0" ]
null
null
null
2D-3D-Capture/PythonServer/UnitTestCasesForWebSocket.py
Cyberlightning/Cyber-WeX
11dc560b7a30eb31c1dfa18196f6a0760648f9a7
[ "Apache-2.0" ]
null
null
null
''' Created on Mar 6, 2014 @author: tharanga ''' import unittest from time import sleep import EventService as es from EventService import WebSocketServer as ws from EventService import EventManager as em import socket from base64 import b64encode import struct import MySQLdb import json import EventService import fl...
57.368217
386
0.646375
4c1112a8d3df95d531441fb2f11172b25c1ca8ae
1,945
py
Python
src/tests/client_side/test_main.py
JulianSobott/OpenDrive
0593c994c3bccccc4351557c42d13f3535b6b6c1
[ "Apache-2.0" ]
1
2021-03-18T16:20:46.000Z
2021-03-18T16:20:46.000Z
src/tests/client_side/test_main.py
JulianSobott/OpenDrive
0593c994c3bccccc4351557c42d13f3535b6b6c1
[ "Apache-2.0" ]
2
2019-06-04T21:50:23.000Z
2019-06-14T13:20:50.000Z
src/tests/client_side/test_main.py
JulianSobott/OpenDrive
0593c994c3bccccc4351557c42d13f3535b6b6c1
[ "Apache-2.0" ]
null
null
null
import os import threading import time import unittest from OpenDrive.client_side import file_changes_json as c_json from OpenDrive.client_side import interface from OpenDrive.client_side import main from OpenDrive.client_side import paths as client_paths from OpenDrive.server_side import paths as server_paths from te...
42.282609
108
0.748586
4c131d63691e04e79320d304f39d4fe881bda148
1,850
py
Python
site-packages/skimage/io/tests/test_io.py
oz90210/Pyto
59f185149b71e57e5debeb1c9a61a28739e81720
[ "MIT" ]
null
null
null
site-packages/skimage/io/tests/test_io.py
oz90210/Pyto
59f185149b71e57e5debeb1c9a61a28739e81720
[ "MIT" ]
1
2020-04-25T20:36:07.000Z
2020-04-25T20:36:07.000Z
site-packages/skimage/io/tests/test_io.py
Wristlebane/Pyto
901ac307b68486d8289105c159ca702318bea5b0
[ "MIT" ]
null
null
null
import os import numpy as np from skimage import io, data_dir from skimage._shared import testing from skimage._shared.testing import assert_array_equal one_by_one_jpeg = ( b'\xff\xd8\xff\xe0\x00\x10JFIF\x00\x01\x01\x00\x00\x01' b'\x00\x01\x00\x00\xff\xdb\x00C\x00\x03\x02\x02\x02\x02' b'\x02\x03\x02\x02...
33.636364
70
0.677838